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

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

  /* 白厅（亮色主题）：冷调纯白墙面。墙上除了作品，什么都不该有颜色。 */
  --bg: #f6f7f8;
  --bg-2: #ebedef;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --surface-3: #e5e9ed;
  --text: #101215;
  --text-2: #4c535c;
  --text-3: #828a94;
  --line: rgba(16, 18, 21, 0.10);
  --line-2: rgba(16, 18, 21, 0.20);

  /* 强调色：白厅用钴蓝 —— 冷、干净、当代 */
  --brand: #2f5bd7;
  --brand-2: #1e40ae;
  --brand-3: #0ea5b7;

  --claude: #c2612f;
  --claude-2: #e08a4e;
  --claude-soft: rgba(194, 97, 47, 0.12);
  /* 站点 logo 的黄绿强调色：亮色主题下加深，保证白底可读 */
  --logo-accent: #7d8c0d;
  --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;

  /* =====================================================================
     Phase 6 视觉系统 —— 美术馆策展感（三版方向稿混合后的定稿）
     ---------------------------------------------------------------------
     全部为**新增** token，既有 token 一律不改名，只调值。
     旧样式仍可从 git 回滚（见 deploy 前的 git 快照）。
     ===================================================================== */

  /* ---- 尺度阶梯。8 级，覆盖从 4px 到 112px 的全部间距 ---- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 18px;
  --sp-5: 28px;  --sp-6: 44px;  --sp-7: 72px;  --sp-8: 112px;

  /* ---- 流体字号。用 clamp() 一次覆盖 414→1440，无需逐断点写死 ---- */
  --fs-display: clamp(34px, 4.8vw, 60px);
  --fs-h1: clamp(24px, 2.9vw, 34px);
  --fs-h2: clamp(19px, 2.1vw, 26px);
  --fs-h3: 16.5px;
  --fs-body: 14.5px;
  --fs-meta: 12.5px;
  --fs-caption: 10.5px;

  /* ---- 标题字体：编辑式衬线。仍是系统栈 —— 无 web font、无 CDN ---- */
  --font-display: ui-serif, "Songti SC", "Source Han Serif SC",
    "Noto Serif CJK SC", Georgia, "Times New Roman", serif;

  /* ---- 展陈（图版）。作品被装裱在纸面上，而不是直接贴在屏幕上 ---- */
  --plate-mat: clamp(13px, 2vw, 26px);   /* 裱边宽度：作品的「留白呼吸」 */
  --plate-line: var(--line);             /* 图版外框（发丝线） */
  --spot: none;                          /* 射灯：白厅不开灯 */

  /* ---- 来源色。两套主题各自配一组，保证同一主题内各色不打架 ---- */
  --src-claude: #b3541e;   /* 可运行单文件：暖陶土 */
  --src-feishu: #0f766e;   /* 飞书案例集：深青 */
  --src-fable: #6d28d9;    /* Claude Fable 5.5：紫罗兰 */
}

[data-theme="dark"] {
  /* 暗厅（暗色主题）：熄了顶灯的展厅。顶灯关掉之后，唯一发光的就是作品本身。 */
  --bg: #0a0b0d;
  --bg-2: #060708;
  --surface: #111317;
  --surface-2: #171a1f;
  --surface-3: #20242b;
  --text: #f3f1ec;
  --text-2: rgba(243, 241, 236, 0.70);
  --text-3: rgba(243, 241, 236, 0.43);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.17);

  /* 强调色：暗厅换成暖琥珀 —— 那是射灯的光 */
  --brand: #e0a94a;
  --brand-2: #c98c2c;

  --claude: #f0a074;
  --claude-2: #d97f4c;
  --claude-soft: rgba(240, 160, 116, 0.14);
  --logo-accent: #ecfe57;   /* 暗色主题沿用原稿黄绿 */
  --astra: #9d9dff;
  --astra-2: #6c6cf5;
  --astra-soft: rgba(157, 157, 255, 0.14);

  --glow: rgba(224, 169, 74, 0.26);
  --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);

  /* 暗厅才开射灯：每件作品头顶一圈柔光，其余退到暗处 */
  --spot: radial-gradient(88% 62% at 50% -8%, rgba(255, 244, 214, 0.13), rgba(255, 255, 255, 0) 58%);
  --plate-line: rgba(255, 255, 255, 0.10);

  /* 来源色在暗厅下换成一组柔和的，保证各色互不打架 */
  --src-claude: #9fd47f;
  --src-feishu: #8ab4ff;
  --src-fable: #c4b5fd;
}

