/* ==========================================================================
   星漫声码（Xingman ShengMa）官方网站生产级样式表
   原则：100% 消费 tokens.css 三层变量 · 零硬编码色值/尺寸 · 显式声明过渡属性
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

body {
  margin: var(--space-0);
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  background-image: var(--color-bg-canvas);
  background-attachment: fixed;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}

[hidden] {
  display: none !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.sr-only-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.anchor-alias {
  display: block;
  position: relative;
  height: var(--space-0);
  scroll-margin-top: var(--layout-scroll-offset);
}

/* 跳至正文无障碍链接 */
.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--size-skip-offset);
  z-index: var(--z-toast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: var(--weight-semibold);
  transition-property: top;
  transition-duration: var(--duration-fast);
  transition-timing-function: var(--ease-standard);
}

.skip-link:focus-visible {
  top: var(--space-4);
}

/* 容器与区块节拍 */
.container {
  width: 100%;
  max-width: var(--layout-container-max);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.section-block {
  padding-block: var(--layout-section-pad);
  scroll-margin-top: var(--layout-scroll-offset);
}

.section-head {
  max-width: var(--layout-prose-max);
  margin-bottom: var(--space-10);
}

.section-title {
  margin: var(--space-0) var(--space-0) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--letter-tight);
  text-wrap: balance;
}

.section-lead {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  text-wrap: pretty;
}

/* 统一矢量图标 */
.icon-svg {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-min-height);
  padding: var(--space-2) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  transition-property: transform, background-color, border-color, box-shadow, color, opacity;
  transition-duration: var(--duration-fast);
  transition-timing-function: var(--ease-standard);
}

.btn-lg {
  min-height: var(--btn-lg-height);
  padding: var(--space-3) var(--btn-lg-pad-x);
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border-color: var(--btn-secondary-border);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}

.btn-secondary:hover {
  background: var(--btn-secondary-bg-hover);
  border-color: var(--btn-secondary-border-hover);
}

.btn-alipay {
  background: var(--color-btn-alipay-bg);
  color: var(--color-btn-channel-fg);
  box-shadow: var(--shadow-cta);
}

.btn-wechat {
  background: var(--color-btn-wechat-bg);
  color: var(--color-btn-channel-fg);
  box-shadow: var(--shadow-cta);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 语义微标签 */
.scene-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  border: 1px solid var(--color-border-subtle);
}

.tag-cyan {
  background: var(--color-status-info-bg);
  color: var(--color-accent-primary);
}

.tag-violet {
  background: var(--color-status-violet-bg);
  color: var(--color-accent-secondary);
}

.tag-emerald {
  background: var(--color-status-success-bg);
  color: var(--color-status-success);
}

.tag-gold {
  background: var(--color-status-gold-bg);
  color: var(--color-status-gold);
}

.tag-danger {
  background: var(--color-status-danger-bg);
  color: var(--color-status-danger);
}

.tag-neutral {
  background: var(--color-surface-chip);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   1. 悬浮液态玻璃胶囊顶栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: var(--space-0);
  z-index: var(--z-sticky);
  padding-top: max(var(--space-3), env(safe-area-inset-top));
  padding-inline: var(--layout-gutter);
}

.header-shell {
  max-width: var(--layout-container-max);
  margin-inline: auto;
}

.nav-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--nav-min-height);
  padding: var(--space-2);
  border-radius: var(--nav-radius);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(var(--nav-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(165%);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  min-height: var(--touch-target-min);
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
}

.brand-avatar-wrap {
  width: var(--size-brand-logo);
  height: var(--size-brand-logo);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-media-fallback);
  border: 1px solid var(--color-border-strong);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-0);
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  white-space: nowrap;
}

.brand-name-ext {
  display: none;
}

.brand-sub {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  line-height: var(--leading-tight);
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition-property: background-color, color;
  transition-duration: var(--duration-fast);
  transition-timing-function: var(--ease-standard);
}

