[hidden] { display: none !important; }

/* ========== 幽州评林 · 样式 ========== */
:root {
  --paper: #f5f0e4;
  --paper-2: #fbf8f0;
  --paper-3: #efe8d9;
  --ink: #1a1917;
  --ink-soft: #4b4740;
  --muted: #8b8478;
  --line: rgba(26, 25, 23, 0.13);
  --line-strong: rgba(26, 25, 23, 0.28);
  --seal: #9c2b23;
  --seal-2: #bf5443;
  --gold: #a8874e;
  --jade: #3d5a4c;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(26, 25, 23, 0.04), 0 12px 28px -18px rgba(26, 25, 23, 0.35);
  --shadow-lg: 0 2px 4px rgba(26, 25, 23, 0.05), 0 30px 60px -30px rgba(26, 25, 23, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 纸纹与光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(156, 43, 35, 0.07), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(168, 135, 78, 0.09), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(61, 90, 76, 0.06), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

#app, .topbar, .site-foot { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(156, 43, 35, 0.18); }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(245, 240, 228, 0.82);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.seal {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--seal);
  color: #fdf8ee;
  font-family: var(--kai);
  font-size: 19px;
  line-height: 1;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(253, 248, 238, 0.28);
}
.brand-name {
  font-family: var(--kai);
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-radius: 2px;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--ink); background: rgba(26, 25, 23, 0.05); }
.nav a.on { color: var(--seal); }
.nav a.on::after {
  content: "";
  position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1px; background: var(--seal); opacity: 0.7;
}

.picker {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(251, 248, 240, 0.6);
}
.picker span { font-family: var(--sans); font-size: 9px; letter-spacing: 0.26em; color: var(--muted); }
.picker select {
  border: 0; background: transparent; font-family: var(--serif); font-size: 14px;
  color: var(--ink); outline: none; cursor: pointer; padding: 1px 2px;
}

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 34px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: end;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow b { color: var(--seal); font-weight: 500; }

.hero h1 {
  font-family: var(--kai);
  font-weight: 400;
  font-size: clamp(58px, 8.4vw, 108px);
  line-height: 0.98;
  letter-spacing: 0.06em;
  margin: 0;
  position: relative;
  display: inline-block;
}
.hero h1 .dot { color: var(--seal); font-size: 0.28em; vertical-align: super; margin-left: 6px; }
.hero .sub {
  margin: 16px 0 0;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  font-family: var(--kai);
}
.hero .lede {
  margin: 22px 0 0;
  max-width: 44em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
  text-align: justify;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 2px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, color 0.18s;
}
.btn:hover { background: var(--seal); border-color: var(--seal); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn.sm { padding: 7px 13px; font-size: 12px; letter-spacing: 0.1em; }
.btn.danger { border-color: rgba(156, 43, 35, 0.5); color: var(--seal); background: transparent; }
.btn.danger:hover { background: var(--seal); color: #fff; border-color: var(--seal); }

/* 记分牌 */
.scorecard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 248, 240, 0.92), rgba(247, 242, 232, 0.7));
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.scorecard::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(26, 25, 23, 0.06);
  pointer-events: none;
}
.score-top { display: flex; align-items: baseline; gap: 10px; }
.score-num { font-family: var(--kai); font-size: 46px; line-height: 1; letter-spacing: 0.02em; }
.score-den { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.score-label { font-size: 12px; letter-spacing: 0.24em; color: var(--ink-soft); margin-left: auto; }

.dist { margin-top: 18px; display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 12px 1fr 30px; align-items: center; gap: 10px; }
.dist-row i { font-family: var(--sans); font-style: normal; font-size: 10px; color: var(--muted); }
.dist-bar { height: 5px; background: rgba(26, 25, 23, 0.07); overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--seal-2), var(--seal)); }
.dist-row b { font-family: var(--sans); font-size: 10px; font-weight: 500; color: var(--muted); text-align: right; }

.figures { display: flex; gap: 26px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.figures div { display: grid; gap: 2px; }
.figures strong { font-family: var(--kai); font-size: 22px; font-weight: 400; }
.figures span { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); }

