/* 灯灯 Lumi — GitHub Pages
 * 配色与宣传片 promo/src/lib/theme.ts 保持一致。 */
:root {
  --ink: #07060d;
  --night: #0e0b1c;
  --text: #f4f2ff;
  --muted: #a8a3c4;
  --line: rgba(255, 255, 255, 0.08);
  --panel: rgba(255, 255, 255, 0.035);
  --cyan: #8fe3ff;
  --violet: #a78bff;
  --pink: #ff8fd8;
  --star: #ffd36b;
  --orange: #ff5a1f;
  --lumi: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
  --radius: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(167, 139, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(143, 227, 255, 0.08), transparent 60%),
    var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
/* 世界版块的背景向两侧延伸，移动端需要在这里裁掉，否则会撑宽布局视口 */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* 星空画布铺满背景，由 main.js 绘制 */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- 通用文字 ---------- */
.gradient-text, .g-ocean, .g-pink, .g-sun {
  background: var(--lumi);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.g-ocean { background-image: linear-gradient(120deg, #7ef0ff, #2f8bff); }
.g-pink  { background-image: linear-gradient(120deg, #ffb4ec, var(--violet)); }
.g-sun   { background-image: linear-gradient(120deg, #fff1b8, var(--star), #ff7a45); }

.overline {
  margin: 0 0 14px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
}
.overline.orange { color: var(--orange); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 18px 0 0; }
.note { color: var(--muted); font-size: 14px; opacity: 0.85; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 8, 22, 0.62);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { border-radius: 8px; image-rendering: pixelated; }
.brand b { font-weight: 800; background: var(--lumi); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 13px; font-weight: 600; }
.lang span { padding: 5px 10px; border-radius: 999px; color: var(--muted); transition: all .25s var(--ease); }
html[data-lang="zh"] .lang [data-lang-opt="zh"],
html[data-lang="en"] .lang [data-lang-opt="en"] { background: var(--text); color: var(--ink); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #0b0716;
  background: var(--lumi);
  box-shadow: 0 10px 40px -8px rgba(167, 139, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 16px 56px -8px rgba(255, 143, 216, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* ---------- 版块布局 ---------- */
.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 40px; }
.section-head { margin-bottom: 56px; }

/* ---------- 首屏 ---------- */
.hero {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  padding: 120px 0 60px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
}
.hero h1 { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; line-height: 1; margin-bottom: 26px; }
.hero-cn { font-size: clamp(76px, 11vw, 148px); font-weight: 900; text-shadow: 0 0 60px rgba(167, 139, 255, 0.45); }
.hero-en { font-size: clamp(56px, 7.5vw, 104px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: #d3cfe8; max-width: 600px; margin: 0 0 34px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 12px 30px; justify-content: start; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 40px; font-weight: 800; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }

.hero-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.halo {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 255, 0.55), rgba(143, 227, 255, 0.18) 45%, transparent 70%);
  filter: blur(30px);
  animation: breathe 5s ease-in-out infinite;
}

/* 设备屏幕：圆角方屏 + 玻璃反光，所有游戏画面都放在这里 */
.screen {
  position: relative; width: 78%; aspect-ratio: 1;
  border-radius: 13%;
  overflow: hidden;
  background: #120f22;
  box-shadow:
    0 0 0 10px #1b1730, 0 0 0 11px rgba(255, 255, 255, 0.12),
    0 40px 120px -20px rgba(143, 110, 255, 0.55),
    0 0 90px rgba(143, 227, 255, 0.18);
}
.screen video, .world-screen video, .card-media video, .hand-screen video {
  width: 100%; height: 100%; object-fit: cover;
}
.glass {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 38%, transparent 60%);
}
.float { animation: float 6s ease-in-out infinite; }

/* 像素爱心与星星：用 box-shadow 画像素 */
.px-heart, .px-star { position: absolute; width: 6px; height: 6px; image-rendering: pixelated; }
.px-heart {
  color: var(--pink);
  box-shadow:
    6px 0, 12px 0, 24px 0, 30px 0,
    0 6px, 6px 6px, 12px 6px, 18px 6px, 24px 6px, 30px 6px, 36px 6px,
    0 12px, 6px 12px, 12px 12px, 18px 12px, 24px 12px, 30px 12px, 36px 12px,
    6px 18px, 12px 18px, 18px 18px, 24px 18px, 30px 18px,
    12px 24px, 18px 24px, 24px 24px,
    18px 30px;
  filter: drop-shadow(0 0 10px rgba(255, 143, 216, 0.8));
  animation: rise 5s ease-in-out infinite;
}
.px-heart.h1 { top: 14%; right: 12%; }
.px-heart.h2 { top: 30%; left: 4%; transform: scale(0.7); animation-delay: -2.4s; }
.px-star {
  color: var(--star);
  box-shadow: 6px 0, 0 6px, 6px 6px, 12px 6px, 6px 12px;
  filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.9));
  animation: twinkle 2.6s ease-in-out infinite;
}
.px-star.s1 { bottom: 16%; left: 10%; }
.px-star.s2 { top: 8%; left: 30%; animation-delay: -1s; }
.px-star.s3 { bottom: 10%; right: 16%; animation-delay: -1.8s; }

/* ---------- 影片 ---------- */
.films { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: center; }
.film-player {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #000;
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -30px rgba(167, 139, 255, 0.5);
  transition: aspect-ratio .5s var(--ease);
}
.film-player[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.film-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-list { display: flex; flex-direction: column; gap: 14px; }
.film-tab {
  display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 14px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--panel);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.film-tab:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.06); }
.film-tab.is-active { border-color: rgba(167, 139, 255, 0.6); background: rgba(167, 139, 255, 0.1); }
.film-tab img { width: 64px; height: 96px; object-fit: cover; border-radius: 12px; flex: none; }
.film-tab b { display: block; font-size: 19px; }
.film-tab small { color: var(--muted); font-size: 14px; }
.film-downloads { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.film-downloads a { color: var(--cyan); border-bottom: 1px dashed rgba(143, 227, 255, 0.4); }

/* ---------- 玩法卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 14px 14px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 255, 0.4); box-shadow: 0 30px 80px -30px rgba(167, 139, 255, 0.45); }
.card-media { aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 18px; background: #1a1528; }
.card h3, .card p { padding: 0 8px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.voice {
  margin-top: 28px; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 143, 216, 0.08), rgba(143, 227, 255, 0.05));
}
.voice-head { display: flex; gap: 22px; align-items: flex-start; }
.voice-head p { margin: 8px 0 0; color: var(--muted); max-width: 760px; }
.mic { display: flex; align-items: center; gap: 4px; height: 48px; flex: none; }
.mic i { width: 5px; border-radius: 3px; background: var(--lumi); animation: wave 1.2s ease-in-out infinite; }
.mic i:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.mic i:nth-child(2) { height: 70%; animation-delay: -0.5s; }
.mic i:nth-child(3) { height: 100%; animation-delay: -0.1s; }
.mic i:nth-child(4) { height: 60%; animation-delay: -0.7s; }
.mic i:nth-child(5) { height: 35%; animation-delay: -0.4s; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
}
.chips small { display: none; margin-left: 8px; color: var(--muted); font-size: 12px; }
html[data-lang="en"] .chips small { display: inline; }

/* ---------- 五个世界：背景色随场景切换 ---------- */
.worlds { position: relative; }
.worlds::before {
  content: ""; position: absolute; inset: 40px -50vw 0; z-index: -1;
  background: radial-gradient(700px 480px at 30% 60%, color-mix(in srgb, var(--w-glow) 32%, transparent), transparent 70%),
              linear-gradient(180deg, transparent, var(--w-bg) 30%, var(--w-bg) 70%, transparent);
  transition: background 0.8s var(--ease);
}
.world-stage { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 56px; align-items: center; }
.world-screen {
  position: relative; aspect-ratio: 1; border-radius: 13%; overflow: hidden; background: var(--w-bg);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 40px 120px -20px var(--w-glow);
  transition: box-shadow .8s var(--ease), background .8s;
}
.world-en { margin: 0; font: 700 14px/1 var(--mono); letter-spacing: 0.4em; color: var(--w-glow); transition: color .6s; }
.world-info h3 { font-size: clamp(40px, 5vw, 64px); margin: 10px 0 14px; }
.world-info > p#world-desc { color: #d3cfe8; min-height: 3.2em; margin: 0 0 30px; font-size: 18px; }
.world-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.world-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.world-tab img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px;
  border: 2px solid transparent; opacity: 0.6;
  transition: opacity .3s, border-color .3s, transform .4s var(--ease);
}
.world-tab:hover img { opacity: 1; transform: translateY(-3px); }
.world-tab.is-active { color: var(--text); }
.world-tab.is-active img { opacity: 1; border-color: var(--w-glow); }

/* ---------- 昼夜 ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split-media { display: grid; place-items: center; }
.screen.small { width: 100%; max-width: 440px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: #d3cfe8; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px;
  background: var(--star); box-shadow: 0 0 12px var(--star);
}
.split-shots { grid-column: 1 / -1; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-shots img { border-radius: 22px; border: 1px solid var(--line); }

/* ---------- 硬件（白色版块，与宣传片的白底段落呼应） ---------- */
.paper { margin-top: 120px; background: #fff; color: #0b0b0f; }
.paper-inner {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
/* hand-front.jpg 为 864×1152，屏幕区域 (301,117,383×394) 圆角 40，换算为百分比 */
.hand { position: relative; max-width: 480px; justify-self: center; }
/* 照片底色为 #fdfdfd：略提亮成纯白融入版块，底部手腕处渐隐 */
.hand img {
  width: 100%; mix-blend-mode: multiply; filter: brightness(1.02);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.hand-screen {
  position: absolute; left: 34.838%; top: 10.156%; width: 44.329%; height: 34.201%;
  border-radius: 10.44% / 10.15%; overflow: hidden; background: #000;
}
.paper h2 { color: #0b0b0f; }
.paper .sub { color: #55536a; }
.specs { margin: 34px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ececf2; border-radius: 20px; overflow: hidden; }
.specs div { background: #fff; padding: 18px 20px; }
.specs dt { font-size: 13px; color: #8a879c; }
.specs dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.paper .note { color: #77748a; }

/* ---------- 技术亮点 ---------- */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-card { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.tech-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; font-size: 22px;
  background: linear-gradient(135deg, rgba(143, 227, 255, 0.18), rgba(255, 143, 216, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tech-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- 烧录 ---------- */
.install {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 30px 60px; border-radius: 40px;
  border: 1px solid rgba(167, 139, 255, 0.3);
  background: linear-gradient(180deg, rgba(167, 139, 255, 0.12), rgba(10, 8, 22, 0.6));
}
.install-glow {
  position: absolute; left: 50%; top: -30%; width: 700px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(167, 139, 255, 0.45), transparent);
  filter: blur(20px); z-index: -1;
}
.install-lumi { margin: 0 auto 24px; border-radius: 26px; image-rendering: pixelated; box-shadow: 0 0 60px rgba(167, 139, 255, 0.6); animation: float 5s ease-in-out infinite; }
.install .sub { margin: 18px auto 34px; }
.steps { list-style: none; padding: 0; margin: 44px auto 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lumi); color: #0b0716; font-size: 14px; }
.install .note { max-width: 620px; margin: 0 auto; }
.alt-links { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; }
.alt-links a { color: var(--cyan); border-bottom: 1px dashed rgba(143, 227, 255, 0.4); }

/* ---------- 页脚 ---------- */
.footer {
  width: min(1120px, calc(100% - 40px)); margin: 100px auto 0; padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 14px;
}
.footer > div { display: flex; align-items: center; gap: 10px; }
.footer img { border-radius: 6px; image-rendering: pixelated; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--text); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rise { 0% { opacity: 0; translate: 0 20px; } 30%, 70% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .hero-stage { order: -1; width: min(420px, 90%); justify-self: center; }
  .films, .world-stage, .split, .paper-inner { grid-template-columns: 1fr; }
  .film-player { max-width: 420px; justify-self: center; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .world-screen { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) {
  .section { padding-top: 90px; }
  .stats { grid-template-columns: repeat(2, auto); }
  .cards, .tech, .split-shots, .specs { grid-template-columns: 1fr; }
  .voice-head { flex-direction: column; }
  .world-tabs { gap: 6px; }
  .world-tab { font-size: 12px; }
  .install { padding: 60px 20px 44px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
