/* =====================================================================
   狸猫刊 · TANUKI MAGAZINE
   纸感米色 + 墨色 + 金黄 / 赭红点缀
   ===================================================================== */

:root {
  --paper: #f6f1ea;
  --paper-2: #fbf8f3;
  --paper-3: #efe7d9;
  --ink: #1c1710;
  --ink-2: #3a342b;
  --muted: #8b8172;
  --muted-2: #a79c8b;
  --line: #e3dac9;
  --line-2: #d3c8b3;
  --gold: #f7bc00;
  --gold-2: #d9a300;
  --gold-soft: #fbebbc;
  --accent: #bf4429;
  --accent-2: #d8552f;
  --teal: #37a49b;
  --nav: var(--dark);
  --nav-2: #4c483f;
  --nav-ink: #f2ede3;
  --dark: #201d19;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --maxw: 1120px;
  --radius: 2px;
  --shadow: 0 18px 40px -24px rgba(40, 30, 15, .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(circle at 88% 92%, rgba(214, 200, 178, .35), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------------- 通用排版 ---------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow span { white-space: nowrap; }
.eyebrow em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted-2);
  letter-spacing: .2em;
}
.eyebrow.light { color: var(--gold); border-color: rgba(255, 255, 255, .18); }

.sec-head { margin-bottom: 34px; }
.sec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}
.sec-row h2 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: .01em;
  font-weight: 500;
}
.sec-row h2 .count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  margin-left: 10px;
  vertical-align: super;
}

.more-link {
  font-size: 12.5px;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.more-link span { transition: transform .25s; }
.more-link:hover span { transform: translateX(3px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, background .18s, color .18s, border-color .18s;
  background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0f0c08; }
.btn-gold { background: var(--gold); color: #25400c; font-weight: 600; }
.btn-gold:hover { background: #ffcb1f; }
.btn-ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, .02); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-mini { padding: 5px 11px; font-size: 11.5px; border-radius: 3px; }
.btn-danger-ghost { border-color: rgba(191, 68, 41, .45); color: var(--accent); }
.btn-danger-ghost:hover { background: rgba(191, 68, 41, .07); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.link-btn:hover { color: var(--ink); border-color: currentColor; }
.link-btn.danger:hover { color: var(--accent); }

.flash {
  position: relative;
  z-index: 60;
  padding: 10px 24px;
  font-size: 13px;
  text-align: center;
  background: var(--gold-soft);
  color: #5a4300;
  border-bottom: 1px solid var(--gold);
}
.flash-err { background: #fbe3dc; color: #8c2f1b; border-color: #eec0b3; }

.empty-note { color: var(--muted); font-size: 14px; padding: 26px 0; }
.empty-note.big { text-align: center; padding: 80px 0; }

/* ---------------- 顶部导航 ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav);
  color: var(--nav-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px -18px rgba(0, 0, 0, .6);
}
.head-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup { display: block; height: 46px; width: auto; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; } /* 旧头部，已改用整图 */
.brand-word { height: 22px; width: auto; }
.brand-text small {
  font-size: 8.5px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.head-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 7px 12px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: rgba(242, 237, 227, .86);
  border-radius: 999px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-link.pill { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.nav-link.pill:hover { background: rgba(255, 255, 255, .1); }
.nav-link.with-icon::before {
  content: "✎";
  margin-right: 5px;
  font-size: 12px;
  opacity: .8;
}

.user-menu { position: relative; }
.user-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, .18);
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(255, 255, 255, .08); }
.user-name { font-size: 13px; }
.user-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
}
.user-menu .menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}
.user-menu .menu-head small { font-weight: 400; color: var(--muted); font-size: 11px; }
.user-menu .menu a, .user-menu .menu-quit {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
}
.user-menu .menu a:hover, .user-menu .menu-quit:hover { background: var(--paper-3); }
.user-menu .menu-quit { color: var(--accent); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex: none;
  letter-spacing: 0;
}
.avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }

/* ---------------- 主体容器 ---------------- */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 110px;
}

/* ---------------- 公告条 ---------------- */
.announce-block {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 90px;
  box-sizing: border-box;
}
.band {
  background: var(--gold);
  color: #2a2406;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 32px;
  gap: 20px;
}
.band-left { display: flex; align-items: center; gap: 12px; }
.band-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #4a3500;
  color: var(--gold);
  border-radius: 3px;
}
.band-left b { font-size: 14px; letter-spacing: .06em; }
.band-sub { font-size: 11.5px; opacity: .72; letter-spacing: .04em; }
.band-more { font-size: 12px; letter-spacing: .06em; border-bottom: 1px solid rgba(42, 36, 6, .35); }
.band-more:hover { border-color: #2a2406; }

.announce-list { border-bottom: 1px solid var(--line); }
.ann-row a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 22px;
  padding: 17px 36px;
  border-top: 1px solid var(--line);
  transition: background .2s;
}
.ann-row:first-child a { border-top: 0; }
.ann-row a:hover { background: rgba(255, 255, 255, .45); }
.ann-flag {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid rgba(191, 68, 41, .35);
  border-radius: 2px;
  text-align: center;
  padding: 3px 0;
}
.ann-row.is-pinned .ann-flag { background: var(--accent); color: #fff; border-color: var(--accent); }
.ann-row.is-empty {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 36px;
  border-top: 0;
}
.ann-row.is-empty .ann-flag { color: var(--muted-2); border-color: var(--line-2); }
.ann-row.is-empty .ann-main b { color: var(--ink-2); font-weight: 500; }
.ann-row.is-empty .ann-main small { color: var(--muted-2); }

.empty-block {
  border: 1px dashed var(--line-2);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .25);
}
.empty-block b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.empty-block p { font-size: 12.5px; line-height: 1.9; }
.ann-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.ann-main b {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-main small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-row time { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.chev { color: var(--muted-2); font-size: 18px; }

/* ---------------- 首页精选 ---------------- */
.featured { margin-bottom: 100px; }
.feat-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.feat-cover .cover { box-shadow: var(--shadow); }
.feat-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}
.sep { color: var(--muted-2); }
.feat-tags {
  margin: 14px 0 18px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--accent);
}
.feat-title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 22px;
  max-width: 15em;
}
.feat-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 18px;
}
.feat-marks {
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 28px;
}
.mark-live { position: relative; padding-left: 12px; }
.mark-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.read-link .arrow-d { transition: transform .25s; }
.read-link:hover .arrow-d { transform: translate(3px, 3px); }