.nav-item:hover {
  background: var(--color-surface-chip);
  color: var(--color-text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-chip);
  color: var(--color-text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  touch-action: manipulation;
  transition-property: background-color, border-color, color;
  transition-duration: var(--duration-fast);
  transition-timing-function: var(--ease-standard);
}

.icon-pill-btn:hover {
  background: var(--color-surface-chip-hover);
  border-color: var(--color-border-strong);
}

.icon-only-btn {
  padding-inline: var(--space-0);
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

.btn-nav-auth,
.btn-nav-admin {
  display: none;
}

.btn-nav-auth.is-signed-in {
  max-width: var(--size-nav-pill-max-w);
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: var(--color-border-strong);
  background: var(--color-status-info-bg);
  color: var(--color-text-primary);
}

.btn-nav-admin {
  border-color: var(--color-border-featured);
  color: var(--color-status-gold);
}

/* 手机端折叠导航抽屉 */
.mobile-drawer {
  margin-top: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--color-surface-modal);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.mobile-nav-link:hover {
  background: var(--color-surface-chip);
}

.mobile-drawer-cta {
  margin-top: var(--space-2);
  width: 100%;
}

/* ==========================================================================
   2. Hero 声波驾驶舱首屏（非对称 12 栏）
   ========================================================================== */
.hero-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
  scroll-margin-top: var(--layout-scroll-offset);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.status-dot {
  width: var(--size-dot-sm);
  height: var(--size-dot-sm);
  border-radius: var(--radius-pill);
  background: var(--color-status-success);
  flex-shrink: 0;
}

.status-dot.is-offline {
  background: var(--color-text-muted);
}

.hero-title {
  margin: var(--space-0) var(--space-0) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-tight);
  text-wrap: balance;
}

html[lang="en"] .hero-title {
  font-size: var(--text-hero-en);
}

.hero-subtitle {
  margin: var(--space-0) var(--space-0) var(--space-7);
  max-width: var(--layout-prose-max);
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-trust-note {
  margin: var(--space-0);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* 右侧声波驾驶舱主舞台 */
.hero-stage-col {
  min-width: 0;
}

.cockpit-stage {
  position: relative;
  border-radius: var(--hero-stage-radius);
  padding: var(--space-3);
  background: var(--hero-stage-bg);
  border: 1px solid var(--hero-stage-border);
  box-shadow: var(--hero-stage-shadow);
}

.cockpit-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-media-fallback);
  border: 1px solid var(--color-border-subtle);
}

.cockpit-hero-img {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-img-fallback {
  opacity: 0;
}

.media-fallback-overlay {
  position: absolute;
  inset: var(--space-0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.fallback-cockpit-ui {
  width: 100%;
  max-width: var(--size-toast-max-w);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
}

.fallback-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.fallback-pill-cyan,
.fallback-pill-green {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.fallback-pill-cyan {
  background: var(--color-status-info-bg);
  color: var(--color-accent-primary);
}

.fallback-pill-green {
  background: var(--color-status-success-bg);
  color: var(--color-status-success);
}

.fallback-code-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fallback-line {
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
}

.w-long {
  width: 92%;
}

.w-mid {
  width: 70%;
}

.w-short {
  width: 48%;
}

/* 声波频谱与真透明底小黑猫倾听陪伴坞 */
.cockpit-wave-dock {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-hero-wave-bg);
  border: 1px solid var(--color-border-subtle);
}

.cockpit-mascot-slot {
  width: var(--hero-cat-w);
  height: var(--hero-cat-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.cockpit-cat-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cockpit-wave-meta {
  flex: 1;
  min-width: 0;
}

.wave-spectrum {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: var(--hero-wave-bar-max);
  margin-bottom: var(--space-1);
}

.wave-bar {
  width: var(--hero-wave-bar-w);
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  transform-origin: center;
  animation-name: shengmaWave;
  animation-duration: var(--duration-wave);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.bar-1 {
  height: var(--size-wave-h-1);
  animation-delay: 0ms;
}

.bar-2 {
  height: var(--size-wave-h-2);
  animation-delay: 180ms;
}

.bar-3 {
  height: var(--size-wave-h-3);
  animation-delay: 360ms;
}

.bar-4 {
  height: var(--size-wave-h-4);
  animation-delay: 540ms;
}

.bar-5 {
  height: var(--size-wave-h-3);
  animation-delay: 720ms;
}

.bar-6 {
  height: var(--size-wave-h-2);
  animation-delay: 900ms;
}

.bar-7 {
  height: var(--size-wave-h-1);
  animation-delay: 1080ms;
}

@keyframes shengmaWave {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.wave-spectrum.is-paused .wave-bar {
  animation-play-state: paused;
  transform: scaleY(0.75);
}

.cockpit-whisper {
  margin: var(--space-0);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
  white-space: normal;
  text-wrap: pretty;
}

.wave-pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-chip);
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition-property: background-color, border-color, color;
  transition-duration: var(--duration-fast);
}

.wave-pause-btn:hover {
  background: var(--color-surface-chip-hover);
  color: var(--color-text-primary);
}

.wave-pause-btn .icon-play {
  display: none;
}

.wave-pause-btn[aria-pressed="true"] .icon-pause {
  display: none;
}

.wave-pause-btn[aria-pressed="true"] .icon-play {
  display: block;
}

/* 6 款 AI 编程软件适配刻度带 */
.tools-strip {
  margin-top: var(--space-12);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tools-strip-label {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.tools-list {
  list-style: none;
  margin: var(--space-0);
  padding: var(--space-0);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.tool-dot {
  width: var(--size-dot-sm);
  height: var(--size-dot-sm);
  border-radius: var(--radius-pill);
  background: var(--color-accent-primary);
}

/* ==========================================================================
   3. 三大生活场景带（非对称杂志编辑排布）
   ========================================================================== */
.scenes-editorial {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.scene-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--scene-radius);
  background: var(--scene-bg);
  border: 1px solid var(--scene-border);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}

.scene-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-media-fallback);
  border: 1px solid var(--color-border-subtle);
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}

.scene-heading {
  margin: var(--space-0);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.scene-body {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.scene-facts {
  margin: var(--space-2) var(--space-0) var(--space-0);
  padding-left: var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.scenes-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

/* ==========================================================================
   4. 核心能力单一巨幅液态玻璃控制台（左轨 × 右舞台）
   ========================================================================== */
.console-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--console-radius);
  background: var(--console-bg);
  border: 1px solid var(--console-border);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}

.console-rail {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  padding: var(--space-3);
  overflow-x: auto;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-elevated);
}

.console-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--console-tab-radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition-property: background-color, border-color, color;
  transition-duration: var(--duration-fast);
  transition-timing-function: var(--ease-standard);
}

.console-tab:hover {
  background: var(--color-surface-chip);
  color: var(--color-text-primary);
}

.console-tab.is-active {
  background: var(--color-status-info-bg);
  border-color: var(--color-border-strong);
  color: var(--color-accent-primary);
}

.console-stage {
  padding: var(--space-6);
  min-width: 0;
}

.panel-header {
  max-width: var(--layout-prose-max);
  margin-bottom: var(--space-6);
}

.panel-title {
  margin: var(--space-0) var(--space-0) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.panel-desc {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.demo-canvas {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-stage);
  border: 1px solid var(--color-border-subtle);
}

.demo-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.demo-box {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.demo-box-highlight {
  border-color: var(--color-border-strong);
}

.demo-box-label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
}

.label-cyan {
  color: var(--color-accent-primary);
}

.demo-utterance {
  margin: var(--space-0);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.demo-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.metric-chip {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

/* 6 工具演示格 */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--size-grid-min-tool), 1fr));
  gap: var(--space-3);
}

.launcher-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.launcher-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.launcher-state {
  font-size: var(--text-xs);
}

.state-online {
  color: var(--color-status-success);
}

/* 2K 远程审批卡 */
.approval-mock-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.approval-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.demo-quality-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-semibold);
}

.approval-question {
  margin: var(--space-0);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.mock-pill-approve {
  background: var(--color-status-success-bg);
  color: var(--color-status-success);
  border: 1px solid var(--color-status-success);
}

.mock-pill-reject {
  background: var(--color-surface-chip);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
}

/* 12 常用语墙 */
.phrases-wall {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.phrase-chip {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
}

.phrase-chip.is-chain {
  background: var(--color-status-violet-bg);
  border-color: var(--color-accent-secondary);
  color: var(--color-accent-secondary);
  font-weight: var(--weight-semibold);
}

/* 红绿本地审查预览 */
.diff-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.diff-line {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.diff-del {
  background: var(--color-diff-del-bg);
  color: var(--color-status-danger);
}

.diff-add {
  background: var(--color-diff-add-bg);
  color: var(--color-status-success);
}

/* ==========================================================================
   5. 三步上手时间轨（唯一使用 01/02/03 编号） + 宣传片画框
   ========================================================================== */
.steps-track {
  list-style: none;
  margin: var(--space-0) var(--space-0) var(--space-12);
  padding: var(--space-0);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.step-item {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-step-badge);
  height: var(--size-step-badge);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-status-info-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.step-title {
  margin: var(--space-0) var(--space-0) var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.step-desc {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* 宣传片影院画框 */
.video-showcase {
  max-width: var(--video-max-w);
  margin-inline: auto;
  padding: var(--space-5);
  border-radius: var(--video-radius);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-panel);
}

.video-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.video-title {
  margin: var(--space-0) var(--space-0) var(--space-1);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.video-caption {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.video-duration {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-media-fallback);
  border: 1px solid var(--color-border-subtle);
}

.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   6. 全端下载中心（森罗盘高速直链）
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--download-radius);
  background: var(--download-bg);
  border: 1px solid var(--download-border);
  box-shadow: var(--shadow-panel);
}

.download-card.is-recommended {
  border-color: var(--color-border-strong);
  background: var(--color-surface-stage);
}

.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.platform-icon-box {
  width: var(--download-icon-box);
  height: var(--download-icon-box);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-chip);
  color: var(--color-accent-primary);
  border: 1px solid var(--color-border-subtle);
}

.download-name {
  margin: var(--space-1) var(--space-0) var(--space-0);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.download-meta {
  margin: var(--space-0);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-primary);
}

.download-desc {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.download-guide {
  margin: var(--space-0) var(--space-0) auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   7. 会员赞助礼遇中心（Pricing 双轴透明架构）
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--plan-radius);
  background: var(--plan-bg);
  border: 1px solid var(--plan-border);
  box-shadow: var(--shadow-panel);
}

.plan-card-featured {
  background: var(--plan-featured-bg);
  border-color: var(--plan-featured-border);
  box-shadow: var(--shadow-stage);
}

.plan-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.plan-name {
  margin: var(--space-1) var(--space-0) var(--space-0);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.plan-for {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.price-currency {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
}

.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.price-unit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.plan-sub-price {
  margin: var(--space-0);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.plan-list {
  margin: var(--space-0) var(--space-0) auto;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.sponsor-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
}

.sponsor-trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.trust-inline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* 纯文本权益对照表 */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.compare-table {
  width: 100%;
  min-width: var(--size-table-min-w);
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.compare-caption {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-divider);
}

.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.compare-table thead th {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  background: var(--color-surface-elevated);
}

.compare-table tbody th {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

.compare-table tbody td {
  color: var(--color-text-secondary);
}

.compare-table .col-featured {
  background: var(--color-status-gold-bg);
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

/* ==========================================================================
   8. FAQ 与收尾行动带 + 页脚
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.faq-honest-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.faq-honest-title {
  margin: var(--space-0) var(--space-0) var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

.faq-honest-body {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--touch-target-min);
  padding-block: var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

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

.faq-answer {
  margin: var(--space-0) var(--space-0) var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: var(--layout-prose-max);
}

/* 收尾行动带 */
.closing-section {
  padding-top: var(--space-6);
}

.closing-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-surface-stage);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-stage);
}

.closing-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--size-closing-copy-max);
}

.closing-title {
  margin: var(--space-0) var(--space-0) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.closing-desc {
  margin: var(--space-0);
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* 页脚 */
.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo {
  width: var(--size-footer-logo);
  height: var(--size-footer-logo);
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--color-surface-media-fallback);
}

.footer-brand-name {
  margin: var(--space-0);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.footer-meta {
  margin: var(--space-0);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  touch-action: manipulation;
  transition-property: background-color, color;
  transition-duration: var(--duration-fast);
}

.footer-links a:hover {
  background: var(--color-surface-chip);
  color: var(--color-text-primary);
}

/* 全局吐司 */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: var(--size-toast-bottom);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  max-width: min(calc(100% - var(--space-8)), var(--size-toast-max-w));
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-surface-modal);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-modal);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  text-align: center;
}

.toast-region.is-error {
  border-color: var(--color-status-danger);
  color: var(--color-status-danger);
}

/* ==========================================================================
   9. 支付宝 / 微信扫码赞助收银弹窗 & 我的账户弹窗
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: var(--space-0);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-scrim);
  backdrop-filter: blur(var(--primitive-blur-sm));
  -webkit-backdrop-filter: blur(var(--primitive-blur-sm));
  overscroll-behavior: contain;
}

.modal-card {
  width: 100%;
  max-width: var(--modal-max-w);
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--modal-radius);
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: var(--modal-shadow);
}

.modal-card-account {
  max-width: var(--modal-account-max-w);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.modal-brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.modal-brand-icon {
  width: var(--size-footer-logo);
  height: var(--size-footer-logo);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: var(--color-surface-media-fallback);
}

.modal-title {
  margin: var(--space-0);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.modal-subtitle {
  margin: var(--space-1) var(--space-0) var(--space-0);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-modal-close);
  height: var(--size-modal-close);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-chip);
  color: var(--color-text-primary);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: var(--color-surface-chip-hover);
}

.modal-body {
  padding: var(--space-5) var(--space-6);
}

/* 通道维护横幅与意图摘要条 */
.auth-intent-bar,
.pay-notice-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.auth-intent-bar {
  background: var(--color-status-info-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-primary);
}

.pay-notice-banner {
  background: var(--color-status-gold-bg);
  border: 1px solid var(--color-border-featured);
  color: var(--color-status-gold);
}

.pay-notice-text {
  margin: var(--space-0);
  font-weight: var(--weight-medium);
}

/* 登录表单 */
.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-1);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
}

.auth-tab {
  min-height: var(--touch-target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--color-surface-modal);
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.field-input {
  width: 100%;
  min-height: var(--input-height);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--input-radius);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition-property: border-color, box-shadow;
  transition-duration: var(--duration-fast);
}

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

.field-input[aria-invalid="true"] {
  border-color: var(--color-status-danger);
}

.field-error {
  margin: var(--space-0);
  font-size: var(--text-xs);
  color: var(--color-status-danger);
}

/* 扫码等待态 */
.selector-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.plan-switcher,
.channel-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.switch-card,
.channel-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-glass);
  color: var(--color-text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  transition-property: border-color, background-color, color;
  transition-duration: var(--duration-fast);
}

.channel-btn {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.switch-card.is-selected,
.channel-btn.is-selected {
  border-color: var(--color-accent-primary);
  background: var(--color-status-info-bg);
  color: var(--color-text-primary);
}

.switch-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.switch-price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.switch-card.is-selected .switch-price {
  color: var(--color-accent-primary);
}

.channel-dot {
  width: var(--size-dot-md);
  height: var(--size-dot-md);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.dot-alipay {
  background: var(--color-channel-alipay);
}

.dot-wechat {
  background: var(--color-channel-wechat);
}

.qr-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.qr-paper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--qr-box-size);
  height: var(--qr-box-size);
  margin-inline: auto;
  padding: var(--qr-box-pad);
  border-radius: var(--qr-box-radius);
  background: var(--color-qr-canvas);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-qr-ink);
  text-align: center;
  padding: var(--space-3);
}

