/* ============================================================
   方块盒子 BlockBox 官网 — 浅色 · 绿色主题 · 现代
   ============================================================ */

:root {
  /* 品牌 */
  --g950: #102e13;
  --g900: #1b5e20;
  --g800: #2e7d32;   /* 主绿，与应用一致 */
  --g700: #388e3c;
  --g600: #43a047;
  --g500: #4caf50;
  --g300: #81c784;
  --g200: #a5d6a7;
  --g100: #c8e6c9;
  --g50:  #e8f5e9;
  --lime: #7cc242;

  /* 中性 */
  --bg:     #fbfdfb;
  --bg-tint:#f2f8f1;
  --card:   #ffffff;
  --line:   #e3ece2;
  --line-2: #d5e4d4;
  --ink:    #17251a;
  --ink-2:  #55685a;
  --ink-3:  #87998b;

  /* 主题语义色（深色模式在文件末尾统一覆盖） */
  color-scheme: light;
  --nav-bg: rgba(251, 253, 251, .82);
  --nav-solid: rgba(251, 253, 251, .97);
  --glass-bg: rgba(255, 255, 255, .92);
  --glass-bg-strong: rgba(255, 255, 255, .94);
  --glass-line: rgba(255, 255, 255, .5);
  --scrim: rgba(23, 37, 26, .45);
  --shadow-nav: 0 4px 20px rgba(23, 37, 26, .05);
  --shadow-pop: 0 24px 60px rgba(23, 37, 26, .16), 0 4px 14px rgba(23, 37, 26, .08);
  --grid-line: rgba(46, 125, 50, .045);
  --highlight: rgba(124, 194, 66, .28);
  --tint: #e8f5e9;
  --tint-2: #c8e6c9;
  --tint-3: #a5d6a7;
  --tint-soft: rgba(46, 125, 50, .09);
  --tint-line: rgba(46, 125, 50, .30);
  --green-ink: #2e7d32;
  --green-ink-2: #388e3c;
  --green-deep: #1b5e20;
  --row-hl: rgba(76, 175, 80, .07);
  --hover-row: #fafdf9;
  --title-grad: linear-gradient(100deg, var(--g600) 10%, var(--g800) 55%, var(--g900));
  --warn-bg: #fff4e5;
  --warn-line: #f6dfbc;
  --warn-ink: #b96a12;

  /* 客户端窗口演示（浅色客户端主题） */
  --win-bg: #f5f5f5;
  --win-card: #ffffff;
  --win-side: #fbfbfb;
  --win-main: #fafafa;
  --win-input: #f8f9fa;
  --win-line: #e8eaed;
  --win-seg: #f0f0f0;
  --win-track: #e8e8e8;
  --win-chip: #f2f4f5;
  --win-ink: #333333;
  --win-ink-2: #666666;
  --win-ink-3: #888888;
  --win-icon: #9aa0a6;
  --win-code: #f6f8fa;
  --win-code-line: #e1e4e8;
  --win-code-ink: #c7254e;
  --win-btn: #ffffff;
  --win-toggle-off: #c7c7c7;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 26, .05), 0 2px 8px rgba(23, 37, 26, .04);
  --shadow-md: 0 4px 12px rgba(23, 37, 26, .06), 0 12px 32px rgba(23, 37, 26, .07);
  --shadow-green: 0 8px 24px rgba(46, 125, 50, .28);
  --container: 1180px;
  --nav-h: 68px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--tint); color: var(--green-deep); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------------- 通用组件 ---------------- */

.ic { width: 1.15em; height: 1.15em; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .22s ease; white-space: nowrap;
  font-family: inherit; font-size: 15px; line-height: 1;
}
.btn-sm  { padding: 9px 18px; font-size: 14px; }
.btn-lg  { padding: 15px 30px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--g600), var(--g800));
  color: #fff; box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 125, 50, .36); filter: brightness(1.05); }
.btn-ghost {
  background: var(--card); border-color: var(--line-2); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--g500); color: var(--green-ink); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--g800); padding: 13px 26px; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.btn-line {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .45); padding: 13px 26px;
}
.btn-line:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--green-ink); text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), var(--g600));
}
.kicker-light { color: var(--g100); }
.kicker-light::before { background: rgba(255, 255, 255, .8); }

.section { padding: 104px 0; }
.section-tint {
  background:
    radial-gradient(900px 500px at 88% 2%, rgba(124, 194, 66, .10), transparent 60%),
    radial-gradient(800px 500px at 4% 60%, rgba(76, 175, 80, .08), transparent 60%),
    var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head h2, .dl-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.25; letter-spacing: -.02em; font-weight: 800;
}
.sec-head h2 em { font-style: normal; color: var(--green-ink); position: relative; white-space: nowrap; }
.sec-head h2 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
  background: var(--highlight); z-index: -1; border-radius: 3px;
}
.sec-sub { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }

/* ---------------- 导航 ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-nav);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links > a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; transition: color .2s; white-space: nowrap; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--g600); transition: right .25s ease; border-radius: 2px;
}
.nav-links > a:not(.btn):hover { color: var(--green-ink); }
.nav-links > a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 英雄区 ---------------- */

.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 64px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a { width: 560px; height: 560px; top: -180px; right: -120px; background: rgba(124, 194, 66, .20); }
.glow-b { width: 480px; height: 480px; bottom: -200px; left: -140px; background: rgba(76, 175, 80, .14); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 65% at 50% 38%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 38%, #000 30%, transparent 100%);
}
.blk { position: absolute; width: 14px; height: 14px; border-radius: 3px; background: var(--tint-2); opacity: .8; animation: drift 9s ease-in-out infinite; }
.blk-a { top: 22%; left: 8%; background: var(--tint-3); animation-delay: 0s; }
.blk-b { top: 64%; left: 4%; width: 10px; height: 10px; background: var(--lime); animation-delay: -3s; }
.blk-c { top: 18%; right: 12%; width: 10px; height: 10px; animation-delay: -5s; }
.blk-d { bottom: 18%; right: 6%; background: var(--tint-3); animation-delay: -2s; }
.blk-e { top: 42%; right: 30%; width: 8px; height: 8px; opacity: .5; animation-delay: -7s; }
.blk-f { bottom: 30%; left: 26%; width: 8px; height: 8px; opacity: .5; animation-delay: -4.5s; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(90deg); }
}

