:root {
  --paper: #fcfdfb;
  --grid: #e3eee6;
  --rule: #2e7d4f;
  --rule-soft: #b9d6c2;
  --ink: #1b1e1c;
  --ink-2: #4a5a50;
  --pen: #d33720;
  --pen-wash: rgba(217, 58, 34, .12);
  --bar: #2e7d4f;
  --cell: 22px;
  /* 全站内容统一宽度、居中：刊头、正文、页脚左右对齐 */
  --page: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --inline: max(var(--gutter), calc((100% - var(--page)) / 2));
  --size: 15px;
  --lh: 1.6;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1611;
    --grid: #17271d;
    --rule: #5fb784;
    --rule-soft: #2a4634;
    --ink: #e6eee8;
    --ink-2: #9db5a6;
    --pen: #ff6a4d;
    --pen-wash: rgba(255, 106, 77, .16);
    --bar: #4fa874;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); font-size: var(--size); line-height: var(--lh);
  -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px; }
::selection { background: var(--pen-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--rule-soft) transparent; caret-color: var(--pen); }
a { color: inherit; text-decoration-color: var(--rule-soft); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pen); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--paper); padding: 6px 12px; border: 1px solid var(--rule); }
.skip:focus { left: 16px; }

/* 刊头：左报名，中栏目，右语言与账号 */
.masthead { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap;
  padding: 14px var(--inline) 12px; background: var(--paper);
  border-bottom: 3px double var(--rule); }
.brand { font-size: 1rem; font-weight: 800; letter-spacing: .04em; color: var(--rule); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--pen); font-weight: 800; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; min-width: 0; }
.nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 1px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pen); }
.masthead .controls { margin-left: auto; }
.btn-sm { padding: 4px 12px; font-size: .93rem; letter-spacing: .04em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm .icon { stroke: currentColor; }
.bell { position: relative; color: var(--ink-2); display: inline-flex; align-self: center; }
.bell .icon { width: 19px; height: 19px; }
.bell .badge { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--pen); color: var(--paper); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.who:hover { color: var(--ink); }
.avatar { --h: 150; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: hsl(var(--h) 42% 38%); color: #fff; font-weight: 800; font-size: 14px; line-height: 1; }
.avatar.sm { width: 22px; height: 22px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.lang-hint { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 8px var(--inline);
  border-bottom: 1px dashed var(--rule-soft); background: var(--paper); }
.lang-hint a { color: var(--rule); font-weight: 700; }
.lang-hint button { margin-left: auto; font-size: 1.1rem; }
.health { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); }
.health .warn { color: var(--pen); font-weight: 600; }
.mast-right { display: flex; align-items: baseline; gap: 10px 22px; flex-wrap: wrap; justify-content: flex-end; }
.controls { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; justify-content: flex-end; }

/* 文字按钮：稿纸上的批注字，不做成胶囊按钮 */
.link-btn { font: inherit; color: var(--rule); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--pen); }
.link-btn.danger { color: var(--pen); }
a.link-btn { display: inline; }

/* 语言切换：两个字并排，当前语言用红笔下划线 */
.lang { display: inline-flex; gap: 2px; }
.lang a { font-weight: 700; color: var(--ink-2); padding: 0 4px; text-decoration: none; border-bottom: 2px solid transparent; }
.lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--pen); }

/* 手机：领域切换 */
.tabs { display: none; position: sticky; top: 0; z-index: 2; background: var(--paper);
  border-bottom: 1px solid var(--rule); padding: 0 8px; }
.tabs button { flex: 1; font: inherit; font-weight: 600; color: var(--ink-2); background: none; border: 0;
  padding: 10px 4px 8px; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--pen); }
.tabs .fresh { color: var(--pen); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* 稿纸 */
.desk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(14px, 2vw, 24px) var(--inline) 40px; align-items: start; }
.sheet { background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule-soft), 0 10px 24px -18px rgba(20, 60, 35, .35); }
.sheet > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 10px 14px 8px; border-bottom: 3px double var(--rule); }
.sheet h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .2em; color: var(--rule); }
:lang(en) .sheet h2 { letter-spacing: .04em; }
.sheet h2 a { text-decoration: none; }
.sheet h2 a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
:lang(en) .form-sheet .switch button, :lang(en) .btn { letter-spacing: .02em; }
.sheet header span { color: var(--ink-2); }
.sheet header .fresh { color: var(--pen); font-weight: 600; }

