/* ==========================================================================
   AI Usage 官网 — 渐进式多氛围舞台 · 竖屏手机真机交互 · 对齐应用真实 Tokens
   字体：Google Sans（西文）+ Noto Sans SC（中文）+ 系统等宽字体，开启 tabular-nums
   ========================================================================== */

:root {
  --font-sans: "Google Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ink: #11141B;
  --ink-secondary: #464E5C;
  --ink-muted: #5C6575;
  --line: rgba(17, 20, 27, 0.10);
  --line-strong: rgba(17, 20, 27, 0.20);

  --brand: #2563EB;
  --brand-hover: #1D4ED8;

  /* 应用内真实色彩 Tokens（来自 AIUsage/src/constants/theme.ts） */
  --app-primary: #2563EB;
  --app-on-primary: #FFFFFF;

  --app-light-bg: #FAFAF8;
  --app-light-surface: #FFFFFF;
  --app-light-selected: #ECECF1;
  --app-light-text: #000000;
  --app-light-text-secondary: #60646C;
  --app-light-border: #E7E7EC;
  --app-light-good: #1A7F4B;
  --app-light-warn: #9E5D00;
  --app-light-bad: #C62828;

  --app-dark-bg: #000000;
  --app-dark-surface: #1C1C1E;
  --app-dark-selected: #2E3135;
  --app-dark-text: #FFFFFF;
  --app-dark-text-secondary: #B0B4BA;
  --app-dark-border: #2C2C30;
  --app-dark-good: #4CC38A;
  --app-dark-warn: #F5A524;
  --app-dark-bad: #FF6B6B;

  --shadow-phone:
    0 10px 26px rgba(17, 20, 27, 0.12),
    0 36px 88px -18px rgba(17, 20, 27, 0.30);

  --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: #FAFAF8;
  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;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(17, 20, 27, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

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

.mono-text {
  font-family: var(--font-mono);
}

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

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

/* ==========================================================================
   全屏 7 层纯 CSS 光学氛围画布
   ========================================================================== */

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

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

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

.ambient-prologue {
  background:
    radial-gradient(52% 52% at 74% 38%, rgba(37, 99, 235, 0.09) 0%, transparent 70%),
    radial-gradient(46% 46% at 22% 78%, rgba(148, 163, 184, 0.12) 0%, transparent 72%),
    linear-gradient(135deg, #FFFFFF 0%, #FAFAF8 100%);
}

.ambient-overview {
  background:
    radial-gradient(55% 55% at 72% 45%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    linear-gradient(110deg, #FAFAF8 0%, #EEF4FF 100%);
}

.ambient-relay {
  background:
    radial-gradient(55% 55% at 74% 48%, rgba(15, 118, 110, 0.12) 0%, transparent 70%),
    linear-gradient(110deg, #FAFAF8 0%, #EAF6F3 100%);
}

.ambient-providers {
  background:
    radial-gradient(55% 55% at 72% 45%, rgba(79, 70, 229, 0.11) 0%, transparent 70%),
    linear-gradient(110deg, #FAFAF8 0%, #F1EFFB 100%);
}

.ambient-detail {
  background:
    radial-gradient(55% 55% at 72% 48%, rgba(158, 93, 0, 0.10) 0%, transparent 70%),
    linear-gradient(110deg, #FAFAF8 0%, #FAF2E8 100%);
}

.ambient-alerts {
  background:
    radial-gradient(56% 56% at 74% 46%, rgba(37, 99, 235, 0.22) 0%, transparent 68%),
    radial-gradient(44% 44% at 24% 80%, rgba(124, 58, 237, 0.14) 0%, transparent 72%),
    linear-gradient(135deg, #090C12 0%, #101521 100%);
}

.ambient-privacy {
  background:
    radial-gradient(55% 55% at 74% 48%, rgba(26, 127, 75, 0.12) 0%, transparent 70%),
    linear-gradient(110deg, #FAFAF8 0%, #EDF6F0 100%);
}

/* ==========================================================================
   渐进式双栏舞台（左栏随滚动递进 · 右栏常驻竖屏手机）
   ========================================================================== */

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

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}

.narrative-stream {
  display: flex;
  flex-direction: column;
  padding-bottom: 12vh;
}

.prog-chapter {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 10vh 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: 20px;
}

/* 第 5 幕深色氛围切换浅色高对比文字 */
body[data-tone="alerts"] .prog-chapter {
  color: #F8FAFC;
}

body[data-tone="alerts"] .chapter-copy,
body[data-tone="alerts"] .hero-footnote {
  color: #CBD5E1;
}

/* 品牌标志 */
.brand-seal {
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-seal--md {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.38);
}

.brand-seal--xs {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.brand-seal svg {
  width: 100%;
  height: 100%;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   标题与流光文字系统
   ========================================================================== */

.display-hero {
  margin: 0;
  font-size: clamp(2.45rem, 4.3vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.038em;
  color: var(--ink);
  transition: color 360ms ease;
}

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

.title-style--blue { color: #111827; }
.title-style--teal { color: #0F2928; }
.title-style--indigo { color: #1E1B4B; }
.title-style--amber { color: #2B1D0E; }
.title-style--dark { color: #111827; }
.title-style--emerald { color: #0F291E; }

body[data-tone="alerts"] .display-hero,
body[data-tone="alerts"] .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-blue {
  background-image: linear-gradient(110deg, #2563EB 0%, #3B82F6 48%, #1D4ED8 100%);
}

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

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

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

body[data-tone="alerts"] .hl-darkglow {
  background-image: linear-gradient(110deg, #60A5FA 0%, #A78BFA 52%, #34D399 100%);
}

.hl-emerald {
  background-image: linear-gradient(110deg, #15803D 0%, #0F766E 52%, #1A7F4B 100%);
}

/* 第 4 幕专属笔锋下划线 */
.hl-ink-stroke {
  position: relative;
  display: inline-block;
  color: #9E5D00;
}

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

.hl-ink-stroke::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(158, 93, 0, 0.25) 0%, rgba(217, 119, 6, 0.42) 100%);
  transform-origin: left center;
  transform: scaleX(var(--stroke-p, 0.2));
  z-index: -1;
}

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

.chapter-copy--lead {
  max-width: 480px;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
}

.hero-footnote {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* 按钮 */
.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 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease-out), background-color 180ms, border-color 180ms, color 180ms;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* 移动端首屏迷你卡默认在桌面隐藏 */
.mobile-mini-preview {
  display: none;
}

/* ==========================================================================
   右侧：常驻粘性竖屏手机真机视窗（兼容 1366x768 与 1440x900）
   ========================================================================== */

.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;
}

.phone-hardware {
  position: relative;
  height: min(84dvh, 710px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 368 / 720;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(155deg, #252A36 0%, #101319 100%);
  border: 1px solid #303746;
  box-shadow: var(--shadow-phone);
  display: flex;
  flex-direction: column;
  transform:
    perspective(1500px)
    rotateX(var(--rx, 1.8deg))
    rotateY(var(--ry, -3.6deg))
    scale(var(--hw-scale, 1));
  transition:
    transform 600ms var(--ease-out),
    box-shadow 560ms var(--ease-out),
    border-color 560ms var(--ease-out);
  will-change: transform;
}

body[data-tone="alerts"] .phone-hardware {
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.60),
    0 42px 96px -16px rgba(0, 0, 0, 0.85),
    0 0 70px -18px rgba(37, 99, 235, 0.36);
}

.phone-light-sweep {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

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

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

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

.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 99px;
  background: #0B0B0C;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  gap: 6px;
  z-index: 12;
  pointer-events: none;
}

.island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1B2230;
  border: 1px solid #2C3548;
}

.island-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 180ms, box-shadow 180ms;
}

.island-led.is-green {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
}

.island-led.is-orange {
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.95);
}

.island-pulse {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  transform: translateY(-50%) scale(0.5);
  opacity: 0;
}

.island-pulse.is-burst {
  animation: island-ping 0.8s var(--ease-out) 1;
}

@keyframes island-ping {
  0% { transform: translateY(-50%) scale(0.7); opacity: 0.95; }
  100% { transform: translateY(-50%) scale(3.4); opacity: 0; }
}

.phone-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--app-light-bg);
}

/* 通知横幅 */
.phone-notif-banner {
  position: absolute;
  top: 38px;
  left: 10px;
  right: 10px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 340ms var(--ease-out), opacity 240ms ease;
}

.phone-notif-banner.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.notif-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.notif-icon svg {
  width: 100%;
  height: 100%;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
}

.notif-head span {
  font-size: 0.64rem;
  color: #9CA3AF;
}

.notif-body p {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: #D1D5DB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 场景层切换 */
.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(7%, 0, 0) scale(0.985);
  transition:
    transform 560ms var(--ease-glide),
    opacity 320ms ease,
    visibility 0s linear 560ms;
  z-index: 1;
}

.scene-layer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 560ms var(--ease-glide),
    opacity 320ms 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;
}

/* ==========================================================================
   手机内部 6 套真实 App 界面样式
   ========================================================================== */

.app-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 38px;
}

.app-screen--light {
  background: var(--app-light-bg);
  color: var(--app-light-text);
}

.app-screen--dark {
  background: var(--app-dark-bg);
  color: var(--app-dark-text);
}

.app-topbar {
  padding: 6px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-screen-title {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.app-screen-sub {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-light-selected);
  color: var(--app-light-text);
  border: none;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.app-refresh-btn.is-spinning {
  animation: spin-once 600ms var(--ease-out);
}

@keyframes spin-once {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.app-nav-header {
  padding: 6px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-light-border);
}

.app-screen--dark .app-nav-header {
  border-bottom-color: var(--app-dark-border);
}

.app-nav-back {
  width: 24px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--app-primary);
}

.app-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.app-nav-spacer,
.app-nav-refresh {
  width: 24px;
  text-align: right;
  font-size: 0.92rem;
  color: var(--app-primary);
}

.app-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px 16px;
  scrollbar-width: none;
}

.app-scroll-body::-webkit-scrollbar {
  display: none;
}

.app-stack-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 序幕纯净看板 <-> 第 1 幕展开月度订阅汇总 */
.app-summary-band {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--app-light-border);
  transition: opacity 340ms ease, max-height 380ms var(--ease-out), margin 340ms ease, padding 340ms ease;
  max-height: 120px;
  overflow: hidden;
}

#layer-overview.is-clean-overview .app-summary-band {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.app-summary-label {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.app-summary-total {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-summary-renewal {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.app-refresh-notice {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--app-light-surface);
  border: 1px solid var(--app-light-border);
  font-size: 0.72rem;
  color: var(--app-light-good);
  font-weight: 600;
}

.app-refresh-notice.is-visible {
  display: flex;
}

.app-refresh-notice button {
  border: none;
  background: transparent;
  color: var(--app-light-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
}

/* 账号卡与计量行 */
.app-account-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-account-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acc-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prov-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.acc-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.acc-plan {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.compact-meter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.cm-title {
  width: 68px;
  flex-shrink: 0;
  font-size: 0.71rem;
  color: var(--app-light-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-title.is-wide {
  flex: 1;
  width: auto;
}

.cm-track {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--app-light-selected);
  overflow: hidden;
}

.cm-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--app-primary);
}

.cm-fill.is-good { background: var(--app-primary); }
.cm-fill.is-warn { background: var(--app-light-warn); }

.cm-pace {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #000000;
  opacity: 0.45;
}

.cm-val {
  min-width: 34px;
  text-align: right;
  font-size: 0.71rem;
  font-weight: 700;
}

.cm-val.is-warn {
  color: var(--app-light-warn);
}

.cm-reset {
  min-width: 48px;
  text-align: right;
  font-size: 0.68rem;
  color: var(--app-light-text-secondary);
  white-space: nowrap;
}

.app-inline-notice {
  font-size: 0.69rem;
  font-weight: 600;
}

.app-inline-notice.is-warn {
  color: var(--app-light-warn);
}

/* 底部双 Tab 栏 */
.app-tabbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 7px 0 12px;
  border-top: 1px solid var(--app-light-border);
  background: var(--app-light-bg);
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--app-light-text-secondary);
}

.app-tab svg {
  width: 17px;
  height: 17px;
}

.app-tab.is-active {
  color: var(--app-light-text);
}

/* 中转站界面 */
.app-hint-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--app-light-text-secondary);
}

.app-screen--dark .app-hint-text {
  color: var(--app-dark-text-secondary);
}

.relay-preset-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.relay-preset-btn {
  border: 1px solid var(--app-light-border);
  background: var(--app-light-surface);
  color: var(--app-light-text);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  transition: all 160ms;
}

.relay-preset-btn.is-active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #FFFFFF;
}

.app-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-field-label {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.app-field-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--app-light-selected);
  font-size: 0.74rem;
  color: var(--app-light-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-field-hint {
  font-size: 0.66rem;
  color: var(--app-light-text-secondary);
}

.app-btn {
  width: 100%;
  min-height: 36px;
  border: none;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: opacity 150ms, transform 150ms;
}

.app-btn--primary {
  background: var(--app-primary);
  color: #FFFFFF;
}

.app-btn--secondary {
  background: var(--app-light-selected);
  color: var(--app-light-text);
}

.app-screen--dark .app-btn--secondary {
  background: var(--app-dark-selected);
  color: var(--app-dark-text);
}

.app-btn--destructive {
  background: var(--app-light-selected);
  color: var(--app-light-bad);
}

.app-btn.is-static {
  cursor: default;
}

.app-section-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--app-light-text-secondary);
}

.app-screen--dark .app-section-label {
  color: var(--app-dark-text-secondary);
}

.app-band-card {
  background: var(--app-light-surface);
  border: 1px solid var(--app-light-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-screen--dark .app-band-card {
  background: var(--app-dark-surface);
  border-color: var(--app-dark-border);
}

.relay-res-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.relay-res-meta {
  font-size: 0.68rem;
  color: var(--app-light-text-secondary);
}

.relay-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.relay-metrics-grid span {
  display: block;
  font-size: 0.64rem;
  color: var(--app-light-text-secondary);
}

.relay-metrics-grid strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.relay-key-status {
  font-size: 0.7rem;
  font-weight: 600;
}

.relay-key-status.is-good {
  color: var(--app-light-good);
}

/* 提供商列表界面 */
.app-search-bar-wrap {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid var(--app-light-border);
}

.app-search-input {
  width: 100%;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--app-light-selected);
  font-size: 0.75rem;
}

.app-search-input:focus {
  border-color: var(--app-primary);
  outline: none;
}

.provider-cat-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.provider-cat-btn {
  border: none;
  background: var(--app-light-selected);
  color: var(--app-light-text);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}

.provider-cat-btn.is-active {
  background: var(--app-primary);
  color: #FFFFFF;
}

.app-band-list {
  background: var(--app-light-surface);
  border: 1px solid var(--app-light-border);
  border-radius: 12px;
  overflow: hidden;
}

.prov-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--app-light-border);
}

.prov-row:last-child {
  border-bottom: none;
}

.prov-row[hidden],
.provider-group-block[hidden] {
  display: none;
}

.prov-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--app-light-selected);
  color: var(--app-light-text);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.prov-row-name {
  flex: 1;
  font-size: 0.74rem;
  font-weight: 600;
}

.prov-row-hint {
  font-size: 0.66rem;
  color: var(--app-light-text-secondary);
}

.app-empty-search {
  text-align: center;
  font-size: 0.74rem;
  color: var(--app-light-text-secondary);
  padding: 20px 8px;
}

/* 详情页 */
.detail-hero-head {
  padding-bottom: 4px;
}

.detail-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-title-row strong {
  font-size: 1.08rem;
}

.detail-title-row span {
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.expand-meter-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-expanded-info {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--app-light-bg);
}

.expand-meter-btn.is-expanded .meter-expanded-info {
  display: flex;
}

.meter-split-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--app-light-text);
}

.meter-exact-reset {
  font-size: 0.65rem;
  color: var(--app-light-warn);
}

.detail-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.app-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.currency-seg-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 0;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--app-light-selected);
  color: var(--app-light-text);
}