.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g500);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, .18); animation: pulse 2.2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, .10); } }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.16; letter-spacing: -.025em; font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17.5px; color: var(--ink-2); max-width: 540px; margin-bottom: 34px; }
.hero-sub strong { color: var(--green-ink); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.hero-platforms .ic { color: var(--green-ink-2); }
.hero-platforms i { font-style: normal; color: var(--line-2); }

.hero-visual { display: flex; justify-content: center; }
.cube-stage { position: relative; width: min(430px, 86%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.cube-float { animation: floaty 6s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(12px); } }
.hero-cube {
  width: min(300px, 62vw); height: auto;
  filter: drop-shadow(0 30px 46px rgba(46, 125, 50, .30));
  transition: transform .18s ease-out;
}

.orbit {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 14px; box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: floaty 7s ease-in-out infinite;
  white-space: nowrap;
}
.orbit-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.orbit-ic svg { width: 15px; height: 15px; }
.ic-brain { background: linear-gradient(135deg, var(--g500), var(--g800)); }
.ic-brush { background: linear-gradient(135deg, #ffb74d, #f57c00); }
.ic-assist { background: linear-gradient(135deg, #4fc3f7, #0288d1); }
.ic-plug  { background: linear-gradient(135deg, #ba68c8, #8e24aa); }
.orbit-1 { top: 6%; left: 2%; animation-delay: -.5s; }
.orbit-2 { top: 16%; right: 0; animation-delay: -2.4s; }
.orbit-3 { bottom: 16%; left: 0; animation-delay: -4s; }
.orbit-4 { bottom: 5%; right: 4%; animation-delay: -1.4s; }

.hero-stats {
  margin-top: 72px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { padding: 26px 18px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat strong {
  display: block; font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 800; color: var(--green-ink); letter-spacing: -.02em; line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.stat strong em { font-style: normal; font-size: .45em; font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.stat > span { font-size: 13.5px; color: var(--ink-2); }

/* ---------------- 官方宣传片 ---------------- */

.section-video { padding: 56px 0 104px; }

.video-stage { position: relative; max-width: 1000px; margin: 0 auto; }
.video-stage::before {
  content: ""; position: absolute; inset: -8% -7%; pointer-events: none;
  background:
    radial-gradient(52% 58% at 50% 46%, rgba(124, 194, 66, .20), transparent 72%),
    radial-gradient(42% 46% at 6% 94%, rgba(76, 175, 80, .16), transparent 70%);
  filter: blur(12px);
}

.video-frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background: #0d1a10; border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(23, 37, 26, .18), 0 6px 18px rgba(23, 37, 26, .08);
  cursor: pointer;
}
.video-frame:focus-visible { outline: 3px solid var(--g500); outline-offset: 4px; }

.video-cover {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}
.video-frame:hover .video-cover { transform: scale(1.06); filter: brightness(.9); }

.video-shade {
  position: absolute; inset: 0;
  background: radial-gradient(72% 72% at 50% 45%, rgba(13, 26, 16, .06), rgba(13, 26, 16, .58));
  transition: opacity .4s ease;
}

.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--g500), var(--g800));
  box-shadow: 0 12px 34px rgba(16, 46, 19, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.video-play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  animation: videoPulse 2.6s ease-out infinite;
}
@keyframes videoPulse {
  0% { transform: scale(.9); opacity: .9; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }

.video-meta {
  position: absolute; left: 22px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.video-meta em { font-style: normal; background: var(--g600); border-radius: 999px; padding: 3px 10px; }
.video-meta i {
  font-style: normal; font-variant-numeric: tabular-nums;
  background: rgba(13, 26, 16, .55); border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px; padding: 2px 9px;
}

.video-hint {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 12.5px; font-weight: 600;
  background: rgba(13, 26, 16, .5); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: 4px 12px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .3s ease, border-color .3s ease;
}
.video-hint::before {
  content: ""; width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.video-frame:hover .video-hint { background: rgba(46, 125, 50, .88); border-color: rgba(255, 255, 255, .55); }

.video-note {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 4px 10px;
  font-size: 13.5px; color: var(--ink-3);
}
.video-note .ic { color: var(--green-ink); width: 1.1em; height: 1.1em; }
.video-note a {
  color: var(--green-ink); font-weight: 700; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.video-note a:hover { color: var(--green-ink); border-color: var(--tint-3); }

/* 播放中：覆盖封面，就地加载 B 站播放器 */
.video-frame.playing { cursor: default; }
.video-frame.playing iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------------- 核心功能 ---------------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--tint-3); }
.card-ic {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--tint), var(--tint-2));
  color: var(--green-ink); border: 1px solid var(--tint-2);
}
.card-ic svg { width: 23px; height: 23px; }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.72; }

/* ---------------- 独特魅力 showcase ---------------- */

.showcase {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding: 58px 0;
}
.showcase + .showcase { border-top: 1px dashed var(--line-2); }
.showcase-rev .show-copy { order: 2; }
.showcase-rev .show-visual { order: 1; }

.chip-row { display: flex; gap: 8px; margin-bottom: 16px; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, var(--g600), var(--g800));
  border-radius: 999px; padding: 4px 13px;
}
.chip-soft { color: var(--green-ink); background: var(--tint); border: 1px solid var(--tint-2); }

.show-copy h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.show-text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }
.show-text strong { color: var(--green-ink); }
.tick-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
}
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--tint); color: var(--green-ink-2); border: 1px solid var(--tint-2);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* AI 助手窗口演示 —— 按客户端 AiChatPage 浅色主题还原 */
.chat {
  /* 取值与客户端 ThemeManager 浅色主题一致 */
  --qa-border: var(--win-line);
  --qa-text: var(--win-ink);
  --qa-text-2: var(--win-ink-2);
  --qa-text-3: var(--win-ink-3);
  --qa-bg: var(--win-bg);
  --qa-muted: var(--win-input);
  --qa-code-bg: var(--win-code);
  --qa-code-ink: var(--win-code-ink);
  --qa-primary: var(--green-ink);
  --qa-primary-soft: var(--tint-soft);
  --qa-primary-line: var(--tint-line);

  background: var(--qa-bg);
  border: 1px solid var(--qa-border);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  max-width: 560px;
  margin-left: auto;
  color: var(--qa-text);
}

/* 顶部栏：对话选择 · 状态点 · 标题 · 窗口按钮 */
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--win-btn); border-bottom: 1px solid var(--qa-border);
}
.chat-menu { display: flex; flex-direction: column; gap: 3px; flex: none; }
.chat-menu i { width: 14px; height: 1.6px; border-radius: 1px; background: var(--win-icon); }
.chat-live { width: 7px; height: 7px; border-radius: 50%; background: var(--g500); box-shadow: 0 0 6px rgba(76, 175, 80, .8); flex: none; }
.chat-title { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.chat-status { font-size: 11px; color: var(--qa-text-3); }
.winbtns { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.winbtns i { position: relative; width: 10px; height: 10px; display: block; }
.winbtns i:nth-child(1)::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 1.4px; border-radius: 1px; background: var(--win-icon); }
.winbtns i:nth-child(2)::after { content: ""; position: absolute; inset: 1px; border: 1.2px solid var(--win-icon); border-radius: 2.5px; }
.winbtns i:nth-child(3)::before, .winbtns i:nth-child(3)::after {
  content: ""; position: absolute; left: -1px; top: 4.3px; width: 12px; height: 1.4px;
  border-radius: 1px; background: var(--win-icon);
}
.winbtns i:nth-child(3)::before { transform: rotate(45deg); }
.winbtns i:nth-child(3)::after { transform: rotate(-45deg); }

/* 左侧对话栏 */
.chat-shell { display: grid; grid-template-columns: 170px 1fr; }
.chat-side {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; background: var(--win-side); border-right: 1px solid var(--qa-border);
}
.chat-mode { display: flex; background: var(--win-seg); border-radius: 9px; padding: 3px; }
.chat-mode b {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  color: var(--qa-text-3); border-radius: 7px; padding: 4px 0;
}
.chat-mode b.on {
  background: var(--win-btn); color: var(--qa-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.chat-new {
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; color: var(--qa-primary);
  background: var(--qa-primary-soft); border: 1px dashed var(--qa-primary-line);
  border-radius: 9px; padding: 7px 6px;
}
.chat-group {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--qa-text-3);
  padding: 2px 4px 0;
}
.chat-conv {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 9px;
}
.chat-conv + .chat-conv { margin-top: -3px; }
.chat-conv i {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-style: normal;
  background: var(--win-btn); border: 1px solid var(--qa-border);
}
.chat-conv span {
  flex: 1; min-width: 0; display: block;
  font-size: 11.5px; font-weight: 500; color: var(--qa-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-conv em { display: block; font-style: normal; font-size: 10px; color: var(--qa-text-3); margin-top: 1px; }
.chat-conv.on { background: var(--qa-primary-soft); }
.chat-conv.on::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--qa-primary);
}
.chat-conv.on span { color: var(--qa-primary); font-weight: 600; }
.chat-quota { margin-top: auto; padding: 8px 4px 0; border-top: 1px solid var(--qa-border); }
.chat-quota span { display: block; font-size: 10px; color: var(--qa-text-3); margin-bottom: 5px; }
.qtrack { display: block; height: 4px; border-radius: 2px; background: var(--win-track); overflow: hidden; }
.qfill { display: block; height: 100%; width: 32%; border-radius: 2px; background: linear-gradient(90deg, var(--g500), var(--g800)); }

/* 右侧主区：整行消息（客户端无气泡排版） */
.chat-main { display: flex; flex-direction: column; min-width: 0; background: var(--win-main); }
.chat-body {
  height: 322px; overflow: hidden;
  padding: 18px 16px 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.cm-user {
  align-self: flex-end; text-align: right; max-width: 88%;
  font-size: 12.5px; color: var(--qa-text-2); line-height: 1.65;
  white-space: pre-wrap; word-break: break-word;
}
.cm-user em { display: block; font-style: normal; font-size: 10px; color: var(--qa-text-3); margin-top: 4px; }
.cm-ai { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.cm-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-ref {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 500; color: var(--green-deep);
  background: var(--qa-primary-soft); border: 1px solid var(--qa-primary-line);
  border-radius: 999px; padding: 2px 10px;
}
.cm-text { font-size: 12.5px; line-height: 1.72; color: var(--qa-text); white-space: pre-wrap; word-break: break-word; }
.cm-text b { font-weight: 700; }
.cm-text code {
  font-family: Consolas, "Courier New", monospace; font-size: 11px;
  background: var(--qa-code-bg); color: var(--qa-code-ink);
  border: 1px solid var(--win-code-line); border-radius: 4px; padding: 0 4px;
}
.cm-mod {
  display: flex; align-items: center; gap: 10px;
  background: var(--win-btn); border: 1px solid var(--qa-border);
  border-radius: 10px; padding: 8px 10px;
  animation: cmIn .4s ease both;
}
@keyframes cmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cm-mod .m-ic {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px;
}
.cm-mod .m-info { flex: 1; min-width: 0; }
.cm-mod .m-info b { display: block; font-size: 12px; font-weight: 700; }
.cm-mod .m-info span { display: block; font-size: 10.5px; color: var(--qa-text-3); margin-top: 1px; }
.cm-mod .m-btn {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--qa-primary); background: var(--qa-primary-soft);
  border: 1px solid var(--qa-primary-line); border-radius: 7px; padding: 3px 10px;
}
.cm-tools { display: flex; gap: 6px; }
.cm-tools span {
  font-size: 10.5px; color: var(--qa-text-2);
  background: var(--win-btn); border: 1px solid var(--qa-border);
  border-radius: 7px; padding: 3px 9px;
}
.cm-meta { font-size: 10px; color: var(--qa-text-3); }
.cm-agent {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--green-ink);
  background: var(--qa-primary-soft); border: 1px solid var(--qa-primary-line);
  border-radius: 999px; padding: 4px 12px;
}
.cm-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.cm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--qa-text-3); animation: bounce 1.2s infinite; }
.cm-typing i:nth-child(2) { animation-delay: .15s; }
.cm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .6; } }
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--green-ink); vertical-align: -2px; margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 输入区：输入框 + 工具胶囊（与客户端 aiChatInputPanel 一致） */
.chat-composer { border-top: 1px solid var(--qa-border); background: var(--win-btn); padding: 10px 12px 12px; }
.chat-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--qa-muted); border: 1.5px solid var(--qa-border);
  border-radius: 14px; padding: 8px 8px 8px 13px;
}
.ci-ph { flex: 1; min-width: 0; font-size: 11.5px; color: var(--qa-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-send {
  width: 30px; height: 28px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g600), var(--g800)); color: #fff;
}
.ci-send svg { width: 13px; height: 13px; }
.chat-chips { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cchip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--qa-text-2);
  background: var(--win-btn); border: 1px solid var(--qa-border);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.cchip svg { width: 10px; height: 10px; }
.cchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--g500); }
.cchip-on { color: var(--qa-primary); background: var(--qa-primary-soft); border-color: var(--qa-primary-line); }
.cchip-hint { margin-left: auto; font-size: 10px; color: var(--qa-text-3); }

/* 实例助手窗口演示 —— 按客户端 InstanceAssistantWindow 还原 */
.assist-scene {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 22px 30px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(150deg, #101d11, #1d3a20 55%, #10240f);
  box-shadow: var(--shadow-md);
}
.assist-scene::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 78% 16%, rgba(124, 194, 66, .18), transparent 65%),
    radial-gradient(380px 260px at 10% 90%, rgba(76, 175, 80, .14), transparent 60%);
}
.scene-blk { position: absolute; background: rgba(165, 214, 167, .16); border-radius: 4px; }
.scene-blk.a { width: 46px; height: 46px; left: 8%;  top: 13%; transform: rotate(14deg); }
.scene-blk.b { width: 30px; height: 30px; right: 11%; top: 20%; }
.scene-blk.c { width: 38px; height: 38px; right: 19%; bottom: 11%; transform: rotate(-10deg); }
.scene-blk.d { width: 22px; height: 22px; left: 15%; bottom: 18%; }
.assist-stage {
  position: relative; width: min(440px, 100%);
  display: flex; flex-direction: column; align-items: center;
}
.assist-status {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-line);
  border-radius: 999px; padding: 6px 15px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  margin-bottom: 13px; white-space: nowrap;
}
.assist-status i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--g500); box-shadow: 0 0 0 3px rgba(76, 175, 80, .22);
  animation: pulse 2.2s infinite;
}
.assist-win {
  position: relative; z-index: 1; width: 100%;
  background: var(--win-bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.assist-titlebar {
  display: flex; align-items: center;
  height: 34px; padding: 0 13px;
  background: var(--win-btn); border-bottom: 1px solid var(--win-line);
  font-size: 12px; font-weight: 600; color: var(--win-ink);
}
.assist-tabs {
  position: relative;
  display: flex; gap: 2px; padding: 3px 6px 0;
  background: var(--win-btn); border-bottom: 1px solid var(--win-line);
}
.atab {
  font-size: 11px; font-weight: 500; color: var(--win-ink-2);
  padding: 7px 8px 9px; white-space: nowrap;
}
.atab.on { color: var(--green-ink); font-weight: 700; }
.atab-line {
  position: absolute; bottom: 0; left: 6px; width: 24px; height: 3px;
  border-radius: 2px 2px 0 0; background: var(--green-ink);
  transition: left .32s cubic-bezier(.22, 1, .36, 1), width .32s cubic-bezier(.22, 1, .36, 1);
}
.assist-pages { position: relative; height: 452px; overflow: hidden; }
.apage {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .34s ease, transform .34s ease, visibility 0s linear .34s;
}
.apage.on {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.ainfo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ainfo {
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 8px;
  padding: 8px 6px; text-align: center;
}
.ainfo i { display: block; font-style: normal; font-size: 10px; color: var(--win-ink-2); margin-bottom: 1px; }
.ainfo b { font-size: 15.5px; font-weight: 700; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.asec { font-size: 12px; font-weight: 700; color: var(--win-ink); margin: 2px 0 0 2px; }
.aperf {
  --ac: #4caf50;
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 10px;
  padding: 9px 12px 7px;
}
.aperf-mem { --ac: #2196f3; }
.aperf-gpu { --ac: #9c27b0; }
.ap-name { display: block; font-style: normal; font-size: 11px; color: var(--win-ink-2); }
.ap-val {
  display: block; font-size: 18px; font-weight: 700; color: var(--green-ink);
  font-variant-numeric: tabular-nums; margin-top: 1px;
}
.ap-track { height: 4px; background: var(--win-track); border-radius: 2px; margin: 4px 0 6px; overflow: hidden; }
.ap-track i { display: block; height: 100%; border-radius: 2px; background: var(--ac); transition: width 1.8s ease; }
.ap-chart { display: block; width: 100%; height: 34px; }
.ap-fill { fill: var(--ac); fill-opacity: .12; }
.ap-line {
  fill: none; stroke: var(--ac); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ap-dots circle { fill: var(--ac); }
/* ---- AI 助手页：欢迎态（客户端 AiChatPage 紧凑模式） ---- */
.ap-ai {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 22px;
}
.ai-logo {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g700), var(--g900));
  box-shadow: 0 10px 24px rgba(46, 125, 50, .35);
  margin-bottom: 12px;
}
.ai-title { font-size: 15px; font-weight: 800; color: var(--win-ink); letter-spacing: -.01em; }
.ai-title em { font-style: normal; color: var(--green-ink); }
.ai-desc { font-size: 10.5px; color: var(--win-ink-3); line-height: 1.7; margin-top: 5px; }
.ai-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: 100%; margin-top: 16px;
}
.aiq {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 10px;
  padding: 10px 12px; text-align: left;
}
.aiq .qic {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 13px; color: #fff; margin-bottom: 7px;
}
.aiq b { font-size: 11.5px; color: var(--win-ink); }
.aiq span { font-size: 9.5px; color: var(--win-ink-3); margin-top: 1px; }

/* ---- 快捷指令页：上下文栏 + 中文输入 + 候选 + 指令输出 ---- */
.cmdbar { display: flex; align-items: center; gap: 5px; }
.ctx {
  flex: 1; min-width: 0;
  font-size: 9.5px; color: var(--win-ink-2);
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 6px;
  padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cbtn {
  flex: none; font-size: 9.5px; font-weight: 500; color: var(--win-ink);
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 6px;
  padding: 4px 8px; white-space: nowrap;
}
.cbtn.primary {
  color: #fff; background: linear-gradient(135deg, var(--g600), var(--g800));
  border-color: transparent; font-weight: 700;
}
.cinput {
  background: var(--win-btn); border: 1.5px solid var(--green-ink); border-radius: 8px;
  padding: 7px 10px; font-size: 11.5px; color: var(--win-ink);
}
.cinput::placeholder { color: var(--win-ink-3); }
.clist {
  flex: 1; min-height: 0;
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 8px;
  padding: 4px; display: flex; flex-direction: column; gap: 2px;
  overflow: hidden;
}
.cand {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10.5px; color: var(--win-ink); padding: 5px 9px; border-radius: 6px;
}
.cand.on { background: var(--tint-soft); color: var(--green-deep); font-weight: 700; }
.cand i { font-style: normal; font-family: Consolas, "Courier New", monospace; font-size: 9.5px; color: var(--win-ink-3); }
.coutrow { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cmd-en {
  flex: 1; min-width: 120px;
  font-family: Consolas, "Courier New", monospace; font-size: 10px;
  color: var(--green-deep); background: var(--win-code); border: 1px solid var(--win-code-line);
  border-radius: 6px; padding: 5px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 联机页：陶瓦联机核心 + 房间操作 ---- */
.mp-top { display: flex; align-items: center; gap: 6px; }
.mp-core {
  flex: none; font-size: 10.5px; font-weight: 600; color: var(--win-ink);
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 6px;
  padding: 5px 10px;
}
.mp-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--green-ink); margin-top: 10px;
}
.mp-status i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--g500);
  box-shadow: 0 0 6px rgba(76, 175, 80, .7);
}
.mp-desc { font-size: 10.5px; color: var(--win-ink-3); line-height: 1.75; margin-top: 4px; }
.mp-btns { display: flex; gap: 8px; margin-top: 14px; }
.mp-btn {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--win-ink);
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 8px; padding: 9px 6px;
}
.mp-btn.primary {
  color: #fff; background: linear-gradient(135deg, var(--g600), var(--g800));
  border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 12px rgba(46, 125, 50, .25);
}

/* ---- 资源管理页：模组列表免退出启停 ---- */
.res-tabs {
  display: flex; gap: 2px; background: var(--win-seg); border-radius: 8px; padding: 3px;
}
.res-tabs span {
  flex: 1; text-align: center; font-size: 10px; color: var(--win-ink-2);
  padding: 5px 0; border-radius: 6px; white-space: nowrap;
}
.res-tabs .on {
  background: var(--win-btn); color: var(--green-ink); font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.res-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 8px;
  padding: 6px 10px; font-size: 10px; color: var(--win-ink-3);
}
.res-count { margin-left: auto; color: var(--win-ink-3); font-size: 9.5px; }
.res-list { display: flex; flex-direction: column; gap: 6px; }
.res-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--win-btn); border: 1px solid var(--win-line); border-radius: 10px;
  padding: 8px 10px;
}
.ric {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; font-style: normal;
}
.rinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rinfo b { font-size: 11.5px; color: var(--win-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rchips { display: flex; gap: 4px; flex-wrap: wrap; }
.rchip {
  font-size: 8.5px; color: var(--win-ink-2); background: var(--win-chip);
  border-radius: 4px; padding: 1px 6px; white-space: nowrap;
}
.rchip.off { background: #9e9e9e; color: #fff; }
.rtoggle { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--win-toggle-off); flex: none; }
.rtoggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.rtoggle.on { background: #4caf50; }
.rtoggle.on::after { left: auto; right: 2px; }

/* 三卡 */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 34px 0 26px; border-top: 1px dashed var(--line-2); }
.trio-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.trio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--tint-3); }
.trio-accent { background: linear-gradient(160deg, var(--tint), var(--card) 70%); border-color: var(--tint-2); }
.trio-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.trio-card p { font-size: 14px; color: var(--ink-2); }

