/* ==========================================================================
   皖西中学 · 校园论坛  ——  全局样式
   主题体系：6 套风格预设（preset）× 深色/浅色（mode），由 <html data-preset data-mode> 驱动
   字体：宋体标题承载学院气质，正文使用系统无衬线
   ========================================================================== */

/* ------------------------------- 基础变量（默认：流光 · 深色） ------------------------------- */
:root {
  --ink: #05070f;
  --ink-2: #080c18;
  --panel: #0d1322;
  --card-a: rgba(19, 26, 46, 0.72);
  --card-b: rgba(10, 14, 26, 0.66);
  --surface-faint: rgba(10, 14, 26, 0.5);
  --surface-faint-2: rgba(5, 8, 16, 0.45);
  --glass: rgba(6, 9, 18, 0.72);
  --glass-strong: rgba(6, 9, 18, 0.9);
  --menu-bg: rgba(12, 17, 31, 0.96);
  --input-bg: rgba(5, 8, 16, 0.6);
  --overlay: rgba(3, 5, 11, 0.72);

  --line: rgba(140, 168, 220, 0.12);
  --line-strong: rgba(140, 168, 220, 0.24);
  --line-rgb: 140, 168, 220;

  --text: #e8eef9;
  --muted: #8593b2;
  --dim: #5c6986;
  --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.55);

  --teal: #2fe3c6;
  --teal-rgb: 47, 227, 198;
  --violet: #7d6cff;
  --violet-rgb: 125, 108, 255;
  --amber: #ffc463;
  --amber-rgb: 255, 196, 99;
  --rose: #ff7a9c;
  --rose-rgb: 255, 122, 156;

  --on-teal: #04120f;
  --teal-hi: #86f0ff;
  --teal-hi2: #8bf0ff;
  --hero-a: #ffffff;
  --hero-b: #2fe3c6;
  --hero-c: #a8b7ff;
  --blob-a: rgba(47, 227, 198, 0.5);
  --blob-b: rgba(125, 108, 255, 0.45);
  --blob-c: rgba(255, 196, 99, 0.18);

  --glyph-text-l: 74%;
  --glyph-bg-l: 50%;
  --tag-text-l: 74%;

  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 18px 46px -22px rgba(0, 0, 0, 0.9);

  --nav-h: 66px;
  --maxw: 1180px;
}

/* ========================= 深色模式：各预设的底色与强调色 ========================= */

/* 流光 */
html[data-mode="dark"][data-preset="lume"] {
  --ink: #05070f; --ink-2: #080c18; --panel: #0d1322;
  --card-a: rgba(19, 26, 46, 0.72); --card-b: rgba(10, 14, 26, 0.66);
  --surface-faint: rgba(10, 14, 26, 0.5); --surface-faint-2: rgba(5, 8, 16, 0.45);
  --glass: rgba(6, 9, 18, 0.72); --glass-strong: rgba(6, 9, 18, 0.9);
  --menu-bg: rgba(12, 17, 31, 0.96); --input-bg: rgba(5, 8, 16, 0.6); --overlay: rgba(3, 5, 11, 0.72);
  --line: rgba(140, 168, 220, 0.12); --line-strong: rgba(140, 168, 220, 0.24); --line-rgb: 140, 168, 220;
  --text: #e8eef9; --muted: #8593b2; --dim: #5c6986; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.55); --glyph-text-l: 74%; --glyph-bg-l: 50%; --tag-text-l: 74%;
  --teal: #2fe3c6; --teal-rgb: 47, 227, 198; --violet: #7d6cff; --violet-rgb: 125, 108, 255;
  --amber: #ffc463; --amber-rgb: 255, 196, 99; --rose: #ff7a9c; --rose-rgb: 255, 122, 156;
  --on-teal: #04120f; --teal-hi: #86f0ff; --teal-hi2: #8bf0ff;
  --hero-a: #ffffff; --hero-b: #2fe3c6; --hero-c: #a8b7ff;
  --blob-a: rgba(47, 227, 198, 0.5); --blob-b: rgba(125, 108, 255, 0.45); --blob-c: rgba(255, 196, 99, 0.18);
}

/* 青玉 */
html[data-mode="dark"][data-preset="jade"] {
  --ink: #040a09; --ink-2: #071210; --panel: #0a1a16;
  --card-a: rgba(14, 32, 26, 0.72); --card-b: rgba(7, 18, 15, 0.66);
  --surface-faint: rgba(7, 18, 15, 0.5); --surface-faint-2: rgba(4, 12, 10, 0.45);
  --glass: rgba(5, 11, 10, 0.72); --glass-strong: rgba(5, 11, 10, 0.9);
  --menu-bg: rgba(9, 22, 19, 0.96); --input-bg: rgba(4, 12, 10, 0.6); --overlay: rgba(2, 7, 6, 0.72);
  --line: rgba(130, 200, 180, 0.13); --line-strong: rgba(130, 200, 180, 0.26); --line-rgb: 130, 200, 180;
  --text: #e6f2ee; --muted: #84a79d; --dim: #5b7a72; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.5); --glyph-text-l: 72%; --glyph-bg-l: 48%; --tag-text-l: 72%;
  --teal: #34d5a2; --teal-rgb: 52, 213, 162; --violet: #56b8ff; --violet-rgb: 86, 184, 255;
  --amber: #e6c88a; --amber-rgb: 230, 200, 138; --rose: #f0809f; --rose-rgb: 240, 128, 159;
  --on-teal: #04130e; --teal-hi: #8af0c6; --teal-hi2: #8ff0c9;
  --hero-a: #ffffff; --hero-b: #34d5a2; --hero-c: #9fe8ff;
  --blob-a: rgba(52, 213, 162, 0.45); --blob-b: rgba(86, 184, 255, 0.35); --blob-c: rgba(230, 200, 138, 0.16);
}

/* 赤霞 */
html[data-mode="dark"][data-preset="ember"] {
  --ink: #0c0605; --ink-2: #150a08; --panel: #1e0f0c;
  --card-a: rgba(42, 20, 16, 0.72); --card-b: rgba(20, 9, 7, 0.66);
  --surface-faint: rgba(20, 9, 7, 0.5); --surface-faint-2: rgba(14, 6, 5, 0.45);
  --glass: rgba(14, 7, 6, 0.72); --glass-strong: rgba(14, 7, 6, 0.9);
  --menu-bg: rgba(26, 13, 11, 0.96); --input-bg: rgba(14, 6, 5, 0.6); --overlay: rgba(8, 3, 2, 0.72);
  --line: rgba(230, 160, 140, 0.13); --line-strong: rgba(230, 160, 140, 0.26); --line-rgb: 230, 160, 140;
  --text: #f6e9e5; --muted: #b3918a; --dim: #836660; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.5); --glyph-text-l: 74%; --glyph-bg-l: 50%; --tag-text-l: 74%;
  --teal: #ff6f61; --teal-rgb: 255, 111, 97; --violet: #ffa94d; --violet-rgb: 255, 169, 77;
  --amber: #ffd166; --amber-rgb: 255, 209, 102; --rose: #ff5c8a; --rose-rgb: 255, 92, 138;
  --on-teal: #1c0603; --teal-hi: #ff9d8f; --teal-hi2: #ffa392;
  --hero-a: #ffffff; --hero-b: #ff6f61; --hero-c: #ffcfa8;
  --blob-a: rgba(255, 111, 97, 0.42); --blob-b: rgba(255, 169, 77, 0.32); --blob-c: rgba(255, 92, 138, 0.2);
}

