/* ============================================================
   NOVA 社区 · 视觉系统
   暗色（默认）/ 亮色双主题 · 极光青强调 · 三栏信息架构
   ============================================================ */

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --speed: 0.22s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --topbar-h: 62px;
}

:root[data-theme="dark"] {
  --bg: #07090d;
  --bg-soft: #0a0e14;
  --surface: #0d1219;
  --surface-2: #131a24;
  --surface-3: #19212d;
  --border: rgba(255, 255, 255, 0.072);
  --border-strong: rgba(255, 255, 255, 0.145);
  --text: #e8eef6;
  --text-2: #a8b5c7;
  --muted: #6f7e92;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-ink: #04222a;
  --accent-soft: rgba(34, 211, 238, 0.11);
  --green: #34d399;
  --amber: #f5b544;
  --pink: #f472b6;
  --danger: #fb7185;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --glass: rgba(7, 10, 15, 0.74);
  --hero-a: rgba(34, 211, 238, 0.16);
  --hero-b: rgba(52, 211, 153, 0.1);
  --hero-c: rgba(245, 181, 68, 0.08);
}

:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-soft: #fbfcfe;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #eceff4;
  --border: rgba(15, 30, 50, 0.09);
  --border-strong: rgba(15, 30, 50, 0.18);
  --text: #101826;
  --text-2: #45556a;
  --muted: #7a8798;
  --accent: #0891b2;
  --accent-2: #08a8c9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 145, 178, 0.09);
  --green: #059669;
  --amber: #b7791f;
  --pink: #db2777;
  --danger: #e11d48;
  --shadow: 0 18px 44px -22px rgba(20, 40, 70, 0.35);
  --shadow-sm: 0 8px 22px -14px rgba(20, 40, 70, 0.28);
  --glass: rgba(252, 253, 255, 0.78);
  --hero-a: rgba(8, 145, 178, 0.12);
  --hero-b: rgba(5, 150, 105, 0.08);
  --hero-c: rgba(183, 121, 31, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 背景光晕 ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--hero-a), transparent 62%),
    radial-gradient(760px 460px at 88% -12%, var(--hero-b), transparent 60%),
    radial-gradient(600px 500px at 50% 108%, var(--hero-c), transparent 65%);
  opacity: 0.9;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.03));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, 0.5);
}
.brand-mark svg { width: 25px; height: 25px; stroke-width: 1.5; }
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.brand-cn {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.searchbox {
  position: relative;
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.searchbox:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-ico { color: var(--muted); width: 17px; height: 17px; }
#search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
}
#search-input::placeholder { color: var(--muted); }
#search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.5;
}
.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}
.search-drop.open { display: block; animation: fadeUp 0.18s var(--ease); }
.sr-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.sr-item:hover { background: var(--surface-2); }
.sr-item .sr-title { font-size: 13.5px; font-weight: 600; }
.sr-item .sr-sub { font-size: 12px; color: var(--muted); }
.sr-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.online-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s infinite;
}
.online-label { color: var(--muted); font-size: 11px; }

.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-2);
  transition: all var(--speed) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #04222a;
  box-shadow: 0 6px 20px -8px rgba(34, 211, 238, 0.65);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #8af1fd, var(--accent-2));
  box-shadow: 0 10px 26px -8px rgba(34, 211, 238, 0.8);
}
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.08); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

.badge-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
}

.avatar-btn {
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

/* ---------- 头像 ---------- */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #04222a;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow: hidden;
  flex: none;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-24 { width: 24px; height: 24px; font-size: 11px; border-width: 1px; }
.avatar-32 { width: 32px; height: 32px; font-size: 13px; }
.avatar-44 { width: 44px; height: 44px; font-size: 17px; }
.avatar-64 { width: 64px; height: 64px; font-size: 24px; }
.avatar-88 { width: 88px; height: 88px; font-size: 32px; }
.avatar-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }

/* ---------- 布局 ---------- */
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 306px;
  gap: 28px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 28px 90px;
  align-items: start;
}

.rail-left, .rail-right {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow-y: auto;
  padding-bottom: 24px;
}
.rail-left::-webkit-scrollbar, .rail-right::-webkit-scrollbar { width: 6px; }

/* 侧栏导航 */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--speed) var(--ease);
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; opacity: 0.85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent 90%);
  color: var(--text);
  font-weight: 650;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 6px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.mini-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
}
.mini-btn:hover { color: var(--accent); border-color: var(--accent); }

.cat-nav .nav-item { height: 38px; gap: 10px; font-size: 13px; }
.cat-ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: none;
}
.cat-count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-item.active .cat-ico { border-color: currentColor; }
.cat-follow {
  margin-left: auto; flex: none; width: 20px; height: 20px;
  display: grid; place-items: center; border: none; background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer; border-radius: 6px; opacity: .5;
}
.cat-follow:hover { opacity: 1; color: var(--accent); }
.cat-follow.on { opacity: 1; color: var(--amber); }
.btn-sm.on { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.rail-foot { margin-top: 26px; padding: 14px 12px; border-top: 1px solid var(--border); }
.theme-switch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
}
.theme-switch:hover { border-color: var(--border-strong); }
.theme-ico { color: var(--muted); display: inline-flex; }
.theme-ico svg { width: 15px; height: 15px; }
.theme-track {
  margin-left: auto;
  width: 32px; height: 18px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--speed);
}
.theme-track i {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--speed) var(--ease);
}
:root[data-theme="light"] .theme-track i { transform: translateX(14px); }
.theme-label { font-size: 11.5px; color: var(--muted); }
.rail-version {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.rail-version a:hover { color: var(--accent); }

/* ---------- 右栏卡片 ---------- */
.rail-right { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.side-head svg { width: 15px; height: 15px; color: var(--accent); }

.pulse-row { display: flex; align-items: flex-end; justify-content: space-between; }
.pulse-big {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pulse-big small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.pulse-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.pulse-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.pulse-bars i {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.12));
  min-height: 3px;
  animation: barIn 0.6s var(--ease) backwards;
}

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background var(--speed);
}
.rank-item:hover { background: var(--surface-2); }
.rank-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  width: 16px;
  flex: none;
  text-align: center;
  color: var(--muted);
  padding-top: 2px;
}
.rank-no.top { color: var(--accent); }
.rank-body { min-width: 0; }
.rank-title {
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud .tag:hover { border-color: var(--accent); color: var(--accent); }

.newbie-row { display: flex; flex-wrap: wrap; gap: 8px; }
.newbie { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); }
.newbie:hover { color: var(--accent); }

.side-tip {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 2px 2px 0;
}
.kbd-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kbd-row span {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text-2);
}

