/* =====================================================================
   狸猫刊 · 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; margin-left: 14px; margin-right: -18px; }
.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: flex; flex-direction: column; height: 100%; }
.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:empty { margin-top: 0; min-height: 0; }
.card-title { min-height: 1.35em; }
.card-tags { font-size: 11.5px; color: var(--accent); letter-spacing: .08em; margin-top: 4px; }
.card-foot {
  margin-top: auto;
  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);
  border-radius: 999px;
  padding: 0 16px;
  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-color: rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 0 34px 0 16px;
  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% - 22px) 19px, calc(100% - 17px) 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-weight: 700; margin: 1.8em 0 .8em; letter-spacing: .04em; }
.prose h2.md-h { font-size: 1.5em; line-height: 1.4; }
.prose h3.md-h { font-size: 1.28em; line-height: 1.45; }
.prose h4.md-h { font-size: 1.12em; line-height: 1.5; }

/* 正文插图：整段大图 / 行内小图 */
.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: 14px; border-left: 1px solid var(--line); }
.c-children .c-children { margin-left: 0; padding-left: 0; border-left: 0; }
.comment.is-reply { padding: 12px 0 0; border: 0; }
.c-more { display: block; }
.c-more[hidden] { display: none; }
.c-more-btn {
  list-style: none;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  display: inline-block;
}
.c-more-btn:hover { color: var(--ink); border-color: currentColor; }
.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; }

/* ---------------- 投稿页 ---------------- */
.issue-mobile { display: none; }
.card-actions, .card-act { display: none; }

.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: -5px; right: -10px; 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; white-space: nowrap; 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; }

/* 只发一张图片/贴图时，气泡不再画框和底色，图片本身即是内容 */
.msg-bubble-row.is-media-row .msg-bubble,
.msg-bubble-row.is-sticker-row .msg-bubble {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.msg-bubble-row.is-media-row .msg-bubble .msg-img,
.msg-bubble-row.is-sticker-row .msg-bubble .msg-img { margin: 0; }

/* @ 提到好友：输入时弹出的候选 */
.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 { width: 940px; max-width: calc(100vw - 72px); 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 6px 240px 0;
  width: 940px;
  max-width: calc(100vw - 72px);
  overflow: visible;
}
/* 滚动条默认隐藏，仅滚动时短暂出现 */
.th-posts { scrollbar-width: none; }
.th-posts::-webkit-scrollbar { width: 0; height: 0; }
.th-posts.is-scrolling { scrollbar-width: thin; }
.th-posts.is-scrolling::-webkit-scrollbar { width: 6px; }
.th-posts.is-scrolling::-webkit-scrollbar-thumb { background: rgba(32, 29, 25, .18); border-radius: 999px; }
.th-post { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.th-post.is-op { border-top: 0; }
.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 {
  width: 940px;
  max-width: calc(100vw - 72px);
  margin: 0;
  padding: 14px 20px 12px;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(32, 29, 25, .10);
}
.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-head { flex-wrap: wrap; }
.th-reply-head .img-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
}
.th-reply-head .img-tools input[type="file"] { font-size: 11.5px; }
.th-reply-head .img-tools .hint { display: none; }
.th-reply .rich-input { min-height: 62px; max-height: 180px; }
.th-reply textarea { width: 100%; min-height: 62px; }
.th-reply .emoji-bar { margin: 6px 0 8px; }
.th-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; 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; }

/* ---------------- 私信对话页 ---------------- */
/* 输入区工具行：表情 + 选图图标（PC 与手机同一套外观） */
.msg-tools { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; line-height: 0; }
.msg-tools .emoji-picker { position: relative; display: flex; align-items: center; height: 30px; }
.msg-tools .emoji-toggle { display: inline-flex; align-items: center; justify-content: center; }
.msg-img-pick {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.msg-img-pick:hover { border-color: var(--gold); color: var(--accent); }
/* 与笑脸按钮做 2px 光学对齐 */
.msg-tools .msg-img-pick { transform: translateY(-2px); }
.is-dm .site-main {
  width: 100%;
  max-width: none;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  min-height: 0;
  overflow: hidden;
}
.dm-page {
  width: min(1280px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.is-dm .page-head { margin: 28px 0 18px; flex: none; }
/* 整块面板：上方滚动区 + 下方固定输入区 */
.msg-thread {
  max-width: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

/* 蓝框：消息区，独立背景 + 可上下滚动 */
.msg-bubbles {
  flex: 1 1 0;
  min-height: 120px;
  max-height: none;
  margin: 0;
  padding: 22px 26px;
  gap: 22px;
  overflow-y: auto;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

/* 红框：输入区，固定在底部 */
.msg-form, .msg-blocked {
  flex: none;
  padding: 16px 26px 18px;
  background: var(--paper);
}
.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(--ink);
  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; }
}

/* 私信：头像更大、可点击、发送按钮靠右 */
.msg-avatar { display: inline-flex; flex: none; line-height: 0; cursor: pointer; }
.msg-avatar:hover .msg-av { filter: brightness(1.06); }
.msg-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
  flex: none;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
/* 有头像时是 <img>：用 block + cover，避免 flex 容器把图片撑出圆形边界 */
img.msg-av { display: block; object-fit: cover; object-position: center; }
/* 没头像时是 <span>：居中显示首字母 */
span.msg-av { display: inline-flex; align-items: center; justify-content: center; }
.msg-bubble-row { align-items: flex-end; gap: 10px; }
.msg-send { justify-content: flex-end; margin-top: 12px; }
.msg-send .btn { min-width: 104px; }

/* 投稿页：选择一期刊物 */
.issue-pick { display: block; margin: 10px 0 8px; }
.issue-pick select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 2px;
}
.issue-pick-hint { font-size: 11.5px; color: var(--muted); margin: 0; }

/* 顶栏「好友」的人形图标 */
.nav-link .nav-ico {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  opacity: .85;
}
.nav-link.is-active .nav-ico { opacity: 1; }

/* ---------------- 好友主页（三栏） ---------------- */
/* 好友主页：把页面拉宽，让中间的聊天区尽量恢复原来大小 */
.dm-page.fh-page { width: min(1560px, calc(100vw - 40px)); }
.fh-page { display: flex; flex-direction: column; min-height: 0; }
.fh-head { flex: none; padding: 20px 0 14px; }
.fh-peer-name { display: none; }
.fh-head .dm-back { display: inline-block; margin-bottom: 8px; }
.fh-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .01em;
  padding-left: 246px;
}

/* 好友搜索 */
.fh-search-wrap { padding: 10px 10px 2px; }
.fh-search {
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  outline: none;
}
.fh-search:focus { border-color: var(--gold); }
.fh-search::placeholder { color: var(--muted); }
.fh-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 252px;
  gap: 14px;
  padding-bottom: 18px;
}
.fh-side {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}
.fh-block { background: var(--paper-2); border: 1px solid var(--line); }
.fh-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.fh-block-head h2 { font-size: 14px; font-weight: 600; }
.fh-block-head small { font-size: 11px; color: var(--muted); }
.fh-list { list-style: none; margin: 0; padding: 6px; }
.fh-row > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: 3px;
  color: inherit;
  position: relative;
}
.fh-row > a:hover { background: rgba(191, 68, 41, .06); }
.fh-row.is-on > a { background: rgba(191, 68, 41, .1); }
.fh-row.is-unread .fh-main b { font-weight: 600; }
.fh-av { flex: none; line-height: 0; }
.fh-av .avatar { width: 34px; height: 34px; font-size: 13px; }
.fh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-main b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-main small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-row time { flex: none; font-size: 11px; color: var(--muted); }
.fh-row .nt-count { position: static; margin-left: 4px; }
.fh-empty { font-size: 12px; color: var(--muted); padding: 10px 10px 12px; line-height: 1.7; }

.fh-req { display: flex; align-items: center; gap: 8px; padding: 9px 8px; }
.fh-req-main { flex: 1; min-width: 0; }
.fh-req-main b { font-size: 13px; font-weight: 500; }
.fh-req-main small { display: block; font-size: 11px; color: var(--muted); }
.fh-req-actions { display: flex; gap: 5px; flex: none; }
.fh-req-actions .btn { padding: 3px 8px; font-size: 11.5px; }

.fh-act > a { display: flex; align-items: center; gap: 8px; padding: 9px 8px; color: inherit; }
.fh-act-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-act-main b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-act-main small { font-size: 11px; color: var(--muted); }

.fh-center { min-height: 0; }
.fh-center-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
}
.fh-center-id { display: flex; align-items: center; gap: 8px; color: inherit; }
.fh-center-id b { font-size: 14px; font-weight: 600; }
.fh-center-head small { font-size: 11.5px; color: var(--muted); }
.fh-center .msg-bubbles { padding: 14px 4px 0; }
.fh-center-head { justify-content: flex-end; padding: 6px 2px 12px; }

.fh-center-empty { font-size: 14px; font-weight: 600; }
.fh-center-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

/* ---------------- 正文富文本（章节标题 / 行内样式 / 空行） ---------------- */
.prose-h {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  margin: 34px 0 14px;
}
.prose-h:first-child { margin-top: 0; }
.tx-b { font-weight: 600; }
.tx-r { color: var(--accent); }
.tx-u { text-decoration: underline; text-underline-offset: 3px; }
.pg-gap { display: block; }
.pg-gap-1 { height: 12px; }
.pg-gap-2 { height: 24px; }
.pg-gap-3 { height: 36px; }
.pg-gap-4 { height: 48px; }
.pg-gap-5 { height: 60px; }

.tx-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.tx-tools .hint { font-size: 11.5px; color: var(--muted); margin-left: 4px; }

/* ---------------- 表情收纳到笑脸按钮 ---------------- */
.emoji-picker { position: relative; display: inline-block; margin: 6px 0 10px; }
.emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.emoji-toggle:hover { border-color: var(--gold); color: var(--accent); }
.emoji-picker.is-open .emoji-toggle { border-color: var(--accent); color: var(--accent); }
.emoji-pop {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 8px);
  width: 310px;
  max-height: 190px;
  overflow-y: auto;
  padding: 10px;
  gap: 2px;
  flex-wrap: wrap;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(32, 29, 25, .14);
  border-radius: 3px;
  scrollbar-width: thin;
}
.emoji-picker.is-open .emoji-pop { display: flex; }
.emoji-pop .emoji { font-size: 17px; padding: 4px 5px; }

/* 评论区：@ 好友按钮（在笑脸旁边） */
.mention-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 6px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  vertical-align: top;
}
.mention-toggle:hover { border-color: var(--gold); color: var(--accent); }
.mention-toggle svg { display: block; }

.cf-tools { display: flex; align-items: center; gap: 6px; }
.cf-tools .emoji-picker { margin: 0; line-height: 0; }
.cf-tools .emoji-toggle, .cf-tools .mention-toggle { vertical-align: middle; }
.cf-tools .mention-toggle { margin-left: 0; }

/* 作者徽章 & 文章编辑入口 */
.c-badge-author { background: rgba(191, 68, 41, .12); color: var(--accent); border-color: rgba(191, 68, 41, .35); }
.art-edit { color: var(--ink); border-bottom: 1px solid transparent; }
.art-edit:hover { color: var(--ink); border-color: currentColor; }
.author-pick { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.author-pick .field + .field { margin-top: 10px; }
.author-pick .hint { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 8px 0 0; }
.author-pick select { width: 100%; }

/* 我的投稿：改署名 */

.art-edit-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* 选择作者：自定义下拉 */
.author-pick { position: relative; }
.ap-title { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ap-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}
.ap-toggle:hover { border-color: var(--gold); }
.ap-pop {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% - 34px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(32, 29, 25, .16);
  border-radius: 3px;
  overflow: hidden;
}
.ap-search { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ap-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 12.5px; font-family: inherit; color: var(--ink);
}
.ap-list { list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.ap-item {
  display: flex; align-items: baseline; gap: 6px;
  width: 100%; text-align: left;
  padding: 7px 9px; border: 0; background: none; border-radius: 2px;
  font-size: 13px; font-family: inherit; color: var(--ink); cursor: pointer;
}
.ap-item small { color: var(--muted); font-size: 11.5px; }
.ap-item:hover { background: rgba(191, 68, 41, .07); }
.ap-item.is-on { background: rgba(191, 68, 41, .12); color: var(--accent); }

/* 表情面板：分类标签 */
.emoji-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--line);
}
.emoji-tab {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .04em;
}
.emoji-tab:hover { color: var(--ink); }
.emoji-tab.is-on { background: rgba(32, 29, 25, .08); color: var(--ink); }
.emoji-pane { display: none; padding: 8px 10px 10px; flex-wrap: wrap; gap: 2px; }
.emoji-pane.is-on { display: flex; }
.emoji-pop { width: 330px; max-height: 260px; padding: 0; }
.emoji.sticker { padding: 3px; border-radius: 3px; }
.emoji.sticker img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 3px;
}
.emoji.sticker:hover { background: rgba(191, 68, 41, .08); }