/* 你不在时的头条：编辑贴在稿纸上方的红笔便签 */
.missed { margin: 12px 0 0; padding: 8px 10px 9px; border: 1px dashed var(--pen); border-radius: 6px; background: var(--paper); }
.missed h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--pen); }
.missed h3 span { color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.missed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.missed a { font-weight: 700; text-decoration: none; }
.missed a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.missed .when { display: block; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 看板：每个领域一栏，栏里是一张张卡片，整张卡片点进事件页 */
.desk .sheet, .list-sheet { background: transparent; border: 0; box-shadow: none; }
.desk .sheet > header, .list-sheet > header { padding: 2px 2px 8px; }
ol.entries, .story-list { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 10px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 6px;
  box-shadow: 0 1px 0 var(--rule-soft); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { border-color: var(--rule); box-shadow: 0 14px 26px -18px rgba(20, 60, 35, .55); transform: translateY(-2px); }
.card:focus-within { outline: 2px solid var(--pen); outline-offset: 2px; }
.card .stretch { text-decoration: none; }
.card .stretch:focus-visible { outline: none; }
.card .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover .title a { text-decoration: underline; text-decoration-color: var(--pen); }
.entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 4px; padding: 12px 14px 12px 6px; }
.more-n { color: var(--rule); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* 名次：靠字重和红笔，不靠字号 */
.rank { position: relative; width: 40px; height: 38px; display: grid; place-items: center; align-self: start;
  font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank svg { position: absolute; inset: 0; width: 40px; height: 38px; overflow: visible; pointer-events: none; }
.rank path { fill: none; stroke: var(--pen); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.rank.is-new { color: var(--pen); }
.rank s { position: absolute; top: -4px; right: 1px; color: var(--pen); font-weight: 600; text-decoration: none; padding: 0 2px; }
.rank s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: var(--pen);
  border-radius: 2px; transform: rotate(-28deg); }
.draw path { stroke-dasharray: 150; stroke-dashoffset: 150; animation: ink .7s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes ink { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw path { animation: none; stroke-dashoffset: 0; } }

.title { display: block; margin: 0; font-size: 1rem; font-weight: 700; text-decoration: none; text-wrap: pretty; line-height: var(--lh); }
.title a { text-decoration: none; }
.title:hover, .title a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.meta .talk { color: var(--rule); font-weight: 600; text-decoration: none; }
.meta .talk:hover { color: var(--pen); }
.summary { margin: 2px 0 0; color: var(--ink); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 6px; color: var(--ink-2); }
.meta a { text-decoration: none; }
.meta a:hover { color: var(--ink); }
.meta .age.hot { color: var(--pen); font-weight: 600; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.icon { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

details.more { margin-top: 6px; }
details.more summary { color: var(--rule); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .icon { transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
details.more[open] summary .icon { transform: rotate(90deg); }
.original { margin: 8px 0 0; padding: 8px 10px; border: 1px dashed var(--rule-soft); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.original .quoted { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule-soft); color: var(--ink-2); }
.original img { display: block; max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--rule-soft); }
.related { margin: 8px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.related li { overflow-wrap: anywhere; }

.empty { padding: 28px 16px; color: var(--ink-2); }
.notice { margin: 24px var(--inline); padding: 14px 16px; border: 1px solid var(--pen); color: var(--ink); background: var(--paper); }
.notice strong { color: var(--pen); }

@media (max-width: 1180px) { .desk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tabs { display: flex; }
  .desk { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .sheet[hidden-mobile] { display: none; }
  /* 手机首页用标签切换领域，标题只留给读屏（保持标题层级） */
  .page-home .desk .sheet > header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }
  .masthead { padding-bottom: 0; row-gap: 8px; }
  .masthead .controls { gap: 6px 12px; }
  /* 栏目单独一行，放不下就在这一行里横向滑动 */
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 2px 0 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .page-home .nav .nav-field { display: none; }  /* 首页有领域切换标签 */
  .who-name { display: none; }
  .btn-sm { padding: 3px 10px; }
}

/* ---- 表单（登录 / 注册 / 管理后台） ---- */
.form-sheet { width: min(420px, calc(100% - 32px)); margin: clamp(24px, 8vh, 80px) auto 40px; }
.form-sheet .switch { display: flex; border-bottom: 3px double var(--rule); }
.form-sheet .switch button { flex: 1; font: inherit; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); background: none;
  border: 0; padding: 12px 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.form-sheet .switch button[aria-selected="true"] { color: var(--rule); border-bottom-color: var(--pen); }
.form-body { padding: 18px 20px 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; }
.field .hint { color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  font: inherit; color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--rule);
  padding: 6px 2px; border-radius: 0; width: 100%; }
input:focus-visible, select:focus-visible { outline: none; border-bottom: 2px solid var(--pen); padding-bottom: 5px; }
.btn { font: inherit; font-weight: 800; letter-spacing: .1em; color: var(--paper); background: var(--rule); border: 1px solid var(--rule);
  padding: 9px 18px; cursor: pointer; border-radius: 2px; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }
.error { color: var(--pen); font-weight: 600; min-height: 1.6em; margin: 0; }
.form-title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .1em; color: var(--rule); }
:lang(en) .form-title { letter-spacing: .02em; }
.code-row { display: flex; gap: 12px; align-items: end; }
.code-row input { flex: 1; min-width: 0; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.btn-ghost { font: inherit; font-weight: 700; color: var(--rule); background: none; border: 1px solid var(--rule); border-radius: 2px;
  padding: 6px 12px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn-ghost:hover:not(:disabled) { border-color: var(--pen); color: var(--pen); }
.btn-ghost:disabled { color: var(--ink-2); border-color: var(--rule-soft); cursor: default; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---- 全站页脚 ---- */
.site-foot { padding: 20px var(--inline) 36px; border-top: 3px double var(--rule); margin-top: 8px; color: var(--ink-2);
  background: var(--paper); display: grid; gap: 8px; }
.foot-nav, .foot-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.foot-nav a, .foot-line a { color: var(--rule); font-weight: 600; text-decoration: none; }
.foot-nav a:hover, .foot-line a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.foot-line .sep { color: var(--rule-soft); }
.foot-small { margin: 0; font-size: .87rem; }

/* 推荐信源：一张盖在稿纸上的便签 */
dialog.suggest { width: min(460px, calc(100% - 32px)); padding: 0; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-top: 3px double var(--rule); box-shadow: 0 22px 48px -24px rgba(20, 60, 35, .55); }
dialog.suggest::backdrop { background: rgba(14, 22, 17, .38); }
dialog.suggest .hint { margin: 0; color: var(--ink-2); }
.seg { display: flex; gap: 22px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
input[type=radio] { accent-color: var(--pen); margin: 0; }
.msg-ok { color: var(--rule); font-weight: 600; min-height: 1.6em; margin: 0; }

/* ---- 管理后台 ---- */
.admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(14px, 2vw, 24px) var(--inline) 48px; align-items: start; }
.admin .wide { grid-column: 1 / -1; }
.admin .sheet .body { padding: 14px 16px 16px; }
.figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.figures div { border-left: 1px solid var(--rule-soft); padding-left: 10px; }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures dt { color: var(--ink-2); }
.figures dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart { margin-top: 14px; }
.chart svg { display: block; width: 100%; height: 90px; overflow: visible; margin-top: 4px; }
.chart .bar { fill: var(--bar); }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + .bar, .chart .bar-hit:focus + .bar { fill: var(--pen); }
.chart .axis { stroke: var(--rule-soft); stroke-width: 1; }
.chart .chart-head, .chart .chart-axis { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart .chart-axis { margin-top: 4px; }
.chart .tip { position: absolute; pointer-events: none; background: var(--paper); border: 1px solid var(--rule); padding: 2px 8px;
  white-space: nowrap; transform: translate(-50%, -110%); }
.status-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.status-list dt { color: var(--ink-2); }
.status-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.status-list .warn { color: var(--pen); font-weight: 600; }
table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.grid th { text-align: left; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding: 6px 10px 6px 0; white-space: nowrap; }
table.grid td { border-bottom: 1px solid var(--rule-soft); padding: 7px 14px 7px 0; vertical-align: top; white-space: nowrap; }
table.grid tr.off td { color: var(--ink-2); }
table.grid .tag { color: var(--pen); font-weight: 600; }
table.grid td.wrap { white-space: normal; min-width: 180px; max-width: 360px; color: var(--ink-2); }
table.grid select { width: auto; padding: 2px 2px; }
.sheet header .count { color: var(--pen); font-weight: 600; }
.sg-hint { margin: 0 0 10px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.invite-form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin-bottom: 14px; }
.invite-form .field { min-width: 110px; }
.invite-form .field.note { flex: 1; min-width: 160px; }
.codes { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--pen); }
.codes code { font-weight: 700; user-select: all; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .figures div:nth-child(4) { border-left: 0; padding-left: 0; }
}


/* ---- 公开页面：页头、面包屑、导语 ---- */
.main { min-height: 60vh; }
.dek { padding: 14px var(--inline) 0; }
.dek h1 { margin: 0; font-size: 1.07rem; font-weight: 800; color: var(--ink); text-wrap: balance; }
.desk-wrap > .health { padding: 6px var(--inline) 0; margin: 0; }
.page-head { padding: 18px var(--inline) 6px; }
.page-head > * { max-width: 900px; }
.page-head h1 { margin: 4px 0 6px; font-size: 1.6rem; line-height: 1.3; font-weight: 800; color: var(--ink); text-wrap: balance; }
.lede { margin: 0 0 6px; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-2); font-size: .93rem; }
.crumbs a { color: var(--rule); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; }
.pager a { color: var(--rule); font-weight: 700; text-decoration: none; }
.sheet .body { padding: 14px 16px 16px; }
.sheet.narrow { width: min(900px, calc(100% - 2 * var(--gutter))); margin: 12px auto 32px; }
.page-head.center { text-align: center; }
.page-head.center > * { margin-inline: auto; }
.sheet > header .hint { color: var(--ink-2); font-weight: 400; }
.tag { color: var(--pen); font-weight: 600; font-size: .93rem; }

/* 领域页：左榜单，右本周头条 */
.domain-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px);
  padding: 0 var(--inline) 32px; align-items: start; }
.domain-grid .desk-wrap > .health { padding-left: 0; }
.domain-grid .desk { padding: 12px 0 0; grid-template-columns: minmax(0, 1fr); }
.list-sheet { margin-top: 42px; }
.story-item { padding: 12px 14px; }
.story-item .meta .best { color: var(--pen); font-weight: 600; }
.story-item .meta .tag-field { color: var(--rule); font-weight: 600; }
.story-list.compact .summary { display: none; }
.list-foot { margin: 0; padding: 12px 2px 4px; }
.list-foot a { color: var(--rule); font-weight: 700; text-decoration: none; }
.archive-desk { padding-top: 12px; }

/* 事件页 */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(16px, 2.4vw, 36px);
  padding: 18px var(--inline) 36px; align-items: start; }
.story-main { display: grid; gap: 18px; min-width: 0; }
.story-side { display: grid; gap: 18px; }
.story-head h1 { margin: 6px 0 8px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; font-weight: 800; text-wrap: balance; }
.story-head .lede { font-size: 1.07rem; color: var(--ink); }
.kicker { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 8px 0 0; color: var(--ink-2); font-weight: 600; }
.kicker .best { color: var(--pen); }
.kicker .now { color: var(--rule); }
.byline { margin: 0; color: var(--ink-2); font-size: .93rem; }
.byline a { color: var(--rule); }
.src-author { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 8px; }
.src-author a { text-decoration: none; }
.src-author a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.src-author .hint, .src-author time { color: var(--ink-2); }
.meta.big { gap: 6px 18px; margin: 0 0 10px; }
.meta.big .lbl { color: var(--ink-2); }
.source .original { margin: 0 0 12px; }
.sub { margin: 14px 0 4px; font-size: 1rem; font-weight: 700; color: var(--rule); }
.x-replies ol { list-style: none; margin: 0; display: grid; gap: 0; }
.xr { padding: 10px 0 12px; border-top: 1px solid var(--rule-soft); }
.xr:first-child { border-top: 0; padding-top: 0; }
.xr-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--ink-2); }
.xr-head a { text-decoration: none; color: var(--ink-2); }
.xr-head b { color: var(--ink); }
.xr-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* 图片一律缩略图，点开看原图 */
.thumb { display: block; width: fit-content; max-width: 100%; margin-top: 8px; border: 1px solid var(--rule-soft); border-radius: 6px; overflow: hidden; line-height: 0; }
.thumb img { display: block; max-width: min(100%, 240px); max-height: 180px; width: auto; height: auto; object-fit: cover; }
.thumb:hover { border-color: var(--rule); }
.thumb.post-img { margin: 0 0 12px; }
.thumb.post-img img { max-width: min(100%, 420px); max-height: 280px; }
.xr-orig summary { color: var(--rule); cursor: pointer; font-weight: 600; font-size: .93rem; margin-top: 4px; }
.xr-orig p { margin: 4px 0 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.xr-link { display: inline-block; margin-top: 4px; font-size: .93rem; color: var(--rule); text-decoration: none; }
/* 事件要点、X 上的反应、同一事件的其他推文 */
.key-points ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.key-points li { text-wrap: pretty; }
.ai-note { margin: 10px 0 0; color: var(--ink-2); font-size: .88rem; }
.ai-note a { color: var(--rule); }
.reaction { margin: 0; padding: 14px 16px 0; text-wrap: pretty; }
.reaction b { color: var(--rule); font-weight: 700; }
.also-on .xr-text { white-space: normal; }
.pref-src { margin: 0; font-size: .93rem; }
.pref-src a { color: var(--rule); font-weight: 600; }
.pref-src .hint { display: block; color: var(--ink-2); }
/* 名次变化：标题下方一条小图，不单独占侧栏 */
.spark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 12px 0 0; max-width: 560px;
  padding: 8px 12px 6px; border: 1px solid var(--rule-soft); border-radius: 6px; background: var(--paper); }
.spark figcaption { grid-column: 1 / -1; font-weight: 700; color: var(--rule); font-size: .93rem; }
.spark svg { width: 100%; height: 48px; overflow: hidden; }
.spark path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linejoin: round; }
.spark .axis { stroke: var(--rule-soft); stroke-dasharray: 3 3; }
.spark-y { display: flex; flex-direction: column; justify-content: space-between; color: var(--ink-2); font-size: .87rem; font-variant-numeric: tabular-nums; }
.spark-x { grid-column: 2; display: flex; justify-content: space-between; color: var(--ink-2); font-size: .87rem; font-variant-numeric: tabular-nums; }

/* 讨论区 */
.comments > header { flex-wrap: wrap; }
.comments h2 .num { color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.sort { display: flex; gap: 12px; }
.sort a { color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.sort a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--pen); }
.c-form { display: grid; gap: 8px; margin-bottom: 14px; }
textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 2px;
  padding: 8px 10px; width: 100%; resize: vertical; min-height: 84px; line-height: var(--lh); }
textarea:focus-visible { outline: none; border-color: var(--pen); box-shadow: 0 0 0 1px var(--pen); }
.c-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-form-foot .hint { color: var(--ink-2); }
.c-form .error, .c-form .msg-ok { min-height: 0; }
.c-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; color: var(--ink-2); }
.c-login a:not(.btn) { color: var(--rule); font-weight: 700; }
.c-list, .c-replies { list-style: none; margin: 0; padding: 0; }
.c { padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.c-list > .c:first-child { border-top: 0; }
.c-replies { margin: 8px 0 0 14px; padding-left: 14px; border-left: 2px solid var(--rule-soft); }
.c-replies .c { padding: 8px 0; }
.c-replies .c:first-child { border-top: 0; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-2); font-size: .93rem; }
.c-user { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.c-time { color: var(--ink-2); text-decoration: none; }
.c-to { color: var(--ink-2); }
.c-note { color: var(--ink-2); font-style: italic; }
.c-body { margin: 4px 0 0; overflow-wrap: anywhere; }
.c-body a { color: var(--rule); }
.c-gone { color: var(--ink-2); font-style: italic; }
.c-pending > .c-body, .c-hidden > .c-body { opacity: .65; }
.c-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.c-actions button { font: inherit; font-size: .93rem; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.c-actions button:hover { color: var(--ink); }
.c-actions button:disabled { cursor: default; color: var(--rule-soft); }
.c-like.on { color: var(--pen); }
.c-like.on .icon { fill: var(--pen); stroke: var(--pen); }
.c.flash { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: var(--pen-wash); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .c.flash { animation: none; background: var(--pen-wash); } }

/* 归档、关于 */
.days { list-style: none; margin: 0; padding: 4px 0; }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--rule-soft); }
.days li:first-child { border-top: 0; }
.days a { font-weight: 700; text-decoration: none; }
.days a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.days .num { color: var(--ink-2); }
.prose { padding: 6px 22px 20px; }
.prose h2 { margin: 20px 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--rule); }
.prose p, .prose li { max-width: 72ch; text-wrap: pretty; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--rule); font-weight: 600; }