/* ---------- 通用页面元素 ---------- */
.view { animation: pageIn 0.32s var(--ease); }
.page-head { margin: 2px 0 20px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.ann-banner { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ann-item {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; background: var(--surface-2);
}
.ann-item.pinned { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ann-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.ann-ico svg { width: 18px; height: 18px; }
.ann-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ann-body b { font-size: 14px; font-weight: 700; }
.ann-body span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.ann-close {
  flex: 0 0 26px; width: 26px; height: 26px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer;
}
.ann-close:hover { background: var(--surface-3, var(--surface)); color: var(--text); }

.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  padding: 34px 34px 30px;
  margin-bottom: 24px;
  background:
    radial-gradient(120% 160% at 8% -20%, rgba(34, 211, 238, 0.2), transparent 55%),
    radial-gradient(90% 140% at 96% 0%, rgba(52, 211, 153, 0.13), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.hero-copy { max-width: 590px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent), var(--green) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.8; max-width: 520px; margin: 0; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; }
.hero-stat .n {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.hero-stat .l { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  transition: all var(--speed) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }
.tab svg { width: 13px; height: 13px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.select-wrap { position: relative; }
select.sel {
  appearance: none;
  height: 34px;
  padding: 0 30px 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
  outline: none;
}
select.sel:focus { border-color: var(--accent); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 11px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- 主题卡片 ---------- */
.topic-list { display: flex; flex-direction: column; gap: 12px; }
.topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed), background var(--speed);
  animation: fadeUp 0.4s var(--ease) backwards;
  cursor: pointer;
  overflow: hidden;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(34, 211, 238, 0.12) inset;
}
.topic-card::before {
  content: "";
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--speed);
}
.topic-card:hover::before { opacity: 1; }
.tc-main { min-width: 0; }
.tc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tc-title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--speed);
}
.topic-card:hover .tc-title { color: var(--accent-2); }
.tc-excerpt {
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.62;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.tc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tc-meta .sep { opacity: 0.5; }
.tc-cat { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.tc-cat i {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.tc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-width: 64px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.tc-stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tc-stat svg { width: 14px; height: 14px; opacity: 0.7; }
.tc-heat {
  font-size: 10.5px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tc-avatar { align-self: flex-start; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10.5px;
  white-space: nowrap;
  transition: all var(--speed);
  cursor: pointer;
}
.tag::before { content: "#"; opacity: 0.55; margin-right: 2px; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.chip-amber { background: rgba(245, 181, 68, 0.14); color: var(--amber); border: 1px solid rgba(245, 181, 68, 0.3); }
.chip-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.28); }
.chip-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip-danger { background: rgba(251, 113, 133, 0.12); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.3); }

/* 骨架屏 */
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}
.sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}
.sk-avatar { width: 42px; height: 42px; border-radius: 50%; }
.sk-line { height: 11px; margin-bottom: 9px; }
.sk-line.w60 { width: 60%; }
.sk-line.w90 { width: 90%; }
.sk-line.w35 { width: 35%; }

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty svg { width: 32px; height: 32px; margin-bottom: 10px; opacity: 0.6; }
.empty .empty-title { font-size: 15px; color: var(--text-2); font-weight: 600; }
.empty .empty-sub { font-size: 12.5px; margin-top: 5px; }

.load-sentinel { padding: 22px; text-align: center; font-size: 12px; color: var(--muted); }
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 8px;
}

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.topic-hero {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(175deg, var(--surface-2), var(--surface) 60%);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-sm);
}
.topic-hero .chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.topic-h1 {
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 16px;
}
.topic-by { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.topic-by .who { display: flex; flex-direction: column; gap: 1px; }
.topic-by .who .name { font-weight: 650; font-size: 13.5px; }
.topic-by .who .sub { font-size: 11px; color: var(--muted); }
.topic-by .spacer { flex: 1; }
.topic-tools { display: flex; gap: 6px; }

.prose {
  font-size: 14.6px;
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3 { margin: 24px 0 10px; line-height: 1.4; }
.prose h2 { font-size: 19px; }
.prose h3 { font-size: 16.5px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(34, 211, 238, 0.35); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 5px;
}
.prose pre {
  background: #05080c;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin: 16px 0;
}
.prose pre .code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.prose pre .code-head::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.prose pre code {
  display: block;
  padding: 15px 16px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  font-size: 12.8px;
  line-height: 1.7;
  color: #d6e6f2;
}
.prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
}
.prose ul, .prose ol { margin: 10px 0 14px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--border); margin: 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.prose .mention { color: var(--accent); font-weight: 600; }

.topic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--speed) var(--ease);
}
.action-btn:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.action-btn.on { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); background: var(--accent-soft); }
.action-btn.on svg { animation: pop 0.4s var(--ease); }
.action-btn svg { width: 15px; height: 15px; }
.action-btn.like.on { color: var(--pink); border-color: rgba(244, 114, 182, 0.4); background: rgba(244, 114, 182, 0.1); }