/* 紫岚 */
html[data-mode="dark"][data-preset="violet"] {
  --ink: #07060f; --ink-2: #0c0a1a; --panel: #140f28;
  --card-a: rgba(28, 22, 56, 0.72); --card-b: rgba(12, 10, 28, 0.66);
  --surface-faint: rgba(12, 10, 28, 0.5); --surface-faint-2: rgba(8, 6, 20, 0.45);
  --glass: rgba(9, 7, 19, 0.72); --glass-strong: rgba(9, 7, 19, 0.9);
  --menu-bg: rgba(18, 14, 38, 0.96); --input-bg: rgba(8, 6, 20, 0.6); --overlay: rgba(5, 4, 12, 0.72);
  --line: rgba(170, 155, 240, 0.14); --line-strong: rgba(170, 155, 240, 0.28); --line-rgb: 170, 155, 240;
  --text: #eae7fa; --muted: #958ead; --dim: #6c6788; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.5); --glyph-text-l: 76%; --glyph-bg-l: 52%; --tag-text-l: 76%;
  --teal: #8b7bff; --teal-rgb: 139, 123, 255; --violet: #4fd1ff; --violet-rgb: 79, 209, 255;
  --amber: #ffc463; --amber-rgb: 255, 196, 99; --rose: #ff7ad0; --rose-rgb: 255, 122, 208;
  --on-teal: #0a0620; --teal-hi: #b3a8ff; --teal-hi2: #b8adff;
  --hero-a: #ffffff; --hero-b: #8b7bff; --hero-c: #4fd1ff;
  --blob-a: rgba(139, 123, 255, 0.5); --blob-b: rgba(79, 209, 255, 0.35); --blob-c: rgba(255, 122, 208, 0.18);
}

/* 鎏金 */
html[data-mode="dark"][data-preset="gold"] {
  --ink: #0b0805; --ink-2: #120e07; --panel: #1b1409;
  --card-a: rgba(38, 28, 12, 0.72); --card-b: rgba(18, 13, 6, 0.66);
  --surface-faint: rgba(18, 13, 6, 0.5); --surface-faint-2: rgba(12, 9, 4, 0.45);
  --glass: rgba(12, 9, 5, 0.72); --glass-strong: rgba(12, 9, 5, 0.9);
  --menu-bg: rgba(24, 18, 9, 0.96); --input-bg: rgba(12, 9, 4, 0.6); --overlay: rgba(7, 5, 2, 0.72);
  --line: rgba(220, 195, 150, 0.13); --line-strong: rgba(220, 195, 150, 0.26); --line-rgb: 220, 195, 150;
  --text: #f5efe4; --muted: #b0a189; --dim: #7f7461; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.5); --glyph-text-l: 74%; --glyph-bg-l: 48%; --tag-text-l: 74%;
  --teal: #e8b65c; --teal-rgb: 232, 182, 92; --violet: #ff8f6b; --violet-rgb: 255, 143, 107;
  --amber: #ffe1a3; --amber-rgb: 255, 225, 163; --rose: #e08a6a; --rose-rgb: 224, 138, 106;
  --on-teal: #1c1204; --teal-hi: #f6d494; --teal-hi2: #f8d799;
  --hero-a: #ffffff; --hero-b: #e8b65c; --hero-c: #ffb98a;
  --blob-a: rgba(232, 182, 92, 0.4); --blob-b: rgba(255, 143, 107, 0.3); --blob-c: rgba(255, 225, 163, 0.14);
}

/* 墨白 */
html[data-mode="dark"][data-preset="mono"] {
  --ink: #06070a; --ink-2: #0b0d12; --panel: #11141b;
  --card-a: rgba(22, 25, 33, 0.72); --card-b: rgba(11, 13, 18, 0.66);
  --surface-faint: rgba(11, 13, 18, 0.5); --surface-faint-2: rgba(7, 8, 12, 0.45);
  --glass: rgba(7, 8, 12, 0.72); --glass-strong: rgba(7, 8, 12, 0.9);
  --menu-bg: rgba(14, 16, 22, 0.96); --input-bg: rgba(7, 8, 12, 0.6); --overlay: rgba(4, 5, 7, 0.72);
  --line: rgba(180, 190, 210, 0.13); --line-strong: rgba(180, 190, 210, 0.26); --line-rgb: 180, 190, 210;
  --text: #e9ecf2; --muted: #8d94a3; --dim: #666d7c; --strong: #ffffff;
  --sweep: rgba(255, 255, 255, 0.5); --glyph-text-l: 76%; --glyph-bg-l: 52%; --tag-text-l: 76%;
  --teal: #c8d3e6; --teal-rgb: 200, 211, 230; --violet: #8fa6c9; --violet-rgb: 143, 166, 201;
  --amber: #c9a227; --amber-rgb: 201, 162, 39; --rose: #e0553f; --rose-rgb: 224, 85, 63;
  --on-teal: #0a0d14; --teal-hi: #e6edf8; --teal-hi2: #e9eff9;
  --hero-a: #ffffff; --hero-b: #c8d3e6; --hero-c: #8fa6c9;
  --blob-a: rgba(200, 211, 230, 0.22); --blob-b: rgba(143, 166, 201, 0.18); --blob-c: rgba(201, 162, 39, 0.12);
}

/* ========================= 浅色模式：中性底色（各预设共用） ========================= */
html[data-mode="light"] {
  --ink: #f3f5fa; --ink-2: #e8ecf5; --panel: #ffffff;
  --card-a: rgba(255, 255, 255, 0.92); --card-b: rgba(246, 248, 252, 0.86);
  --surface-faint: rgba(255, 255, 255, 0.75); --surface-faint-2: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.76); --glass-strong: rgba(255, 255, 255, 0.92);
  --menu-bg: rgba(255, 255, 255, 0.97); --input-bg: rgba(255, 255, 255, 0.85); --overlay: rgba(24, 32, 52, 0.42);
  --line: rgba(28, 42, 74, 0.12); --line-strong: rgba(28, 42, 74, 0.22); --line-rgb: 28, 42, 74;
  --text: #161d2e; --muted: #5a6478; --dim: #8a92a5; --strong: #0d1424;
  --sweep: rgba(var(--teal-rgb), 0.3);
  --glyph-text-l: 42%; --glyph-bg-l: 52%; --tag-text-l: 38%;
  --shadow: 0 18px 46px -26px rgba(20, 30, 60, 0.32);
}

