/* 暖暖的方块小镇 · 官网样式
   零外链：字体用系统中文字体，国内可直接访问。
   设计系统见同目录 DESIGN.md（本文档的 token 与那份文档一一对应）。
   ─────────────────────────────────────────────────────────────
   token 分两层：
   1) 语义层（--canvas / --surface-* / --ink-* / --brand-* / --r-* / --s-* / --shadow-*）
      新代码只用这一层。
   2) 兼容层（--pink / --ink / --cream …）
      旧规则仍在引用，指向语义层；后续可逐段替换后删除。
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── 语义：品牌 ── */
  --brand: #f0679a;
  --brand-soft: #ff8fb1;
  --brand-deep: #cf4f7e;
  --brand-tint: #ffe3ec;
  --on-brand: #fff;

  /* ── 语义：画布与表面阶梯（4 级 + 反色）── */
  --canvas: #fffaf3;
  --surface-1: #fff;
  --surface-2: #fff4e6;
  --surface-3: #ffe3ec;
  --surface-4: #ffd0e0;
  --surface-hero: #cfeaff;
  --inverse-canvas: #5b4252;
  --inverse-surface: #7a5d6e;

  /* ── 语义：文字 ── */
  --ink-strong: #3f2c38;
  --ink: #5b4252;
  --ink-muted: #9a8290;
  --ink-subtle: #b8a5ae;
  --on-dark: #fffaf3;

  /* ── 语义：描边 ── */
  --hairline: #f7e1e5;
  --hairline-strong: #efd0d7;
  --hairline-brand: #ffc9da;

  /* ── 语义：糖果辅色（每色三件套：soft 底 / 基准 / ink 字）── */
  --accent-gold: #ffc94d;
  --accent-gold-soft: #fff4b8;
  --accent-gold-ink: #a8741a;
  --accent-mint: #6fcf9f;
  --accent-mint-soft: #d9f4e6;
  --accent-mint-ink: #2f8d63;
  --accent-sky: #7fc4f5;
  --accent-sky-soft: #e1f0fd;
  --accent-sky-ink: #3c8ede;
  --accent-lav: #a58bea;
  --accent-lav-soft: #e6defb;
  --accent-lav-ink: #6a4fc0;

  /* ── 语义：状态 ── */
  --semantic-success: #2f8d63;
  --semantic-warning: #a8741a;
  --semantic-danger: #d9455f;
  --semantic-overlay: rgba(60, 35, 50, .82);

  /* ── 语义：区块渐变中间色（只在两处 linear-gradient 出现）── */
  --wash-pink: #fff0f5;
  --wash-lav: #efe9fc;

  /* ── 圆角刻度 ── */
  --r-xs: .5rem;
  --r-sm: .7rem;
  --r-md: 1rem;
  --r-lg: 1.4rem;
  --r-xl: 1.8rem;
  --r-xxl: 2.4rem;
  --r-hero: 2.6rem;
  --r-pill: 99rem;
  --r-full: 50%;

  /* ── 间距刻度（基准 4px）── */
  --s-xxs: .35rem;
  --s-xs: .6rem;
  --s-sm: .9rem;
  --s-md: 1.4rem;
  --s-lg: 2rem;
  --s-xl: 3.5rem;
  --s-xxl: 5rem;
  --s-section: 6rem;

  /* ── 字阶 ── */
  --t-display-xl: clamp(3.6rem, 11.5vw, 9.6rem);
  --t-display-lg: clamp(2rem, 4.6vw, 3.8rem);
  --t-display-md: clamp(1.7rem, 4vw, 3.2rem);
  --t-headline: clamp(1.6rem, 2.6vw, 2.2rem);
  --t-title: 1.2rem;
  --t-lead: clamp(1rem, 1.25vw, 1.2rem);
  --t-body: 1rem;
  --t-body-sm: .95rem;
  --t-caption: .85rem;
  --t-micro: .72rem;

  /* ── 阴影阶梯（全部偏玫红，不用中性黑）── */
  --shadow-1: 0 .5rem 1.2rem rgba(190, 100, 130, .2);
  --shadow-2: 0 1.1rem 2.6rem rgba(190, 100, 130, .22), 0 .2rem .5rem rgba(190, 100, 130, .12);
  --shadow-3: 0 1.8rem 4rem rgba(190, 100, 130, .26), 0 .4rem 1rem rgba(190, 100, 130, .14);
  --shadow-press: 0 .1rem 0 rgba(0, 0, 0, .16);
  --shadow-key: 0 .32rem 0 rgba(0, 0, 0, .16);

  /* ── 字体 ── */
  --font-d: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-n: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-m: ui-monospace, Consolas, monospace;

  /* ── 缓动 ── */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);

  /* ── 兼容层：旧变量名 → 语义层 ── */
  --ink2: var(--ink-muted);
  --pink: var(--brand-soft);
  --pink2: var(--brand);
  --pink3: var(--brand-deep);
  --blush: var(--brand-tint);
  --cream: var(--canvas);
  --paper: var(--surface-2);
  --line: var(--hairline);
  --gold: var(--accent-gold);
  --mint: var(--accent-mint);
  --sky: var(--accent-sky);
  --lav: var(--accent-lav);
  --shadow: var(--shadow-2);
  --shadow-s: var(--shadow-1);
  --r: var(--r-xxl);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: clamp(14px, .5vw + 11px, 19px); scroll-behavior: smooth; scroll-padding-top: 5rem; }
html { touch-action: manipulation; }
body { touch-action: manipulation; margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-d); line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--brand-soft); color: var(--on-brand); }
:focus-visible { outline: .18rem solid var(--brand); outline-offset: .2rem; border-radius: var(--r-sm); }
.br-m { display: none; }
h1, h2, h3, .lead, .manifesto { text-wrap: balance; }

/* —— 开场幕布 —— */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(160deg, var(--surface-3), var(--surface-4) 60%, #ffc2d8); transition: transform 1s var(--ease) .1s, opacity .4s; }
.curtain.out { transform: translateY(-101%); }
.curtain-inner { text-align: center; color: var(--brand-deep); font-weight: 800; letter-spacing: .14em; }
.cubes { display: flex; gap: .7rem; justify-content: center; margin-bottom: 1.2rem; }
.cubes i { width: 1.6rem; height: 1.6rem; border-radius: var(--r-xs); background: var(--surface-1); box-shadow: 0 .4rem 0 var(--brand); animation: hop .9s var(--pop) infinite; }
.cubes i:nth-child(2) { animation-delay: .12s; background: var(--accent-gold-soft); }
.cubes i:nth-child(3) { animation-delay: .24s; background: var(--accent-mint-soft); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-1.1rem) rotate(12deg); } }

.progress { position: fixed; z-index: 60; left: 0; top: 0; height: .32rem; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brand-soft), var(--accent-gold), var(--accent-mint), var(--accent-sky)); }