/* ---------- 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; }

/* 站点 logo（boge 播歌）—— 位图原稿矢量化而来，缩放到任意尺寸都锐利。
   ink 用 currentColor 跟随主题文字色；accent 由 --logo-accent 控制。 */
.u-logo-boge { display: block; flex: none; }
.u-logo-boge svg { display: block; height: 38px; width: auto; }

.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-fable { background: color-mix(in srgb, var(--src-fable) 16%, transparent); color: var(--src-fable); border-color: color-mix(in srgb, var(--src-fable) 32%, 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: block; margin-top: 9px; }
.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; }

/* ---------- 画廊合并层新增组件（100 Claude + 258 飞书 + 38 Fable） ----------
   全部只使用既有 token，因此后续换视觉系统（Phase 3/6）时无需再动这里。 */

/* 来源徽章：缩略图右上角。合并后一眼要能分清
   「可运行单文件」和「飞书案例」两种完全不同的形态。 */
.lib-src {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.01em;
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lib-src::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  margin-right: 5px; vertical-align: 1px; background: #fff;
}
.lib-src.is-claude::before { background: #ecfe57; }
.lib-src.is-feishu::before { background: #8ab4ff; }
.lib-src.is-fable::before { background: #c4b5fd; }

/* 封面缺失（或加载失败）时的占位块。
   用案例 id 哈希出一个稳定色相的双色渐变 + 编号 + 图标，
   保证**每一张卡片都有一张视觉强占位**——
   「飞书案例图片空白」就是因为这里只给了 icon+label 的小色块，
   在画廊缩略图里和真实封面比起来视觉差异太大，所以补一个带渐变+编号的标识块。 */
.lib-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px; text-align: center;
  /* --ph-h1/--ph-h2 由 js 的 phHash(id) 注入；缺省给个冷灰白渐变 */
  background:
    radial-gradient(120% 100% at 100% 0%, hsl(var(--ph-h1, 200), 30%, 88%), transparent 60%),
    radial-gradient(110% 90% at 0% 100%, hsl(var(--ph-h2, 240), 28%, 90%), transparent 58%),
    linear-gradient(135deg, var(--surface-3), var(--surface-2) 72%);
}
.lib-ph .ic { font-size: 36px; line-height: 1; opacity: 0.92; }
.lib-ph .num {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text-2);
  padding: 2px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line);
}
.lib-ph .lb {
  font-size: 11.5px; line-height: 1.5; font-weight: 600; color: var(--text-3); max-width: 94%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-theme="dark"] .lib-ph {
  background:
    radial-gradient(120% 100% at 100% 0%, hsl(var(--ph-h1, 200), 30%, 22%), transparent 60%),
    radial-gradient(110% 90% at 0% 100%, hsl(var(--ph-h2, 240), 28%, 18%), transparent 58%),
    linear-gradient(135deg, #1d2128, #161a20 72%);
}
[data-theme="dark"] .lib-ph .num {
  background: rgba(0, 0, 0, 0.35); color: var(--text); border-color: rgba(255, 255, 255, 0.10);
}

/* 「视频待转码」角标：贴在缩略图左下 */
.lib-pend {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.6); color: #ffd9a8;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* 四维评分条：4 根极细横条 + 综合分。
   给合并后的画廊一个「不用点开就能横向比」的抓手。 */
.lib-scores { display: flex; align-items: center; gap: 4px; }
.lib-scores .sc {
  flex: 1; height: 3px; border-radius: 99px; background: var(--surface-3); overflow: hidden;
}
.lib-scores .sc i { display: block; height: 100%; border-radius: 99px; background: var(--claude); }
.lib-scores .tot {
  font-family: var(--mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); min-width: 26px; text-align: right;
}

/* 视频 / 图片卡片：缩略图底色压住海报边缘，保证角标可读 */
.lib-card-media .lib-thumb { background: var(--surface-2); }

/* 「加载更多」：396 张分块渲染（首屏 72 张）的续载入口 */
.lib-more-wrap { display: flex; justify-content: center; padding: 26px 0 4px; }
.lib-more-wrap .u-btn[hidden] { display: none; }

/* 技术栈筛选在飞书/Fable 视图下的说明（飞书 258 条与 Fable 38 条 tags 全为空数组） */
.u-filter-note { font-size: 12px; color: var(--text-3); padding: 3px 2px; }

/* 悬停开关禁用态：当前筛选结果里一件可运行单文件都没有时 */
.u-switch.is-disabled { opacity: 0.45; }
.u-switch.is-disabled, .u-switch.is-disabled input { cursor: not-allowed; }

/* ---------- 对照台（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); }

/* ---------- 全屏品鉴浮层 ----------
   沉浸式：铺满视口，压住导航与抽屉（z 350：抽屉 300 < 浮层 350 < toast 400）。
   左上角「‹ 返回」是唯一出口，刻意做成实心高对比，不做成不起眼的 ✕。 */
.u-stage-ov {
  position: fixed; inset: 0; z-index: 350;
  display: flex; flex-direction: column; background: var(--bg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
}
.u-stage-ov.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.28s var(--ease), visibility 0s;
}
.u-stage-ov-bar {
  flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.u-stage-ov-back {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 42px; padding: 0 19px 0 13px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.012em; color: #fff;
  background: var(--claude); border: 1px solid var(--claude);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--claude) 36%, transparent);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.u-stage-ov-back:hover { transform: translateX(-3px); filter: brightness(1.1); }
.u-stage-ov-back:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.u-stage-ov-back svg { flex: none; }
.u-stage-ov-id { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.u-stage-ov-num { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--claude); }
.u-stage-ov-title { font-size: 14px; font-weight: 650; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-stage-ov-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.u-stage-ov-act {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  transition: all 0.18s var(--ease);
}
.u-stage-ov-act:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.u-stage-ov-body { position: relative; flex: 1; min-height: 0; background: #000; }
.u-stage-ov-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.u-stage-ov-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.u-stage-ov-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 30px 24px; text-align: center; color: var(--text-2); font-size: 14px;
}

/* ---------- 数据面板 ---------- */
.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; }

/* =========================================================
   单模型版组件（Claude Opus 5.5 专题）
   ========================================================= */

/* ---------- Hero 单列 ---------- */
.u-hero-solo { display: block; max-width: 1000px; }
.u-hero-solo .u-hero-lede { max-width: 780px; }
.u-hero h1 .g { background: linear-gradient(100deg, var(--claude) 4%, var(--brand-2) 58%, var(--brand-3) 98%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 实时演示台 ---------- */
.u-stage-wrap { padding: 0 0 14px; }
.u-stage {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius-l);
  background: var(--surface); box-shadow: var(--shadow-l);
}
.u-stage-bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.u-stage-dots { display: flex; gap: 6px; flex: none; }
.u-stage-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.u-stage-num { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--claude); flex: none; }
.u-stage-title { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-stage-live { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 11.5px; font-weight: 650; color: var(--ok); }
.u-stage-live i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: u-pulse 2s infinite; }
@keyframes u-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.u-stage-frame {
  position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 10; max-height: 68vh;
  touch-action: pan-y;
}
.u-stage-media-item,
.u-stage-frame iframe,
.u-stage-frame video,
.u-stage-frame img {
  display: block; width: 100%; height: 100%; border: 0; object-fit: cover;
  opacity: 1; transform: scale(1);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.u-stage-frame.is-changing .u-stage-media-item,
.u-stage-frame.is-changing iframe,
.u-stage-frame.is-changing video,
.u-stage-frame.is-changing img { opacity: 0; transform: scale(0.985); }
.u-stage-frame video { background: #05060b; }
.u-stage-frame img { object-fit: contain; background: #080a12; }
.u-stage-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; color: var(--text-2);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--claude) 18%, transparent), transparent 54%), var(--surface-2);
}
.u-stage-fallback-kicker { color: var(--claude); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.u-stage-fallback-title { max-width: 620px; color: var(--text); font-size: clamp(21px, 3vw, 38px); font-weight: 760; letter-spacing: -.03em; }
.u-stage-fallback-copy { max-width: 520px; font-size: 13px; line-height: 1.7; }
.u-stage-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.u-stage-position { flex: none; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }
.u-stage-run {
  position: absolute; inset: 0; z-index: 6; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 650; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #16182a, #2a1c14);
  border: 0; transition: opacity 0.25s var(--ease);
}
.u-stage-run span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 15px; }
.u-stage-run:hover { opacity: 0.88; }
.u-stage-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 15px; border-top: 1px solid var(--line); background: var(--surface-2); }
.u-stage-spacer { flex: 1; min-width: 0; }
.u-stage-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; font-weight: 650; cursor: pointer;
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.u-stage-btn:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.u-stage-btn:focus-visible,
.u-stage-pill:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.u-stage-btn.is-primary { background: var(--claude); border-color: var(--claude); color: #fff; }
.u-stage-btn.is-primary:hover { color: #fff; filter: brightness(1.08); }
.u-stage-pills { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 15px 12px; }
.u-stage-pill {
  padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-3);
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.u-stage-pill:hover { color: var(--text); border-color: var(--line-2); }
.u-stage-pill.is-on { background: var(--claude-soft); border-color: color-mix(in srgb, var(--claude) 42%, transparent); color: var(--claude); }
.u-stage-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.u-stage-foot-item { display: flex; gap: 9px; padding: 13px 15px; background: var(--surface); font-size: 13px; line-height: 1.65; color: var(--text-2); }
.u-stage-foot-item b { flex: none; color: var(--claude); font-weight: 700; font-size: 12px; }

/* ---------- 搜索清空 ---------- */
.u-search-clear {
  display: none; flex: none; width: 20px; height: 20px; border-radius: 50%;
  font-size: 15px; line-height: 1; color: var(--text-3); background: var(--surface-3);
  cursor: pointer; transition: all 0.16s;
}
.u-search-clear.is-on { display: grid; place-items: center; }
.u-search-clear:hover { color: var(--text); background: var(--line-2); }

/* ---------- 开关 ---------- */
.u-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.u-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.u-switch-track { position: relative; width: 34px; height: 19px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.2s var(--ease); flex: none; }
.u-switch-thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-3); transition: transform 0.2s var(--ease), background 0.2s; }
.u-switch input:checked + .u-switch-track { background: var(--claude); border-color: var(--claude); }
.u-switch input:checked + .u-switch-track .u-switch-thumb { transform: translateX(15px); background: #fff; }
.u-switch input:focus-visible + .u-switch-track { box-shadow: 0 0 0 3px var(--glow); }
.u-switch-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* ---------- 分组筛选 ---------- */
/* 两行筛选若换行会把 sticky 工具栏顶到 ~190px，吃掉近 1/5 屏。
   改为单行横向滚动（沿用原站的 category-scroll 思路），高度降到 ~146px。 */
.u-filter-group { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.u-filter-group + .u-filter-group { margin-top: 9px; }
.u-filter-label { flex: none; font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; }
.u-chips { display: flex; gap: 7px; flex-wrap: nowrap; overflow-x: auto; min-width: 0; padding-bottom: 2px; scrollbar-width: none; }
.u-chips::-webkit-scrollbar { display: none; }
.u-chips .u-chip { flex: none; }
/* 锚点跳转时留出 sticky 导航 + 工具栏的高度，否则标题会被盖住 */
#gallery, #insight, #method, #wall { scroll-margin-top: calc(var(--nav-h) + 160px); }

/* ---------- 洞察网格 ---------- */
.u-insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }

/* ---------- 热力图 ---------- */
.u-heat-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.u-heat-table { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 700px; }
.u-heat-table th { font-size: 11.5px; font-weight: 650; color: var(--text-3); text-align: center; padding: 3px 4px; white-space: nowrap; }
.u-heat-table .u-heat-corner { text-align: left; }
.u-heat-rowhead { text-align: left !important; font-size: 12px !important; font-weight: 600 !important; color: var(--text-2) !important; white-space: nowrap; }
.u-heat-rowhead i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.u-heat-cell {
  width: 46px; height: 34px; border-radius: 8px; text-align: center; vertical-align: middle;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--text);
  background: var(--surface-2); transition: transform 0.16s var(--ease);
}
.u-heat-cell.is-on { cursor: default; }
.u-heat-cell.is-on:hover { transform: scale(1.09); }
.u-heat-cell.is-total { background: var(--surface-3); color: var(--text-2); }

