:root {
  color-scheme: dark;
  --ink: #f5f2eb;
  --muted: #a9a69f;
  --dim: #6f6d68;
  --line: rgba(255, 255, 255, 0.11);
  --panel: rgba(255, 255, 255, 0.045);
  --orange: #ff9f1c;
  --orange-soft: #ffbd61;
  --red: #db3a1d;
  --bg: #070706;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% -10%, rgba(255, 159, 28, 0.11), transparent 32rem),
    linear-gradient(180deg, #0c0c0a 0%, #070706 45%, #0a0908 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.scrolled {
  background: rgba(7, 7, 6, 0.8);
  border-color: var(--line);
  backdrop-filter: blur(20px) saturate(130%);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(255, 139, 20, 0.22);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 160ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 680;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-pill { border: 1px solid var(--line); color: var(--ink) !important; }
.nav-pill:hover, .button:hover { transform: translateY(-2px); }
.button.primary { color: #16100a; background: linear-gradient(135deg, var(--orange-soft), var(--orange)); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.03); }

.hero {
  position: relative;
  min-height: min(820px, 78svh);
  padding: 164px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(255,255,255,.012), 0 0 0 230px rgba(255,255,255,.008);
  pointer-events: none;
}

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.hero-copy { position: relative; z-index: 2; max-width: 880px; text-align: center; margin: 0 auto 74px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255,159,28,.8);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 22px 0 24px;
  font-size: clamp(54px, 9vw, 116px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 780;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(120deg, #fff 15%, #a8a39a 56%, #ffb44b 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.stage {
  position: relative;
  z-index: 2;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.025);
  box-shadow: 0 40px 120px rgba(0,0,0,.72), 0 0 70px rgba(255,139,20,.06);
}

.stage::after {
  content: "";
  position: absolute;
  inset: auto 12% -45px;
  height: 60px;
  background: var(--orange);
  opacity: .09;
  filter: blur(35px);
  border-radius: 50%;
}

.stage img { width: 100%; border-radius: 21px; aspect-ratio: 2.1635 / 1; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-block: 1px solid var(--line);
}

.fact { padding: 32px 6%; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 28px; letter-spacing: -.035em; }
.fact span { display: block; margin-top: 8px; color: var(--dim); font-size: 13px; }

.section { padding: 130px 0; }
.section-heading { max-width: 720px; margin-bottom: 54px; }
.section-heading h2 { margin: 16px 0; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.7; }

.scene-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }

.scene-card {
  position: relative;
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}

.scene-card.featured { grid-column: span 12; }

.video-stage {
  position: relative;
  aspect-ratio: 900 / 414;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
  isolation: isolate;
  cursor: pointer;
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(0,0,0,.15);
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}

.video-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: white;
  background: rgba(8,8,8,.55);
  box-shadow: 0 14px 44px rgba(0,0,0,.46);
  backdrop-filter: blur(14px) saturate(125%);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.video-toggle:hover,
.video-toggle:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
  background: rgba(255,159,28,.88);
  outline: none;
}

.play-symbol {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
}

.video-stage.is-playing .video-toggle {
  opacity: 0;
}

.video-stage.is-playing:hover .video-toggle,
.video-stage.is-playing .video-toggle:focus-visible {
  opacity: 1;
}

.video-stage.is-playing .play-symbol {
  width: 15px;
  height: 19px;
  margin-left: 0;
  border: 0;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

.video-stage.is-loading .video-toggle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: var(--orange-soft);
  border-radius: 50%;
  animation: video-spin .8s linear infinite;
}

.video-duration {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.74);
  background: rgba(0,0,0,.48);
  font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  backdrop-filter: blur(10px);
}