/* ---------------- 封面 ---------------- */
.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--cover, #4f6880);
  color: #f7f2e9;
  overflow: hidden;
  border-radius: 1px;
  isolation: isolate;
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 上传的封面：原图直出，不叠加任何文字或边框 */
.cover.has-image, .acover.has-image { background: var(--paper-3); }
.acover.has-image::after { display: none; }
.cover-inner {
  position: relative;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.cover-badge {
  position: absolute;
  top: 18px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: #e0462a;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .1em;
  z-index: 2;
}
.cover-badge i { width: 4px; height: 4px; border-radius: 50%; background: #fff; display: inline-block; }
.cover-badge.is-done { background: rgba(0, 0, 0, .28); }
.cover-badge.is-draft { background: rgba(0, 0, 0, .2); }
.cover-season {
  position: absolute;
  top: 21px;
  right: 18px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(247, 242, 233, .75);
}
.cover-main {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cover-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
}
.cover-sub { font-size: 11.5px; letter-spacing: .1em; color: rgba(247, 242, 233, .8); }
.cover-motifs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px 6px;
}
.motif { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.motif i { display: block; width: 100%; max-width: 54px; }
.motif svg { width: 100%; height: auto; display: block; }
.motif b {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(247, 242, 233, .72);
  white-space: nowrap;
}
.cover-foot {
  border-top: 1px solid rgba(247, 242, 233, .25);
  padding-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(247, 242, 233, .72);
}
.cover-foot em {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: .22em;
  color: rgba(247, 242, 233, .45);
}
.cover.is-mini { width: 56px; }
.cover.is-mini .cover-inner { padding: 6px; }
.cover.is-mini .cover-name { font-size: 10px; }
.cover.is-mini .cover-main { margin-top: 8px; }
.cover.is-mini .cover-sub, .cover.is-mini .cover-motifs, .cover.is-mini .cover-foot, .cover.is-mini .cover-season { display: none; }
.cover.is-mini .cover-badge { position: static; font-size: 0; padding: 0; width: 5px; height: 5px; }

/* 文章封面 */
.acover {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--acover, #334155);
  color: #f7f2e9;
  overflow: hidden;
  display: block;
}
.acover::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(247, 242, 233, .18);
  pointer-events: none;
}
.acover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acover-inner { position: relative; height: 100%; padding: 20px 18px; display: flex; flex-direction: column; }
.acover-label {
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(247, 242, 233, .62);
}
.acover-title {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .05em;
  padding-bottom: 12px;
}
.acover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(247, 242, 233, .25);
  padding-top: 8px;
  font-size: 8px;
  letter-spacing: .2em;
  color: rgba(247, 242, 233, .5);
}
.acover-foot b { font-size: 10px; letter-spacing: .1em; color: rgba(247, 242, 233, .78); }

/* ---------------- 刊物卡片 ---------------- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 30px;
}
.issue-card { display: block; }
.issue-card .cover { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.issue-card:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.card-state.is-open { color: var(--accent); }
.card-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
.card-tags { font-size: 11.5px; color: var(--accent); letter-spacing: .08em; margin-top: 4px; }
.card-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.card-foot .arrow { transition: transform .25s; }
.issue-card:hover .card-foot .arrow { transform: translateX(4px); color: var(--ink); }

/* ---------------- 页头（列表页） ---------------- */
.page-head { margin: 54px 0 40px; }
.ph-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 26px;
}
.ph-row h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .02em;
}
.ph-row p {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  text-align: right;
  letter-spacing: .04em;
}

/* ---------------- 筛选 ---------------- */
.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 190px;
  gap: 22px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.search, .search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .35);
  padding: 0 14px;
  height: 44px;
  color: var(--muted);
}
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 13.5px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.field-inline { display: flex; flex-direction: column; gap: 6px; }
.field-inline span { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.field-inline select {
  height: 44px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .35);
  padding: 0 12px;
  font-size: 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.result-count { margin: 26px 0 22px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.result-count b { color: var(--ink); font-weight: 600; }

/* ---------------- 刊物详情 ---------------- */
.issue-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 54px 0 40px;
}
.ih-cover .cover { box-shadow: var(--shadow); }
.ih-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.ih-tags { margin: 16px 0 12px; font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.ih-body h1 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .01em;
  max-width: 14em;
}
.ih-desc { margin: 20px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 32em; }
.ih-meta {
  margin: 26px 0 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .06em;
  max-width: 22em;
}
.ih-actions { display: flex; gap: 12px; }

.vote-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.vs-icon { color: var(--accent); display: flex; }
.vote-strip b { font-weight: 600; }
.vote-strip .vs-time { color: var(--muted); margin-left: auto; font-size: 11.5px; }
.vote-strip em { font-style: normal; color: var(--muted); font-size: 11.5px; }

.editors { padding: 70px 0 60px; border-bottom: 1px solid var(--line); max-width: 820px; }
.ed-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
  margin: 22px 0 22px;
}
.ed-text {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 38em;
}
.ed-text p { margin-bottom: 12px; }
.editors .read-link { margin-top: 22px; }

.toc { padding: 64px 0 40px; }
.toc-hint { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 30px;
}
.toc-item { display: flex; flex-direction: column; }
.toc-link { display: block; }
.toc-link .acover { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.toc-link:hover .acover { transform: translateY(-4px); box-shadow: var(--shadow); }
.toc-meta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 6px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.toc-read { color: var(--ink-2); }
.toc-item h4 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}
.toc-item p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vote-btn {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(191, 68, 41, .4);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: .1em;
  cursor: pointer;
}
.vote-btn:hover { border-color: var(--accent); }
.vote-btn[disabled] { color: var(--muted-2); border-color: var(--line); cursor: default; }

/* 投票榜 */
.vote-panel { padding: 56px 0; border-top: 1px solid var(--line); }
.vote-panel .sec-row h2 { display: flex; align-items: center; gap: 10px; }
.trophy { font-size: 22px; }
.vote-hint { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.vote-locked {
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  padding: 44px 24px;
  text-align: center;
}
.vote-locked .lock { color: var(--muted-2); margin-bottom: 12px; }
.vote-locked b { display: block; font-size: 14.5px; font-family: var(--serif); margin-bottom: 8px; }
.vote-locked p { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 2fr) 44px;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.rank-no { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.rank-title { font-family: var(--serif); font-size: 16px; }
.mine-tag {
  font-style: normal;
  font-family: var(--sans);
  font-size: 9.5px;
  padding: 2px 6px;
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  letter-spacing: .08em;
  border-radius: 2px;
  vertical-align: middle;
}
.rank-bar { height: 5px; background: var(--paper-3); position: relative; }
.rank-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.rank-list li.is-mine .rank-bar i { background: var(--accent); }
.rank-num { text-align: right; font-size: 12.5px; color: var(--muted); }
.vote-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); letter-spacing: .05em; }
.fine-print { font-size: 11px; color: var(--muted-2); letter-spacing: .06em; text-align: center; padding: 40px 0 10px; }