/* 浅色 · 流光 */
html[data-mode="light"][data-preset="lume"] {
  --teal: #0e9c89; --teal-rgb: 14, 156, 137; --violet: #5b4bd6; --violet-rgb: 91, 75, 214;
  --amber: #b0761a; --amber-rgb: 176, 118, 26; --rose: #d0476e; --rose-rgb: 208, 71, 110;
  --on-teal: #ffffff; --teal-hi: #17b39c; --teal-hi2: #1cb59e;
  --hero-a: #16203a; --hero-b: #0e9c89; --hero-c: #5b4bd6;
  --blob-a: rgba(14, 156, 137, 0.2); --blob-b: rgba(91, 75, 214, 0.16); --blob-c: rgba(176, 118, 26, 0.12);
}

/* 浅色 · 青玉 */
html[data-mode="light"][data-preset="jade"] {
  --teal: #0f9e73; --teal-rgb: 15, 158, 115; --violet: #1f7fd0; --violet-rgb: 31, 127, 208;
  --amber: #95701a; --amber-rgb: 149, 112, 26; --rose: #cf4e72; --rose-rgb: 207, 78, 114;
  --on-teal: #ffffff; --teal-hi: #17b183; --teal-hi2: #1cb387;
  --hero-a: #12241f; --hero-b: #0f9e73; --hero-c: #1f7fd0;
  --blob-a: rgba(15, 158, 115, 0.18); --blob-b: rgba(31, 127, 208, 0.14); --blob-c: rgba(149, 112, 26, 0.1);
}

/* 浅色 · 赤霞 */
html[data-mode="light"][data-preset="ember"] {
  --teal: #d9452f; --teal-rgb: 217, 69, 47; --violet: #c0641a; --violet-rgb: 192, 100, 26;
  --amber: #a8781a; --amber-rgb: 168, 120, 26; --rose: #c93a68; --rose-rgb: 201, 58, 104;
  --on-teal: #ffffff; --teal-hi: #ea5c44; --teal-hi2: #ec6149;
  --hero-a: #2a1410; --hero-b: #d9452f; --hero-c: #c0641a;
  --blob-a: rgba(217, 69, 47, 0.18); --blob-b: rgba(192, 100, 26, 0.15); --blob-c: rgba(201, 58, 104, 0.11);
}

/* 浅色 · 紫岚 */
html[data-mode="light"][data-preset="violet"] {
  --teal: #5b48d8; --teal-rgb: 91, 72, 216; --violet: #0f8fc4; --violet-rgb: 15, 143, 196;
  --amber: #a8781a; --amber-rgb: 168, 120, 26; --rose: #c33aa8; --rose-rgb: 195, 58, 168;
  --on-teal: #ffffff; --teal-hi: #7566e6; --teal-hi2: #796be8;
  --hero-a: #170f3a; --hero-b: #5b48d8; --hero-c: #0f8fc4;
  --blob-a: rgba(91, 72, 216, 0.18); --blob-b: rgba(15, 143, 196, 0.14); --blob-c: rgba(195, 58, 168, 0.11);
}

/* 浅色 · 鎏金 */
html[data-mode="light"][data-preset="gold"] {
  --teal: #a8751d; --teal-rgb: 168, 117, 29; --violet: #c2562f; --violet-rgb: 194, 86, 47;
  --amber: #8a6a1f; --amber-rgb: 138, 106, 31; --rose: #b0563a; --rose-rgb: 176, 86, 58;
  --on-teal: #ffffff; --teal-hi: #c28d2a; --teal-hi2: #c69131;
  --hero-a: #241c0c; --hero-b: #a8751d; --hero-c: #c2562f;
  --blob-a: rgba(168, 117, 29, 0.18); --blob-b: rgba(194, 86, 47, 0.14); --blob-c: rgba(138, 106, 31, 0.11);
}

/* 浅色 · 墨白 */
html[data-mode="light"][data-preset="mono"] {
  --teal: #2c3a56; --teal-rgb: 44, 58, 86; --violet: #6b7a99; --violet-rgb: 107, 122, 153;
  --amber: #9a7b1a; --amber-rgb: 154, 123, 26; --rose: #b03a2e; --rose-rgb: 176, 58, 46;
  --on-teal: #ffffff; --teal-hi: #44557a; --teal-hi2: #4a5c82;
  --hero-a: #12161f; --hero-b: #2c3a56; --hero-c: #6b7a99;
  --blob-a: rgba(44, 58, 86, 0.12); --blob-b: rgba(107, 122, 153, 0.1); --blob-c: rgba(154, 123, 26, 0.09);
}