.rule-double {
  height: 3px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  margin: 34px 0 0;
}

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 26px 0 4px;
}
.search {
  flex: 1 1 280px;
  display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  padding: 7px 2px;
  color: var(--muted);
}
.search svg { flex-shrink: 0; opacity: 0.6; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--serif); font-size: 14.5px; color: var(--ink);
  letter-spacing: 0.04em;
}
.search input::placeholder { color: var(--muted); }
.search kbd {
  font-family: var(--sans); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 5px; line-height: 17px;
}

.segment { display: inline-flex; border: 1px solid var(--line); }
.segment button {
  border: 0; background: transparent; padding: 7px 14px;
  font-size: 12.5px; letter-spacing: 0.12em; color: var(--ink-soft);
  transition: background 0.16s, color 0.16s;
}
.segment button + button { border-left: 1px solid var(--line); }
.segment button.on { background: var(--ink); color: var(--paper-2); }

.tagbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 0 2px; align-items: center; }

/* ---------- 板块与榜单 ---------- */
.sections {
  display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-top: 6px;
  margin-bottom: 4px;
}
.sections button {
  position: relative;
  border: 0; background: transparent;
  padding: 12px 18px 13px;
  font-family: var(--serif); font-size: 15.5px; letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.16s;
}
.sections button::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px;
  height: 2px; background: transparent; transition: background 0.16s;
}
.sections button:hover { color: var(--ink); }
.sections button.on { color: var(--ink); }
.sections button.on::after { background: var(--seal); }
.sections em {
  font-style: normal; margin-left: 6px; font-family: var(--sans);
  font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted);
  vertical-align: 2px;
}