/* ---------------- 文章页 ---------------- */
.is-article .site-main { max-width: 900px; }
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.progress-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .12s linear; }
.art-wrap { padding-top: 34px; }
.art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .05em;
}
.back-link { color: var(--muted); border-bottom: 1px solid transparent; }
.back-link:hover { color: var(--ink); border-color: currentColor; }
.art-tags { letter-spacing: .12em; }
.art-head { text-align: center; padding: 58px 0 34px; }
.art-no { font-size: 10.5px; letter-spacing: .28em; color: var(--accent); margin-bottom: 18px; }
.art-head h1 {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
}
.art-tagline { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.art-meta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .05em;
}
.art-meta span + span::before { content: "·"; margin-right: 16px; color: var(--muted-2); }
.art-cover {
  max-width: 420px;
  margin: 0 auto 44px;
  box-shadow: var(--shadow);
}
.reading-bar {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
}
.font-ctl { display: flex; gap: 6px; }
.font-ctl button {
  background: none;
  border: 1px solid var(--line-2);
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.font-ctl button:hover { border-color: var(--ink); }
.prose {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: var(--reading-size, 19px);
  line-height: 2.05;
  color: #241f18;
  padding: 52px 0 20px;
  letter-spacing: .01em;
}
.prose p { margin-bottom: 1.5em; }
.prose strong { font-weight: 700; }
.prose em { font-style: normal; color: var(--accent); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--line-2);
  color: var(--ink-2);
}
.prose ul { margin: 1.2em 0; padding-left: 1.2em; list-style: disc; }
.prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--paper-3);
  padding: .1em .35em;
}
.prose .md-h { font-size: 1.15em; margin: 1.8em 0 .8em; letter-spacing: .04em; }

/* 正文插图：整段大图 / 行内小图 */
.prose-figure {
  margin: 2.2em 0;
  text-align: center;
  break-inside: avoid;
}
.prose-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}
.prose-figure figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
}
.art-nav {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.art-nav a { display: flex; flex-direction: column; gap: 4px; }
.art-nav a.next { text-align: right; align-items: flex-end; }
.art-nav small { font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.art-nav b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.art-nav a:hover b { color: var(--accent); }

/* ---------------- 公告列表 / 详情 ---------------- */
.notice-list { border-top: 1px solid var(--line); }
.notice-row a {
  display: grid;
  grid-template-columns: 48px 1fr 26px;
  gap: 22px;
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.notice-row a:hover { background: rgba(255, 255, 255, .45); }
.n-no { font-size: 11px; color: var(--muted-2); letter-spacing: .1em; padding-top: 6px; }
.n-main { display: flex; flex-direction: column; gap: 6px; }
.n-meta { font-size: 11px; color: var(--muted); letter-spacing: .05em; display: flex; gap: 10px; align-items: center; }
.pin { font-style: normal; color: var(--accent); }
.n-main b { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.4; }
.n-main small { font-size: 12.5px; color: var(--muted); }
.n-arrow { justify-self: end; color: var(--muted); transition: transform .25s; padding-top: 14px; }
.notice-row a:hover .n-arrow { transform: translateX(4px); color: var(--ink); }

.notice-wrap { max-width: 760px; margin: 0 auto; padding-top: 34px; }
.notice-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.notice-head h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.3;
  margin: 14px 0 0;
  letter-spacing: .01em;
}
.notice-head .art-meta { justify-content: flex-start; margin-top: 16px; }
.prose-notice { font-size: 16.5px; line-height: 2; }
.prose-notice p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; }

/* ---------------- 评论 ---------------- */
.discussion { max-width: 760px; margin-left: auto; margin-right: auto; padding: 56px 0 20px; border-top: 1px solid var(--line); margin-top: 40px; }
.disc-tools { display: flex; gap: 10px; align-items: center; }
.disc-tools select {
  height: 34px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 11.5px;
  padding: 0 10px;
  appearance: none;
  color: var(--ink-2);
}
.search-inline { height: 34px; padding: 0 10px; gap: 7px; }
.search-inline input { border: 0; background: none; outline: none; font-size: 12px; width: 168px; color: var(--ink); }
.comment-form {
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-bottom: 30px;
}
.cf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.cf-title b { color: var(--ink); }
.cf-reply-hint { color: var(--accent); margin-left: 6px; }
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus { border-color: var(--ink); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; }
.emoji-row { display: flex; gap: 2px; flex-wrap: wrap; }
.emoji {
  border: 0;
  background: none;
  font-size: 15px;
  padding: 3px 5px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  filter: grayscale(.15);
  transition: transform .15s, background .15s;
}
.emoji:hover { background: var(--paper-3); transform: scale(1.15); filter: none; }
.comment-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.comment-guest div { display: flex; gap: 8px; }
.comment-list { display: flex; flex-direction: column; }
.comment {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.comment:first-child { border-top: 0; }
.c-main { min-width: 0; flex: 1; }
.c-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.c-head b { font-weight: 600; }
.c-head time { font-size: 11px; color: var(--muted-2); margin-left: 4px; }
.c-badge {
  font-size: 9.5px;
  letter-spacing: .08em;
  padding: 1px 6px;
  background: var(--gold-soft);
  color: #6b5200;
  border: 1px solid rgba(198, 150, 0, .3);
}
.c-body { font-size: 14px; line-height: 1.85; margin-top: 5px; word-break: break-word; }
.c-body p { margin: 0 0 .3em; }
.c-actions { display: flex; gap: 14px; margin-top: 6px; }
.c-children { margin: 12px 0 0; padding-left: 16px; border-left: 1px solid var(--line); }
.c-children .comment { padding: 12px 0 0; border: 0; }
.c-children .comment:first-child { padding-top: 0; }
.comment.is-hidden { display: none; }

/* ---------------- 登录 / 注册 ---------------- */
body.is-auth::before { display: none; }
.is-auth .site-main { max-width: none; padding: 0; }
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
.auth-aside {
  position: relative;
  background: #6a6862;
  color: #efe9dd;
  padding: 64px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-mark img { border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.auth-quote { max-width: 30em; margin: auto 0; padding: 40px 0; }
.auth-quote h2 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: .02em;
  margin: 22px 0 26px;
}
.auth-quote p { font-size: 13px; line-height: 2; color: rgba(239, 233, 221, .72); max-width: 26em; }
.auth-ornament {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .02) inset;
}
.auth-panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-form { width: 100%; max-width: 360px; }
.auth-form .eyebrow { border: 0; padding: 0; margin-bottom: 12px; }
.auth-form h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.auth-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); }
.field > span em { font-style: normal; color: var(--accent); font-size: 10px; }
.field > span em.opt { color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  border-radius: 2px;
}
.field textarea { line-height: 1.8; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); background: #fff; }
.field input[type="color"] { padding: 3px; height: 38px; max-width: 96px; cursor: pointer; }
.field input[type="file"] { padding: 8px; font-size: 12px; }
.field .hint, .hint-block { font-size: 11px; color: var(--muted); line-height: 1.6; }
.auth-form form { margin-top: 6px; }
.auth-form .btn { margin-top: 14px; }
.auth-alt { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-alt a { border-bottom: 1px solid var(--accent); color: var(--accent); }
.form-error {
  background: #fbe6e0;
  border: 1px solid #eec4b8;
  color: #8c2f1b;
  padding: 9px 12px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check input { width: auto; }

/* ---------------- 我也想写 ---------------- */
.write-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
  padding-top: 10px;
}
.write-main h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 44px 0 16px;
}
.write-main h2:first-child { margin-top: 0; }
.write-main p { font-size: 14px; line-height: 2; color: var(--ink-2); margin-bottom: 12px; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 2px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
}
.steps b { font-family: var(--serif); font-size: 15.5px; margin-right: 6px; }
.side-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
  padding: 22px;
  margin-bottom: 18px;
}
.side-card .eyebrow { border: 0; padding: 0; margin-bottom: 10px; font-size: 10px; }
.side-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.side-tags { font-size: 11.5px; color: var(--accent); letter-spacing: .1em; margin: 6px 0 10px; }
.side-card p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.side-card.muted { background: transparent; }

