/* ==========================================================================
   谱架 Scorestand — 渐进式多氛围生图背景 · 多变标题视觉 · 右侧常驻真机预览
   英文字体：仅 Google Sans；中文字体：Noto Sans SC（Google Fonts 开源可商用）
   无顶栏、无集中进度条、无编号、从练琴者真实视角出发
   ========================================================================== */

:root {
  --font-sans: "Google Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --ink: #14161C;
  --ink-secondary: #4A5260;
  --ink-muted: #767F8F;
  --line: rgba(20, 22, 28, 0.10);
  --line-strong: rgba(20, 22, 28, 0.18);

  --red: #C8442F;
  --red-hover: #AD3421;

  /* Scorestand 应用内真实配色（宣纸朱红 & 深夜暗色） */
  --app-xuan-bg: #F9F5F0;
  --app-xuan-surface: #FFFDF9;
  --app-xuan-low: #F2ECE4;
  --app-xuan-variant: #ECE4DA;
  --app-xuan-outline: #E6DDD3;
  --app-xuan-ink: #3B312B;
  --app-xuan-muted: #6F6258;
  --app-crimson: #A8242D;
  --app-crimson-container: #F6E2E1;
  --app-crimson-on-container: #631117;
  --app-gold: #C8A05B;
  --app-reader-bg: #EFEAE3;

  --app-dark-bg: #181615;
  --app-dark-surface: #221F1D;
  --app-dark-variant: #2E2926;
  --app-dark-outline: #473F3A;
  --app-dark-ink: #F2ECE6;
  --app-dark-muted: #ADA197;
  --app-dark-primary: #E05A62;
  --app-dark-gold: #E0BA74;

  --shadow-tablet:
    0 8px 20px rgba(20, 22, 28, 0.10),
    0 36px 90px -18px rgba(20, 22, 28, 0.30);
  --shadow-app-pill:
    0 4px 16px -4px rgba(59, 49, 43, 0.18),
    0 1px 2px rgba(59, 49, 43, 0.08);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-glide: cubic-bezier(0.25, 0.9, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #FAFBFD;
  line-height: 1.65;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}

img,
svg { display: block; }

button,
input {
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lucide-ico { width: 15px; height: 15px; flex-shrink: 0; }
.lucide-ico--sm { width: 13px; height: 13px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.page-main {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   全屏多色彩 + 生图光影背景层（7 种截然不同的琴房氛围平滑交融）
   ========================================================================== */

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #FAFBFD;
}

.ambient-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 860ms var(--ease-out);
  overflow: hidden;
}

.ambient-layer.is-active {
  opacity: 1;
}

.ambient-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.06) translate3d(0, var(--bg-drift, 0px), 0);
  will-change: transform;
}