/* 用户中心、个人主页 */
.profile-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.profile-head h1 { margin: 0 0 2px; }
.profile-head .hint { margin: 0; color: var(--ink-2); }
/* 信源页、搜索、收藏 */
.handle { color: var(--ink-2); font-weight: 500; }
.src-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); margin: 6px 0 0; }
.src-facts a { color: var(--rule); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.src-facts .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sources-table { margin: 0; }
table.grid.sources-table td, table.grid.sources-table th { padding-left: 16px; }
table.grid.sources-table td:last-child, table.grid.sources-table th:last-child { padding-right: 16px; }
.sources-table td a { text-decoration: none; color: var(--ink); }
.sources-table td a:hover b { text-decoration: underline; text-decoration-color: var(--pen); }
.sources-table .num { text-align: right; }
.sources-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
.sources-table td:first-child .handle { display: inline-block; }
.search-link { color: var(--ink-2); display: inline-flex; align-self: center; }
.search-link:hover, .search-link[aria-current] { color: var(--ink); }
.search-link .icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-form { display: flex; gap: 10px; margin-top: 10px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.save-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 4px 14px; font-size: .93rem; align-self: stretch; }
.save-btn .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.save-btn[aria-pressed="true"] { color: var(--pen); border-color: var(--pen); }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }
@media (max-width: 700px) { .hide-sm { display: none; } }
/* 窄屏头部放不下：未登录时只留"注册"（登录页里可以切到登录） */
@media (max-width: 440px) { .masthead .controls > a.link-btn[href*="/login"] { display: none; } }