.manifesto {
  margin-top: 90px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.mf-quote {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.manifesto p { font-size: 13px; color: var(--muted); max-width: 40em; margin: 0 auto 22px; }

/* 首页只剩这一段时，作为整页的主视觉 */
.manifesto.is-standalone {
  margin-top: 0;
  padding: 150px 0 170px;
  border-top: 0;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.manifesto.is-standalone .mf-quote { font-size: 40px; margin-bottom: 22px; }
.manifesto.is-standalone p { font-size: 14px; line-height: 2; margin-bottom: 30px; }

/* 内容不足一屏时，页脚也贴着底部 */
body:not(.admin) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.admin) > .site-main { flex: 1 0 auto; }
body:not(.admin) > .site-foot { margin-top: auto; }

.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-family: var(--serif); font-size: 38px; font-weight: 500; margin: 18px 0; }
.not-found p { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------------- 页脚 ---------------- */
.site-foot {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: rgba(242, 237, 227, .72);
  margin-top: 40px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 60px;
}
.foot-brand img { height: 22px; margin-bottom: 16px; }
.foot-brand p { font-size: 12px; line-height: 2; max-width: 30em; color: rgba(242, 237, 227, .5); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { font-size: 10.5px; letter-spacing: .18em; color: var(--gold); margin-bottom: 12px; font-weight: 500; }
.foot-cols a, .foot-cols span {
  display: block;
  font-size: 12.5px;
  padding: 3px 0;
  color: rgba(242, 237, 227, .72);
}
.foot-cols a:hover { color: #fff; }
.foot-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(242, 237, 227, .35);
}

/* ---------------- 弹窗 / toast ---------------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(30, 24, 16, .42);
  backdrop-filter: blur(1px);
  padding: 20px;
}
.modal-root[hidden] { display: none; }
.modal {
  width: min(520px, 100%);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(20, 14, 6, .7);
  padding: 0;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: 0; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.modal-foot { padding: 14px 20px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.toast-root { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  animation: fadein .2s ease-out;
}
.toast.is-err { background: var(--accent); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* =====================================================================
   管理后台
   ===================================================================== */
body.admin { background: var(--paper-3); }
body.admin::before { display: none; }
.admin-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--dark);
  color: rgba(242, 237, 227, .78);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  z-index: 30;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.admin-brand img { border-radius: 7px; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.3; }
.admin-brand b { font-family: var(--serif); font-size: 16px; color: #f4efe5; letter-spacing: .08em; }
.admin-brand small { font-size: 9.5px; letter-spacing: .2em; color: rgba(242, 237, 227, .4); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 4px;
  color: rgba(242, 237, 227, .66);
  transition: background .18s, color .18s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.admin-nav a.is-active { background: rgba(247, 188, 0, .14); color: var(--gold); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.admin-view-site {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(242, 237, 227, .45);
  padding: 0 6px;
}
.admin-view-site:hover { color: var(--gold); }
.admin-user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 14px;
}
.admin-user-name { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.admin-user-name b { font-size: 12.5px; color: #f4efe5; font-weight: 500; }
.admin-user-name small { font-size: 10px; color: rgba(242, 237, 227, .4); }
.admin-user .link-btn { color: rgba(242, 237, 227, .45); font-size: 11px; }

.admin-main { margin-left: 232px; min-height: 100vh; padding: 34px 40px 80px; max-width: 1280px; }
.admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 26px;
}
.crumbs { font-size: 11px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.admin-top h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .01em; }
.admin-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.admin-actions { display: flex; gap: 10px; flex: none; }
.admin-content { display: flex; flex-direction: column; gap: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s, transform .2s;
}
.stat:hover { border-color: var(--ink); transform: translateY(-1px); }
.stat small { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.stat b { font-family: var(--serif); font-size: 40px; line-height: 1.1; font-weight: 500; }
.stat.is-alert { border-color: rgba(191, 68, 41, .5); }
.stat.is-alert b { color: var(--accent); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 20px 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.panel-head small { font-size: 11px; color: var(--muted); }

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list b { font-size: 13px; }
.mini-list small { font-size: 11px; color: var(--muted); }
.mini-note { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.mini-target { color: var(--muted-2); }
.mini-actions { display: flex; gap: 6px; align-items: flex-start; flex: none; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255, 255, 255, .5); }
.admin-table b { font-weight: 600; display: block; }
.admin-table small { display: block; font-size: 11px; color: var(--muted); }
.admin-table .right { text-align: right; }
.row-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.row-actions form { display: block; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .muted { color: var(--muted-2); font-size: 11px; }
.cell-cover { width: 64px; }
.cell-cover .cover { width: 46px; }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-comment p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }

.pill {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  border-radius: 2px;
  white-space: nowrap;
}
.pill-on { border-color: rgba(55, 164, 155, .5); color: #1f7a72; background: rgba(55, 164, 155, .08); }
.pill-ok { border-color: rgba(55, 164, 155, .5); color: #1f7a72; }
.pill-off { border-color: rgba(191, 68, 41, .4); color: var(--accent); }
.pill-open { border-color: var(--gold-2); color: #7a5c00; background: rgba(247, 188, 0, .12); }
.pill-published, .pill-closed { border-color: rgba(55, 164, 155, .45); color: #1f7a72; }
.pill-draft { border-color: var(--line-2); color: var(--muted); }
.pill-mini { font-size: 9px; padding: 0 5px; margin-left: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-grid .span-2 { grid-column: span 2; }
.panel .field { margin-bottom: 14px; }
.panel .field:last-child { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 0; }
.hint-block { margin: -6px 0 12px; }
.img-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, .4);
}
.img-tools input[type="file"] { font-size: 12px; max-width: 260px; }
.img-tools .hint { font-size: 11px; color: var(--muted); }

/* 编辑器：拖拽高亮 + 实时预览 */
textarea.is-dragover {
  border-color: var(--gold-2) !important;
  background: #fffdf5 !important;
  box-shadow: 0 0 0 3px rgba(247, 188, 0, .18);
}
textarea.is-uploading { opacity: .65; }
.editor-preview-wrap { margin-top: 16px; }
.editor-preview-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.editor-preview-label small { letter-spacing: .04em; color: var(--muted-2); font-size: 11px; }
.editor-preview {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 22px;
  max-height: 560px;
  overflow: auto;
}
.editor-preview p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 12px;
  color: #241f18;
}
.editor-preview .prose-figure { margin: 14px 0; }
.editor-preview .prose-figure figcaption { font-size: 11px; }
.editor-preview .pv-empty { color: var(--muted-2); font-size: 13px; font-family: var(--sans); }
.cover-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cover-preview img { width: 70px; border: 1px solid var(--line); }
.side-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-note h3 { font-family: var(--serif); font-size: 15px; margin-bottom: 8px; }
.side-note p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.side-note code { font-size: 11px; background: var(--paper-3); padding: 1px 4px; }

.pending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pending-card { border: 1px solid var(--line); padding: 16px; background: var(--paper); }
.pending-card header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pending-card header b { font-family: var(--serif); font-size: 17px; }
.pending-card header small { font-size: 11px; color: var(--muted); }
.pending-card dl { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.pending-card dl div { display: flex; gap: 10px; font-size: 12px; }
.pending-card dt { color: var(--muted); width: 54px; flex: none; }
.pending-card dd { margin: 0; color: var(--ink-2); }
.pending-card footer { display: flex; gap: 8px; }

/* ---------------- 投稿页 ---------------- */
.submit-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.submit-form { background: var(--paper-2); }
.form-ok {
  background: #eaf6f3;
  border: 1px solid #b9e0d8;
  color: #1f6f66;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.submit-side .side-card { background: rgba(255, 255, 255, .45); }
.mine-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mine-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.mine-list li:first-child { border-top: 0; padding-top: 0; }
.mine-list b { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.mine-list small { font-size: 11px; color: var(--muted); }
.sub-status {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  border-radius: 2px;
}
.sub-status.is-pending { border-color: var(--gold-2); color: #7a5c00; background: rgba(247, 188, 0, .1); }
.sub-status.is-approved { border-color: rgba(55, 164, 155, .5); color: #1f7a72; }
.sub-status.is-rejected { border-color: rgba(191, 68, 41, .4); color: var(--accent); }

/* 上传进度条（保存带文件的表单时出现） */
.upload-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(28, 23, 16, .94);
  color: #f4efe5;
  font-size: 12px;
  letter-spacing: .1em;
  text-align: center;
  padding: 10px 16px 12px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.upload-bar[hidden] { display: none; }
.upload-bar span { display: block; margin-bottom: 6px; }
.upload-bar i {
  display: block;
  height: 3px;
  width: 0;
  background: var(--gold);
  transition: width .2s ease;
  margin: 0 auto;
  max-width: 520px;
}

/* ---------------- 账号设置 ---------------- */
.account-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; max-width: 980px; }
.account-card { background: var(--paper-2); }
.acc-avatar { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.acc-avatar-preview .avatar-lg { width: 86px; height: 86px; font-size: 30px; border-radius: 50%; }
.acc-avatar-side { flex: 1; min-width: 0; }
.acc-avatar-side .field { margin-bottom: 8px; }
.avatar-img { object-fit: cover; display: block; }
.menu-name { font-weight: 600; }
.menu-bio { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.inline-link { color: var(--accent); border-bottom: 1px solid rgba(191, 68, 41, .35); }
.inline-link:hover { border-color: var(--accent); }
.admin-user-link { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.admin-user-link:hover .admin-user-name b { color: var(--gold); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .issue-grid, .toc-grid { gap: 34px 22px; }
  .feat-grid, .issue-hero { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .feat-title { font-size: 40px; }
  .ih-body h1 { font-size: 36px; }
  .admin-main { padding: 28px 24px 70px; }
}
@media (max-width: 860px) {
  .head-inner { padding: 8px 16px; height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 2px; gap: 8px; }
  .brand-text small { display: none; }
  .brand-word { height: 19px; }
  .head-nav { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .head-nav .nav-link:not(.pill) { display: inline-block; font-size: 12.5px; padding: 5px 8px; }
  .nav-link.pill { padding: 5px 10px; font-size: 12.5px; }
  .head-nav .btn-sm { padding: 5px 12px; font-size: 12px; }
  .site-main { padding: 0 20px 80px; }
  .announce-block { margin-bottom: 60px; }
  .band { padding: 12px 20px; }
  .band-sub { display: none; }
  .ann-row a { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 14px 20px; }
  .ann-row time { display: none; }
  .feat-grid, .issue-hero { grid-template-columns: 1fr; }
  .feat-cover, .ih-cover { max-width: 240px; }
  .issue-grid, .toc-grid, .write-grid, .filter-bar, .form-grid, .admin-cols, .stat-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .filter-bar { gap: 12px; }
  .ph-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ph-row h1 { font-size: 38px; }
  .ph-row p { text-align: left; }
  .auth-wrap { grid-template-columns: 1fr; min-height: auto; }
  .auth-aside { display: none; }
  .auth-panel { padding: 50px 22px; }
  .foot-inner { grid-template-columns: 1fr; gap: 34px; padding: 40px 20px 30px; }
  .foot-base { padding: 14px 20px 22px; flex-direction: column; gap: 6px; }
  .prose { font-size: 17px; }
  .art-head h1 { font-size: 38px; }
  .sec-row h2 { font-size: 26px; }
  .feat-title { font-size: 32px; }
  .ih-body h1 { font-size: 30px; }
  .ed-title { font-size: 26px; }
  .admin-side { position: static; width: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 14px; }
  .admin-brand, .admin-side-foot { display: none; }
  .admin-nav { flex-direction: row; }
  .admin-main { margin-left: 0; }
}

@media (max-width: 700px) {
  .head-inner { flex-direction: column; align-items: flex-start; padding: 10px 16px 9px; gap: 6px; height: auto; min-height: 0; }
  .head-nav { width: 100%; max-width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 2px; }
  .brand-word { height: 20px; }
  .brand-text small { display: none; }
  .band { flex-wrap: wrap; row-gap: 4px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .toc-grid { gap: 30px 18px; }
  .art-head h1 { font-size: 32px; }
  .art-meta { flex-wrap: wrap; gap: 8px 12px; }
  .art-meta span + span::before { margin-right: 12px; }
  .disc-tools { width: 100%; }
  .search-inline input { width: 100%; }
  .rank-list li { grid-template-columns: 26px minmax(0, 1fr) 52px; }
  .rank-bar { display: none; }
  .prose { font-size: 16.5px; }
}

/* ---------------- 通知铃铛 ---------------- */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: 6px; color: #f4efe5; border-radius: 50%; transition: background .18s ease; }
.bell:hover { background: rgba(255, 255, 255, .12); }
.bell-dot { position: absolute; top: -1px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d8432a; color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center; font-weight: 600; box-shadow: 0 0 0 2px var(--ink); }
.bell.has-unread svg { animation: bell-nudge 2.4s ease-in-out infinite; }
@keyframes bell-nudge { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-9deg); } 96% { transform: rotate(9deg); } 98% { transform: rotate(-5deg); } }

/* ---------------- 通知页 ---------------- */
.nt-shell { max-width: 860px; }
.nt-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nt-tab { position: relative; padding: 9px 16px; font-size: 13px; color: var(--nav); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.nt-tab b { font-size: 10px; background: #d8432a; color: #fff; border-radius: 8px; padding: 1px 5px; font-weight: 600; }
.nt-tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.nt-sub { display: flex; gap: 14px; margin-bottom: 16px; }
.nt-subtab { font-size: 12.5px; color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s; }
.nt-subtab.is-on { border-bottom-color: #d8432a; }
.nt-subtab.is-unread { color: #d8432a; font-weight: 600; }
.nt-subtab:hover { color: var(--accent); }
.nt-panel { margin-bottom: 18px; }
.nt-row-list, .nt-request-list { list-style: none; margin: 0; padding: 0; }
.nt-row { border-top: 1px solid var(--line); }
.nt-row:first-child { border-top: 0; }
.nt-row a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; }
.nt-row a:hover { background: rgba(0, 0, 0, .025); }
.nt-row.is-new .nt-main b { font-weight: 700; }
.nt-row.is-new { position: relative; }
.nt-row.is-new::before { content: ''; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: #d8432a; }
.nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-main b { font-weight: 500; font-size: 13.5px; font-family: var(--sans); display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-main small { font-size: 11px; color: var(--muted); }
.nt-badge { font-size: 10px; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--muted); border-radius: 2px; flex: none; }
.nt-badge.nt-editorial { border-color: rgba(191, 68, 41, .4); color: var(--accent); }
.nt-count { font-style: normal; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; background: #d8432a; color: #fff; padding: 0 4px; }
.nt-empty { color: var(--muted); font-size: 12.5px; padding: 14px 2px; }
.nt-request { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.nt-request:first-child { border-top: 0; }
.nt-request-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nt-request-main b { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.nt-request-main small { font-size: 11px; color: var(--muted); }
.nt-request-actions { display: flex; gap: 8px; }
.nt-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.nt-detail { max-width: 720px; }
.nt-letter { background: var(--paper-2); border: 1px solid var(--line); padding: 26px 28px; }
.nt-letter-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.nt-letter-head b { font-family: var(--serif); font-size: 17px; }
.nt-letter-body p { font-size: 14px; line-height: 1.95; margin: 0 0 12px; }
.nt-back { margin-top: 18px; font-size: 12px; }

/* ---------------- 个人主页 ---------------- */
.prof-hero { max-width: 940px; margin: 0 auto 30px; }
.prof-cover { position: relative; height: 260px; background: linear-gradient(135deg, #5b5750, #2f2b26); overflow: hidden; border-radius: 2px; }
.prof-cover-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.prof-cover-btn:hover .prof-cover-img { filter: brightness(1.04); }
.prof-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s ease; }
.prof-cover-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 11px; letter-spacing: .18em; color: rgba(244, 239, 229, .45); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 12px); }
.prof-id { position: relative; display: flex; gap: 20px; align-items: flex-end; padding: 0 28px; margin-top: -46px; flex-wrap: wrap; }
.prof-id .avatar-xl { width: 108px; height: 108px; border-radius: 50%; border: 4px solid var(--paper); font-size: 34px; box-shadow: var(--shadow); }
.prof-id-text { flex: 1; min-width: 220px; padding-top: 52px; }
.prof-id-text h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 4px; }
.prof-handle { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.prof-bio { font-size: 14px; margin: 10px 0 6px; line-height: 1.8; }
.prof-meta { font-size: 11.5px; color: var(--muted); }
.prof-actions { display: flex; gap: 10px; padding-bottom: 14px; flex-wrap: wrap; }
.prof-actions form { margin: 0; }
.prof-edit { max-width: 760px; }
.prof-cover-preview { height: 150px; background: var(--paper-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; margin-bottom: 8px; }
.prof-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.acc-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.acc-identity b { font-family: var(--serif); font-size: 17px; display: block; }
.acc-identity small { font-size: 11px; color: var(--muted); }

/* ---------------- 好友 / 私信 ---------------- */
.friend-list, .msg-conv-list { list-style: none; margin: 0; padding: 0; }
.friend-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.friend-row:first-child { border-top: 0; }
.friend-id { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.friend-id span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friend-id b { font-family: var(--serif); font-size: 15px; }
.friend-id small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv { border-top: 1px solid var(--line); }
.msg-conv:first-child { border-top: 0; }
.msg-conv a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: inherit; }
.msg-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-conv-main b { font-family: var(--serif); font-size: 15px; }
.msg-conv-main small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv time { font-size: 10.5px; color: var(--muted); flex: none; }
.msg-conv.is-unread .msg-conv-main b { color: var(--accent); }
.msg-thread { max-width: 760px; }
.msg-bubbles { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.msg-bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-bubble-row.is-mine { justify-content: flex-end; }
.msg-bubble { background: var(--paper-2); border: 1px solid var(--line); padding: 9px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.75; max-width: 70%; }
.msg-bubble-row.is-mine .msg-bubble { background: var(--ink); color: #f4efe5; border-color: var(--ink); }
.msg-form textarea { width: 100%; }
.msg-blocked { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* @ 提到好友：输入时弹出的候选 */
.mention-pop { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 180px; max-height: 220px; overflow-y: auto; }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; background: none; border: 0; font-size: 12.5px; text-align: left; cursor: pointer; }
.mention-pop button:hover, .mention-pop button.is-on { background: var(--paper-2); }
.mention-pop .avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.comment:target { background: rgba(247, 188, 0, .12); box-shadow: 0 0 0 8px rgba(247, 188, 0, .12); border-radius: 3px; }

.auth-mail-to { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
.auth-mail-to b { color: var(--ink); font-weight: 600; }
.auth-resend { margin-top: 12px; }
.auth-resend .link-btn { font-size: 12px; }

/* 评论头像 / 名字 → 个人主页 */
.c-avatar { flex: none; display: inline-flex; text-decoration: none; }
.c-avatar:hover .avatar { box-shadow: 0 0 0 2px var(--gold); }
.c-name { color: inherit; text-decoration: none; }
.c-name:hover b { color: var(--accent); }

/* ---------------- 收藏 ---------------- */
.art-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.art-title-row h1 { margin: 0; }
.bookmark-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  opacity: .32;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.bookmark-btn:hover { opacity: .85; background: rgba(0, 0, 0, .05); transform: translateY(-1px); }
.bookmark-btn.is-on { opacity: 1; }
.bookmark-btn.is-on svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
.bookmark-btn.pop { animation: bm-pop .32s ease; }
@keyframes bm-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }

.prof-section { max-width: 940px; margin: 34px auto 10px; }
.prof-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.prof-section-head h2 { font-family: var(--serif); font-size: 20px; margin: 0; }
.prof-section-head small { font-size: 11.5px; color: var(--muted); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.bm-card { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.bm-card b { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.4; }
.bm-card small { font-size: 11px; color: var(--muted); }
.bm-card .bm-cover { transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-sm, 0 2px 10px -6px rgba(0,0,0,.5)); }
.bm-card:hover .bm-cover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.bm-card:hover b { color: var(--accent); }

/* ---------------- 评论点赞 ---------------- */
.like-wrap { position: relative; display: inline-flex; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.like-btn:hover { color: var(--accent); background: rgba(191, 68, 41, .07); }
.like-btn.is-on { color: var(--accent); }
.like-btn.is-on svg { filter: drop-shadow(0 0 4px rgba(191, 68, 41, .35)); }
.like-btn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.like-btn.pop { animation: like-pop .34s ease; }
@keyframes like-pop { 0% { transform: scale(.75); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
.like-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  white-space: nowrap;
  background: rgba(28, 23, 16, .94);
  color: #f4efe5;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 30;
}
.like-wrap:hover .like-pop { opacity: 1; transform: translateY(0); }

/* ---------------- 讨论版 ---------------- */
.forum-block { margin: 46px 0; }
.forum-mini { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.forum-mini-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.forum-mini-row a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; }
.forum-mini-row a b { font-family: var(--serif); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-mini-row a:hover b { color: var(--accent); }
.forum-mini-row span { color: var(--muted); white-space: nowrap; }
.forum-mini-row time { color: var(--muted); font-size: 11px; white-space: nowrap; }

.th-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.th-count { font-size: 12px; color: var(--muted); }
.th-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line-2); }
.th-row { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.th-row.is-pinned { background: rgba(247, 188, 0, .06); }
.th-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; }
.th-row-main b { font-family: var(--serif); font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-row-main:hover b { color: var(--accent); }
.th-pin { flex: none; font-size: 10px; padding: 1px 5px; border-radius: 2px; background: var(--accent); color: #fff; letter-spacing: .05em; }
.th-push-count { flex: none; font-size: 10.5px; color: var(--accent); border: 1px solid rgba(191, 68, 41, .35); border-radius: 9px; padding: 1px 6px; }
.th-row-stat, .th-row-user, .th-row time { color: var(--muted); white-space: nowrap; }
.th-row-user { width: 96px; overflow: hidden; text-overflow: ellipsis; }
.th-row-tool { flex: none; }
.th-empty { padding: 30px 0; color: var(--muted); font-size: 13px; text-align: center; }

.th-new { max-width: 760px; }

.th-head { max-width: 940px; margin: 34px auto 22px; }
.th-head h1 { font-family: var(--serif); font-size: 34px; line-height: 1.35; margin: 0 0 12px; }
.th-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.th-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.th-posts { list-style: none; margin: 0 auto; padding: 0; max-width: 940px; }
.th-post { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.th-post.is-op { border-top: 2px solid var(--line-2); }
.th-side { width: 132px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.th-side .avatar { width: 78px; height: 78px; border-radius: 8px; font-size: 28px; }
.th-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: inherit; line-height: 1.3; }
.th-name:hover { color: var(--accent); }
.th-avatar { display: inline-flex; line-height: 0; }
.th-avatar:hover .avatar { box-shadow: 0 0 0 3px var(--gold); }
.th-id { display: none; }
.th-main { flex: 1; min-width: 0; }
.th-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11.5px; color: var(--muted); }
.th-floor { font-size: 11px; color: var(--accent); letter-spacing: .05em; }
.th-body p { font-size: 14.5px; line-height: 1.95; margin: 0 0 10px; color: var(--ink); }
.th-reply { max-width: 780px; margin: 32px auto 8px; padding: 18px 20px 16px; }
.th-reply-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.th-reply-head b { font-family: var(--serif); font-size: 16px; }
.th-reply-head span { font-size: 11.5px; color: var(--muted); }
.th-reply textarea { width: 100%; min-height: 84px; font-size: 14px; }
.th-reply .img-tools { padding: 8px 10px; margin-bottom: 8px; }
.th-reply .emoji-bar { margin: 6px 0 8px; }
.th-reply-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.th-login-hint { max-width: 940px; margin: 22px auto 0; font-size: 12.5px; color: var(--muted); }

.prof-thread-list { list-style: none; margin: 0; padding: 0; }
.prof-thread-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.prof-thread-list li .th-pin { align-self: center; }
.prof-thread-list li:first-child { border-top: 0; }
.prof-thread-list li { min-width: 0; }
.prof-thread-list a { font-family: var(--serif); font-size: 15px; color: inherit; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-thread-list small { flex: none; }
.prof-thread-list a:hover { color: var(--accent); }
.prof-thread-list small { font-size: 11px; color: var(--muted); }

/* 讨论版：表情条与图片 */
.emoji-bar { display: flex; gap: 2px; flex-wrap: wrap; margin: 8px 0 12px; }
.emoji-bar .emoji { font-size: 16px; }
.th-body.prose { max-width: none; margin: 0; padding: 0; letter-spacing: 0; color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.9; }
.th-body.prose p { margin: 0 0 10px; }
.th-body.prose .prose-figure { margin: 12px 0; text-align: left; }
.th-body.prose .prose-figure img { max-width: 440px; margin: 0; border-radius: 2px; }

/* ---------------- 头像裁剪 ---------------- */
.crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 12, .62);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.crop-box { width: min(420px, 100%); background: var(--paper-2); border-radius: 4px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); padding: 16px 18px 18px; }
.crop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crop-head b { font-family: var(--serif); font-size: 16px; }
.crop-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.crop-x:hover { color: var(--ink); }
.crop-stage {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #2a2622;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(247, 188, 0, .9) inset, 0 0 0 2000px rgba(20, 16, 12, .35); pointer-events: none; }
.crop-controls { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.crop-controls label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.crop-controls input[type=range] { flex: 1; accent-color: var(--ink); }
.crop-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- 图片灯箱 ---------------- */
.prof-avatar-btn { padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.prof-avatar-btn:hover .avatar { box-shadow: 0 0 0 3px var(--gold); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(16, 13, 10, .0);
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; background: rgba(16, 13, 10, .82); backdrop-filter: blur(4px); }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  transform: scale(.96);
  transition: transform .18s ease;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #f4efe5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------------- 投稿：封面 ---------------- */
.cover-field > span { display: block; margin-bottom: 8px; }
.cover-pick { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-pick-preview {
  width: 104px;
  aspect-ratio: 4 / 5;
  flex: none;
  background: var(--paper-3);
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
}
.cover-pick-preview.has-image { border-style: solid; border-color: var(--line); }
.cover-pick-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-pick-empty { font-size: 10.5px; line-height: 1.7; letter-spacing: .06em; }

/* 后台：刊物封面预览（图 + 移除按钮并排） */
.cover-preview { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cover-preview img {
  width: 92px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
  background: var(--paper-3);
}
.cover-pick-tools { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.cover-pick-tools input[type="file"] { font-size: 12px; }
.cover-pick-tools small { font-size: 11px; color: var(--muted); line-height: 1.7; }
.crop-stage.is-square { border-radius: 50%; }
.crop-stage.is-portrait { border-radius: 4px; }
/* 输入框 + 行内按钮（绑定邮箱） */
.field-send { display: flex; gap: 8px; align-items: stretch; }
.field-send input { flex: 1; min-width: 0; }
.field-send .btn { flex: none; height: 44px; white-space: nowrap; }
.acc-bind .side-note { margin-bottom: 14px; }

/* ---------------- 私信对话页 ---------------- */
.dm-page { width: min(940px, calc(100vw - 80px)); margin: 0 auto; }
.msg-thread { max-width: none; padding: 26px 28px 24px; }
.msg-bubbles { min-height: 340px; max-height: 56vh; margin-bottom: 22px; gap: 12px; }
.msg-bubble { font-size: 14.5px; max-width: 74%; }
.msg-img { display: block; max-width: 260px; max-height: 260px; border-radius: 8px; margin: 2px 0; }
.msg-form textarea { min-height: 96px; font-size: 14px; }
.msg-form .img-tools { margin-bottom: 8px; }
.msg-form .emoji-bar { margin: 6px 0 10px; }

/* 精选封面上方的状态标签（在图片外） */
.feat-cover-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; }
.feat-cover-wrap .feat-cover { display: block; width: 100%; }
.cover-badge.is-outside {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  background: #d8432a;
  color: #fff;
  font-size: 11px;
  letter-spacing: .06em;
  border-radius: 2px;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5);
}
.cover-badge.is-outside i {
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: block;
}

/* 刊物卡片 / 刊物页：状态标签移到封面外 */
.card-cover-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-cover-wrap .cover { width: 100%; }
.ih-cover { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ih-cover .cover { width: 100%; }

.dm-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.dm-back:hover { color: var(--accent); }

/* ---------------- 后记 ---------------- */
.afterword {
  max-width: 700px;
  margin: 48px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.afterword-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--muted);
  margin: 0 0 18px;
}
.afterword-body { font-size: 16px; line-height: 2; color: var(--ink); }
.afterword-body p { margin: 0 0 1.1em; }
.afterword-body p:last-child { margin-bottom: 0; }
.afterword-body figure { margin: 18px 0; }
.afterword-body img { max-width: 100%; height: auto; display: block; }

/* ---------------- 意见箱 ---------------- */
.fb-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fb-side { padding-bottom: 8px; }
.fb-history { list-style: none; margin: 0; padding: 0; }
.fb-history-item { padding: 12px 0; border-top: 1px solid var(--line); }
.fb-history-item:first-child { border-top: 0; }
.fb-history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fb-history-head time { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.fb-history-item p { font-size: 13px; line-height: 1.8; color: var(--ink); margin: 0; }
.fb-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--muted); flex: none; }
.fb-badge.is-new { border-color: rgba(191, 68, 41, .45); color: #bf4429; }
.fb-row { display: block; border-top: 1px solid var(--line); padding: 14px 2px; }
.fb-row:first-child { border-top: 0; }
.fb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fb-head .avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; }
.fb-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.fb-who b { font-size: 13px; font-weight: 600; }
.fb-who small { font-size: 11px; color: var(--muted); }
.fb-head .fb-badge { margin-left: auto; }
.fb-body { font-size: 13.5px; line-height: 1.85; color: var(--ink); margin: 0 0 8px; white-space: pre-wrap; }
.fb-actions { display: flex; gap: 14px; }
@media (max-width: 860px) {
  .fb-grid { grid-template-columns: 1fr; }
}
