/**
 * 如木智能官网样式 —— 「产品工作台」版
 * 设计令牌对齐 vctgo-ui-new/src/assets/styles/variables.scss（暖白纸感）：
 * 炭黑 #1f1f1f + 暖珊瑚 #cc785c + 纸底 #faf8f5，衬线标题 + 系统黑体正文
 * 演示 mock 采用暗色大屏体系（--dark-* 令牌），与真实产品的大屏视觉同源
 */

/* ---- 令牌 ---- */
:root {
  --primary: #1f1f1f;
  --primary-hover: #404040;
  --accent: #cc785c;
  --accent-hover: #b86949;
  --accent-soft: rgba(204, 120, 92, 0.08);

  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --bg-subtle: #f4f1ec;

  --text-main: #1f1f1f;
  --text-sub: #595959;
  --text-muted: #8c8c8c;

  --border: rgba(31, 31, 31, 0.08);
  --border-strong: rgba(31, 31, 31, 0.14);

  /* 暗色大屏令牌（对齐 variables.scss $dark-*） */
  --dark-bg: #18181b;
  --dark-panel: #1f1f23;
  --dark-elevated: #27272a;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-text: #e4e4e7;
  --dark-text-sub: #a1a1aa;
  --dark-text-mute: #71717a;
  --dark-accent: #f59e7c;
  --felt: #1d5c3f;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SF Mono", Consolas, monospace;

  --shadow-card: 0 0 0 1px rgba(31, 31, 31, 0.04);
  --shadow-hover: 0 0 0 1px rgba(31, 31, 31, 0.1);
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --anim: 220ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-enter: 560ms;
  --header-h: 64px;
}

/* ---- 基础 ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--anim), border-color var(--anim), color var(--anim),
    transform var(--anim) var(--ease-out), box-shadow var(--anim);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(31, 26, 22, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text-main);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: rgba(31, 31, 31, 0.04);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---- 品牌字标（与登录页同款） ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-mark--sm {
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 4px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-name__main {
  color: var(--primary);
}

.brand-name__accent {
  color: var(--accent);
}

/* ---- 顶部导航 ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--anim), box-shadow var(--anim);
}

/* 滚动后导航底色压实，内容经过时不再透字 */
.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.96);
  box-shadow: 0 10px 28px -22px rgba(31, 26, 22, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav > a {
  position: relative;
  font-size: 16px;
  color: var(--text-sub);
  transition: color var(--anim);
}

.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--anim) var(--ease-out);
}

.site-nav > a:hover {
  color: var(--primary);
}

/* 当前页：导航项保留不删，用 aria-current 标记（全站导航因此可逐字一致） */
.site-nav > a[aria-current="page"] {
  color: var(--primary);
  font-weight: 500;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--anim), opacity var(--anim);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- 语言切换（页头单按钮：标签显示点击后会切到的语言） ---- */
.lang-switch {
  margin-left: 6px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--anim), color var(--anim), background var(--anim);
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 104px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

/* Hero 文案居中，下方通栏放完整产品全景图（原节点与连线一字不改） */
.hero-copy-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy-wrap .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy-wrap .hero-actions,
.hero-copy-wrap .hero-strip {
  justify-content: center;
}

.hero-grid .panorama {
  margin-top: 8px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 24px;
  white-space: nowrap;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

/* 打字机：能力词可点击跳转，光标闪烁（动画随 reduced-motion 全局降级） */
.hero-typed {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  margin-left: 0.15em;
}

.hero-typed:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.hero-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}

.hero-lead {
  font-size: 19px;
  color: var(--text-sub);
  max-width: 32em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 右侧实拍卡：与左侧文案同高视觉重心 */
.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* Hero 文案窄屏防溢出 */
@media (max-width: 640px) {
  .hero-lead { overflow-wrap: anywhere; }
}

/* ---- 区块通用 ---- */
.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--workbench {
  background: var(--bg-subtle);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-sub);
}

/* ---- Hero 短语行（替代卡片卖点） ---- */
.hero-strip {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.hero-strip i {
  font-style: normal;
  color: var(--accent);
  margin: 0 12px;
}

/* ---- 工作台：Tab ---- */
.tablist {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--anim), color var(--anim), border-color var(--anim);
}

.tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- 工作台：场景 ---- */
.scene {
  position: relative;
}