/* 订阅渠道 */
.follow-grid { display: grid; gap: 18px; width: min(900px, calc(100% - 2 * var(--gutter))); margin: 4px auto 40px; }
.follow-grid > .sheet { width: auto; margin: 0; }
.follow-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.fc-body { padding: 16px 18px 18px; min-width: 0; }
.fc-body h2 { letter-spacing: .1em; }
.fc-body p { margin: 8px 0 0; }
.fc-points { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.fc-points li { margin: 3px 0; }
.fc-body .btn { margin-top: 6px; }
.fc-qr { margin: 0 18px 0 0; text-align: center; flex: none; }
.fc-qr img { display: block; width: 150px; height: 150px; border: 1px solid var(--rule-soft); background: #fff; padding: 6px; }
.fc-qr figcaption { color: var(--ink-2); font-size: .86rem; margin-top: 6px; }
.rss-links a { overflow-wrap: anywhere; }
.sub-also { margin: 12px 0 0; color: var(--ink-2); font-size: .93rem; }
.sub-also a { font-weight: 600; }
@media (max-width: 640px) { .fc-qr { display: none; } }

/* 专题 */
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { padding: 14px 18px; border-top: 1px solid var(--rule-soft); }
.topic-list li:first-child { border-top: 0; }
.topic-list .title { font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.topic-list .title:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.topic-list p { margin: 4px 0 0; }
.topic-list .hint { color: var(--ink-2); font-size: .9rem; }
.tl { list-style: none; margin: 0; padding: 6px 18px 16px; }
.tl-day { position: relative; padding: 0 0 6px 22px; border-left: 2px solid var(--rule-soft); }
.tl-day::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--pen); }
.tl-day h2 { margin: 0; padding: 8px 0 8px; font-size: .95rem; letter-spacing: .05em; color: var(--rule); }
.tl-day .story-list { margin-bottom: 8px; }

/* 每日早报、订阅 */
.brief-bar { margin: 0; padding: 0 var(--inline) 10px; }
.brief-bar a { display: block; max-width: 900px; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-bar a:hover { color: var(--ink); }
.brief-bar b { color: var(--pen); margin-right: 6px; }
.brief-stack { display: grid; gap: 18px; }
.brief-head { padding: 18px 0 0; }
.brief-head h1 { margin: 4px 0 8px; font-size: 1.6rem; line-height: 1.3; font-weight: 800; }
.brief-head .lede { font-size: 1.08rem; }
.brief-head .hint { color: var(--ink-2); margin: 0; font-size: .93rem; }
.brief-items { list-style: none; margin: 0; padding: 0; }
.brief-items > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; border-top: 1px solid var(--rule-soft); }
.brief-items > li:first-child { border-top: 0; }
.bi-num { font-size: 1.4rem; font-weight: 800; color: var(--pen); line-height: 1.2; font-variant-numeric: tabular-nums; }
.brief-items h2 { margin: 2px 0 4px; font-size: 1.08rem; letter-spacing: 0; color: var(--ink); }
.brief-items h2 a { color: inherit; text-decoration: none; }
.brief-items h2 a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.brief-items p { margin: 0; }
.bi-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: .9rem; }
.bi-meta .tag-field { text-decoration: none; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { padding: 11px 16px; border-top: 1px solid var(--rule-soft); }
.brief-list li:first-child { border-top: 0; }
.brief-list a { font-weight: 700; text-decoration: none; }
.brief-list .hint { margin: 2px 0 0; color: var(--ink-2); }
.sub-box { border-top: 3px double var(--rule); }
.sub-inner { padding: 16px 18px 18px; }
.sub-inner h2 { letter-spacing: .1em; }
.sub-inner .hint { margin: 6px 0 12px; color: var(--ink-2); }
.sub-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.sub-row input { flex: 1 1 220px; min-width: 0; }
.sub-form .error, .sub-inner .error { min-height: 0; margin: 0; }
.toggles { display: grid; gap: 14px; }
.toggles .error, .toggles .msg-ok { min-height: 0; margin: 0; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rule); flex: none; }
.toggle .hint { display: block; color: var(--ink-2); font-size: .93rem; }
.unsub { margin-top: 32px; }