/* ---------- 轻提示 ---------- */
.u-toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 400;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  color: var(--bg); background: var(--text); box-shadow: var(--shadow-l);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  max-width: min(90vw, 460px); text-align: center;
}
.u-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 提示词中英切换 ---------- */
.m-sec-prompt .u-prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
.u-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); }
.u-seg button {
  padding: 6px 13px; border-radius: 7px; font-size: 12.5px; font-weight: 650;
  color: var(--text-3); background: none; cursor: pointer; transition: all 0.18s var(--ease); white-space: nowrap;
}
.u-seg button:hover:not(:disabled) { color: var(--text); }
.u-seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.u-seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.u-prompt-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.u-prompt-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }
.u-prompt-hint b { color: var(--text-2); font-weight: 650; }
.u-prompt-file { margin-top: 10px; }

/* ---------- 响应式 ---------- */
@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%; }
  /* 单模型版：演示台与筛选在窄屏改为纵向 */
  .u-logo-boge svg { height: 34px; }
  .u-stage-frame { aspect-ratio: 4 / 3; max-height: none; }
  .u-stage-controls { align-items: stretch; }
  .u-stage-btn { min-height: 38px; }
  .u-stage-foot { grid-template-columns: 1fr; }
  .u-insight-grid { grid-template-columns: 1fr; }
  #gallery, #insight, #method { scroll-margin-top: calc(var(--nav-h) + 140px); }
}
@media (max-width: 620px) {
  .u-wrap { padding: 0 14px; }
  .u-logo-txt span { display: none; }
  .u-logo-boge svg { height: 30px; }
  .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; }
  /* 单模型版：演示台控件收窄，隐藏次要文案 */
  .u-stage-title { display: none; }
  .u-stage-spacer { display: none; }
  .u-stage-position { margin-left: auto; }
  .u-stage-btn { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .u-stage-controls { gap: 6px; padding: 10px 12px; }
  .u-stage-bar { padding: 10px 12px; }
  .u-stage-pills { flex-wrap: nowrap; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
  .u-stage-pills::-webkit-scrollbar { display: none; }
  .u-stage-pill { flex: none; min-height: 36px; }
  .u-stage-foot-item { padding: 11px 12px; font-size: 12.5px; flex-direction: column; gap: 4px; }
  .u-prompt-bar { flex-direction: column; align-items: stretch !important; }
  .u-prompt-acts { flex-direction: column; }
  .u-prompt-acts .u-btn { width: 100%; }
  .u-seg { width: 100%; }
  .u-seg button { flex: 1; }
  /* 浮层：窄屏把标题让出去，保住「返回」和两个出口按钮 */
  .u-stage-ov-bar { padding: 9px 12px; gap: 10px; }
  .u-stage-ov-title { display: none; }
  .u-stage-ov-back { height: 40px; padding: 0 15px 0 11px; font-size: 14.5px; }
  .u-stage-ov-act { padding: 0 11px; font-size: 12.5px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .u-reveal { opacity: 1; transform: none; }
}

/* =========================================================
   排行榜 rank.html（Phase 5）
   全部走已有的 CSS 变量，明暗主题自动适配，不引入新颜色。
   行是**批量渲染**的，所以刻意不使用 .u-reveal —— 逐行做进场动画
   在几百行的表里既卡又没意义。
   ========================================================= */
.rk-bar-wrap { position: sticky; top: var(--nav-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.rk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.rk-bar .u-seg { flex: 0 0 auto; }
.rk-bar .u-search { flex: 1 1 220px; min-width: 180px; }
.rk-bar .u-select { flex: 0 0 auto; }

.rk-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); padding: 0 0 12px; }
.rk-legend b { color: var(--text-2); font-weight: 600; }

.rk-head {
  display: grid;
  grid-template-columns: 54px 64px 1fr 300px 74px;
  gap: 12px; align-items: center;
  padding: 10px 14px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--line-2);
}
.rk-list { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }

.rk-row {
  display: grid;
  grid-template-columns: 54px 64px 1fr 300px 74px;
  gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.16s var(--ease-2);
}
.rk-row:last-child { border-bottom: 0; }
.rk-row:hover { background: var(--surface-2); }
.rk-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.rk-rank { font: 600 15px/1 var(--mono); color: var(--text-3); text-align: right; }
.rk-row.is-top .rk-rank { color: var(--claude); }

.rk-thumb {
  width: 64px; height: 40px; border-radius: 7px; overflow: hidden;
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.rk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rk-main { min-width: 0; }
.rk-title { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.rk-id { font: 500 11px/1 var(--mono); color: var(--text-3); }
.rk-src { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2); }
.rk-src.is-claude { color: var(--claude); border-color: var(--claude-soft); background: var(--claude-soft); }
.rk-src.is-feishu { color: var(--brand); border-color: var(--brand); background: var(--glow); }
.rk-src.is-fable { color: var(--src-fable); border-color: var(--src-fable); background: transparent; }
.rk-conf { font-size: 10px; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 6px; }

.rk-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rk-score { min-width: 0; }
.rk-score .k { font-size: 10px; color: var(--text-3); display: flex; justify-content: space-between; gap: 4px; }
.rk-score .k i { font-style: normal; font-weight: 600; color: var(--text-2); }
.rk-score .bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 4px; overflow: hidden; }
.rk-score .bar i { display: block; height: 100%; border-radius: 2px; background: var(--brand); transition: width 0.4s var(--ease); }
.rk-row.is-active .rk-score .bar i { background: var(--claude); }

.rk-total {
  font: 700 17px/1 var(--mono); text-align: right; color: var(--text-2);
}
.rk-row.is-top .rk-total { color: var(--claude); }

.rk-more { display: flex; justify-content: center; padding: 22px 0 0; }
.rk-count { font-size: 13px; color: var(--text-3); padding: 14px 2px 0; }

@media (max-width: 900px) {
  .rk-head { display: none; }
  .rk-row { grid-template-columns: 40px 52px 1fr 60px; gap: 10px; padding: 10px; }
  .rk-thumb { width: 52px; height: 34px; }
  .rk-scores { grid-column: 3 / -1; grid-row: 2; margin-top: 6px; }
  .rk-total { grid-row: 1; }
  .rk-rank { font-size: 13px; }
  .rk-bar { gap: 8px; }
}

/* ============================================================================
   Phase 6 —— 美术馆策展感 · 视觉系统落地（三版方向稿混合定稿）
   ----------------------------------------------------------------------------
   混合口径（用户授权由我定稿）：
     · 结构取 B「画册翻页」—— 图版装裱 + 图注 + 编号。396 件需要一个「有秩序」的骨架，
       这是易用性上的最优解；C 的极低密度放到 396 件上会让人翻不到底。
     · 亮色主题取 C「白盒子」—— 冷调纯白墙 + 钴蓝强调。冷白比暖纸更当代，
       也让那批高饱和的缩略图自己跳出来。
     · 暗色主题取 A「暗厅射灯」—— 近黑 + 射灯柔光 + 暖琥珀。
       于是两套主题不是「同一间房开不开灯」，而是**两间不同的展厅**。
     · 字体取 A/B 的编辑式衬线做标题 + C 的等宽微型标签做元信息。

   防回归：本节只做「新增 token + 覆盖组件样式」，**不改名任何既有 token**。
   整块可整体删除即回到旧视觉。本节自带响应式，必须留在文件末尾以正确压过后面的规则。
   ============================================================================ */

/* ---- Phase 6 追加 token。主题相关的按主题分列，主题无关的放 :root ---- */
:root { --radius-plate: 3px; --on-brand: #ffffff; }
[data-theme="dark"] { --on-brand: #17150f; }

/* ---------- 标题：编辑式衬线 ---------- */
.u-section-head h2,
.u-hero h1,
.u-panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
}
.u-section-head h2 { font-size: var(--fs-h2); line-height: 1.24; }
.u-panel h3 { font-size: var(--fs-h3); }

/* Hero：大标题走衬线。原来那层 claude→brand→astra 的渐变字是「AI 味」最重的元素之一，
   换成单一强调色 —— 更像出版物，也更不容易在不同主题下糊成一团。 */
.u-hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.u-hero h1 .g {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--brand);
}
.u-hero h1 .l2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.u-hero-lede { font-size: 16px; line-height: 1.84; }

/* 眉标：等宽 + 更宽字距，像展厅入口的指示牌 */
.u-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.u-eyebrow::before { width: 18px; height: 1px; }

/* ---------- 按钮 / 胶囊：收角、等宽、去掉渐变 ---------- */
.u-btn { border-radius: var(--radius-plate); font-weight: 600; }
.u-btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 20px var(--glow); }
.u-btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.u-btn-ghost { background: transparent; }
.u-btn-sm { border-radius: var(--radius-plate); }