/* 插件墙 */
.plugin-wall {
  display: flex; flex-wrap: wrap; gap: 12px; align-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 34px 30px; min-height: 250px;
}
.plugin {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 17px; transition: all .22s; cursor: default;
}
.plugin svg { width: 17px; height: 17px; color: var(--green-ink-2); }
.plugin:hover { background: var(--tint); border-color: var(--tint-3); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.plugin-more { color: var(--green-ink); background: var(--tint); border-style: dashed; border-color: var(--tint-3); }

/* ---------------- 对比表 ---------------- */

.table-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow-x: auto;
}
.cmp { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 13.5px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--bg-tint); }
.cmp th:first-child, .cmp td:first-child { width: 25%; text-align: left; font-weight: 600; color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr { transition: background .18s; }
.cmp tbody tr:hover { background: var(--bg-tint); }
.cmp .hl { background: var(--row-hl); font-weight: 700; color: var(--green-ink); }
.cmp th.hl { box-shadow: inset 0 -3px 0 var(--g600); color: var(--green-ink); }
.cmp th.hl img { width: 20px; height: auto; display: inline-block; vertical-align: -5px; margin-right: 6px; }
.yes {
  display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center;
  background: var(--g800); color: #fff; border-radius: 8px; font-weight: 800; font-size: 13px;
  box-shadow: 0 3px 8px rgba(46, 125, 50, .3);
}
.no { color: var(--ink-3); font-weight: 600; }
.mid { color: var(--ink-2); font-size: 12px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cmp tr.group td {
  background: linear-gradient(90deg, var(--row-hl), transparent 72%);
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  color: var(--green-ink); text-align: left; padding: 10px 14px 8px;
}
.cmp tbody tr.group:hover { background: transparent; }
.cmp .tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: var(--ink-2); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.cmp td.hl .tag { color: var(--green-ink); background: var(--row-hl); border-color: var(--tint-2); }
.footnote { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.footnote a { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 下载 ---------------- */

.section-download { padding-bottom: 110px; }
.dl-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(500px 300px at 0% 110%, rgba(124, 194, 66, .25), transparent 60%),
    linear-gradient(135deg, var(--g700), var(--g900));
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 64px clamp(24px, 6vw, 72px) 40px;
  color: #fff; text-align: center;
  box-shadow: 0 24px 60px rgba(27, 94, 32, .35);
}
.dl-head h2 { color: #fff; }
.dl-sub { margin: 14px auto 44px; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 16px; }

.btn-xl { padding: 19px 58px; font-size: 18px; }
.dl-btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.dl-btn .ic { width: 1.35em; height: 1.35em; }
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .32); }

.plat-row {
  margin: 34px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 760px;
}
.plat {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 10px 20px;
}
.plat .ic { width: 18px; height: 18px; opacity: .9; }
.plat em {
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: var(--g950); background: var(--lime); border-radius: 999px; padding: 2px 10px;
}
.plat-later { opacity: .55; }
.plat-later em { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.dl-note { margin-top: 30px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* ---------------- 页脚 ---------------- */

.footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; padding: 56px 24px 40px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.footer-col h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.footer-col a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--green-ink); }
.footer-base {
  border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------------- 动效 ---------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }

  /* 演示窗口属内容性动画，始终播放（覆盖上方的全局关闭规则） */
  .chat .caret { animation: blink 1s steps(1) infinite !important; }
  .cm-typing i { animation: bounce 1.2s infinite !important; }
  .cm-typing i:nth-child(2) { animation-delay: .15s !important; }
  .cm-typing i:nth-child(3) { animation-delay: .3s !important; }
  .cm-mod { animation: cmIn .4s ease both !important; }
  .assist-status i { animation: pulse 2.2s infinite !important; }
  .apage {
    transition: opacity .34s ease, transform .34s ease, visibility 0s linear .34s !important;
  }
  .apage.on { transition-delay: 0s !important; }
  .atab-line {
    transition: left .32s cubic-bezier(.22, 1, .36, 1), width .32s cubic-bezier(.22, 1, .36, 1) !important;
  }
  .ap-track i { transition: width 1.8s ease !important; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-platforms { justify-content: center; }
  .cube-stage { width: min(400px, 92%); }
  .showcase { grid-template-columns: 1fr; gap: 34px; padding: 44px 0; }
  .showcase-rev .show-copy { order: 1; }
  .showcase-rev .show-visual { order: 2; }
  .chat { margin: 0 auto; }
  .trio { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* 导航项多了（论坛），外文标签也更长，宽屏笔记本先把间距和字号收一收，避免导航文字断成两行 */
@media (max-width: 1200px) {
  .nav-links { gap: 18px; }
  .nav-links > a:not(.btn) { font-size: 14.5px; }
  .brand-logo { height: 36px; }
}

@media (max-width: 1100px) {
  .nav-links { gap: 12px; }
  .nav-links > a:not(.btn) { font-size: 14px; }
  .brand-logo { height: 34px; }
}

/* 再窄就放不下一整排了，提前收进折叠菜单（折叠后手机上依然是同一套菜单） */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-solid); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 14px 24px 20px;
    box-shadow: 0 20px 40px rgba(23, 37, 26, .08);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 11px 6px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
  .brand-logo { height: 40px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-solid); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 14px 24px 20px;
    box-shadow: 0 20px 40px rgba(23, 37, 26, .08);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 11px 6px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .section-video { padding: 16px 0 76px; }
  .video-frame { border-radius: 18px; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 26px; height: 26px; margin-left: 4px; }
  .video-play::before { inset: -7px; }
  .video-meta { left: 14px; bottom: 12px; font-size: 12px; }
  .video-hint { display: none; }
  .video-note { margin-top: 14px; font-size: 12.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .orbit-2 { right: -6px; } .orbit-3 { left: -6px; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .chat-body { height: 300px; }
  .cchip-hint { display: none; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-cta .btn-lg { width: 100%; }
  .plugin-wall { padding: 22px 18px; }
}

/* ---------------- 编码方块·开发中弹窗 ---------------- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; z-index: 1;
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 24px 60px rgba(23, 37, 26, .25);
  padding: 42px 40px 36px; text-align: center;
  max-width: 360px; width: 100%;
  transform: translateY(16px) scale(.96);
  transition: transform .25s ease;
}
.modal.show .modal-card { transform: none; }
.modal-ic {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g600), var(--g800));
  color: #fff; box-shadow: var(--shadow-green);
}
.modal-ic svg { width: 32px; height: 32px; }
.modal-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.modal-card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.modal-card .btn { margin-top: 22px; padding: 12px 28px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--bg-tint); color: var(--ink-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--tint); color: var(--green-ink); }
body.modal-open { overflow: hidden; }

/* ============================================================
   下载页 download.html
   ============================================================ */

.dlp-hero {
  padding: calc(var(--nav-h) + 64px) 0 60px;
  background:
    radial-gradient(900px 420px at 84% -12%, rgba(124, 194, 66, .16), transparent 62%),
    radial-gradient(700px 420px at 4% 6%, rgba(76, 175, 80, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
  border-bottom: 1px solid var(--line);
}
.dlp-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.14; letter-spacing: -.02em; font-weight: 800;
}
.dlp-lead {
  max-width: 660px; margin-top: 16px;
  font-size: 17px; color: var(--ink-2);
}
.dlp-os { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.dlp-os li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.dlp-os .ic { width: 16px; height: 16px; color: var(--green-ink-2); }

.dlp-body { padding-top: 72px; }

/* --- 提示卡片 --- */
.dlp-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tip {
  display: flex; gap: 14px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tip-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--green-ink);
}
.tip-ic svg { width: 20px; height: 20px; }
.tip.tip-warn .tip-ic { background: var(--warn-bg); color: var(--warn-ink); }
.tip h3 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.tip p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.tip strong { color: var(--green-ink); font-weight: 700; }
.tip.tip-warn strong { color: var(--warn-ink); }

/* --- 最新版本 --- */
.dlp-latest {
  margin-top: 30px; overflow: hidden;
  display: grid; grid-template-columns: 1.55fr 1fr;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, var(--g800), var(--g950) 78%);
  box-shadow: 0 20px 50px rgba(27, 94, 32, .25);
}
.latest-main { padding: 38px 40px 36px; }
.latest-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.latest-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--g200);
  box-shadow: 0 0 0 3px rgba(165, 214, 167, .28);
}
.latest-main h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 16px; font-size: 42px; letter-spacing: -.02em; font-weight: 800;
}
.latest-main h2 small { font-size: 15px; font-weight: 600; opacity: .72; letter-spacing: 0; }
.latest-main p { max-width: 46ch; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.latest-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.latest-side {
  padding: 34px 32px;
  background: rgba(255, 255, 255, .06);
  border-left: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; gap: 14px;
}
.latest-side h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.latest-fact {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .78);
}
.latest-fact .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--g200); }
.latest-fact strong { color: #fff; font-weight: 700; }

/* --- 历史版本 --- */
.ver-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin: 76px 0 24px;
}
.ver-head h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.ver-sub { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); max-width: 56ch; }

