/* =========================================================
   css/unify.css —— 双模型对照馆 · 统一设计系统
   ---------------------------------------------------------
   合并站共用一套 token / 组件 / 布局。
   两个模型各有专属色，用户在任何界面都能一眼分清哪边是谁：
     Claude Opus 5.5  → 暖陶土  --claude
     GPT-6 Astra      → 靛紫    --astra
   默认暗色（展厅语境下作品更跳），支持亮色。
   无外部依赖、无 web font、无 CDN。
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --maxw: 1360px;
  --nav-h: 62px;

  --bg: #f5f6fa;
  --bg-2: #eceef6;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --surface-3: #e8ebf4;
  --text: #0a0d16;
  --text-2: #4a5266;
  --text-3: #878fa3;
  --line: rgba(10, 13, 22, 0.08);
  --line-2: rgba(10, 13, 22, 0.15);

  --brand: #5b5bf6;
  --brand-2: #9333ea;
  --brand-3: #06b6d4;

  --claude: #c2612f;
  --claude-2: #e08a4e;
  --claude-soft: rgba(194, 97, 47, 0.12);
  --astra: #5457e8;
  --astra-2: #8b8bff;
  --astra-soft: rgba(84, 87, 232, 0.12);

  --ok: #12a150;
  --warn: #d97706;
  --danger: #dc2626;

  --glow: rgba(91, 91, 246, 0.18);
  --shadow-s: 0 1px 2px rgba(10, 13, 22, 0.06), 0 2px 6px rgba(10, 13, 22, 0.05);
  --shadow-m: 0 6px 18px rgba(10, 13, 22, 0.08), 0 2px 6px rgba(10, 13, 22, 0.05);
  --shadow-l: 0 24px 60px rgba(10, 13, 22, 0.16), 0 6px 18px rgba(10, 13, 22, 0.08);

  --radius-s: 9px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.4, 0, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #06070d;
  --bg-2: #0a0c14;
  --surface: #10131d;
  --surface-2: #171b28;
  --surface-3: #1f2434;
  --text: #f2f4fa;
  --text-2: #a3abc0;
  --text-3: #6b7385;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --claude: #f0a074;
  --claude-2: #d97f4c;
  --claude-soft: rgba(240, 160, 116, 0.14);
  --astra: #9d9dff;
  --astra-2: #6c6cf5;
  --astra-soft: rgba(157, 157, 255, 0.14);

  --glow: rgba(108, 108, 245, 0.28);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-m: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-l: 0 30px 70px rgba(0, 0, 0, 0.66);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.u-lock { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.18; letter-spacing: -0.022em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
input, select { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.u-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 背景氛围 ---------- */
.u-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.u-bg i {
  position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.u-bg i:nth-child(1) { width: 620px; height: 620px; left: -180px; top: -160px; background: var(--claude-soft); }
.u-bg i:nth-child(2) { width: 680px; height: 680px; right: -220px; top: 60px; background: var(--astra-soft); }
.u-bg i:nth-child(3) { width: 520px; height: 520px; left: 40%; bottom: -260px; background: var(--glow); }
[data-theme="dark"] .u-bg i { opacity: 0.75; }

/* ---------- Nav ---------- */
.u-nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.u-nav.is-scrolled { border-bottom-color: var(--line); }
.u-nav-inner { display: flex; align-items: center; gap: 18px; width: 100%; }
.u-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.03em; flex: none; }
.u-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative; flex: none;
  background: linear-gradient(135deg, var(--claude), var(--astra));
  box-shadow: 0 4px 14px var(--glow);
}
.u-logo-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 3px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.55));
  clip-path: polygon(0 0, 100% 0, 100% 42%, 46% 42%, 46% 100%, 0 100%);
}
.u-logo-txt { font-size: 15.5px; }
.u-logo-txt span { color: var(--text-3); font-weight: 600; }