.scene-stage {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.stage-billiard {
  grid-template-columns: 1.2fr 1fr 0.8fr;
}

.stage-esports {
  grid-template-columns: 1.1fr 0.9fr;
}

.stage-director {
  grid-template-columns: 1fr;
}

.stage-aiiot {
  grid-template-columns: 1fr 1.1fr 1fr;
}

.esports-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 模拟数据角标 */
.sim-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  z-index: 2;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
}

/* ---- Mock 通用（暗色屏体系） ---- */
.mock {
  position: relative;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-float);
}

.mock-caption {
  font-size: 13px;
  color: var(--dark-text-mute);
  margin-top: auto;
}

.mock-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
}

.mock-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.mock-dot--live {
  color: #10b981;
}

.mock-dot--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 1.6s ease-in-out infinite;
}

.mock-dot--rec {
  color: #f56c6c;
  animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---- Mock：TV 大屏 ---- */
.mock--tv {
  background: var(--dark-bg);
}

.mock-tv-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-text-sub);
}

.mock-tv-title {
  font-weight: 600;
  color: var(--dark-text);
}

.mock-tv-shop {
  margin-left: auto;
  font-size: 12px;
  color: var(--dark-text-mute);
}

.mock-tv-score {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 0;
}

.tv-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tv-name {
  font-size: 13px;
  color: var(--dark-text-sub);
}

.tv-score {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  color: var(--dark-accent);
  line-height: 1;
}

.tv-score.is-hit {
  animation: score-pop 0.6s ease;
}

@keyframes score-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: #fff; }
  100% { transform: scale(1); }
}

.tv-vs {
  font-size: 24px;
  color: var(--dark-text-mute);
}

.mock-tv-rank {
  border-top: 1px solid var(--dark-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-tv-rank li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--dark-text-sub);
}

.rank-score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text);
}

/* 段位徽章 */
.tier {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  white-space: nowrap;
}

.tier--bronze  { color: #c99a6b; background: rgba(201, 154, 107, 0.14); }
.tier--silver  { color: #b7bec7; background: rgba(183, 190, 199, 0.14); }
.tier--gold    { color: #e3c05c; background: rgba(227, 192, 92, 0.14); }
.tier--platinum{ color: #8fc7d9; background: rgba(143, 199, 217, 0.14); }
.tier--diamond { color: #7cc4ff; background: rgba(124, 196, 255, 0.14); }

/* ---- Mock：PlayBox 盒子 ---- */
.mock-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dark-text-sub);
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 2s ease-in-out infinite;
}

.led.is-hit {
  background: var(--dark-accent);
  animation: none;
}

.mock-box-lens {
  position: relative;
  height: 110px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 60% 55%, rgba(255, 255, 255, 0.1) 0 6px, transparent 7px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0 5px, transparent 6px),
    linear-gradient(160deg, #23684a 0%, var(--felt) 60%, #174a33 100%);
  overflow: hidden;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 124, 0.9), transparent);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

.lens-tag {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.mock-box-log {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-text-sub);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 58px;
}

.log-time {
  color: var(--dark-text-mute);
  margin-right: 8px;
}

.mock-box-log li.is-new {
  animation: log-in 0.5s ease;
}

@keyframes log-in {
  0% { opacity: 0; transform: translateY(-4px); color: var(--dark-accent); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- Mock：手机（如木精彩秀） ---- */
.mock--phone {
  border-radius: 28px;
  padding: 24px 16px 16px;
  background: var(--dark-bg);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: var(--dark-elevated);
}

.phone-head {
  font-size: 12px;
  color: var(--dark-text-sub);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dark-border);
}

.phone-clips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.clip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 8px;
}

.clip-thumb {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.clip-thumb--a {
  background: linear-gradient(135deg, #2f7d58, var(--felt));
}

.clip-thumb--b {
  background: linear-gradient(135deg, #556b2f, #23684a);
}

.clip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  min-width: 0;
}

.clip-meta b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-meta span {
  font-size: 10px;
  color: var(--dark-text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-unlock {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--dark-accent);
  background: rgba(245, 158, 124, 0.12);
  border: 1px solid rgba(245, 158, 124, 0.4);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: default;
  animation: breathe 2.4s ease-in-out infinite;
}

/* 演示里点了「解锁」后的落定态：停呼吸、降为已生效样式 */
.clip-unlock.is-unlocked {
  color: var(--dark-text-sub);
  background: var(--dark-elevated);
  border-color: var(--dark-border);
  animation: none;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 124, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(245, 158, 124, 0); }
}

.phone-rankcard {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--dark-text-sub);
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

/* ---- Mock：排位榜 ---- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 20px 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: var(--dark-elevated);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: opacity var(--anim);
}

.rank-list li.is-shuffling {
  opacity: 0.3;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text-mute);
}

.rank-no:first-child,
li:nth-child(1) .rank-no { color: var(--dark-accent); }

.rank-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--dark-text-sub);
}

.rank-name {
  color: var(--dark-text);
}

/* ---- Mock：流程灯 ---- */
.flow-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dark-text-mute);
  background: var(--dark-elevated);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  transition: color var(--anim);
}

.flow-steps li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  flex-shrink: 0;
  transition: background var(--anim);
}

.flow-steps li.is-done {
  color: var(--dark-text);
}

.flow-steps li.is-done i {
  background: #10b981;
}

.flow-steps li.is-active {
  color: var(--dark-accent);
}

.flow-steps li.is-active i {
  background: var(--dark-accent);
  animation: blink 1s ease-in-out infinite;
}

/* ---- Mock：导播监看墙 ---- */
.mock--director {
  background: var(--dark-bg);
}

.director-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--dark-text-sub);
  flex-wrap: wrap;
}