.currency-seg-btn.is-selected {
  background: var(--app-primary);
  color: #FFFFFF;
}

.codex-chance-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.codex-chance-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.codex-chance-cell span {
  font-size: 0.66rem;
  color: var(--app-light-text-secondary);
}

.codex-chance-cell strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-primary);
  line-height: 1.1;
}

.codex-chance-cell em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--app-primary);
}

.codex-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.64rem;
  color: var(--app-light-text-secondary);
}

.codex-credit {
  color: var(--app-primary);
  font-weight: 600;
}

/* 第 5 幕：深色小组件、阈值与 7 主题色 */
.ios-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ios-widget-tile {
  background: var(--app-dark-surface);
  border: 1px solid var(--app-dark-border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
}

.w-top strong {
  font-size: 0.96rem;
  color: var(--app-primary);
}

.w-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--app-dark-selected);
  overflow: hidden;
}

.w-bar span {
  display: block;
  height: 100%;
  background: var(--app-primary);
  border-radius: 99px;
}

.w-foot {
  font-size: 0.63rem;
  color: var(--app-dark-text-secondary);
}

.threshold-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.threshold-chip {
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--app-dark-selected);
  color: var(--app-dark-text);
}

.threshold-chip.is-selected {
  background: var(--app-primary);
  color: #FFFFFF;
}