/* 分享图弹窗 */
dialog.share-dlg { width: min(420px, calc(100% - 32px)); }
.share-dlg img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; border: 1px solid var(--rule-soft);
  background: var(--paper); margin: 10px 0; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 0; }

/* 登录墙：X 热门回复、较早的归档 */
.lock-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 18px; }
.lock-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--pen); stroke-width: 1.8; margin-top: 2px; }
.days .lock-icon { width: 14px; height: 14px; stroke: var(--ink-2); vertical-align: -1px; margin: 0 0 0 4px; }
.lock-title { margin: 0 0 4px; font-weight: 800; }
.lock-box .hint { margin: 0; color: var(--ink-2); }
.lock-actions { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* 用户中心：左边标签，右边内容；手机上标签变成横向一行 */
.acct { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: clamp(14px, 2vw, 28px);
  padding: 12px var(--inline) 40px; align-items: start; justify-content: center; }
.acct-head { padding-inline: max(var(--gutter), calc((100% - 988px) / 2)); }
.acct-head > * { max-width: none; }
.acct-tabs { display: flex; flex-direction: column; border-left: 2px solid var(--rule-soft); position: sticky; top: 16px; }
.acct-tabs a { padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 8px; }
.acct-tabs a:hover { color: var(--ink); }
.acct-tabs a[aria-current="page"] { color: var(--ink); border-left-color: var(--pen); }
.acct-main { display: grid; gap: clamp(12px, 1.6vw, 22px); min-width: 0; }
.acct-main .form-body { padding: 14px 16px 18px; }
.acct .pager { padding: 6px 16px 14px; }
.profile-head .acct-stats { margin: 0 0 0 auto; display: flex; gap: 22px; }
.acct-stats div { text-align: center; }
.acct-stats dt { color: var(--ink-2); font-size: .86rem; }
.acct-stats dd { margin: 0; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pen);
  color: var(--paper); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px 4px; }