.scene-copy { padding: 25px 28px 29px; }
.scene-index { color: var(--orange-soft); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.scene-copy h3 { margin: 10px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.scene-copy p { max-width: 660px; margin: 0; color: rgba(255,255,255,.58); line-height: 1.65; }

@keyframes video-spin { to { transform: rotate(360deg); } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.feature-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,159,28,.11); color: var(--orange-soft); }
.feature h3 { margin: 48px 0 9px; font-size: 20px; }
.feature p { color: var(--muted); line-height: 1.65; font-size: 14px; }

.cta {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 46px;
  border: 1px solid rgba(255,159,28,.22);
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(255,159,28,.1), rgba(255,255,255,.025));
  overflow: hidden;
}
.cta img { width: 120px; border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.cta h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.045em; }
.cta p { margin: 0; color: var(--muted); }

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; color: var(--dim); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

.legal-hero { padding: 150px 0 70px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 800px; font-size: clamp(48px, 8vw, 88px); }
.legal-hero p { color: var(--muted); max-width: 700px; font-size: 18px; line-height: 1.7; }
.updated { color: var(--dim); font-size: 13px; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 80px; padding: 80px 0 120px; }
.legal-aside { position: sticky; top: 110px; align-self: start; color: var(--dim); font-size: 13px; line-height: 1.7; }
.legal-content section { padding: 0 0 42px; }
.legal-content h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.78; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0 60px; }
.support-card { padding: 26px; min-height: 180px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.support-card h3 { margin: 0 0 10px; font-size: 19px; }
.support-card p { margin: 0; color: var(--muted); line-height: 1.65; }

/* 只有确认 JS 可用时才把内容藏起来做入场动画；JS 被禁用或 site.js 加载失败时内容直接可见。
   再加一道兜底动画：即使 site.js 迟迟没加载完（慢网），2.5 秒后内容也会自己显示出来，
   不会出现「整页只剩顶栏、下面全黑」的情况。 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  animation: reveal-failsafe 1ms linear 2.5s forwards;
}
.js .reveal.visible { opacity: 1; transform: none; animation: none; }

@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .nav-links a:not(.nav-pill) { display: none; }
  .hero { padding-top: 126px; }
  .hero-copy { margin-bottom: 42px; }
  .stage { border-radius: 20px; padding: 6px; }
  .stage img { border-radius: 14px; }
  .facts { margin-top: 54px; }
  .fact { padding: 24px 10px; }
  .fact strong { font-size: 22px; }
  .section { padding: 90px 0; }
  .scene-card, .scene-card.featured { grid-column: span 12; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature h3 { margin-top: 34px; }
  .cta { grid-template-columns: 84px 1fr; padding: 28px; }
  .cta img { width: 84px; border-radius: 20px; }
  .cta .button { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-aside { position: static; }
}

@media (max-width: 560px) {
  .nav { width: min(calc(100% - 28px), var(--max)); height: 66px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 54px; }
  .hero-lead { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .scene-card, .scene-card.featured { border-radius: 20px; }
  .video-stage { margin: 6px 6px 0; border-radius: 15px; }
  .video-toggle { width: 58px; height: 58px; }
  .scene-copy { padding: 21px 20px 24px; }
  .scene-copy h3 { font-size: 23px; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; animation: none; }
}

/* 【关键】缓冲中时必须让按钮可见，否则转圈图标（画在 .video-toggle::after 上）
   会跟着 .is-playing 的 opacity:0 一起消失，用户看到的就是「点了完全没反应」。 */
.video-stage.is-playing.is-loading .video-toggle { opacity: 1; }

/* 触屏设备没有 hover，播放中暂停键永远不可见。 */
@media (hover: none) {
  .video-stage.is-playing .video-toggle { opacity: .32; }
}

/* 缓冲阶段：显示进度百分比，让用户知道在下载而不是坏了。 */
.video-stage.is-buffering .video-toggle { opacity: 1; }

.video-stage.is-buffering::before {
  content: attr(data-progress);
  position: absolute;
  left: 50%;
  top: calc(50% + 52px);
  z-index: 4;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.88);
  font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

/* 播放失败 / 长时间卡住时给出文字反馈。 */
.video-stage.has-error::before {
  content: "视频加载失败，请重试";
  position: absolute;
  inset: auto 0 14px;
  z-index: 4;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  letter-spacing: .04em;
}