.boards { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0 2px; }
.boards button {
  border: 1px solid var(--line); background: transparent;
  padding: 5px 13px; border-radius: 999px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--ink-soft); transition: all 0.16s;
}
.boards button em {
  font-style: normal; margin-left: 5px; font-size: 10px; opacity: 0.6;
}
.boards button:hover { border-color: var(--line-strong); color: var(--ink); }
.boards .board-all.on { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.boards .board-red.on { background: var(--seal); border-color: var(--seal); color: #fff; }
.boards .board-black.on { background: #23201d; border-color: #23201d; color: var(--paper-2); }
.boards .board-red { color: var(--seal); border-color: rgba(156, 43, 35, 0.35); }

.sec-pill {
  display: inline-block; margin-right: 8px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em;
  padding: 1px 6px; border-radius: 2px;
  border: 1px solid var(--line-strong); color: var(--muted);
  vertical-align: 1px;
}
.sec-pill.sec-guanli { color: #6b5b3e; border-color: rgba(107, 91, 62, 0.4); }
.sec-pill.sec-wanjia { color: #2f5d52; border-color: rgba(47, 93, 82, 0.4); }
.sec-pill.sec-yanlan { color: var(--seal); border-color: rgba(156, 43, 35, 0.4); }
.sec-pill.sec-pailide { color: #4a4a68; border-color: rgba(74, 74, 104, 0.4); }

.source-note {
  margin: 14px 0 0; max-width: 44em;
  font-family: var(--sans); font-size: 12px; line-height: 1.9;
  letter-spacing: 0.03em; color: var(--muted);
  border-left: 2px solid var(--seal-soft, rgba(156, 43, 35, 0.28));
  padding-left: 12px;
}

.tag {
  font-size: 11.5px; letter-spacing: 0.1em;
  padding: 4px 11px; border: 1px solid var(--line);
  color: var(--ink-soft); background: transparent; border-radius: 999px;
  transition: all 0.16s;
}
.tag:hover { border-color: var(--line-strong); color: var(--ink); }
.tag.on { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.tag em { font-style: normal; opacity: 0.5; margin-left: 5px; font-family: var(--sans); font-size: 10px; }

.count-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 26px 0 16px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
}

/* ---------- 评价卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 40px; align-items: start; grid-auto-flow: dense; }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 22px 22px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card::after {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--seal), rgba(156, 43, 35, 0));
  opacity: 0; transition: opacity 0.22s;
}
.card:hover::after { opacity: 1; }

.card.featured { grid-column: span 2; background: linear-gradient(160deg, #fbf6e9, #f7f0e0); }
@media (max-width: 1079px) { .card.featured { grid-column: span 2; } }
@media (max-width: 720px) { .card.featured { grid-column: span 1; } }

.card-head { display: flex; align-items: flex-start; gap: 12px; }
.avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--kai); font-size: 18px; color: var(--seal);
  border: 1px solid rgba(156, 43, 35, 0.35);
  background: rgba(156, 43, 35, 0.04);
  border-radius: 50%;
}
.card.featured .avatar { background: var(--seal); color: #fdf8ee; border-color: var(--seal); }
.card-head h3 {
  margin: 0; font-size: 16.5px; font-weight: 500; letter-spacing: 0.06em;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.card-head h3 .role { font-family: var(--sans); font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: 0.12em; }
.card-head .meta {
  margin: 3px 0 0; font-family: var(--sans); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.1em;
}
.stars { margin-left: auto; color: var(--seal); font-size: 12px; letter-spacing: 1.5px; white-space: nowrap; }
.stars .off { color: rgba(26, 25, 23, 0.16); }

blockquote {
  position: relative;
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 1px solid rgba(156, 43, 35, 0.25);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  text-align: justify;
  white-space: pre-wrap;
  word-break: break-word;
}
.card.featured blockquote { font-size: 18px; line-height: 2.1; }
blockquote .qmark {
  position: absolute; left: -4px; top: -22px;
  font-family: var(--kai); font-size: 42px; color: rgba(168, 135, 78, 0.25); line-height: 1;
}
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.card-foot .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tag {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em;
  color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}
.like {
  margin-left: auto; border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  padding: 4px 6px; transition: color 0.16s, transform 0.16s;
}
.like:hover { color: var(--seal); transform: scale(1.06); }
.like.on { color: var(--seal); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 80px 20px 100px;
  border: 1px dashed var(--line-strong);
  background: rgba(251, 248, 240, 0.4);
}
.empty .glyph { font-family: var(--kai); font-size: 46px; color: var(--line-strong); }
.empty h3 { font-family: var(--kai); font-weight: 400; font-size: 22px; letter-spacing: 0.2em; margin: 14px 0 8px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* ---------- 表单 / 页面 ---------- */
.page { padding: 48px 0 80px; }
.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 {
  font-family: var(--kai); font-weight: 400; font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.1em; margin: 0; line-height: 1.1;
}
.page-head p { color: var(--muted); font-size: 13.5px; margin: 0 0 6px; letter-spacing: 0.06em; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: var(--shadow);
}
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.field { display: grid; gap: 7px; margin-bottom: 20px; }
.field > label {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
}
.field input[type="text"], .field textarea, .field select, .field input[type="password"] {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong);
  background: transparent; padding: 9px 1px; outline: none;
  font-family: var(--serif); font-size: 15px; color: var(--ink);
  transition: border-color 0.18s;
  border-radius: 0;
}
.field textarea { border: 1px solid var(--line-strong); padding: 12px; resize: vertical; min-height: 120px; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--seal); }
.field .hint { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.star-input { display: flex; gap: 4px; font-size: 22px; color: rgba(26, 25, 23, 0.18); }
.star-input button { background: none; border: 0; padding: 0 2px; font-size: inherit; line-height: 1; transition: transform 0.12s, color 0.12s; }
.star-input button:hover { transform: scale(1.15); }
.star-input button.on { color: var(--seal); }

.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.counter { font-family: var(--sans); font-size: 10.5px; color: var(--muted); margin-left: auto; letter-spacing: 0.08em; }

.tips { border-left: 2px solid rgba(168, 135, 78, 0.5); padding: 4px 0 4px 16px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.tips strong { color: var(--ink-soft); font-weight: 500; }

/* ---------- 导入 ---------- */
.mono { font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.85; }
textarea.mono { min-height: 230px; }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll > table { min-width: 100%; }

.preview { width: 100%; border-collapse: collapse; font-size: 13px; }
.preview th, .preview td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.preview th { font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; }
.preview td { color: var(--ink-soft); }
.preview td.c { color: var(--ink); }
.preview tr.bad td { background: rgba(156, 43, 35, 0.05); }

/* ---------- 管理 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 0; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 10px 16px;
  font-size: 13px; letter-spacing: 0.12em; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--seal); }

.atable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.atable th {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; color: var(--muted);
  font-weight: 500; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.atable td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atable tr:hover td { background: rgba(168, 135, 78, 0.05); }
.atable .excerpt { color: var(--ink-soft); max-width: 380px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.atable .who { font-weight: 500; }
.atable .sub { font-family: var(--sans); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; display: block; margin-top: 2px; }
.ops { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  display: inline-block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap;
}
.pill.published { color: var(--jade); border-color: rgba(61, 90, 76, 0.4); background: rgba(61, 90, 76, 0.06); }
.pill.pending { color: #8a6a1f; border-color: rgba(168, 135, 78, 0.5); background: rgba(168, 135, 78, 0.1); }
.pill.rejected { color: var(--seal); border-color: rgba(156, 43, 35, 0.35); background: rgba(156, 43, 35, 0.06); }

.notice {
  border: 1px solid rgba(168, 135, 78, 0.45);
  background: rgba(168, 135, 78, 0.08);
  padding: 14px 18px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.9; margin-bottom: 22px;
}
.notice b { color: var(--ink); font-weight: 500; }

/* ---------- 吐司 / 弹窗 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper-2);
  padding: 11px 22px; font-size: 13px; letter-spacing: 0.1em;
  opacity: 0; pointer-events: none; transition: all 0.28s; z-index: 200;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--seal); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(26, 25, 23, 0.42);
  display: grid; place-items: center; z-index: 150; padding: 24px;
  animation: fade 0.2s both;
}
.modal {
  background: var(--paper-2); width: min(600px, 100%); max-height: 86vh; overflow: auto;
  padding: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong);
  animation: rise 0.28s both;
}
.modal h3 { font-family: var(--kai); font-weight: 400; font-size: 24px; letter-spacing: 0.12em; margin: 0 0 20px; }

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  margin-top: 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted);
}

/* ---------- 动效 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .brand-name small { display: none; }
  .brand-name { font-size: 17px; letter-spacing: 0.1em; }
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .figures { gap: 18px; }
  .panel { padding: 22px 18px; }
  .atable { font-size: 12.5px; }
  .atable .excerpt { max-width: 180px; }
  .grid { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; }
  .segment { display: flex; width: 100%; }
  .segment button { flex: 1; text-align: center; }
  .card { padding: 20px 18px 14px; }
  .site-foot { flex-direction: column; gap: 8px; }
}
/* ------------------------------ 帖子 ------------------------------ */
.notes-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.notes-head h2 { font-family: var(--kai); font-weight: 400; font-size: 24px; letter-spacing: .16em; margin: 0; }
.notes-head span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }

.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.note-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.note-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(60,40,20,.45); }
.note-thumb { position: relative; aspect-ratio: 4 / 3; background: #ece5d6; overflow: hidden; }
.note-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-thumb .no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--kai); font-size: 30px; color: #b9ae9a; }
.note-thumb .img-count { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 11px; padding: 2px 7px; background: rgba(26,25,23,.62); color: #f5f0e4; letter-spacing: .04em; }
.note-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.note-src { margin: 0; font-size: 11.5px; color: var(--seal); letter-spacing: .06em; }
.note-body h3 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-ex { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); }
.nf-like { display: inline-flex; align-items: center; gap: 4px; }
.nf-like.on { color: var(--seal); }

/* 详情 */
.post-page { max-width: 820px; }
.backlink { display: inline-block; margin: 26px 0 16px; font-size: 13px; color: var(--ink-3); text-decoration: none; letter-spacing: .06em; }
.backlink:hover { color: var(--seal); }
.post { background: var(--card); border: 1px solid var(--line); padding: 30px 34px 32px; }
.post-head h1 { font-family: var(--kai); font-weight: 400; font-size: 30px; line-height: 1.5; letter-spacing: .06em; margin: 6px 0 16px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.like { display: inline-flex; align-items: center; gap: 6px; }
.like.on { color: var(--seal); border-color: rgba(156,43,35,.4); }
.gallery { display: grid; gap: 10px; margin: 22px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.single { grid-template-columns: 1fr; justify-items: center; }
.gallery.single .shot { max-width: 100%; }
.gallery.single img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; }
.gallery .shot { display: block; border: 1px solid var(--line); background: #ece5d6; overflow: hidden; }
.gallery .shot img { width: 100%; display: block; }
.post-body { font-size: 15.5px; line-height: 2; letter-spacing: .02em; color: var(--ink); margin: 18px 0 6px; }

/* 讨论 */
.discuss { margin: 34px 0 10px; }
.discuss h2 { font-family: var(--kai); font-weight: 400; font-size: 22px; letter-spacing: .14em; margin: 0 0 18px; }
.discuss h2 em { font-style: normal; font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.cmt-form { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 24px; }
.cmt-form textarea { width: 100%; min-height: 84px; }
.cmt-row { margin-bottom: 8px; }
.cmt-row input { width: 260px; max-width: 100%; font-size: 13.5px; padding: 8px 0; }
.cmt-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cmt-list { list-style: none; margin: 0; padding: 0; }
.cmt { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.cmt-ava { width: 32px; height: 32px; flex: none; border: 1px solid rgba(156,43,35,.45); color: var(--seal); display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: var(--kai); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-top { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--ink-3); }
.cmt-top b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cmt-text { margin: 6px 0 6px; font-size: 14.5px; line-height: 1.8; }
.cmt-acts { display: flex; gap: 14px; }
.cmt-replies { list-style: none; margin: 10px 0 0; padding: 12px 14px; background: rgba(156,43,35,.035); border-left: 2px solid rgba(156,43,35,.25); }
.cmt-reply { font-size: 13.5px; line-height: 1.8; padding: 4px 0; }
.cmt-reply b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.cmt-reply em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-right: 6px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; letter-spacing: .04em; }
.linkbtn:hover { color: var(--seal); }
.linkbtn.danger:hover { color: #b3261e; }
.empty-line { font-size: 13px; color: var(--ink-3); }

/* 收录三档 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer; letter-spacing: .06em; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--seal); border-bottom-color: var(--seal); }
.mode-pick { display: grid; gap: 8px; }
.mode-pick label { display: grid; grid-template-columns: 18px 1fr; gap: 4px 10px; align-items: start; padding: 10px 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mode-pick label:hover { border-color: rgba(156,43,35,.4); }
.mode-pick label.on { border-color: var(--seal); background: rgba(156,43,35,.03); }
.mode-pick input { margin-top: 3px; accent-color: var(--seal); }
.mode-pick b { font-weight: 500; font-size: 13.5px; letter-spacing: .04em; }
.mode-pick span { grid-column: 2; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.resolve-card { border: 1px solid var(--line); padding: 18px; background: #fbf7ec; }
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.src-pill { font-size: 11.5px; padding: 2px 8px; background: rgba(156,43,35,.08); color: var(--seal); letter-spacing: .06em; }
.rc-imgs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.rc-imgs img { height: 120px; width: auto; border: 1px solid var(--line); display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thumb-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb-strip figure { margin: 0; position: relative; }
.thumb-strip img { height: 96px; width: auto; display: block; border: 1px solid var(--line); }
.thumb-strip figcaption { position: absolute; left: 4px; top: 4px; font-size: 10px; background: rgba(26,25,23,.6); color: #f5f0e4; padding: 0 5px; }
.tips-panel { box-shadow: none; background: transparent; border: 0; padding: 0; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; letter-spacing: .04em; }
.btn-ghost:hover { border-color: var(--seal); color: var(--seal); }
.btn.danger, .btn-ghost.danger { color: #b3261e; border-color: rgba(179,38,30,.4); }

@media (max-width: 1000px) { .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .note-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { padding: 22px 18px 24px; }
  .post-head h1 { font-size: 24px; }
  .two { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 10px 12px; }
}

.longstack { margin: 20px 0 24px; border: 1px solid var(--line); background: #f5f0e4; }
.longstack img { display: block; width: 100%; height: auto; }

.field > .btn { justify-self: start; }

.bml-box { margin-top: 34px; border: 1px dashed rgba(156,43,35,.35); background: rgba(156,43,35,.028); padding: 22px 24px; display: grid; gap: 18px; }
.bml-box h3 { margin: 0 0 8px; font-family: var(--kai); font-weight: 400; font-size: 19px; letter-spacing: .08em; }
.bml-box p { margin: 0 0 10px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.bml-box .btn { display: inline-block; cursor: grab; }
.bml-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.bml-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(26,25,23,.06); padding: 4px 8px; }

/* ---------- 板块选择 ---------- */
.sec-pick { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.sel { font-family: var(--serif); font-size: 14px; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 7px 10px;
  letter-spacing: 0.06em; outline: none; }
.sel:focus { border-color: var(--seal); }

/* ---------- 榜单提示与间距 ---------- */
.boards { padding-bottom: 10px; }
.board-hint { font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-left: 4px; }
.notes-head { margin-top: 14px; }

/* ---------- 移动端微调 ---------- */
@media (max-width: 720px) {
  .sections { gap: 0; }
  .sections button { padding: 10px 11px 11px; font-size: 14px; letter-spacing: 0.06em; }
  .sections button::after { left: 11px; right: 11px; }
  .sections em { margin-left: 4px; font-size: 9.5px; }
  .boards { padding: 14px 0 8px; }
  .board-hint { display: none; }
  .search kbd { display: none; }
  .sec-pick { margin-top: 16px; }
}

/* ---------- 帖子表：固定列宽、横向排布 ---------- */
.ntable { table-layout: fixed; }
.ntable td { vertical-align: middle; padding: 12px 10px; }
.ntable .nw { white-space: nowrap; }
.ntable .line1 {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13.5px;
}
.ntable .excerpt { max-width: none; -webkit-line-clamp: 2; line-height: 1.55; font-size: 12.5px; }
.ntable .ops { display: flex; gap: 5px; flex-wrap: nowrap; }
.ntable .ops .btn { padding: 4px 8px; font-size: 11.5px; }
.ntable .pill { font-size: 9.5px; padding: 2px 7px; }
.sel.sm {
  font-family: var(--sans); font-size: 11.5px; padding: 5px 6px; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
  width: 100%; max-width: 88px; cursor: pointer;
}
.sel.sm:focus { border-color: var(--seal); outline: none; }
@media (max-width: 900px) {
  .ntable { table-layout: auto; min-width: 760px; }
  .ntable .nw { white-space: nowrap; }
}

/* 手机：帖子表保持完整列，横向滑动 */
@media (max-width: 720px) {
  .ntable { width: 720px; min-width: 720px; }
  .ntable td, .ntable th { padding: 10px 8px; }
  .sel.sm { max-width: 84px; font-size: 11px; }
}

.swipe-hint { display: none; }
@media (max-width: 720px) {
  .swipe-hint { display: block; text-align: center; margin: 6px 0 10px; letter-spacing: .1em; }
}

.note-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }
.note-tags .mini-tag { font-size: 10.5px; }

.board-sel { max-width: 84px; }

.tb-label { font-size: 11.5px; letter-spacing: .16em; color: var(--muted-2); margin-right: 2px; }
.tag-clear { border: 0; background: none; padding: 4px 2px; font-family: inherit; font-size: 11.5px; letter-spacing: .08em; color: var(--seal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note-tagbar { padding: 0 0 12px; gap: 6px; }
.note-tagbar .tag { font-size: 11.5px; padding: 4px 9px; }

.st-edit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.st-edit .st-save { padding: 4px 9px; font-size: 11.5px; letter-spacing: .06em; background: var(--seal); border-color: var(--seal); color: #fff; }
.st-edit .st-save:hover { background: var(--seal-2, var(--seal)); }

.st-sel { max-width: 104px; width: 104px; }

.sub-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.sub-head span { font-family: var(--kai); font-size: 19px; letter-spacing: .14em; }
.sub-head em { font-style: normal; font-size: 12px; color: var(--seal); letter-spacing: .08em; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line2); transform: translateY(-4px); }

/* 长图视图 */
.longone { margin: 22px 0 8px; background: #fff; border: 1px solid var(--line2); }
.longone img { display: block; width: 100%; height: auto; }
.longone.pending { background: #f8f4e9; border-style: dashed; padding: 46px 20px; text-align: center; }
.longone.pending p { margin: 0 0 8px; font-family: var(--kai); font-size: 17px; letter-spacing: .1em; }
.longone.pending span { font-size: 12.5px; color: var(--muted); }
.gallery img { display: block; width: 100%; height: auto; cursor: default; border: 1px solid var(--line); background: #ece5d6; }

/* 频道（专题）提示条 */
.chan-note { margin: 0 0 12px; padding: 9px 14px; border-left: 3px solid var(--seal); background: rgba(156, 43, 35, .05); font-size: 13px; color: var(--muted); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chan-note b { font-family: var(--kai); font-size: 16px; color: var(--seal); letter-spacing: .08em; font-weight: 400; }
.chan-note a { margin-left: auto; color: var(--seal); border-bottom: 1px solid currentColor; }

/* 首页（目录页） */
.home-title { font-family: var(--kai); font-size: clamp(44px, 6.4vw, 78px); font-weight: 400; letter-spacing: .12em; line-height: 1.08; margin: 10px 0 18px; }
.home-lede { max-width: 46em; }
.chan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 30px; }
.chan-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 20px; border: 1px solid var(--line); background: rgba(255, 253, 247, .55); transition: border-color .25s, transform .25s, box-shadow .25s; }
.chan-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(40, 30, 20, .08); }
.chan-card-name { font-family: var(--kai); font-size: 25px; letter-spacing: .1em; color: var(--ink); }
.chan-card-desc { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; }
.chan-card-meta { font-size: 11.5px; letter-spacing: .12em; color: var(--seal); border-top: 1px solid var(--line); padding-top: 10px; }

/* momo 专题抬头 */
.hero h1.momo-title { font-family: var(--kai); font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; letter-spacing: .02em; line-height: 1.35; margin: 10px 0 12px; max-width: 24em; word-break: break-word; }
.momo-lines { margin: 20px 0 18px; padding-left: 16px; border-left: 2px solid var(--line); }
.momo-lines p { margin: 0 0 9px; font-size: 15px; line-height: 1.9; color: var(--ink); letter-spacing: .02em; }
.momo-lines p:last-child { margin-bottom: 0; color: var(--muted); }
.momo-sub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.momo-link { color: var(--seal); border-bottom: 1px solid currentColor; letter-spacing: .04em; }
.momo-link:hover { color: var(--ink); }

@media (max-width: 720px) {
  .chan-grid { grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
  .chan-card { padding: 20px 18px 16px; }
  .chan-card-name { font-size: 22px; }
}



/* 帖子配乐 */
.audio-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 4px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.audio-box audio { flex: 1 1 260px; height: 36px; min-width: 220px; }
.audio-label { font-size: 12px; letter-spacing: .18em; color: var(--seal); border: 1px solid var(--seal); padding: 2px 7px; }
.audio-hint { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.note-audio-mark { font-size: 12px; color: var(--seal); letter-spacing: .06em; margin: 6px 0 0; }
@media (max-width: 720px) {
  .audio-box { padding: 10px 12px; gap: 8px; }
  .audio-box audio { flex: 1 1 100%; }
}