.u-chip {
  height: 31px;
  border-radius: var(--radius-plate);
  font-family: var(--mono);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.u-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.u-chip .cnt { border-radius: 2px; font-size: 9.5px; }
.u-tag { border-radius: 2px; font-size: var(--fs-caption); }
.u-icon-btn { border-radius: var(--radius-plate); }
.u-badge { border-radius: 2px; font-size: var(--fs-caption); }
.u-panel { border-radius: var(--radius-plate); }

/* ---------- 图版（画廊卡片）：本方案的核心 ----------
   做法：给 .lib-card 加一圈裱边（padding），作品就从「贴满整卡」变成「裱在纸上」。
   .lib-card 本身已经 overflow:hidden，所以 padding 直接产生装裱效果，无需改 DOM。 */
.lib-card {
  padding: var(--plate-mat);
  background: var(--surface);
  border: 1px solid var(--plate-line);
  border-radius: var(--radius-plate);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.lib-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-2);
}
.lib-thumb { border-radius: 2px; }
.lib-thumb img { transition: transform 0.6s var(--ease); }

/* 射灯：只在暗厅亮。白厅下 --spot 是 none，等于什么都不加。 */
.lib-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: var(--spot);
}

/* 图版编号：等宽 + 强调色，像美术馆墙上的作品编号 */
.lib-no {
  left: 8px; top: 8px; border-radius: 2px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.62); color: #fff; font-weight: 600;
}

