@font-face {
  font-family: "KiDe Display";
  src: url("display.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #111317;
  --surface-2: #171a1f;
  --ink: #f3f0e9;
  --muted: #a2a4ab;
  --faint: #6d7078;
  --line: rgba(255, 255, 255, .09);
  --gold: #d9b778;
  --accent: var(--gold);
  --display: "KiDe Display", "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 极淡的胶片颗粒，避免大面积纯色发闷 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 导航 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 var(--gutter);
  background: rgba(8, 9, 11, .62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-brand { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .02em; }

.nav nav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav nav a { transition: color .2s; white-space: nowrap; }
.nav nav a:hover, .nav nav a.is-active { color: var(--ink); }

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
  min-height: 100svh;
  padding: 96px var(--gutter) 56px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 74% 42%, rgba(217, 183, 120, .22), transparent 70%),
    radial-gradient(30% 40% at 92% 78%, rgba(79, 211, 154, .14), transparent 70%),
    radial-gradient(34% 42% at 52% 92%, rgba(234, 122, 63, .12), transparent 70%);
  animation: glow 14s ease-in-out infinite alternate;
}

@keyframes glow {
  to { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .12em;
}

.hero h1 {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(56px, 7.6vw, 116px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.gold {
  background: linear-gradient(120deg, #f4dfae, #c99a4d 60%, #f0d59b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 30em;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 36px;
}

.hero-stats dt {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}

.hero-stats dd { margin-top: 4px; color: var(--muted); font-size: 14px; }

.hero-cta {
  display: inline-flex;
  gap: 10px;
  margin-top: 40px;
  padding: 12px 24px;
  border: 1px solid rgba(217, 183, 120, .5);
  border-radius: 999px;
  color: #f4dfae;
  font-size: 15px;
  transition: background .25s, color .25s;
}

.hero-cta:hover { background: var(--gold); color: #17130a; }

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 1 / 1.02;
  justify-self: center;
}

.float {
  position: absolute;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.float > * { animation: drift 9s ease-in-out infinite alternate; }

@keyframes drift {
  from { translate: 0 -6px; }
  to { translate: 0 8px; }
}

.f1 { left: 30%; top: 2%; width: 40%; z-index: 3; rotate: -3deg; }
.f3 { left: 60%; top: 16%; width: 36%; z-index: 2; rotate: 7deg; }
.f2 { left: 3%; top: 12%; width: 32%; z-index: 2; rotate: -14deg; }
.f4 { left: 12%; top: 55%; width: 30%; z-index: 4; rotate: -5deg; }
.f5 { left: 68%; top: 63%; width: 26%; z-index: 4; rotate: 12deg; }
.f3 > * { animation-delay: -3s; }
.f2 > * { animation-delay: -5s; }
.f4 > * { animation-delay: -1.5s; }
.f5 > * { animation-delay: -7s; }

.poker {
  border-radius: 6%/4.5%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone {
  padding: 2.4%;
  background: linear-gradient(160deg, #2c2f35, #15171b);
  border-radius: 13%/6%;
  box-shadow: 0 36px 80px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.phone img { border-radius: 11%/5.2%; }

/* 滚动字幕 */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--faint);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 32px;
  font-family: var(--display);
  font-size: 20px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

@keyframes ticker {
  to { transform: translateX(calc(-50% - 16px)); }
}

/* 章节 */
.chapter, .more, .about {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) var(--gutter) 0;
}

.chapter::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  z-index: -1;
  width: min(90vw, 900px);
  height: 520px;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%);
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
}

.index {
  color: var(--accent);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.pill {
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pill-live {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.pill-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 9px transparent; }
}

.chapter h2, .more h2, .about h2 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.12;
}

.chapter h2, .more h2, .about h2, .lead { text-wrap: balance; }

.chapter h2 small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .36em;
  font-weight: 500;
}

.title-row { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); margin-top: 18px; }
.title-row h2 { margin-top: 0; }
.app-icon { width: clamp(52px, 6vw, 72px); border-radius: 22%; box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 30%, transparent); }

.lead {
  max-width: 34em;
  margin-top: 16px;
  color: #d6d3cc;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.6;
}

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.with-phones { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.flip > section .kicker { margin-top: 36px; }

/* 三步 */
.steps { counter-reset: step; }

.steps li {
  position: relative;
  padding: 0 0 26px 54px;
  counter-increment: step;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(color-mix(in srgb, var(--accent) 45%, transparent), transparent);
}

.steps b { display: block; font-size: 18px; font-weight: 600; }
.steps span { display: block; margin-top: 4px; color: var(--muted); }

.note {
  margin-top: 26px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 15px;
}

/* 小程序码 */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}

.qr-placeholder, .qr-image { width: 200px; height: 200px; border-radius: 12px; }

.qr-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.qr-card b { display: block; font-size: 17px; font-weight: 600; }
.qr-card span { color: var(--muted); font-size: 14px; }

/* 功能卡 */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.features li {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}

.features li:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.features b { display: block; font-weight: 600; }
.features span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* 图片 */
.zoom { display: block; cursor: zoom-in; }

.poster-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 48px);
}