.ver-list { display: flex; flex-direction: column; gap: 12px; }
.ver-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 16px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ver-row:hover { border-color: var(--tint-3); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ver-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ver-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ver-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2); vertical-align: middle;
}
.ver-tag-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.ver-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ver-links .btn { padding: 8px 16px; font-size: 13.5px; }

/* --- 插件 --- */
.plug {
  margin-top: 84px; padding: 34px 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--bg-tint));
  box-shadow: var(--shadow-sm);
}
.plug-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.plug-head p { margin-top: 6px; max-width: 64ch; font-size: 14.5px; color: var(--ink-2); }
.plug-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 22px 0 26px; }
.plug-note { font-size: 13.5px; color: var(--ink-3); }
.plug-table-wrap {
  overflow-x: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
}
.plug-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.plug-table th {
  padding: 12px 18px; text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg-tint); border-bottom: 1px solid var(--line);
}
.plug-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.plug-table tbody tr:last-child td { border-bottom: 0; }
.plug-table tbody tr:hover td { background: var(--hover-row); }
.plug-table code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
  font-size: 13.5px; color: var(--green-ink);
  background: var(--tint); padding: 2px 7px; border-radius: 6px;
}
.plug-table .ver-tag { font-size: 11.5px; margin-left: 6px; }

@media (max-width: 1024px) {
  .dlp-latest { grid-template-columns: 1fr; }
  .latest-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 760px) {
  .dlp-hero { padding-top: calc(var(--nav-h) + 40px); }
  .dlp-body { padding-top: 56px; }
  .dlp-tips { grid-template-columns: 1fr; }
  .latest-main { padding: 30px 24px; }
  .latest-main h2 { font-size: 34px; }
  .latest-links .btn { width: 100%; }
  .ver-head { margin-top: 56px; }
  .ver-row { align-items: flex-start; }
  .plug { margin-top: 56px; padding: 26px 20px 22px; }
}
@media (max-width: 480px) {
  .dlp-os li { font-size: 13px; padding: 7px 13px; }
  .ver-links { width: 100%; }
  .ver-links .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 640px) {
  .plug-table-wrap { overflow: visible; }
  .plug-table { min-width: 0; }
  .plug-table thead { display: none; }
  .plug-table, .plug-table tbody, .plug-table tr, .plug-table td { display: block; width: 100%; }
  .plug-table tr { padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .plug-table tbody tr:last-child { border-bottom: 0; }
  .plug-table td { padding: 0; border: 0; }
  .plug-table td:first-child { margin-bottom: 3px; }
  .plug-table td:last-child { font-size: 13.5px; color: var(--ink-2); }
  .plug-table code { font-size: 13px; }
}

/* --- 当前系统识别 --- */
.dlp-detect {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 26px; padding: 9px 17px 9px 15px;
  border-radius: 999px; background: var(--tint);
  border: 1px solid var(--tint-2); box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--green-deep);
}
.dlp-detect[hidden] { display: none; }
.detect-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g600);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, .16);
}
.dlp-detect strong { font-weight: 800; letter-spacing: -.01em; }
.detect-note { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.detect-note:empty { display: none; }

.dlp-os li.is-current {
  border-color: var(--g500); background: var(--tint); color: var(--green-deep);
  box-shadow: 0 2px 10px rgba(76, 175, 80, .18);
}
.dlp-os li .cur-tag {
  margin-left: 2px; padding: 1px 7px; border-radius: 999px;
  background: var(--g600); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .02em;
}

.latest-main .latest-hint {
  max-width: none; margin-top: 14px; padding: 8px 13px;
  background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .32);
  border-radius: 10px; font-size: 13.5px; color: #fff;
}
.latest-main .latest-hint[hidden] { display: none; }