/* 来源徽章：从「深色药丸」改成「毛玻璃小签」，压在缩略图上不抢戏 */
.lib-src {
  right: 8px; top: 8px; border-radius: 2px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lib-src::before { width: 5px; height: 5px; margin-right: 5px; }
.lib-src.is-claude::before { background: var(--src-claude); }
.lib-src.is-feishu::before { background: var(--src-feishu); }
.lib-src.is-fable::before { background: var(--src-fable); }

.lib-pend { left: 8px; bottom: 8px; border-radius: 2px; font-family: var(--mono); font-size: 9.5px; }

/* 图注：标题走衬线，元信息走等宽 —— 这是本方案最「出版物」的一处 */
.lib-body { padding: 13px 2px 2px; gap: 6px; }
.lib-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.lib-body .en { font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: 0.04em; }
.lib-body .desc { font-size: var(--fs-meta); line-height: 1.68; }
.lib-tags { gap: 4px; }
.lib-foot {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.03em;
}
.lib-foot .more { color: var(--brand); font-weight: 600; }

/* 四维评分：保持发丝线，颜色跟随强调色 */
.lib-scores .sc { height: 2px; }
.lib-scores .sc i { background: var(--brand); }
.lib-scores .tot { font-size: var(--fs-caption); }

/* 占位块：Phase 6 重定义——保留 id 哈希双色渐变，不强行换成无差别的灰色。
   这是画廊里最不被注意但最影响「观感齐整度」的一处。 */
.lib-ph {
  background:
    radial-gradient(120% 100% at 100% 0%, hsl(var(--ph-h1, 200), 30%, 88%), transparent 60%),
    radial-gradient(110% 90% at 0% 100%, hsl(var(--ph-h2, 240), 28%, 90%), transparent 58%),
    linear-gradient(135deg, var(--surface-3), var(--surface-2) 72%);
}
.lib-ph .num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
}
.lib-ph .lb { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; }

