:root {
  --bg: #0b1714;
  --surface: #152823;
  --line: rgba(203, 237, 175, .14);
  --line-strong: rgba(203, 237, 175, .3);
  --text: #f2f5ec;
  --muted: #a9bdb4;
  --accent: #cbedaf;
  --gold: #f1c98a;
  --ink: #16281c;
  --radius: 16px;
  --w: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn.primary { background: var(--accent); color: var(--ink); box-shadow: 0 12px 32px -14px rgba(203, 237, 175, .7); }
.btn.primary:hover { background: #dcf7c6; transform: translateY(-2px); }
.btn.ghost { background: rgba(11, 23, 20, .45); border-color: rgba(242, 245, 236, .5); color: var(--text); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(11, 23, 20, .72); transform: translateY(-2px); }
.btn.sm { padding: 9px 20px; font-size: 14px; }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(11, 23, 20, .84); backdrop-filter: blur(14px); border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .1em; }
.brand-text i { font-style: normal; font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.nav-links { display: flex; gap: 34px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { font-size: 13px; letter-spacing: .08em; text-decoration: none; color: #dfe8e0; opacity: .8; }
.lang:hover { opacity: 1; color: var(--accent); }
.nav-links a { position: relative; padding: 4px 0; text-decoration: none; font-size: 15px; color: #dfe8e0; opacity: .86; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 20, .6) 0%, rgba(11, 23, 20, .05) 28%, rgba(11, 23, 20, .5) 66%, var(--bg) 100%),
    radial-gradient(120% 90% at 18% 100%, rgba(11, 23, 20, .8), transparent 62%);
}
.hero-inner { position: relative; width: min(var(--w), 92vw); margin: 0 auto; padding: 150px 0 40px; }
.kicker { font-size: 12px; letter-spacing: .34em; color: var(--accent); }
.hero h1 { margin: 14px 0 8px; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.04; letter-spacing: .03em; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero-en { font-size: clamp(13px, 1.4vw, 18px); letter-spacing: .5em; color: #e6eee4; opacity: .92; }
.hero-tag { margin-top: 22px; max-width: 660px; font-size: clamp(15px, 1.35vw, 18px); color: #e9f0e6; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-facts {
  position: relative; width: min(var(--w), 92vw); margin: 0 auto; padding: 26px 0 40px;
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid rgba(242, 245, 236, .2);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 16px; letter-spacing: .08em; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.scroll-cue { position: absolute; right: clamp(20px, 4vw, 56px); bottom: 44px; width: 1px; height: 56px; background: rgba(242, 245, 236, .25); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- sections ---------- */
.sec { position: relative; width: min(var(--w), 92vw); margin: 0 auto; padding: 120px 0; }
.sec.alt::before { content: ""; position: absolute; inset: 0 -50vw; background: rgba(21, 40, 35, .5); z-index: -1; }
.sec-head { display: flex; align-items: baseline; gap: 18px; }
.sec-no { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: .14em; }
.sec-en { font-size: 12px; letter-spacing: .42em; color: var(--muted); }
.sec-head::after { content: ""; flex: 1; align-self: center; height: 1px; margin-left: 10px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.sec-lede { margin-top: 18px; max-width: 780px; color: var(--muted); font-size: 17px; }

/* ---------- world ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 64px; }
.feature.reverse { grid-template-columns: 1fr 1.25fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.feature-media:hover img { transform: scale(1.04); }
.feature-text h3 { margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .12em; }
.feature-text p { color: var(--muted); }

/* ---------- media ---------- */
.player { margin-top: 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #08110f; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-bar { display: flex; align-items: baseline; gap: 16px; padding: 16px 22px; background: var(--surface); }
.player-bar b { font-size: 17px; letter-spacing: .1em; white-space: nowrap; }
.player-bar span { color: var(--muted); font-size: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 16px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .68; transition: opacity .25s ease, transform .5s ease; }
.thumb span { display: block; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.thumb:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.thumb:hover img { opacity: .95; }
.thumb.is-active { border-color: var(--accent); }
.thumb.is-active img { opacity: 1; }
.thumb.is-active span { color: var(--text); }

/* ---------- light ---------- */
.light { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; margin-top: 48px; }
.light-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.light-stage #lightScene { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .35s ease; }
.light-stage #lightScene.fade { opacity: .25; }
.light-panel { position: absolute; right: 3.5%; bottom: 5%; width: 30%; max-width: 260px; border-radius: 10px; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .85); }
.mini-panel { position: absolute; right: 3.5%; bottom: 5%; width: 30%; max-width: 270px; padding: 14px 16px 16px; border-radius: 12px; background: rgba(23, 42, 38, .96); border: 1px solid rgba(86, 108, 96, .9); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .85); font-size: 12px; line-height: 1.5; transform: scale(.86); transform-origin: bottom right; }
.mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mp-head b { font-size: 15px; letter-spacing: .08em; }
.mp-head span { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #344b42; font-size: 13px; }
.mp-cap { margin: 9px 0 6px; color: var(--muted); font-size: 10px; }
.mp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mp-chips span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; border-radius: 6px; background: #344b42; font-size: 11px; }
.mp-chips span.is-active { background: var(--accent); color: var(--ink); }
.mp-chips i { width: 100%; height: 3px; border-radius: 2px; }
.mp-row { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; }
.mp-row b { font-weight: 500; color: #dfe8e0; font-variant-numeric: tabular-nums; }
.mp-track { position: relative; height: 3px; margin-top: 5px; border-radius: 2px; background: #536a5d; }
.mp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); width: 50%; transition: width .35s ease; }
.mp-track::after { content: ""; position: absolute; top: 50%; left: var(--pos, 50%); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); transition: left .35s ease; }
.preset-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(21, 40, 35, .6); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.preset .sw { width: 100%; height: 8px; border-radius: 3px; }
.preset:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.preset.is-active { border-color: var(--accent); background: rgba(203, 237, 175, .12); }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(21, 40, 35, .6); border: 1px solid var(--line); }
.chips span { color: var(--muted); font-size: 14px; }
.chips b { font-variant-numeric: tabular-nums; }
.light-note { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ---------- controls ---------- */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.key-card { padding: 18px 20px; border-radius: 14px; background: rgba(21, 40, 35, .55); border: 1px solid var(--line); }
.key-card p { display: flex; gap: 6px; margin-bottom: 10px; }
.key-card span { color: var(--muted); font-size: 14px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; font: 600 13px/1 var(--font); }

/* ---------- download ---------- */
.dl-card { margin: 44px auto 0; max-width: 900px; padding: clamp(28px, 4vw, 52px); border-radius: 22px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(203, 237, 175, .13), rgba(21, 40, 35, .72) 55%); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.dl-title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: .06em; }
.dl-meta { margin-top: 8px; color: var(--muted); letter-spacing: .08em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(11, 23, 20, .55); border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.steps b { font-size: 15px; }
.steps span { color: var(--muted); font-size: 13px; }
.parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.note { margin-top: 22px; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner { width: min(var(--w), 92vw); margin: 0 auto; padding: 36px 0 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; letter-spacing: .12em; }
.foot-brand i { font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: .3em; color: var(--muted); margin-left: 10px; }
.foot-note { margin-top: 4px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .light { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 84px 0; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .keys { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .light-panel { width: 40%; }
}