.qr-spinner {
  width: var(--size-qr-spinner);
  height: var(--size-qr-spinner);
  border-radius: var(--radius-pill);
  border: var(--border-width-spinner) solid var(--color-qr-mask);
  border-top-color: var(--color-channel-alipay);
  animation: shengmaSpin 0.85s linear infinite;
}

@keyframes shengmaSpin {
  to {
    transform: rotate(360deg);
  }
}

.qr-loading-text {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.qr-order-meta {
  margin: var(--space-0);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
}

.qr-status-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.qr-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.qr-amount-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.qr-amount-val {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent-primary);
}

.qr-live-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-chip);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.pulse-dot {
  width: var(--size-dot-sm);
  height: var(--size-dot-sm);
  border-radius: var(--radius-pill);
  background: var(--color-status-success);
  flex-shrink: 0;
}

.qr-countdown {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-hint {
  margin: var(--space-0);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.qr-action-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.qr-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

.mobile-secondary-links {
  width: 100%;
  justify-content: center;
  gap: var(--space-4);
}

.text-action-btn {
  min-height: var(--touch-target-min);
  padding-inline: var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-accent-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  touch-action: manipulation;
}

.text-action-btn:hover {
  text-decoration: underline;
}

/* 手机直唤态 */
.mobile-pay-card,
.expired-stage,
.success-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.mobile-pay-title,
.expired-title,
.success-title {
  margin: var(--space-0);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.mobile-pay-desc,
.expired-desc,
.success-note {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: var(--layout-prose-max);
}

.mobile-pay-btns,
.success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* 支付成功礼花态 */
.success-stage {
  position: relative;
}

.confetti-ring {
  position: relative;
  width: var(--size-success-badge);
  height: var(--space-2);
}

.confetti-dot {
  position: absolute;
  width: var(--size-confetti-dot);
  height: var(--size-confetti-dot);
  border-radius: var(--radius-pill);
  opacity: 0.9;
}

.d1 {
  left: 0;
  background: var(--color-accent-primary);
}

.d2 {
  left: 20%;
  background: var(--color-status-gold);
}

.d3 {
  left: 42%;
  background: var(--color-status-success);
}

.d4 {
  left: 64%;
  background: var(--color-accent-secondary);
}

.d5 {
  left: 82%;
  background: var(--color-status-danger);
}

.d6 {
  right: 0;
  background: var(--color-accent-primary);
}

.success-badge {
  width: var(--size-success-badge);
  height: var(--size-success-badge);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-status-success-bg);
  border: var(--border-width-thick) solid var(--color-status-success);
  color: var(--color-status-success);
}

.success-meta {
  margin: var(--space-0);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface-chip);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* 我的账户与赞助记录弹窗 */
.account-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.account-summary-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-stage);
  border: 1px solid var(--color-border-strong);
}