/* —— 导航 —— */
.nav { position: fixed; z-index: 50; top: .9rem; left: 50%; transform: translateX(-50%); width: min(78rem, calc(100% - 1.6rem)); display: flex; align-items: center; gap: 1.2rem; padding: .55rem .7rem .55rem 1rem; border-radius: var(--r-pill); transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav.stuck { background: rgba(255, 250, 243, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow-1); }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; letter-spacing: .04em; color: var(--on-brand); text-shadow: 0 .12rem .5rem rgba(207, 79, 126, .55); transition: color .4s; }
.nav.stuck .brand { color: var(--brand-deep); text-shadow: none; }
.brand-cube { width: 1.9rem; height: 1.9rem; border-radius: var(--r-sm); background: linear-gradient(145deg, #ffb3cb, var(--brand)); display: grid; place-items: center; box-shadow: 0 .2rem 0 var(--brand-deep); }
.brand-cube i { width: .6rem; height: .6rem; border-radius: var(--r-xs); background: var(--surface-1); }
.nav-links { margin-left: auto; display: flex; gap: .3rem; }
.nav-links a { padding: .45rem .9rem; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem; color: var(--on-brand); text-shadow: 0 .1rem .4rem rgba(207, 79, 126, .5); transition: background .25s, color .25s; }
.nav.stuck .nav-links a { color: var(--ink); text-shadow: none; }
.nav-links a:hover { background: var(--brand-tint); color: var(--brand-deep); text-shadow: none; }

/* —— 按钮 —— */
.btn { --bg: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; position: relative; padding: .8rem 1.5rem; border-radius: var(--r-pill); font-weight: 800; letter-spacing: .06em; color: var(--on-brand); background: var(--bg); box-shadow: var(--shadow-key), var(--shadow-1); transition: transform .25s var(--pop), box-shadow .25s, filter .25s; will-change: transform; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(.2rem) !important; box-shadow: var(--shadow-press); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn small { font-weight: 600; opacity: .85; font-size: .72em; letter-spacing: .08em; padding-left: .6rem; border-left: .1rem solid rgba(255, 255, 255, .5); }
.btn-pink { background: linear-gradient(180deg, #ff9fbd, var(--brand)); }
.btn-ink { background: linear-gradient(180deg, var(--inverse-surface), var(--inverse-canvas)); }
.btn-ghost { background: rgba(255, 255, 255, .82); color: var(--brand-deep); backdrop-filter: blur(8px); box-shadow: 0 .32rem 0 rgba(207, 79, 126, .25), var(--shadow-1); }
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; box-shadow: 0 .22rem 0 rgba(0, 0, 0, .16); }
.btn-lg { padding: 1rem 2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* —— 首屏 —— */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: var(--surface-hero); }
.hero-media { position: absolute; inset: -4%; z-index: -2; will-change: transform; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
/* 小屏 / 省流模式：首屏只放海报，给一个播放按钮，点了才下载视频 */
.hero-play { position: absolute; left: 50%; bottom: max(6vh, 3rem); transform: translateX(-50%);
  z-index: 3; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-n); font-weight: 700; font-size: .95rem; color: var(--on-brand);
  background: linear-gradient(140deg, var(--brand-soft), var(--brand));
  box-shadow: 0 .5rem 1.4rem rgba(190, 100, 130, .38);
  -webkit-tap-highlight-color: transparent; transition: transform .18s, box-shadow .18s; }
.hero-play:active { transform: translateX(-50%) scale(.96); }
.hero-play svg { width: 1.05em; height: 1.05em; fill: currentColor; }
@media (min-width: 821px) { .hero-play { display: none; } }
.hero-wash { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255, 232, 242, .92) 0%, rgba(255, 232, 242, .62) 34%, rgba(255, 232, 242, 0) 66%),
  linear-gradient(0deg, rgba(255, 250, 243, 1) 0%, rgba(255, 250, 243, 0) 22%); }
.hero-body { padding: 7rem 0 7rem max(6vw, 1.4rem); max-width: 60rem; position: relative; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; font-family: var(--font-n); font-weight: 700; letter-spacing: .38em; font-size: .85rem; color: var(--brand); }
.eyebrow i { width: 3rem; height: .22rem; border-radius: 9px; background: var(--brand); }
.eyebrow em { font-style: normal; letter-spacing: .2em; padding: .15rem .7rem; border-radius: var(--r-pill); background: var(--surface-1); color: var(--brand-deep); box-shadow: var(--shadow-1); font-size: .75rem; }
.hero-title { margin: 1.1rem 0 1.4rem; font-weight: 900; line-height: 1.02; font-size: var(--t-display-xl); letter-spacing: .02em; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .l1 { color: var(--on-brand); --sk: var(--brand); }
.hero-title .l2 { color: var(--accent-gold-soft); --sk: var(--brand-deep); }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(6deg) scale(.8); -webkit-text-stroke: .09em var(--sk); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--sk), 0 .12em 0 var(--sk), 0 .18em 0 rgba(207, 79, 126, .55), 0 .3em .5em rgba(207, 79, 126, .3); transition: transform .9s var(--pop), opacity .5s; transition-delay: calc(var(--i) * 70ms + .35s); }
body:not(.is-loading) .hero-title .ch { opacity: 1; transform: none; }
.hero-title .ch:hover { transform: translateY(-.08em) rotate(-4deg) scale(1.06); transition-delay: 0s; transition-duration: .3s; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.4rem); font-weight: 600; color: var(--ink); max-width: 34em; opacity: 0; transform: translateY(1rem); transition: .9s var(--ease) 1s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; opacity: 0; transform: translateY(1rem); transition: .9s var(--ease) 1.15s; }
body:not(.is-loading) .hero-sub, body:not(.is-loading) .hero-cta { opacity: 1; transform: none; }
.eyebrow { opacity: 0; transition: opacity .8s .2s; } body:not(.is-loading) .eyebrow { opacity: 1; }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker { position: absolute; padding: .5rem 1.1rem; border-radius: var(--r-pill); background: var(--surface-1); color: var(--brand-deep); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-2); transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--rot)); transition: transform .5s var(--ease); opacity: 0; }
body:not(.is-loading) .sticker { opacity: 1; animation: bob 5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bob { 50% { margin-top: -.7rem; } }
.s1 { --rot: -6deg; --d: 0s; right: 24%; top: 22%; background: var(--accent-gold-soft); color: var(--accent-gold-ink); }
.s2 { --rot: 5deg; --d: .8s; right: 8%; top: 34%; }
.s3 { --rot: -3deg; --d: 1.6s; right: 18%; bottom: 24%; background: var(--accent-mint-soft); color: var(--accent-mint-ink); }
.s4 { --rot: 7deg; --d: 2.4s; right: 5%; bottom: 14%; background: var(--accent-lav-soft); color: var(--accent-lav-ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; width: 1.7rem; height: 2.8rem; margin-left: -.85rem; border: .18rem solid var(--brand); border-radius: var(--r-pill); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: .45rem; width: .32rem; height: .55rem; margin-left: -.16rem; border-radius: 9px; background: var(--brand); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(1rem); } }

/* 彩旗（SVG data URI 内含字面色值，无法引用 var，改色需同步这里） */
.bunting { position: absolute; left: 0; right: 0; bottom: -.1rem; height: 3.2rem; z-index: 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='52' viewBox='0 0 240 52'%3E%3Cpath d='M0 6Q60 24 120 6T240 6' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3Cpath d='M22 12l14 0-7 20zM64 17l14 0-7 20z' fill='%23ff8fb1'/%3E%3Cpath d='M43 15l14 0-7 20zM85 17l14 0-7 20z' fill='%23ffd24f'/%3E%3Cpath d='M106 15l14 0-7 20zM148 12l14 0-7 20z' fill='%236fcf9f'/%3E%3Cpath d='M127 12l14 0-7 20zM190 15l14 0-7 20z' fill='%237fc4f5'/%3E%3Cpath d='M169 17l14 0-7 20zM211 12l14 0-7 20z' fill='%23a58bea'/%3E%3C/svg%3E") repeat-x 0 0 / 15rem auto; filter: drop-shadow(0 .2rem .2rem rgba(190, 100, 130, .2)); animation: sway 9s linear infinite; }
@keyframes sway { to { background-position-x: 15rem; } }

/* —— 跑马灯 —— */
.marquee { overflow: hidden; background: var(--brand); color: var(--on-brand); padding: 1rem 0; transform: rotate(-1.2deg) scale(1.03); margin: -1.2rem 0 3rem; position: relative; z-index: 3; box-shadow: var(--shadow-1); }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .12em; animation: scroll 26s linear infinite; }
.marquee i { width: 1rem; height: 1rem; border-radius: var(--r-xs); background: var(--accent-gold-soft); transform: rotate(45deg); flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* —— 通用段落头 —— */
.kicker { font-family: var(--font-n); font-weight: 800; letter-spacing: .3em; font-size: .85rem; color: var(--brand); display: inline-flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: var(--r-xs); background: var(--brand-soft); box-shadow: .3rem .3rem 0 var(--accent-gold); }
.sec-head { max-width: 62rem; margin: 0 auto 3.5rem; padding: 0 1.4rem; text-align: center; }
.sec-head h2, .wardrobe h2, .foot h2 { margin: .9rem 0 1rem; font-weight: 900; font-size: var(--t-display-lg); line-height: 1.2; color: var(--ink); letter-spacing: .02em; }
.lead { font-size: var(--t-lead); color: var(--ink-muted); font-weight: 500; max-width: 38em; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(2.2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* —— 宣言 —— */
.intro { padding: 5rem 1.4rem 6rem; max-width: 70rem; margin: 0 auto; text-align: center; }
.manifesto { margin: 1.6rem 0 3.2rem; font-weight: 900; font-size: var(--t-display-md); line-height: 1.5; letter-spacing: .02em; }
.manifesto .w { color: rgba(91, 66, 82, .16); transition: color .5s; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.hl.on { color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact { padding: 1.4rem 1rem; border-radius: var(--r-xxl); background: var(--surface-1); box-shadow: var(--shadow-1); transition: transform .4s var(--pop), box-shadow .3s; }
.fact:hover { transform: translateY(-.4rem) rotate(-1.5deg); box-shadow: var(--shadow-2); }
.fact:nth-child(2n):hover { transform: translateY(-.4rem) rotate(1.5deg); }
.fact b { display: block; font-family: var(--font-n); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; color: var(--brand); font-weight: 900; }
.fact span { font-weight: 700; color: var(--ink-muted); font-size: .95rem; }

/* —— 小游戏 —— */
.games { padding: 4rem 0 6rem; background: linear-gradient(180deg, var(--canvas), var(--wash-pink) 20%, var(--wash-pink) 80%, var(--canvas)); }
.games-grid { max-width: 80rem; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.stage { position: sticky; top: 6.5rem; }
.monitor { border-radius: var(--r-xl); background: var(--surface-1); box-shadow: var(--shadow-2); overflow: hidden; border: .5rem solid var(--surface-1); }
.monitor-bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; background: var(--surface-1); font-weight: 800; font-size: .85rem; color: var(--ink-muted); }
.monitor-bar i { width: .7rem; height: .7rem; border-radius: var(--r-full); background: #ffc2d6; } .monitor-bar i:nth-child(2) { background: #ffe29a; } .monitor-bar i:nth-child(3) { background: #b9ead0; }
.monitor-bar span { margin-left: auto; color: var(--brand-deep); transition: opacity .3s; }
.monitor-screen { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: #ffe8f0; }
.monitor-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1.1s var(--ease); }
.monitor-screen video.on { opacity: 1; transform: none; }
.dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.dots li { width: .7rem; height: .7rem; border-radius: .25rem; background: #f2c9d8; transition: .4s var(--pop); }
.dots li.on { width: 2.4rem; background: var(--brand); }
.panels { display: flex; flex-direction: column; }
.gpanel { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .9rem; opacity: .35; transform: scale(.97); transform-origin: left center; transition: opacity .5s, transform .6s var(--ease); }
.gpanel.on { opacity: 1; transform: none; }
.gpanel .num { font-family: var(--font-n); font-weight: 900; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; color: var(--c); opacity: .35; }
.gpanel .tag { padding: .25rem .9rem; border-radius: var(--r-pill); background: var(--c2); color: var(--c); font-weight: 800; font-size: .85rem; letter-spacing: .1em; filter: saturate(1.4) brightness(.85); }
.gpanel h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: .03em; }
.gpanel .tagline { font-size: 1.1rem; font-weight: 600; color: var(--ink); max-width: 26em; }
.how { display: grid; gap: .6rem; margin-top: .6rem; width: 100%; max-width: 30rem; }
.how li { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--shadow-1); font-size: .95rem; font-weight: 600; }
kbd { flex: none; min-width: 3.4rem; text-align: center; padding: .15rem .6rem; border-radius: var(--r-sm); background: var(--c2); color: var(--c); font: 800 .8rem var(--font-n); border-bottom: .18rem solid var(--c); filter: saturate(1.4) brightness(.85); }
.pmedia { display: none; }

/* —— 换装 —— */
.wardrobe { padding: 6rem 0 4rem; background: linear-gradient(180deg, var(--canvas), var(--wash-lav) 18%, var(--wash-lav) 82%, var(--canvas)); overflow: hidden; }
.wardrobe-top { max-width: 80rem; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.wardrobe h2 { text-align: left; }
.wardrobe .lead { margin: 0; }
.style-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.style-chips li { padding: .45rem 1.2rem; border-radius: var(--r-pill); background: var(--c); color: var(--on-brand); font-weight: 800; letter-spacing: .12em; box-shadow: 0 .25rem 0 rgba(0, 0, 0, .14); }
.wardrobe-frame { position: relative; border-radius: var(--r-xxl); overflow: hidden; box-shadow: var(--shadow-2); border: .5rem solid var(--surface-1); transform: rotate(1.6deg); transition: transform .6s var(--pop); background: var(--surface-1); }
.wardrobe-frame:hover { transform: rotate(0) scale(1.02); }
.wardrobe-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wardrobe-frame figcaption { position: absolute; left: .9rem; bottom: .9rem; padding: .3rem 1rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); font-weight: 800; font-size: .85rem; color: var(--accent-lav); }
.sets { margin-top: 4rem; overflow-x: auto; scrollbar-width: none; cursor: grab; padding: 1.4rem 0 2rem; -webkit-overflow-scrolling: touch; }
.sets::-webkit-scrollbar { display: none; }
.sets.drag { cursor: grabbing; user-select: none; }
.sets-track { display: flex; gap: 1.1rem; width: max-content; padding: 0 max(1.4rem, calc((100vw - 80rem) / 2 + 1.4rem)); }
.set { position: relative; width: 17rem; min-height: 13rem; padding: 1.1rem 1.2rem 1.3rem; border-radius: var(--r-xl); background: var(--surface-1); box-shadow: var(--shadow-1); border-top: .5rem solid var(--c); display: flex; flex-direction: column; gap: .35rem; transition: transform .45s var(--pop), box-shadow .3s; flex: none; }
.set:hover { transform: translateY(-.6rem) rotate(-1deg); box-shadow: var(--shadow-2); }
.set .stars { color: var(--accent-gold); letter-spacing: .1em; font-size: .95rem; text-shadow: 0 .05rem 0 #e9a520; }
.set h4 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.set .note { font-size: .78rem; font-weight: 700; color: var(--c); letter-spacing: .06em; }
.set .anchor { font-size: .85rem; color: var(--ink-muted); line-height: 1.55; font-weight: 500; }
.set::after { content: ""; position: absolute; right: -.8rem; bottom: -.8rem; width: 4rem; height: 4rem; border-radius: var(--r-lg); background: var(--c); opacity: .13; transform: rotate(18deg); }
.sets-hint { text-align: center; color: var(--ink-muted); font-size: .9rem; font-weight: 600; }

/* —— 家园 —— */
.home { padding: 6rem 0; }
.bento { max-width: 80rem; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12.5rem; gap: 1rem; }
.bcard { position: relative; border-radius: var(--r-xxl); overflow: hidden; background: var(--surface-1); box-shadow: var(--shadow-1); transition: transform .5s var(--pop), box-shadow .3s; isolation: isolate; }
.bcard:hover { transform: translateY(-.35rem) scale(1.012); box-shadow: var(--shadow-2); }
.bcard:has(video) { display: flex; flex-direction: column; }
.bcard video { flex: 1; min-height: 0; width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bcard:has(video) { overflow: hidden; }
.bcard:hover video { transform: scale(1.04); }
.bcap { position: relative; z-index: 1; padding: .9rem 1.3rem 1.1rem; background: var(--surface-1); }
.bcap h3 { font-size: var(--t-title); font-weight: 900; letter-spacing: .03em; } .bcap p { font-size: .88rem; color: var(--ink-muted); font-weight: 500; line-height: 1.5; }
.b-house { grid-column: span 2; grid-row: span 2; }
.b-decor { grid-column: span 2; grid-row: span 2; }
.b-farm { grid-column: span 1; grid-row: span 2; }
.b-night { grid-column: span 1; grid-row: span 2; }
.b-note { padding: 1.3rem; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.b-note b { font-size: 1.25rem; font-weight: 900; } .b-note p { color: var(--ink-muted); font-size: .9rem; font-weight: 500; line-height: 1.55; }
.b-n1 { grid-column: span 2; background: var(--accent-mint-soft); } .b-n1 b { color: var(--accent-mint-ink); }
.b-n2 { grid-column: span 1; background: var(--accent-gold-soft); } .b-n2 b { color: var(--accent-gold-ink); }
.b-n3 { grid-column: span 1; background: var(--brand-tint); } .b-n3 b { color: var(--brand-deep); }

/* —— 宣传片 —— */
.trailer { padding: 2rem 1.4rem 7rem; max-width: 76rem; margin: 0 auto; }
.trailer-card { position: relative; display: block; width: 100%; aspect-ratio: 16/8; border-radius: var(--r-hero); overflow: hidden; box-shadow: var(--shadow-2); border: .55rem solid var(--surface-1); padding: 0; background: var(--brand-tint); }
.trailer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.trailer-card:hover img { transform: scale(1.05); }
.trailer-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(91, 66, 82, .55), rgba(91, 66, 82, 0) 55%); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 6.2rem; height: 6.2rem; margin: -3.1rem; border-radius: var(--r-full); background: var(--surface-1); display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform .4s var(--pop); }
.play::before { content: ""; position: absolute; inset: -.7rem; border-radius: var(--r-full); border: .2rem solid var(--surface-1); opacity: .7; animation: ring 2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.5); opacity: 0; } }
.play svg { width: 2.4rem; fill: var(--brand); margin-left: .25rem; }
.trailer-card:hover .play { transform: scale(1.12); }
.trailer-cap { position: absolute; z-index: 2; left: 1.8rem; bottom: 1.4rem; color: var(--on-brand); text-align: left; }
.trailer-cap b { display: block; font-size: 1.5rem; font-weight: 900; } .trailer-cap em { font-style: normal; font-weight: 600; opacity: .9; }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--semantic-overlay); backdrop-filter: blur(10px); padding: 1.2rem; animation: fade .3s; }
.modal[hidden] { display: none; }
.modal video { width: min(70rem, 100%); max-height: 86vh; border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-3); }
.modal-x { position: absolute; top: 1rem; right: 1.2rem; width: 3rem; height: 3rem; border-radius: var(--r-full); background: var(--surface-1); color: var(--brand-deep); font-size: 1.8rem; line-height: 1; box-shadow: var(--shadow-1); }
@keyframes fade { from { opacity: 0; } }

/* —— 下载 —— */
.download { padding: 6rem 0; background: linear-gradient(180deg, var(--canvas), var(--wash-pink) 15%, var(--wash-pink) 100%); }
.dl-grid { max-width: 78rem; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.dl-notice { max-width: 78rem; margin: 0 auto 1.5rem; padding: .75rem 1.4rem; border-radius: var(--r-pill); background: var(--accent-gold-soft); color: #7a4c00; font-weight: 800; font-size: .95rem; text-align: center; }
.dl { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 2.2rem 1.6rem 1.6rem; border-radius: var(--r-xxl); background: var(--surface-1); box-shadow: var(--shadow-1); transition: transform .5s var(--pop), box-shadow .3s; }
.dl:hover { transform: translateY(-.5rem); box-shadow: var(--shadow-2); }
.dl.rec { outline: .22rem solid var(--brand); outline-offset: .3rem; }
.dl-badge { position: absolute; top: -.8rem; left: 1.4rem; padding: .2rem .9rem; border-radius: var(--r-pill); background: var(--accent-gold); color: #7a4c00; font-weight: 800; font-size: .78rem; letter-spacing: .08em; opacity: 0; transform: scale(.7); transition: .4s var(--pop); }
.dl.rec .dl-badge { opacity: 1; transform: none; }
.dl-ico { width: 3.6rem; height: 3.6rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-tint); box-shadow: 0 .25rem 0 #f7c9d8; }
.dl-ico svg { width: 1.9rem; fill: var(--brand); }
.dl-android .dl-ico { background: #dff3e8; box-shadow: 0 .25rem 0 #b9e2cb; } .dl-android .dl-ico svg { fill: #3aa874; }
.dl-win .dl-ico { background: var(--accent-sky-soft); box-shadow: 0 .25rem 0 #b5d6f3; } .dl-win .dl-ico svg { fill: var(--accent-sky-ink); }
.dl h3 { font-size: 1.6rem; font-weight: 900; }
.dl > p { color: var(--ink-muted); font-weight: 500; font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .6rem; }
.meta div { padding: .3rem .8rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .8rem; }
.meta dt { display: inline; color: var(--ink-muted); font-weight: 600; } .meta dt::after { content: " "; }
.meta dd { display: inline; margin: 0; font-weight: 800; }
.dl .btn { margin-top: auto; }
.note { color: var(--ink-muted); font-size: .8rem; line-height: 1.55; }
.how-to { font-size: .85rem; color: var(--ink-muted); } .how-to summary { cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.how-to ol { list-style: decimal; padding-left: 1.2rem; margin-top: .4rem; display: grid; gap: .25rem; }
.hash { text-align: left; font-size: var(--t-micro); color: var(--ink-muted); font-weight: 600; padding: .3rem .6rem; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash code { font-family: var(--font-m); margin-left: .3rem; }
.hash.ok { background: var(--accent-mint-soft); color: var(--accent-mint-ink); }

.changelog { max-width: 52rem; margin: 5rem auto 0; padding: 0 1.4rem; }
.changelog h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 1.4rem; }
.changelog ol { position: relative; display: grid; gap: 1.6rem; padding-left: 1.8rem; }
.changelog ol::before { content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: .22rem; border-radius: 9px; background: linear-gradient(var(--brand-soft), var(--accent-lav)); }
.log { position: relative; }
.log::before { content: ""; position: absolute; left: -1.8rem; top: .45rem; width: .95rem; height: .95rem; border-radius: var(--r-xs); background: var(--surface-1); border: .2rem solid var(--brand); }
.log:first-child::before { background: var(--brand); box-shadow: 0 0 0 .3rem rgba(255, 143, 177, .3); }
.log h4 { margin: 0; font-size: 1.15rem; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.log h4 em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ink-muted); }
.log h4 span { font-size: .72rem; padding: .1rem .6rem; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); letter-spacing: .1em; }
.log ul { margin-top: .5rem; display: grid; gap: .3rem; }
.log li { font-size: .95rem; padding-left: 1.1rem; position: relative; font-weight: 500; }
.log li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: var(--r-xs); background: var(--brand-soft); }

/* —— FAQ —— */
.faq { padding: 5rem 0 6rem; }
.faq-list { max-width: 50rem; margin: 0 auto; padding: 0 1.4rem; display: grid; gap: .8rem; }
.faq details { background: var(--surface-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 0 1.4rem; transition: box-shadow .3s; }
.faq details:hover { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; transition: transform .35s var(--pop); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-muted); font-weight: 500; }

/* —— 页脚 —— */
.foot { position: relative; padding: 7rem 1.4rem 3rem; text-align: center; background: linear-gradient(180deg, var(--canvas), var(--surface-4)); overflow: hidden; }
.foot h2 { margin-top: 0; }
.foot .bunting-foot { top: 1.6rem; bottom: auto; }
.disclaimer { margin: 4rem auto 0; max-width: 46rem; font-size: .8rem; color: var(--brand-deep); opacity: .85; font-weight: 600; line-height: 1.9; }


/* —— 1.1 更新 —— */
.update { padding: 2rem 0 6rem; }
.up-grid { max-width: 80rem; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.up-main { position: relative; grid-column: 1 / -1; aspect-ratio: 16/7; border-radius: var(--r-xxl); overflow: hidden; border: .5rem solid var(--surface-1); box-shadow: var(--shadow-2); background: var(--brand-tint); padding: 0; }
.up-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.up-main:hover img { transform: scale(1.04); }
.up-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(91, 66, 82, .55), rgba(91, 66, 82, 0) 55%); }
.up-main:hover .play { transform: scale(1.12); }
.up-card { display: flex; flex-direction: column; border-top: .45rem solid var(--c); }
.up-card video { flex: none; aspect-ratio: 16/10; }
.up-card .bcap { flex: 1; padding-top: 1.1rem; }
.up-no { display: inline-block; margin-bottom: .2rem; font: 900 .85rem var(--font-n); letter-spacing: .14em; color: var(--c); filter: saturate(1.3) brightness(.9); }
.up-more { max-width: 80rem; margin: 1.8rem auto 0; padding: 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.up-more li { padding: .4rem 1.1rem; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: var(--shadow-1); font-weight: 700; font-size: .92rem; color: var(--ink); }
.up-more li::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .55rem; border-radius: .2rem; background: var(--brand-soft); transform: rotate(45deg); }
.up-more li:nth-child(2n)::before { background: var(--accent-gold); } .up-more li:nth-child(3n)::before { background: var(--accent-mint); }
@media (max-width: 62rem) {
  .up-grid { grid-template-columns: 1fr 1fr; }
  .up-main { aspect-ratio: 16/9; border-radius: var(--r-xl); }
}
@media (max-width: 36rem) { .up-grid { grid-template-columns: 1fr; } }

.up12 { max-width: 80rem; margin: 1.4rem auto 0; padding: 0 1.4rem; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; align-items: stretch; }
.up12-txt { padding: 1.8rem 1.8rem 1.6rem; border-radius: var(--r-xxl); background: linear-gradient(160deg, var(--accent-gold-soft), var(--brand-tint)); box-shadow: var(--shadow-1); }
.up12-txt h3 { margin: .7rem 0 .6rem; font-size: var(--t-headline); font-weight: 900; line-height: 1.25; }
.up12-txt > p:not(.kicker) { color: var(--ink); font-weight: 500; font-size: .98rem; }
.up12-txt ul { margin-top: 1rem; display: grid; gap: .4rem; }
.up12-txt li { position: relative; padding-left: 1.2rem; font-weight: 700; font-size: .92rem; }
.up12-txt li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: .18rem; background: var(--brand); transform: rotate(45deg); }
.up12 figure { position: relative; border-radius: var(--r-xxl); overflow: hidden; border: .45rem solid var(--surface-1); box-shadow: var(--shadow-1); background: var(--brand-tint); min-height: 15rem; }
.up12 figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.up12 figure:hover img { transform: scale(1.05); }
.up12 figcaption { position: absolute; z-index: 1; left: .8rem; bottom: .8rem; padding: .25rem .9rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); font-weight: 800; font-size: .82rem; color: var(--brand-deep); }
@media (max-width: 62rem) { .up12 { grid-template-columns: 1fr 1fr; } .up12-txt { grid-column: 1 / -1; } }
@media (max-width: 36rem) { .up12 { grid-template-columns: 1fr; } }

.newpill { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; padding: .35rem 1rem .35rem .4rem; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: var(--shadow-1); font-weight: 800; font-size: .92rem; color: var(--ink); opacity: 0; transform: translateY(.6rem); transition: opacity .7s .15s, transform .7s var(--pop) .15s, box-shadow .3s; }
body:not(.is-loading) .newpill { opacity: 1; transform: none; }
.newpill:hover { box-shadow: var(--shadow-2); }
.newpill b { padding: .1rem .7rem; border-radius: var(--r-pill); background: linear-gradient(180deg, #ffd76a, #ffc23d); color: #7a4c00; font: 900 .78rem var(--font-n); letter-spacing: .12em; }
.newpill i { font-style: normal; color: var(--brand); transition: transform .3s var(--pop); }
.newpill:hover i { transform: translateX(.3rem); }
.update .up12 { margin: 0 auto 3.2rem; }
.up-sub { max-width: 80rem; margin: 0 auto 1.2rem; padding: 0 1.4rem; display: flex; align-items: center; gap: .8rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 900; }
.up-sub span { padding: .1rem .8rem; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-deep); font: 900 .9rem var(--font-n); letter-spacing: .1em; }
/* 旧版本更新：文字折叠卡，点开才展开 */
.up-old { max-width: 80rem; margin: .9rem auto 0; border: 1px solid var(--hairline-brand); border-radius: 1.3rem; background: var(--surface-1); box-shadow: var(--shadow-1); padding: 1.05rem 1.4rem; }
.up-old summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; font-weight: 900; font-size: clamp(1.12rem, 2vw, 1.45rem); color: var(--ink-strong); list-style: none; }
.up-old summary::-webkit-details-marker { display: none; }
.up-old .up-ver { flex: none; padding: .1rem .8rem; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-deep); font: 900 .9rem var(--font-n); letter-spacing: .1em; }
.up-old summary::after { content: "+"; margin-left: auto; flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-weight: 900; transition: transform .25s var(--pop); }
.up-old[open] summary::after { transform: rotate(45deg); }
.up-old-body { margin-top: .9rem; color: var(--ink); line-height: 1.85; font-size: .98rem; }
.up-old-body ul { margin: .5rem 0 0; padding-left: 1.3rem; }
.up-old-body li { margin: .3rem 0; }
.up-old-body strong { color: var(--brand-deep); }

.update > .up-grid:first-of-type { margin-bottom: 1rem; }
.up12-old { grid-template-columns: 1.6fr 1fr; margin-bottom: 3.2rem !important; }
.up12-old .up12-txt { background: var(--surface-1); }
.up12-old .up12-txt h3 { margin-top: 0; }
.up-main-old { aspect-ratio: 16/5; }
@media (max-width: 62rem) { .up12-old { grid-template-columns: 1fr; } .up-main-old { aspect-ratio: 16/9; } }

/* —— 响应式 —— */
/* 窄屏不再隐藏主导航：顶栏折成两行，第二行链接可横向滑动 */
@media (max-width: 62rem) {
  html { scroll-padding-top: 7.6rem; }
  .nav { flex-wrap: wrap; row-gap: .25rem; }
  .nav-links { display: flex; order: 3; flex: 1 1 100%; margin-left: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: .1rem .15rem .2rem; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; font-size: .88rem; }
  .stickers { display: none; }
  .hero-wash { background: linear-gradient(0deg, rgba(255, 250, 243, 1) 0%, rgba(255, 232, 242, .78) 40%, rgba(255, 232, 242, .5) 100%); }
  .hero-body { padding: 7rem 1.4rem 7rem; }
  .games-grid { grid-template-columns: 1fr; gap: 0; }
  .stage { display: none; }
  .gpanel { min-height: 0; padding: 2rem 0 3rem; opacity: 1; transform: none; }
  .pmedia { display: block; width: 100%; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); border: .4rem solid var(--surface-1); aspect-ratio: 16/9; margin-bottom: .6rem; }
  .pmedia video { width: 100%; height: 100%; object-fit: cover; }
  .wardrobe-top { grid-template-columns: 1fr; gap: 2.4rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bcard:has(video) { grid-column: span 2; grid-row: auto; }
  .bcard video { flex: none; aspect-ratio: 16/9; }
  .b-note { grid-column: span 2; grid-row: auto; min-height: 7rem; }
  .b-n2, .b-n3 { grid-column: span 1; }
  .dl-grid { grid-template-columns: 1fr; max-width: 30rem; gap: 1.8rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .br-m { display: inline; }
}
@media (max-width: 36rem) {
  .brand b { font-size: .95rem; }
  .hero-title { font-size: clamp(3.2rem, 17vw, 5rem); }
  .trailer-card { aspect-ratio: 4/3; border-radius: var(--r-xl); }
  .play { width: 4.6rem; height: 4.6rem; margin: -2.3rem; }
  .set { width: 14.5rem; }
  .nav { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
  .dl-card .btn { min-height: 44px; width: 100%; justify-content: center; }
  .up-old { padding: .95rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   二期 · 海报化改版（Poster Pass）
   ──────────────────────────────────────────────────────────────────────────
   目标：把「居中堆叠的 AI 落地页」改成「有版式骨架的编辑部海报」。

   四条改动原则（对应 DESIGN.md 的 Do's）：
   1. 标题不居中。所有区块头改成左对齐 + 顶部发丝线 + 右侧期号，形成栅格感。
   2. 减少浮夸。卡片去掉厚投影与描边，改用「表面阶梯 + 发丝线」分层（克制）。
   3. 首屏是海报。标题压紧、加大、贴左；元信息做成期刊格式的页脚栏。
   4. 长页面要收。更新日志折叠到 3 条，再给展开。

   所有规则均为覆盖，不改动原有选择器语义；旧值保留在文件上方。
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* 版式栅格：与 max-width 80rem 内容区对齐 */
  --gutter: max(5vw, 1.4rem);
  --rule: .1rem solid var(--hairline);
  --rule-strong: .1rem solid var(--hairline-strong);
}

/* ══ 1. 区块头：编辑部式左对齐 ══════════════════════════════════════════ */
.sec-head {
  max-width: 78rem;
  margin: 0 auto 3rem;
  padding: 1.5rem var(--gutter) 0;
  text-align: left;
  border-top: var(--rule-strong);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2rem;
  row-gap: .7rem;
  align-items: start;
}
/* 期号：用 data-no 提供，没有就退化成序号 */
.sec-head::before {
  content: attr(data-no);
  grid-column: 1;
  grid-row: 1;
  font: 800 .72rem/1 var(--font-n);
  letter-spacing: .2em;
  color: var(--brand);
  padding-top: .55rem;
}
.sec-head > * { grid-column: 2; }
.sec-head .kicker {
  grid-row: 1;
  align-self: center;
  padding-top: 0;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--brand-deep);
}
/* 去掉 3D 小方块投影，改成一条短杠——更像印刷品 */
.sec-head .kicker::before {
  width: 1.8rem;
  height: .12rem;
  border-radius: 0;
  background: var(--brand);
  box-shadow: none;
}
.sec-head h2 {
  max-width: 22em;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink-strong);
}
.sec-head .lead {
  margin: 0;
  max-width: 34em;
  font-size: var(--t-body-sm);
  line-height: 1.85;
  color: var(--ink-muted);
}
.sec-head .lead + .lead { margin-top: -.2rem; }
.sec-head .lead strong { color: var(--ink); font-weight: 700; }

/* ══ 2. 首屏海报 ════════════════════════════════════════════════════════ */
.hero-body {
  padding: 6.5rem var(--gutter) 5.5rem;
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
}
.hero-title {
  margin: 1rem 0 1.2rem;
  line-height: .94;
  letter-spacing: -.02em;
}
.hero-title .line { letter-spacing: -.02em; }
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.8;
  font-weight: 500;
  color: var(--ink);
  max-width: 30em;
}
.hero-cta { margin-top: 1.8rem; gap: .75rem; }

/* 首屏底部元信息栏：期刊格式 */
.hero-meta-rule {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 4.6rem;
  height: .1rem;
  background: rgba(91, 66, 82, .16);
  z-index: 2;
  pointer-events: none;
}
.hero-meta-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  font: 600 .72rem/1.4 var(--font-n);
  letter-spacing: .16em;
  color: var(--ink-muted);
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
}
.hero-meta-line b { color: var(--brand-deep); font-weight: 800; }