.director-ai {
  margin-left: auto;
  font-size: 12px;
  color: var(--dark-accent);
}

/* 导播台主体：左「节目输出画面」，右「机位墙」 */
.director-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}

.director-pgm,
.director-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* 节目输出画面（PGM）：当前选中机位的推流画面 */
.pgm-frame {
  position: relative;
  border: 2px solid var(--dark-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f2a1c;
}

.pgm-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pgm-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dark-bg);
  background: var(--dark-accent);
  padding: 1px 8px;
  border-radius: 4px;
}

.pgm-cam {
  position: absolute;
  right: 10px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 实时比分条：渐变面板 + 玻璃底板 + 队名色条 + 计时药丸 */
.pgm-scorebar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.82), rgba(9, 9, 11, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
}

.sb-side {
  display: flex;
  align-items: center;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sb-side--home {
  border-left: 3px solid #4f8cff;
}

.sb-side--away {
  border-right: 3px solid #f0645a;
  flex-direction: row-reverse;
}

.sb-name {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-score {
  padding: 4px 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.sb-score.is-hit {
  animation: score-pop 0.6s ease;
}

.sb-clock {
  display: flex;
  align-items: center;
  margin: 3px 4px;
  padding: 2px 10px;
  font-size: 13px;
  color: #eaf2ff;
  background: rgba(59, 130, 246, 0.85);
  border-radius: var(--radius-pill);
}

.director-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cam {
  position: relative;
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.cam canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #0f2a1c;
}

.cam.is-pgm {
  border-color: var(--dark-accent);
}

.cam-label {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 6px;
  border-radius: 4px;
}

.cam-tag {
  position: absolute;
  right: 8px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dark-bg);
  background: var(--dark-accent);
  padding: 1px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cam.is-pgm .cam-tag {
  opacity: 1;
}

.director-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--dark-elevated);
  overflow: hidden;
}

.status-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dark-accent), #7cc4ff);
  transition: width 1.2s ease;
}

.status-text {
  font-size: 11px;
  color: var(--dark-text-mute);
  white-space: nowrap;
}

/* ---- 切换规则（动作 / 行为 / 定时 / 兜底） ---- */
.director-rules,
.director-decisions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--dark-border);
  padding-top: 14px;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.rule-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--dark-elevated);
  font-size: 12px;
  color: var(--dark-text-sub);
  transition: background 0.3s ease, color 0.3s ease;
}

.rule-list b {
  flex: none;
  font-weight: 600;
  color: var(--dark-text);
}

.rule-list li.is-hit {
  background: rgba(245, 158, 124, 0.16);
  color: var(--dark-text);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 124, 0.5);
}

/* ---- 切机决策流（谁触发、切到哪一路） ---- */
.decision-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
}

.decision-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--dark-elevated);
  font-size: 12px;
  color: var(--dark-text-sub);
}

.decision-list li.is-new {
  animation: decision-in 0.45s ease;
}

.dec-time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-text-mute);
}

.dec-rule {
  flex: none;
  font-size: 11px;
  color: var(--dark-accent);
  border: 1px solid rgba(245, 158, 124, 0.35);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}

