/* ============================================
   STAR — Stickman Author Roster
   火柴人作者档案
   设计基调：毛玻璃质感 · 大留白 · 高级简约 · 编辑式非对称排版
   桌面端 clamp 封顶 / 移动端 9:16 优先
   字体使用本机字体栈回退，不引用外部资源，离线可用
   ============================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-base: #F5F6F8;
  --bg-warm: #EEF0F4;
  --bg-panel: #E8EBF0;

  --blue-pale: #E7F0FB;
  --blue-soft: #D2E3F7;
  --blue-mid: #8FB6E0;
  --blue-deep: #22527F;
  --blue-accent: #2F6BA8;

  --text-ink: #141821;
  --text-body: #333A44;
  --text-muted: #6C7480;
  --text-faint: #9AA1AB;

  --white-pure: #FFFFFF;
  --divider: rgba(20, 24, 33, 0.10);
  --divider-strong: rgba(20, 24, 33, 0.22);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-blur: 22px;
  --glass-saturate: 180%;
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.04), 0 14px 34px -16px rgba(16,24,40,0.20);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.28);

  --radius-hard: 6px;
  --radius-soft: 22px;
  --radius-card: 14px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;

  --sidebar-width: 248px;
  --max-content: 1320px;
}

/* ============================================
   主题：黑金 blackgold（001 只想画个柴 · 复杂版档案）
   ============================================ */
body.blackgold {
  --bg-base: #100F0C;
  --bg-warm: #17150F;
  --bg-panel: #1E1A12;

  --blue-pale: #241F14;
  --blue-soft: #2C2617;
  --blue-mid: #6B5A2E;
  --blue-deep: #C9A24B;
  --blue-accent: #E3C77A;

  --text-ink: #F4EEE0;
  --text-body: #D3C9AE;
  --text-muted: #A2967A;
  --text-faint: #756B50;

  --white-pure: #17150F;
  --divider: rgba(201, 162, 75, 0.22);
  --divider-strong: rgba(201, 162, 75, 0.42);

  --glass-bg: rgba(24, 21, 16, 0.52);
  --glass-border: rgba(201, 162, 75, 0.26);
  --glass-shadow: inset 0 1px 0 rgba(201, 162, 75, 0.12);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -18px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.5), 0 30px 70px -24px rgba(0,0,0,0.85);
}
body.blackgold { background: var(--bg-base); color: var(--text-body); }
body.blackgold::before { background: rgba(201,162,75,0.06); }
body.blackgold::after  { background: rgba(201,162,75,0.045); }
body.blackgold .btn-enter { background: #C9A24B; color: #14110A; box-shadow: 0 6px 24px rgba(201,162,75,0.30); }
body.blackgold .btn-enter::before { background: #E3C77A; }
body.blackgold .btn-enter:hover { box-shadow: 0 10px 34px rgba(201,162,75,0.42); }
body.blackgold .card-rank-badge.rank-S { background: #C9A24B; color: #14110A; }
body.blackgold .detail-back:hover { background: #241F14; color: #E3C77A; }
body.blackgold .search-submit { background: #C9A24B; color: #14110A; }
body.blackgold .search-submit:hover { background: #E3C77A; box-shadow: 0 8px 22px rgba(201,162,75,0.3); }

/* ============================================
   主题：黑黄 blackyellow（005 晟Ksylana · 简版档案）
   ============================================ */
body.blackyellow {
  --bg-base: #0B0A07;
  --bg-warm: #121008;
  --bg-panel: #191509;

  --blue-pale: #241D07;
  --blue-soft: #2B2309;
  --blue-mid: #8C7718;
  --blue-deep: #F2C400;
  --blue-accent: #FFD84D;

  --text-ink: #FBF6DC;
  --text-body: #D9CE9F;
  --text-muted: #A29563;
  --text-faint: #6B5F37;

  --white-pure: #191509;
  --divider: rgba(242, 196, 0, 0.24);
  --divider-strong: rgba(242, 196, 0, 0.44);

  --glass-bg: rgba(24, 21, 11, 0.55);
  --glass-border: rgba(242, 196, 0, 0.30);
  --glass-shadow: inset 0 1px 0 rgba(242, 196, 0, 0.12);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -18px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.5), 0 30px 70px -24px rgba(0,0,0,0.85);
}
body.blackyellow { background: var(--bg-base); color: var(--text-body); }
body.blackyellow::before { background: rgba(242,196,0,0.07); }
body.blackyellow::after  { background: rgba(242,196,0,0.05); }
body.blackyellow .btn-enter { background: #F2C400; color: #141008; box-shadow: 0 6px 24px rgba(242,196,0,0.30); }
body.blackyellow .btn-enter::before { background: #FFD84D; }
body.blackyellow .btn-enter:hover { box-shadow: 0 10px 34px rgba(242,196,0,0.42); }
body.blackyellow .detail-back:hover { background: #241D07; color: #FFD84D; }
body.blackyellow .search-submit { background: #F2C400; color: #141008; }
body.blackyellow .search-submit:hover { background: #FFD84D; box-shadow: 0 8px 22px rgba(242,196,0,0.3); }

/* ============================================
   主题：黑紫 star002（002 ZL狼龙君）
   ============================================ */
body.star002 {
  --bg-base: #0E0C15;
  --bg-warm: #151222;
  --bg-panel: #1C1830;

  --blue-pale: #261E46;
  --blue-soft: #2E2555;
  --blue-mid: #6D4BD6;
  --blue-deep: #8B5CF6;
  --blue-accent: #A78BFA;

  --text-ink: #F5F1FF;
  --text-body: #D9D2F2;
  --text-muted: #AAA2D6;
  --text-faint: #6E66A8;

  --white-pure: #151222;
  --divider: rgba(139, 92, 246, 0.22);
  --divider-strong: rgba(139, 92, 246, 0.42);

  --glass-bg: rgba(26, 22, 48, 0.52);
  --glass-border: rgba(139, 92, 246, 0.28);
  --glass-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.12);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -18px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.5), 0 30px 70px -24px rgba(0,0,0,0.85);
}
body.star002 { background: var(--bg-base); color: var(--text-body); }
body.star002::before { background: rgba(139,92,246,0.07); }
body.star002::after  { background: rgba(139,92,246,0.05); }
body.star002 .detail-back:hover { background: #261E46; color: #A78BFA; }

/* ============================================
   主题：黑红 star003（003 肆火）
   ============================================ */
body.star003 {
  --bg-base: #0D0A0A;
  --bg-warm: #141010;
  --bg-panel: #1C1414;

  --blue-pale: #2A1416;
  --blue-soft: #331A1C;
  --blue-mid: #A63A3F;
  --blue-deep: #E5484D;
  --blue-accent: #FF6B6B;

  --text-ink: #FDF5F4;
  --text-body: #E9C9C9;
  --text-muted: #B98A8A;
  --text-faint: #7A5C5C;

  --white-pure: #141010;
  --divider: rgba(229, 72, 77, 0.22);
  --divider-strong: rgba(229, 72, 77, 0.42);

  --glass-bg: rgba(30, 10, 12, 0.52);
  --glass-border: rgba(229, 72, 77, 0.28);
  --glass-shadow: inset 0 1px 0 rgba(255, 107, 107, 0.12);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -18px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.5), 0 30px 70px -24px rgba(0,0,0,0.85);
}
body.star003 { background: var(--bg-base); color: var(--text-body); }
body.star003::before { background: rgba(229,72,77,0.07); }
body.star003::after  { background: rgba(229,72,77,0.05); }
body.star003 .detail-back:hover { background: #2A1416; color: #FF6B6B; }

/* ============================================
   主题：青白 star004（004 YH清月 · 浅色底）
   ============================================ */
body.star004 {
  --bg-base: #F6FBFB;
  --bg-warm: #EFF7F9;
  --bg-panel: #E5F3F5;

  --blue-pale: #E1F4F6;
  --blue-soft: #C4EAF0;
  --blue-mid: #5FC1CE;
  --blue-deep: #1499A8;
  --blue-accent: #0E828F;

  --text-ink: #0D2B31;
  --text-body: #2E4E54;
  --text-muted: #5F7A81;
  --text-faint: #8AA6AC;

  --white-pure: #FFFFFF;
  --divider: rgba(20, 153, 168, 0.20);
  --divider-strong: rgba(20, 153, 168, 0.40);

  --glass-bg: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.star004 { background: var(--bg-base); color: var(--text-body); }
body.star004::before { background: rgba(20,153,168,0.06); }
body.star004::after  { background: rgba(20,153,168,0.04); }
body.star004 .detail-back:hover { background: #D9EFF2; color: #0E828F; }

/* ============================================
   主题：红白 redwhite（006 笨拆 · 浅色底）
   ============================================ */
body.redwhite {
  --bg-base: #FBF7F7;
  --bg-warm: #F6ECEC;
  --bg-panel: #F1E3E3;

  --blue-pale: #FBE9E9;
  --blue-soft: #F6D3D3;
  --blue-mid: #E07070;
  --blue-deep: #D83A3F;
  --blue-accent: #E85555;

  --text-ink: #2A1414;
  --text-body: #4A3030;
  --text-muted: #8A6666;
  --text-faint: #BC9A9A;

  --white-pure: #FFFFFF;
  --divider: rgba(216, 58, 63, 0.20);
  --divider-strong: rgba(216, 58, 63, 0.38);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.redwhite { background: var(--bg-base); color: var(--text-body); }
body.redwhite::before { background: rgba(216,58,63,0.07); }
body.redwhite::after  { background: rgba(216,58,63,0.05); }
body.redwhite .detail-back:hover { background: #F6E0E0; color: #D83A3F; }

/* ============================================
   主题：黑底翠绿 blackgreen（007 星旋 · 深色）
   ============================================ */
body.blackgreen {
  --bg-base: #0A0F0C;
  --bg-warm: #101813;
  --bg-panel: #16211B;

  --blue-pale: #15241D;
  --blue-soft: #1C3328;
  --blue-mid: #2FA878;
  --blue-deep: #34D399;
  --blue-accent: #6EE7B7;

  --text-ink: #F0FBF6;
  --text-body: #C9DED4;
  --text-muted: #93B3A5;
  --text-faint: #5C7E70;

  --white-pure: #101813;
  --divider: rgba(52, 211, 153, 0.22);
  --divider-strong: rgba(52, 211, 153, 0.42);

  --glass-bg: rgba(16, 24, 19, 0.52);
  --glass-border: rgba(52, 211, 153, 0.28);
  --glass-shadow: inset 0 1px 0 rgba(110, 231, 183, 0.12);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -18px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.5), 0 30px 70px -24px rgba(0,0,0,0.85);
}
body.blackgreen { background: var(--bg-base); color: var(--text-body); }
body.blackgreen::before { background: rgba(52,211,153,0.07); }
body.blackgreen::after  { background: rgba(52,211,153,0.05); }
body.blackgreen .detail-back:hover { background: #15241D; color: #34D399; }

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

html { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Serif SC', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
}

/* 背景装饰 —— 纯色块（非渐变） */
body::before {
  content: '';
  position: fixed;
  top: -110px; right: -90px;
  width: 320px; height: 320px;
  background: var(--blue-pale);
  border-radius: 34% 66% 58% 42% / 46% 40% 60% 54%;
  z-index: -1;
  transform: rotate(12deg);
  opacity: 0.6;
  filter: blur(2px);
}
body::after {
  content: '';
  position: fixed;
  bottom: -120px; left: -90px;
  width: 260px; height: 260px;
  background: var(--blue-soft);
  border-radius: 60% 40% 38% 62% / 52% 58% 42% 48%;
  z-index: -1;
  transform: rotate(-8deg);
  opacity: 0.45;
  filter: blur(2px);
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
input { font-family: inherit; outline: none; border: none; background: transparent; color: inherit; }

h1, h2, h3, h4 { letter-spacing: var(--tracking-tight); font-weight: 600; line-height: 1.25; }

/* 通用毛玻璃表面 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--shadow-soft);
}

/* ============================================
   入口页 LANDING（美学保持不动）
   ============================================ */
.landing {
  max-width: var(--max-content);
  margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 56px) clamp(18px, 5vw, 72px) clamp(20px, 3vw, 48px);
  overflow: hidden;
}

.landing-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--divider);
}
.landing-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.landing-logo img { width: clamp(32px, 3.2vw, 44px); height: clamp(32px, 3.2vw, 44px); }
.landing-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 1.6vw, 26px);
  font-style: italic; color: var(--blue-deep); font-weight: 600;
}
.landing-nav { display: flex; gap: clamp(14px, 2vw, 28px); color: var(--text-muted); font-size: clamp(11px, 0.9vw, 13px); font-weight: 500; flex-wrap: wrap; }
.landing-nav a { transition: color .25s var(--ease-smooth); }
.landing-nav a:hover { color: var(--blue-accent); }

.landing-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding-top: clamp(28px, 5vh, 64px);
  max-width: 100%; overflow: hidden;
}
.landing-hero-left { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 14px); min-width: 0; position: relative; padding-right: clamp(14px, 2vw, 34px); }
.landing-hero-left::after {
  content: ''; position: absolute; right: 0; top: 6px; bottom: 6px;
  width: 1px; background: var(--divider);
}
.landing-hero-tag {
  display: inline-block;
  padding: clamp(3px, 0.4vw, 5px) clamp(8px, 1vw, 14px);
  background: var(--blue-pale); color: var(--blue-deep);
  font-size: clamp(9px, 0.7vw, 11px); font-weight: 700;
  letter-spacing: 0.12em; border-radius: var(--radius-hard);
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(47, 106, 168, 0.14);
}
.landing-hero-cn-title {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 700; color: var(--text-ink); line-height: 1.08;
  letter-spacing: -0.04em; word-break: break-word; max-width: 100%;
}
.landing-hero-cn-sub { font-family: 'Noto Serif SC', serif; font-size: clamp(11px, 1.2vw, 15px); color: var(--text-muted); font-weight: 300; }
.landing-hero-right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: clamp(10px, 1.5vw, 16px); min-width: 0; overflow: hidden; }
.landing-hero-en-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5.2vw, 82px);
  font-weight: 400; font-style: italic; color: var(--blue-deep);
  line-height: 0.98; letter-spacing: -0.06em; word-break: break-word;
  max-width: 100%; overflow-wrap: break-word;
}
.landing-hero-en-sub {
  font-size: clamp(9px, 0.9vw, 12px); color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; max-width: clamp(200px, 22vw, 340px);
}

.landing-enter-wrap { padding-top: clamp(24px, 4vh, 56px); display: flex; justify-content: flex-start; }
.btn-enter {
  position: relative;
  display: inline-flex; align-items: center; gap: clamp(10px, 1vw, 14px);
  padding: clamp(12px, 1.4vw, 18px) clamp(24px, 3vw, 36px);
  background: var(--blue-deep); color: var(--white-pure);
  font-size: clamp(10px, 0.9vw, 13px); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-hard); overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-smooth);
  box-shadow: 0 6px 20px rgba(34, 82, 127, 0.24);
  white-space: nowrap;
}
.btn-enter::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--blue-accent); transition: left .45s var(--ease-smooth); z-index: 0; }
.btn-enter:hover::before { left: 0; }
.btn-enter:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(34, 82, 127, 0.34); }
.btn-enter:active { transform: translateY(-1px); }
.btn-enter > * { position: relative; z-index: 1; }
.btn-enter-arrow { width: clamp(16px, 1.4vw, 22px); height: 2px; background: currentColor; position: relative; transition: width .3s var(--ease-spring); }
.btn-enter-arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn-enter:hover .btn-enter-arrow { width: clamp(26px, 2vw, 36px); }