/* 评论 / 私信里的奶龙贴图：限制尺寸 */
.c-body img { max-width: 180px; max-height: 180px; border-radius: 4px; vertical-align: middle; }
.msg-bubble img { max-width: 180px; max-height: 180px; border-radius: 4px; }

/* 奶龙贴图：靠左、缩小 */
img[src*="/img/stickers/"] {
  max-width: 150px;
  max-height: 150px;
  display: inline-block;
  margin: 6px 0;
  border-radius: 4px;
}
.prose-figure:has(img[src*="/img/stickers/"]) {
  margin: 8px 0;
  text-align: left;
}
.c-body .prose-figure:has(img[src*="/img/stickers/"]) figcaption { text-align: left; }

/* 评论/私信里的奶龙：跟在文字后面，像大号表情 */
.sticker-line { line-height: 2.1; }
.sticker-inline {
  display: inline-block;
  width: 4em;
  height: 4em;
  object-fit: contain;
  vertical-align: -1.15em;
  margin: 0 3px;
  border-radius: 5px;
}
.sticker-alone .sticker-inline {
  width: 118px;
  height: 118px;
  vertical-align: middle;
  margin: 4px 0;
}

/* 编辑栏里的贴图预览 */
.tx-sticker-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  background: var(--paper-2);
}
.tx-sticker { position: relative; display: block; line-height: 0; }
.tx-sticker img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(32, 29, 25, .04);
}
.tx-sticker-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.tx-sticker-x:hover { color: var(--accent); border-color: var(--accent); }

/* 富文本编辑区：贴图直接显示 */
.rich-source { display: none !important; }
.rich-input {
  width: 100%;
  min-height: 96px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.85;
  border-radius: 2px;
  outline: none;
  word-break: break-word;
  white-space: pre-wrap;
}
.rich-input:focus { border-color: var(--gold); }
.rich-input { position: relative; }
.rich-input.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.rich-sticker {
  display: inline-block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  vertical-align: -1.1em;
  margin: 0 3px;
  border-radius: 5px;
  cursor: default;
  user-select: none;
}
.rich-sticker:focus { outline: 2px solid var(--accent); }

/* 私信：纯贴图消息去掉气泡底色与内边距 */
.msg-bubble.is-sticker { background: transparent; border: 0; padding: 0; }
.msg-bubble-row.is-mine .msg-bubble.is-sticker { background: transparent; border-color: transparent; }
.msg-bubble .msg-sticker { max-width: 132px; max-height: 132px; border-radius: 6px; margin: 0; }

/* 纯贴图消息：头像对齐到图片右上角 */
.msg-bubble-row.is-sticker-row { align-items: flex-start; }
.msg-bubble-row.is-sticker-row .msg-av { margin-top: 0; }

/* 回复：显示回复对象 */
.c-reply-to { font-size: 12px; color: var(--muted); }
.c-reply-to::before { content: '·'; margin: 0 3px; color: var(--line-2); }

/* 顶栏好友角标 */
.nav-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: 1px;
}
.nav-dot[hidden] { display: none; }

/* 纯图片消息：头像对齐图片顶部 */
.msg-bubble-row.is-media-row { align-items: flex-start; }

/* 意见箱配图 */
.fb-shot { display: inline-block; margin-top: 8px; line-height: 0; }
.fb-shot img { max-width: 220px; max-height: 160px; border-radius: 3px; border: 1px solid var(--line); object-fit: cover; }

/* 楼层右上角的删除按钮（仅管理员） */
.th-post { position: relative; }
.th-post-head { position: relative; padding-right: 26px; }
.th-del-form { position: absolute; top: -2px; right: 0; margin: 0; }
.th-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 3px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s, color .18s, background .18s;
}
.th-del:hover { opacity: 1; color: var(--accent); background: rgba(191, 68, 41, .08); }

/* 聊天记录中的时间分隔 */
.msg-time {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}
.msg-time span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
  background: none;
  border: 0;
  padding: 0;
}

/* 后台最新评论：可点击跳到原评论 */
a.mini-note { color: inherit; display: block; border-bottom: 1px solid transparent; }
a.mini-note:hover { color: var(--ink); border-color: var(--line-2); }
.mini-target a { color: inherit; }
.mini-target a:hover { color: var(--accent); }

/* 个人主页：发表的文章 */
.prof-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 190px));
  gap: 22px 20px;
}
.prof-article { display: block; }
.prof-article-cover { display: block; margin-bottom: 10px; }
.prof-article .acover { margin: 0; }
.prof-article b { display: block; font-size: 14px; font-weight: 600; font-family: var(--serif); line-height: 1.5; }
.prof-article small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-article:hover b { color: var(--accent); }