.u-nav-links { display: flex; align-items: center; gap: 3px; margin-left: 10px; }
.u-nav-links a {
  padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.u-nav-links a:hover { color: var(--text); background: var(--surface-2); }
.u-nav-links a.is-active { color: var(--text); background: var(--surface-2); }
.u-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 汉堡按钮：只在窄屏出现，宽屏导航条已经够用。
   选择器要带 .u-nav 前缀 —— 否则会被后面同权重的 .u-icon-btn{display:grid} 覆盖 */
.u-nav .u-menu-btn { display: none; }

.u-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: all 0.18s var(--ease);
}
.u-icon-btn:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.u-icon-btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.u-icon-btn svg { width: 16px; height: 16px; }

/* ---------- 按钮 / 徽章 / 标签 ---------- */
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 11px; font-size: 14px; font-weight: 650;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.u-btn svg { width: 15px; height: 15px; }
.u-btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 20px var(--glow); }
.u-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow); }
.u-btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.u-btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--text-3); }
.u-btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.u-btn-sm svg { width: 13px; height: 13px; }

.u-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-3);
}
.u-badge.is-claude { background: var(--claude-soft); color: var(--claude); border-color: color-mix(in srgb, var(--claude) 30%, transparent); }
.u-badge.is-astra { background: var(--astra-soft); color: var(--astra); border-color: color-mix(in srgb, var(--astra) 30%, transparent); }
.u-badge svg { width: 10px; height: 10px; }
.u-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.u-tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-2); font-weight: 500; white-space: nowrap;
}

.u-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.u-chip:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.u-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.u-chip .cnt { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); color: var(--text-3); }
.u-chip.is-on .cnt { background: rgba(255, 255, 255, 0.18); color: inherit; }
.u-chip .sw { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------- 通用面板 ---------- */
.u-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 26px; box-shadow: var(--shadow-s);
}
.u-panel h3 { font-size: 16px; margin-bottom: 4px; }
.u-panel .sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 20px; }

.u-section { padding: 74px 0; position: relative; }
.u-section-head { max-width: 760px; margin-bottom: 38px; }
.u-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.u-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.u-section-head h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.035em; margin-bottom: 14px; }
.u-section-head p { font-size: 15.5px; color: var(--text-2); line-height: 1.78; }
.u-section-head p b { color: var(--text); font-weight: 650; }