/* 左侧柔和渐变底幕，保证左栏标题与正文在任何背景下清晰通透 */
.ambient-layer::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* 0. 序幕：晨光素白 + 绯红微晕 */
.ambient-prologue {
  background:
    radial-gradient(54% 54% at 72% 38%, rgba(200, 68, 47, 0.09) 0%, transparent 70%),
    radial-gradient(48% 48% at 24% 78%, rgba(148, 163, 184, 0.12) 0%, transparent 72%),
    linear-gradient(135deg, #FFFFFF 0%, #F5F7FB 100%);
}

/* 1. 双页看谱：暖米宣光 */
.ambient-reading { background: #F7F0E6; }
.ambient-reading::after {
  background: linear-gradient(90deg, #F7F0E6 0%, rgba(247, 240, 230, 0.88) 42%, rgba(247, 240, 230, 0.24) 100%);
}

/* 2. 免手翻页：清风青雾 */
.ambient-turning { background: #E9F4F2; }
.ambient-turning::after {
  background: linear-gradient(90deg, #E9F4F2 0%, rgba(233, 244, 242, 0.86) 42%, rgba(233, 244, 242, 0.18) 100%);
}

/* 3. 落笔改谱：柔霞绯粉 */
.ambient-annotation { background: #F8ECEC; }
.ambient-annotation::after {
  background: linear-gradient(90deg, #F8ECEC 0%, rgba(248, 236, 236, 0.88) 42%, rgba(248, 236, 236, 0.22) 100%);
}

/* 4. 跟拍对音：深夜音乐厅 */
.ambient-tools { background: #0E1016; }
.ambient-tools::after {
  background: linear-gradient(90deg, rgba(14, 16, 22, 0.94) 0%, rgba(14, 16, 22, 0.78) 44%, rgba(14, 16, 22, 0.28) 100%);
}

/* 5. 拍谱成册：晴空云蓝 */
.ambient-scan { background: #EAF0FA; }
.ambient-scan::after {
  background: linear-gradient(90deg, #EAF0FA 0%, rgba(234, 240, 250, 0.88) 42%, rgba(234, 240, 250, 0.22) 100%);
}

/* 6. 整理曲库：暮金暖沙 */
.ambient-library { background: #F4EDE0; }
.ambient-library::after {
  background: linear-gradient(90deg, #F4EDE0 0%, rgba(244, 237, 224, 0.88) 42%, rgba(244, 237, 224, 0.24) 100%);
}

/* ==========================================================================
   渐进式双栏舞台（左栏随滚动自然递进 · 右栏常驻视窗）
   ========================================================================== */

.progressive-stage {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4.2vw, 68px);
  align-items: start;
}

/* 左侧渐进叙事流（无集中进度条，每一幕自然浮起并渐进聚焦） */
.narrative-stream {
  display: flex;
  flex-direction: column;
  padding-bottom: 14vh;
}

.prog-chapter {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 12vh 0;
  opacity: var(--ch-opacity, 0.25);
  transform: translate3d(0, var(--ch-y, 24px), 0) scale(var(--ch-scale, 0.97));
  transform-origin: left center;
  will-change: transform, opacity;
  transition: color 360ms ease;
}

.prog-chapter--hero {
  min-height: 100svh;
  opacity: var(--ch-opacity, 1);
  transform: translate3d(0, var(--ch-y, 0px), 0) scale(var(--ch-scale, 1));
  gap: 22px;
}

/* 深夜音乐厅幕自动切换浅色文字（即使相邻幕稍有交界也随 body[data-tone="tools"] 统一适配） */
body[data-tone="tools"] .prog-chapter {
  color: #F8FAFC;
}
body[data-tone="tools"] .chapter-copy {
  color: #B8C1D1;
}

/* 品牌红标 */
.red-seal { display: inline-block; flex-shrink: 0; overflow: hidden; }
.red-seal--md {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 12px 28px -8px rgba(200, 68, 47, 0.52);
}
.red-seal--xs { width: 22px; height: 22px; border-radius: 5px; }
.red-seal svg { width: 100%; height: 100%; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-cn { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-en { font-size: 0.96rem; font-weight: 500; color: var(--ink-muted); }

/* ==========================================================================
   多变标题系统（每一幕拥有独立色彩性格与滚动高光，无冗余标签干扰）
   ========================================================================== */

.display-hero {
  margin: 0;
  font-size: clamp(2.55rem, 4.5vw, 4.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.038em;
  color: #11141B;
  transition: color 360ms ease;
}

.chapter-title {
  margin: 0;
  font-size: clamp(2rem, 3.35vw, 3.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  transition: color 360ms ease;
}

.title-style--warm   { color: #2B1D15; }
.title-style--breeze { color: #0F292E; }
.title-style--rose   { color: #2B131D; }
.title-style--stage  { color: #181D28; }
.title-style--sky    { color: #13203B; }
.title-style--amber  { color: #2C2013; }

body[data-tone="tools"] .display-hero,
body[data-tone="tools"] .chapter-title {
  color: #F8FAFC;
}

/* 随滚动推进的多彩流光渐变字 */
.hl-sweep {
  background-size: 220% 100%;
  background-position-x: var(--hl-pos, 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-crimson {
  background-image: linear-gradient(110deg, #C8442F 0%, #EC654F 48%, #9E2616 100%);
}

.hl-warm {
  background-image: linear-gradient(110deg, #B83227 0%, #D97724 52%, #9A3412 100%);
}

.hl-breeze {
  background-image: linear-gradient(110deg, #0D7A6F 0%, #0284C7 52%, #0F766E 100%);
}

.hl-stage {
  background-image: linear-gradient(110deg, #B45309 0%, #C8442F 52%, #9A3412 100%);
}

body[data-tone="tools"] .hl-stage {
  background-image: linear-gradient(110deg, #FBBF24 0%, #FB7185 52%, #FDE68A 100%);
}

.hl-sky {
  background-image: linear-gradient(110deg, #2563EB 0%, #7C3AED 52%, #0284C7 100%);
}

.hl-amber {
  background-image: linear-gradient(110deg, #B45309 0%, #C8442F 52%, #D97706 100%);
}

/* 落笔改谱专属：笔锋划线动态铺展标题 */
.hl-ink-stroke {
  position: relative;
  display: inline-block;
  color: #B91C3C;
}

body[data-tone="tools"] .hl-ink-stroke {
  color: #FB7185;
}

.hl-ink-stroke::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.28) 0%, rgba(200, 68, 47, 0.45) 100%);
  transform-origin: left center;
  transform: scaleX(var(--stroke-p, 0.2));
  z-index: -1;
}

.chapter-copy {
  margin: 0;
  max-width: 440px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.74;
  color: var(--ink-secondary);
}

.chapter-copy--lead {
  max-width: 460px;
  font-size: clamp(1.02rem, 1.22vw, 1.14rem);
}

/* 按钮与轻提示 */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease-out), background-color 200ms, border-color 200ms, color 200ms;
}

.btn-dark { background: #14161C; color: #FFFFFF; }
.btn-dark:hover { background: var(--red); transform: translateY(-2px); }

.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: var(--red-hover); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #14161C;
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: #14161C;
  transform: translateY(-2px);
}

/* ==========================================================================
   右侧：常驻粘性预览窗口（直接透视在硬件本身，无 preserve-3d 阻挡点击）
   ========================================================================== */

.preview-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.preview-sticky {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-hardware {
  position: relative;
  width: 100%;
  padding: 11px;
  border-radius: 22px;
  background: linear-gradient(155deg, #242934 0%, #101319 100%);
  border: 1px solid #2E3442;
  box-shadow: var(--shadow-tablet);
  transform:
    perspective(1500px)
    rotateX(var(--rx, 1.8deg))
    rotateY(var(--ry, -3.2deg))
    scale(var(--hw-scale, 1));
  transition:
    transform 620ms var(--ease-out),
    box-shadow 560ms var(--ease-out),
    border-color 560ms var(--ease-out);
  will-change: transform;
}

body[data-tone="tools"] .tablet-hardware {
  border-color: rgba(224, 90, 98, 0.38);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.55),
    0 40px 96px -16px rgba(0, 0, 0, 0.85),
    0 0 72px -18px rgba(224, 90, 98, 0.34);
}

/* 换幕纸面柔光扫掠 */
.paper-light-sweep {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

.paper-light-sweep::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 38%;
  left: -52%;
  background: linear-gradient(102deg, transparent 0%, rgba(255, 253, 249, 0.15) 50%, transparent 100%);
  transform: skewX(-14deg);
  opacity: 0;
}

.tablet-hardware.is-turning-sheet .paper-light-sweep::after {
  animation: sheet-light 740ms var(--ease-out);
}

@keyframes sheet-light {
  0% { left: -52%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 126%; opacity: 0; }
}

.tablet-camera {
  position: absolute;
  top: 3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 5px;
  border-radius: 99px;
  background: #232A38;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.camera-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.85);
}

.camera-led.is-flashing {
  background: #F97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.95);
}

.camera-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #14B8A6;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.tablet-hardware[data-active-scene="turning"] .camera-radar {
  animation: camera-radar-ping 2.4s var(--ease-out) infinite;
}

.camera-radar.is-burst {
  border-color: #F97316;
  animation: camera-radar-ping 0.85s var(--ease-out) 1 !important;
}

@keyframes camera-radar-ping {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(6.5); opacity: 0; }
}

.tablet-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  background: var(--app-xuan-bg);
  color: var(--app-xuan-ink);
}

/* 琴谱横向滑页过渡 */
.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(7%, 0, 0) scale(0.985);
  transition:
    transform 580ms var(--ease-glide),
    opacity 360ms ease,
    visibility 0s linear 580ms;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.scene-layer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: -16px 0 34px -14px rgba(20, 22, 28, 0.25);
  transition:
    transform 600ms var(--ease-glide),
    opacity 340ms ease,
    visibility 0s linear 0s;
  z-index: 3;
}

.scene-layer.is-leaving {
  opacity: 0.35;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(-5%, 0, 0) scale(0.975);
  z-index: 2;
}

/* 序幕纯净展卷 -> 双页看谱浮出宣纸工具胶囊的渐进过渡 */
.reading-hud {
  transition: opacity 440ms var(--ease-out), transform 480ms var(--ease-out);
}
#layer-reading.is-clean-spread .app-floating-top.reading-hud {
  opacity: 0;
  transform: translateY(-16px);
}
#layer-reading.is-clean-spread .app-floating-bottom.reading-hud {
  opacity: 0;
  transform: translateY(16px);
}
#layer-reading.is-clean-spread #prologue-book {
  transform: scale(1.022);
}

/* 幕内控件微动效 */
.scene-layer .anim-slide-down { opacity: 0; transform: translateY(-12px); transition: opacity 380ms var(--ease-out) 100ms, transform 440ms var(--ease-out) 100ms; }
.scene-layer.is-active .anim-slide-down { opacity: 1; transform: translateY(0); }

.scene-layer .anim-slide-up { opacity: 0; transform: translateY(12px); transition: opacity 380ms var(--ease-out) 130ms, transform 440ms var(--ease-out) 130ms; }
.scene-layer.is-active .anim-slide-up { opacity: 1; transform: translateY(0); }

.scene-layer .anim-slide-up-sheet { opacity: 0; transform: translateY(28px); transition: opacity 420ms var(--ease-out) 140ms, transform 500ms var(--ease-out) 140ms; }
.scene-layer.is-active .anim-slide-up-sheet { opacity: 1; transform: translateY(0); }

.scene-layer .anim-slide-right { opacity: 0; transform: translate(-18px, -50%); transition: opacity 380ms var(--ease-out) 120ms, transform 460ms var(--ease-out) 120ms; }
.scene-layer.is-active .anim-slide-right { opacity: 1; transform: translate(0, -50%); }

.scene-layer .anim-pop-in { opacity: 0; transform: scale(0.92) translateY(-6px); transition: opacity 380ms var(--ease-out) 140ms, transform 440ms var(--ease-out) 140ms; }
.scene-layer.is-active .anim-pop-in { opacity: 1; transform: scale(1) translateY(0); }

.scene-layer .anim-focus-pop { opacity: 0; transform: scale(0.94); transition: opacity 380ms var(--ease-out) 180ms, transform 500ms var(--ease-out) 180ms; }
.scene-layer.is-active .anno-overlay-layer.is-focused .anim-focus-pop { opacity: 1; transform: scale(1.03); }
.scene-layer.is-active .anno-overlay-layer:not(.is-focused) .anim-focus-pop { opacity: 1; transform: scale(1); }

.draw-stroke { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 760ms var(--ease-out) 340ms; }
.draw-stroke--delay { transition-delay: 580ms; }
.draw-stroke--delay2 { transition-delay: 820ms; }
.scene-layer.is-active .draw-stroke { stroke-dashoffset: 0; }

/* ==========================================================================
   平板内 6 套真实 Scorestand 界面样式
   ========================================================================== */

.app-reader-canvas { position: relative; width: 100%; height: 100%; background: var(--app-reader-bg); }
.real-score-book { position: absolute; inset: 0; background: #23201E; transition: transform 420ms var(--ease-out), opacity 220ms var(--ease-out); }
.real-score-book.is-turning { opacity: 0.76; transform: scale(0.992); }
.real-score-img { width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }

.page-badge {
  position: absolute;
  bottom: 52px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--app-xuan-outline);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--app-xuan-ink);
  z-index: 2;
}
.page-badge--l { left: 16px; }
.page-badge--r { right: 16px; }

.app-floating-top { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 253, 249, 0.96); border: 1px solid var(--app-xuan-outline); border-radius: 999px; color: var(--app-xuan-ink); box-shadow: var(--shadow-app-pill); }
.app-pill--title { padding: 6px 13px 6px 10px; min-width: 0; }
.app-pill-text { font-size: 0.76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pill--actions { padding: 4px 6px; gap: 3px; }
.app-ico-btn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--app-xuan-ink); }
.app-ico-btn.is-accent { color: var(--app-crimson); }
.app-ico-btn.is-selected { background: var(--app-crimson-container); color: var(--app-crimson); }
.app-primary-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--app-crimson); color: #FFFFFF; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.app-primary-pill--sm { padding: 4px 11px; font-size: 0.7rem; }
.app-metro-pill { display: inline-flex; align-items: center; background: var(--app-crimson-container); color: var(--app-crimson-on-container); border: 1px solid rgba(168, 36, 45, 0.28); font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.app-floating-bottom { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 4; display: flex; justify-content: center; }
.app-pill--scrubber { width: 100%; max-width: 560px; padding: 7px 14px; gap: 10px; }
.app-step-ico { font-size: 0.86rem; color: var(--app-xuan-muted); line-height: 1; }
.app-page-num { font-size: 0.74rem; font-weight: 600; color: var(--app-xuan-ink); white-space: nowrap; }
.app-slider-track { position: relative; flex: 1; height: 4px; border-radius: 99px; background: var(--app-xuan-variant); }
.app-slider-fill { display: block; height: 100%; border-radius: 99px; background: var(--app-crimson); transition: width 260ms var(--ease-out); }
.app-slider-thumb { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--app-crimson); border: 2px solid #FFFDF9; transform: translate(-50%, -50%); }
.app-bm-dot { position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--app-gold); transform: translate(-50%, -50%); }

/* 免手翻页 */
.app-autoturn-cluster { position: absolute; top: 10px; left: 12px; z-index: 4; }
.app-pill--compact { padding: 4px 10px 4px 5px; gap: 7px; }
.app-chip-toggle { border: 1px solid var(--app-xuan-outline); background: var(--app-xuan-low); color: var(--app-xuan-ink); font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; transition: all 150ms; }
.app-chip-toggle.is-on { background: var(--app-crimson); border-color: var(--app-crimson); color: #FFFFFF; }
.app-sep-v { width: 1px; height: 14px; background: var(--app-xuan-outline); }
.app-mini-status { font-size: 0.69rem; color: var(--app-xuan-muted); white-space: nowrap; }
.tap-zone { position: absolute; top: 0; bottom: 0; width: 24%; z-index: 3; border: none; background: transparent; display: flex; align-items: center; padding: 12px; }
.tap-zone-left { left: 0; justify-content: flex-start; }
.tap-zone-right { right: 0; justify-content: flex-end; }
.tap-zone:hover { background: rgba(168, 36, 45, 0.08); }
.tap-zone-label { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: var(--app-crimson); background: rgba(255, 253, 249, 0.94); border: 1px solid var(--app-xuan-outline); opacity: 0; transition: opacity 160ms; }
.tap-zone:hover .tap-zone-label, .tap-zone:focus-visible .tap-zone-label { opacity: 1; }

.app-head-gesture-wrap { position: absolute; top: 10px; right: 12px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.app-face-circle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--app-xuan-outline); background: rgba(255, 253, 249, 0.96); color: var(--app-crimson); display: grid; place-items: center; box-shadow: var(--shadow-app-pill); }
.app-head-popup { width: 184px; padding: 9px 11px; border-radius: 16px; background: rgba(255, 253, 249, 0.96); border: 1px solid var(--app-xuan-outline); box-shadow: var(--shadow-app-pill); color: var(--app-xuan-ink); display: flex; flex-direction: column; gap: 5px; transition: border-color 180ms, background-color 180ms; }
.app-head-popup.is-triggered { border-color: var(--app-crimson); background: #FFF5F4; }
.app-head-popup-row { display: flex; align-items: center; gap: 6px; }
.app-head-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-crimson); }
.app-head-title { font-size: 0.74rem; font-weight: 700; flex: 1; }
.app-head-sim-link { border: none; background: var(--app-crimson-container); color: var(--app-crimson); font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.app-head-sim-link:hover { background: var(--app-crimson); color: #FFFFFF; }
.app-head-phase { font-size: 0.7rem; font-weight: 600; color: var(--app-crimson); }
.app-head-metrics { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--app-xuan-muted); }
.app-head-metrics strong { color: var(--app-xuan-ink); font-weight: 600; }

/* 落笔改谱 */
.anno-overlay-layer { position: absolute; inset: 0; z-index: 3; }
.anno-dim-veil { position: absolute; inset: 0; background: rgba(26, 23, 22, 0.48); opacity: 0; pointer-events: none; transition: opacity 420ms var(--ease-out); z-index: 1; }
.scene-layer.is-active .anno-overlay-layer.is-focused .anno-dim-veil { opacity: 1; }
.app-anno-capsule { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 12px; border-radius: 999px; background: rgba(255, 253, 249, 0.97); border: 1px solid var(--app-xuan-outline); box-shadow: var(--shadow-app-pill); white-space: nowrap; }
.scene-layer .app-anno-capsule.anim-slide-down { transform: translate(-50%, -12px); }
.scene-layer.is-active .app-anno-capsule.anim-slide-down { transform: translate(-50%, 0); }
.app-anno-capsule-title { font-size: 0.73rem; font-weight: 700; color: var(--app-xuan-ink); }
.app-anno-dock { position: absolute; left: 10px; top: 52%; z-index: 5; width: 42px; padding: 7px 5px; border-radius: 999px; background: rgba(255, 253, 249, 0.96); border: 1px solid var(--app-xuan-outline); box-shadow: var(--shadow-app-pill); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-dock-handle { width: 16px; height: 3px; border-radius: 99px; background: #CFC4B8; margin-bottom: 1px; }
.app-dock-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--app-xuan-ink); font-size: 0.76rem; font-weight: 700; display: grid; place-items: center; }
.app-dock-btn.is-active { background: var(--app-crimson-container); color: var(--app-crimson); }
.app-dock-swatch { width: 20px; height: 20px; border-radius: 50%; background: var(--app-crimson); border: 2px solid #FFFDF9; box-shadow: 0 0 0 1.5px var(--app-crimson); }
.app-dock-ico-muted { font-size: 0.8rem; color: var(--app-xuan-muted); line-height: 1.1; }
.real-practice-region { position: absolute; top: 22%; left: 12%; width: 44%; z-index: 4; background: #FFFFFF; border: 2px solid var(--app-crimson); border-radius: 8px; padding: 6px; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.45); }
.real-practice-region .corner { position: absolute; width: 10px; height: 10px; border: 2.5px solid var(--app-crimson); }
.corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; border-radius: 3px 0 0 0; }
.corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; border-radius: 0 3px 0 0; }
.corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; border-radius: 0 0 0 3px; }
.corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; border-radius: 0 0 3px 0; }
.real-region-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; font-size: 0.68rem; font-weight: 700; color: var(--app-xuan-ink); }
.real-region-bpm { font-size: 0.66rem; font-weight: 600; background: var(--app-crimson-container); color: var(--app-crimson); padding: 2px 7px; border-radius: 999px; }
.real-region-window { position: relative; height: 88px; border-radius: 4px; overflow: hidden; background: #FFFFFF; }
.real-region-crop-img { width: 235%; height: auto; position: absolute; top: -54px; left: -34px; pointer-events: none; }
.real-highlighter-mark { position: absolute; top: 26px; left: 12%; width: 46%; height: 20px; background: rgba(250, 204, 21, 0.38); border-radius: 3px; }
.real-stylus-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stylus-spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #A8242D; box-shadow: 0 0 0 4px rgba(168, 36, 45, 0.24), 0 0 12px rgba(168, 36, 45, 0.8); top: 14%; left: 8%; opacity: 0; pointer-events: none; }
.scene-layer.is-active .stylus-spark { animation: stylus-glide 1.8s var(--ease-out) 320ms 1 forwards; }
@keyframes stylus-glide {
  0% { opacity: 0; top: 18%; left: 7%; transform: scale(0.6); }
  10% { opacity: 1; transform: scale(1); }
  45% { top: 15%; left: 46%; opacity: 1; }
  55% { top: 18%; left: 54%; opacity: 1; }
  88% { top: 16%; left: 90%; opacity: 1; }
  100% { top: 16%; left: 92%; opacity: 0; transform: scale(0.5); }
}
.real-text-anno { margin-top: 5px; display: inline-block; font-size: 0.66rem; font-weight: 600; color: var(--app-crimson-on-container); background: var(--app-crimson-container); padding: 2px 8px; border-radius: 5px; transition: opacity 180ms; }
.real-text-anno.is-hidden { opacity: 0.14; }

/* 跟拍对音 */
.app-crimsondark-tools { width: 100%; height: 100%; background: var(--app-dark-bg); color: var(--app-dark-ink); display: flex; flex-direction: column; justify-content: space-between; }
.real-metro-panel { padding: 12px 18px 10px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 14px; align-items: center; border-bottom: 1px solid var(--app-dark-outline); }
.real-metro-primary { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.real-bpm-line { display: flex; align-items: baseline; gap: 6px; }
.real-bpm-prefix { font-size: 0.92rem; color: var(--app-dark-muted); font-weight: 600; }
.real-bpm-hero { font-size: 1.95rem; font-weight: 700; line-height: 1; color: var(--app-dark-ink); }
.real-tempo-marking { font-size: 0.72rem; color: var(--app-dark-gold); font-weight: 600; margin-left: 4px; }
.real-beat-dots { display: flex; align-items: center; gap: 10px; }
.real-beat-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--app-dark-outline); background: var(--app-dark-outline); padding: 0; transition: transform 90ms, background-color 110ms, border-color 110ms; }
.real-beat-dot.is-strong { width: 20px; height: 20px; background: var(--app-dark-primary); border-color: var(--app-dark-primary); }
.real-beat-dot.is-mute { background: transparent; border-color: var(--app-dark-muted); }
.real-beat-dot.is-hit { transform: scale(1.32); background: #FFFFFF; border-color: var(--app-dark-primary); }
.real-metro-transport { display: flex; align-items: center; gap: 14px; }
.real-nudge-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--app-dark-outline); background: var(--app-dark-surface); color: var(--app-dark-ink); font-weight: 700; display: grid; place-items: center; }
.real-play-circle { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--app-dark-primary); color: #280507; font-size: 0.9rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgba(224, 90, 98, 0.55); }
.real-play-circle.is-playing { background: #F2ECE6; color: #181615; }
.real-metro-settings { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 1px solid var(--app-dark-outline); }
.real-metro-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--app-dark-muted); }
.real-metro-row strong { color: var(--app-dark-ink); font-weight: 600; }
.text-gold { color: var(--app-dark-gold) !important; }
.real-piano-sheet { flex: 1; background: var(--app-dark-surface); border-radius: 18px 18px 0 0; padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--app-dark-outline); }
.real-piano-handle { display: flex; justify-content: center; padding: 2px 0; }
.real-piano-handle span { width: 42px; height: 3.5px; border-radius: 99px; background: var(--app-dark-outline); }
.real-piano-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.real-piano-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.real-pchip { border: 1px solid var(--app-dark-outline); background: var(--app-dark-variant); color: var(--app-dark-ink); font-size: 0.67rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.real-pchip.is-active { background: var(--app-dark-ink); color: #181615; border-color: var(--app-dark-ink); }
.real-pchip.is-crimson { background: var(--app-dark-primary); color: #280507; border-color: var(--app-dark-primary); }
.real-pchip--gold { color: var(--app-dark-gold); }
.piano-minimap { display: flex; align-items: center; gap: 8px; }
.minimap-tag { font-size: 0.62rem; font-weight: 600; color: var(--app-dark-muted); }
.minimap-track { flex: 1; height: 15px; border-radius: 4px; background: repeating-linear-gradient(to right, rgba(242, 236, 230, 0.14) 0, rgba(242, 236, 230, 0.14) 6px, rgba(242, 236, 230, 0.04) 6px, rgba(242, 236, 230, 0.04) 7px); position: relative; }
.minimap-window { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(224, 90, 98, 0.28); border: 1.5px solid var(--app-dark-primary); display: grid; place-items: center; font-size: 0.58rem; font-weight: 700; color: #FFFFFF; }
.piano-keys { position: relative; flex: 1; min-height: 112px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; background: #0F0D0C; padding: 2px; border-radius: 7px; user-select: none; }
.w-key { border: none; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #FFFDF9 0%, #F2ECE4 90%, #DDD2C5 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; font-size: 0.66rem; font-weight: 600; color: var(--app-xuan-muted); transition: background 80ms, transform 80ms; }
.w-key.is-pressed { background: #F6D2D0; color: var(--app-crimson); transform: translateY(2px); }
.b-key { position: absolute; top: 2px; width: 6.2%; height: 58%; z-index: 2; border: none; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #2D2825 0%, #141110 100%); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); transition: transform 80ms, background 80ms; }
.b-key.is-pressed { background: var(--app-dark-primary); transform: translateY(2px); }

/* 拍谱成册 */
.app-crop-screen { width: 100%; height: 100%; background: var(--app-xuan-bg); padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.real-crop-topbar { background: var(--app-xuan-surface); border: 1px solid var(--app-xuan-outline); border-radius: 14px; padding: 7px 10px; display: flex; flex-direction: column; gap: 6px; }
.real-crop-row1 { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 700; color: var(--app-xuan-ink); }
.real-crop-x, .real-crop-help { width: 22px; height: 22px; border-radius: 50%; background: var(--app-xuan-low); display: grid; place-items: center; font-size: 0.76rem; color: var(--app-xuan-muted); }
.real-crop-row2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.real-crop-chip-static { font-size: 0.68rem; color: var(--app-xuan-muted); background: var(--app-xuan-low); padding: 3px 9px; border-radius: 999px; }
.real-crop-stage { position: relative; flex: 1; background: #1A1716; border-radius: 12px; display: grid; place-items: center; padding: 14px 22px; overflow: hidden; }
.real-crop-paper { position: relative; width: min(340px, 100%); height: min(220px, 100%); border-radius: 4px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5); transform: perspective(650px) rotateY(-7deg) rotateX(4deg) rotate(-1.5deg); transition: transform 620ms var(--ease-out), filter 480ms; }
.real-crop-img { width: 100%; height: 100%; object-fit: cover; object-position: left center; border-radius: 4px; }
.real-crop-stage.is-enhanced .real-crop-paper { transform: none; filter: contrast(1.18) brightness(1.03); }
.crop-overlay { position: absolute; inset: -6px; transition: opacity 380ms var(--ease-out); }
.real-crop-stage.is-enhanced .crop-overlay { opacity: 0; pointer-events: none; }
.crop-quad { width: 100%; height: 100%; }
.crop-handle { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #FFFDF9; border: 3px solid var(--app-crimson); }
.h-tl { top: 4%; left: 4%; } .h-tr { top: 1%; right: 4%; } .h-bl { bottom: 1%; left: 2%; } .h-br { bottom: 4%; right: 2%; }
.crop-loupe { position: absolute; top: -12px; right: -12px; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle, #FFFDF9 55%, #ECE4DA 100%); border: 2.5px solid var(--app-crimson); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loupe-cross { width: 18px; height: 18px; position: relative; }
.loupe-cross::before, .loupe-cross::after { content: ""; position: absolute; background: var(--app-crimson); }
.loupe-cross::before { top: 8px; left: 0; right: 0; height: 1.5px; }
.loupe-cross::after { left: 8px; top: 0; bottom: 0; width: 1.5px; }
.loupe-label { font-size: 0.52rem; font-weight: 700; color: var(--app-crimson); margin-top: 2px; }
.real-crop-bottombar { background: var(--app-xuan-surface); border: 1px solid var(--app-xuan-outline); border-radius: 14px; padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.real-crop-nav-btns { display: flex; align-items: center; gap: 6px; }
.real-crop-outline-btn { font-size: 0.68rem; font-weight: 600; color: var(--app-xuan-ink); border: 1px solid var(--app-xuan-outline); padding: 3px 9px; border-radius: 999px; }
.real-crop-tonal-btn { font-size: 0.68rem; font-weight: 600; color: var(--app-crimson-on-container); background: var(--app-crimson-container); padding: 4px 10px; border-radius: 999px; }

/* 整理曲库 */
.app-xuan-library { width: 100%; height: 100%; background: var(--app-xuan-bg); color: var(--app-xuan-ink); display: flex; }
.xuan-lib-shell { flex: 1; display: grid; grid-template-columns: 126px minmax(0, 1fr); min-height: 0; }
.xuan-sidebar { background: var(--app-xuan-low); border-right: 1px solid var(--app-xuan-outline); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.xuan-brand { display: flex; align-items: center; gap: 7px; padding: 2px 6px 8px; font-weight: 700; font-size: 0.84rem; }
.xuan-seal { width: 22px; height: 22px; border-radius: 5px; background: var(--red); color: #FFFDF9; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.xuan-sec { font-size: 0.62rem; font-weight: 700; color: var(--app-xuan-muted); padding: 6px 7px 2px; }
.xuan-nav-btn { border: none; background: transparent; padding: 5px 8px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 600; color: var(--app-xuan-ink); }
.xuan-nav-btn.is-active { background: var(--app-crimson-container); color: var(--app-crimson); }
.xuan-cnt { font-size: 0.68rem; font-weight: 600; color: var(--app-xuan-muted); }
.xuan-sidebar-foot { margin-top: auto; padding: 8px 6px 2px; border-top: 1px solid var(--app-xuan-outline); font-size: 0.64rem; color: var(--app-xuan-muted); }
.tag-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.xuan-main { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xuan-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xuan-page-title { font-size: 0.9rem; font-weight: 700; }
.xuan-search input { width: 170px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--app-xuan-outline); background: var(--app-xuan-surface); font-size: 0.7rem; color: var(--app-xuan-ink); }
.xuan-hero-banner { border-radius: 14px; padding: 10px 14px; background: linear-gradient(135deg, #1A1415 0%, #45161C 52%, #7B1F27 100%); color: #F7F2EC; display: flex; align-items: center; justify-content: space-between; }
.xuan-hero-info { display: flex; flex-direction: column; gap: 1px; }
.xuan-hero-kicker { font-size: 0.62rem; font-weight: 700; color: #E0BA74; }
.xuan-hero-name { font-size: 0.84rem; font-weight: 700; }
.xuan-hero-meta { font-size: 0.66rem; color: rgba(247, 242, 236, 0.76); }
.xuan-hero-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 253, 249, 0.16); border: 1.5px solid #E0BA74; color: #FFFDF9; font-size: 0.72rem; display: grid; place-items: center; }
.xuan-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: start; }
.xuan-score-item { background: var(--app-xuan-surface); border: 1px solid var(--app-xuan-outline); border-radius: 10px; padding: 5px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(14px); transition: transform 520ms var(--ease-out), opacity 340ms ease; }
.scene-layer.is-active .xuan-score-item { opacity: 1; transform: translateY(0); }
.scene-layer.is-active .xuan-score-item:nth-child(1) { transition-delay: 90ms; }
.scene-layer.is-active .xuan-score-item:nth-child(2) { transition-delay: 150ms; }
.scene-layer.is-active .xuan-score-item:nth-child(3) { transition-delay: 210ms; }
.scene-layer.is-active .xuan-score-item:nth-child(4) { transition-delay: 270ms; }
.xuan-score-item[hidden] { display: none; }
.xuan-thumb { position: relative; height: 54px; border-radius: 6px; overflow: hidden; background: var(--app-xuan-low); }
.xuan-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.xuan-thumb img.is-single-sheet { transform: scale(2.05); object-position: center 42%; }
.xuan-star { position: absolute; top: 3px; right: 4px; font-size: 0.64rem; color: var(--app-gold); }
.xuan-item-title { font-size: 0.67rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xuan-item-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.6rem; color: var(--app-xuan-muted); }
.xuan-prog { height: 2.5px; border-radius: 99px; background: var(--app-xuan-variant); overflow: hidden; }
.xuan-prog span { display: block; height: 100%; background: var(--app-crimson); }
.xuan-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xuan-storage-mini { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.xuan-storage-label { font-size: 0.64rem; color: var(--app-xuan-muted); }
.storage-bar { height: 5px; border-radius: 99px; overflow: hidden; display: flex; gap: 2px; }
.xuan-fab { background: var(--app-crimson); color: #FFFFFF; font-size: 0.7rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ==========================================================================
   终章：纯净明亮白底买断对比与常见疑问（¥15.99 购买激活码）
   ========================================================================== */

.pricing-band {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(76px, 10vh, 124px) 0;
}

.pricing-header {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.pricing-title {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-secondary);
}

.compare-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .compare-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.compare-col {
  padding: clamp(28px, 4vw, 44px) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

@media (min-width: 820px) {
  .compare-col:first-child { padding-right: clamp(28px, 4vw, 56px); }
  .compare-col--pro { padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); }
}

@media (max-width: 819px) {
  .compare-col--pro { border-top: 1px solid var(--line); }
}

.compare-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.compare-name--red { color: var(--red); }

.compare-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.compare-price strong {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.compare-col--pro .compare-price strong { color: var(--red); }
.compare-price span { font-size: 0.86rem; color: var(--ink-muted); }

.compare-list {
  margin: 4px 0 10px;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  flex: 1;
}

.faq-section {
  margin-top: clamp(40px, 6vh, 64px);
  max-width: 820px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  font-size: 0.96rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--red);
  flex-shrink: 0;
}

.faq-section details[open] summary::after { content: "−"; }

.faq-section details p {
  margin: 10px 0 2px;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.site-footer {
  position: relative;
  z-index: 3;
  background: #F5F6F9;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: inline-flex;
  gap: 22px;
}

.footer-links a:hover { color: var(--red); }

/* ==========================================================================
   移动端专属纯净海报流排版（<= 960px，去除横屏平板预览窗，专注氛围光影与大字阅读）
   ========================================================================== */

@media (max-width: 960px) {
  .progressive-stage {
    padding: 0 clamp(22px, 6vw, 48px);
  }

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

  /* 移动端去除桌面横屏预览视窗，避免小屏挤压与遮挡 */
  .preview-rail {
    display: none;
  }

  .narrative-stream {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 6vh;
  }

  .prog-chapter--hero {
    min-height: 86svh;
    padding: 56px 0 44px;
    gap: 20px;
  }

  .prog-chapter:not(.prog-chapter--hero) {
    min-height: auto;
    padding: clamp(52px, 9.5vh, 80px) 0;
    border-top: 1px solid rgba(20, 22, 28, 0.08);
    gap: 14px;
    transform-origin: left center;
  }

  body[data-tone="tools"] .prog-chapter:not(.prog-chapter--hero) {
    border-top-color: rgba(255, 255, 255, 0.14);
  }

  .display-hero {
    font-size: clamp(2.35rem, 9.4vw, 3.25rem);
    line-height: 1.12;
  }

  .chapter-title {
    font-size: clamp(1.85rem, 7.4vw, 2.45rem);
    line-height: 1.18;
  }

  .chapter-copy,
  .chapter-copy--lead {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.72;
  }

  /* 移动端背景光影生图保留右侧艺术纹理与柔和渐变通透感 */
  .ambient-layer img {
    object-position: 76% center;
  }

  .ambient-reading::after {
    background: linear-gradient(180deg, rgba(247, 240, 230, 0.88) 0%, rgba(247, 240, 230, 0.62) 100%);
  }
  .ambient-turning::after {
    background: linear-gradient(180deg, rgba(233, 244, 242, 0.86) 0%, rgba(233, 244, 242, 0.58) 100%);
  }
  .ambient-annotation::after {
    background: linear-gradient(180deg, rgba(248, 236, 236, 0.88) 0%, rgba(248, 236, 236, 0.62) 100%);
  }
  .ambient-tools::after {
    background: linear-gradient(180deg, rgba(14, 16, 22, 0.88) 0%, rgba(14, 16, 22, 0.68) 100%);
  }
  .ambient-scan::after {
    background: linear-gradient(180deg, rgba(234, 240, 250, 0.88) 0%, rgba(234, 240, 250, 0.62) 100%);
  }
  .ambient-library::after {
    background: linear-gradient(180deg, rgba(244, 237, 224, 0.88) 0%, rgba(244, 237, 224, 0.64) 100%);
  }
}

@media (max-width: 520px) {
  .cta-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .cta-row .btn,
  .compare-col .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .draw-stroke { stroke-dashoffset: 0 !important; }
  .prog-chapter { opacity: 1 !important; transform: none !important; }
}