.chips a { color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.chips a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--pen); }
.chips small { font-weight: 500; font-variant-numeric: tabular-nums; }
.my-comments .title { font-weight: 700; text-decoration: none; }
.my-comments .title:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.mc-status { margin: 4px 0 0; color: var(--ink-2); font-size: .93rem; }
.mc .c-body { margin-top: 4px; }
.mc .c-form { margin: 8px 0 0; }
.mc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; color: var(--ink-2); font-size: .93rem; }
.mc-meta .c-actions { margin: 0 0 0 auto; }
.mc-meta .c-actions a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.mc-meta .c-actions a:hover { color: var(--ink); }
.form-lead { margin: 0; padding: 12px 16px 0; color: var(--ink-2); }
.sessions { list-style: none; margin: 0; padding: 4px 0 0; }
.sessions li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--rule-soft); }
.sessions li:first-child { border-top: 0; }
.sessions .hint { display: block; color: var(--ink-2); font-size: .93rem; }
.sessions-foot { padding: 4px 16px 16px; display: grid; gap: 6px; justify-items: start; }
.sessions-foot p { margin: 0; }
.sessions-foot .error, .sessions-foot .msg-ok { min-height: 0; }

/* 右上角账号菜单 */
.usermenu { position: relative; align-self: center; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .caret { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.usermenu[open] .caret { transform: rotate(180deg); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; display: grid; padding: 6px 0;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 12px 28px -14px rgba(20, 60, 35, .45); }
.usermenu .menu a, .usermenu .menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px;
  font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--pen-wash); }