/* ------------------------------- 基础重置 ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(var(--teal-rgb), 0.28); color: var(--strong); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb {
  background: rgba(var(--line-rgb), 0.2);
  border-radius: 99px;
  border: 2px solid var(--ink-2);
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--line-rgb), 0.38); }

/* ------------------------------- 背景层 ------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(var(--line-rgb), 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.bg-blob.b1 {
  width: 640px; height: 640px;
  top: -260px; left: -160px;
  background: radial-gradient(circle, var(--blob-a), transparent 66%);
  animation: drift-a 26s ease-in-out infinite;
}

.bg-blob.b2 {
  width: 720px; height: 720px;
  top: -320px; right: -220px;
  background: radial-gradient(circle, var(--blob-b), transparent 66%);
  animation: drift-b 32s ease-in-out infinite;
}

.bg-blob.b3 {
  width: 520px; height: 520px;
  bottom: -280px; left: 38%;
  background: radial-gradient(circle, var(--blob-c), transparent 68%);
  animation: drift-a 38s ease-in-out infinite reverse;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(70px, 46px, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-64px, 60px, 0) scale(0.94); }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}

main { flex: 1 0 auto; }

/* ------------------------------- 顶部导航 ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: var(--glass-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(var(--teal-rgb), 0.16), rgba(var(--violet-rgb), 0.16));
  border: 1px solid rgba(var(--teal-rgb), 0.34);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  color: var(--strong);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -60% -140%;
  background: linear-gradient(105deg, transparent 38%, var(--sweep) 50%, transparent 62%);
  animation: sweep 5.5s ease-in-out infinite;
}

.brand-mark-img {
  width: auto;
  min-width: 38px;
  max-width: 148px;
  padding: 0;
  background: none;
  border-color: transparent;
}
.brand-mark-img img {
  width: auto;
  height: 34px;
  max-width: 148px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-mark-img::after { display: none; }

.orb-core .glyph.has-img {
  width: 62%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: none;
  color: inherit;
}
.orb-core .glyph.has-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

@keyframes sweep {
  0%, 62% { transform: translateX(-120%); }
  92%, 100% { transform: translateX(120%); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text);
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.22s ease, background 0.22s ease;
}

.nav-link:hover { color: var(--text); background: rgba(var(--line-rgb), 0.07); }

.nav-link.is-active { color: var(--strong); }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(var(--line-rgb), 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(var(--line-rgb), 0.06);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(var(--line-rgb), 0.1); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-teal);
  background: linear-gradient(140deg, var(--teal), var(--teal-hi));
  flex: 0 0 auto;
}
.avatar.lg { width: 56px; height: 56px; font-size: 21px; }

.user-chip-name { font-size: 13px; color: var(--text); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu {
  position: absolute;
  top: calc(var(--nav-h) - 6px);
  right: 26px;
  z-index: 60;
  min-width: 186px;
  padding: 7px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--menu-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-menu.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.user-menu-head {
  padding: 9px 11px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.user-menu-head strong { font-size: 14px; font-weight: 600; display: block; color: var(--strong); }
.user-menu-head span { font-size: 12px; color: var(--dim); }

.user-menu a,
.user-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
}
.user-menu a:hover,
.user-menu button:hover { background: rgba(var(--line-rgb), 0.1); color: var(--text); }
.user-menu .danger:hover { color: var(--rose); background: rgba(var(--rose-rgb), 0.1); }

/* ------------------------------- 按钮 ------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.28s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  color: var(--on-teal);
  background: linear-gradient(120deg, var(--teal), var(--teal-hi) 55%, var(--teal));
  background-size: 200% 100%;
  box-shadow: 0 14px 32px -16px rgba(var(--teal-rgb), 0.9);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 18px 40px -16px rgba(var(--teal-rgb), 0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(var(--line-rgb), 0.05);
}
.btn-ghost:hover { border-color: rgba(var(--teal-rgb), 0.5); background: rgba(var(--teal-rgb), 0.09); transform: translateY(-1px); }

.btn-quiet {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  padding: 8px 14px;
}
.btn-quiet:hover { color: var(--text); background: rgba(var(--line-rgb), 0.08); }

.btn-danger {
  color: var(--rose);
  border-color: rgba(var(--rose-rgb), 0.35);
  background: rgba(var(--rose-rgb), 0.1);
}
.btn-danger:hover { background: rgba(var(--rose-rgb), 0.2); }

.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn-outline { color: var(--text); border-color: var(--line-strong); background: rgba(var(--line-rgb), 0.05); }
.btn-outline:hover { border-color: rgba(var(--teal-rgb), 0.5); background: rgba(var(--teal-rgb), 0.09); }

/* ------------------------------- 通用排布 ------------------------------- */
.section { padding: 62px 0; position: relative; }
.section.tight { padding: 40px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.section-desc { color: var(--muted); font-size: 14px; margin-top: 6px; }

.hairline {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  overflow: hidden;
}
.hairline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: hairline-run 6s ease-in-out infinite;
}
@keyframes hairline-run {
  0% { left: -32%; }
  55%, 100% { left: 102%; }
}

/* ------------------------------- 首页 Hero ------------------------------- */
.hero {
  position: relative;
  padding: 74px 0 58px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(var(--line-rgb), 0.05);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(var(--teal-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.14;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text);
}

.hero h1 .glow {
  background: linear-gradient(100deg, var(--hero-a) 8%, var(--hero-b) 42%, var(--hero-c) 72%, var(--hero-a) 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-flow 9s ease-in-out infinite;
}
@keyframes text-flow {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-cta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  max-width: 520px;
}
.hero-stat {
  background: var(--card-b);
  padding: 17px 18px;
}
.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--strong);
  line-height: 1.2;
}
.hero-stat span { font-size: 11.5px; color: var(--dim); letter-spacing: 0.14em; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin-left: auto;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(var(--teal-rgb), 0), rgba(var(--teal-rgb), 0.55), rgba(var(--violet-rgb), 0.55), rgba(var(--teal-rgb), 0));
  filter: blur(26px);
  animation: spin 18s linear infinite;
  opacity: 0.75;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orb-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(var(--teal-rgb), 0.28);
}
.orb-ring.r2 { inset: 24%; border-color: rgba(var(--violet-rgb), 0.3); }
.orb-ring.r3 { inset: 36%; border-color: rgba(var(--amber-rgb), 0.24); }

.orb-core {
  position: relative;
  z-index: 2;
  width: 54%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 34% 28%, rgba(var(--teal-rgb), 0.22), var(--panel) 68%);
  border: 1px solid rgba(var(--teal-rgb), 0.3);
  box-shadow: inset 0 0 42px rgba(var(--teal-rgb), 0.14), 0 26px 60px -30px rgba(var(--teal-rgb), 0.6);
}
.orb-core .glyph {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  background: linear-gradient(160deg, var(--hero-a), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.orb-core small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-faint);
  backdrop-filter: blur(10px);
  overflow: hidden;
  margin-top: 8px;
}
.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.ticker-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: pulse-amber 2.4s ease-out infinite;
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(var(--amber-rgb), 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(var(--amber-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--amber-rgb), 0); }
}
.ticker-viewport { flex: 1 1 auto; overflow: hidden; position: relative; height: 22px; }
.ticker-track {
  position: absolute;
  white-space: nowrap;
  display: flex;
  gap: 46px;
  font-size: 13.5px;
  color: var(--muted);
  will-change: transform;
  animation: ticker-scroll 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a:hover { color: var(--teal); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-empty { font-size: 13.5px; color: var(--dim); }

/* ------------------------------- 卡片 ------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--teal-rgb), 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(var(--teal-rgb), 0.28);
  transform: translateY(-3px);
  box-shadow: 0 22px 52px -30px rgba(var(--teal-rgb), 0.65);
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.board-card { padding: 24px 22px 20px; display: block; }

.board-glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid hsl(var(--h) 70% 60% / 0.4);
  color: hsl(var(--h) 80% var(--glyph-text-l));
  background: linear-gradient(150deg, hsl(var(--h) 70% var(--glyph-bg-l) / 0.18), transparent);
  box-shadow: inset 0 0 22px hsl(var(--h) 80% 55% / 0.16);
}

.board-card h3 { font-size: 16.5px; letter-spacing: 0.04em; }
.board-card p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.board-card .board-meta {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* ------------------------------- 帖子列表 ------------------------------- */
.post-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-faint); }

.post-row {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 17px 22px 17px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: rgba(var(--teal-rgb), 0.05); }
.post-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--violet));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.post-row:hover::before { transform: scaleY(1); }