.dec-detail {
  color: var(--dark-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes decision-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Mock：KPI 大屏 ---- */
.mock--kpi {
  background: var(--dark-bg);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi {
  background: var(--dark-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--dark-accent);
  line-height: 1.1;
}

.kpi:nth-child(2) .kpi-num { color: #7cc4ff; }
.kpi:nth-child(3) .kpi-num { color: #a78bfa; }
.kpi:nth-child(4) .kpi-num { color: #10b981; }

.kpi-label {
  font-size: 12px;
  color: var(--dark-text-sub);
}

/* ---- Mock：AI 流水线 ---- */
.pipeline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pipeline li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dark-text-mute);
  min-width: 0;
}

.pipeline li i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--dark-border);
  flex-shrink: 0;
  transition: border-color var(--anim), background var(--anim);
}

.pipeline li.is-done {
  color: var(--dark-text);
}

.pipeline li.is-done i {
  border-color: #10b981;
  background: #10b981;
}

.pipeline li.is-active {
  color: var(--dark-accent);
}

.pipeline li.is-active i {
  border-color: var(--dark-accent);
  animation: blink 1s ease-in-out infinite;
}

.pipeline-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--dark-elevated);
  overflow: hidden;
}

.pipeline-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #7cc4ff);
  transition: width 0.9s ease;
}

/* ---- Mock：MQTT 流 ---- */
.mock--mqtt {
  background: var(--dark-bg);
}

.mqtt-tracks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mqtt-track {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-text-sub);
}

.mqtt-name {
  width: 3.5em;
  flex-shrink: 0;
  color: var(--dark-text);
}

.mqtt-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--dark-elevated);
  border-radius: 999px;
}

.mqtt-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-accent);
  animation: flow 3s linear infinite;
}

.mqtt-dot--g { background: #10b981; }
.mqtt-dot--b { background: #7cc4ff; }
.mqtt-dot--d1 { animation-delay: 1s; }
.mqtt-dot--d2 { animation-delay: 2s; }

@keyframes flow {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.mqtt-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-text-mute);
  flex-shrink: 0;
}

/* ---- 产品全景：中心辐射关系图（PlayBox 为中枢） ----
   连线是网格里的独立单元，不靠绝对坐标，因此任意宽度都对齐
   移动端（<=1000px）折为单列，所有连线改为向下/双向的竖线 */
.panorama {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(240px, 300px) 112px minmax(0, 1fr);
  grid-template-rows: auto 60px auto 60px auto;
  grid-template-areas:
    ".    .     cam     .      ."
    ".    .     wcam    .      ."
    "cast wcast box     wcloud cloud"
    ".    .     wtv     .      wuser"
    ".    .     tv      .      users";
}

.pn--cam { grid-area: cam; }
.pn--wcam { grid-area: wcam; }
.pn--cast { grid-area: cast; }
.pn--wcast { grid-area: wcast; }
.pn--box { grid-area: box; }
.pn--wcloud { grid-area: wcloud; }
.pn--cloud { grid-area: cloud; }
.pn--wtv { grid-area: wtv; }
.pn--tv { grid-area: tv; }
.pn--wuser { grid-area: wuser; }
.pn--users { grid-area: users; }

.pn-node {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 16px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
}

.pn-node--core {
  background: var(--dark-elevated);
  border-color: var(--dark-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 124, 0.12);
}

.pn-node--cloud {
  background: var(--primary);
  border-color: var(--border-strong);
}

.pn-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--dark-elevated);
  color: var(--dark-accent);
}

.pn-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pn-node--cloud .pn-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pn-body { min-width: 0; }

.pn-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-text);
}

.pn-node--cloud .pn-title { color: #fff; }

.pn-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  vertical-align: 1px;
  color: var(--dark-accent);
  background: rgba(245, 158, 124, 0.14);
}

.pn-desc {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dark-text-mute);
}

.pn-node--cloud .pn-desc { color: rgba(255, 255, 255, 0.7); }

/* 使用端：一块卡里放两个角色 */
.pn--users { align-items: stretch; }

.pn-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pn-user {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 10px;
  border-left: 2px solid rgba(245, 158, 124, 0.5);
}

.pn-user__role {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
}

.pn-user__desc {
  font-size: 11px;
  color: var(--dark-text-mute);
}