/* 星级显示（渐变裁切，避免双层错位） */
.stars {
  display: inline-block;
  line-height: 1;
  letter-spacing: 1px;
  font-size: 13px;
  color: #ddd5c6;
  white-space: nowrap;
  background-image: linear-gradient(to right, var(--gold) var(--pct, 0%), #ddd5c6 var(--pct, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .stars { -webkit-text-fill-color: currentColor; color: var(--gold); }
}
.stars-sm { font-size: 11.5px; }
.stars-xs { font-size: 11px; letter-spacing: .5px; }
.stars-lg { font-size: 19px; letter-spacing: 2px; }

/* 目录卡片评分：与标题同行，靠右 */
.toc-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.toc-title-row h4 { min-width: 0; }
.toc-score { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; color: var(--muted); }
.toc-score > b { color: var(--ink); font-weight: 600; }
.toc-score em { font-style: normal; color: var(--muted); }

/* 文章评分面板 */
.rate-panel {
  margin: 46px 0 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px 24px 20px;
}
.rate-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rate-head h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; }
.rate-head small { font-size: 11.5px; color: var(--muted); }
.rate-body { display: grid; grid-template-columns: 160px minmax(0, 1fr) 260px; gap: 26px; padding-top: 18px; }
.rate-score { text-align: left; }
.rate-avg { font-family: var(--serif); font-size: 42px; line-height: 1.05; color: var(--ink); }
.rate-sub { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
/* 评分分布：竖向柱状图 */
.rate-dist {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 168px;
  padding-top: 18px;
}
.rate-col {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.rate-col-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 30px;
  height: 100%;
  background: transparent;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}
/* 没人评分时：整根虚影占位 */
.rate-dist.is-empty .rate-col-bar { background: rgba(32, 29, 25, .05); }
/* 有评分时：只在底部留一小截虚影，几乎看不见 */
.rate-dist:not(.is-empty) .rate-col-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(32, 29, 25, .08);
  border-radius: 2px 2px 0 0;
  z-index: 0;
}
.rate-col-bar i {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  background: #3E7CB1;
  border-radius: 2px 2px 0 0;
  transition: height .3s ease;
}
.rate-col.is-mine .rate-col-bar i { background: #1E4E79; }
.rate-col-key {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.rate-col.is-mine .rate-col-key { color: #1E4E79; font-weight: 600; }
.rate-col::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(45, 40, 35, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 5;
}
.rate-col:hover::after { opacity: 1; }
.rate-col:hover .rate-col-bar { background: rgba(62, 124, 177, .16); }
.rate-side { border-left: 1px solid var(--line); padding-left: 22px; }
.rate-form-label, .rate-friends-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.rate-picks-row { display: flex; align-items: center; gap: 10px; }
.rate-confirm { min-width: 54px; }
.rate-confirm:disabled { opacity: .45; cursor: not-allowed; }
.rate-picks { position: relative; display: inline-block; line-height: 1; }
.rate-picks-stars {
  position: relative;
  display: inline-block;
  font-size: 21px;
  letter-spacing: 2px;
  line-height: 1;
  color: #ddd5c6;
  white-space: nowrap;
  background-image: linear-gradient(to right, var(--gold) var(--pct, 0%), #ddd5c6 var(--pct, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rate-picks-zones { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(10, 1fr); }
.rate-zone { border: 0; background: none; padding: 0; cursor: pointer; }
.rate-zone:hover { background: rgba(191, 68, 41, .10); border-radius: 2px; }
.rate-form-now { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.rate-friends { margin-top: 16px; }
.rate-friends ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 132px; overflow-y: auto; }
.rate-friends li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.rate-friends li a { color: var(--ink); border-bottom: 1px solid transparent; }
.rate-friends li a:hover { border-color: var(--current, currentColor); }
.rate-friends li b { color: var(--gold); font-weight: 600; }
.rate-login { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .rate-body { grid-template-columns: 1fr; }
  .rate-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

.rate-cancel-form { margin-top: 6px; }
.rate-cancel-form .link-btn { font-size: 11.5px; color: var(--muted); }
.rate-cancel-form .link-btn:hover { color: var(--accent); }

/* 好友评分链接 */
.rate-friends-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.rate-friends-link:hover { border-color: currentColor; }

/* 好友评分页 */
.fr-head { padding-bottom: 24px; }
.fr-wrap { max-width: 720px; margin: 0 auto 80px; }
.fr-list { list-style: none; margin: 0; padding: 0; }
.fr-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fr-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.fr-name { font-weight: 600; color: var(--ink); }
.fr-name:hover { color: var(--accent); }
.fr-main small { color: var(--muted); font-size: 11.5px; }
.fr-score { display: flex; align-items: center; gap: 8px; }
.fr-score b { font-size: 13px; color: var(--ink); }

/* 顶栏搜索（内联：输入框 + 框外右侧放大镜） */
.nav-search { display: flex; align-items: center; gap: 6px; margin-right: 2px; }
.nav-search-form { display: flex; align-items: center; gap: 6px; }
.nav-search-form input {
  width: 152px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: transparent;
  color: #f4efe5;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: .02em;
  outline: none;
  transition: border-color .18s, background .18s;
}
.nav-search-form input::placeholder { color: rgba(244, 239, 229, .55); }
.nav-search-form input:focus { border-color: #fff; background: rgba(255, 255, 255, .06); }
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(242, 237, 227, .9);
  cursor: pointer;
  transition: background .18s, color .18s;
  flex: none;
}
.nav-search-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* 搜索结果页 */
.sr-form { display: flex; gap: 10px; max-width: 520px; margin-top: 22px; }
.sr-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  border-radius: 999px;
}
.sr-form input:focus { outline: none; border-color: var(--gold); }
.sr-users { list-style: none; margin: 0; padding: 0; }
.sr-users li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sr-avatar { flex: none; line-height: 0; }
.sr-main { flex: 1 1 auto; min-width: 0; }
.sr-name { font-weight: 600; color: var(--ink); }
.sr-name:hover { color: var(--accent); }
.sr-main small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sr-bio { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.sr-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.sr-note { font-size: 11.5px; color: var(--muted); }
.sr-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 30px; }
.sr-article { display: flex; gap: 16px; }
.sr-cover { flex: none; width: 104px; }
.sr-cover .acover { margin: 0; }
.sr-art-main { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.sr-art-main b { font-family: var(--serif); font-size: 19px; line-height: 1.4; font-weight: 600; }
.sr-art-main small { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.sr-rating { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sr-rating .stars { font-size: 14px; }
.sr-rating .stars > b { color: var(--gold); }
.sr-rating > b { color: var(--ink); font-weight: 600; }
.sr-rating em { font-style: normal; }

/* 成员一览：头像昵称可点击 */
.cell-user-link { display: flex; align-items: center; gap: 9px; color: inherit; }
.cell-user-link b { transition: color .18s; }
.cell-user-link:hover b { color: var(--accent); }
.cell-user-link:hover .avatar { filter: brightness(1.05); }

/* 刊物页：评论区与上方目录同宽对齐 */
body.is-issue .discussion { max-width: none; }

/* 单期页：返回主页贴在封面上方、投稿状态之上 */
.issue-back { display: block; margin: 0 0 10px; }

/* 单期页：右栏日期与封面上的投稿状态对齐 */
.issue-hero .ih-body { padding-top: 40px; }
@media (max-width: 760px) {
  .issue-hero .ih-body { padding-top: 8px; }
}

/* 帖子页：返回链接贴在标题上方 */
.th-back { display: block; margin: 0 0 6px; }

/* 后台 · 图片审核 */
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.media-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.media-card.is-deleted { opacity: .45; }
.media-thumb { display: block; aspect-ratio: 4 / 3; background: rgba(32, 29, 25, .05); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 11.5px; color: var(--muted); }
.media-meta small { color: var(--muted); }
.media-card form { padding: 0 10px 10px; }

/* 就地编辑 */
.inline-edit { margin: 6px 0 10px; }
.inline-edit .rich-input { margin: 0; }
.inline-edit-bar { display: flex; gap: 8px; margin-top: 8px; }

/* 编辑时原位置的预览 */
.th-body.is-preview { border-left: 2px solid var(--gold); padding-left: 12px; }
.th-body.is-preview::after {
  content: "预览中";
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}

/* 编辑器内的普通图片 */
.rich-input .rich-img {
  display: block;
  max-width: 220px;
  max-height: 200px;
  vertical-align: baseline;
  border-radius: 4px;
  margin: 6px 0;
}

/* hidden 属性优先于任何 display 规则 */
[hidden] { display: none !important; }

/* 帖子正文：超长串自动换行，避免横向溢出 */
.th-body, .th-body p, .th-body a { overflow-wrap: anywhere; word-break: break-word; }
.th-body pre, .th-body code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 帖子正文：一行最多约 40 个汉字，超出自动换行 */
.th-body, .th-body.prose { max-width: 40em; }
.th-body .prose-figure,
.th-body .prose-figure img { max-width: 100%; }

/* 管理员批量选择楼层 */
.th-del-form { display: flex; align-items: center; gap: 3px; }
.th-check {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  cursor: pointer;
  margin: 0;
  border-radius: 2px;
  flex: none;
  transition: background .15s, border-color .15s;
}
.th-check:hover { border-color: var(--muted); }

.th-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 940px;
  margin: 0 auto 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 12px;
  color: var(--muted);
}
.th-bulk b { color: var(--accent); }
.th-bulk .btn { margin-left: auto; }
.th-bulk .btn + .btn { margin-left: 0; }

/* 个人网站背景图（仅本人可见，审核通过后生效） */
body.has-user-bg { background: var(--paper); }
body.has-user-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--user-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
body.has-user-bg .site-main,
body.has-user-bg .site-foot { position: relative; z-index: 1; }

/* 编辑资料：背景图上传 */
.bg-edit { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.bg-preview { margin: 8px 0; max-width: 420px; aspect-ratio: 16 / 6; background: rgba(32,29,25,.05); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.bg-preview img { width: 100%; height: 100%; object-fit: cover; }
.bg-form { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.bg-status { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.bg-status.is-ok { color: #2f7d4f; }
.bg-status.is-bad { color: var(--accent); }

/* 后台：背景图审核 */
.bg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.bg-card { border: 1px solid var(--line); background: var(--paper); }
.bg-thumb { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: rgba(32,29,25,.05); }
.bg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-meta { padding: 8px 10px 4px; display: flex; align-items: baseline; gap: 6px; }
.bg-meta small { color: var(--muted); font-size: 11.5px; }
.bg-actions { display: flex; gap: 8px; padding: 6px 10px 10px; }

/* 有个人背景图时，白色区块跟随背景主色 */
body.has-user-bg .panel,
body.has-user-bg .th-reply,
body.has-user-bg .comment-form,
body.has-user-bg .account-card,
body.has-user-bg .th-bulk,
body.has-user-bg .toc-item .acover.has-image {
  background: var(--bg-tint, var(--paper));
}
body.has-user-bg .panel,
body.has-user-bg .comment-form { border-color: rgba(32,29,25,.12); }

/* 主色生效时，输入框内部也跟着主色，避免突兀的白块 */
body.has-user-bg .comment-form .rich-input,
body.has-user-bg .comment-form textarea,
body.has-user-bg .comment-form .cf-foot {
  background: var(--bg-tint, var(--paper));
}
body.has-user-bg .th-reply .rich-input,
body.has-user-bg .th-reply textarea,
body.has-user-bg .th-reply .th-reply-foot { background: transparent; }
body.has-user-bg .th-reply .img-tools { background: transparent; }

/* 好友 / 私信页的白色区块同样跟随背景主色 */
body.has-user-bg .fh-block,
body.has-user-bg .fh-search,
body.has-user-bg .msg-thread,
body.has-user-bg .msg-bubbles,
body.has-user-bg .msg-form,
body.has-user-bg .msg-blocked,
body.has-user-bg .nt-panel,
body.has-user-bg .nt-request,
body.has-user-bg .fh-center,
body.has-user-bg .dm-side,
body.has-user-bg .friend-list,
body.has-user-bg .msg-conv-list {
  background: var(--bg-tint, var(--paper));
}
body.has-user-bg .msg-form textarea,
body.has-user-bg .msg-form .rich-input,
body.has-user-bg .fh-search input {
  background: var(--bg-tint, var(--paper));
}
body.has-user-bg .fh-block,
body.has-user-bg .msg-thread { border-color: rgba(32,29,25,.12); }

/* 有个人背景图时，筛选栏三个控件融入背景：去掉边框与底色，位置不变 */
body.has-user-bg .filter-bar { background: transparent; border-bottom-color: rgba(32,29,25,.14); }
body.has-user-bg .filter-bar .search {
  background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 62%, transparent);
  border-color: rgba(32, 29, 25, .32);
  box-shadow: none;
}
body.has-user-bg .filter-bar .field-inline select {
  background-color: color-mix(in srgb, var(--bg-tint, #f6f1ea) 62%, transparent);
  border-color: rgba(32, 29, 25, .32);
  box-shadow: none;
}
body.has-user-bg .filter-bar .search:focus-within,
body.has-user-bg .filter-bar .field-inline select:focus {
  background: var(--bg-tint, var(--paper));
  border-color: var(--line-2);
}

/* 筛选栏搜索框文字与图标，与右侧下拉框同色 */
.filter-bar .search svg { color: var(--ink); }
.filter-bar .search input { color: var(--ink); }
.filter-bar .search input::placeholder { color: var(--ink-2); opacity: 1; }

/* 搜索页输入框跟随背景主色 */
body.has-user-bg .sr-form input {
  background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 80%, transparent);
  border-color: rgba(32, 29, 25, .32);
  color: var(--ink);
}
body.has-user-bg .sr-form input::placeholder { color: var(--ink-2); }

/* 有背景图时，回复栏去掉外层面板，直接融入背景 */
body.has-user-bg .th-reply {
  background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 46%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  border-color: rgba(32, 29, 25, .16);
  box-shadow: 0 -8px 24px rgba(32, 29, 25, .10);
}
body.has-user-bg .th-reply .rich-input,
body.has-user-bg .th-reply textarea {
  background: transparent;
  border-color: rgba(32, 29, 25, .24);
}
body.has-user-bg .th-reply .img-tools {
  background: transparent;
  border-color: rgba(32, 29, 25, .20);
}
body.has-user-bg .th-reply .th-reply-head span { color: var(--ink-2); }

/* 背景图模式：选择文件与底部两个圆形按钮用主色填充 */
body.has-user-bg .th-reply .img-tools input[type="file"]::file-selector-button {
  background: var(--bg-tint, var(--paper));
  border: 1px solid rgba(32, 29, 25, .26);
  color: var(--ink);
}
body.has-user-bg .th-reply .emoji-toggle,
body.has-user-bg .th-reply .mention-toggle {
  background: var(--bg-tint, var(--paper));
  border-color: rgba(32, 29, 25, .30);
  color: var(--ink);
}

/* 背景图模式：楼层勾选框的填充也跟随主色 */
body.has-user-bg .th-check {
  background: var(--bg-tint, var(--paper));
  border-color: rgba(32, 29, 25, .38);
}

/* 勾选状态：方框内显示对勾（不再用红色填充），优先级高于背景模式规则 */
.th-check:checked,
body.has-user-bg .th-check:checked {
  background-color: var(--bg-tint, var(--paper));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23201d19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-size: 11px;
  background-repeat: no-repeat;
  border-color: rgba(32, 29, 25, .55);
}

/* 背景图模式：评论区 / 私信里的表情与 @ 按钮同样填主色 */
body.has-user-bg .emoji-toggle,
body.has-user-bg .mention-toggle {
  background: var(--bg-tint, var(--paper));
  border-color: rgba(32, 29, 25, .30);
  color: var(--ink);
}

/* 背景图模式：评论框与私信输入框改为磨砂，聊天区透明 */
body.has-user-bg .comment-form,
body.has-user-bg .msg-form,
body.has-user-bg .msg-blocked {
  background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 46%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  border-color: rgba(32, 29, 25, .16);
}
body.has-user-bg .comment-form .rich-input,
body.has-user-bg .comment-form textarea,
body.has-user-bg .comment-form .cf-foot,
body.has-user-bg .msg-form .rich-input,
body.has-user-bg .msg-form textarea {
  background: transparent;
}
body.has-user-bg .msg-thread,
body.has-user-bg .msg-bubbles {
  background: transparent;
  border-color: rgba(32, 29, 25, .14);
}

body.has-user-bg .msg-form .img-tools,
body.has-user-bg .msg-form .cf-tools {
  background: transparent;
  border-color: rgba(32, 29, 25, .18);
}

/* 私信页：选择文件按钮填主色，「也可以把图片拖进来」与顶部状态行改为正文色 */
body.has-user-bg .msg-form .img-tools input[type="file"]::file-selector-button {
  background: var(--bg-tint, var(--paper));
  border: 1px solid rgba(32, 29, 25, .26);
  color: var(--ink);
}
body.has-user-bg .msg-form .img-tools .hint,
body.has-user-bg .msg-form .img-tools,
body.has-user-bg .fh-center-head small {
  color: var(--ink);
}

/* 私信页：分隔线改黑，气泡改主色 */
body.has-user-bg .fh-center-head { border-bottom-color: #201d19; }
body.has-user-bg .msg-bubble:not(.is-sticker) {
  background: var(--bg-tint, var(--paper));
  border-color: rgba(32, 29, 25, .22);
  color: var(--ink);
}
body.has-user-bg .msg-bubble-row.is-mine .msg-bubble:not(.is-sticker) {
  background: color-mix(in srgb, var(--bg-tint, var(--paper)) 78%, #201d19);
  border-color: rgba(32, 29, 25, .35);
  color: var(--ink);
}

/* 背景图模式：评分面板改为磨砂（网站背景图 / 手机背景图都适用） */
body.has-user-bg .rate-panel,
body.has-mobile-bg .rate-panel {
  background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 46%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  border-color: rgba(32, 29, 25, .16);
}
@media (max-width: 700px) {
  body.has-mobile-bg .rate-panel {
    background: color-mix(in srgb, var(--bg-tint, #f6f1ea) 46%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
  }
}

/* 背景图模式：评分星星加深，未选中部分也看得清 */
body.has-user-bg .rate-picks-stars {
  background-image: linear-gradient(to right, #c99a12 var(--pct, 0%), #8d8578 var(--pct, 0%));
}
body.has-user-bg .rate-dist .rate-col-bar i { background: #2f6ea8; }
body.has-user-bg .rate-form-now { color: var(--ink-2); }

/* 背景图模式：平均分的星条同样加深，空白部分可见 */
body.has-user-bg .rate-panel .stars {
  background-image: linear-gradient(to right, #c99a12 var(--pct, 0%), #8d8578 var(--pct, 0%));
}

/* 设置了网站背景图时：主页封面区透明无边缘，融入背景 */
body.has-user-bg .prof-cover { background: transparent; }
body.has-user-bg .prof-cover-empty { display: none; }

/* 主页主人取消了封面图、且已设置网站背景图时：收起封面区，头像及内容上移 */
.prof-hero.no-cover.has-bg .prof-cover { height: 0; background: transparent; }
.prof-hero.no-cover.has-bg .prof-id { margin-top: 0; padding-top: 34px; }

/* 后台公告编辑：表情按钮行 */
.announce-tools { display: flex; align-items: center; gap: 8px; margin: -8px 0 16px; }
.announce-tools .emoji-toggle { border-radius: 999px; background: var(--paper-2); }

/* 后台公告：富文本正文与内联表情图 */
.announce-rich,
form.form-grid .rich-input {
  min-height: 360px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 14px;
  line-height: 1.95;
}
form.form-grid .rich-input:focus { border-color: var(--gold); }
form.form-grid .rich-input img {
  max-width: 100%;
  max-height: 140px;
  display: inline-block;
  vertical-align: middle;
  margin: 2px 2px;
}
form.form-grid .rich-input .rich-sticker { max-height: 96px; }

.announce-img { display: inline-flex; align-items: center; gap: 8px; }
.announce-img input[type="file"] { max-width: 210px; font-size: 12px; }
.announce-img .hint { font-size: 11.5px; color: var(--muted); }

/* 公告编辑器：Markdown 工具按钮与预览 */
.md-tools { display: inline-flex; align-items: center; gap: 4px; }
.md-btn {
  min-width: 46px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; line-height: 1; color: var(--ink); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.md-btn:hover { border-color: var(--gold); color: var(--accent); }
.announce-preview,
.announce-preview.prose {
  display: block; width: 100%; max-width: none; box-sizing: border-box;
  border: 1px solid var(--line-2); background: #fff; padding: 16px 18px;
  min-height: 360px; font-size: 14px; line-height: 1.95;
}
/* 预览直接用发布页的 .prose 排版，保证所见即所得 */
.announce-preview.prose { padding: 22px 26px; }
.announce-preview.prose .sticker-line { margin: 0 0 14px; }
.announce-preview.prose .sticker-inline { height: 74px; width: auto; vertical-align: middle; margin: 0 4px; }

.announce-preview-head {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 8px; font-size: 11px; letter-spacing: .16em; color: var(--muted);
}
.announce-preview-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 顶栏：背景图开关 */
.nav-bg-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-left: 6px; padding: 0;
  color: #f4efe5; border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}
.nav-bg-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-bg-toggle.is-off { opacity: .55; }
.nav-bg-toggle.is-off::after {
  content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor;
  transform: rotate(-45deg);
}
.nav-bg-toggle { position: relative; }

/* 文章页：右下角回到读者评论 */
.to-comments {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink); box-shadow: 0 6px 18px rgba(32, 29, 25, .14);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.to-comments.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-comments:hover { background: var(--gold); border-color: var(--gold); color: #201d19; }
@media (max-width: 640px) { .to-comments { right: 16px; bottom: 16px; width: 38px; height: 38px; } }

/* 跳到评论区时，给吸顶导航留出空间，保证「读者评论」标题完整可见 */
#comments { scroll-margin-top: 78px; }

.to-comments svg { transition: transform .2s ease; }
.to-comments.is-down svg { transform: rotate(180deg); }

/* 后台：评分一览 */
.rate-table .cell-user-link { display: flex; align-items: center; gap: 8px; color: inherit; }
.rate-table .cell-user-link small { display: block; font-size: 11px; color: var(--muted); }
.rate-table .rate-art { color: var(--ink); border-bottom: 1px solid transparent; }
.rate-table .rate-art:hover { color: var(--accent); border-bottom-color: var(--accent); }
.rate-table .rate-cell { white-space: nowrap; }
.rate-table .rate-cell .stars { color: #c99a12; }
.rate-table .rate-cell b { margin-left: 6px; font-weight: 600; }
.rate-table .muted { font-size: 11.5px; }

/* 导入 Word 控件 */
/* 导入 Word：独占一行，和上面的「选择文件」左对齐 */
.docx-import {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.docx-import .hint { font-size: 11.5px; color: var(--muted); }
.docx-import .btn { flex: none; }

/* 后台邮箱验证页 */
.admin-verify-wrap { display: block; padding: 80px 20px; }
.admin-verify { max-width: 460px; margin: 0 auto; }
.admin-verify h1 { font-family: var(--serif); font-size: 28px; margin: 10px 0 12px; }
.admin-verify .muted { font-size: 13px; color: var(--muted); line-height: 1.9; }
.admin-verify .hint { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }
.verify-form { display: flex; gap: 10px; margin: 22px 0 12px; }
.verify-form input {
  flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line-2);
  background: #fff; font-size: 16px; letter-spacing: .28em;
}
.verify-form input:focus { border-color: var(--gold); outline: none; }
.verify-resend { margin-top: 4px; }

/* 通知正文里的落款：靠右对齐 */
.nt-letter-body .nt-sign { text-align: right; margin-top: 18px; color: var(--ink-2); }

/* 编辑部来信末尾的说明：居中并向下留白 */
/* 提示词：放在卡片与面板底边之间那条缝里，左对齐、垂直居中 */
.nt-detail { position: relative; }
.nt-letter-note {
  position: absolute;
  left: 22px;
  bottom: 3px;
  margin: 0;
  text-align: left;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
}

/* ================================================================= */
/* 手机端适配（只在窄屏生效，桌面端完全不受影响）                      */
/* ================================================================= */
.nav-toggle { display: none; }
.head-account { display: none; }
.head-actions { display: none; }

@media (max-width: 700px) {
  /* 顶栏：品牌 + 汉堡按钮，功能收进下拉面板 */
  .site-head { position: sticky; }
  .head-inner {
    height: 56px;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand-lockup { height: 30px; }
  .brand-text small { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background: transparent;
    color: #f4efe5;
    cursor: pointer;
  }
  .nav-toggle:active { background: rgba(255, 255, 255, .12); }
  .head-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 12px 14px 14px;
    background: var(--nav);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .28);
  }
  .head-nav.is-open { display: flex; }
  body.nav-open { overflow: hidden; }

  /* 搜索栏独占一行，下面功能横向排列 */
  .nav-search { flex: 0 0 100%; width: 100%; margin: 0 0 4px; }
  .nav-search-form { width: 100%; }
  .nav-search-form input { width: 100%; height: 38px; }

  .head-nav .nav-link:not(.pill):not(.with-icon),
  .head-nav .nav-link.pill,
  .head-nav .nav-link.with-icon {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: transparent;
    justify-content: center;
  }
  .head-nav .nav-link .nav-ico { width: 12px; height: 12px; }
  .head-nav .nav-link.pill { border: 1px solid rgba(255, 255, 255, .22); }
  .head-nav .nav-link.is-active { background: rgba(255, 255, 255, .14); }
  .head-nav .btn-sm { width: auto; padding: 7px 12px; font-size: 12px; }

  .head-nav .nav-bg-toggle,
  .head-nav .bell {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    padding: 0;
  }
  .head-nav .bell-dot { position: absolute; top: -6px; right: -6px; margin: 0; box-shadow: 0 0 0 2px var(--nav); }

  /* 背景切换 / 通知 / 账号：顶栏右侧，汉堡按钮左边 */
  .head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .head-actions .bell,
  .head-actions .nav-bg-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    padding: 0;
    margin: 0;
  }
  .head-actions .bell-dot { position: absolute; top: -5px; right: -5px; margin: 0; box-shadow: 0 0 0 2px var(--nav); }
  .head-nav .bell,
  .head-nav .nav-bg-toggle { display: none; }
  .head-account { display: flex; align-items: center; margin-left: 6px; }
  .head-account .user-menu { display: block; margin: 0; }
  .head-account .user-menu > summary {
    padding: 3px 8px 3px 3px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
  }
  .head-account .avatar-sm { width: 28px; height: 28px; font-size: 13px; }
  .head-account .user-name { font-size: 12px; max-width: 80px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .head-account .user-menu .menu {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    width: 210px;
    margin: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  }
  .head-account > .nav-link,
  .head-account > .btn { padding: 7px 10px; font-size: 12px; }
  .nav-toggle { margin-left: 8px; }
  .head-nav .user-menu,
  .head-nav .nav-link[href="/login"],
  .head-nav .nav-link[href="/register"] { display: none; }

  /* 页面留白与字号 */
  .site-main { width: 100%; max-width: 100%; padding: 0 14px 64px; overflow-x: clip; }
  .page-head { padding-top: 18px; }
  .ph-row h1 { font-size: 30px; }
  .ph-row p { font-size: 12.5px; }
  .sec-row h2 { font-size: 22px; }
  .prose { font-size: 16px; line-height: 1.95; }
  .prose h2 { font-size: 21px; }
  .prose h3 { font-size: 18px; }
  .prose img, .prose .sticker-inline { max-width: 100%; height: auto; }
  .prose table, .rate-table { display: block; width: 100%; overflow-x: auto; }

  /* 讨论版帖子：头像栏收窄，正文不被挤压 */
  .th-posts {
    width: auto;
    max-width: 100%;
    padding: 0 0 100px;
  }
  .th-post { gap: 10px; padding: 16px 0; }
  .th-side { width: 54px; gap: 4px; }
  .th-side .avatar { width: 44px; height: 44px; font-size: 17px; border-radius: 6px; }
  .th-side .th-name { font-size: 12px; }
  .th-body { min-width: 0; font-size: 15.5px; }
  .th-body img,
  .th-body .sticker-inline,
  .th-body .prose-figure img { max-width: 100% !important; height: auto; }
  .th-head { flex-wrap: wrap; gap: 6px 10px; }

  /* 通知列表：长标题不撑破 */
  .nt-row a { gap: 8px; }
  .nt-main { min-width: 0; }
  .nt-main b { overflow-wrap: anywhere; }

  /* 编辑器工具栏 */
  .img-tools, .md-tools, .rich-tools { flex-wrap: wrap; }

  /* 编辑部公告：整屏通栏，内容与顶栏、页脚同宽同边线 */
  .announce-block { width: auto; margin: 0 -14px 40px; }
  .band { padding: 12px 14px; gap: 10px; }
  .band-left { gap: 10px; min-width: 0; }
  .band-left b { white-space: nowrap; }
  .band-more { flex: none; white-space: nowrap; margin-left: auto; }
  .ann-row a { padding-left: 14px !important; padding-right: 14px !important; }

  /* 页脚与顶栏左右边距统一 */
  .foot-inner { padding-left: 14px; padding-right: 14px; }
  .foot-base { padding-left: 14px !important; padding-right: 14px !important; }

  /* 讨论版列表：标题独占一行，统计信息折到第二行，避免重叠 */
  .th-row { flex-wrap: wrap; gap: 6px 10px; padding: 12px 0; }
  .th-row-main { flex: 1 0 100%; min-width: 0; }
  .th-row-main b { font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
  .th-row-stat { order: 2; }
  .th-row-user { order: 3; width: auto; max-width: 42%; }
  .th-row time { order: 4; }
  .th-row-tool { order: 5; margin-left: auto; }

  /* 好友 / 私信页：单列会话列表（类似聊天软件） */
  .fh-page { min-height: 0; }
  .fh-title { font-size: 22px; padding-left: 0; }
  .fh-grid { display: block; }
  .fh-side { position: static; overflow: visible; gap: 0; }
  .fh-block { margin: 0; }
  .fh-block + .fh-block { margin-top: -1px; }
  /* 好友页各块透明，直接看到背景图 */
  .fh-block { background: transparent; }
  body.has-mobile-bg .fh-block { background: transparent; }
  .fh-row > a { padding: 10px 4px; gap: 12px; }
  .fh-av .avatar { width: 46px; height: 46px; font-size: 16px; border-radius: 8px; }
  .fh-main b { font-size: 15px; }
  .fh-main small { font-size: 12.5px; }
  .fh-row time { align-self: flex-start; margin-top: 2px; }
  .fh-center { min-height: 0; }
  /* /friends 只显示好友列表；/messages/:username 只显示聊天，各占满屏宽 */
  .fh-page:not(.is-chat) .fh-center { display: none; }
  .fh-page.is-chat .fh-side { display: none; }
  .fh-center:has(.fh-center-placeholder) { display: none; }

  /* 私信对话：整屏宽、标题上移、消息区拉长、输入区压缩 */
  .is-dm .site-main { height: calc(100dvh - 56px); min-height: 0; padding: 0 !important; overflow: hidden; }
  .dm-page, .dm-page.fh-page { width: 100%; padding: 0; min-height: 0; }
  .dm-page .page-head { margin: 8px 0 6px; flex: none; }
  .fh-page .fh-head { margin: 2px 14px 2px; padding: 2px 0 2px; flex: none; }
  .fh-head .dm-back { font-size: 12px; margin-bottom: 0; }
  .fh-page .fh-title { display: none; }
  .fh-center-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .fh-center-head .fh-peer-name { display: inline; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
  .fh-page.is-chat .fh-center-head { padding: 8px 12px; }
  .fh-page.is-chat .fh-center { border-left: 0; border-right: 0; width: 100%; margin: 0; background: transparent; }
  /* 聊天区与输入区透明，直接看到手机背景图 */
  .fh-page.is-chat .msg-bubbles,
  .fh-page.is-chat .msg-form { background: transparent; }
  .fh-page.is-chat .fh-center-head { background: transparent; }
  .fh-page.is-chat .msg-form { border-top: 1px solid var(--line); }
  .fh-page.is-chat .fh-grid { padding: 0; gap: 0; }
  .fh-page.is-chat .fh-center-head { padding: 8px 12px; font-size: 11px; }
  .fh-page.is-chat .fh-grid { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .fh-page.is-chat .fh-center { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .fh-page.is-chat .msg-bubbles { flex: 1 1 0; min-height: 0; max-height: none; }
  .fh-page.is-chat .fh-grid { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .fh-page.is-chat .fh-center { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .fh-page.is-chat .msg-form { margin-top: 0; flex: none; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  /* 工具栏压扁一点 */
  .msg-tools { margin: 0 0 4px; gap: 8px; }
  /* 私信页：不再显示“返回主页”，聊天面板紧贴顶栏 */
  .fh-page.is-chat .fh-head { display: none; }
  .fh-page.is-chat .fh-grid { flex: 1; min-height: 0; }
  .fh-page.is-chat .fh-center { flex: 1; min-height: 0; }
  /* 输入区整体抬高，避开手机浏览器底部悬浮栏，保证发送按钮可见 */
  .msg-form { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); flex: none; }
  /* 富文本编辑器高度按输入框规则收紧 */
  .msg-form .rich-input { height: 58px; min-height: 58px; max-height: 92px; overflow-y: auto; }
  .msg-form .rich-source { display: none; }
  .msg-bubbles { padding: 10px 10px; gap: 10px; }
  .msg-bubble { font-size: 13px; line-height: 1.65; padding: 7px 10px; max-width: 76%; border-radius: 8px; }
  .msg-bubble-row { gap: 6px; }
  .msg-bubble-row .avatar, .msg-av .avatar { width: 26px; height: 26px; font-size: 11px; }
  .msg-img { max-width: 150px; max-height: 150px; border-radius: 6px; }
  .msg-bubble.is-sticker .msg-img, .msg-sticker { max-width: 110px; max-height: 110px; }
  .msg-time { font-size: 11px; }
  .msg-form { padding: 8px 10px 10px; }
  .msg-form .img-tools { margin-bottom: 4px; gap: 8px; }
  .msg-form .hint { display: none; }
  .msg-form .emoji-bar { margin: 2px 0 4px; }
  .msg-form textarea { height: 52px !important; min-height: 52px !important; max-height: 76px; font-size: 14.5px; }
  .msg-form .img-tools { font-size: 12px; }
  .msg-form .img-tools input[type=file] { max-width: 50%; font-size: 12px; }
  .msg-form .emoji-bar { min-height: 0; }
  .msg-send { margin-top: 4px; }
  .msg-send .btn { min-width: 84px; padding: 7px 18px; }
  .fh-page.is-chat .fh-grid { height: 100%; }

  /* 私信输入区：表情 + 选图图标同一行 */
  .msg-tools { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
  .msg-tools .emoji-picker { position: relative; display: flex; align-items: center; }
  .msg-tools .msg-img-pick { margin: 0; transform: translateY(-2px); }
  .msg-img-pick {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
  }
  .msg-img-pick:hover { border-color: var(--gold); color: var(--accent); }
  .msg-img-pick:active { background: var(--paper-2); }

  /* 投稿页：本期投稿 → 写一篇 → 我的投稿，单列整宽 */
  .submit-grid { display: flex; flex-direction: column; gap: 16px; }
  .submit-form { order: 0; width: 100%; }
  .submit-side { order: 1; display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .submit-side .issue-now { display: none; }
  .submit-grid > .issue-mobile { display: block; order: -1; width: 100%; margin: 0; }

  /* 后台验证页：验证码在上，按钮在下，整行排列 */
  .verify-form { flex-direction: column; align-items: stretch; gap: 12px; }
  .verify-form input { flex: none; width: 100%; }
  .verify-form .btn { width: 100%; }

  /* 后台：手机适配 */
  .admin-side { padding: 8px 10px; gap: 6px; overflow-x: auto; }
  .admin-nav { flex-direction: row !important; gap: 4px; }
  .admin-nav a, .admin-nav .admin-nav-item {
    flex-direction: row;
    white-space: nowrap;
    padding: 8px 11px;
    font-size: 12.5px;
    border-radius: 999px;
  }
  .admin-main { padding: 16px 14px 70px; }
  /* 刊物 / 公告列表：手机上改成卡片 */
  .admin-main .admin-table.admin-cards { display: block; min-width: 0; }
  .admin-cards thead { display: none; }
  .admin-cards tbody { display: flex; flex-direction: column; gap: 12px; }
  .admin-cards tr {
    display: block;
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 12px 14px;
    border-radius: 2px;
  }
  .admin-cards td {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 4px 0;
    white-space: normal;
    text-align: left;
  }
  .admin-cards td[data-label=""] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: start;
  }
  .admin-cards td[data-label=""] b { grid-column: 1; display: block; margin-bottom: 4px; }
  .admin-cards td[data-label=""] small { grid-column: 1; display: block; }
  .admin-cards td[data-label=""] .card-act { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .admin-cards td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    flex: none;
    width: 44px;
    color: var(--muted);
    font-size: 11px;
  }
  .admin-cards td.cell-cover { display: none; }
  .admin-cards td.right { flex-wrap: wrap; gap: 12px; padding-top: 10px; }
  .admin-cards tr:has(.card-act) td.right { display: none; }
  .admin-cards .card-act { display: inline-flex; align-items: center; margin-left: auto; }

  .admin-head, .admin-top { flex-wrap: wrap; gap: 10px; }
  .admin-head h1, .admin-main h1 { font-size: 26px; }
  .admin-main .stat-grid, .admin-main .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-main .stat-grid > *, .admin-main .stat { padding: 12px 14px; }
  .admin-main .admin-cols, .admin-main .grid-2, .admin-main .form-row { grid-template-columns: 1fr; }
  .admin-main table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-main .panel { padding: 14px; }


  /* 后台：总览标题上方的返回主页（手机同一套） */
  .admin-main .admin-back-home { display: inline-block; }

  /* 后台：表格横向滚动 */
  .admin-panel, .panel { overflow-x: auto; }

  /* 回帖框：手机上不再悬浮，改为页面内的普通区块 */
  .th-reply {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 14px 14px 12px;
  }
  .th-posts { padding-bottom: 24px; }
  .th-reply textarea { min-height: 96px; }
  .th-reply-foot { flex-wrap: wrap; gap: 8px; }
  .th-reply-foot .btn { margin-left: auto; }
}

@media (max-width: 420px) {
  .ph-row h1 { font-size: 26px; }
  .art-head h1 { font-size: 27px; }
  .feat-title { font-size: 26px; }
  .ih-body h1 { font-size: 25px; }
  .brand-lockup { height: 26px; }
}

/* 图片管理：已删除卡片的操作行 */
.media-actions { display: flex; align-items: center; gap: 14px; padding: 0 10px 10px; }
.media-card .media-actions form { padding: 0; }

/* 图片管理：文件丢失的占位 */
.media-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.admin-back-home {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.admin-back-home:hover { color: var(--accent); }

/* 手机专用背景图：仅窄屏生效，PC 不显示 */
@media (max-width: 700px) {
  body.has-mobile-bg {
    background-image: var(--mobile-bg);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
  }
  /* 全透明：直接看到手机背景图 */
  body.has-mobile-bg::before { display: none; }
  body.has-mobile-bg .site-main,
  body.has-mobile-bg .site-foot { position: relative; z-index: 1; }
  /* 顶栏与下拉菜单保持在蒙层之上 */
  body.has-mobile-bg .site-head { z-index: 60; }
  body.has-mobile-bg .site-head .head-nav { z-index: 70; }
  body.has-mobile-bg .site-main,
  body.has-mobile-bg .panel,
  body.has-mobile-bg .side-card,
  body.has-mobile-bg .page-head {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 编辑资料：手机背景图区块（仅手机显示） */
.bg-mobile-block { display: none; }
@media (max-width: 700px) { .bg-mobile-block { display: block; } }

/* 手机背景图说明文字：与「移除背景图」同色 */
.bg-hint { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* 手机背景图预览：竖向 9:16 */
.bg-mobile-block .bg-preview {
  aspect-ratio: 9 / 16;
  height: auto;
  max-width: 260px;
  overflow: hidden;
}
.bg-mobile-block .bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 启用手机背景图时，个人主页封面区一律透明（不再依赖 hero 上的类，避免刷新后状态不同步） */
@media (max-width: 700px) {
  body.has-mobile-bg .prof-cover { background: transparent; }
  body.has-mobile-bg .prof-hero.no-cover .prof-cover { height: 0; background: transparent; }
  body.has-mobile-bg .prof-hero.no-cover .prof-id { margin-top: 0; padding-top: 34px; }
  body.has-mobile-bg .prof-cover-empty { display: none; }
}

/* 首页区块之间留白：季刊之后的常驻刊物标题与上方卡片拉开距离 */
.recent + .recent { margin-top: 52px; }

/* 排行榜页 */
.rank-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.rank-panel { max-width: 900px; }
/* 排行榜：放宽内容宽度、放大封面 */
.rank-wide {
  /* 突破页面窄容器，做成整页宽的排行列表 */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 94vw) !important;
  max-width: none !important;
  padding: 28px 34px;
  margin: 0 !important;
}
/* 排行榜页整体放宽，标题过长时换行而不是挤在一起 */
body.is-ranking .site-main,
body.is-ranking .wrap { max-width: 1180px; }
body.is-ranking .page-head {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 94vw);
  max-width: none;
}
.rank-wide .rank-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.rank-wide .rank-main { min-width: 0; padding-right: 8px; }
.rank-wide .rank-cover { width: 108px; height: 144px; }
.rank-wide .rank-row { padding: 22px 6px; }
.rank-wide .rank-title { font-size: 21px; }
.rank-wide .rank-score { min-width: 96px; }
.rank-wide .rank-title { font-size: 20px; }
.rank-wide .rank-score b { font-size: 24px; }
.rank-wide .rank-row { gap: 22px; padding: 20px 4px; }
.rank-wide .rank-no { width: 78px; font-size: 12px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-row { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-no { flex: none; width: 62px; font-size: 11px; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.rank-cover { flex: none; width: 54px; height: 72px; overflow: hidden; display: block; background: rgba(32,29,25,.06); }
.rank-cover img, .rank-cover-empty { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-author { font-size: 12px; color: var(--muted); }
.rank-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rank-score b { font-family: var(--serif); font-size: 20px; }
.rank-score small { font-size: 11px; color: var(--muted); }
@media (max-width: 700px) {
  .rank-wide { padding: 16px 14px; }
  .rank-row { gap: 12px; padding: 14px 0; }
  .rank-no { width: 48px; font-size: 10px; }
  .rank-cover { width: 58px; height: 78px; }
  .rank-wide .rank-cover { width: 58px; height: 78px; }
  .rank-wide .rank-title { font-size: 16px; }
  .rank-wide .rank-score b { font-size: 18px; }
  .rank-title { font-size: 15px; }
  .rank-score b { font-size: 17px; }
}

/* 排行榜：网格布局，分数列固定在白框内；标题贴近封面 */
.rank-wide { overflow: hidden; }
.rank-wide .rank-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 4px;
}
.rank-wide .rank-no { width: auto; justify-self: start; }
.rank-wide .rank-cover { width: 104px; height: 138px; }
.rank-wide .rank-main { min-width: 0; padding: 0; }
.rank-wide .rank-title { font-size: 21px; line-height: 1.35; }
.rank-wide .rank-score { justify-self: end; text-align: right; min-width: 0; }

/* 手机排行榜：标题在上、封面临下，长标题正常换行 */
@media (max-width: 700px) {
  .rank-wide .rank-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 2px;
  }
  .rank-wide .rank-no { order: 1; width: auto; }
  .rank-wide .rank-main { order: 2; width: 100%; }
  .rank-wide .rank-title {
    order: 0;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .rank-wide .rank-cover {
    order: 3;
    width: 100%;
    max-width: 210px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin-top: 6px;
  }
  .rank-wide .rank-cover img, .rank-wide .rank-cover-empty { height: 100%; }
  .rank-wide .rank-score {
    order: 4;
    align-items: flex-start;
    text-align: left;
    margin-top: 8px;
  }
  .rank-wide .rank-author { font-size: 12.5px; }
}

/* 排行榜：说明文字 + 右侧排序下拉 */
.rank-note-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 10px; }
.rank-note-row .rank-note { margin: 0; }
.rank-sort { flex: none; }
.rank-sort select {
  height: 32px;
  min-width: 118px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper-2, #fff);
  color: var(--ink);
  font-size: 12.5px;
}

/* 手机端表情面板：可滚动，不被编辑器裁掉 */
@media (max-width: 700px) {
  .emoji-pop {
    width: min(86vw, 320px);
    max-height: 42vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .emoji-picker.is-open .emoji-pop { display: flex; }
  .emoji-pop .emoji { font-size: 20px; padding: 6px; }
  /* 让面板能超出表单边界显示 */
  .reply-form, .th-reply-form, .msg-form, .composer, .editor-wrap { overflow: visible; }
}

/* 手机表情面板改为固定在屏幕底部上方，彻底避开父容器裁切 */
@media (max-width: 700px) {
  .emoji-picker .emoji-pop {
    position: fixed;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 44vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    z-index: 300;
    box-shadow: 0 12px 34px rgba(32, 29, 25, .22);
  }
}

/* 发布帖子：隐藏整块图片工具，改用笑脸旁的一键图片按钮；发布/取消右对齐（PC 与手机一致） */
.forum-img-tools { display: none !important; }
.forum-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.forum-actions .cf-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.forum-actions .forum-img-pick { display: inline-flex; margin-left: 6px; flex: none; }
.forum-actions .forum-submit { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.forum-actions .forum-submit .btn { flex: none; }
.forum-img-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.forum-img-pick:hover { border-color: var(--accent); color: var(--accent); }

/* 发布帖子：表单固定为整栏宽度，避免去掉图片行后随内容收缩 */
.th-new { width: 820px; max-width: calc(100vw - 40px); }
.th-new form { width: 100%; }
.th-new .field input,
.th-new .field textarea { width: 100%; }

/* 手机帖子详情：回复栏固定在底部（与 PC 一致的交互） */
@media (max-width: 700px) {
  .th-reply {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    margin: 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: 0 -8px 24px rgba(32, 29, 25, .08);
    max-height: 46vh;
    overflow-y: auto;
  }
  .th-reply .th-reply-head { display: flex; font-size: 12.5px; margin-bottom: 6px; }
  .th-reply textarea { min-height: 46px; }
  body:has(.th-reply) .site-main { padding-bottom: 170px; }
}

/* 回复目标提示 */
.reply-target-legacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 5px 10px;
  background: var(--paper-3, #efe9df);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.reply-target span { flex: 1; min-width: 0; }
.reply-target-cancel {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* 楼层引用：小号灰字 + 细边框盒子 */
.th-quote {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-2, var(--line));
  background: var(--paper-2);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 楼层之间留白更大（PC 与手机） */
.th-post { padding-top: 24px; padding-bottom: 24px; }
.th-post + .th-post { margin-top: 8px; }
@media (min-width: 701px) {
  .th-post { padding-top: 30px; padding-bottom: 30px; }
}

/* 新回复定位到楼层时高亮一下 */
.th-post:target,
.th-post.is-focus { animation: thFocus 1.8s ease-out 1; }
@keyframes thFocus {
  0% { background: rgba(201, 162, 78, .22); }
  100% { background: transparent; }
}

/* 新发表的评论：定位并高亮 */
.comment:target, .cmt:target, [id^="c-"]:target {
  animation: cmtFocus 1.8s ease-out 1;
}
@keyframes cmtFocus {
  0% { background: rgba(201, 162, 78, .18); }
  100% { background: transparent; }
}

.comment.is-focus { animation: cmtFocus 1.8s ease-out 1; }

/* 打开弹窗锁定滚动时保留滚动条位置，避免页面闪一下 */
html { scrollbar-gutter: stable; }

/* 手机回复栏：更紧凑，参考聊天输入条 */
@media (max-width: 700px) {
  .th-reply { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .th-reply .th-reply-head { display: none; }
  .th-reply textarea {
    min-height: 40px;
    height: 40px;
    padding: 9px 12px;
    font-size: 13.5px;
  }
  .th-reply .th-reply-foot { margin-top: 6px; gap: 8px; }
  .th-reply .emoji-toggle,
  .th-reply .mention-toggle,
  .th-reply .msg-img-pick { width: 28px; height: 28px; }
  .th-reply .emoji-toggle svg,
  .th-reply .mention-toggle svg,
  .th-reply .msg-img-pick svg { width: 15px; height: 15px; }
  .th-reply .th-reply-foot .btn {
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
  }
  body:has(.th-reply) .site-main { padding-bottom: 132px; }
}

/* 手机私信输入区紧凑化（与讨论版回复栏一致） */
@media (max-width: 700px) {
  .msg-form { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .msg-form textarea, .msg-form .rich-input { min-height: 40px; height: 40px; padding: 9px 12px; font-size: 13.5px; }
  .msg-tools { gap: 8px; margin-bottom: 6px; }
  .msg-tools .emoji-toggle, .msg-tools .msg-img-pick { width: 28px; height: 28px; }
  .msg-tools .emoji-toggle svg, .msg-tools .msg-img-pick svg { width: 15px; height: 15px; }
  .msg-form .btn, .msg-form button[type="submit"] { height: 32px; padding: 0 18px; font-size: 13px; }
}
/* dm-input-top */

/* 手机私信输入区：输入框在上、工具在下，文字垂直居中 */
@media (max-width: 700px) {
  .msg-form { display: flex; flex-direction: column; gap: 6px; }
  .msg-form textarea, .msg-form .rich-input {
    order: 1;
    height: 62px;
    min-height: 62px;
    padding: 10px 12px;
    line-height: 20px;
    font-size: 13.5px;
  }
  .msg-tools { order: 2; margin: 0; gap: 8px; }
  .msg-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "input input" "tools send";
    align-items: center;
    gap: 6px 10px;
  }
  .msg-form textarea, .msg-form .rich-input { grid-area: input; }
  .msg-tools { grid-area: tools; }
  .msg-form .btn, .msg-form button[type="submit"] {
    grid-area: send;
    justify-self: end;
    height: 30px;
    padding: 0 16px;
    font-size: 12.5px;
    margin: 0;
  }
}
/* dm-tight-bottom */

/* 手机私信输入区：收紧底部多余留白 */
@media (max-width: 700px) {
  .msg-form {
    gap: 4px 10px;
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom)) !important;
  }
  .msg-tools { padding: 2px 0 0; }
  .msg-form .btn, .msg-form button[type="submit"] { height: 28px; padding: 0 14px; }
}
/* forum-input-short */

/* 手机讨论版回复框：与私信输入框同高 */
@media (max-width: 700px) {
  .th-reply .rich-input,
  .th-reply .light-editor,
  .th-reply [contenteditable="true"] {
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    overflow-y: auto;
    padding: 9px 12px;
    font-size: 13.5px;
    line-height: 20px;
  }
}
/* forum-placeholder-center */

/* 手机讨论版回复框：强制单行高度，占位文字垂直居中 */
@media (max-width: 700px) {
  .th-reply .rich-input,
  .th-reply textarea[name="body"] {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 9px 12px !important;
    line-height: 20px !important;
  }
  .th-reply .rich-input.is-empty::before {
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
  }
}
/* floor-chip */

/* 手机回复栏：图片按钮右侧显示「回复 N 楼」 */
.reply-floor-chip { display: none; }
@media (max-width: 700px) {
  .reply-floor-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
  }
}
/* frosted-composers */

/* 启用手机背景图时：讨论版回复栏与私信输入区改为磨砂 */
@media (max-width: 700px) {
  /* 用伪元素做磨砂，避免 backdrop-filter 破坏固定定位的表情面板 */
  body.has-mobile-bg .th-reply,
  body.has-mobile-bg .msg-form {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.has-mobile-bg .msg-form { position: relative; }
  body.has-mobile-bg .th-reply::before,
  body.has-mobile-bg .msg-form::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(247, 244, 238, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: none;
  }
}
/* background tint for img pick */

/* 开启背景（网站/手机）时，图片按钮填充色取背景主色 */
body.has-user-bg .msg-img-pick,
body.has-user-bg .th-reply .msg-img-pick {
  background: var(--bg-tint, rgba(244, 239, 229, .85));
  border-color: rgba(28, 23, 16, .18);
  color: var(--ink);
}
/* decouple-bg */

/* 手机端：只使用手机背景图，网站背景图不影响手机 */
@media (max-width: 700px) {
  body.has-mobile-bg { background-image: none !important; }
  body.has-mobile-bg:not(.has-user-bg) { background-color: var(--paper); }
  /* 编辑资料：手机只保留手机背景图设置（隐藏网站背景图那一组，但保留内嵌的手机区块） */
  .bg-edit > .field > span:first-child,
  .bg-edit > .field > .bg-preview,
  .bg-edit > .field > .bg-form,
  .bg-edit > .field > small.hint,
  .bg-edit > .field > .bg-status,
  .bg-edit > .field > .bg-actions,
  .bg-edit > .field > form[action="/profile/bg/enable"],
  .bg-edit > .field > form[action="/profile/bg/remove"],
  .bg-edit > .field > .bg-form,
  .bg-edit > .field > .bg-form-actions { display: none !important; }
  .bg-mobile-block > .bg-form,
  .bg-mobile-block > .bg-form-actions { display: block !important; }
}
/* dm-fixed-composer */

/* 手机私信：保证输入区始终固定在可见底部 */
@media (max-width: 700px) {
  .fh-page.is-chat {
    height: calc(100dvh - 64px);
    min-height: calc(100dvh - 64px);
    overflow: hidden;
  }
  .fh-page.is-chat .fh-center { height: 100%; }
  .fh-page.is-chat .msg-form {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: transparent;
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}
/* 启用手机背景图时：增强文字可读性 */
@media (max-width: 700px) {
  body.has-mobile-bg {
    --ink: #000000;
    --muted: #2b251d;
  }
  body.has-mobile-bg .site-main,
  body.has-mobile-bg .th-post,
  body.has-mobile-bg .comment {
    text-shadow: none;
  }
  body.has-mobile-bg .site-main p,
  body.has-mobile-bg .site-main li,
  body.has-mobile-bg .site-main span:not(.btn),
  body.has-mobile-bg .site-main small,
  body.has-mobile-bg .site-main time,
  body.has-mobile-bg .th-body,
  body.has-mobile-bg .comment-body {
    font-weight: 600;
  }
}
/* frosted-edit-inputs */

/* 启用手机背景图时：编辑资料里的输入框改为磨砂 */
@media (max-width: 700px) {
  body.has-mobile-bg .prof-edit input:not([type="checkbox"]):not([type="file"]),
  body.has-mobile-bg .prof-edit textarea,
  body.has-mobile-bg .prof-edit select {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(32, 29, 25, 0.22);
  }
  body.has-mobile-bg .prof-edit .file-row,
  body.has-mobile-bg .prof-edit .file-input {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
/* frosted-file-inputs */

/* 编辑资料：文件选择框与勾选框也磨砂 */
@media (max-width: 700px) {
  body.has-mobile-bg .prof-edit input[type="file"] {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(32, 29, 25, 0.22);
    padding: 8px 10px;
    border-radius: 2px;
    color: var(--ink);
  }
  body.has-mobile-bg .prof-edit input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(32, 29, 25, 0.28);
    padding: 4px 10px;
    margin-right: 10px;
    color: var(--ink);
    cursor: pointer;
  }
  input[type="checkbox"] {
    accent-color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(32, 29, 25, 0.4);
  }
}

/* 手机端勾选框：只缩小原生尺寸，不改外观，避免样式异常 */
@media (max-width: 700px) {
  input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 2px 0 0;
    vertical-align: middle;
    accent-color: #1d1a15;
  }
}
/* auto-grow-rich-input */

/* 手机输入框：插入表情/图片后允许自动增高，不再被固定高度裁掉 */
@media (max-width: 700px) {
  .th-reply .rich-input,
  .msg-form .rich-input,
  .comment-form .rich-input {
    height: auto !important;
    min-height: 40px !important;
    max-height: 150px !important;
    overflow-y: auto;
    line-height: 1.6;
  }
  .rich-input .rich-sticker,
  .rich-input img {
    vertical-align: middle;
  }
}
/* emoji-clip-fix */

/* 手机回复栏：打开表情面板时不裁切、不生成包含块 */
@media (max-width: 700px) {
  .th-reply { overflow: visible !important; }
  .th-reply:has(.emoji-picker.is-open),
  .msg-form:has(.emoji-picker.is-open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
/* pc-emoji-above */

/* PC 讨论版：表情面板浮在编辑栏上方，且不被容器裁切 */
@media (min-width: 701px) {
  .th-reply, .th-reply form, .th-reply-foot, .th-reply .cf-tools { overflow: visible; }
  .th-reply .emoji-pop {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 380px;
    max-height: 300px;
    padding: 12px;
    z-index: 400;
    box-shadow: 0 18px 44px rgba(32, 29, 25, .22);
    border-radius: 8px;
  }
  .th-reply .emoji-pop .emoji { font-size: 20px; padding: 6px; }
}
/* emoji-pop-pc */

/* PC 表情面板：挂在回复表单内，浮在表单上方 */
@media (min-width: 701px) {
  .th-reply .emoji-pop.emoji-pop-pc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    top: auto;
    width: auto;
    max-height: 320px;
    padding: 12px;
    z-index: 400;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(32, 29, 25, .22);
  }
  .th-reply .emoji-pop.emoji-pop-pc .emoji { font-size: 20px; padding: 6px; }
}
/* emoji-tabs-top */

/* 表情面板：分类标签固定在顶部，emoji 间距收紧 */
@media (min-width: 701px) {
  .th-reply .emoji-picker.is-open .emoji-pop {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
  }
  .th-reply .emoji-pop .emoji-tabs { flex: 0 0 100%; margin-bottom: 6px; }
  .th-reply .emoji-pop .emoji-pane { flex: 0 0 100%; gap: 4px; }
}
@media (min-width: 701px) {
  .th-reply .emoji-pop .emoji-pane { gap: 4px 8px; }
  .th-reply .emoji-pop .emoji-pane .emoji { padding: 4px; font-size: 22px; }
}
/* compact-emoji-panel */

/* 讨论版表情面板：更窄、更高、间距更小 */
@media (min-width: 701px) {
  .th-reply .emoji-picker.is-open .emoji-pop .emoji-pane { gap: 2px; }
  .th-reply .emoji-picker.is-open .emoji-pop .emoji { padding: 2px; font-size: 20px; }
}
/* emoji-tight-fit */

/* 讨论版表情面板：高度贴合内容，去掉底部多余空白 */
@media (min-width: 701px) {
  .th-reply .emoji-picker.is-open .emoji-pop { padding: 10px 10px 8px; }
  .th-reply .emoji-picker.is-open .emoji-pop .emoji-pane { min-height: 0; padding: 0 2px 2px; }
}
/* mobile-emoji-small */

/* 手机讨论版表情面板：整体缩小 */
@media (max-width: 700px) {
  .th-reply .emoji-picker.is-open .emoji-pop {
    max-height: 34vh;
    padding: 8px 8px 6px;
  }
  .th-reply .emoji-picker.is-open .emoji-pop .emoji { font-size: 16px; padding: 2px; }
  .th-reply .emoji-picker.is-open .emoji-pop .emoji-pane { gap: 2px; }
  .th-reply .emoji-picker.is-open .emoji-pop .emoji-tabs { margin-bottom: 4px; font-size: 12px; }
}
/* mobile-emoji-narrow */

/* 手机：讨论版表情面板收窄；私信/评论表情同样缩小 */
@media (max-width: 700px) {
  .th-reply .emoji-picker.is-open .emoji-pop {
    left: 12px !important;
    right: auto !important;
    width: min(320px, calc(100vw - 24px)) !important;
  }
  .msg-form .emoji-picker.is-open .emoji-pop,
  .comment-form .emoji-picker.is-open .emoji-pop {
    padding: 8px;
    max-height: 34vh;
    overflow-y: auto;
  }
  .msg-form .emoji-picker.is-open .emoji-pop .emoji,
  .comment-form .emoji-picker.is-open .emoji-pop .emoji { font-size: 16px; padding: 2px; }
  .msg-form .emoji-picker.is-open .emoji-pop .emoji-pane,
  .comment-form .emoji-picker.is-open .emoji-pop .emoji-pane { gap: 2px; }
  .msg-form .emoji-picker.is-open .emoji-pop .emoji-sticker,
  .comment-form .emoji-picker.is-open .emoji-pop .emoji-sticker { width: 44px; height: 44px; }
}
/* comment-input-tall */

/* 手机评论输入框：提示词完整显示 */
@media (max-width: 700px) {
  .comment-form .rich-input,
  .comment-form textarea[name="content"] {
    height: auto !important;
    min-height: 92px !important;
    max-height: 220px !important;
    overflow-y: auto;
    line-height: 1.8;
    padding: 12px 14px;
  }
  .comment-form .rich-input.is-empty::before { white-space: normal; line-height: 1.8; }
}

/* 预设背景图选择 / 后台管理 */
.bg-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.bg-preset { margin: 0; }
.bg-preset button { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; position: relative; }
.bg-preset img { width: 100%; height: 84px; object-fit: contain; display: block; background: rgba(32, 29, 25, .06); }
.bg-preset.is-mobile img { height: 120px; }
.bg-preset span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(20, 17, 14, .72); color: #fff; }
.bg-preset button:hover { border-color: var(--ink); }
.preset-upload { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.preset-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.preset-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.preset-thumb img { width: 100%; max-height: 300px; object-fit: contain; display: block; background: rgba(32, 29, 25, .06); }
.preset-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }

/* 裁剪框限高：即使脚本缓存较旧，竖版也不会超出屏幕 */
.crop-stage { max-height: 58vh; }
@media (max-width: 700px) { .crop-stage { max-height: 54vh; } }

/* PC 只看网站预设，手机只看手机预设 */
.preset-site-block { display: block; }
@media (max-width: 700px) {
  .preset-site-block { display: none !important; }
}
@media (min-width: 701px) {
  .preset-mobile-block { display: none !important; }
}

.bg-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.bg-form-actions .btn { white-space: nowrap; }
.bg-own-form { display: inline-flex; margin: 0; }
/* comment-head-mobile */

/* 手机评论头部：时间独占一行；「回复 昵称」整体换行 */
@media (max-width: 700px) {
  .c-head { flex-wrap: wrap; align-items: center; row-gap: 2px; column-gap: 6px; }
  .c-head .c-name { flex: 0 0 auto; }
  .c-head .c-badge { flex: 0 0 auto; white-space: nowrap; }
  .c-head .c-reply-to { flex: 0 1 auto; white-space: nowrap; }
  .c-head time { flex: 0 0 100%; margin-left: 0; line-height: 1.5; }
  .c-reply-to::before { margin: 0 2px; }
}
/* comments-head-mobile */

/* 手机评论标题与工具栏分两行 */
@media (max-width: 700px) {
  .discussion .sec-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .discussion .disc-tools { width: 100%; display: flex; align-items: center; gap: 8px; }
  .discussion .disc-tools .search-inline { flex: 1 1 auto; min-width: 0; }
  .discussion .disc-tools .search-inline input { width: 100%; min-width: 0; font-size: 12.5px; }
  .discussion .disc-tools select { flex: 0 0 auto; }
}
/* dm-two-lines-final */

/* 手机私信输入框保持两行高度（覆盖自动增高规则的最小高度） */
@media (max-width: 700px) {
  .msg-form .rich-input,
  .msg-form textarea { min-height: 62px !important; }
}
/* dm-pad-compensate */

/* 手机私信：加高输入框的 22px 从底部留白里扣除，聊天区高度不变 */
@media (max-width: 700px) {
  .fh-page.is-chat .msg-form {
    padding-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
  }
}
/* emoji-tabs-sticky */

/* 表情面板：滚动时分类栏固定在顶部（PC / 手机通用） */

/* emoji-panel-fixed-tabs */
/* emoji-tabs-sticky-global */

/* 表情面板：滚动时分类栏固定（PC / 手机通用） */
.emoji-pop { padding-top: 0; }
.emoji-pop .emoji-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  background: var(--paper-2);
  margin: 0 0 4px;
  padding: 5px 0 4px;
  line-height: 1.25;
  align-items: center;
  box-shadow: 0 1px 0 var(--line);
}
/* thread-tabs-thin */

/* 讨论版面板与其它面板一致的分类栏厚度 */
.th-reply .emoji-pop { padding-top: 0; }
.th-reply .emoji-pop .emoji-tabs { margin-bottom: 4px; }

/* thread-tabs-flush */
.th-reply .emoji-picker.is-open .emoji-pop { padding-top: 0; }

/* emoji-pop-no-padding-top */
.emoji-pop { padding-top: 0 !important; }

/* emoji-pop-scroll-isolation */
.emoji-pop { overscroll-behavior: contain; }
.emoji-pop .emoji-pane { overscroll-behavior: contain; }

@media (max-width: 700px) {
/* bg-white-text */
body.has-mobile-bg,
body.has-mobile-bg {
  --ink: #ffffff;
  --ink-2: #f3ede2;
  --muted: #e4dbcb;
  --muted-2: #d6cbb6;
}
body.has-mobile-bg .site-main p,
body.has-mobile-bg .site-main li,
body.has-mobile-bg .site-main time,
body.has-mobile-bg .site-main p,
body.has-mobile-bg .site-main li,
body.has-mobile-bg .site-main time {
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
/* bg-button-vars */

/* 启用背景图时：按钮沿用原本配色，不跟随白字变量 */
body.has-user-bg .btn,
body.has-user-bg .link-btn,
body.has-user-bg button,
body.has-user-bg .emoji-toggle,
body.has-user-bg .mention-toggle,
body.has-mobile-bg .btn,
body.has-mobile-bg .link-btn,
body.has-mobile-bg button,
body.has-mobile-bg .emoji-toggle,
body.has-mobile-bg .mention-toggle {
  --ink: #1c1710;
  --ink-2: #3a342b;
  --muted: #8b8172;
}
/* bg-white-ghost */

/* 背景图模式：返回主页等描边按钮与「移除背景」链接也用白字 */
body.has-user-bg .btn-ghost,
body.has-mobile-bg .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .55);
}
body.has-user-bg .btn-ghost:hover,
body.has-mobile-bg .btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, .12);
}
body.has-user-bg form[action="/profile/bg/remove"] .link-btn,
body.has-mobile-bg form[action="/profile/bg-mobile/remove"] .link-btn,
body.has-user-bg form[action="/profile/bg/remove"] .link-btn:hover,
body.has-mobile-bg form[action="/profile/bg-mobile/remove"] .link-btn:hover {
  color: #ffffff;
}
/* bg-control-vars */

/* 背景图模式：下拉/输入控件沿用原本的深色文字 */
body.has-user-bg select,
body.has-user-bg input,
body.has-user-bg textarea,
body.has-mobile-bg select,
body.has-mobile-bg input,
body.has-mobile-bg textarea {
  --ink: #1c1710;
  --ink-2: #3a342b;
  --muted: #8b8172;
  color: #1c1710;
}
body.has-user-bg select option,
body.has-mobile-bg select option {
  color: #1c1710;
  background: #f6f1ea;
}
/* bg-th-quote */

/* 背景图模式：引用楼层保持原样式（浅底深字） */
body.has-user-bg .th-quote,
body.has-mobile-bg .th-quote {
  --muted: #3a342b;
  color: #3a342b;
  background: var(--paper-2);
  text-shadow: none;
}
/* bg-nt-tabs */

/* 背景图模式：通知页标签未选中为半透明白，选中为纯白 */
body.has-user-bg .nt-tab,
body.has-mobile-bg .nt-tab,
body.has-user-bg .nt-subtab,
body.has-mobile-bg .nt-subtab {
  color: rgba(255, 255, 255, .55);
}
body.has-user-bg .nt-tab.is-on,
body.has-mobile-bg .nt-tab.is-on,
body.has-user-bg .nt-subtab.is-on,
body.has-mobile-bg .nt-subtab.is-on {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
/* bg-user-menu */

/* 背景图模式：账号下拉菜单保持浅底深字 */
body.has-user-bg .user-menu .menu,
body.has-mobile-bg .user-menu .menu {
  --ink: #1c1710;
  --ink-2: #3a342b;
  --muted: #8b8172;
  color: #1c1710;
}
/* bg-white-bold */

/* 背景图模式：正文里的加粗/标题也转白 */
body.has-mobile-bg .site-main strong,
body.has-mobile-bg .site-main b,
body.has-mobile-bg .prose strong,
body.has-mobile-bg .prose b,
body.has-mobile-bg .prose .md-h,
body.has-mobile-bg .site-main strong,
body.has-mobile-bg .site-main b,
body.has-mobile-bg .prose strong,
body.has-mobile-bg .prose b,
body.has-mobile-bg .prose .md-h {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
/* bg-white-headings */
}

/* 背景图模式：文章正文内各级标题转白 */
body.has-mobile-bg .article-body :is(h1,h2,h3,h4,h5,h6),
body.has-mobile-bg .article-body .art-h,
body.has-mobile-bg .prose :is(h1,h2,h3,h4,h5,h6),
body.has-mobile-bg .article-body :is(h1,h2,h3,h4,h5,h6),
body.has-mobile-bg .article-body .art-h,
body.has-mobile-bg .prose :is(h1,h2,h3,h4,h5,h6) {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
/* bg-sort-select */

/* 背景图模式：评论排序下拉（点赞最多）保持深色字 */
body.has-user-bg .disc-tools select,
body.has-mobile-bg .disc-tools select,
body.has-user-bg select[data-sort-comments],
body.has-mobile-bg select[data-sort-comments] {
  color: #1c1710 !important;
  background-color: rgba(246, 241, 234, .92);
}
/* bg-to-comments */

/* 背景图模式：右下角回到评论箭头保持原配色 */
body.has-user-bg .to-comments,
body.has-mobile-bg .to-comments {
  --ink: #1c1710;
  --ink-2: #3a342b;
  color: #1c1710;
  text-shadow: none;
}
/* nav-touch-fix */

/* 手机：避免触摸后链接保留 hover/focus 高亮（只有当前页高亮） */
@media (hover: none) {
  .head-nav .nav-link:not(.is-active):hover,
  .head-nav .nav-link:not(.is-active):focus {
    background: transparent;
    color: inherit;
  }
  .head-nav .nav-link.is-active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .head-nav .nav-link.pill:hover,
  .head-nav .nav-link.pill:focus {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
  }
}
/* pill-active-only */

/* 刊物索引的胶囊样式只在当前页高亮，避免和当前栏目同时亮 */
@media (max-width: 700px) {
  .head-nav .nav-link.pill { background: transparent; }
  .head-nav .nav-link.pill.is-active { background: rgba(255, 255, 255, .14); }
}
/* pill-dim-text */

/* 刊物索引胶囊文字亮度与其它栏目一致，只有当前页更亮 */
@media (max-width: 700px) {
  .head-nav .nav-link.pill { color: rgba(255, 255, 255, .74); border-color: rgba(255, 255, 255, .28); }
  .head-nav .nav-link.pill.is-active { color: #ffffff; border-color: rgba(255, 255, 255, .6); }
}
/* nav-no-fill */

/* 顶栏导航：不要填充，仅用文字/描边区别当前页 */
.head-nav .nav-link.is-active,
.head-nav .nav-link.pill.is-active {
  background: transparent !important;
}
@media (max-width: 700px) {
  .head-nav .nav-link.pill.is-active {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .6);
  }
}
/* bg-flash */

/* 背景图模式：页面提示条保持浅底深字 */
body.has-user-bg .flash,
body.has-mobile-bg .flash {
  --ink: #1c1710;
  color: #1c1710;
  background: var(--paper-2);
  border-color: var(--line);
}
body.has-user-bg .flash.is-err,
body.has-mobile-bg .flash.is-err { color: #b23a2b; }
/* bg-band-transparent */

/* 手机背景图模式：编辑部公告黄条改为透明 */
@media (max-width: 700px) {
  body.has-mobile-bg .band {
    background: transparent;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  body.has-mobile-bg .band-more {
    color: #2a2406;
    border-bottom-color: rgba(42, 36, 6, .35);
  }
  body.has-mobile-bg .band-sub { opacity: .8; }
}
/* bg-band-lines */

/* 手机背景图模式：公告栏分隔线粗细 */
@media (max-width: 700px) {
  body.has-mobile-bg .band {
    border-bottom: 1.3px solid rgba(255, 255, 255, .45);
  }
  body.has-mobile-bg .announce-list {
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  body.has-mobile-bg .ann-row a {
    border-top: 1px solid rgba(255, 255, 255, .22) !important;
  }
  body.has-mobile-bg .ann-row:first-child a {
    border-top: 0 !important;
  }
}
/* bg-toast-mobile */

/* 手机背景图模式：toast 保持深底浅字，不随白字变量 */
body.has-mobile-bg .toast {
  --ink: #1c1710;
  background: #1c1710;
  color: #f6f1ea;
}
/* comment-emoji-fixedh */

/* 手机评论表情面板：固定高度，两分类等高 */
@media (max-width: 700px) {
  .comment-form .emoji-picker.is-open .emoji-pop {
    height: 196px !important;
    max-height: 196px !important;
    overflow: hidden;
  }
  .comment-form .emoji-pop .emoji-pane {
    height: 148px !important;
    max-height: 148px !important;
    overflow-y: auto;
  }
}
/* dm-emoji-naturalh */

/* 手机私信表情面板：按 emoji 自然高度固定，两分类等高 */
@media (max-width: 700px) {
  .msg-form .emoji-picker.is-open .emoji-pop {
    height: 196px !important;
    max-height: 196px !important;
    overflow: hidden;
  }
  .msg-form .emoji-pop .emoji-pane {
    height: 148px !important;
    max-height: 148px !important;
    overflow-y: auto;
  }
}
/* mobile-bg-fixed-pseudo */

/* 手机背景图：改用固定伪元素，避免键盘弹起时被拉伸 */
@media (max-width: 700px) {
  body.has-mobile-bg {
    background-image: none !important;
    background-color: var(--paper);
  }
  body.has-mobile-bg::before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    opacity: 1;
    background-image: var(--mobile-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
  }
  body.has-mobile-bg .site-main,
  body.has-mobile-bg .site-foot { position: relative; z-index: 1; }
}
/* home-forum-mini-mobile */

/* 手机主页讨论版列表：去掉昵称与时间，推/回复右对齐 */
@media (max-width: 700px) {
  .forum-mini-row > span:nth-of-type(2),
  .forum-mini-row time { display: none; }
  .forum-mini-row a { justify-content: space-between; }
  .forum-mini-row { gap: 10px; }
  .forum-mini-row .th-push-count { margin-left: auto; }
}
/* bg-rate-confirm */

/* 背景图模式：评分「更新」按钮保持深底浅字 */
body.has-user-bg .rate-confirm,
body.has-mobile-bg .rate-confirm {
  --ink: #1c1710;
  background: #1c1710;
  color: #f6f1ea;
  border-color: #1c1710;
}
body.has-user-bg .rate-confirm:disabled,
body.has-mobile-bg .rate-confirm:disabled {
  background: #1c1710;
  color: #f6f1ea;
  opacity: .55;
}

/* bg-rate-stars */
body.has-user-bg .rate-panel .stars,
body.has-mobile-bg .rate-panel .stars,
body.has-user-bg .rate-picks-stars,
body.has-mobile-bg .rate-picks-stars {
  background-image: linear-gradient(to right, #d8a72c var(--pct, 0%), #8d8578 var(--pct, 0%));
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* lightbox-wheel */

/* 灯箱图片：滚轮缩放 */
.lightbox img { will-change: transform; cursor: zoom-in; transform-origin: center center; backface-visibility: hidden; }
/* lightbox-no-page-zoom */

/* 灯箱：手机缩放图片时不影响页面 */
.lightbox, .lightbox img { touch-action: none; overscroll-behavior: contain; }
body.lightbox-open { overflow: hidden; }
/* lightbox-no-blur-mobile */

/* 手机灯箱：关闭背景模糊（移动图片时重绘开销最大来源） */
@media (max-width: 700px) {
  .lightbox.is-open {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(16, 13, 10, .92) !important;
  }
}
/* dm-bubbles-gutter */

/* 私信气泡与边缘留白 */
.fh-center .msg-bubbles { padding: 4px 12px 10px; }
/* desktop-text-restore */

/* 桌面端恢复默认文字颜色（白字仅手机背景图 + 窄屏） */
@media (min-width: 701px) {
  body.has-mobile-bg {
    --ink: #1c1710;
    --ink-2: #3a342b;
    --muted: #8b8172;
    --muted-2: #a79c8b;
  }
}
/* desktop-inline-reset */

/* 桌面端：正文加粗与标题恢复深色（白字仅手机端） */
@media (min-width: 701px) {
  body.has-mobile-bg .site-main strong,
  body.has-mobile-bg .site-main b,
  body.has-mobile-bg .prose strong,
  body.has-mobile-bg .prose b,
  body.has-mobile-bg .prose .md-h,
  body.has-mobile-bg .article-body :is(h1,h2,h3,h4,h5,h6),
  body.has-mobile-bg .article-body .art-h,
  body.has-mobile-bg .prose :is(h1,h2,h3,h4,h5,h6) {
    color: var(--ink) !important;
    text-shadow: none !important;
  }
}
/* forum-img-pick-size */

/* 发帖页图片按钮与表情按钮同尺寸 */
.forum-img-pick { width: 30px; height: 30px; }
.forum-img-pick svg { width: 15px; height: 15px; }
body.has-user-bg .forum-img-pick {
  background: var(--bg-tint, rgba(244, 239, 229, .85));
  border-color: rgba(28, 23, 16, .18);
  color: var(--ink);
}
/* newthread-emoji-size */

/* 手机发布帖子：表情面板与私信同尺寸 */
@media (max-width: 700px) {
  .th-new .emoji-picker.is-open .emoji-pop {
    height: 196px !important;
    max-height: 196px !important;
    overflow: hidden;
  }
  .th-new .emoji-pop .emoji-pane {
    height: 148px !important;
    max-height: 148px !important;
    overflow-y: auto;
  }
}
/* modal-dark-text */

/* 确认弹窗：深色文字，不受背景图白字影响 */
.modal {
  --ink: #1c1710;
  --ink-2: #3a342b;
  --muted: #8b8172;
}
body.has-mobile-bg .modal .modal-head h3,
body.has-mobile-bg .modal .modal-body,
body.has-mobile-bg .modal .modal-foot { color: #1c1710; }
body.has-mobile-bg .modal .modal-body { color: #3a342b; }
/* sub-actions-gap */

/* 投稿审核操作区：按钮拉开间距 */
.sub-card footer.sub-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-card footer .sub-move { display: flex; align-items: center; gap: 8px; }
.sub-card footer .sub-move select { height: 30px; max-width: 220px; }
/* sub-meta-lines */

/* 投稿审核：标题与刊物/作者/时间分行 */
.sub-card header .sub-head-main { display: flex; flex-direction: column; gap: 6px; }
.sub-card header .sub-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12.5px; }
.sub-card header .sub-meta span { white-space: nowrap; }
/* sub-afterword-block */

/* 审核页：后记区块 */
.sub-card .sub-afterword { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--line-2); background: var(--paper-2); border-radius: 4px; }
.sub-card .sub-afterword b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .08em; }
.sub-card .sub-afterword p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
/* cover-upload-row */

/* 文章封面：文件输入 + 保存按钮同排 */
.cover-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cover-upload-row input[type="file"] { flex: 1 1 220px; min-width: 0; }
.cover-preview img { max-width: 100%; max-height: 320px; object-fit: contain; display: block; margin-top: 10px; border-radius: 6px; }
/* social-off-hide */

/* 讨论版 / 好友功能关闭时：隐藏所有入口 */
body[data-social="off"] a[href="/forum"],
body[data-social="off"] a[href^="/forum/"],
body[data-social="off"] a[href="/friends"],
body[data-social="off"] a[href^="/friends/"],
body[data-social="off"] a[href^="/messages"],
body[data-social="off"] a[href*="/ratings/friends"],
body[data-social="off"] form[action^="/friends"],
body[data-social="off"] form[action^="/messages"] { display: none !important; }
/* prof-mobile-white */

/* 手机背景图：个人主页资料文字转白 */
@media (max-width: 700px) {
  body.has-mobile-bg .prof-id-text h1,
  body.has-mobile-bg .prof-handle,
  body.has-mobile-bg .prof-bio,
  body.has-mobile-bg .prof-meta {
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  }
  body.has-mobile-bg .prof-handle { color: rgba(255,255,255,.82) !important; }
}