.post-row-main { flex: 1 1 auto; min-width: 0; }
.post-row-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.post-row:hover .post-row-title { color: var(--strong); }
.post-row-excerpt {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--dim);
  flex-wrap: wrap;
}
.post-row-foot .who { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }

.mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--on-teal);
  background: linear-gradient(140deg, var(--teal-hi), var(--teal));
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 9px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  border: 1px solid hsl(var(--h, 196) 70% 55% / 0.34);
  color: hsl(var(--h, 196) 78% var(--tag-text-l));
  background: hsl(var(--h, 196) 70% var(--glyph-bg-l) / 0.14);
  white-space: nowrap;
}
.tag.plain {
  --h: 220;
  border-color: var(--line-strong);
  color: var(--muted);
  background: rgba(var(--line-rgb), 0.07);
}
.tag.pin {
  --h: 40;
  border-color: rgba(var(--amber-rgb), 0.4);
  color: var(--amber);
  background: rgba(var(--amber-rgb), 0.12);
}
.tag.lock {
  --h: 340;
  border-color: rgba(var(--rose-rgb), 0.35);
  color: var(--rose);
  background: rgba(var(--rose-rgb), 0.1);
}

.empty {
  padding: 58px 26px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-faint);
}
.empty .empty-glyph {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--dim);
  opacity: 0.55;
  margin-bottom: 14px;
}
.empty p { color: var(--muted); font-size: 14px; }
.empty .btn { margin-top: 20px; }

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(var(--line-rgb), 0.06) 25%, rgba(var(--line-rgb), 0.14) 37%, rgba(var(--line-rgb), 0.06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.skeleton-row { padding: 17px 22px; border-bottom: 1px solid var(--line); }

/* ------------------------------- 活动 ------------------------------- */
.acts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.act-card { display: flex; flex-direction: column; }

.act-cover {
  position: relative;
  height: 128px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  background: linear-gradient(135deg, hsl(var(--h) 62% 22%), hsl(calc(var(--h) + 40) 60% 14%));
}
.act-cover .beams {
  position: absolute;
  inset: -30%;
  background:
    conic-gradient(from 210deg at 30% 20%, transparent, hsl(var(--h) 90% 62% / 0.45), transparent 40%),
    conic-gradient(from 20deg at 80% 90%, transparent, hsl(calc(var(--h) + 60) 90% 65% / 0.35), transparent 45%);
  animation: spin 26s linear infinite;
  filter: blur(6px);
}
.act-cover .glyph {
  position: relative;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.act-cover .status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(5, 7, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.act-body { padding: 18px 20px 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.act-body h3 { font-size: 16.5px; letter-spacing: 0.03em; }
.act-body .summary { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1 1 auto; }
.act-facts {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--dim);
}
.act-facts span { display: inline-flex; align-items: center; gap: 8px; }
.act-facts b { color: var(--muted); font-weight: 500; }

.theme-aurora { --h: 186; }
.theme-ember  { --h: 12; }
.theme-jade   { --h: 150; }
.theme-violet { --h: 268; }
.theme-gold   { --h: 42; }

/* ------------------------------- 表单 ------------------------------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  padding: 32px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field .hint { font-size: 12px; color: var(--dim); margin-top: 7px; }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); opacity: 0.75; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(var(--teal-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.13);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.8; font-family: inherit; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.select option { background: var(--panel); color: var(--text); }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--muted);
}
.checkbox input { width: 17px; height: 17px; accent-color: var(--teal); cursor: pointer; }

.form-error {
  display: none;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--rose-rgb), 0.35);
  background: rgba(var(--rose-rgb), 0.1);
  color: var(--rose);
  font-size: 13px;
  margin-bottom: 18px;
}
.form-error.is-on { display: block; animation: shake 0.36s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-faint);
  flex-wrap: wrap;
}
.segmented button {
  border: 0;
  background: none;
  padding: 7px 15px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-on {
  color: var(--on-teal);
  background: linear-gradient(120deg, var(--teal), var(--teal-hi2));
  box-shadow: 0 8px 22px -12px rgba(var(--teal-rgb), 0.95);
}

/* ------------------------------- 帖子详情 ------------------------------- */
.detail-head { padding: 34px 0 22px; }
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 34px);
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--strong);
}
.detail-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}

.prose {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.reply-item:last-child { border-bottom: 0; }
.reply-body { flex: 1 1 auto; min-width: 0; }
.reply-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.reply-head b { font-weight: 600; color: var(--strong); }
.reply-text { margin-top: 7px; font-size: 14.5px; color: var(--text); line-height: 1.85; white-space: pre-wrap; word-break: break-word; }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--line-rgb), 0.05);
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.25s ease;
}
.like-btn:hover { border-color: rgba(var(--teal-rgb), 0.5); color: var(--text); }
.like-btn.is-on {
  border-color: rgba(var(--teal-rgb), 0.55);
  background: rgba(var(--teal-rgb), 0.14);
  color: var(--teal);
}
.like-btn.is-on .heart { animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ------------------------------- 后台 ------------------------------- */
.admin-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 30px 0 70px;
}

.admin-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-faint);
  padding: 9px;
}
.admin-side button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 13px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-side button:hover { background: rgba(var(--line-rgb), 0.08); color: var(--text); }
.admin-side button.is-on {
  color: var(--strong);
  background: linear-gradient(100deg, rgba(var(--teal-rgb), 0.16), rgba(var(--violet-rgb), 0.12));
  box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), 0.26);
}
.admin-side .glyph { font-family: var(--font-display); font-size: 15px; opacity: 0.85; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-faint);
  padding: 24px;
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.panel-head h2 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; color: var(--strong); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 17px;
  background: linear-gradient(160deg, var(--card-a), var(--card-b));
  position: relative;
  overflow: hidden;
}
.stat-cell::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.2), transparent 70%);
}
.stat-cell b {
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 600;
  display: block;
  color: var(--strong);
}
.stat-cell span { font-size: 11.5px; letter-spacing: 0.14em; color: var(--dim); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th {
  text-align: left;
  padding: 12px 15px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 500;
  background: rgba(var(--line-rgb), 0.05);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(var(--teal-rgb), 0.04); }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(var(--line-rgb), 0.1);
  overflow: hidden;
  margin-top: 9px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------- 外观设置 ------------------------------- */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.preset-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px 14px;
  background: var(--surface-faint-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.preset-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.preset-card.is-on {
  border-color: rgba(var(--teal-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--teal-rgb), 0.18), 0 14px 32px -22px rgba(var(--teal-rgb), 0.9);
}
.preset-card.is-on::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
}
.preset-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
  display: block;
  margin-bottom: 9px;
}
.preset-swatches { display: flex; gap: 6px; }
.preset-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.preset-ink {
  margin-top: 10px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 7px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
}