/* 贴纸：降低糖果感，改成印刷标签 */
.sticker {
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .42rem .95rem;
  box-shadow: none;
  border: var(--rule-strong);
  backdrop-filter: blur(2px);
}
.s1 { background: var(--accent-gold-soft); border-color: var(--accent-gold-ink); }
.s3 { background: var(--accent-mint-soft); border-color: var(--accent-mint-ink); }
.s4 { background: var(--accent-lav-soft); border-color: var(--accent-lav-ink); }

/* 滚动提示：缩短，避免压彩旗 */
.scroll-cue { bottom: 5.4rem; height: 2.2rem; opacity: .55; }

/* ══ 3. 宣言区：拉成海报里的一段大字 ═══════════════════════════════════ */
.intro {
  max-width: 78rem;
  padding: 4.5rem var(--gutter) 5rem;
  text-align: left;
}
.manifesto {
  margin: 1.2rem 0 2.6rem;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.6;
  letter-spacing: -.005em;
  max-width: 26em;
}
.facts {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.fact {
  padding: 1.5rem 1rem;
  border-radius: 0;
  background: var(--canvas);
  box-shadow: none;
  text-align: left;
}
.fact:hover, .fact:nth-child(2n):hover { transform: none; box-shadow: none; background: var(--surface-1); }
.fact b { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; color: var(--ink-strong); }
.fact span { display: block; margin-top: .35rem; font-size: .8rem; letter-spacing: .08em; color: var(--ink-muted); }

/* ══ 4. 卡片：去厚度，靠表面与发丝线分层 ═══════════════════════════════ */
.dl {
  border-radius: var(--r-lg);
  box-shadow: none;
  border: var(--rule);
  padding: 2rem 1.5rem 1.5rem;
}
.dl:hover { transform: none; box-shadow: none; border-color: var(--hairline-strong); background: var(--surface-2); }
.dl.rec { outline: none; border-color: var(--brand); }
.dl.rec .dl-badge { border-radius: 0; padding: .18rem .7rem; letter-spacing: .12em; font-size: .68rem; }
.dl-badge { border-radius: 0; }
.dl-ico { width: 2.9rem; height: 2.9rem; border-radius: var(--r-sm); box-shadow: none; }
.dl h3 { font-size: 1.35rem; letter-spacing: .01em; }
.dl .btn { border-radius: var(--r-pill); }

.dl-grid { gap: 1px; background: var(--hairline); }
@media (max-width: 62rem) { .dl-grid { gap: 1px; } }

/* bento / 组合卡 */
.bcard { border-radius: var(--r-lg); box-shadow: none; border: var(--rule); }
.bcard:hover { transform: none; box-shadow: none; }
.b-card:hover video, .bcard:hover video { transform: none; }
.bcap { background: transparent; }
.b-n1, .b-n2, .b-n3 { border: 0; }

/* 套装条 */
.set { border-radius: var(--r-md); box-shadow: none; border: var(--rule); border-top-width: .4rem; }
.set:hover { transform: none; box-shadow: none; background: var(--surface-2); }
.set::after { display: none; }

/* FAQ */
.faq details { border-radius: var(--r-md); box-shadow: none; border: var(--rule); }
.faq details:hover { box-shadow: none; border-color: var(--hairline-strong); }

/* 更新块 */
.up12-txt { border-radius: var(--r-lg); box-shadow: none; border: var(--rule); }
.up12 figure { border-radius: var(--r-lg); border: 0; box-shadow: none; }
.up-main { border-radius: var(--r-lg); border: 0; box-shadow: none; }
.up-card { border-top-width: .4rem; }
.up-more li { box-shadow: none; border: var(--rule); }

/* 小游戏面板 */
.how li { border-radius: var(--r-sm); box-shadow: none; border: var(--rule); }
.monitor { border-radius: var(--r-lg); border: 0; box-shadow: none; outline: var(--rule); }
.gpanel .num { opacity: .22; letter-spacing: -.02em; }
.gpanel .tag { border-radius: 0; letter-spacing: .16em; font-size: .72rem; }

/* 换装 */
.wardrobe-frame { border-radius: var(--r-lg); border: 0; box-shadow: none; transform: none; outline: var(--rule); }
.wardrobe-frame:hover { transform: none; }
.style-chips li { border-radius: 0; letter-spacing: .16em; font-size: .78rem; box-shadow: none; }
.style-chips li:nth-child(1) { background: var(--brand); }
.style-chips li:nth-child(2) { background: var(--accent-mint-ink); }
.style-chips li:nth-child(3) { background: var(--accent-lav-ink); }
.style-chips li:nth-child(4) { background: var(--accent-sky-ink); }

/* 宣传片 */
.trailer-card { border-radius: var(--r-lg); border: 0; box-shadow: none; outline: var(--rule); }
.play { width: 5rem; height: 5rem; margin: -2.5rem; box-shadow: 0 0 0 .6rem rgba(255,255,255,.35); }

/* ══ 5. 区块节奏：用整幅色带代替渐变 ═══════════════════════════════════ */
.games { background: var(--surface-2); }
.wardrobe { background: var(--canvas); }
.home { background: var(--canvas); }
.download { background: var(--surface-2); }
.faq { background: var(--canvas); }

/* 区块标题统一到同一基线 */
.wardrobe h2 { max-width: 20em; }
.wardrobe .lead { max-width: 32em; }

/* ══ 6. 页脚：海报版权页 ══════════════════════════════════════════════ */
.foot {
  background: var(--inverse-canvas);
  color: var(--on-dark);
  padding: 5rem var(--gutter) 2.5rem;
  text-align: left;
}
.foot h2 { color: var(--on-dark); font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 18em; margin: 0 0 1.6rem; }
.foot .btn-pink { box-shadow: none; }
.foot .bunting-foot { display: none; }
.disclaimer {
  margin: 3rem 0 0;
  max-width: 62em;
  color: rgba(255, 250, 243, .62);
  opacity: 1;
  font-size: .72rem;
  line-height: 2;
  letter-spacing: .02em;
  border-top: .1rem solid rgba(255, 250, 243, .18);
  padding-top: 1.4rem;
}
.disclaimer strong { color: var(--on-dark); }

/* ══ 7. 更新日志：折叠 ════════════════════════════════════════════════ */
.changelog { max-width: 78rem; margin: 4rem auto 0; padding: 0 var(--gutter); }
.changelog h3 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  padding-bottom: .7rem;
  border-bottom: var(--rule-strong);
}
.changelog ol { padding-left: 0; gap: 1.8rem; }
.changelog ol::before { display: none; }
.log { padding-left: 2.6rem; }
.log::before {
  left: 0;
  top: .5rem;
  width: .5rem;
  height: .5rem;
  border-radius: 0;
  border: 0;
  background: var(--brand-soft);
  transform: rotate(45deg);
}
.log:first-child::before { background: var(--brand); box-shadow: none; }
.log h4 { font-size: 1rem; letter-spacing: .01em; gap: .5rem .7rem; }
.log h4 em { font: 600 .7rem/1 var(--font-n); letter-spacing: .12em; color: var(--ink-subtle); }
.log h4 span { border-radius: 0; padding: .1rem .45rem; font-size: .64rem; letter-spacing: .16em; }
.log ul { margin-top: .6rem; gap: .35rem; }
.log li { font-size: .88rem; line-height: 1.75; color: var(--ink-muted); padding-left: 1rem; }
.log li::before { width: .3rem; height: .3rem; border-radius: 0; background: var(--hairline-strong); top: .72em; }