.landing-footer {
  margin-top: clamp(24px, 4vh, 64px); padding-top: clamp(14px, 1.4vw, 22px);
  border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: clamp(9px, 0.7vw, 11px); color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.08em; flex-wrap: wrap; gap: 12px;
}
.landing-footer-stats { display: flex; gap: clamp(16px, 2.2vw, 40px); flex-wrap: wrap; }
.landing-stat-num { font-family: 'Playfair Display', serif; font-size: clamp(18px, 2.2vw, 30px); font-weight: 600; color: var(--blue-deep); line-height: 1; margin-bottom: 2px; }

.landing-tools-hint {
  margin-top: clamp(16px, 3vh, 28px);
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: var(--text-muted); align-items: center;
}
.landing-tools-hint .hint-chip {
  padding: 4px 12px; border-radius: 20px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; letter-spacing: 0.04em;
}

/* ============================================
   主浏览页 BROWSE
   ============================================ */
.browse-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh; min-height: 100dvh;
  max-width: 100vw; overflow: hidden;
}

.sidebar {
  padding: clamp(16px, 1.6vw, 24px) clamp(12px, 1.2vw, 18px);
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow-y: auto; overflow-x: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--divider-strong); border-radius: 2px; }

.sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: clamp(12px, 1.2vw, 18px);
  border-bottom: 1px solid var(--divider);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}
.sidebar-logo img { width: clamp(26px, 2vw, 34px); height: clamp(26px, 2vw, 34px); flex-shrink: 0; border-radius: 8px; }
.sidebar-logo-text { font-family: 'Playfair Display', serif; font-size: clamp(16px, 1.4vw, 20px); font-style: italic; font-weight: 600; color: var(--blue-deep); }

.sidebar-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--blue-pale); border-radius: var(--radius-hard);
  font-size: 16px; color: var(--blue-deep); display: none;
}

.tag-group { margin-bottom: clamp(14px, 1.6vw, 22px); }
.tag-group-title {
  font-size: 9px; font-weight: 700; color: var(--text-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--divider);
}
.tag-list { display: flex; flex-direction: column; gap: 3px; }
.tag-item {
  padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--text-muted);
  border-radius: var(--radius-hard); transition: all .25s var(--ease-smooth);
  cursor: pointer; position: relative; width: 100%; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-item:hover { color: var(--blue-deep); background: var(--blue-pale); transform: translateX(3px); }
.tag-item.active { background: var(--blue-deep); color: var(--white-pure); font-weight: 600; }
.tag-item .tag-count { position: absolute; right: 10px; font-size: 9px; font-weight: 600; opacity: 0.5; }

.tool-list { display: flex; flex-direction: column; gap: 6px; }
.tool-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-card);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; color: var(--text-body);
  transition: all .28s var(--ease-spring); text-align: left; width: 100%;
}
.tool-item:hover { transform: translateY(-2px); color: var(--blue-deep); box-shadow: var(--shadow-soft); }
.tool-item .tool-glyph {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--blue-pale); color: var(--blue-deep);
  font-size: 12px; font-weight: 700; font-family: 'Playfair Display', serif; font-style: italic;
}
.tool-item .tool-meta { display: flex; flex-direction: column; line-height: 1.25; }
.tool-item .tool-meta small { font-size: 9px; color: var(--text-faint); font-weight: 500; letter-spacing: 0.06em; }

.main-area {
  padding: clamp(16px, 2.4vw, 40px) clamp(14px, 3vw, 56px);
  display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 26px);
  max-width: 100%; overflow-x: hidden; min-width: 0;
}