/* 卡片内浮出的操作按钮：跟着图版的直角走 */
.lib-card .u-btn-sm { border-radius: 2px; }

/* ---------- 缩略图上的动作条：默认不出现，靠近才浮出 ----------
   实测（/tmp/probe-poster.js）：这条动作条没有任何 CSS 规则，只靠内联样式常显，
   常显时遮掉缩略图 **19%** 的面积 —— 396 张卡片每一张都在作品上压了两个按钮。
   这跟「墙上除了作品，什么都不该有颜色」的策展方向是直接冲突的：
   观众第一眼看到的是 UI 而不是作品。

   所以改成渐进增强：
     · 有 hover 的设备（鼠标/触控板）→ 默认隐藏，hover 或键盘聚焦时浮出；
     · 无 hover 的设备（触屏）→ 保持常显。触屏没有悬停，藏起来就等于永远点不到。
   不动 DOM、不加依赖，纯 CSS 门控。 */
.lib-thumb .poster {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.lib-card:hover .lib-thumb .poster,
.lib-card:focus-visible .lib-thumb .poster,
.lib-card:focus-within .lib-thumb .poster,
.lib-card.is-live .lib-thumb .poster {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* 触屏：没有 hover 可用，动作条必须常显 */
@media (hover: none) {
  .lib-thumb .poster {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lib-thumb .poster { transition: none; }
}

/* ---------- 工具条 / 搜索 / 分组筛选 ---------- */
.u-search { border-radius: var(--radius-plate); }
.u-select { border-radius: var(--radius-plate); }
.u-filter-label {
  font-family: var(--mono); font-size: var(--fs-caption);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.u-seg { border-radius: var(--radius-plate); }
.u-seg button { border-radius: 2px; font-size: var(--fs-meta); }
.u-filter-note { font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: 0.03em; }

/* ---------- 排行榜：去掉「一个方盒子」，改成图录式的发丝线长表 ---------- */
.rk-list { border: 0; border-radius: 0; background: transparent; }
.rk-head {
  font-family: var(--mono); letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line-2);
}
.rk-row { border-bottom: 1px solid var(--line); }
.rk-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); }
.rk-rank, .rk-id, .rk-total { font-family: var(--mono); }
.rk-thumb { border-radius: 2px; }
.rk-src { border-radius: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; }
.rk-src.is-claude { color: var(--src-claude); border-color: var(--src-claude); background: transparent; }
.rk-src.is-feishu { color: var(--src-feishu); border-color: var(--src-feishu); background: transparent; }
.rk-src.is-fable { color: var(--src-fable); border-color: var(--src-fable); background: transparent; }
.rk-score .bar { height: 2px; border-radius: 0; }
.rk-score .bar i { border-radius: 0; }
.rk-score .k { font-family: var(--mono); font-size: 9.5px; }
.rk-bar-wrap { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- 页脚：元信息统一走等宽，跟图版的语言一致 ---------- */
.u-footer-col h4,
.u-footer-bottom { font-family: var(--mono); letter-spacing: 0.12em; }
.u-footer-col h4 { font-size: var(--fs-caption); }
.u-drawer-panel { border-radius: 0; }

/* ---------- Phase 6 响应式 ----------
   本节位于文件末尾，必须自带断点：否则基础规则会在窄屏压过前面媒体查询里的同名属性。
   裱边在窄屏收窄，避免手机上作品被挤得太小。 */
@media (max-width: 900px) {
  :root { --plate-mat: 12px; }
  .lib-body { padding-top: 11px; }
}
@media (max-width: 620px) {
  :root { --plate-mat: 9px; }
  .lib-grid { grid-template-columns: 1fr; }
  .u-section-head h2 { font-size: 20px; }
  .u-hero h1 { letter-spacing: -0.025em; }
  .rk-row { padding: 10px 4px; }
}