/* 折叠：默认只留前 3 条 */
.changelog:not(.open) .log:nth-child(n+4) { display: none; }
.log-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  border: var(--rule-strong);
  background: transparent;
  font: 700 .78rem/1 var(--font-d);
  letter-spacing: .08em;
  color: var(--ink);
  transition: background .25s, border-color .25s;
}
.log-more:hover { background: var(--surface-1); border-color: var(--brand); color: var(--brand-deep); }
.log-more::after { content: "↓"; font-size: .9em; }

/* ══ 8. 移动端收口 ════════════════════════════════════════════════════ */
@media (max-width: 62rem) {
  .sec-head { grid-template-columns: 1fr; padding-top: 1.2rem; margin-bottom: 2.2rem; }
  .sec-head::before { padding-top: 0; grid-row: auto; }
  .sec-head > * { grid-column: 1; }
  .sec-head .kicker { margin-bottom: .1rem; }
  .hero-body { padding: 5.5rem var(--gutter) 5rem; }
  .hero-meta-rule { bottom: 4.2rem; }
  .hero-meta-line { font-size: .64rem; letter-spacing: .1em; bottom: 1.9rem; }
  .scroll-cue { display: none; }
  .intro { padding: 3.5rem var(--gutter) 4rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .manifesto { font-size: clamp(1.25rem, 6vw, 1.9rem); line-height: 1.65; }
  .foot { padding: 4rem var(--gutter) 2rem; }
  .changelog { margin-top: 3rem; }
}
@media (max-width: 36rem) {
  .hero-title { letter-spacing: -.03em; line-height: .96; }
  .hero-meta-line { row-gap: .3rem; }
  .sec-head h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

/* ══ 9. 衣橱区块头（它不是 .sec-head，单独对齐一次）══════════════════ */
.wardrobe-text {
  position: relative;
  padding-top: 1.5rem;
  border-top: var(--rule-strong);
}
.wardrobe-text::before {
  content: attr(data-no);
  position: absolute;
  top: 1.5rem;
  left: 0;
  font: 800 .72rem/1 var(--font-n);
  letter-spacing: .2em;
  color: var(--brand);
}
.wardrobe-text .kicker {
  margin-top: 1.9rem;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--brand-deep);
}
.wardrobe-text .kicker::before {
  width: 1.8rem;
  height: .12rem;
  border-radius: 0;
  background: var(--brand);
  box-shadow: none;
}
.wardrobe-text h2 {
  margin: .8rem 0 1rem;
  max-width: 18em;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink-strong);
}
.wardrobe-text .lead {
  max-width: 30em;
  font-size: var(--t-body-sm);
  line-height: 1.85;
}
@media (max-width: 62rem) {
  .wardrobe-text { padding-top: 1.2rem; }
  .wardrobe-text::before { top: 1.2rem; }
  .wardrobe-text h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

/* ══ 10. 收尾修正 ══════════════════════════════════════════════════════ */
/* 跑马灯倾斜后两侧各溢出 23px；用容器内裁切替代横向溢出 */
.marquee { transform: rotate(-1.2deg) scale(1.012); margin-left: -1px; margin-right: -1px; }
body { overflow-x: clip; }

/* 首屏元信息栏上移，避开彩旗（彩旗高 3.2rem） */
.hero-meta-rule { bottom: 6.4rem; }
.hero-meta-line { bottom: 4rem; }
.scroll-cue { bottom: 7.6rem; }

/* 日志版本号：displayVersion 全是 3.0，改用真实版本号做主角 */
.log h4 { font-size: 1rem; }
.log h4 var {
  font-style: normal;
  font: 800 .82rem/1 var(--font-n);
  letter-spacing: .08em;
  color: var(--brand-deep);
  margin-right: .5rem;
}

@media (max-width: 62rem) {
  .hero-meta-rule { bottom: 5.2rem; }
  .hero-meta-line { bottom: 2.8rem; }
}

/* 跑马灯：彻底消除横向溢出（宽度锁死在 100% 内，倾斜靠裁切窗口） */
.marquee {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: rotate(-1.1deg);
  transform-origin: center top;
}
main, .hero, .intro, .update, .games, .wardrobe, .home, .trailer, .download, .faq { max-width: 100%; }

/* 最后 2px：亚像素取整，锁死根宽度 */
html, body { max-width: 100%; overflow-x: hidden; }

/* 移动端：hero-play 按钮下移会压彩旗，改为贴右侧竖排；元信息行再抬一档 */
@media (max-width: 62rem) {
  .hero-play { bottom: auto; top: 4.6rem; right: var(--gutter); left: auto; transform: none; }
  .hero-play:active { transform: scale(.96); }
  .hero-meta-rule { bottom: 6.2rem; }
  .hero-meta-line { bottom: 3.4rem; flex-direction: column; align-items: flex-start; gap: .2rem; }
  .hero-meta-line span:nth-child(2) { display: none; }
}

/* 移动端 hero-play：改为标题下方的一次性播放入口，避开导航与彩旗 */
@media (max-width: 62rem) {
  .hero-play {
    position: static;
    display: inline-flex;
    margin: 1.1rem 0 0;
    transform: none;
    padding: .55rem 1.1rem;
    font-size: .88rem;
  }
  .hero-play:active { transform: scale(.97); }
  .hero-cta { margin-top: 1.2rem; }
}

/* ══ 11. FAQ：改成期刊问答栏，与左对齐栅格对齐 ═══════════════════════ */
.faq { padding: 3rem 0 5rem; }
.faq-list {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 0;
  border-top: var(--rule-strong);
}
.faq details {
  border: 0;
  border-bottom: var(--rule);
  border-radius: 0;
  background: transparent;
  padding: 0;
  transition: background .25s;
}
.faq details:hover { background: rgba(255,255,255,.5); border-color: var(--hairline-strong); }
.faq details[open] { background: var(--surface-1); }
.faq summary {
  padding: 1.15rem .2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-strong);
}
.faq summary::after {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform .3s var(--pop);
}
.faq details p {
  padding: 0 2.4rem 1.4rem .2rem;
  font-size: .9rem;
  line-height: 1.9;
}