/* 连线：纯 CSS 绘制，虚线动画指示方向 */
.pn-wire {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pn-wire--v {
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.pn-wire__line {
  position: relative;
  display: block;
  border-radius: 2px;
  animation: pn-dash-v 1.1s linear infinite;
}

.pn-wire--v .pn-wire__line {
  width: 2px;
  height: 100%;
  background-image: repeating-linear-gradient(
    180deg,
    var(--accent) 0 6px,
    transparent 6px 12px
  );
  background-size: 100% 12px;
}

.pn-wire--v .pn-wire__line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -1px) rotate(45deg);
}

.pn-wire--h .pn-wire__line {
  width: 100%;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0 6px,
    transparent 6px 12px
  );
  background-size: 12px 100%;
  animation-name: pn-dash-h;
}

.pn-wire--h .pn-wire__line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translate(-1px, -50%) rotate(45deg);
}

/* 双向连线：两端都有箭头 */
.pn-wire--both .pn-wire__line::before {
  content: "";
  position: absolute;
}

.pn-wire--v.pn-wire--both .pn-wire__line::before {
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  border-left: 2px solid #7cc4ff;
  border-bottom: 2px solid #7cc4ff;
  transform: translate(-50%, 1px) rotate(-45deg);
}

.pn-wire--h.pn-wire--both .pn-wire__line::before {
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-left: 2px solid #7cc4ff;
  border-top: 2px solid #7cc4ff;
  transform: translate(1px, -50%) rotate(-45deg);
}

@keyframes pn-dash-v {
  to { background-position: 0 12px; }
}

@keyframes pn-dash-h {
  to { background-position: 12px 0; }
}

.pn-wire__label {
  position: absolute;
  z-index: 1;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-sub);
  white-space: nowrap;
}

.pn-wire--v .pn-wire__label {
  left: calc(50% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

.pn-wire--h .pn-wire__label {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -190%);
}

/* 图注 + 上线三步 */
.panorama-foot {
  margin-top: 36px;
  text-align: center;
}

.pn-steps {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  color: var(--text-sub);
}

.pn-steps li {
  position: relative;
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
}

.pn-steps li + li::before {
  content: "→";
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.panorama-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- FAQ 手风琴（原生 details，零 JS） ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin: 0 auto;
  padding: 6px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--anim);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 22px;
  max-width: 60ch;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ---- 产品实拍（台球门店场景） ---- */
.prod-flow {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.prod-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.prod-row--flip .prod-copy {
  order: 2;
}

.prod-row--flip .prod-media {
  order: 1;
}

.prod-copy h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

/* 产品介绍：编号 + 大标题 */
.prod-num {
  display: inline-block;
  margin-right: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  vertical-align: 3px;
}

/* 设备安装拓扑图（第 5 块）：上中下三层，表达接入关系与配置数量 */
.dev-topo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px 16px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
}

.dev-topo__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 128px;
  padding: 12px 14px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.dev-topo__node b {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
}

.dev-topo__node > span:last-child {
  font-size: 11.5px;
  color: var(--dark-text-mute);
}

.dev-topo__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--dark-accent);
}

.dev-topo__ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-topo__box {
  border-color: var(--dark-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 124, 0.12);
}

.dev-topo__line {
  width: 2px;
  height: 26px;
  background-image: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px);
  background-size: 100% 8px;
  animation: pn-dash-v 1.1s linear infinite;
}

.dev-topo__out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  position: relative;
  padding-top: 22px;
}

.dev-topo__out::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.dev-topo__out .dev-topo__node {
  position: relative;
  min-width: 0;
  padding: 10px 8px;
}

.dev-topo__out .dev-topo__node::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 22px;
  background: var(--accent);
  opacity: 0.7;
}

.prod-copy > p {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.prod-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  counter-reset: prodstep;
}

.prod-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--text-sub);
}

.prod-steps li::before {
  counter-increment: prodstep;
  content: counter(prodstep);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  transform: translateY(3px);
}

.prod-steps b {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.prod-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-facts li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sub);
}

.prod-facts b {
  flex-shrink: 0;
  min-width: 6.5em;
  color: var(--text-main);
  font-weight: 600;
}

.prod-note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.prod-media {
  display: grid;
  gap: 16px;
  align-content: start;
}