.accent-swatches-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.accent-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw);
  position: relative;
}

.accent-swatch.is-selected {
  box-shadow: 0 0 0 2px var(--app-dark-surface), 0 0 0 4px var(--sw);
}

/* 第 6 幕：隐私 */
.privacy-flow-card {
  background: var(--app-light-surface);
  border: 1px solid var(--app-light-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-node strong {
  display: block;
  font-size: 0.76rem;
}

.pf-node span {
  font-size: 0.67rem;
  color: var(--app-light-text-secondary);
}

.pf-arrow {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--app-light-bg);
  color: var(--app-light-good);
  font-size: 0.67rem;
  font-weight: 700;
  text-align: center;
}

.privacy-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
}

.privacy-confirm-dialog {
  background: var(--app-light-surface);
  border: 1px solid var(--app-light-bad);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-confirm-dialog[hidden] {
  display: none;
}

.privacy-confirm-dialog strong {
  font-size: 0.82rem;
}

.privacy-confirm-dialog p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--app-light-text-secondary);
}

.privacy-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ==========================================================================
   终章：下载区 · 支持服务一览 · FAQ · 页脚
   ========================================================================== */

.download-band,
.directory-band,
.faq-band {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(68px, 9vh, 108px) 0;
}

.band-header {
  max-width: 680px;
  margin-bottom: clamp(28px, 4.5vh, 44px);
}