/* ------------------------------- 小工具 ------------------------------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tool-card { padding: 24px; }
.tool-card h3 { font-size: 16px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 9px; }
.tool-card > p.sub { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

.timer-ring { display: grid; place-items: center; position: relative; }
.timer-face {
  font-family: var(--font-mono);
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--strong);
  text-shadow: 0 0 34px rgba(var(--teal-rgb), 0.45);
}

.countdown-row { display: flex; gap: 10px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.cd-unit {
  min-width: 74px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
  text-align: center;
}
.cd-unit b { display: block; font-family: var(--font-mono); font-size: 27px; color: var(--strong); line-height: 1.25; }
.cd-unit span { font-size: 11px; color: var(--dim); letter-spacing: 0.14em; }

.todo-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
  font-size: 14px;
  animation: fade-up 0.35s ease both;
}
.todo-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; }
.todo-item.is-done { opacity: 0.5; }
.todo-item.is-done span.text { text-decoration: line-through; }
.todo-item .text { flex: 1 1 auto; word-break: break-word; }
.todo-item .del {
  border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 16px; line-height: 1;
  padding: 3px 6px; border-radius: 6px;
}
.todo-item .del:hover { color: var(--rose); background: rgba(var(--rose-rgb), 0.1); }

.pick-display {
  margin: 18px 0;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.08em;
  color: var(--strong);
  transition: color 0.2s ease;
}
.pick-display.rolling { color: var(--teal); }
.pick-display.hit { animation: pop 0.5s ease; color: var(--amber); }

/* ------------------------------- 提示 / 弹窗 ------------------------------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}
.toast {
  padding: 12px 20px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--menu-bg);
  backdrop-filter: blur(14px);
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toast-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  align-items: center;
  gap: 9px;
}
.toast.is-out { animation: toast-out 0.28s ease forwards; }
.toast.ok { border-color: rgba(var(--teal-rgb), 0.45); }
.toast.ok::before { content: "✓"; color: var(--teal); font-weight: 700; }
.toast.err { border-color: rgba(var(--rose-rgb), 0.45); }
.toast.err::before { content: "!"; color: var(--rose); font-weight: 700; }
.toast.info::before { content: "·"; color: var(--muted); font-weight: 700; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--overlay);
  backdrop-filter: blur(6px);
}
.modal-host.is-open { display: flex; animation: fade-in 0.22s ease; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--panel), var(--ink-2));
  box-shadow: var(--shadow);
  padding: 26px;
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--strong); }
.modal .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 11px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------- 入场动效 ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------- 页脚 ------------------------------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--glass);
  padding: 40px 0 30px;
  font-size: 13px;
  color: var(--dim);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { font-size: 15px; color: var(--text); }
.footer-brand p { margin-top: 10px; line-height: 1.8; }
.footer-cols { display: flex; gap: 54px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 13px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; padding: 4px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* ------------------------------- 页头 / 布局 ------------------------------- */
.page-head { padding: 40px 0 26px; }
.page-title { font-family: var(--font-display); font-size: clamp(25px, 3.6vw, 36px); letter-spacing: 0.06em; color: var(--strong); }
.page-sub { color: var(--muted); margin-top: 10px; font-size: 14px; max-width: 46em; }

.crumb { font-size: 12.5px; color: var(--dim); margin-bottom: 14px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.crumb a:hover { color: var(--teal); }
.crumb span { opacity: 0.5; margin: 0 8px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
  padding: 12px 0 60px;
}
.aside { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

/* ------------------------------- 背景音乐 ------------------------------- */
.bgm-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--menu-bg);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.bgm-btn:hover { color: var(--text); border-color: rgba(var(--teal-rgb), 0.5); transform: translateY(-2px); }
.bgm-btn.is-playing { color: var(--teal); border-color: rgba(var(--teal-rgb), 0.5); }
.bgm-btn .disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--violet));
  color: var(--on-teal);
  font-size: 11px;
  line-height: 1;
}
.bgm-btn.is-playing .disc { animation: spin 3.6s linear infinite; }

/* ------------------------------- 特别鸣谢 ------------------------------- */
.thanks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.thanks-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.thanks-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(var(--teal-rgb), 0.16), rgba(var(--violet-rgb), 0.14));
  border-bottom: 1px solid var(--line);
}
.thanks-photo img { width: 100%; height: 100%; object-fit: cover; }
.thanks-photo .fallback {
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--strong);
  opacity: 0.75;
}

.thanks-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.thanks-body h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; }
.thanks-role {
  display: inline-block;
  margin-top: 9px;
  padding: 2px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(var(--teal-rgb), 0.34);
  color: var(--teal);
  background: rgba(var(--teal-rgb), 0.1);
  align-self: flex-start;
}
.thanks-desc { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1 1 auto; }
.thanks-link {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--teal);
  font-family: var(--font-mono);
  align-self: flex-start;
}
.thanks-link:hover { text-decoration: underline; }

/* 后台鸣谢编辑 */
.thumb-box {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-faint-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--dim);
}
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

[hidden] { display: none !important; }

/* ------------------------------- 鸣谢详情 / 首页鸣谢条 ------------------------------- */
.thanks-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  padding: 24px;
  margin-top: 18px;
}

.thanks-hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(var(--teal-rgb), 0.16), rgba(var(--violet-rgb), 0.14));
  border: 1px solid var(--line);
}
.thanks-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.thanks-hero-photo .fallback {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--strong);
  opacity: 0.8;
}
.thanks-hero-body { padding: 4px 2px; }

.thanks-more {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--teal);
  font-family: var(--font-mono);
}