.prod-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.prod-media--duo {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.prod-media--phones {
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.prod-media--phones img {
  border-radius: 16px;
  border: 1px solid var(--border);
}

.prod-hw-cap {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.prod-cta {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .prod-flow {
    gap: 56px;
  }

  .prod-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prod-row--flip .prod-copy {
    order: 1;
  }

  .prod-row--flip .prod-media {
    order: 2;
  }

  .prod-copy h3 {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .prod-media--duo {
    grid-template-columns: 1fr;
  }

  .prod-facts b {
    min-width: 5.5em;
  }
}

/* ---- 商户工具子页（配置估价 / 资源下载） ---- */
.tool-hero {
  padding: calc(var(--header-h) + 64px) 0 40px;
}

.tool-title {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 14px;
}

.tool-lead {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 34em;
}

.tool-lead strong {
  color: var(--text-main);
}

.tool-body {
  padding: 24px 0 96px;
}

/* ---- 内容子页（方案 / 关于 / 联系 / 其他业务）：左标题 + 右内容 ---- */
.container--doc {
  max-width: 980px;
}

.tool-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tool-hero-meta span {
  padding: 5px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-sub);
}

.tool-hero .hero-actions {
  margin-top: 28px;
}

/* ---- 产品中心：左侧固定目录 + 右侧内容两列 ---- */
.prod-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  font-size: 14px;
}

.doc-toc__group {
  margin: 18px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.doc-toc__group:first-child {
  margin-top: 0;
}

.doc-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  color: var(--text-sub);
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.doc-toc a:hover {
  color: var(--text-main);
}

.doc-toc a.is-active {
  color: var(--accent);
  border-left-color: currentColor;
  font-weight: 600;
}

/* products 页内容节改为单列（原 190px 左标题列由左侧目录替代） */
.prod-main .doc-section {
  display: block;
  padding: 40px 0;
}

.prod-main .doc-body h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.doc-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  padding: 42px 0;
}

.doc-section:first-child {
  padding-top: 10px;
}

.doc-side h2 {
  font-size: 20px;
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.doc-body > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-sub);
}

.doc-body > p + p {
  margin-top: 14px;
}

.doc-body .prod-facts,
.doc-body .prod-steps {
  margin-top: 20px;
}

.doc-body .hero-actions {
  margin-top: 28px;
}

.doc-body .faq-list {
  margin: 0;
}

/* 产品中心：内容子页的右栏内纵向堆叠产品卡，避免两列网格把正文挤窄
   仅作用于 .prod-stack，首页的产品实拍两列布局不受影响 */
.prod-stack {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.prod-stack:first-child {
  border-top: none;
  padding-top: 8px;
}

.prod-stack .prod-copy h3 {
  font-size: 19px;
}

.prod-stack--flip .prod-copy {
  order: 0;
}

/* 适用判断 */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}

.fit-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.fit-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 对比表中的分档 / 清单 */
.table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.spec-table thead th {
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.spec-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.spec-table tbody td {
  color: var(--text-sub);
}

.spec-table tbody tr + tr th,
.spec-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

/* 设备链路 */
.arch-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.arch-node {
  position: relative;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.arch-node h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.arch-node p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.arch-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}

.arch-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: -26px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .prod-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .doc-toc {
    position: static;
    display: none;
  }

  .doc-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .doc-side h2 {
    position: static;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .arch-flow {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .arch-node::before,
  .arch-node::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .arch-flow {
    grid-template-columns: 1fr;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
}

.tool-card--result {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.tool-card-title {
  font-size: 19px;
  margin-bottom: 18px;
}

.tool-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.tool-field label {
  font-size: 14px;
  color: var(--text-main);
}

.tool-field-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.tool-field input {
  font: inherit;
  font-size: 15px;
  width: 96px;
  padding: 8px 12px;
  text-align: right;
  color: var(--text-main);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.tool-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.tool-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-switches--sub {
  margin-top: 14px;
  align-items: center;
}

.tool-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
}

.tool-sw:has(input:disabled) {
  cursor: default;
  color: var(--text-sub);
}

.tool-sw input:disabled {
  cursor: default;
}

.tool-sw input {
  accent-color: var(--accent);
  margin: 0;
}

.tool-sw-note {
  font-size: 12px;
  color: var(--text-muted);
}

.tool-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tool-metric {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-metric-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

.tool-metric-label {
  font-size: 12px;
  color: var(--text-sub);
}

.tool-cfgline {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-sub);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.tool-cfgline b {
  color: var(--text-main);
}

.tool-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tool-lines li {
  font-size: 14px;
  color: var(--text-main);
  padding-left: 18px;
  position: relative;
}

.tool-lines li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tool-notes {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.tool-notes li {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  list-style: disc;
  margin-left: 1.2em;
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-copy-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #10b981;
}

/* 资源下载页 */
.tool-hero--center {
  text-align: center;
}

.tool-hero--center .tool-lead {
  margin: 0 auto;
}

/* 404：居中说明 + 两个出口 */
.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dl-item--feature {
  margin-bottom: 72px;
}

.dl-shot {
  display: block;
  width: 100%;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -28px rgba(31, 26, 22, 0.32);
}

.dl-item h2 {
  font-size: 22px;
  font-weight: 600;
}

.dl-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.dl-desc {
  margin-top: 12px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.dl-item .btn {
  margin-top: 24px;
}

.dl-empty {
  margin-top: 56px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
}

.dl-empty a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card--result {
    position: static;
  }
}

@media (max-width: 640px) {
  .tool-hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .tool-card {
    padding: 22px 18px 18px;
  }

  .tool-metric-num {
    font-size: 24px;
  }

  .faq-list {
    padding: 4px 20px;
  }

  .dl-item--feature {
    margin-bottom: 56px;
  }
}

/* ---- 商务合作 ---- */
.section--contact {
  padding-bottom: 112px;
}

.contact-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.contact-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
  flex-shrink: 0;
  width: 4em;
}

.contact-value {
  font-size: 18px;
  font-weight: 500;
}

.contact-card a.contact-value {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color var(--anim);
}

.contact-card a.contact-value:hover {
  border-color: #fff;
}

.contact-card .btn--primary {
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

/* 反白按钮（暗底上使用） */
.btn--outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--outline:hover {
  border-color: #fff;
}

.btn--ghost-invert {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 13px;
  padding: 8px 18px;
}

.btn--ghost-invert:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline.is-copied {
  border-color: #10b981;
  color: #10b981;
}

/* ---- 页脚 ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 13px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  transition: color var(--anim);
}

.footer-links a:hover {
  color: #fff;
}

/* ---- 法律页（服务条款 / 隐私政策） ---- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 96px;
}

.legal h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.legal h2 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-sub);
}

.legal p + p {
  margin-top: 8px;
}

.legal ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal strong {
  color: var(--text-main);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.legal a:hover {
  border-color: var(--accent);
}

.legal-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- 响应式 ---- */
/* ---- 产品全景：窄屏折为单列（连线转竖向） ---- */
@media (max-width: 1000px) {
  .panorama {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "cam"
      "wcam"
      "cast"
      "wcast"
      "box"
      "wtv"
      "tv"
      "wcloud"
      "cloud"
      "wuser"
      "users";
  }

  .pn-wire--v,
  .pn-wire--h {
    flex-direction: column;
    width: 100%;
    height: 58px;
  }

  .pn-node {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .pn-wire--h .pn-wire__line {
    width: 2px;
    height: 100%;
    background-image: repeating-linear-gradient(
      180deg,
      var(--accent) 0 6px,
      transparent 6px 12px
    );
    background-size: 100% 12px;
    animation-name: pn-dash-v;
  }

  .pn-wire--h .pn-wire__line::after {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    border-top: none;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translate(-50%, -1px) rotate(45deg);
  }

  .pn-wire--h.pn-wire--both .pn-wire__line::before {
    top: 0;
    left: 50%;
    border-left: 2px solid #7cc4ff;
    border-top: none;
    border-bottom: 2px solid #7cc4ff;
    transform: translate(-50%, 1px) rotate(-45deg);
  }

  .pn-wire--h .pn-wire__label {
    left: calc(50% + 8px);
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 1024px) {
  .stage-billiard,
  .stage-aiiot {
    grid-template-columns: 1fr 1fr;
  }

  .mock--phone {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  /* 导航折叠为汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-float);
    padding: 8px 24px 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav > a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: calc(var(--header-h) + 56px) 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage-esports {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
    scroll-margin-top: var(--header-h);
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head h2 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .stage-billiard,
  .stage-aiiot {
    grid-template-columns: 1fr;
  }

  .mock--phone {
    grid-column: auto;
  }

  .director-wall {
    grid-template-columns: 1fr;
  }

  .director-body {
    grid-template-columns: 1fr;
  }

  .rule-list {
    grid-template-columns: 1fr;
  }

  .sb-name {
    max-width: 56px;
  }

  .sb-score {
    font-size: 15px;
    padding: 3px 7px;
  }

  .sb-clock {
    font-size: 11px;
    padding: 2px 7px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* ---- 动效系统 ----
 * 统一曲线 --ease-out；首屏一次性入场，正文滚动进场，交互反馈 220ms
 * 全部动效在 prefers-reduced-motion 下由文末规则统一关闭
 */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 首屏：按信息层级 80ms 逐个入场，图形最后落位 */
.hero-eyebrow,
.hero-title,
.hero-lead,
.hero-actions,
.hero-strip,
.hero-media {
  animation: rise-in var(--dur-enter) var(--ease-out) both;
}

.hero-eyebrow { animation-delay: 0ms; }
.hero-title { animation-delay: 80ms; }
.hero-lead { animation-delay: 160ms; }
.hero-actions { animation-delay: 240ms; }
.hero-strip { animation-delay: 320ms; }
.hero-media { animation-delay: 200ms; }

/* 子页标题同样一次性入场 */
.tool-hero .section-eyebrow,
.tool-hero .tool-title,
.tool-hero .tool-lead {
  animation: rise-in var(--dur-enter) var(--ease-out) both;
}

.tool-hero .section-eyebrow { animation-delay: 0ms; }
.tool-hero .tool-title { animation-delay: 80ms; }
.tool-hero .tool-lead { animation-delay: 160ms; }

/* 滚动进场：无 JS 时不隐藏（.js 由 shell.js 挂到 html） */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Tab 切换：内容轻推入，避免硬切 */
.scene.is-entering {
  animation: scene-in 320ms var(--ease-out);
}

/* FAQ 展开：答案淡入，收起不拖沓 */
.faq-item[open] p {
  animation: faq-in 240ms var(--ease-out);
}

/* 产品实拍：悬停轻微托起，强化“可点/可看”的直觉 */
@media (hover: hover) {
  .prod-media img {
    transition: transform 520ms var(--ease-out);
  }

  .prod-media img:hover {
    transform: scale(1.015);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 动效降级 ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* 关掉动效时，进场元素直接可见，不依赖滚动触发 */
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- 深色模式（跟随系统，无切换开关） ----
 * 语义令牌取值对齐 vctgo-ui-new/src/assets/styles/index.scss 的 html.dark 块；
 * 官网 --primary 主要是「炭黑实底」语义（contact-card / 页脚 / 云端节点 / tab 选中底），
 * 与管理台作按钮主色不同，故不翻转成珊瑚——炭黑实底在暗页面上角色不变；
 * --primary 作文字用（品牌字标 / 导航高亮）单独覆盖为亮色；--accent 保持 #cc785c
 * （按钮白字珊瑚底两种模式观感一致，且暗底上本就清晰）。
 */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg-page: #18181b;
    --bg-card: #1f1f23;
    --bg-subtle: #27272a;

    --text-main: #e4e4e7;
    --text-sub: #a1a1aa;
    --text-muted: #71717a;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  /* 吸顶导航：亮底换暗底 */
  .site-header {
    background: rgba(24, 24, 27, 0.86);
  }

  .site-header.is-scrolled {
    background: rgba(24, 24, 27, 0.96);
    box-shadow: 0 10px 28px -22px rgba(0, 0, 0, 0.6);
  }

  .btn:hover {
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.6);
  }

  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  /* --primary 作文字用：炭黑在暗底不可见，换亮色 */
  .brand-name__main {
    color: var(--dark-text);
  }

  .site-nav > a:hover,
  .site-nav > a[aria-current="page"] {
    color: var(--dark-text);
  }

  .tab:hover {
    color: var(--dark-text);
  }

  /* 品牌字标渐变起点炭黑在暗底半隐，换暖深棕（管理台 dark primary light-9） */
  .brand-mark {
    background: linear-gradient(135deg, #3d2b26 0%, var(--accent) 100%);
  }

  /* 炭黑实体块在暗底贴近页面底色，换面板色维持卡片感 */
  .pn-node--cloud {
    background: var(--dark-elevated);
  }

  .contact-card,
  .site-footer {
    background: var(--dark-panel);
  }

  /* 亮底成功提示绿在暗底偏暗，调亮一档 */
  .tool-copy-hint {
    color: #34d399;
  }
}