.account-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.account-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.account-greeting {
  margin: var(--space-0) var(--space-0) var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.account-entitlement-text {
  margin: var(--space-0);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.account-top-actions,
.account-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-section-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.account-section-title {
  margin: var(--space-0);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.account-section-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.account-orders-scroll {
  max-height: var(--size-order-list-max-h);
  overflow-y: auto;
  padding-right: var(--space-1);
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-subtle);
}

.account-row-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.account-row-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.account-row-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.account-row-end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.account-empty {
  margin: var(--space-0);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-chip);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   响应式断点（30em = 480px / 48em = 768px 折叠屏展开 / 64em = 1024px / 90em = 1440px）
   ========================================================================== */
@media (min-width: 30em) {
  .nav-capsule {
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }

  .brand-link {
    gap: var(--space-3);
  }

  .brand-avatar-wrap {
    width: var(--size-brand-logo-lg);
    height: var(--size-brand-logo-lg);
  }

  .brand-name-ext {
    display: inline;
  }

  .brand-sub {
    font-size: var(--text-xs);
  }
}

@media (min-width: 48em) {
  .btn-nav-auth,
  .btn-nav-admin {
    display: inline-flex;
  }

  .plan-for {
    min-height: var(--size-plan-for-min-h);
  }

  .scene-feature-primary {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    padding: var(--space-7);
  }

  .scenes-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 768px 折叠屏展开自动切换为左轨双栏控制台 */
  .console-shell {
    grid-template-columns: var(--console-rail-w) minmax(0, 1fr);
  }

  .console-rail {
    flex-direction: column;
    overflow-x: visible;
    border-bottom: 0;
    border-right: 1px solid var(--color-divider);
    padding: var(--space-4);
  }

  .console-tab {
    white-space: normal;
  }

  .demo-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-stage {
    grid-template-columns: var(--qr-box-size) minmax(0, 1fr);
  }

  .closing-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 64em) {
  .nav-links {
    display: flex;
  }

  .nav-menu-toggle {
    display: none;
  }

  .hero-section {
    padding-top: var(--space-14);
  }

  /* 非对称 12 栏 Hero（5.5 / 6.5） */
  .hero-grid {
    grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
    gap: var(--space-10);
  }

  .tools-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
    gap: var(--space-12);
    align-items: start;
  }

  .faq-sidebar {
    position: sticky;
    top: var(--size-faq-sticky-top);
  }
}

@media (min-width: 90em) {
  .download-grid,
  .plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 严格尊重减弱动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wave-bar,
  .qr-spinner {
    animation: none;
  }

  .wave-bar {
    transform: scaleY(0.75);
    opacity: 0.9;
  }

  .btn,
  .nav-item,
  .icon-pill-btn,
  .console-tab,
  .switch-card,
  .channel-btn,
  .field-input,
  .skip-link {
    transition-duration: 1ms;
    transform: none;
  }
}