.search-bar {
  padding: 6px 6px 6px 14px;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--shadow-soft);
  transition: box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
  max-width: 100%; flex-wrap: nowrap;
}
.search-bar:focus-within { border-color: var(--blue-mid); box-shadow: 0 0 0 3px var(--blue-pale), var(--shadow-soft); }

.search-type-select { display: flex; gap: 2px; padding: 3px; background: var(--bg-panel); border-radius: var(--radius-hard); flex-shrink: 0; }
.search-type-btn { padding: 7px 11px; font-size: 11px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-hard); letter-spacing: 0.04em; transition: all .25s var(--ease-smooth); white-space: nowrap; }
.search-type-btn.active { background: var(--white-pure); color: var(--blue-deep); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.search-input { flex: 1; padding: 10px 2px; font-size: 14px; color: var(--text-ink); min-width: 0; }
.search-input::placeholder { color: var(--text-faint); font-weight: 400; }

.search-submit {
  padding: 11px 20px; background: var(--blue-deep); color: var(--white-pure);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  border-radius: var(--radius-hard); transition: all .3s var(--ease-spring);
  flex-shrink: 0; white-space: nowrap;
}
.search-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 82, 127, 0.28); background: var(--blue-accent); }

.filter-tabs {
  display: flex; gap: 0; padding: 3px; align-self: flex-start;
  border-radius: var(--radius-hard); overflow: hidden; flex-wrap: wrap; max-width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.filter-tab { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-hard); transition: all .3s var(--ease-spring); letter-spacing: 0.04em; white-space: nowrap; }
.filter-tab:hover { color: var(--blue-deep); background: var(--blue-pale); }
.filter-tab.active { background: var(--blue-deep); color: var(--white-pure); }

.section-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px;
  padding-bottom: 14px; border-bottom: 2px solid var(--blue-deep);
  max-width: 100%; overflow: hidden;
}
.section-title { font-family: 'Playfair Display', 'Noto Serif SC', serif; font-size: clamp(18px, 2.4vw, 30px); font-weight: 600; color: var(--text-ink); letter-spacing: var(--tracking-tight); line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title-en { font-family: 'Playfair Display', serif; font-size: 10px; font-style: italic; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.section-meta { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.06em; text-align: right; flex-shrink: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 280px), 1fr)); gap: clamp(14px, 2vw, 26px); max-width: 100%; }

/* ---------- 作者卡片 ---------- */
.author-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  max-width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--shadow-soft);
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-smooth), border-color .3s var(--ease-smooth);
}
.author-card::after {
  content: ''; position: absolute; top: 0; left: -70%;
  width: 42%; height: 100%; z-index: 1; pointer-events: none;
  background: rgba(255, 255, 255, 0.07);
  transform: skewX(-16deg);
  transition: left .85s var(--ease-smooth);
}
.author-card:hover::after { left: 130%; }
.author-card:hover { transform: translateY(-8px); box-shadow: var(--glass-shadow), var(--shadow-lift); border-color: var(--blue-soft); }
.author-card:active { transform: translateY(-3px); }
.author-card > * { position: relative; z-index: 2; }
.author-card.limited::before { z-index: 3; }

/* 3D 跟随倾斜（集换式手感） */
.author-card { transform-style: preserve-3d; will-change: transform; }
.author-card.is-tilting { transition: transform .08s linear; }

/* 精英级（S/A）镭射反光层 */
.holo-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease-spring);
  border-radius: inherit; overflow: hidden;
}
.author-card.elite:hover .holo-sheen,
.author-card.elite:active .holo-sheen { opacity: 1; }
.holo-sheen::before {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(from 120deg at var(--x, 50%) var(--y, 50%),
    rgba(255, 93, 143, .35), rgba(255, 184, 107, .30), rgba(244, 226, 107, .28),
    rgba(110, 231, 183, .30), rgba(107, 184, 255, .30), rgba(181, 140, 255, .35), rgba(255, 93, 143, .35));
  mix-blend-mode: overlay;
}
.holo-sheen::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .22), transparent 42%);
}

/* 专属卡标识（EXCLUSIVE） */
.author-card.exclusive { border-color: rgba(52, 211, 153, 0.55); }
.exclusive-tag {
  display: inline-block; width: fit-content; margin: 6px 0 2px;
  padding: 2px 10px; border-radius: 4px;
  background: rgba(52, 211, 153, 0.16); color: #6EE7B7;
  font: 700 9.5px Inter, "Noto Serif SC", sans-serif;
  letter-spacing: .14em; border: 1px solid rgba(52, 211, 153, 0.4);
}

/* 收录进度条 ROSTER 100 */
.roster-progress { margin: 18px 0 6px; }
.roster-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: Inter, "Noto Serif SC", sans-serif;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.roster-progress-head b { color: var(--blue-deep); font-weight: 700; }
.roster-progress-pct { font-weight: 700; color: var(--blue-deep); }
.roster-progress-track {
  margin-top: 8px; height: 6px; border-radius: 4px;
  background: var(--blue-pale); overflow: hidden;
}
.roster-progress-bar {
  height: 100%; width: 0; background: var(--blue-deep); border-radius: 4px;
  transition: width .8s cubic-bezier(.34, 1.56, .64, 1);
}