.detect-arch { font-weight: 600; color: var(--ink-2); }

.detect-arch { margin-left: 3px; }

/* ============================================================
   语言切换器（assets/i18n.js 注入到导航里）
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 12px; margin-left: 2px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.lang-switch:hover { border-color: var(--g500); color: var(--green-ink); transform: translateY(-1px); }
/* 桌面端固定排在导航栏最后一个（主题按钮右侧），不依赖脚本插入顺序 */
.nav-inner > .lang-switch { order: 10; }
.lang-switch .lang-ic {
  font-size: 11.5px; font-weight: 700; letter-spacing: -.5px;
  color: var(--green-ink-2); transform: translateY(.5px);
}
.lang-switch select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 0; background: transparent; color: inherit; font: inherit;
  cursor: pointer; padding: 0 2px; outline: none;
}
.lang-switch select:focus-visible { outline: 2px solid var(--g500); border-radius: 6px; }
@media (max-width: 760px) {
  .lang-switch { align-self: flex-start; margin: 8px 0 2px; height: 42px; }
}

/* ============================================================
   明暗主题：切换按钮（assets/theme.js 注入到导航里）
   ============================================================ */
.theme-switch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; padding: 0;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--ink-2);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .25s ease;
}
.theme-switch:hover { border-color: var(--g500); color: var(--green-ink); transform: translateY(-1px); }
.theme-switch:focus-visible { outline: 2px solid var(--g500); outline-offset: 2px; }
.theme-switch .theme-ic { display: flex; }
.theme-switch svg { width: 17px; height: 17px; }
.theme-switch .theme-ic-moon { display: none; }
:root[data-theme="dark"] .theme-switch .theme-ic-sun { display: none; }
:root[data-theme="dark"] .theme-switch .theme-ic-moon { display: flex; }