.usermenu .menu button { border-top: 1px solid var(--rule-soft); margin-top: 4px; padding-top: 9px; color: var(--ink-2); }
.menu-who { margin: 0 0 4px; padding: 4px 16px 9px; border-bottom: 1px solid var(--rule-soft); display: grid; }
.usermenu .menu .menu-who a { padding: 0; font-weight: 500; color: var(--rule); font-size: .93rem; }
.usermenu .menu .menu-who a:hover { background: none; text-decoration: underline; }
.hues { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hues legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.hue { cursor: pointer; display: inline-flex; }
.hue input { position: absolute; opacity: 0; }
.hue .avatar { outline: 2px solid transparent; outline-offset: 2px; }
.hue input:checked + .avatar { outline-color: var(--pen); }
.hue input:focus-visible + .avatar { outline-color: var(--ink); }
.notes, .my-comments { list-style: none; margin: 0; padding: 0; }
.notes li, .my-comments li { padding: 10px 16px; border-top: 1px solid var(--rule-soft); }
.notes li:first-child, .my-comments li:first-child { border-top: 0; }
.notes li.unread { border-left: 3px solid var(--pen); }
.notes a { font-weight: 700; text-decoration: none; }
.notes .hint, .my-comments .hint { margin: 2px 0 0; color: var(--ink-2); display: block; }
.danger-zone { border-color: var(--pen); }
.btn-danger { background: var(--pen); border-color: var(--pen); }
.filters { display: flex; gap: 16px; margin-bottom: 10px; }
.filters [aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--pen); }
.figures small { color: var(--ink-2); font-weight: 600; }