.poster-row img {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease);
}

.poster-row a:hover img { transform: translateY(-8px); }

figcaption { margin-top: 14px; color: var(--faint); font-size: 13px; }

.poker-banner { margin-top: clamp(32px, 4vw, 48px); }

.poker-banner img, .detail-shot img {
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(217, 183, 120, .22);
}

.stat-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-panel dt, .card-stats dt {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.stat-panel dd, .card-stats dd { color: var(--muted); font-size: 13px; }

.key-art {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}

.key-art img { width: 100%; min-height: 460px; object-fit: cover; object-position: 30% 50%; }

.key-art figcaption {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: clamp(80px, 12vw, 180px) clamp(20px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
  background: linear-gradient(transparent, rgba(8, 9, 11, .82) 50%, rgba(8, 9, 11, .96));
  color: var(--ink);
  font-size: inherit;
}

.key-art .chapter-meta { color: #d6d3cc; }
.key-art .pill { border-color: rgba(255, 255, 255, .28); color: #d6d3cc; }

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.phones .phone:nth-child(2) { translate: 0 8%; }
.with-phones { padding-bottom: 5%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.tags li {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.window {
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: 14px;
  background: #1c1e24;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 90px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 0 1px var(--line);
}

.window-bar { display: flex; gap: 7px; padding: 12px 16px; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3c3f47; }

.mini-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.mini-list li:first-child { padding-top: 0; }
.mini-list b { display: block; font-weight: 600; }
.mini-list span { color: var(--muted); font-size: 15px; }

/* 更多 */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 56px);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .3s, translate .4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  transition: opacity .3s;
}

.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-wide { grid-column: span 2; }
.card-tall { grid-row: span 2; }

.card-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.card-tag { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.card h3 { margin-top: 14px; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.35; }
.card p:not(.card-tag) { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.card-stats { display: flex; gap: 26px; margin-top: 22px; }

.phones-sm { gap: 12px; }
.phones-sm .phone:nth-child(2) { translate: 0 0; }

.card-shot { margin-top: 22px; }
.card-shot img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }

/* 关于 */
.about h2 { margin-top: 16px; font-size: clamp(32px, 5vw, 64px); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(72px, 10vw, 130px);
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* 大图 */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 5, 6, .92); backdrop-filter: blur(8px); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 48px); width: auto; height: auto; border-radius: 12px; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 滚动显现：没有 JS 时内容照常显示 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav nav { gap: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-tall { grid-row: auto; }
  .bento > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav { height: 54px; }
  .nav nav a:not(:last-child) { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
    padding-top: 92px;
  }

  .hero-stage { max-width: 420px; }

  .split, .split-even, .with-phones { grid-template-columns: minmax(0, 1fr); }
  .flip .phones { order: 2; }
  .features { grid-template-columns: minmax(0, 1fr); }

  .poster-row {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .poster-row a { flex: 0 0 78%; scroll-snap-align: center; }

  .key-art img { min-height: 520px; object-position: 18% 50%; }
  .phones { max-width: 340px; }
  .with-phones { padding-bottom: 8%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-column: auto; }
  .card-media { grid-template-columns: minmax(0, 1fr); }
  .phones-sm { max-width: 300px; }
  .stat-panel dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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