/* ══ 12. 宣言区 kicker 统一为一期短杠（去掉 3D 小方块）══════════════════ */
.intro .kicker {
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--brand-deep);
}
.intro .kicker::before {
  width: 1.8rem;
  height: .12rem;
  border-radius: 0;
  background: var(--brand);
  box-shadow: none;
}
.intro > .kicker { margin-bottom: .6rem; }

/* ══ 13. 五家小店：修左栏大片空白 ═══════════════════════════════════════
   问题：右栏 .panels 高 3690px（5 块 × 约 730px），左栏 .stage 只有 483px
   （一个 16:9 显示器），sticky 贴住后下面 3000px 全是奶油底 → 视觉上是空白。
   修法：
   ① 左栏改成整栏填满的固定舞台：显示器做大，下方接一块跟随当前店铺的
      信息卡（编号/店名/标签），贴住时整栏都有内容。
   ② 右栏面板从 82vh 压到内容高度，减少总滚动距离。
   ════════════════════════════════════════════════════════════════════════ */

/* ① 左栏：填满 */
.stage {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-self: start;
  max-height: calc(100vh - 9rem);
}
.monitor { width: 100%; }
.monitor-screen { aspect-ratio: 16 / 10; }
.monitor-bar { padding: .5rem .8rem; font-size: .78rem; letter-spacing: .06em; }