@media (max-width: 1000px) {
  .story-grid, .domain-grid { grid-template-columns: minmax(0, 1fr); }
  .story-side { position: static; }
  .list-sheet { margin-top: 0; }
  .acct { grid-template-columns: minmax(0, 1fr); }
  .acct-tabs { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--rule-soft); scrollbar-width: none; }
  .acct-tabs::-webkit-scrollbar { display: none; }
  .acct-tabs a { margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 8px 12px; }
  .acct-tabs a[aria-current="page"] { border-bottom-color: var(--pen); }
}
@media (max-width: 700px) {
  .profile-head .acct-stats { margin-left: 0; flex: 0 0 100%; gap: 28px; }
  .acct-stats div { text-align: left; }
  .acct-head .avatar.lg { width: 48px; height: 48px; font-size: 22px; }
  .acct-tabs a:first-child { padding-left: 0; }
  .page-head h1 { font-size: 1.35rem; }
  .domain-grid .desk-wrap > .health { padding-top: 0; }
}
.figures div:nth-child(5n+1) { border-left: 0; padding-left: 0; }
.desk .sheet > header .count { color: var(--ink-2); font-weight: 400; }
.desk .sheet > header .count.fresh { color: var(--pen); font-weight: 600; }

/* 事件页：原推全文、同一事件的其他推文 */
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.03rem; margin: 4px 0 10px; }
.post-text .quoted { display: block; margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--rule-soft); color: var(--ink-2); }
.actions-row { margin: 4px 0 0; }
.posts { list-style: none; margin: 0; display: grid; gap: 0; }
.post { padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.post:first-child { border-top: 0; padding-top: 0; }
.post:last-child { padding-bottom: 0; }
.xr-head time { color: var(--ink-2); }
.story-side .list-sheet { margin-top: 0; }
.original img { max-width: min(100%, 420px); max-height: 280px; object-fit: cover; }
/* 窄版页面（关于、归档目录、个人主页）：页头和下面的窄稿纸对齐 */
.page-head.narrow-head { padding-inline: max(var(--gutter), calc((100% - 900px) / 2)); }
.page-head.narrow-head > * { max-width: none; }
.tabs button { flex: 1 1 auto; white-space: nowrap; padding-inline: 6px; }
.post-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin-top: 4px; }
.post-foot .xr-link, .post-foot .xr-orig summary { margin-top: 0; }
.post-foot .xr-orig[open] { flex-basis: 100%; order: 2; }
.brief-stack.narrow { width: min(900px, calc(100% - 2 * var(--gutter))); margin: 0 auto 36px; }
.brief-stack > .sheet.narrow { width: auto; margin: 0; }

/* 访问统计 */
.admin-links { padding: 12px var(--inline) 0; margin: 0; }
.stats-table .bar-col { width: 28%; min-width: 80px; }
.stats-table .bar { display: block; height: 10px; background: var(--rule); opacity: .75; min-width: 2px; }
.stats-table .num, .stats .grid .num { text-align: right; }
.stats .figures small { display: block; }
.prose-sm p { margin: 0; max-width: 80ch; color: var(--ink-2); }