/* 品牌 Logo：深色模式下换成浅色文字版本 */
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }

/* ============================================================
   深色模式（<html data-theme="dark">，由 assets/theme.js 写入）
   ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* 中性 */
  --bg:      #0d1410;
  --bg-tint: #121b14;
  --card:    #16211a;
  --line:    #24322a;
  --line-2:  #2f4034;
  --ink:     #e8f1e8;
  --ink-2:   #a7baab;
  --ink-3:   #7e9283;

  /* 阴影 / 遮罩 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45), 0 14px 36px rgba(0, 0, 0, .42);
  --shadow-green: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, .42);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .45);
  --scrim: rgba(0, 0, 0, .62);
  --nav-bg: rgba(13, 20, 16, .82);
  --nav-solid: rgba(13, 20, 16, .97);
  --glass-bg: rgba(22, 33, 26, .9);
  --glass-bg-strong: rgba(22, 33, 26, .94);
  --glass-line: rgba(255, 255, 255, .12);

  /* 绿色语义色 */
  --grid-line: rgba(124, 194, 66, .10);
  --highlight: rgba(124, 194, 66, .20);
  --tint:    #17281a;
  --tint-2:  #29452f;
  --tint-3:  #37603d;
  --tint-soft: rgba(124, 194, 66, .12);
  --tint-line: rgba(124, 194, 66, .32);
  --green-ink:   #74d183;
  --green-ink-2: #65c273;
  --green-deep:  #a9e6b2;
  --row-hl: rgba(124, 194, 66, .12);
  --hover-row: #17231a;
  --title-grad: linear-gradient(100deg, #7cdb88 10%, #b6f0bd 55%, #e2fbe4);

  /* 提示 */
  --warn-bg: #3a2a12;
  --warn-line: #5b431d;
  --warn-ink: #f2b877;

  /* 客户端窗口演示（深色客户端主题） */
  --win-bg: #121a13;
  --win-card: #1b261c;
  --win-side: #161f17;
  --win-main: #141c15;
  --win-input: #1a241b;
  --win-line: #2c392d;
  --win-seg: #161f18;
  --win-track: #1d2a1f;
  --win-chip: #243126;
  --win-ink: #e6eee6;
  --win-ink-2: #adbdae;
  --win-ink-3: #8a9a8c;
  --win-icon: #7f8d81;
  --win-code: #1f2b21;
  --win-code-line: #314034;
  --win-code-ink: #f08fb2;
  --win-btn: #1f2a21;
  --win-toggle-off: #3a4a3b;
}

/* 深色模式下的个别细节 */
:root[data-theme="dark"] .hero-platforms i { color: var(--tint-2); }
:root[data-theme="dark"] .hero-cube { filter: drop-shadow(0 30px 46px rgba(0, 0, 0, .55)); }
:root[data-theme="dark"] .video-frame { border-color: var(--line); }
:root[data-theme="dark"] .assist-win { box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .chat-mode b.on,
:root[data-theme="dark"] .res-tabs .on { box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .dl-panel { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .dlp-latest { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .modal-card { box-shadow: var(--shadow-md), 0 24px 60px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .assist-scene { border-color: var(--line); }

@media (max-width: 760px) {
  .theme-switch { margin-left: auto; margin-right: 2px; }
}