.thanks-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.thanks-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.thanks-chip:hover {
  border-color: rgba(var(--teal-rgb), 0.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(var(--teal-rgb), 0.8);
}
.thanks-chip img,
.thanks-chip .fallback {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  flex: 0 0 auto;
}
.thanks-chip .fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(var(--teal-rgb), 0.2), rgba(var(--violet-rgb), 0.18));
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--strong);
}
.thanks-chip b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thanks-chip > span:last-child { overflow: hidden; }
.thanks-chip > span:last-child > span {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------- 他人主页：回复列表 ------------------------------- */
.user-replies { display: flex; flex-direction: column; }
.user-reply {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s ease;
}
.user-reply:last-child { border-bottom: 0; }
.user-reply:hover { background: rgba(var(--teal-rgb), 0.045); }
.user-reply .ur-post {
  display: block;
  font-size: 13px;
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-reply .ur-text {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.user-reply .ur-time {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--dim);
}

/* ------------------------------- 站点文案可视化编辑 ------------------------------- */
.text-editor {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .text-editor { grid-template-columns: 1fr; }
}

.text-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-faint-2);
  min-width: 0;
}
.tm-tip { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.tm-region {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint);
  overflow: hidden;
}
.tm-rail {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
  padding: 12px;
  background: rgba(var(--teal-rgb), 0.06);
  border-right: 1px solid var(--line);
}
.tm-name { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.tm-wire { display: flex; flex-direction: column; gap: 4px; }
.tm-wire i { display: block; height: 4px; border-radius: 2px; background: rgba(var(--line-rgb), 0.35); }
.tm-wire i:nth-child(2) { width: 78%; }
.tm-wire i:nth-child(3) { width: 56%; }
.tm-pills { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.tm-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-faint-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tm-pill:hover {
  border-color: rgba(var(--teal-rgb), 0.5);
  background: rgba(var(--teal-rgb), 0.06);
  transform: translateX(2px);
}
.tm-pill-label { flex: 0 0 auto; font-size: 11px; color: var(--dim); }
.tm-pill-val {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.logo-preview { flex-wrap: wrap; }
.logo-preview > div { min-width: 0; }

.is-flash-input {
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.3) !important;
  border-color: rgba(var(--teal-rgb), 0.6) !important;
}

/* ------------------------------- 首页可视化编辑 ------------------------------- */
body.ve-on .ve-target {
  outline: 2px dashed rgba(var(--teal-rgb), 0.55);
  outline-offset: 5px;
  border-radius: 6px;
  cursor: text;
  position: relative;
}
body.ve-on .ve-target:hover {
  background: rgba(var(--teal-rgb), 0.1);
  outline-color: var(--teal);
}
body.ve-on .ve-target::after {
  content: attr(data-ve-label);
  position: absolute;
  top: -24px;
  left: 0;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--on-teal);
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}
body.ve-on .ve-target:hover::after { opacity: 1; }

.ve-bar {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid rgba(var(--teal-rgb), 0.4);
  background: var(--menu-bg);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 92vw;
}
.ve-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
  animation: pulse 2s ease-out infinite;
}

/* ------------------------------- 进入条款弹窗 ------------------------------- */
html.terms-gated .page { display: none; }

.terms-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--ink);
  overflow: auto;
}
.terms-card {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--panel), var(--ink-2));
  padding: 28px;
  box-shadow: var(--shadow);
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.terms-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 6px 0 14px;
  color: var(--strong);
}
.terms-body {
  max-height: 42vh;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}
.terms-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ------------------------------- 个人主页装饰 ------------------------------- */
.upage-head {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  padding: 24px;
}
.upage-banner { position: absolute; inset: 0; }
.upage-banner img { width: 100%; height: 100%; object-fit: cover; }
.upage-dim { position: absolute; inset: 0; background: rgba(5, 7, 15, var(--u-dim, 0.45)); }
.upage-id { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.upage-meta { flex: 1 1 260px; min-width: 0; }
.upage-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--strong);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.upage-sub { color: var(--muted); font-size: 13px; margin-top: 7px; }
.upage-bio { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.8; max-width: 46em; }
.upage-head .info-list { margin-top: 14px; }
.upage-head .tag {
  border-color: hsl(var(--u-h, 196) 70% 55% / 0.4);
  color: hsl(var(--u-h, 196) 80% var(--tag-text-l));
  background: hsl(var(--u-h, 196) 70% 50% / 0.12);
}
.upage-head .avatar {
  background: linear-gradient(140deg, hsl(var(--u-h, 196) 80% 60%), hsl(calc(var(--u-h, 196) + 40) 80% 65%));
}

/* 模版：经典（顶部窄横幅） */
.tpl-classic .upage-banner { position: relative; inset: auto; height: 110px; margin: -24px -24px 20px; }
.tpl-classic .upage-dim { background: rgba(5, 7, 15, calc(var(--u-dim, 0.45) * 0.6)); }

/* 模版：横幅（头像压在横幅下沿） */
.tpl-banner { padding-top: 0; }
.tpl-banner .upage-banner { position: relative; inset: auto; height: 190px; margin: 0 -24px; }
.tpl-banner .upage-id { margin-top: -46px; padding: 0 24px 24px; align-items: flex-end; }
.tpl-banner .avatar.lg { border: 3px solid var(--panel); box-shadow: var(--shadow); }

/* 模版：居中（背景虚化） */
.tpl-center { text-align: center; }
.tpl-center .upage-banner img { filter: blur(6px) saturate(1.1); transform: scale(1.06); }
.tpl-center .upage-id { flex-direction: column; align-items: center; }
.tpl-center .upage-name { justify-content: center; }
.tpl-center .upage-bio { margin-left: auto; margin-right: auto; }
.tpl-center .info-list { justify-content: center; }

/* 模版：海报（信息叠在图上） */
.tpl-poster { padding: 0; min-height: 300px; display: flex; align-items: flex-end; }
.tpl-poster .upage-banner { position: absolute; inset: 0; height: auto; margin: 0; }
.tpl-poster .upage-dim { background: linear-gradient(transparent 25%, rgba(5, 7, 15, calc(0.35 + var(--u-dim, 0.45) * 0.6))); }
.tpl-poster .upage-id { padding: 26px; width: 100%; align-items: flex-end; }
.tpl-poster .upage-name,
.tpl-poster .upage-sub,
.tpl-poster .upage-bio { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); }
.tpl-poster .avatar.lg { border: 2px solid rgba(255, 255, 255, 0.75); }
.tpl-poster .info-list { color: rgba(255, 255, 255, 0.85); }
.tpl-poster .info-list span b { color: rgba(255, 255, 255, 0.6); }

/* 模版选择器 */
.tpl-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; }
.tpl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-faint-2);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tpl-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tpl-card.is-on { border-color: rgba(var(--teal-rgb), 0.6); box-shadow: 0 0 0 2px rgba(var(--teal-rgb), 0.16); }
.tpl-mini { width: 100%; height: 52px; border-radius: 6px; background: var(--ink-2); position: relative; overflow: hidden; border: 1px solid var(--line); }
.tpl-name { font-size: 12px; color: var(--muted); }
.tpl-mini-classic::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: rgba(var(--teal-rgb), 0.35); }
.tpl-mini-classic::after { content: ''; position: absolute; left: 8px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: rgba(var(--teal-rgb), 0.7); }
.tpl-mini-banner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: rgba(var(--teal-rgb), 0.4); }
.tpl-mini-banner::after { content: ''; position: absolute; left: 8px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink-2); }
.tpl-mini-center::before { content: ''; position: absolute; inset: 0; background: rgba(var(--teal-rgb), 0.22); }
.tpl-mini-center::after { content: ''; position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--teal); }
.tpl-mini-poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(var(--teal-rgb), 0.6)); }
.tpl-mini-poster::after { content: ''; position: absolute; left: 8px; bottom: 6px; width: 40%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.8); }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: hsl(var(--h) 80% 55%); margin-right: 6px; vertical-align: -2px; }