/* 楼层 */
.replies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 12px;
  flex-wrap: wrap;
}
.replies-head h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 5px; }
.replies-head .r-count { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.replies-tools { display: flex; gap: 7px; }

.post {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color var(--speed), background var(--speed);
  animation: fadeUp 0.32s var(--ease) backwards;
}
.post:hover { border-color: var(--border-strong); }
.post.op { background: linear-gradient(180deg, var(--surface), var(--bg-soft)); }
.post-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.post-head .p-name { font-weight: 650; font-size: 13px; }
.post-head .p-role {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.post-head .p-time { font-size: 11px; color: var(--muted); }
.post-head .floor-no { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-head .edit-mark { font-size: 10.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; line-height: 16px; }
.post-quote {
  border-left: 2px solid var(--border-strong);
  padding: 6px 10px;
  margin: 0 0 8px;
  border-radius: 0 7px 7px 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.post-body { font-size: 14px; line-height: 1.78; word-break: break-word; }
.post-actions { display: flex; gap: 5px; margin-top: 10px; opacity: 0.72; transition: opacity var(--speed); }
.post:hover .post-actions { opacity: 1; }
.p-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: all var(--speed);
}
.p-action:hover { background: var(--surface-2); color: var(--text); }
.p-action.on { color: var(--pink); }
.p-action svg { width: 13px; height: 13px; }

/* 编辑器 */
.editor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.editor-head .eh-left { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; }
.editor-head .eh-left .avatar { width: 26px; height: 26px; font-size: 11px; }
.editor-tools { display: flex; gap: 2px; padding: 7px 9px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ed-tool {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.ed-tool:hover { background: var(--surface-2); color: var(--text); }
.ed-tool svg { width: 15px; height: 15px; }
.editor-main { position: relative; }
.editor-textarea {
  width: 100%;
  min-height: 168px;
  max-height: 420px;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.editor-textarea::placeholder { color: var(--muted); }
.editor-preview {
  min-height: 168px;
  padding: 15px 16px;
  background: var(--bg-soft);
  display: none;
}
.editor-preview.on { display: block; }
.editor-textarea.hide { display: none; }
.editor-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.editor-foot .hint { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.editor-foot .hint svg { width: 13px; height: 13px; }
.editor-foot .spacer { flex: 1; }
.quote-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  font-size: 11.5px;
  color: var(--accent);
}
.quote-preview .qp-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 表单 */
.form-field { margin-bottom: 15px; }
.form-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.form-label .opt { font-weight: 400; color: var(--muted); font-size: 11px; }
.input, .textarea, .select-full {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  outline: 0;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.input:focus, .textarea:focus, .select-full:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.counter { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

/* ---------- 用户页 ---------- */
.profile-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.profile-banner {
  height: 108px;
  background:
    radial-gradient(120% 180% at 15% 0%, rgba(34, 211, 238, 0.35), transparent 60%),
    radial-gradient(100% 160% at 85% 10%, rgba(245, 181, 68, 0.22), transparent 55%),
    linear-gradient(120deg, var(--surface-3), var(--surface-2));
  position: relative;
}
.profile-banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.profile-body { padding: 0 24px 22px; margin-top: -36px; position: relative; }
.profile-top { display: flex; align-items: flex-end; gap: 15px; flex-wrap: wrap; }
.profile-id h2 { margin: 0; font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.profile-id .p-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.profile-actions { margin-left: auto; display: flex; gap: 7px; }
.profile-bio { margin-top: 14px; color: var(--text-2); font-size: 13px; line-height: 1.75; max-width: 640px; }
.profile-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.pstat .n { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pstat .l { font-size: 11px; color: var(--muted); margin-top: 1px; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(245, 181, 68, 0.28);
  background: rgba(245, 181, 68, 0.09);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- 通知 ---------- */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: all var(--speed);
  animation: fadeUp 0.3s var(--ease) backwards;
}
.notif-item.unread { border-color: rgba(34, 211, 238, 0.25); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 35%); }
.notif-item:hover { border-color: var(--border-strong); }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; flex: none; }
.notif-dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.notif-dot.off { background: transparent; }
.notif-body { min-width: 0; flex: 1; }
.notif-text { font-size: 13px; line-height: 1.55; }
.notif-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.notif-type { font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }

/* ---------- 排行榜 ---------- */
.rank-page { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.podium {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  padding: 18px;
}
.podium-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border-radius: 10px;
  transition: background var(--speed);
}
.podium-item:hover { background: var(--surface-2); }
.podium-item .rank-medal {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--mono);
  background: var(--surface-3);
  color: var(--text-2);
  flex: none;
}
.podium-item:nth-child(1) .rank-medal { background: linear-gradient(160deg, #fde68a, #f59e0b); color: #422006; }
.podium-item:nth-child(2) .rank-medal { background: linear-gradient(160deg, #e5e7eb, #9ca3af); color: #1f2937; }
.podium-item:nth-child(3) .rank-medal { background: linear-gradient(160deg, #fcd34d, #b45309); color: #fff7ed; }
.podium-item .p-info { min-width: 0; flex: 1; }
.podium-item .p-info .n { font-weight: 650; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.podium-item .p-info .m { font-size: 11px; color: var(--muted); }
.podium-item .p-rep { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 700; }

/* ---------- 管理后台 ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  padding: 15px 16px;
  position: relative;
  overflow: hidden;
}
.stat-card .s-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.stat-card .s-value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.stat-card .s-tip { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.stat-card .s-glow {
  position: absolute;
  right: -18px; top: -18px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(8px);
}
.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.panel-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.panel-head .ph-sub { font-size: 11px; color: var(--muted); }
.panel-body { padding: 14px 16px; }
.panel-body.flush { padding: 0; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 4px 2px 0; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%;
  max-width: 22px;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.14));
  transition: height 0.5s var(--ease);
  position: relative;
}
.bar:hover { background: linear-gradient(180deg, var(--accent-2), rgba(34, 211, 238, 0.3)); }
.bar-label { font-size: 9.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--surface-2); }
.table-user { display: flex; align-items: center; gap: 8px; }
.table-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-select {
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  padding: 0 4px;
}
.pill-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.pill-btn:hover { color: var(--text); border-color: var(--border-strong); }
.pill-btn.on { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); background: var(--accent-soft); }

.cat-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cat-manage-row:last-child { border-bottom: 0; }
.cat-manage-row .ci { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.cat-manage-row .cn { flex: 1; min-width: 0; }
.cat-manage-row .cn b { font-size: 13px; }
.cat-manage-row .cn small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-manage-row .cactions { display: flex; gap: 5px; }

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 6, 10, 0.66);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease);
}
.modal-card {
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.28s var(--ease);
}
.modal-card.wide { max-width: 600px; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 0;
}
.modal-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.modal-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  flex: none;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-body { padding: 18px 22px 4px; }
.modal-foot { padding: 8px 22px 20px; display: flex; gap: 9px; }
.modal-foot .btn { flex: 1; }
.auth-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 9px; margin: 0 22px 4px; }
.auth-tabs button { flex: 1; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.auth-tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-tip { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 22px 16px; line-height: 1.6; }
.auth-err { color: var(--danger); font-size: 12px; min-height: 18px; margin: -4px 0 6px; }

/* 用户菜单 */
.usermenu {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  right: 22px;
  width: 248px;
  z-index: 100;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 7px;
  animation: fadeUp 0.18s var(--ease);
}
.um-head { display: flex; gap: 10px; align-items: center; padding: 10px 9px 11px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.um-head .n { font-weight: 650; font-size: 13px; }
.um-head .m { font-size: 10.5px; color: var(--muted); }
.um-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.um-item:hover { background: var(--surface-2); color: var(--text); }
.um-item svg { width: 15px; height: 15px; }
.um-sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s var(--ease);
  max-width: 86vw;
}
.toast svg { width: 15px; height: 15px; }
.toast.ok svg { color: var(--green); }
.toast.err svg { color: var(--danger); }
.toast.info svg { color: var(--accent); }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }

/* ---------- 移动端 ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  opacity: 0;
  transition: opacity var(--speed);
}
.nav-backdrop.on { display: block; opacity: 1; }

@media (max-width: 1380px) {
  .shell { grid-template-columns: 226px minmax(0, 1fr) 286px; gap: 22px; padding: 20px 22px 90px; }
  .hero { padding: 30px 26px 26px; }
}

@media (max-width: 1180px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rail-right { display: none; }
  .hero-stats { display: none; }
}

@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 90px; }
  .rail-left {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 55;
    width: 268px;
    max-height: none;
    padding: 20px 16px 30px;
    background: var(--bg-soft);
    border-right: 1px solid var(--border-strong);
    transform: translateX(-102%);
    transition: transform 0.26s var(--ease);
    overflow-y: auto;
  }
  .rail-left.open { transform: translateX(0); }
  .menu-btn { display: grid; }
  .brand-name { display: none; }
  .searchbox { max-width: none; }
  .online-pill { display: none; }
  .btn-publish span { display: none; }
  .btn-publish { width: 38px; padding: 0; }
  .hero-stats { display: flex; }
}

@media (max-width: 640px) {
  .topbar-inner { gap: 10px; padding: 0 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .searchbox { height: 36px; padding: 0 9px; }
  .searchbox kbd { display: none; }
  .topbar-actions { gap: 2px; }
  .online-pill, .icon-btn.bell { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .shell { padding: 12px 12px 80px; gap: 16px; }
  .hero { padding: 22px 18px 20px; border-radius: 18px; }
  .hero-title { font-size: 25px; }
  .hero-desc { font-size: 12.5px; }
  .hero-stats { display: none; }
  .topic-card { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .tc-avatar .avatar { width: 34px; height: 34px; font-size: 14px; }
  .tc-side { display: none; }
  .tc-title { font-size: 14.5px; }
  .tc-excerpt { font-size: 12px; -webkit-line-clamp: 2; }
  .topic-hero { padding: 18px 16px 16px; border-radius: 16px; }
  .topic-h1 { font-size: 21px; }
  .post { grid-template-columns: 34px minmax(0, 1fr); padding: 14px 12px; }
  .post .avatar { width: 32px; height: 32px; font-size: 13px; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .rank-page { grid-template-columns: 1fr; }
  .profile-body { padding: 0 16px 18px; }
  .modal-card { max-height: 94vh; border-radius: 16px; }
  .usermenu { right: 10px; left: 10px; width: auto; }
  .page-title { font-size: 22px; }
  .editor-textarea { min-height: 140px; }
  .form-row { flex-direction: column; gap: 0; }
  .data-table { font-size: 11.5px; }
  .data-table th:nth-child(n+4), .data-table td:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes barIn { from { transform: scaleY(0.1); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   v1.1.0 · 关注 / 私信 / 标签 / 举报 / 移动底栏
   ============================================================ */

.follow-btn.on,
.follow-mini.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: var(--accent-soft);
}
.follow-mini {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; padding: 2px 9px;
  font-size: 11px; font-weight: 600; font-family: inherit;
  color: var(--text-2); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 999px;
  cursor: pointer; vertical-align: 1px;
  transition: color var(--speed), background var(--speed), border-color var(--speed), transform var(--speed);
}
.follow-mini:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.follow-mini.on:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.pstat-link { cursor: pointer; border-radius: 10px; transition: transform var(--speed), opacity var(--speed); }
.pstat-link:hover { transform: translateY(-1px); opacity: 0.82; }
.pstat-link .l { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.pstat-link:hover .l { text-decoration-color: var(--accent); }

.fol-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--border);
}
.fol-row:last-child { border-bottom: 0; }
.fol-row > a { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: var(--text); }
.fol-name { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.fol-name small { font-weight: 400; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.empty-inline { padding: 22px 4px; font-size: 12.5px; color: var(--muted); text-align: center; }

.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.report-reason {
  padding: 7px 13px; font-size: 12.5px; font-family: inherit;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: all var(--speed);
}
.report-reason:hover { border-color: var(--border-strong); color: var(--text); }
.report-reason.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- 私信 ---------- */
.messages-page { animation: pageIn 0.3s var(--ease) both; }
.msg-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  min-height: 620px; height: calc(100vh - 150px); max-height: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.msg-side { display: flex; flex-direction: column; min-width: 0; background: var(--bg-soft); border-right: 1px solid var(--border); }
.msg-side-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 18px 14px; border-bottom: 1px solid var(--border); }
.msg-side-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.msg-side-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.msg-side-head .mini-btn { margin-top: 3px; }
.conv-list { flex: 1; overflow-y: auto; padding: 8px; }
.conv-list::-webkit-scrollbar, .chat-stream::-webkit-scrollbar { width: 6px; }
.conv-list::-webkit-scrollbar-thumb, .chat-stream::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.conv-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 10px; margin-bottom: 3px;
  border-radius: 13px; text-decoration: none; color: var(--text);
  transition: background var(--speed);
}
.conv-row:hover { background: var(--surface-2); }
.conv-row.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.conv-avatar { position: relative; flex: none; line-height: 0; }
.conv-dot {
  position: absolute; top: -4px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: 9.5px; font-style: normal; font-weight: 700;
  color: #fff; background: var(--danger); border-radius: 99px;
  box-shadow: 0 0 0 2px var(--bg-soft);
}
.conv-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.conv-top b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-top time { flex: none; font-size: 10px; color: var(--muted); }
.conv-last { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-last i { font-style: normal; color: var(--text-2); }
.conv-empty { padding: 44px 22px; text-align: center; color: var(--muted); }
.conv-empty svg { width: 38px; height: 38px; opacity: 0.5; margin-bottom: 8px; }
.conv-empty p { margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.conv-empty small { font-size: 11px; line-height: 1.6; display: block; }

.msg-chat { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), transparent); }
.chat-back { display: none; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--text-2); }
.chat-back:hover { background: var(--surface-2); color: var(--text); }
.chat-back svg { width: 17px; height: 17px; }
.chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: var(--text); }
.chat-peer span { min-width: 0; display: flex; flex-direction: column; }
.chat-peer b { font-size: 14px; }
.chat-peer small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-stream { flex: 1; overflow-y: auto; padding: 22px 22px 12px; display: flex; flex-direction: column; gap: 14px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; animation: msgIn 0.22s var(--ease) both; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava { flex: none; line-height: 0; }
.msg-bubble { position: relative; padding: 9px 13px 7px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.msg-row.mine .msg-bubble { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--surface-2)), color-mix(in srgb, var(--accent) 8%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.msg-text { font-size: 13px; line-height: 1.65; word-break: break-word; }
.msg-time { display: block; margin-top: 3px; font-size: 9.5px; color: var(--muted); text-align: right; }
.msg-row.fresh { animation: msgIn 0.3s var(--ease) both, pop 0.35s var(--ease) 0.08s; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); }
.chat-empty h3 { margin: 18px 0 6px; font-size: 17px; color: var(--text-2); font-weight: 600; }
.chat-empty p { margin: 0; font-size: 12px; max-width: 320px; line-height: 1.8; }
.chat-orbit { position: relative; width: 86px; height: 86px; }
.chat-orbit span { position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; animation: spin 9s linear infinite; }
.chat-orbit span:nth-child(2) { inset: 4px; border-color: color-mix(in srgb, var(--accent) 16%, transparent); animation-direction: reverse; animation-duration: 14s; }
.chat-orbit::before, .chat-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.chat-orbit::before { top: 10px; left: 20px; }
.chat-orbit::after { bottom: 12px; right: 18px; background: var(--green); box-shadow: 0 0 14px var(--green); }
.chat-orbit i { position: absolute; inset: 33px; border-radius: 50%; background: var(--accent); opacity: 0.16; }
.chat-compose { padding: 12px 16px 14px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.chat-compose textarea {
  width: 100%; resize: none; min-height: 42px; max-height: 140px;
  padding: 10px 12px; font-family: inherit; font-size: 13px; line-height: 1.6;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; outline: none;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.chat-compose textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-send-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.chat-hint { font-size: 10.5px; color: var(--muted); }
.msg-loading { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }

/* ---------- 标签页 ---------- */
.tag-hero {
  position: relative; overflow: hidden;
  padding: 26px 28px 24px; margin-bottom: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--hero-a), transparent 55%),
    radial-gradient(90% 120% at 100% 20%, var(--hero-b), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.tag-glow { position: absolute; right: -70px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent); opacity: 0.12; filter: blur(50px); pointer-events: none; }
.tag-crumb { display: flex; gap: 7px; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; position: relative; }
.tag-crumb a { color: var(--text-2); text-decoration: none; }
.tag-crumb a:hover { color: var(--accent); }
.tag-hero h1 { position: relative; margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.tag-hero h1 i { font-style: normal; color: var(--accent); margin-right: 3px; text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.tag-hero > p { position: relative; margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }
.tag-related { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.tag-related-label { font-size: 11px; color: var(--muted); margin-right: 2px; }
.related-tag { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.related-tag em { font-style: normal; font-size: 10px; color: var(--muted); background: var(--surface-2); padding: 1px 5px; border-radius: 99px; }
.related-tag:hover em { color: var(--accent); }
.tag-loading { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }

/* ---------- 后台举报 ---------- */
.report-target { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.report-target b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.report-target small { font-size: 10.5px; color: var(--muted); }
.report-reason-tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; background: color-mix(in srgb, var(--amber) 13%, transparent); color: var(--amber); }
.report-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 移动端底栏 ---------- */
.tabbar { display: none; }
@media (max-width: 920px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: 58px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: var(--glass);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .tab-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: 44px; font-size: 10.5px; color: var(--muted); text-decoration: none;
    border: 0; background: none; font-family: inherit; cursor: pointer;
  }
  .tab-item svg { width: 20px; height: 20px; }
  .tab-item.active { color: var(--accent); }
  .tab-item.active svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
  .tab-compose { margin-top: -13px; color: var(--text); }
  .tab-plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 65%, transparent); }
  .tab-plus svg { width: 19px; height: 19px; stroke: var(--accent-ink); }
  .tab-ico-wrap { position: relative; line-height: 0; }
  .tab-badge { position: absolute; top: -5px; right: -9px; min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; font-size: 9px; color: #fff; background: var(--danger); border-radius: 99px; }
  .shell { padding-bottom: 96px !important; }
  .chat-back { display: grid; }
  .msg-layout { grid-template-columns: 1fr; height: calc(100vh - 170px); min-height: 520px; border-radius: 18px; }
  .msg-layout.has-chat .msg-side { display: none; }
  .msg-layout:not(.has-chat) .msg-chat { display: none; }
  .msg-chat { border-left: 0; }
  .chat-stream { padding: 16px 14px 10px; }
  .msg-row { max-width: 86%; }
  .tag-hero { padding: 20px 18px; border-radius: 18px; }
  .tag-hero h1 { font-size: 27px; }
  .msg-side { border-right: 0; }
  .fol-name small { max-width: 170px; }
}
@media (max-width: 640px) {
  .msg-layout { height: calc(100vh - 152px); min-height: 460px; }
  .chat-head { padding: 10px 12px; }
  .chat-compose { padding: 10px 12px 12px; }
  .conv-list { padding: 5px; }
  .conv-row { padding: 10px 8px; }
  .pstat-link .l { font-size: 10px; }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.suggest-list { display: flex; flex-direction: column; gap: 3px; }
.suggest-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--border); }
.suggest-row:last-child { border-bottom: 0; }
.suggest-user { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; color: var(--text); }
.suggest-user span { display: flex; flex-direction: column; min-width: 0; }
.suggest-user b { font-size: 12px; font-weight: 600; }
.suggest-user small { font-size: 10px; color: var(--muted); }
.suggest-row .follow-mini { flex: none; }

.report-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.report-card:last-child { border-bottom: 0; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.report-headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-type { flex: none; padding: 1px 7px; border-radius: 5px; font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.report-type.post { color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); border-color: color-mix(in srgb, var(--pink) 25%, transparent); }
.report-title { font-size: 13px; font-weight: 650; color: var(--text); text-decoration: none; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-title:hover { color: var(--accent); }
.report-status { height: 18px; font-size: 9px; }
.report-excerpt { margin: 0; font-size: 11.5px; color: var(--text-2); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.report-author { color: var(--muted); }
.report-detail { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 7px; padding: 5px 8px; }
.report-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.report-actions { flex: none; display: flex; flex-direction: column; gap: 5px; padding-top: 1px; }
.report-actions .pill-btn { text-align: center; }
@media (max-width: 640px) {
  .report-card { flex-direction: column; gap: 8px; padding: 13px; }
  .report-actions { flex-direction: row; }
  .report-title { max-width: 100%; }
}

.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 320px; }
.table-wrap th { padding: 8px 12px; background: var(--surface-2); font-weight: 650; font-size: 11.5px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.table-wrap td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }

/* ============================================================
   藏宝图 v1.2 · 中国传统色主题
   ============================================================ */
:root[data-palette="zhusha"][data-theme="dark"] {
  --bg:#0d0807; --bg-soft:#120b09; --surface:#17100e; --surface-2:#201612; --surface-3:#2a1c17;
  --border:rgba(255, 224, 208, .075); --border-strong:rgba(255, 224, 208, .16);
  --text:#f5ece7; --text-2:#c4b1a8; --muted:#8f7468;
  --accent:#e05243; --accent-2:#f07b6e; --accent-ink:#230806; --accent-soft:rgba(224, 82, 67, .13);
  --hero-a:rgba(224,82,67,.16); --hero-b:rgba(214,164,79,.08); --hero-c:rgba(120,25,25,.10);
}
:root[data-palette="zhusha"][data-theme="light"] {
  --accent:#b3382d; --accent-2:#c94a3e; --accent-ink:#fff; --accent-soft:rgba(179,56,45,.09);
  --hero-a:rgba(179,56,45,.11); --hero-b:rgba(170,120,35,.07); --hero-c:rgba(120,25,25,.05);
}
:root[data-palette="dailan"][data-theme="dark"] {
  --bg:#070b12; --bg-soft:#0a1019; --surface:#0e1522; --surface-2:#141d2c; --surface-3:#1b2638;
  --border:rgba(208,224,255,.075); --border-strong:rgba(208,224,255,.16);
  --text:#e7eef9; --text-2:#a9bbd4; --muted:#71839c;
  --accent:#4f7bc0; --accent-2:#78a0df; --accent-ink:#05101f; --accent-soft:rgba(79,123,192,.14);
  --hero-a:rgba(79,123,192,.17); --hero-b:rgba(70,95,140,.10); --hero-c:rgba(20,45,90,.12);
}
:root[data-palette="dailan"][data-theme="light"] {
  --accent:#2f5f9e; --accent-2:#3f74b8; --accent-ink:#fff; --accent-soft:rgba(47,95,158,.09);
  --hero-a:rgba(47,95,158,.11); --hero-b:rgba(50,85,130,.06); --hero-c:rgba(30,60,100,.05);
}
:root[data-palette="zhuqing"][data-theme="dark"] {
  --bg:#080d0b; --bg-soft:#0b1210; --surface:#101814; --surface-2:#17221d; --surface-3:#1e2c25;
  --border:rgba(214,255,232,.07); --border-strong:rgba(214,255,232,.15);
  --text:#e9f3ed; --text-2:#adc4b6; --muted:#718c7c;
  --accent:#6fa06f; --accent-2:#92c192; --accent-ink:#05200f; --accent-soft:rgba(111,160,111,.14);
  --hero-a:rgba(111,160,111,.15); --hero-b:rgba(130,180,135,.08); --hero-c:rgba(30,80,50,.10);
}
:root[data-palette="zhuqing"][data-theme="light"] {
  --accent:#4b7d4d; --accent-2:#5c915d; --accent-ink:#fff; --accent-soft:rgba(75,125,77,.09);
  --hero-a:rgba(75,125,77,.11); --hero-b:rgba(90,145,95,.06); --hero-c:rgba(40,80,50,.04);
}
:root[data-palette="tenghuang"][data-theme="dark"] {
  --bg:#0d0b07; --bg-soft:#12100a; --surface:#18140c; --surface-2:#211c10; --surface-3:#2c2515;
  --border:rgba(255,240,205,.075); --border-strong:rgba(255,240,205,.16);
  --text:#f7f1e5; --text-2:#cdbf9f; --muted:#97866a;
  --accent:#e2ae3c; --accent-2:#f0c968; --accent-ink:#241704; --accent-soft:rgba(226,174,60,.13);
  --hero-a:rgba(226,174,60,.15); --hero-b:rgba(190,140,40,.08); --hero-c:rgba(90,60,20,.10);
}
:root[data-palette="tenghuang"][data-theme="light"] {
  --accent:#a97817; --accent-2:#bd8c25; --accent-ink:#fff; --accent-soft:rgba(169,120,23,.09);
  --hero-a:rgba(169,120,23,.10); --hero-b:rgba(150,110,30,.06); --hero-c:rgba(100,70,20,.04);
}
:root[data-palette="yanzhi"][data-theme="dark"] {
  --bg:#0f080b; --bg-soft:#140a0e; --surface:#180f14; --surface-2:#21141b; --surface-3:#2c1b24;
  --border:rgba(255,220,235,.07); --border-strong:rgba(255,220,235,.16);
  --text:#f7edf1; --text-2:#cfb0bf; --muted:#9a7687;
  --accent:#d45f7f; --accent-2:#ea8aa1; --accent-ink:#280715; --accent-soft:rgba(212,95,127,.13);
  --hero-a:rgba(212,95,127,.16); --hero-b:rgba(170,70,100,.08); --hero-c:rgba(100,20,50,.10);
}
:root[data-palette="yanzhi"][data-theme="light"] {
  --accent:#b23b5f; --accent-2:#c85073; --accent-ink:#fff; --accent-soft:rgba(178,59,95,.09);
  --hero-a:rgba(178,59,95,.10); --hero-b:rgba(140,60,85,.06); --hero-c:rgba(100,20,50,.04);
}
:root[data-palette="zitang"][data-theme="dark"] {
  --bg:#0b0810; --bg-soft:#0f0b16; --surface:#14101b; --surface-2:#1b1525; --surface-3:#251d31;
  --border:rgba(235,220,255,.07); --border-strong:rgba(235,220,255,.16);
  --text:#f1ebf8; --text-2:#c4b3d8; --muted:#8f7ba6;
  --accent:#9871c9; --accent-2:#b794e0; --accent-ink:#1b0928; --accent-soft:rgba(152,113,201,.14);
  --hero-a:rgba(152,113,201,.16); --hero-b:rgba(120,80,170,.08); --hero-c:rgba(60,20,100,.10);
}
:root[data-palette="zitang"][data-theme="light"] {
  --accent:#7650a8; --accent-2:#8862b9; --accent-ink:#fff; --accent-soft:rgba(118,80,168,.09);
  --hero-a:rgba(118,80,168,.11); --hero-b:rgba(100,70,130,.06); --hero-c:rgba(60,20,100,.04);
}
:root[data-palette="moyu"][data-theme="dark"] {
  --bg:#080b0c; --bg-soft:#0b0f10; --surface:#0f1415; --surface-2:#161d1f; --surface-3:#1e282a;
  --border:rgba(225,240,245,.07); --border-strong:rgba(225,240,245,.16);
  --text:#eaf0f1; --text-2:#b0bfc3; --muted:#78898d;
  --accent:#8fa6ad; --accent-2:#b2c4c9; --accent-ink:#071416; --accent-soft:rgba(143,166,173,.13);
  --hero-a:rgba(143,166,173,.13); --hero-b:rgba(110,135,140,.08); --hero-c:rgba(40,60,65,.10);
}
:root[data-palette="moyu"][data-theme="light"] {
  --accent:#5d747b; --accent-2:#728b92; --accent-ink:#fff; --accent-soft:rgba(93,116,123,.09);
  --hero-a:rgba(93,116,123,.10); --hero-b:rgba(100,120,125,.05); --hero-c:rgba(45,65,70,.04);
}

/* 品牌与主题入口 */
.brand-cn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  box-shadow: 0 0 24px -8px var(--accent);
  color: var(--accent);
}
.theme-entry { position: relative; }
.theme-entry-dot {
  position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}
.palette-entry { justify-content: flex-start; gap: 8px; }
.palette-entry .theme-ico { display: grid; place-items: center; color: var(--accent); }
.palette-entry .theme-name { flex: 1; text-align: left; font-size: 12px; }
.theme-chevron { color: var(--muted); font-size: 16px; }

/* 右下角发布与合规 */
.float-dock {
  position: fixed; right: 26px; bottom: 26px; z-index: 58;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.fab-publish {
  height: 54px; padding: 0 20px 0 17px; border: 0; border-radius: 27px;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 800; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 14px 34px -10px var(--accent), 0 4px 12px rgba(0,0,0,.18);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.fab-publish svg { width: 20px; height: 20px; stroke-width: 2.2; }
.fab-publish:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 42px -12px var(--accent); }
.fab-publish:active { transform: scale(.98); }
.compliance-chip {
  height: 30px; padding: 0 11px; border-radius: 15px;
  border: 1px solid var(--border-strong); background: var(--glass); backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-2); font-size: 11.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.compliance-chip svg { width: 13px; height: 13px; color: var(--accent); }
.compliance-chip:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 920px) {
  .float-dock { display: none; }
}

/* 主题面板 */
.theme-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.theme-mode-btn {
  height: 42px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--text-2); font-weight: 600;
}
.theme-mode-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.palette-card {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); transition: all var(--speed) var(--ease);
}
.palette-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.palette-card.active { border-color: var(--accent); background: var(--accent-soft); }
.palette-preview {
  width: 34px; height: 34px; border-radius: 10px; flex: none; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px -4px rgba(0,0,0,.4);
}
.palette-preview i {
  position: absolute; left: 7px; right: 7px; bottom: 7px; height: 8px; border-radius: 4px;
  background: rgba(9,12,18,.68);
}
.palette-info { display: flex; flex-direction: column; min-width: 0; }
.palette-info b { font-size: 12.5px; }
.palette-info small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-check { margin-left: auto; color: var(--accent); opacity: 0; }
.palette-check svg { width: 14px; height: 14px; stroke-width: 2.4; }
.palette-card.active .palette-check { opacity: 1; }
.theme-tip { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
@media (max-width: 640px) {
  .palette-grid { grid-template-columns: 1fr; }
  .palette-info small { white-space: normal; }
}

/* 投票 */
.poll-builder {
  margin: 2px 0 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.poll-builder-head { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.poll-builder-head > div { flex: 1; display: flex; flex-direction: column; }
.poll-builder-head b { font-size: 12.5px; }
.poll-builder-head span { font-size: 11px; color: var(--muted); }
.poll-options { padding: 0 15px 14px; }
.poll-opt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poll-opt-no { width: 18px; color: var(--muted); font-size: 11px; font-family: var(--mono); text-align: center; }
.poll-opt-del { width: 30px; height: 30px; border-radius: 8px; }
.poll-opt-del svg { width: 14px; height: 14px; }
.poll-options .btn { margin-top: 2px; }
.poll-hint { margin-top: 9px; font-size: 10.5px; color: var(--muted); }
.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i {
  position: absolute; inset: 0; border-radius: 12px; background: var(--surface-3);
  border: 1px solid var(--border-strong); transition: all var(--speed) var(--ease);
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-2); transition: all var(--speed) var(--ease);
}
.switch input:checked + i { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + i::after { left: 21px; background: var(--accent); }

.poll-card {
  margin-top: 20px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface);
}
.poll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.poll-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.poll-title svg { width: 15px; height: 15px; color: var(--accent); }
.poll-total { font-size: 11px; color: var(--muted); }
.poll-options-list { display: flex; flex-direction: column; gap: 7px; }
.poll-option {
  position: relative; overflow: hidden; width: 100%; min-height: 40px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px; text-align: left; color: var(--text-2); transition: border-color var(--speed);
}
.poll-option:hover { border-color: var(--border-strong); }
.poll-option.mine { border-color: var(--accent); color: var(--text); }
.poll-option:disabled { cursor: default; }
.po-bar {
  position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); border-radius: 9px 0 0 9px;
  pointer-events: none; transition: width .5s var(--ease);
}
.poll-option.mine .po-bar { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.po-text { position: relative; z-index: 1; font-size: 12.5px; }
.po-mine { font-style: normal; margin-left: 6px; color: var(--accent); font-size: 10px; font-weight: 700; }
.po-num { position: relative; z-index: 1; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.po-num small { font-size: 10px; margin-left: 3px; }
.poll-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.poll-voted { color: var(--accent); }

/* 个人动态 */
.profile-tabs {
  display: flex; gap: 4px; margin: 22px 0 12px; border-bottom: 1px solid var(--border);
}
.profile-tabs button {
  position: relative; border: 0; background: none; padding: 10px 14px 12px;
  color: var(--muted); font-weight: 600; font-size: 13px;
}
.profile-tabs button span { margin-left: 5px; font-size: 10px; color: var(--muted); font-weight: 500; }
.profile-tabs button.active { color: var(--text); }
.profile-tabs button.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.reply-activity {
  padding: 15px 17px; margin-bottom: 9px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); cursor: pointer; transition: all var(--speed) var(--ease);
}
.reply-activity:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ra-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 11.5px; }
.ra-head svg { width: 13px; height: 13px; color: var(--accent); }
.ra-head a { color: var(--text); font-weight: 700; }
.ra-floor { font-family: var(--mono); font-size: 10px; }
.reply-activity p { margin: 8px 0 9px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.ra-foot { display: flex; gap: 14px; font-size: 10.5px; color: var(--muted); }

/* 合规中心 */
.legal-hero {
  display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-radius: 18px;
  border: 1px solid var(--border); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
}
.legal-shield {
  width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border-strong);
}
.legal-shield svg { width: 27px; height: 27px; }
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; margin-top: 20px; align-items: start; }
.legal-nav {
  position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 2px;
  padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.legal-nav a { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--text-2); }
.legal-nav a:hover { background: var(--surface-2); color: var(--accent); }
.legal-body { min-width: 0; }
.legal-section {
  padding: 22px 24px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.legal-section h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.legal-section p { margin: 0 0 12px; font-size: 13px; line-height: 1.85; color: var(--text-2); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.legal-info {
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.legal-info span { font-size: 10px; color: var(--muted); }
.legal-info b { font-size: 12px; word-break: break-all; }
.legal-info i { font-style: normal; color: var(--amber); font-weight: 500; }
.legal-list { margin: 8px 0 12px; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.legal-list li { margin-bottom: 5px; }
.legal-list b { color: var(--text); }
.legal-callout {
  padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, transparent); color: var(--text-2); font-size: 12px; line-height: 1.7;
}
.legal-note { font-size: 11.5px !important; color: var(--muted) !important; line-height: 1.8 !important; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
@media (max-width: 920px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 18px; align-items: flex-start; }
  .legal-shield { width: 42px; height: 42px; border-radius: 12px; }
  .legal-section { padding: 17px; }
  .legal-info-grid { grid-template-columns: 1fr; }
  .legal-hero .btn { display: none; }
}

/* ============================================================
   Admin workspace (v1.2)
   ============================================================ */
.admin-head { margin-bottom: 18px; }
.admin-head .page-sub { margin-top: 4px; }
.admin-workspace { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 18px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.admin-side-title { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 700; padding: 4px 8px 8px; }
.admin-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 9px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; transition: .16s; position: relative; }
.admin-nav-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.admin-nav-item:hover { color: var(--text); background: var(--surface-2); }
.admin-nav-item.active { color: var(--accent); background: var(--accent-soft); }
.admin-nav-badge { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--danger, #e05243); color: #fff; font-style: normal; font-size: 9px; font-weight: 700; line-height: 17px; text-align: center; }
.admin-side-foot { margin-top: 10px; border-top: 1px solid var(--border); padding: 10px 9px 3px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.admin-side-foot span { opacity: .7; }
.admin-main { min-width: 0; }
.admin-tab-panel { animation: ad-fade .25s ease; }
@keyframes ad-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.admin-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-panel-head h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; margin: 0 0 3px; }
.admin-panel-head p { margin: 0; font-size: 11.5px; color: var(--muted); }
.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-panel .panel-head { padding: 13px 16px 11px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border-soft); }
.admin-panel .panel-head h3 { font-size: 13px; font-weight: 700; margin: 0; }
.admin-panel .ph-sub { font-size: 10px; color: var(--muted); }
.admin-panel .panel-body { padding: 16px; }
.admin-panel .panel-body.flush { padding: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-todo-card { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; display: grid; gap: 1px; transition: .16s; color: var(--text); }
.admin-todo-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.admin-todo-card span { font-size: 10px; color: var(--muted); font-weight: 600; }
.admin-todo-card b { font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.admin-todo-card small { font-size: 9.5px; color: var(--muted); }
.admin-todo-card.warn { border-color: rgba(224, 82, 67, .35); background: rgba(224, 82, 67, .06); }
.admin-todo-card.warn b { color: var(--danger, #e05243); }
.admin-two-col { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.admin-two-col .admin-panel { height: 100%; }
.chart-meta { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-bottom: 6px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 118px; padding-top: 4px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { width: 100%; max-width: 22px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); min-height: 3px; transition: height .4s ease; }
.bar-label { font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.cat-dist-row { margin-bottom: 10px; }
.cat-dist-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.cat-dist-label span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cat-dist-label b { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.cat-dist-bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cat-dist-bar i { display: block; height: 100%; border-radius: 99px; }
.recent-user-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recent-user { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border-soft); border-radius: 9px; color: var(--text); }
.recent-user:hover { background: var(--surface-2); }
.recent-user span { min-width: 0; display: grid; }
.recent-user b { font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-user small { font-size: 9px; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; }
.admin-topic-table { min-width: 680px; }
.row-deleted { opacity: .62; background: rgba(128, 128, 128, .04); }
.table-status { display: flex; flex-wrap: wrap; gap: 3px; max-width: 120px; }
.table-sub { font-family: var(--font-body); font-size: 10px; color: var(--muted); font-weight: 400; }
.table-num { font-family: var(--font-mono); font-size: 10px; color: var(--muted); line-height: 1.6; white-space: nowrap; }
.table-user { display: flex; align-items: center; gap: 8px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pill-btn.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); font-weight: 700; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-toolbar .input { max-width: 320px; height: 36px; font-size: 12px; }
.admin-toolbar-meta { margin-left: auto; font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }
.admin-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.admin-tip { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 10px 2px 0; }
.admin-settings-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 14px; align-items: start; }
.admin-settings-grid .form-field { margin-bottom: 10px; }
.site-preview-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.site-preview-card > div:nth-child(2) { display: flex; flex-direction: column; margin: 7px 0 10px; }
.site-preview-card b { font-family: var(--font-display); font-size: 17px; }
.site-preview-card #spc-tagline { font-size: 10.5px; color: var(--muted); }
.spc-shield { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.spc-shield svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.spc-lines { display: grid; gap: 4px; font-size: 9.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 9px; }
.spc-lines i { font-style: normal; color: var(--text-2); }
.cat-manage-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.cat-manage-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.cat-manage-row .ci { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; }
.cat-manage-row .cn { flex: 1; display: grid; min-width: 0; }
.cat-manage-row .cn b { font-size: 12px; }
.cat-manage-row .cn small { font-size: 9.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-manage-row .cactions { display: flex; gap: 5px; }
@media (max-width: 980px) {
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; gap: 4px; overflow-x: auto; align-items: center; padding: 7px; }
  .admin-side-title, .admin-side-foot { display: none; }
  .admin-nav-item { width: auto; flex: none; padding: 7px 10px; font-size: 11.5px; }
  .admin-nav-item svg { width: 13px; height: 13px; }
  .admin-nav-item span { white-space: nowrap; }
  .admin-grid, .admin-todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two-col, .admin-settings-grid { grid-template-columns: 1fr; }
  .recent-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-todo { grid-template-columns: repeat(2, 1fr); }
  .recent-user-grid { grid-template-columns: 1fr; }
  .admin-panel-head { flex-direction: column; }
}

/* Admin immersive layout */
body.admin-mode .rail-left,
body.admin-mode .rail-right { display: none !important; }
body.admin-mode .shell { grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
body.admin-mode .admin-workspace { min-height: calc(100vh - 190px); }
body.admin-mode .float-dock { display: none; }
@media (max-width: 980px) {
  body.admin-mode .shell { padding: 14px 14px 60px; }
}

/* ============================================================
   v1.3 · 最佳答案 / 相关讨论 / 通知筛选
   ============================================================ */
.chip-solved {
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.32);
  font-weight: 700;
}
.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.best-badge::before { content: '✓'; font-size: 10px; }
.post.accepted {
  border-color: rgba(52, 211, 153, 0.36);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.07), var(--surface) 42%);
  box-shadow: inset 3px 0 0 var(--green);
}
.post.accepted .post-body { font-size: 14px; }
.p-action.accept-post { color: var(--green); }
.p-action.accept-post:hover { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.p-action.accepted-btn { color: var(--green); opacity: .78; }
.related-block {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--border-soft);
}
.related-head h3 { font-family: var(--font-display); font-size: 15px; margin: 0; }
.related-head span { font-size: 10px; color: var(--muted); }
.related-list { display: grid; grid-template-columns: 1fr 1fr; }
.related-item {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  color: var(--text);
  transition: background .16s;
}
.related-item:nth-child(2n) { border-right: 0; }
.related-item:hover { background: var(--surface-2); }
.related-item .ri-cat { font-size: 9.5px; color: var(--muted); }
.related-item b { font-size: 12.5px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item small { font-size: 9.5px; color: var(--muted); }
.notif-tabs { margin-bottom: 14px; overflow-x: auto; }
.notif-tabs .tab { flex: none; }
@media (max-width: 620px) {
  .related-list { grid-template-columns: 1fr; }
  .related-item { border-right: 0; }
}

/* ---------- v1.4 表情回应 ---------- */
.post-reactions { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.react-label { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); margin-right: 3px; }
.react-btn { border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 3px 7px; font-size: 14px; line-height: 1.2; cursor: pointer; opacity: .5; transition: all .16s ease; }
.react-btn:hover { opacity: 1; transform: translateY(-1px); background: var(--surface-2) !important; }
.react-btn.on { opacity: 1; background: var(--accent-soft) !important; box-shadow: inset 0 0 0 1px var(--accent-line); }
.react-btn.has-count { opacity: .92; }
.react-btn .rc { font-size: 10.5px; margin-left: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
.react-btn.on .rc { color: var(--accent); font-weight: 700; }

/* ---------- v1.4 标签关注 ---------- */
.tag-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag-follow-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; transition: all .16s ease; }
.tag-follow-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.tag-follow-btn.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
@media (max-width: 700px) {
  .post-reactions { flex-wrap: wrap; }
  .react-btn { padding: 5px 8px; }
}

/* ---------- v1.5 后台批量治理 ---------- */
.admin-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.admin-bulk-bar:empty { display: none; }
.bulk-selected { font-size: 12px; color: var(--muted); }
.bulk-selected b { color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.bulk-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bulk-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 6px 11px; font-size: 12px; cursor: pointer; transition: all .15s ease; }
.bulk-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.bulk-btn.danger { color: #f87171; border-color: rgba(248,113,113,.28); }
.bulk-btn.danger:hover { background: rgba(248,113,113,.1); border-color: #f87171; }
.bulk-btn.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.bulk-btn:disabled { opacity: .45; cursor: not-allowed; }
.admin-topic-table .th-check { width: 34px; padding-left: 14px !important; padding-right: 0 !important; }
.admin-topic-table .td-check { width: 34px; padding-left: 14px !important; padding-right: 0 !important; }
.admin-topic-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.admin-bulk-bar .mini-select { margin: 0; }
@media (max-width: 760px) {
  .admin-bulk-bar { align-items: flex-start; flex-direction: column; }
  .bulk-actions { width: 100%; }
  .admin-topic-table .td-check, .admin-topic-table .th-check { width: 30px; }
}

/* ---------- v1.6 用户与举报批量 ---------- */
.admin-user-table .th-check, .admin-user-table .td-check { width: 34px; padding-left: 14px !important; padding-right: 0 !important; }
.admin-user-table input[type="checkbox"], .report-check { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.bulk-checkall { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.report-check { align-self: center; margin: 0 2px 0 0; }
.report-headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============ v1.7 · 账号状态与禁言封禁 ============ */
.account-banner {
  position: relative;
  z-index: 4;
  padding: 8px 18px 0;
}
.account-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--warn, #f59e0b) 38%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--warn, #f59e0b) 10%, var(--panel, #10151c));
  color: var(--text, #e7edf5);
  font-size: 12.5px;
}
.account-banner-inner svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--warn, #f59e0b);
  stroke-width: 1.7;
  fill: none;
}
.account-banner-inner b { margin-right: 8px; color: var(--warn, #f59e0b); }
.account-banner-inner span { color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-pill.active { color: #34d399; background: rgba(52, 211, 153, .12); }
.status-pill.muted { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.status-pill.banned { color: #f87171; background: rgba(248, 113, 113, .13); }

.moderation-select { max-width: 106px; }
.bulk-divider {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line, rgba(255, 255, 255, .1));
}
@media (max-width: 760px) {
  .account-banner { padding: 6px 12px 0; }
  .account-banner-inner { display: block; }
  .account-banner-inner b { display: block; margin: 0 0 2px; }
}
.moderation-select:disabled { opacity: .42; cursor: not-allowed; }

/* ============ v1.8 · 板块排序与合并 ============ */
.cat-manage-row .cat-check {
  width: 14px;
  height: 14px;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.cat-manage-row .cat-order {
  width: 22px;
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cat-manage-row .cactions .pill-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.bulk-checkall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.bulk-checkall input { accent-color: var(--accent); }
.cat-merge-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.cat-merge-node {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cat-merge-node b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-merge-node small { color: var(--muted); font-size: 10px; }
.cat-merge-node.target { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.cat-merge-arrow { color: var(--accent); font-size: 18px; flex: none; }
.merge-warning {
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--warn, #f59e0b);
  background: color-mix(in srgb, var(--warn, #f59e0b) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn, #f59e0b) 28%, transparent);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ========== v1.9 数据备份与操作审计 ========== */
.audit-list { display: grid; }
.audit-row {
  display: flex; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.audit-row:last-child { border-bottom: 0; }
.audit-dot {
  width: 7px; height: 7px; margin-top: 7px; flex: none;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.audit-main { min-width: 0; font-size: 12px; line-height: 1.55; }
.audit-main small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.admin-backup-panel { margin-top: 16px; }
.backup-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1.35fr; align-items: start; }
.backup-card {
  display: flex; gap: 14px; padding: 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.backup-card.danger {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
  background: color-mix(in srgb, var(--danger) 5%, var(--surface-2));
}
.backup-ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; color: var(--accent); background: var(--accent-soft);
}
.backup-card.danger .backup-ico { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.backup-ico svg { width: 18px; height: 18px; }
.backup-card h4 { margin: 0 0 5px; font-size: 14px; }
.backup-card p { margin: 0 0 12px; color: var(--text-2); font-size: 11.5px; line-height: 1.65; }
.backup-card code { font-size: 10.5px; padding: 1px 4px; border-radius: 4px; background: var(--surface); }
.backup-file {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; cursor: pointer;
  border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface);
}
.backup-file:hover { border-color: var(--accent); }
.backup-file span { font-size: 12px; font-weight: 600; }
.backup-file small { color: var(--muted); font-size: 10.5px; }
.backup-meta { margin-top: 7px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.backup-meta b { color: var(--text-2); }
.backup-danger-btn {
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent) !important;
  color: var(--danger) !important;
  background: color-mix(in srgb, var(--danger) 8%, transparent) !important;
}
.backup-danger-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 960px) { .backup-grid { grid-template-columns: 1fr; } }

.upload-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