/* ---------- Hero ---------- */
.u-hero { position: relative; padding: 68px 0 56px; overflow: hidden; }
.u-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 54px; align-items: center;
}
.u-hero h1 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -0.045em; line-height: 1.06; margin-bottom: 22px; }
.u-hero h1 .g { background: linear-gradient(100deg, var(--claude) 8%, var(--brand-2) 52%, var(--astra) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-hero h1 .l2 { display: block; font-size: 0.62em; letter-spacing: -0.03em; color: var(--text-2); margin-top: 12px; font-weight: 650; }
.u-hero-lede { font-size: 16.5px; color: var(--text-2); line-height: 1.82; max-width: 620px; margin-bottom: 30px; }
.u-hero-lede b { color: var(--text); font-weight: 650; }
.u-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.u-kpis { display: flex; gap: 30px; flex-wrap: wrap; }
.u-kpi .n { font-size: 30px; font-weight: 750; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.u-kpi .n.c { color: var(--claude); }
.u-kpi .n.a { color: var(--astra); }
.u-kpi .l { font-size: 12.5px; color: var(--text-3); font-weight: 600; }

/* Hero 右侧：并排双窗口 */
.u-hero-stage {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow-l); height: 420px; display: flex; flex-direction: column;
}
.u-hs-bar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.u-hs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.u-hs-title { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-left: 6px; }
.u-hs-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.u-hs-pane { position: relative; overflow: hidden; min-width: 0; }
.u-hs-pane + .u-hs-pane { border-left: 1px solid var(--line-2); }
.u-hs-label {
  position: absolute; left: 12px; top: 12px; z-index: 4;
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.u-hs-label.is-claude { background: color-mix(in srgb, var(--claude) 22%, transparent); color: var(--claude); border: 1px solid color-mix(in srgb, var(--claude) 40%, transparent); }
.u-hs-label.is-astra { background: color-mix(in srgb, var(--astra) 22%, transparent); color: var(--astra); border: 1px solid color-mix(in srgb, var(--astra) 40%, transparent); }
.u-hs-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 12px;
  font-size: 11.5px; font-weight: 600; color: #fff; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

/* ---------- 对照墙 ---------- */
.cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 22px; }
.cw-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-s);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
  display: flex; flex-direction: column;
}
.cw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--line-2); }
.cw-head { padding: 18px 20px 14px; }
.cw-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.cw-theme { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.cw-card h3 { font-size: 19px; letter-spacing: -0.028em; margin-bottom: 7px; }
.cw-brief { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

.cw-split { display: grid; grid-template-columns: 1fr 1fr; position: relative; border-top: 1px solid var(--line); }
.cw-split::after {
  content: "VS"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-3);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-m);
}
.cw-side { position: relative; min-width: 0; display: flex; flex-direction: column; }
.cw-side + .cw-side { border-left: 1px solid var(--line); }
.cw-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.cw-side.is-claude .cw-stage { background: linear-gradient(150deg, var(--claude-soft), var(--surface-2) 70%); }
.cw-side.is-astra .cw-stage { background: linear-gradient(150deg, var(--astra-soft), var(--surface-2) 70%); }
.cw-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.cw-stage > .cw-mount { position: absolute; inset: 0; }
.cw-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px; transition: opacity 0.4s var(--ease);
}
/* 只隐藏「已经跑起来的那一侧」的海报，另一侧保持可见 */
.cw-side.is-live .cw-poster { opacity: 0; pointer-events: none; }
.cw-poster .ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text-3); background: var(--surface);
}
.cw-poster .ico svg { width: 18px; height: 18px; }
.cw-poster .t { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.cw-side.is-claude .cw-poster .ico { color: var(--claude); border-color: color-mix(in srgb, var(--claude) 34%, transparent); }
.cw-side.is-astra .cw-poster .ico { color: var(--astra); border-color: color-mix(in srgb, var(--astra) 34%, transparent); }

.cw-tagline {
  position: absolute; left: 10px; top: 10px; z-index: 5;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cw-side.is-claude .cw-tagline { background: color-mix(in srgb, var(--claude) 24%, transparent); color: #fff; }
.cw-side.is-astra .cw-tagline { background: color-mix(in srgb, var(--astra) 24%, transparent); color: #fff; }
.cw-live {
  position: absolute; right: 10px; top: 10px; z-index: 5;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.92); color: #fff;
}

.cw-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cw-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; }
.cw-angle { font-size: 12.5px; color: var(--text-2); line-height: 1.68; flex: 1; }
.cw-meta { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

.cw-foot {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.cw-verdict { font-size: 12.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.cw-verdict b { color: var(--text); }
.cw-foot .u-btn { flex: none; }

/* 对照墙：维度对照表（展开态） */
.cw-dims { display: none; border-top: 1px solid var(--line); }
.cw-card.is-open .cw-dims { display: block; }
.cw-dims table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cw-dims th, .cw-dims td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cw-dims thead th { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.cw-dims thead th:nth-child(2) { color: var(--claude); }
.cw-dims thead th:nth-child(3) { color: var(--astra); }
.cw-dims td:first-child { font-weight: 600; color: var(--text-3); width: 22%; }
.cw-dims tr:last-child td { border-bottom: none; }

/* ---------- 工具条 ---------- */
.u-toolbar { position: sticky; top: var(--nav-h); z-index: 60; padding: 12px 0 14px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.u-toolbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.u-search {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px; flex: 1; min-width: 200px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
}
.u-search svg { width: 15px; height: 15px; flex: none; opacity: 0.6; }
.u-search input { flex: 1; border: none; background: none; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.u-search input::placeholder { color: var(--text-3); }
.u-search kbd { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.u-select {
  height: 40px; padding: 0 32px 0 13px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  appearance: none; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.u-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.u-result-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 18px; font-size: 13.5px; color: var(--text-3); }
.u-result-line b { color: var(--text); font-weight: 700; }

/* ---------- 通用案例卡（馆） ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.lib-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--line-2); }
.lib-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lib-thumb .mount { position: absolute; inset: 0; }
.lib-no { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fff; backdrop-filter: blur(6px); }
.lib-play { position: absolute; right: 10px; top: 10px; font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 99px; background: rgba(16, 185, 129, 0.92); color: #fff; }
.lib-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lib-body h3 { font-size: 15px; letter-spacing: -0.02em; line-height: 1.35; }
.lib-body .en { font-size: 11.5px; color: var(--text-3); }
.lib-body .desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; flex: 1; }
.lib-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.lib-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.lib-foot .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-foot .more { margin-left: auto; color: var(--astra); font-weight: 650; white-space: nowrap; }

/* ---------- 对照台（versus） ---------- */
.vs { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg); }
.vs-top {
  flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.vs-top-main { min-width: 0; flex: 1; }
.vs-top h1 { font-size: 17px; letter-spacing: -0.028em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-top .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.vs-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.vs-pane { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-2); }
.vs-pane + .vs-pane { border-left: 1px solid var(--line-2); }
.vs-pane-head {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.vs-pane-head .who { font-size: 12.5px; font-weight: 700; }
.vs-pane.is-claude .vs-pane-head .who { color: var(--claude); }
.vs-pane.is-astra .vs-pane-head .who { color: var(--astra); }
.vs-pane-head .t { font-size: 12px; color: var(--text-3); margin-left: auto; font-family: var(--mono); }
.vs-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.vs-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.vs-stage > .vs-mount { position: absolute; inset: 0; }
.vs-veil {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: 12.5px; color: var(--text-3);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.24s var(--ease);
}
.vs-veil.is-on { opacity: 1; pointer-events: auto; }
.vs-spin { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--brand); animation: u-spin 0.8s linear infinite; }
@keyframes u-spin { to { transform: rotate(360deg); } }
.vs-hint {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; max-width: 88%; padding: 7px 13px; border-radius: 99px;
  font-size: 12px; color: var(--text-2); background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-m);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vs-hint .k { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: var(--surface-3); color: var(--text-3); flex: none; }
.vs-fallback {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 30px 24px; overflow-y: auto;
}
.vs-fallback .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.vs-fallback .ico svg { width: 22px; height: 22px; }
.vs-fallback h4 { font-size: 15px; }
.vs-fallback p { font-size: 12.5px; color: var(--text-3); max-width: 380px; line-height: 1.7; }

/* 内嵌加载慢时的软提示（不判定失败） */
.vs-slow {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 92%;
  padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-m);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* 对照台底部：维度对照 */
.vs-foot { flex: none; border-top: 1px solid var(--line); background: var(--surface); max-height: 34vh; overflow-y: auto; }
.vs-foot-in { padding: 16px 20px 20px; }
.vs-foot h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.vs-dims { width: 100%; border-collapse: collapse; font-size: 13px; }
.vs-dims th, .vs-dims td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs-dims thead th { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.vs-dims thead th:nth-child(2) { color: var(--claude); }
.vs-dims thead th:nth-child(3) { color: var(--astra); }
.vs-dims td:first-child { font-weight: 650; color: var(--text-3); width: 20%; }
.vs-verdict {
  margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-m); font-size: 13.5px; line-height: 1.7;
  background: var(--surface-2); border-left: 3px solid var(--brand); color: var(--text-2);
}
.vs-verdict b { color: var(--text); }
.vs-nav { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.vs-nav .cnt { margin: 0 auto; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ---------- 详情抽屉 ---------- */
.u-drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.u-drawer.is-open { pointer-events: auto; }
.u-drawer-scrim {
  position: absolute; inset: 0; background: rgba(4, 6, 12, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.u-drawer.is-open .u-drawer-scrim { opacity: 1; }
.u-drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform 0.42s var(--ease); box-shadow: var(--shadow-l);
}
.u-drawer.is-open .u-drawer-panel { transform: none; }
.u-drawer-head { flex: none; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); position: relative; }
.u-drawer-close {
  position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: all 0.2s;
}
.u-drawer-close:hover { background: var(--text); color: var(--bg); transform: rotate(90deg); }
.u-drawer-head h2 { font-size: 22px; letter-spacing: -0.03em; margin: 10px 0 6px; padding-right: 40px; }
.u-drawer-head .en { font-size: 13px; color: var(--text-3); }
.u-drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; overscroll-behavior: contain; }
.u-drawer-body .m-summary { font-size: 15px; line-height: 1.75; padding: 16px 18px; border-radius: var(--radius-m); background: var(--surface-2); border-left: 3px solid var(--brand); margin-bottom: 24px; }
.u-drawer-body .m-hl { padding: 16px 18px; border-radius: var(--radius-m); margin-bottom: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.u-drawer-body .m-hl .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 7px; }
.u-drawer-body .m-hl p { font-size: 14.5px; line-height: 1.75; }
.u-drawer-body .m-sec { margin-bottom: 22px; }
.u-drawer-body .m-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.u-drawer-body .m-sec h4 .num { font-family: var(--mono); font-size: 10px; width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.u-drawer-body .m-sec p, .u-drawer-body .m-sec pre { font-size: 14px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; word-break: break-word; margin: 0; font-family: inherit; }
.u-drawer-body pre.prompt { font-family: var(--mono); font-size: 12px; line-height: 1.7; background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius-m); border: 1px solid var(--line); max-height: 320px; overflow: auto; }
.u-drawer-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.u-drawer-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- 数据面板 ---------- */
.u-bars { display: flex; flex-direction: column; gap: 11px; }
.u-bar-row { display: grid; grid-template-columns: 118px 1fr 40px; align-items: center; gap: 12px; }
.u-bar-row .lab { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.u-bar-row .lab i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.u-bar-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.u-bar-fill { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.u-bar-row .num { font-family: var(--mono); font-size: 12px; color: var(--text-3); text-align: right; }

.u-h2h { display: flex; flex-direction: column; gap: 15px; }
.u-h2h-item .k { font-size: 12.5px; font-weight: 650; margin-bottom: 7px; color: var(--text-2); }
.u-h2h-line { display: grid; grid-template-columns: 54px 1fr 32px; gap: 9px; align-items: center; margin-bottom: 5px; }
.u-h2h-line .who { font-size: 11.5px; font-weight: 650; }
.u-h2h-line.is-c .who { color: var(--claude); }
.u-h2h-line.is-a .who { color: var(--astra); }
.u-h2h-line .track { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.u-h2h-line .fill { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s var(--ease); }
.u-h2h-line.is-c .fill { background: linear-gradient(90deg, var(--claude-2), var(--claude)); }
.u-h2h-line.is-a .fill { background: linear-gradient(90deg, var(--astra-2), var(--astra)); }
.u-h2h-line .n { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); text-align: right; }

/* ---------- Footer ---------- */
.u-footer { border-top: 1px solid var(--line); padding: 52px 0 38px; margin-top: 40px; position: relative; z-index: 1; }
.u-footer-top { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.u-footer .brand { max-width: 380px; }
.u-footer .brand p { font-size: 13px; color: var(--text-3); margin-top: 12px; line-height: 1.72; }
.u-footer-cols { display: flex; gap: 54px; flex-wrap: wrap; }
.u-footer-col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 12px; }
.u-footer-col a { display: block; font-size: 13px; color: var(--text-2); padding: 4px 0; transition: color 0.2s; }
.u-footer-col a:hover { color: var(--brand); }
.u-footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }

/* ---------- 空态 / 载入 ---------- */
.u-empty { text-align: center; padding: 72px 20px; color: var(--text-3); }
.u-empty svg { width: 40px; height: 40px; margin-bottom: 14px; opacity: 0.45; }
.u-skel { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 65%, transparent) 50%, transparent 80%); animation: u-skel 1.15s linear infinite; }
@keyframes u-skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 揭示动画 ---------- */
.u-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.u-reveal.is-in { opacity: 1; transform: none; }

/* ---------- demo 通用外观（Astra 互动复刻） ---------- */
.demo-shell { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.demo-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.demo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.demo-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--text-3); padding: 18px; text-align: center; }
.demo-bar {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 9px 13px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.demo-ctl { display: inline-flex; align-items: center; gap: 8px; }
.demo-ctl-lab { font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: baseline; gap: 3px; }
.demo-ctl-lab i { font-style: normal; font-size: 10px; color: var(--text-3); }
.demo-ctl-val { font-family: var(--mono); font-size: 11px; color: var(--text-3); min-width: 32px; text-align: right; }
.demo-range { -webkit-appearance: none; appearance: none; width: 100px; height: 4px; border-radius: 99px; background: var(--surface-3); outline: none; cursor: pointer; }
.demo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); box-shadow: var(--shadow-s); cursor: pointer; }
.demo-range::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); cursor: pointer; }
.demo-btn { height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); transition: all 0.18s var(--ease); white-space: nowrap; }
.demo-btn:hover { color: var(--text); border-color: var(--text-3); }
.demo-btn.is-primary, .demo-btn.is-toggle.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.demo-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-3); }
.demo-seg-btn { padding: 5px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-3); transition: all 0.18s var(--ease); }
.demo-seg-btn.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.demo-readout { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--text-2); padding: 4px 9px; border-radius: 7px; background: var(--surface-2); }
.demo-readout b { color: var(--brand); font-weight: 700; }
.demo-note {
  position: absolute; left: 11px; bottom: 11px; z-index: 3; pointer-events: none;
  font-size: 11px; line-height: 1.5; color: var(--text-2); padding: 5px 10px; border-radius: 8px;
  max-width: min(76%, 400px); background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.demo-palette { display: flex; flex-wrap: wrap; gap: 4px; max-width: 250px; }
.demo-swatch { width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-2); transition: transform 0.15s; }
.demo-swatch:hover { transform: scale(1.12); }
.demo-swatch.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--brand); }
.demo-text { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; min-width: 170px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; }
.demo-text:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow); }
.demo-gate { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: color-mix(in srgb, var(--surface-2) 74%, transparent); backdrop-filter: blur(5px); transition: opacity 0.24s var(--ease); }
.demo-gate.is-gone { opacity: 0; pointer-events: none; }
.demo-gate-btn { padding: 12px 24px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-m); transition: transform 0.2s var(--ease); }
.demo-gate-btn:hover { transform: translateY(-2px); }
/* 卡片内只留画面 */
.cw-stage .demo-bar, .cw-stage .demo-note, .cw-stage .demo-gate,
.lib-thumb .demo-bar, .lib-thumb .demo-note, .lib-thumb .demo-gate { display: none !important; }
.cw-stage .demo-canvas, .lib-thumb .demo-canvas { touch-action: pan-y; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .u-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .u-hero-stage { height: 360px; }
  .cw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .u-wrap { padding: 0 18px; }
  /* 窄屏：导航条收成下拉面板，由汉堡按钮控制（原来直接 display:none 会让手机端无法换页） */
  .u-nav .u-menu-btn { display: grid; }
  .u-nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 10px 14px 14px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l);
    display: none;
  }
  .u-nav.is-open .u-nav-links { display: flex; }
  .u-nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .u-section { padding: 54px 0; }
  .u-hero { padding: 44px 0 40px; }
  .u-kpis { gap: 22px; }
  .cw-split { grid-template-columns: 1fr; }
  .cw-side + .cw-side { border-left: none; border-top: 1px solid var(--line); }
  .cw-split::after { top: 50%; }
  .vs-main { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .vs-pane + .vs-pane { border-left: none; border-top: 1px solid var(--line-2); }
  .vs-foot { max-height: 40vh; }
  .u-bar-row { grid-template-columns: 92px 1fr 34px; gap: 9px; }
  .u-drawer-panel { width: 100%; }
}
@media (max-width: 620px) {
  .u-wrap { padding: 0 14px; }
  .u-logo-txt span { display: none; }
  .lib-grid { grid-template-columns: 1fr; }
  .u-h2h-row { grid-template-columns: 1fr 70px 1fr; }
  .u-toolbar-row { gap: 8px; }
  .u-search { min-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .u-reveal { opacity: 1; transform: none; }
}