.card-number-bar {
  padding: 9px 15px;
  background: var(--blue-pale);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--divider);
}
.card-number { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; color: var(--blue-deep); letter-spacing: 0.14em; }
.card-rank-badge { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; font-style: italic; padding: 1px 9px; border-radius: var(--radius-hard); }
.rank-S { background: #141821; color: #fff; }
.rank-A { background: var(--blue-deep); color: #fff; }
.rank-B { background: var(--blue-accent); color: #fff; }
.rank-C { background: var(--blue-mid); color: var(--text-ink); }

.card-body { padding: clamp(14px, 1.6vw, 20px); flex: 1; display: flex; flex-direction: column; gap: 9px; max-width: 100%; }

.card-avatar-area {
  width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px);
  background: var(--blue-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--white-pure);
  box-shadow: 0 4px 14px rgba(16,24,40,0.16);
}
.card-avatar-area img { width: 100%; height: 100%; object-fit: cover; }
.card-avatar-mono {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); color: var(--blue-deep); background: var(--blue-pale);
  letter-spacing: -0.02em;
}

.card-name { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; color: var(--text-ink); letter-spacing: var(--tracking-tight); line-height: 1.2; word-break: break-word; }
.card-name-en { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }
.card-desc { font-size: 12px; color: var(--text-body); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.card-tag { padding: 3px 9px; background: var(--bg-panel); border-radius: 20px; font-size: 9px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }

.author-card.limited { border: 1px solid var(--blue-deep); box-shadow: 0 0 0 1px var(--blue-pale), var(--glass-shadow), var(--shadow-soft); }
.author-card.limited::before {
  content: 'LIMITED';
  position: absolute; top: 9px; right: -26px;
  padding: 2px 32px; background: var(--blue-deep); color: var(--white-pure);
  font-size: 8px; font-weight: 700; letter-spacing: 0.2em;
  transform: rotate(45deg); z-index: 2;
}

/* 黑金卡片（001 只想画个柴） */
.author-card.theme-blackgold {
  background: rgba(24, 21, 16, 0.62);
  border-color: rgba(201, 162, 75, 0.34);
  color: #EFE7D3;
}
.author-card.theme-blackgold:hover { border-color: rgba(201, 162, 75, 0.6); }
.author-card.theme-blackgold::after { background: rgba(227, 199, 122, 0.10); }
.author-card.theme-blackgold .card-number-bar { background: #C9A24B; border-bottom: none; }
.author-card.theme-blackgold .card-number { color: #14110A; }
.author-card.theme-blackgold .card-name { color: #F6F0E2; }
.author-card.theme-blackgold .card-name-en { color: #B6A87F; }
.author-card.theme-blackgold .card-desc { color: #CFC3A5; }
.author-card.theme-blackgold .card-avatar-area { background: #0C0B08; border-color: rgba(201,162,75,0.5); }
.author-card.theme-blackgold .card-tag { background: rgba(201,162,75,0.14); color: #C9AE73; }
.author-card.theme-blackgold .card-rank-badge.rank-S { background: #14110A; color: #E3C77A; border: 1px solid #C9A24B; }
.author-card.theme-blackgold.limited::before { background: #C9A24B; color: #14110A; }

/* 黑黄卡片（005 晟Ksylana） */
.author-card.theme-blackyellow {
  background: rgba(24, 21, 11, 0.62);
  border-color: rgba(242, 196, 0, 0.34);
  color: #F7F0D4;
}
.author-card.theme-blackyellow:hover { border-color: rgba(242, 196, 0, 0.6); }
.author-card.theme-blackyellow::after { background: rgba(255, 216, 77, 0.10); }
.author-card.theme-blackyellow .card-number-bar { background: #F2C400; border-bottom: none; }
.author-card.theme-blackyellow .card-number { color: #141008; }
.author-card.theme-blackyellow .card-name { color: #FBF6DC; }
.author-card.theme-blackyellow .card-name-en { color: #B4A566; }
.author-card.theme-blackyellow .card-desc { color: #D9CE9F; }
.author-card.theme-blackyellow .card-avatar-area { background: #0B0A07; border-color: rgba(242,196,0,0.5); }
.author-card.theme-blackyellow .card-tag { background: rgba(242,196,0,0.14); color: #E0C94D; }
.author-card.theme-blackyellow .card-rank-badge.rank-A { background: #141008; color: #FFD84D; border: 1px solid #F2C400; }
.author-card.theme-blackyellow.limited::before { background: #F2C400; color: #141008; }

/* 黑紫卡片（002 ZL狼龙君） */
.author-card.theme-star002 {
  background: rgba(26, 22, 48, 0.62);
  border-color: rgba(139, 92, 246, 0.34);
  color: #EEE9FF;
}
.author-card.theme-star002:hover { border-color: rgba(139, 92, 246, 0.6); }
.author-card.theme-star002 .card-number-bar { background: #8B5CF6; border-bottom: none; }
.author-card.theme-star002 .card-number { color: #0A0812; }
.author-card.theme-star002 .card-name { color: #F5F1FF; }
.author-card.theme-star002 .card-name-en { color: #B7A9E6; }
.author-card.theme-star002 .card-desc { color: #D3CBF2; }
.author-card.theme-star002 .card-avatar-area { background: #0E0C15; border-color: rgba(139,92,246,0.5); }
.author-card.theme-star002 .card-tag { background: rgba(139,92,246,0.14); color: #C4B8F2; }
.author-card.theme-star002 .card-rank-badge.rank-B { background: #0A0812; color: #A78BFA; border: 1px solid #8B5CF6; }
.author-card.theme-star002.limited::before { background: #8B5CF6; color: #0A0812; }

/* 黑红卡片（003 肆火） */
.author-card.theme-star003 {
  background: rgba(30, 10, 12, 0.62);
  border-color: rgba(229, 72, 77, 0.34);
  color: #FCE9E8;
}
.author-card.theme-star003:hover { border-color: rgba(229, 72, 77, 0.6); }
.author-card.theme-star003 .card-number-bar { background: #E5484D; border-bottom: none; }
.author-card.theme-star003 .card-number { color: #0A0808; }
.author-card.theme-star003 .card-name { color: #FDF5F4; }
.author-card.theme-star003 .card-name-en { color: #D99A9A; }
.author-card.theme-star003 .card-desc { color: #E2B9B9; }
.author-card.theme-star003 .card-avatar-area { background: #0D0A0A; border-color: rgba(229,72,77,0.5); }
.author-card.theme-star003 .card-tag { background: rgba(229,72,77,0.14); color: #F0B9B9; }
.author-card.theme-star003 .card-rank-badge.rank-A { background: #0A0808; color: #FF6B6B; border: 1px solid #E5484D; }
.author-card.theme-star003.limited::before { background: #E5484D; color: #0A0808; }

/* 青白卡片（004 YH清月） */
.author-card.theme-star004 {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 153, 168, 0.35);
  color: #0D2B31;
}
.author-card.theme-star004:hover { border-color: rgba(20, 153, 168, 0.6); }
.author-card.theme-star004 .card-number-bar { background: #1499A8; border-bottom: none; }
.author-card.theme-star004 .card-number { color: #F5FBFB; }
.author-card.theme-star004 .card-name { color: #0D2B31; }
.author-card.theme-star004 .card-name-en { color: #4F8B93; }
.author-card.theme-star004 .card-desc { color: #2E4E54; }
.author-card.theme-star004 .card-avatar-area { background: #EFF7F9; border-color: rgba(20,153,168,0.5); }
.author-card.theme-star004 .card-tag { background: rgba(20,153,168,0.12); color: #0E828F; }
.author-card.theme-star004 .card-rank-badge.rank-B { background: #1499A8; color: #F5FBFB; border: 1px solid #1499A8; }
.author-card.theme-star004.limited::before { background: #1499A8; color: #F5FBFB; }

/* 红白卡片（006 笨拆） */
.author-card.theme-redwhite {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(216, 58, 63, 0.35);
  color: #2A1414;
}
.author-card.theme-redwhite:hover { border-color: rgba(216, 58, 63, 0.6); }
.author-card.theme-redwhite::after { background: rgba(232, 85, 85, 0.08); }
.author-card.theme-redwhite .card-number-bar { background: #D83A3F; border-bottom: none; }
.author-card.theme-redwhite .card-number { color: #FFFFFF; }
.author-card.theme-redwhite .card-name { color: #2A1414; }
.author-card.theme-redwhite .card-name-en { color: #A86A6A; }
.author-card.theme-redwhite .card-desc { color: #4A3030; }
.author-card.theme-redwhite .card-avatar-area { background: #FBF0F0; border-color: rgba(216,58,63,0.5); }
.author-card.theme-redwhite .card-tag { background: rgba(216,58,63,0.12); color: #C23A3F; }
.author-card.theme-redwhite .card-rank-badge.rank-B { background: #D83A3F; color: #FFFFFF; border: 1px solid #D83A3F; }

/* 黑底翠绿卡片（007 星旋） */
.author-card.theme-blackgreen {
  background: rgba(16, 24, 19, 0.62);
  border-color: rgba(52, 211, 153, 0.35);
  color: #C9DED4;
}
.author-card.theme-blackgreen:hover { border-color: rgba(52, 211, 153, 0.62); }
.author-card.theme-blackgreen::after { background: rgba(52, 211, 153, 0.07); }
.author-card.theme-blackgreen .card-number-bar { background: #34D399; border-bottom: none; }
.author-card.theme-blackgreen .card-number { color: #0A0F0C; }
.author-card.theme-blackgreen .card-name { color: #F0FBF6; }
.author-card.theme-blackgreen .card-name-en { color: #6FA892; }
.author-card.theme-blackgreen .card-desc { color: #C9DED4; }
.author-card.theme-blackgreen .card-avatar-area { background: #15241D; border-color: rgba(52,211,153,0.5); }
.author-card.theme-blackgreen .card-tag { background: rgba(52,211,153,0.12); color: #6EE7B7; }
.author-card.theme-blackgreen .card-rank-badge.rank-A { background: #34D399; color: #0A0F0C; border: 1px solid #34D399; }

.empty-state-block { padding: clamp(40px, 8vh, 80px) 20px; text-align: center; color: var(--text-muted); grid-column: 1 / -1; }
.empty-state-icon { font-family: 'Playfair Display', serif; font-size: clamp(48px, 8vw, 72px); font-style: italic; color: var(--blue-deep); margin-bottom: 12px; opacity: 0.5; }
.empty-state-title { font-family: 'Noto Serif SC', serif; font-size: clamp(16px, 2vw, 20px); font-weight: 500; color: var(--text-body); margin-bottom: 6px; }
.empty-state-sub { font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; }

.mobile-header { display: none; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
.mobile-menu-btn {
  width: 42px; height: 42px;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius-hard);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0;
}
.mobile-menu-btn span { width: 16px; height: 2px; background: var(--blue-deep); border-radius: 2px; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.32); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-smooth); }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* ============================================
   详情页 DETAIL v2（作者档案 · 编辑式非对称排版）
   左 30% / 右 70% · 64px 呼吸留白 · 纯色块 · 毛玻璃
   ============================================ */
.detail-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  padding: clamp(56px, 6vh, 88px) clamp(14px, 4vw, 80px) clamp(40px, 5vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  gap: 64px;
  align-items: start;
  overflow: hidden;
}

.detail-back {
  position: fixed; top: 16px; left: clamp(12px, 2vw, 32px);
  padding: 10px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-body); letter-spacing: 0.08em;
  z-index: 50; transition: all .3s var(--ease-spring); white-space: nowrap;
  box-shadow: var(--glass-shadow);
}
.detail-back:hover { transform: translateY(-2px); background: var(--blue-pale); color: var(--blue-deep); }

/* 左栏 */
.detail-side { display: flex; flex-direction: column; gap: clamp(16px, 2vh, 24px); min-width: 0; }

.detail-avatar-block {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05), var(--shadow-soft);
}
.detail-avatar-block img { width: 100%; height: 100%; object-fit: cover; }
.detail-avatar-mono {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(40px, 6vw, 72px); color: var(--blue-deep); background: var(--blue-pale);
}
.detail-id-chip {
  position: absolute; top: 14px; left: 14px;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 4px;
  background: var(--blue-deep); color: var(--white-pure);
  white-space: nowrap;
}
body:not(.blackgold):not(.blackyellow) .detail-id-chip { color: var(--white-pure); }

.detail-seal {
  align-self: flex-start;
  padding: 7px 16px;
  border: 1px solid var(--divider-strong); border-radius: 4px;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-deep); white-space: nowrap;
  transform: rotate(-2deg);
}

.detail-info-list { display: flex; flex-direction: column; }
.detail-info-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.detail-info-label { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.detail-info-value { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 14px; font-weight: 500; color: var(--text-ink); line-height: 1.6; word-break: break-word; }

.detail-links { display: flex; flex-direction: column; gap: 6px; }
.detail-link {
  padding: 10px 13px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 4px;
  font-size: 12px; font-weight: 500; color: var(--blue-deep);
  display: flex; justify-content: space-between; align-items: center;
  transition: all .3s var(--ease-spring); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-link:hover { transform: translateX(4px); background: var(--blue-pale); }

/* 右栏 */
.detail-main { min-width: 0; }
.detail-head {
  position: relative;
  padding-bottom: clamp(20px, 3vh, 36px);
  border-bottom: 1px solid var(--divider-strong);
  margin-bottom: clamp(22px, 3vh, 40px);
  max-width: 100%; overflow: hidden;
}
/* 大编号水印 · 右下角（简版隐藏） */
.detail-head::after {
  content: attr(data-no);
  position: absolute; right: 0; bottom: -6px;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(96px, 11vw, 168px); line-height: 0.82;
  color: var(--blue-pale);
  pointer-events: none; user-select: none; z-index: 0;
}
body.blackyellow .detail-head::after { display: none; }

.detail-head-topline {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 18px; position: relative; z-index: 1; flex-wrap: wrap;
}
.detail-rank {
  padding: 4px 12px; border-radius: 4px;
  background: var(--blue-pale); color: var(--blue-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
}
.detail-theme-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
}

.detail-title {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 700; color: var(--text-ink);
  letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 6px; position: relative; z-index: 1; word-break: break-word;
}

.detail-en-line {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 12px;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.detail-title-en {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(13px, 1.8vw, 24px); color: var(--blue-deep);
  letter-spacing: -0.02em; text-align: right; word-break: break-word;
}
.detail-no {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; color: var(--text-faint);
  white-space: nowrap;
}

.detail-aliases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; position: relative; z-index: 1; }
.detail-alias-chip {
  padding: 4px 12px; border-radius: 20px;
  background: var(--blue-pale); color: var(--text-muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--divider);
}

.detail-lead {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: clamp(13px, 1.2vw, 16px); line-height: 1.75; color: var(--text-body);
  max-width: 640px; position: relative; z-index: 1;
}

/* 小节标题 —— 编辑式罗马编号 */
.detail-section { margin-bottom: clamp(28px, 4vh, 52px); position: relative; z-index: 1; }
.detail-sec-title {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(18px, 2vw, 28px); font-weight: 600; color: var(--blue-deep);
  padding-bottom: 8px; border-bottom: 1px solid var(--divider);
  margin-bottom: clamp(16px, 2.5vh, 24px);
}
.detail-sec-title .sec-no { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-faint); font-style: normal; }
.detail-sec-title .cn { font-family: 'Noto Serif SC', 'Songti SC', serif; font-style: normal; font-size: 10px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.14em; }

/* 正文 */
.detail-body-text { font-size: 13px; line-height: 1.8; color: var(--text-body); max-width: 640px; }
.detail-body-text p { margin-bottom: 12px; }
.detail-body-text h3 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 15px; font-weight: 700; color: var(--text-ink);
  letter-spacing: -0.02em; margin: 22px 0 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--divider);
}
.detail-body-text ul { margin: 0 0 12px; padding-left: 18px; }
.detail-body-text li { margin-bottom: 4px; }
.detail-body-text strong { color: var(--text-ink); font-weight: 700; }

/* ---------- 账号区（图片优先，缺失回退品牌账号卡） ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}
.account-card {
  position: relative; border-radius: 24px; overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05), var(--shadow-soft);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-smooth);
  min-height: 208px;
  display: flex; flex-direction: column;
  cursor: pointer;
}
/* 高低错落：偶数卡下移（非完美对齐堆叠） */
.account-card:nth-child(even) { margin-top: clamp(10px, 2vh, 18px); }
.account-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow), var(--shadow-lift); }
.account-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.account-brand-row { display: flex; align-items: center; gap: 9px; }
.account-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.account-brand-name { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-ink); }
.account-brand-en { font-size: 9px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-left: auto; }
.account-handle { font-family: 'Playfair Display', 'Noto Serif SC', serif; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; color: var(--text-ink); word-break: break-all; line-height: 1.2; }
.account-note { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.account-plate {
  margin-top: auto; align-self: stretch;
  min-height: 108px;
  border-radius: 24px;
  border: 1px solid;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  position: relative; overflow: hidden;
}
.account-plate-glyph { font-family: 'Playfair Display', 'Noto Serif SC', serif; font-style: italic; font-weight: 700; font-size: 40px; line-height: 1; }
.account-plate-cap { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.account-band { height: 6px; width: 100%; }
.account-shot { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: var(--bg-panel); }

/* ---------- 代表作（高低错落网格） ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}
.work-card {
  position: relative; border-radius: 24px; overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05), var(--shadow-soft);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-smooth);
  margin: 0;
}
/* 高低错落：偶数卡下移 */
.work-card:nth-child(even) { margin-top: clamp(14px, 3vh, 26px); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow), var(--shadow-lift); }
.work-card img { width: 100%; height: auto; display: block; background: var(--bg-panel); }
.work-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 10px 13px; border-top: 1px solid var(--divider);
}
.work-cap-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); }
.work-cap-meta { font-size: 9px; color: var(--text-faint); letter-spacing: 0.08em; white-space: nowrap; }

/* 深色主题的档案表面（毛玻璃覆暗色） */
body.blackgold .detail-avatar-block,
body.blackgold .account-card,
body.blackgold .work-card {
  background: rgba(24, 21, 16, 0.62);
  border-color: rgba(201, 162, 75, 0.34);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), var(--shadow-soft);
}
body.blackyellow .detail-avatar-block,
body.blackyellow .account-card,
body.blackyellow .work-card {
  background: rgba(24, 21, 11, 0.62);
  border-color: rgba(242, 196, 0, 0.34);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), var(--shadow-soft);
}
body.star002 .detail-avatar-block,
body.star002 .account-card,
body.star002 .work-card {
  background: rgba(26, 22, 48, 0.62);
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), var(--shadow-soft);
}
body.star003 .detail-avatar-block,
body.star003 .account-card,
body.star003 .work-card {
  background: rgba(30, 10, 12, 0.62);
  border-color: rgba(229, 72, 77, 0.34);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), var(--shadow-soft);
}

/* ---- 主题级档案细节 ---- */
/* 黑金（001 · 复杂版）：金线上缘 · 双环头像 · 印章 · 水印 */
body.blackgold .detail-head {
  border-top: 1px solid rgba(201, 162, 75, 0.5);
  padding-top: clamp(14px, 2vh, 26px);
}
body.blackgold .detail-head::after { color: rgba(201, 162, 75, 0.10); }
body.blackgold .detail-sec-title { color: #E3C77A; border-bottom-color: rgba(201, 162, 75, 0.26); }
body.blackgold .detail-sec-title .cn { color: rgba(201, 162, 75, 0.62); }
body.blackgold .detail-lead { color: #D7CDB2; }
body.blackgold .detail-avatar-block {
  border: 1px solid rgba(201, 162, 75, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 162, 75, 0.16),
    0 0 0 10px rgba(201, 162, 75, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 26px 56px -22px rgba(0, 0, 0, 0.85);
}
body.blackgold .detail-seal {
  color: #E3C77A; border-color: rgba(201, 162, 75, 0.42);
  background: rgba(201, 162, 75, 0.05); transform: rotate(-3deg);
}
body.blackgold .detail-id-chip { background: #C9A24B; color: #14110A; }
body.blackgold .detail-alias-chip { background: #241F14; color: #C2B187; border-color: rgba(201,162,75,0.24); }
body.blackgold .work-cap-label { color: #E3C77A; }
body.blackgold .work-cap-meta { color: #8E8060; }

/* 黑黄（005 · 简版）：干净无装饰 · 无双环无水印 */
body.blackyellow .detail-head { border-top: none; padding-top: 0; }
body.blackyellow .detail-sec-title { color: #FFD84D; border-bottom-color: rgba(242, 196, 0, 0.22); }
body.blackyellow .detail-sec-title .cn { color: rgba(242, 196, 0, 0.55); }
body.blackyellow .detail-lead { color: #D9CE9F; }
body.blackyellow .detail-seal {
  color: #FFD84D; border-color: rgba(242, 196, 0, 0.4);
  background: rgba(242, 196, 0, 0.05); transform: rotate(-1deg);
}
body.blackyellow .detail-id-chip { background: #F2C400; color: #141008; }
body.blackyellow .detail-alias-chip { background: #241D07; color: #E0C94D; border-color: rgba(242,196,0,0.2); }
body.blackyellow .work-cap-label { color: #FFD84D; }
body.blackyellow .work-cap-meta { color: #8A7C46; }

/* 黑紫（002） */
body.star002 .detail-head { border-top: 1px solid rgba(139, 92, 246, 0.5); padding-top: clamp(14px, 2vh, 26px); }
body.star002 .detail-head::after { color: rgba(139, 92, 246, 0.10); }
body.star002 .detail-sec-title { color: #A78BFA; border-bottom-color: rgba(139, 92, 246, 0.26); }
body.star002 .detail-sec-title .cn { color: rgba(139, 92, 246, 0.62); }
body.star002 .detail-lead { color: #D8D1F2; }
body.star002 .detail-avatar-block {
  border: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.16),
    0 0 0 10px rgba(139, 92, 246, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 26px 56px -22px rgba(0, 0, 0, 0.85);
}
body.star002 .detail-seal { color: #A78BFA; border-color: rgba(139, 92, 246, 0.42); background: rgba(139, 92, 246, 0.05); }
body.star002 .detail-alias-chip { background: #261E46; color: #C0B4EA; border-color: rgba(139,92,246,0.24); }
body.star002 .work-cap-label { color: #A78BFA; }
body.star002 .work-cap-meta { color: #8A82C0; }

/* 黑红（003） */
body.star003 .detail-head { border-top: 1px solid rgba(229, 72, 77, 0.5); padding-top: clamp(14px, 2vh, 26px); }
body.star003 .detail-head::after { color: rgba(229, 72, 77, 0.10); }
body.star003 .detail-sec-title { color: #FF6B6B; border-bottom-color: rgba(229, 72, 77, 0.26); }
body.star003 .detail-sec-title .cn { color: rgba(229, 72, 77, 0.62); }
body.star003 .detail-lead { color: #E9C9C9; }
body.star003 .detail-avatar-block {
  border: 1px solid rgba(229, 72, 77, 0.55);
  box-shadow:
    0 0 0 1px rgba(229, 72, 77, 0.16),
    0 0 0 10px rgba(229, 72, 77, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 26px 56px -22px rgba(0, 0, 0, 0.85);
}
body.star003 .detail-seal { color: #FF6B6B; border-color: rgba(229, 72, 77, 0.42); background: rgba(229, 72, 77, 0.05); }
body.star003 .detail-alias-chip { background: #2A1416; color: #E7B8B8; border-color: rgba(229,72,77,0.24); }
body.star003 .work-cap-label { color: #FF6B6B; }
body.star003 .work-cap-meta { color: #9E6B6B; }

/* 青白（004 · 浅色） */
body.star004 .detail-sec-title { color: #0E828F; border-bottom-color: rgba(20, 153, 168, 0.26); }
body.star004 .detail-sec-title .cn { color: rgba(20, 153, 168, 0.62); }
body.star004 .detail-lead { color: #2E4E54; }
body.star004 .detail-avatar-block {
  border: 1px solid rgba(20, 153, 168, 0.50);
  box-shadow:
    0 0 0 1px rgba(20, 153, 168, 0.14),
    0 0 0 10px rgba(20, 153, 168, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 26px 56px -22px rgba(16, 24, 40, 0.16);
}
body.star004 .detail-seal { color: #0E828F; border-color: rgba(20, 153, 168, 0.42); background: rgba(20, 153, 168, 0.05); }
body.star004 .detail-alias-chip { background: #E1F4F6; color: #0E828F; border-color: rgba(20,153,168,0.24); }
body.star004 .work-cap-label { color: #0E828F; }
body.star004 .work-cap-meta { color: #5F7A81; }

/* 红白（006 · 浅色） */
body.redwhite .detail-sec-title { color: #C23A3F; border-bottom-color: rgba(216, 58, 63, 0.26); }
body.redwhite .detail-sec-title .cn { color: rgba(216, 58, 63, 0.62); }
body.redwhite .detail-lead { color: #4A3030; }
body.redwhite .detail-avatar-block {
  border: 1px solid rgba(216, 58, 63, 0.50);
  box-shadow:
    0 0 0 1px rgba(216, 58, 63, 0.14),
    0 0 0 10px rgba(216, 58, 63, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 26px 56px -22px rgba(16, 24, 40, 0.16);
}
body.redwhite .detail-seal { color: #C23A3F; border-color: rgba(216, 58, 63, 0.42); background: rgba(216, 58, 63, 0.05); }
body.redwhite .detail-alias-chip { background: #FBE9E9; color: #C23A3F; border-color: rgba(216,58,63,0.24); }
body.redwhite .work-cap-label { color: #C23A3F; }
body.redwhite .work-cap-meta { color: #8A6666; }

/* 黑底翠绿（007 · 深色） */
body.blackgreen .detail-sec-title { color: #6EE7B7; border-bottom-color: rgba(52, 211, 153, 0.26); }
body.blackgreen .detail-sec-title .cn { color: rgba(52, 211, 153, 0.62); }
body.blackgreen .detail-lead { color: #C9DED4; }
body.blackgreen .detail-avatar-block {
  border: 1px solid rgba(52, 211, 153, 0.50);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.14),
    0 0 0 10px rgba(52, 211, 153, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 26px 56px -22px rgba(0, 0, 0, 0.6);
}
body.blackgreen .detail-seal { color: #6EE7B7; border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.06); }
body.blackgreen .detail-alias-chip { background: rgba(52,211,153,0.12); color: #6EE7B7; border-color: rgba(52,211,153,0.24); }
body.blackgreen .work-cap-label { color: #6EE7B7; }
body.blackgreen .work-cap-meta { color: #93B3A5; }

/* 轻提示 Toast */
.star-toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 200;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 18px; border-radius: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(20, 24, 33, 0.9); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-smooth), transform .35s var(--ease-spring);
}
.star-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   记录卡片导出（侧边工具坞）
   ============================================ */
.record-studio { display: flex; flex-direction: column; gap: 14px; }
.record-preview-wrap {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-panel);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.record-preview-wrap canvas { max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-lift); }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.record-btn {
  flex: 1 1 auto; min-width: 140px;
  padding: 12px 16px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text-body);
  transition: all .3s var(--ease-spring); text-align: center;
}
.record-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.record-btn.primary { background: #C9A24B; color: #14110A; border-color: #C9A24B; }
.record-btn.primary:hover { background: #E3C77A; }
.record-hint { font-size: 10px; color: var(--text-faint); letter-spacing: 0.04em; line-height: 1.6; }

/* ============================================
   侧边工具坞 DOCK + 面板 PANEL
   ============================================ */
.star-dock {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--shadow-soft);
}
.dock-btn {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-size: 8px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-muted); background: transparent;
  transition: all .3s var(--ease-spring);
}
.dock-btn .dock-glyph { font-size: 15px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; line-height: 1; }
.dock-btn:hover { background: var(--blue-pale); color: var(--blue-deep); transform: translateY(-2px); }
.dock-btn.active { background: var(--blue-deep); color: var(--white-pure); }
.dock-btn.is-light { background: var(--blue-deep); color: var(--white-pure); box-shadow: 0 0 0 1px var(--divider-strong), 0 4px 14px -6px rgba(0,0,0,0.3); }

.star-panel {
  position: fixed; z-index: 90;
  right: 84px; top: 50%; transform: translateY(-50%) translateX(12px);
  width: min(400px, 92vw);
  max-height: min(78vh, 760px);
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(28px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--shadow-lift);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-smooth), transform .35s var(--ease-spring);
}
.star-panel.open { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.star-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--divider); flex-shrink: 0;
}
.star-panel-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; font-weight: 600; color: var(--text-ink); }
.star-panel-title small { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: 9px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.star-panel-close { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-pale); color: var(--blue-deep); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease-smooth); }
.star-panel-close:hover { background: var(--blue-deep); color: var(--white-pure); }
.star-panel-body { padding: 16px; overflow-y: auto; flex: 1; }
.star-panel-body::-webkit-scrollbar { width: 4px; }
.star-panel-body::-webkit-scrollbar-thumb { background: var(--divider-strong); border-radius: 2px; }

/* ---------- AI 对话 ---------- */
.chat-app { display: flex; flex-direction: column; height: min(56vh, 520px); gap: 10px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.chat-log::-webkit-scrollbar { width: 4px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--divider-strong); border-radius: 2px; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.7; word-break: break-word; animation: fadeUp .35s var(--ease-spring) both; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-panel); color: var(--text-body); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--blue-deep); color: var(--white-pure); border-bottom-right-radius: 4px; }
body.blackgold .chat-msg.user { color: #14110A; }
body.blackyellow .chat-msg.user { color: #141008; }
.chat-msg b { color: var(--blue-deep); }
.chat-msg.bot b { color: var(--blue-deep); }
body.blackgold .chat-msg.bot b { color: #E3C77A; }
body.blackyellow .chat-msg.bot b { color: #FFD84D; }
.chat-msg.user b { color: inherit; }
.chat-msg a { text-decoration: underline; }
.chat-msg i { color: var(--text-faint); font-size: 11px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { padding: 6px 11px; border-radius: 18px; font-size: 10.5px; font-weight: 600; color: var(--blue-deep); background: var(--blue-pale); border: 1px solid transparent; transition: all .25s var(--ease-spring); }
.chat-chip:hover { transform: translateY(-2px); border-color: var(--blue-mid); }
.chat-input-row { display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1; padding: 11px 14px; border-radius: 12px; font-size: 13px;
  background: var(--bg-panel); border: 1px solid var(--divider); color: var(--text-ink);
  transition: border-color .25s var(--ease-smooth);
}
.chat-input:focus { border-color: var(--blue-mid); }
.chat-send { padding: 11px 16px; border-radius: 12px; background: var(--blue-deep); color: var(--white-pure); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; transition: all .3s var(--ease-spring); }
.chat-send:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.chat-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.chat-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- 小游戏 ---------- */
.game-app { display: flex; flex-direction: column; gap: 12px; }
.game-tabs { display: flex; gap: 4px; padding: 3px; background: var(--bg-panel); border-radius: var(--radius-hard); }
.game-tab { flex: 1; padding: 8px; font-size: 11px; font-weight: 700; color: var(--text-muted); border-radius: var(--radius-hard); transition: all .25s var(--ease-smooth); }
.game-tab.active { background: var(--white-pure); color: var(--blue-deep); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.game-stage { display: flex; flex-direction: column; gap: 10px; }
.game-hud { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.game-hud .hud-cell { display: flex; align-items: center; gap: 5px; }
.game-hud .hud-cell b { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--blue-deep); }
.game-btn { padding: 8px 14px; border-radius: var(--radius-hard); background: var(--blue-pale); color: var(--blue-deep); font-size: 11px; font-weight: 700; transition: all .25s var(--ease-spring); }
.game-btn:hover { transform: translateY(-2px); }
.game-btn.primary { background: var(--blue-deep); color: var(--white-pure); }

.ms-board { display: grid; gap: 3px; user-select: none; touch-action: manipulation; }
.ms-cell {
  aspect-ratio: 1; border-radius: 5px;
  background: var(--bg-panel); border: 1px solid var(--divider);
  font-size: 13px; font-weight: 700; color: var(--text-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease-smooth);
}
.ms-cell:hover { background: var(--blue-pale); }
.ms-cell.revealed { background: rgba(0,0,0,0.02); border-color: transparent; cursor: default; }
body.blackgold .ms-cell.revealed, body.blackyellow .ms-cell.revealed { background: rgba(255,255,255,0.03); }
.ms-cell.mine { background: #E5484D; color: #fff; }
.ms-cell.flag { color: #C9A24B; }
.ms-cell.n1 { color: #2563EB; } .ms-cell.n2 { color: #16A34A; } .ms-cell.n3 { color: #DC2626; }
.ms-cell.n4 { color: #7C3AED; } .ms-cell.n5 { color: #B45309; } .ms-cell.n6 { color: #0891B2; }

.snake-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.snake-canvas { border-radius: var(--radius-hard); background: var(--bg-panel); border: 1px solid var(--divider); touch-action: none; max-width: 100%; }
.snake-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 6px; justify-content: center; }
.snake-pad button { border-radius: 11px; background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 15px; color: var(--blue-deep); transition: all .2s var(--ease-spring); }
.snake-pad button:active { transform: scale(0.94); background: var(--blue-pale); }
.game-tip { font-size: 10px; color: var(--text-faint); line-height: 1.6; text-align: center; }

/* ============================================
   动画 & 工具类（物理弹性，拒绝 linear / ease-in-out）
   ============================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes aiPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
@keyframes aiSpin { to { transform: rotate(360deg); } }
@keyframes aiDots { 0% { width: 0; } 100% { width: 1.2em; } }

.anim-fade-up { animation: fadeUp .55s var(--ease-spring) both; }
.anim-fade-in { animation: fadeIn .45s var(--ease-smooth) both; }
.anim-scale-in { animation: scaleIn .4s var(--ease-spring) both; }

.delay-1 { animation-delay: .06s; } .delay-2 { animation-delay: .12s; }
.delay-3 { animation-delay: .18s; } .delay-4 { animation-delay: .24s; }
.delay-5 { animation-delay: .30s; } .delay-6 { animation-delay: .36s; }
.delay-7 { animation-delay: .42s; } .delay-8 { animation-delay: .48s; }

.btn-haptic:active { transform: scale(0.97); }
.text-uppercase { text-transform: uppercase; }
.text-italic { font-style: italic; }

/* ---------- 本地神经模型 UI ---------- */
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-mode { display: inline-flex; background: rgba(34, 82, 127, 0.08); border-radius: 10px; padding: 3px; gap: 2px; }
.ai-mode-btn {
  padding: 5px 12px; border-radius: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-muted); transition: all .25s var(--ease-spring);
  white-space: nowrap;
}
.ai-mode-btn.active { background: var(--blue-deep); color: var(--white-pure); box-shadow: 0 2px 8px rgba(34,82,127,.25); }
body.blackgold .ai-mode { background: rgba(201,162,75,.12); }
body.blackgold .ai-mode-btn.active { background: #C9A24B; color: #14110A; box-shadow: 0 2px 8px rgba(201,162,75,.3); }
body.blackyellow .ai-mode { background: rgba(242,196,0,.12); }
body.blackyellow .ai-mode-btn.active { background: #F2C400; color: #141008; box-shadow: 0 2px 8px rgba(242,196,0,.3); }

.ai-status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--text-muted);
  background: rgba(0,0,0,0.025); border-radius: 10px; padding: 7px 10px; line-height: 1.5;
}
body.blackgold .ai-status { background: rgba(201,162,75,.07); color: #B7A87E; }
body.blackyellow .ai-status { background: rgba(242,196,0,.07); color: #C7B76B; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ai-dot.ok { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
.ai-dot.warn { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.16); }
.ai-dot.err { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.16); }
.ai-dot.loading { background: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.16); animation: aiPulse 1.1s var(--ease-smooth) infinite; }
.ai-status-btn {
  margin-left: 2px; padding: 3px 9px; border-radius: 7px; font-size: 9px; font-weight: 700;
  background: var(--blue-deep); color: #fff; letter-spacing: 0.04em;
  transition: transform .2s var(--ease-spring);
}
.ai-status-btn:hover { transform: translateY(-1px); }
body.blackgold .ai-status-btn { background: #C9A24B; color: #14110A; }
body.blackyellow .ai-status-btn { background: #F2C400; color: #141008; }

.ai-typing::after {
  content: '…'; display: inline-block; animation: aiDots 1.2s steps(4, end) infinite;
}

.star-panel-body.mounting { position: relative; min-height: 180px; }
.star-panel-body.mounting::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px;
  border: 3px solid rgba(34,82,127,.18); border-top-color: var(--blue-deep);
  border-radius: 50%; animation: aiSpin .7s var(--ease-smooth) infinite;
}

/* 记录卡片 / AI 面板主题微调 */
body.star002 .chat-msg.user { color: #0A0812; }
body.star002 .chat-msg.bot b { color: #A78BFA; }
body.star002 .ai-mode { background: rgba(139,92,246,.12); }
body.star002 .ai-mode-btn.active { background: #8B5CF6; color: #0A0812; box-shadow: 0 2px 8px rgba(139,92,246,.3); }
body.star002 .ai-status { background: rgba(139,92,246,.07); color: #B5A8E6; }
body.star002 .ai-status-btn { background: #8B5CF6; color: #0A0812; }
body.star002 .record-btn.primary { background: #8B5CF6; color: #0A0812; border-color: #8B5CF6; }
body.star002 .record-btn.primary:hover { background: #A78BFA; }

body.star003 .chat-msg.user { color: #0A0808; }
body.star003 .chat-msg.bot b { color: #FF6B6B; }
body.star003 .ai-mode { background: rgba(229,72,77,.12); }
body.star003 .ai-mode-btn.active { background: #E5484D; color: #0A0808; box-shadow: 0 2px 8px rgba(229,72,77,.3); }
body.star003 .ai-status { background: rgba(229,72,77,.07); color: #DBA2A2; }
body.star003 .ai-status-btn { background: #E5484D; color: #0A0808; }
body.star003 .record-btn.primary { background: #E5484D; color: #0A0808; border-color: #E5484D; }
body.star003 .record-btn.primary:hover { background: #FF6B6B; }

body.star004 .chat-msg.user { color: #0D2B31; }
body.star004 .chat-msg.bot b { color: #0E828F; }
body.star004 .ai-mode { background: rgba(20,153,168,.10); }
body.star004 .ai-mode-btn.active { background: #1499A8; color: #F5FBFB; box-shadow: 0 2px 8px rgba(20,153,168,.28); }
body.star004 .ai-status { background: rgba(20,153,168,.06); color: #4F7B83; }
body.star004 .ai-status-btn { background: #1499A8; color: #F5FBFB; }
body.star004 .record-btn.primary { background: #1499A8; color: #F5FBFB; border-color: #1499A8; }
body.star004 .record-btn.primary:hover { background: #3CC6D6; }

body.blackyellow .record-btn.primary { background: #F2C400; color: #141008; border-color: #F2C400; }
body.blackyellow .record-btn.primary:hover { background: #FFD84D; }

body.redwhite .chat-msg.user { color: #FFFFFF; }
body.redwhite .chat-msg.bot b { color: #C23A3F; }
body.redwhite .ai-mode { background: rgba(216,58,63,.10); }
body.redwhite .ai-mode-btn.active { background: #D83A3F; color: #FFFFFF; box-shadow: 0 2px 8px rgba(216,58,63,.28); }
body.redwhite .ai-status { background: rgba(216,58,63,.06); color: #8A5656; }
body.redwhite .ai-status-btn { background: #D83A3F; color: #FFFFFF; }
body.redwhite .record-btn.primary { background: #D83A3F; color: #FFFFFF; border-color: #D83A3F; }
body.redwhite .record-btn.primary:hover { background: #E85555; }

body.blackgreen .chat-msg.bot b { color: #6EE7B7; }
body.blackgreen .ai-mode { background: rgba(52,211,153,.10); }
body.blackgreen .ai-mode-btn.active { background: #34D399; color: #0A0F0C; box-shadow: 0 2px 8px rgba(52,211,153,.28); }
body.blackgreen .ai-status { background: rgba(52,211,153,.06); color: #93B3A5; }
body.blackgreen .ai-status-btn { background: #34D399; color: #0A0F0C; }
body.blackgreen .record-btn.primary { background: #34D399; color: #0A0F0C; border-color: #34D399; }
body.blackgreen .record-btn.primary:hover { background: #6EE7B7; }

/* ============================================
   亮光模式（黑底主题翻白底，保留主色）
   ============================================ */
body.blackgold.light {
  --bg-base: #FFFFFF; --bg-warm: #FBFAF6; --bg-panel: #F2EFE6;
  --blue-pale: #F7F3E8; --blue-soft: #EFE7D4; --blue-mid: #C9B379;
  --blue-deep: #C9A24B; --blue-accent: #B08A2E;
  --text-ink: #211A0C; --text-body: #4A412F; --text-muted: #7A6F52; --text-faint: #A99D7E;
  --white-pure: #FFFFFF;
  --divider: rgba(201,162,75,0.20); --divider-strong: rgba(201,162,75,0.38);
  --glass-bg: rgba(255,255,255,0.60); --glass-border: rgba(255,255,255,0.85);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.blackgold.light .detail-avatar-block {
  background: #F6F3EB; border-color: rgba(201,162,75,0.35);
  box-shadow: 0 0 0 1px rgba(201,162,75,0.14), 0 0 0 10px rgba(201,162,75,0.04), inset 0 -1px 0 rgba(0,0,0,0.05), 0 26px 56px -22px rgba(16,24,40,0.16);
}
body.blackgold.light .work-card, body.blackgold.light .account-card { background: rgba(255,255,255,0.75); }
body.blackgold.light .detail-alias-chip { background: #F2EEE3; color: #6B5F40; border-color: rgba(201,162,75,0.24); }
body.blackgold.light .detail-seal { background: rgba(201,162,75,0.06); }
body.blackgold.light .detail-back:hover { background: #EFE9D8; }
body.blackgold.light .ai-status { background: rgba(201,162,75,0.08); color: #6B5F40; }
body.blackgold.light .ai-mode { background: rgba(201,162,75,0.08); }
body.blackgold.light .chat-msg.user { color: #211A0C; }
body.blackgold.light .chat-msg.bot { color: #4A412F; }
body.blackgold.light .chat-msg.bot b { color: #B08A2E; }

body.blackyellow.light {
  --bg-base: #FFFFFF; --bg-warm: #FDFBF2; --bg-panel: #F4F0DD;
  --blue-pale: #FAF3D8; --blue-soft: #F2E6B8; --blue-mid: #CBB63C;
  --blue-deep: #E3B800; --blue-accent: #D4A900;
  --text-ink: #221B04; --text-body: #4A4128; --text-muted: #7A6F4A; --text-faint: #ABA07C;
  --white-pure: #FFFFFF;
  --divider: rgba(227,184,0,0.20); --divider-strong: rgba(227,184,0,0.38);
  --glass-bg: rgba(255,255,255,0.60); --glass-border: rgba(255,255,255,0.85);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.blackyellow.light .detail-avatar-block {
  background: #FAF6E6; border-color: rgba(227,184,0,0.35);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05), 0 26px 56px -22px rgba(16,24,40,0.16);
}
body.blackyellow.light .work-card, body.blackyellow.light .account-card { background: rgba(255,255,255,0.75); }
body.blackyellow.light .detail-alias-chip { background: #F4EECB; color: #6B5F2A; border-color: rgba(227,184,0,0.24); }
body.blackyellow.light .detail-seal { background: rgba(227,184,0,0.06); }
body.blackyellow.light .detail-back:hover { background: #F1EAC4; }
body.blackyellow.light .ai-status { background: rgba(227,184,0,0.08); color: #6B5F2A; }
body.blackyellow.light .ai-mode { background: rgba(227,184,0,0.08); }
body.blackyellow.light .chat-msg.user { color: #221B04; }
body.blackyellow.light .chat-msg.bot { color: #4A4128; }
body.blackyellow.light .chat-msg.bot b { color: #D4A900; }

body.star002.light {
  --bg-base: #FFFFFF; --bg-warm: #F8F6FC; --bg-panel: #EFEBF8;
  --blue-pale: #F0ECFB; --blue-soft: #E4DCF7; --blue-mid: #9F86E8;
  --blue-deep: #8B5CF6; --blue-accent: #7C4CE8;
  --text-ink: #241A3A; --text-body: #42385F; --text-muted: #6F6492; --text-faint: #A197BD;
  --white-pure: #FFFFFF;
  --divider: rgba(139,92,246,0.20); --divider-strong: rgba(139,92,246,0.38);
  --glass-bg: rgba(255,255,255,0.60); --glass-border: rgba(255,255,255,0.85);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.star002.light .detail-avatar-block {
  background: #F4F1FC; border-color: rgba(139,92,246,0.35);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.14), 0 0 0 10px rgba(139,92,246,0.04), inset 0 -1px 0 rgba(0,0,0,0.05), 0 26px 56px -22px rgba(16,24,40,0.16);
}
body.star002.light .work-card, body.star002.light .account-card { background: rgba(255,255,255,0.75); }
body.star002.light .detail-alias-chip { background: #EFEBF8; color: #5A4E8C; border-color: rgba(139,92,246,0.24); }
body.star002.light .detail-seal { background: rgba(139,92,246,0.06); }
body.star002.light .detail-back:hover { background: #E9E3F7; }
body.star002.light .ai-status { background: rgba(139,92,246,0.08); color: #5A4E8C; }
body.star002.light .ai-mode { background: rgba(139,92,246,0.08); }
body.star002.light .chat-msg.user { color: #241A3A; }
body.star002.light .chat-msg.bot { color: #42385F; }
body.star002.light .chat-msg.bot b { color: #7C4CE8; }

body.star003.light {
  --bg-base: #FFFFFF; --bg-warm: #FBF7F7; --bg-panel: #F7EDED;
  --blue-pale: #FBECEC; --blue-soft: #F7DADA; --blue-mid: #E0888B;
  --blue-deep: #E5484D; --blue-accent: #FF6B6B;
  --text-ink: #2A1212; --text-body: #4A3A3A; --text-muted: #8A6A6A; --text-faint: #B59C9C;
  --white-pure: #FFFFFF;
  --divider: rgba(229,72,77,0.20); --divider-strong: rgba(229,72,77,0.38);
  --glass-bg: rgba(255,255,255,0.60); --glass-border: rgba(255,255,255,0.85);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  --shadow-soft: 0 1px 2px rgba(16,24,40,0.05), 0 14px 34px -16px rgba(16,24,40,0.16);
  --shadow-lift: 0 2px 6px rgba(16,24,40,0.06), 0 28px 60px -22px rgba(16,24,40,0.20);
}
body.star003.light .detail-avatar-block {
  background: #FBF4F4; border-color: rgba(229,72,77,0.35);
  box-shadow: 0 0 0 1px rgba(229,72,77,0.14), 0 0 0 10px rgba(229,72,77,0.04), inset 0 -1px 0 rgba(0,0,0,0.05), 0 26px 56px -22px rgba(16,24,40,0.16);
}
body.star003.light .work-card, body.star003.light .account-card { background: rgba(255,255,255,0.75); }
body.star003.light .detail-alias-chip { background: #F7EDED; color: #8A5255; border-color: rgba(229,72,77,0.24); }
body.star003.light .detail-seal { background: rgba(229,72,77,0.06); }
body.star003.light .detail-back:hover { background: #F5E2E2; }
body.star003.light .ai-status { background: rgba(229,72,77,0.08); color: #8A5255; }
body.star003.light .ai-mode { background: rgba(229,72,77,0.08); }
body.star003.light .chat-msg.user { color: #2A1212; }
body.star003.light .chat-msg.bot { color: #4A3A3A; }
body.star003.light .chat-msg.bot b { color: #C23A3F; }

/* ============================================
   响应式
   ============================================ */
@media (min-width: 1440px) {
  .landing { padding-left: 96px; padding-right: 96px; }
  .browse-layout { max-width: var(--max-content); margin: 0 auto; border-left: 1px solid var(--divider); border-right: 1px solid var(--divider); }
  .section-title { font-size: 28px; }
}

@media (max-width: 900px) {
  body::before { width: 190px; height: 190px; top: -50px; right: -40px; }
  body::after { width: 160px; height: 160px; bottom: -70px; left: -60px; }

  .landing { padding: 20px 16px 16px; }
  .landing-top { padding-bottom: 14px; }
  .landing-nav { display: none; }
  .landing-logo img { width: 30px; height: 30px; }
  .landing-logo-text { font-size: 18px; }
  .landing-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .landing-hero-left { padding-right: 0; }
  .landing-hero-left::after { display: none; }
  .landing-hero-right { align-items: flex-start; text-align: left; }
  .landing-hero-cn-title { font-size: 38px; }
  .landing-hero-en-title { font-size: 48px; }
  .landing-enter-wrap { padding-top: 32px; justify-content: center; }
  .btn-enter { padding: 14px 26px; font-size: 11px; }
  .landing-footer { margin-top: 36px; flex-direction: column; gap: 14px; align-items: flex-start; }
  .landing-footer-stats { gap: 22px; }
  .landing-stat-num { font-size: 20px; }

  .browse-layout { grid-template-columns: 1fr; max-width: 100%; }

  .sidebar {
    position: fixed; top: 0; left: 0;
    width: 84%; max-width: 320px;
    height: 100vh; height: 100dvh; z-index: 100;
    transform: translateX(-100%);
    transition: transform .4s var(--ease-spring);
    padding: 60px 16px 24px;
    box-shadow: 8px 0 30px rgba(0,0,0,0.12);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; align-items: center; justify-content: center; }

  .main-area { padding: 14px 12px; gap: 16px; }
  .mobile-header { display: flex; justify-content: space-between; align-items: center; }

  .search-bar { flex-wrap: wrap; padding: 8px; gap: 6px; }
  .search-type-select { width: 100%; justify-content: space-between; order: 2; }
  .search-type-btn { flex: 1; text-align: center; padding: 8px 4px; font-size: 10px; }
  .search-input { width: 100%; order: 1; padding: 8px 2px; font-size: 15px; }
  .search-submit { order: 3; width: 100%; padding: 12px; font-size: 12px; }

  .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-tab { white-space: nowrap; padding: 8px 14px; font-size: 11px; }

  .section-header { grid-template-columns: 1fr; gap: 6px; padding-bottom: 12px; }
  .section-title { white-space: normal; }
  .section-meta { text-align: left; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }

  /* 详情页移动端 */
  .detail-wrap { grid-template-columns: 1fr; gap: 28px; padding: 64px 16px 32px; }
  .detail-side { order: -1; }
  .detail-avatar-block { max-width: 220px; margin: 0 auto; }
  .detail-title { font-size: 34px; }
  .detail-head::after { font-size: 88px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even), .account-card:nth-child(even) { margin-top: 10px; }
  .account-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .account-card { min-height: 168px; }

  /* 工具坞底部横排 + 面板全屏上滑 */
  .star-dock {
    top: auto; bottom: 14px; left: 50%; right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px;
    border-radius: 18px;
  }
  .dock-btn { width: 52px; height: 48px; }
  .star-panel {
    right: 0; left: 0; bottom: 0; top: auto;
    width: 100%; max-height: 82vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }
  .star-panel.open { transform: translateY(0); }
  .chat-app { height: min(58vh, 560px); }
}

@media (max-width: 380px) {
  .landing-hero-cn-title { font-size: 32px; }
  .landing-hero-en-title { font-size: 40px; }
  .landing-hero-en-sub { display: none; }
  .btn-enter { padding: 12px 20px; font-size: 10px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .account-grid { grid-template-columns: 1fr; }
}