.band-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.release-status-line {
  margin: 12px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
}

.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, 1fr);
  }
}

.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, 52px); }
  .compare-col--right { padding-left: clamp(28px, 4vw, 52px); border-left: 1px solid var(--line); }
}

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

.compare-platform {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.compare-platform--blue {
  color: var(--brand);
}

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

.compare-heading strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.compare-heading 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;
}

.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.sub-arch-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.sub-arch-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* 支持服务速览 */
.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 820px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
}

.dir-column h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dir-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dir-list strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.dir-list span {
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.dir-note {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.68;
}

/* FAQ */
.faq-section {
  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.98rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  cursor: pointer;
}

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

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

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

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

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

.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;
  flex-wrap: wrap;
  gap: 20px;
}

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

/* ==========================================================================
   移动端专属海报流排版（<= 960px）
   ========================================================================== */

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

  .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: 48px 0 36px;
    gap: 18px;
  }

  .prog-chapter:not(.prog-chapter--hero) {
    min-height: auto;
    padding: clamp(48px, 8vh, 72px) 0;
    border-top: 1px solid rgba(17, 20, 27, 0.08);
    gap: 14px;
  }

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

  .display-hero {
    font-size: clamp(2.15rem, 8.8vw, 3.1rem);
    line-height: 1.12;
  }

  .chapter-title {
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 1.18;
  }

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

  /* 移动端轻量看板卡 */
  .mobile-mini-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px -10px rgba(17, 20, 27, 0.12);
    color: var(--app-light-text);
  }

  .mmp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mmp-title {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .mmp-sub {
    font-size: 0.74rem;
    color: var(--app-light-text-secondary);
  }

  .mmp-card {
    padding-top: 10px;
    border-top: 1px solid var(--app-light-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .mmp-acc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
  }

  .mmp-acc span {
    font-size: 0.72rem;
    color: var(--app-light-text-secondary);
  }

  .mmp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
  }

  .mmp-label {
    width: 68px;
    flex-shrink: 0;
    color: var(--app-light-text-secondary);
  }

  .mmp-track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: var(--app-light-selected);
    overflow: hidden;
  }

  .mmp-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
  }

  .mmp-fill.is-warn { background: var(--app-light-warn); }
  .mmp-fill.is-good { background: var(--brand); }

  .mmp-pace {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000000;
    opacity: 0.45;
  }

  .mmp-val {
    font-weight: 700;
    min-width: 34px;
    text-align: right;
  }

  .mmp-val.is-warn { color: var(--app-light-warn); }

  .mmp-time {
    color: var(--app-light-text-secondary);
    min-width: 56px;
    text-align: right;
  }

  .mmp-warn-line {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--app-light-warn);
  }
}

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

  .cta-row .btn,
  .download-actions .btn {
    width: 100%;
  }

  .download-actions {
    width: 100%;
  }
}

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