@media (max-width: 640px) {
  .tpl-banner .upage-id { margin-top: -34px; padding: 0 16px 16px; }
  .tpl-poster { min-height: 240px; }
}

/* ------------------------------- 个人资料信息行 ------------------------------- */
.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.info-list span b {
  color: var(--dim);
  font-weight: 500;
  margin-right: 7px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.info-list .bio {
  flex-basis: 100%;
  line-height: 1.8;
  color: var(--muted);
}

/* ------------------------------- 首页公告弹窗 ------------------------------- */
.modal { position: relative; }

.popup-modal { max-width: 470px; text-align: center; padding-top: 30px; }
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--line-rgb), 0.1);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.popup-close:hover { background: rgba(var(--rose-rgb), 0.16); color: var(--rose); }
.popup-img {
  margin: -30px -26px 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 210px;
  border-bottom: 1px solid var(--line);
}
.popup-img img { width: 100%; height: 210px; object-fit: cover; display: block; }
.popup-body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}

/* ------------------------------- 性能优化 ------------------------------- */
img { decoding: async; }
.post-list,
.site-footer,
.acts-grid,
.thanks-grid,
.tool-grid,
.user-replies {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* ------------------------------- 公告页 ------------------------------- */
.notice-item { padding: 22px 24px; margin-bottom: 16px; }
.notice-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--strong);
}
.notice-body { margin-top: 14px; font-size: 14.5px; }
.notice-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.notice-item.is-flash { animation: notice-flash 1.8s ease; }
@keyframes notice-flash {
  0%, 55% { box-shadow: 0 0 0 2px rgba(var(--teal-rgb), 0.5); }
  100% { box-shadow: none; }
}

/* ------------------------------- 横向板块分类条 ------------------------------- */
.board-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.board-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-faint);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.board-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.board-chip.is-on {
  border-color: rgba(var(--teal-rgb), 0.55);
  background: rgba(var(--teal-rgb), 0.1);
  box-shadow: 0 12px 28px -20px rgba(var(--teal-rgb), 0.95);
}
.board-chip .g {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: hsl(var(--h) 80% var(--glyph-text-l));
  background: hsl(var(--h) 70% var(--glyph-bg-l) / 0.16);
  border: 1px solid hsl(var(--h) 70% 60% / 0.35);
  flex: 0 0 auto;
}
.board-chip b { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); text-align: left; }
.board-chip .n { display: block; font-size: 11px; color: var(--dim); font-family: var(--font-mono); text-align: left; }

/* ------------------------------- 高级感上传区 ------------------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 26px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-faint-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: rgba(var(--teal-rgb), 0.6);
  background: rgba(var(--teal-rgb), 0.06);
}
.dropzone.is-over { transform: scale(1.01); }
.dz-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--on-teal);
  background: linear-gradient(140deg, var(--teal), var(--teal-hi));
  box-shadow: 0 10px 26px -14px rgba(var(--teal-rgb), 0.9);
  transition: transform 0.25s ease;
}
.dropzone:hover .dz-icon { transform: translateY(-3px); }
.dz-title { font-size: 13.5px; color: var(--text); font-weight: 500; }
.dz-hint { font-size: 11.5px; color: var(--dim); }

/* ------------------------------- 头像裁剪 / 称号 / 访客 ------------------------------- */
.cropper-box {
  display: grid;
  place-items: center;
  background: var(--surface-faint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
}
.cropper-box canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  cursor: grab;
  touch-action: none;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
}
.cropper-box canvas:active { cursor: grabbing; }

.tag.badge {
  border-color: rgba(var(--amber-rgb), 0.45);
  color: var(--amber);
  background: rgba(var(--amber-rgb), 0.12);
}

.who-link { color: var(--muted); transition: color 0.2s ease; }
.who-link:hover { color: var(--teal); }

.avatar-zoom { cursor: zoom-in; }
[data-lightbox] { cursor: zoom-in; }

.hero-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 640px) {
  .hero-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------- 个人头像 ------------------------------- */
.avatar,
.mini-avatar { overflow: hidden; }
.avatar.has-img,
.mini-avatar.has-img {
  background: none;
  border: 1px solid var(--line-strong);
}
.avatar.has-img img,
.mini-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------- 发帖配图 / 帖子画廊 ------------------------------- */
.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.image-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-faint-2);
}
.image-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.image-preview .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 7, 15, 0.66);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.image-preview .remove:hover { background: rgba(var(--rose-rgb), 0.85); }
.image-preview .size {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 7, 15, 0.82));
}

.post-row-cover {
  flex: 0 0 auto;
  width: 84px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-faint-2);
}
.post-row-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.post-photo {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-faint-2);
  cursor: zoom-in;
}
.post-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-photo:hover img { transform: scale(1.04); }

.lightbox img { width: 100%; border-radius: var(--radius); display: block; }

@media (max-width: 640px) {
  .post-row-cover { width: 64px; height: 48px; }
  .post-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ------------------------------- 系统化适配 ------------------------------- */

/* 锚点定位时给固定导航留出空间 */
[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

/* 纵向节奏随视口平滑变化，避免断点跳变 */
.section { padding: clamp(42px, 5.5vw, 62px) 0; }
.section.tight { padding: clamp(28px, 3.6vw, 40px) 0; }
.hero { padding: clamp(46px, 7vw, 74px) 0 clamp(38px, 5vw, 58px); }
.page-head { padding: clamp(30px, 4vw, 40px) 0 clamp(20px, 2.6vw, 26px); }
.panel { padding: clamp(18px, 2.2vw, 24px); }
.form-card { padding: clamp(20px, 3vw, 32px); }

/* 小屏适配：内容与悬浮元素避开系统刘海 / 手势区 */
@media (max-width: 640px) {
  .wrap, .nav {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .bgm-btn {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .toast-host { bottom: max(20px, env(safe-area-inset-bottom)); }
  .thanks-strip { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .thanks-hero { grid-template-columns: 1fr; }
  .thanks-hero-photo { max-width: 420px; }
}

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 1020px) {
  #auth-grid { grid-template-columns: 1fr !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .boards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .admin-side button { width: auto; white-space: nowrap; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--glass-strong);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 12px 13px; font-size: 15px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: rgba(var(--teal-rgb), 0.1); }
  .user-menu { right: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap, .nav { padding: 0 18px; }
  .boards-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .form-card { padding: 22px; }
  .panel { padding: 18px; }
  .post-row { padding: 15px 16px 15px 18px; gap: 12px; }
  .footer-cols { gap: 30px; }
  .ticker { padding: 10px 14px; gap: 12px; }
  .acts-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

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