/* 舞台信息卡：跟着当前店铺切换，填掉显示器下方的空隙 */
.stage-info {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.3rem 1.4rem 1.4rem;
  border: var(--rule);
  border-radius: var(--r-md);
  background: var(--surface-1);
  min-height: 8.5rem;
}
.stage-info .si-row {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  flex-wrap: wrap;
}
.stage-info .si-no {
  font: 900 1.9rem/1 var(--font-n);
  letter-spacing: -.02em;
  color: var(--si-c, var(--brand));
}
.stage-info .si-tag {
  font: 800 .68rem/1 var(--font-d);
  letter-spacing: .16em;
  color: var(--si-c, var(--brand));
  padding: .22rem .55rem;
  border: 1px solid currentColor;
  border-radius: 0;
}
.stage-info .si-name {
  margin: 0;
  font: 900 1.35rem/1.3 var(--font-d);
  letter-spacing: .01em;
  color: var(--ink-strong);
}
.stage-info .si-line {
  margin: 0;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ② 右栏：面板高度收敛到内容，减少总滚动距离 */
.gpanel {
  min-height: 0;
  padding: 4.2rem 0;
  justify-content: flex-start;
  gap: .8rem;
}
.gpanel .num { font-size: clamp(3rem, 5vw, 4.6rem); }
.gpanel h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.gpanel .tagline { font-size: 1rem; }
.gpanel .tagline { }
.how { margin-top: .4rem; }

/* 指示点：改成带店名的进度条，增强「当前在第几家」的感知 */
.dots { justify-content: flex-start; gap: .45rem; margin-top: .2rem; }
.dots li { width: 1.6rem; height: .22rem; border-radius: 0; background: var(--hairline-strong); }
.dots li.on { width: 3.2rem; background: var(--brand); }

@media (max-width: 62rem) {
  .stage { position: static; max-height: none; display: none; }
  .gpanel { padding: 2rem 0 3rem; }
}

/* ══ 14. 五家小店：左栏彻底填满（覆盖 13 节）═════════════════════════════
   13 节只加了信息卡，但 sticky 元素总高仍远小于右栏，滚到第二块面板后
   左栏就整个出视口，下面继续空。
   14 节改成：sticky 容器高度 = 视口可用高度，内容用 space-between 撑开，
   让显示器 + 信息卡 + 进度条始终占满一屏。
   ════════════════════════════════════════════════════════════════════════ */

.stage {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  height: calc(100vh - 9rem);
  max-height: calc(100vh - 9rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.1rem;
}

/* 显示器吃掉剩余空间，屏幕按比例自适应 */
.monitor {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.monitor-screen {
  flex: 1 1 auto;
  min-height: 15rem;
  aspect-ratio: auto;         /* 取消固定比例，交给 flex 撑满 */
}
.monitor-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 信息卡固定在底部，吃掉剩下高度 */
.stage-info {
  flex: 0 0 auto;
  margin-top: auto;
}

/* 桌面端：面板高度与舞台一屏对齐，滚动时右栏正好一块一块过 */
@media (min-width: 62.01rem) {
  .gpanel {
    min-height: calc(100vh - 9rem);
    padding: 2rem 0;
    justify-content: center;
  }
}

@media (max-width: 62rem) {
  .stage { height: auto; max-height: none; }
  .monitor-screen { aspect-ratio: 16 / 10; }
}

/* ══ 15. 五家小店：修正 sticky 失效（覆盖 13/14 节）══════════════════════
   根因：.games-grid 是 grid，.stage 设了 height: calc(100vh - 9rem) 之后
   它的高度等于容器高度，sticky 没有可滑动余量，滚起来跟着一起走。
   sticky 元素必须「内容高度 < 父容器高度」才有粘滞效果。
   改法：高度恢复 auto（由内容撑），只保留 top 粘滞；
        左栏内容用「显示器 + 信息卡」两块，整体高度约一屏，滚到哪都看得见。
   ════════════════════════════════════════════════════════════════════════ */

.stage {
  position: -webkit-sticky;
  position: sticky;
  top: 5.5rem;
  align-self: start;          /* 关键：不要 stretch，否则高度=父容器高度，sticky 失效 */
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 显示器按固定比例，不被 flex 拉扁 */
.monitor { flex: none; display: block; }
.monitor-screen { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
.monitor-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 信息卡紧跟其后 */
.stage-info { flex: none; margin-top: 0; }

/* 右栏面板：每块一屏，滚动时正好一块一块换 */
@media (min-width: 62.01rem) {
  .gpanel {
    min-height: calc(100vh - 10rem);
    padding: 2rem 0;
    justify-content: center;
  }
}

@media (max-width: 62rem) {
  .stage { position: static; height: auto; max-height: none; display: none; }
  .monitor-screen { aspect-ratio: 16 / 10; }
}

/* ══ 16. 修 sticky 失效的真凶 ════════════════════════════════════════════
   15 节之前为了消掉 23px 横向溢出，写了：
       html, body { max-width: 100%; overflow-x: hidden; }
   overflow-x: hidden 会把 body 变成滚动容器，position: sticky 从此相对
   body 计算而不是视口，于是整个 .stage 粘滞失效（实测 top 一路走负）。
   改用 overflow-x: clip —— clip 不创建滚动容器，既能裁掉横向溢出，
   又不会破坏 sticky。
   ════════════════════════════════════════════════════════════════════════ */

html, body { max-width: 100%; overflow-x: clip; }


/* —— 账号入口与登录弹窗（同源 HttpOnly 会话）—— */
.nav-account { margin-left:auto; display:flex; flex-direction:column; align-items:center; gap:0; flex:none; }
.nav-account .btn { min-height:2rem; padding:.25rem .95rem; line-height:1.45; }
.nav-account .btn.is-supporter { background:linear-gradient(135deg,#ffe4a0,#ffc865); color:#775012; text-shadow:none; }
.nav-support { padding:.02rem .45rem; border-radius:var(--r-pill); color:var(--brand-deep); font-weight:800; font-size:.68rem; line-height:1.5; white-space:nowrap; background:rgba(255,250,243,.85); }
.nav-support:hover { background:var(--brand-tint); }
.account-dialog { width:min(28rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); padding:2.2rem; border:1px solid var(--hairline-brand); border-radius:var(--r-xxl); color:var(--ink); background:var(--canvas); box-shadow:var(--shadow-3); overflow-y:auto; }
.account-dialog::backdrop { background:rgba(72,43,59,.46); backdrop-filter:blur(8px); }
.account-dialog h2 { margin:.8rem 0 .6rem; font-size:2rem; line-height:1.3; color:var(--ink-strong); }
.dialog-close { position:absolute; top:.75rem; right:.75rem; width:2.75rem; height:2.75rem; border-radius:50%; background:var(--brand-tint); color:var(--brand-deep); font-size:1.65rem; line-height:1; }
.account-intro { color:var(--ink-muted); line-height:1.8; font-size:.94rem; }
.account-form { display:grid; gap:1rem; margin-top:1.3rem; }
.account-form label { display:grid; gap:.4rem; font-weight:800; font-size:.9rem; }
.account-form input { min-width:0; min-height:46px; padding:.75rem .9rem; border:1px solid var(--hairline-strong); border-radius:1rem; background:#fff; color:var(--ink); font:inherit; font-size:16px; }
.account-form input:focus { border-color:var(--brand); outline:.15rem solid var(--brand-tint); }
.account-dialog .btn-block { display:flex; justify-content:center; align-items:center; gap:.5rem; width:100%; min-height:48px; margin-top:1.2rem; }
.account-switch { padding:.2rem; color:var(--brand-deep); font-weight:700; text-decoration:underline; text-underline-offset:.2em; }
.account-feedback { min-height:1.7rem; margin-top:.8rem; font-size:.9rem; color:var(--ink-muted); overflow-wrap:anywhere; }
.account-feedback[data-kind="error"] { color:#a22b51; }
.account-feedback[data-kind="success"] { color:#34754c; }
.account-security { padding-top:1rem; border-top:1px solid var(--hairline); color:var(--ink-muted); font-size:.76rem; line-height:1.75; }
.account-name { font-size:1.4rem; font-weight:900; overflow-wrap:anywhere; }
.account-secondary-actions { display:flex; justify-content:space-between; gap:1rem; margin-top:1rem; color:var(--brand-deep); font-size:.88rem; font-weight:700; }
.account-secondary-actions button { color:var(--ink-muted); text-decoration:underline; }
.supporter-badge { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .8rem; margin:1rem 0; padding:.65rem .85rem; border:1px solid #efce83; border-radius:1.2rem; background:#fff5d6; color:#8a5b12; font-weight:900; }
.supporter-badge small { flex-basis:100%; font-weight:500; font-size:.78rem; }
@media (max-width:62rem) { .nav .btn { margin-left:0; } }
@media (max-width:36rem) { .account-dialog { padding:1.65rem 1.3rem; } .account-dialog h2 { font-size:1.75rem; } }

/* 账号弹窗 · 兑换码区（account-redeem.js） */
.account-membership { margin-top:.6rem; font-size:.9rem; color:var(--ink-muted); }
.account-membership b { color:var(--ink-strong); }
.account-redeem { margin-top:1.35rem; padding-top:1.2rem; border-top:1px solid var(--hairline-brand); display:grid; gap:.55rem; }
.redeem-label { font-weight:800; font-size:.9rem; }
.redeem-row { display:flex; gap:.6rem; }
.redeem-row input { flex:1; min-width:0; min-height:46px; padding:.75rem .9rem; border:1px solid var(--hairline-strong); border-radius:1rem; background:#fff; color:var(--ink); font:inherit; font-size:16px; text-transform:uppercase; letter-spacing:.06em; text-align:center; }
.redeem-row input:focus { border-color:var(--brand); outline:.15rem solid var(--brand-tint); }
.redeem-row .btn { min-height:46px; padding:.75rem 1.1rem; white-space:nowrap; }
.account-redeem .account-feedback { min-height:0; margin-top:.2rem; }
.account-redeem-guest { margin-top:1rem; font-size:.85rem; color:var(--ink-muted); }

/* —— 备案标注（参考极简页脚样式）—— */
.beian { margin-top: 2.2rem; font-size: .74rem; letter-spacing: .03em; color: rgba(154,130,144,.85); }
.beian a { color: inherit; text-decoration: none; }
.beian a:hover { text-decoration: underline; text-underline-offset: .18em; color: var(--brand-deep); }
