/**
 * press.css — 报刊风（NYT / WSJ / WaPo 气质）
 * 报头、分栏、衬线标题、黑白主调。去玻璃拟物、去 AI 感。
 */

/* ---------- 报刊变量覆盖（在 base 之后加载） ---------- */
:root {
  --press-max: 1120px;
  --press-ink: #121212;
  --press-muted: #595959;
  --press-rule: #121212;
  --press-rule-light: #d4d4d4;
  /* 报纸细分隔线（hairline）：浅灰实线，模拟纸面分栏 */
  --press-hairline: #e2e2e2;
  --press-hairline-strong: rgba(18, 18, 18, 0.18);
  --press-section-gap: 32px;
  --press-paper: #faf9f6;
  /* 与 base.css --font-serif 对齐：中文宋体优先，兼顾报纸感 */
  --press-serif: var(--font-serif);
  --press-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #595959;
  --color-heading: #0a0a0a;
  --color-accent: #0a0a0a;
  --color-accent-hover: #333333;
  --color-border: #d4d4d4;
  --max-width: 720px;
  --font-sans: var(--press-sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --press-ink: #f0f0f0;
    --press-muted: #a3a3a3;
    --press-rule: #e5e5e5;
    --press-rule-light: #2a2a2a;
    /* 暗色 hairline 更内敛，避免推文简报分隔线刺眼 */
    --press-hairline: #222222;
    --press-hairline-strong: rgba(255, 255, 255, 0.12);
    --press-paper: #111111;
    --color-bg: #111111;
    --color-surface: #171717;
    --color-text: #e5e5e5;
    --color-text-secondary: #a3a3a3;
    --color-heading: #f5f5f5;
    --color-accent: #f5f5f5;
    --color-accent-hover: #d4d4d4;
    --color-border: #2a2a2a;
  }
}

:root[data-theme="dark"] {
  --press-ink: #f0f0f0;
  --press-muted: #a3a3a3;
  --press-rule: #e5e5e5;
  --press-rule-light: #2a2a2a;
  --press-hairline: #222222;
  --press-hairline-strong: rgba(255, 255, 255, 0.12);
  --press-paper: #111111;
  --color-bg: #111111;
  --color-surface: #171717;
  --color-text: #e5e5e5;
  --color-text-secondary: #a3a3a3;
  --color-heading: #f5f5f5;
  --color-accent: #f5f5f5;
  --color-accent-hover: #d4d4d4;
  --color-border: #3a3a3a;
}

body {
  background: var(--press-paper);
  color: var(--color-text);
  font-family: var(--press-sans);
  line-height: 1.55;
}

/* 去掉旧液态玻璃固定导航的占位压力 */
#nav-placeholder {
  position: relative;
  z-index: 50;
}

/* ---------- 报头 Masthead（NYT 式：日期 · Logo · 分类 · 双线收尾） ---------- */
.press-masthead {
  position: relative;
  width: 100%;
  max-width: var(--press-max);
  margin: 0 auto 8px;
  padding: 14px 20px 0;
  background: var(--press-paper);
  border-bottom: none;
  box-sizing: border-box;
}

/* 顶栏：日期 / 社交 — 报纸页眉信息行 */
.press-masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--press-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--press-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.press-masthead-top a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.press-masthead-top a:hover {
  color: var(--press-ink);
  border-bottom-color: var(--press-hairline-strong);
}

/* Logo 区：上下细线框住刊头 */
.press-logo-wrap {
  text-align: center;
  padding: 10px 0 12px;
  border-top: 1px solid var(--press-ink);
  border-bottom: 1px solid var(--press-ink);
}

.press-logo {
  display: inline-block;
  max-width: min(680px, 92vw);
  height: auto;
  vertical-align: middle;
}

/* 暗色下 logo 反色（黑字 logo → 白字） */
:root[data-theme="dark"] .press-logo {
  filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .press-logo {
    filter: invert(1);
  }
}

/*
 * 分类导航：字重轻、全大写、字距开
 * 底边用「双线」终结整个报头（classic newspaper rule）
 */
.press-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  /* 双线收尾：内细 + 外粗 的 double 效果 */
  border-top: none;
  border-bottom: 3px double var(--press-ink);
}

/* 覆盖 glass.css 的 .nav-btn 圆角 / 缩放 / 蓝高亮 */
.press-masthead .nav-btn,
.press-nav a,
.press-nav button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--press-hairline) !important;
  box-shadow: none !important;
  color: var(--press-muted) !important;
  font-family: var(--press-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 11px 13px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transform: none !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
}

.press-masthead .nav-btn:first-of-type,
.press-nav > a:first-child {
  border-left: 1px solid var(--press-hairline) !important;
}

.press-masthead .nav-btn:hover,
.press-nav a:hover,
.press-nav button:hover {
  color: var(--press-ink) !important;
  background: transparent !important;
  transform: none !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.press-masthead .nav-btn:active,
.press-nav a:active,
.press-nav button:active {
  transform: none !important;
  opacity: 0.75;
}

/* 当前页：细下划线，而非蓝色胶囊 */
.press-masthead .nav-btn.active,
.press-masthead .nav-btn.is-active,
.press-nav a.is-active,
.press-nav a.active {
  color: var(--press-ink) !important;
  background: transparent !important;
  font-weight: 600 !important;
  box-shadow: inset 0 -2px 0 var(--press-ink) !important;
}

/* Donate：像报纸「公告小框 / 订阅」标签，非 App 按钮 */
.press-masthead #nav-donate.nav-btn {
  border: 1px solid var(--press-ink) !important;
  border-right: 1px solid var(--press-ink) !important;
  padding: 6px 12px !important;
  margin: 6px 8px !important;
  font-family: var(--font-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  color: var(--press-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.press-masthead #nav-donate.nav-btn:hover {
  background: var(--press-ink) !important;
  color: var(--press-paper) !important;
  text-decoration: none !important;
}

.press-nav-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  border-left: 1px solid var(--press-hairline);
}

.press-nav-tools .nav-search-wrapper,
.press-nav-tools .nav-theme-btn {
  border-right: 1px solid var(--press-hairline);
}

/* 搜索 / 主题：极弱存在感，取消玻璃与缩放 */
.press-masthead .nav-search-btn,
.press-masthead .nav-theme-btn {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 38px !important;
  height: 36px !important;
  min-width: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  color: var(--press-muted) !important;
  cursor: pointer;
  padding: 0 !important;
  transform: none !important;
  transition: color 0.15s ease, opacity 0.15s ease !important;
}
.press-masthead .nav-search-btn:hover,
.press-masthead .nav-theme-btn:hover {
  color: var(--press-ink) !important;
  background: transparent !important;
  transform: none !important;
}
.press-masthead .nav-search-btn:active,
.press-masthead .nav-theme-btn:active {
  transform: none !important;
  opacity: 0.7;
}
.press-masthead .nav-search-btn svg,
.press-masthead .nav-theme-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
}

.press-masthead .nav-search-wrapper {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 4px;
}
.press-masthead .nav-search-input {
  border: 0 !important;
  border-bottom: 1px solid var(--press-hairline) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--press-sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--press-ink);
  min-width: 0;
  width: 0;
  padding: 4px 0;
  outline: none;
  transition: width 0.2s ease, padding 0.2s ease;
}
.press-masthead .nav-search-wrapper.expanded .nav-search-input,
.press-masthead .nav-search-wrapper.active .nav-search-input {
  width: min(148px, 26vw);
  max-width: min(148px, 26vw);
  padding: 4px 6px;
  border-bottom-color: var(--press-ink) !important;
  box-sizing: border-box;
}
.press-masthead .nav-search-input::placeholder {
  color: var(--press-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

/* 暗色：搜索底边用柔和白线，避免纯白刺眼 */
:root[data-theme="dark"] .press-masthead .nav-search-input,
:root[data-theme="dark"] .press-masthead .nav-search-wrapper.expanded .nav-search-input,
:root[data-theme="dark"] .press-masthead .nav-search-wrapper.active .nav-search-input {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .press-masthead .nav-search-input,
  :root:not([data-theme="light"]) .press-masthead .nav-search-wrapper.expanded .nav-search-input,
  :root:not([data-theme="light"]) .press-masthead .nav-search-wrapper.active .nav-search-input {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
  }
}

/* 旧 glass 导航样式在报刊报头内失效 */
.press-masthead .nav-container {
  all: unset;
  display: block;
}

/* 搜索下拉：直角 + 细边框，无玻璃阴影 */
.press-masthead .search-dropdown {
  position: absolute;
  right: 20px;
  top: 100%;
  left: auto;
  width: min(360px, calc(100vw - 40px));
  background: var(--press-paper);
  border: 1px solid var(--press-ink);
  box-shadow: none;
  border-radius: 0;
  z-index: 100;
  margin-top: 0;
}
.press-masthead .search-dropdown a,
.press-masthead .search-dropdown-list a {
  border-radius: 0;
  font-family: var(--press-sans);
  border-bottom: 1px solid var(--press-hairline);
}

/* 捐赠弹窗：去玻璃，改报纸公告框 */
.press-site .donate-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.4);
}
.press-site .donate-modal {
  background: var(--press-paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--press-ink);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 24px 20px;
}
.press-site .donate-overlay.active .donate-modal {
  transform: none;
}
.press-site .donate-modal {
  transform: none;
  transition: opacity 0.2s ease;
}
.press-site .donate-close {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--press-hairline);
  color: var(--press-muted);
}
.press-site .donate-close:hover {
  background: transparent;
  color: var(--press-ink);
  border-color: var(--press-ink);
  transform: none;
}
.press-site .donate-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.press-site .donate-qr {
  border-radius: 0;
  border: 1px solid var(--press-hairline);
}

/* ---------- 版面容器 ---------- */
.press-page {
  max-width: var(--press-max);
  margin: 0 auto;
  padding: 28px 20px 80px;
  box-sizing: border-box;
}

/* 栏目分界：顶线加粗（2–3px）+ 底 hairline，模拟报纸栏目标题 */
.press-section-label {
  font-family: var(--press-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--press-ink);
  border-top: 2px solid var(--press-ink);
  border-bottom: 1px solid var(--press-hairline);
  padding: 10px 0 8px;
  margin: var(--press-section-gap) 0 18px;
  clear: both;
}

.press-section-label a {
  color: inherit;
  text-decoration: none;
  float: right;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
  color: var(--press-muted);
}
.press-section-label a:hover {
  text-decoration: underline;
  color: var(--press-ink);
}

/* ---------- 首页：头版分栏 ---------- */
.press-front {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0 32px;
  column-gap: 32px;
  padding-bottom: 0;
  /* 头条区与下方栏目：贯穿全宽的细分隔线 */
  border-bottom: 1px solid var(--press-hairline);
  margin-bottom: 0;
  align-items: stretch;
}

/* 头条（Lead）：更大留白 + 底部分隔，拉开与侧栏/列表的权重差 */
.press-lead {
  padding: 4px 28px 36px 0;
  margin: 0;
  border-bottom: 1px solid transparent; /* 桌面靠 front 底线；移动端再覆盖 */
  box-sizing: border-box;
}

.press-lead-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--press-ink);
  margin: 0 0 12px;
  /* 头条专属细顶线，强化「Lead」栏目标识 */
  border-top: 1px solid var(--press-ink);
  padding-top: 10px;
  display: inline-block;
}

.press-lead-title {
  font-family: var(--press-serif);
  /* 相对侧栏 h3(~1.05–1.15rem) 明显更大，建立头条冲击力 */
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-heading);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.press-lead-title a {
  color: inherit;
  text-decoration: none;
}
.press-lead-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.press-lead-deck {
  /* 摘要为正文层，保持无衬线；仅 H1/H2 用衬线 */
  font-family: var(--press-sans);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 18px;
  max-width: 38em;
}

.press-byline {
  font-size: 0.78rem;
  color: var(--press-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* 右侧栏：左侧纵向 hairline 分栏 */
.press-side-list {
  border-left: 1px solid var(--press-hairline);
  padding: 4px 0 28px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.press-side-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--press-hairline);
}
.press-side-item:first-child {
  padding-top: 4px;
}
.press-side-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.press-side-item h3 {
  font-family: var(--press-sans);
  /* 侧栏标题明显小于头条 H1 */
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 6px;
  color: var(--color-heading);
}
.press-side-item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.press-side-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--press-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 次要文章网格 */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin: 0 0 var(--press-section-gap);
  padding-bottom: 8px;
}

.press-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--press-hairline);
  padding: 14px 0 22px;
}
.press-card h3 {
  font-family: var(--press-sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 8px;
  color: var(--color-heading);
}
.press-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.press-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-card .press-byline {
  margin-top: 4px;
}

/* 推文栏：栏目顶线由 section-label 承担；此处只留区块间距 */
.press-tweets-rail {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 8px;
}

.press-tweet-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
}

.press-tweet-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid var(--press-rule-light);
  padding-left: 12px;
}
.press-tweet-item:hover {
  border-left-color: var(--press-ink);
}
.press-tweet-item .t-date {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--press-muted);
  margin-bottom: 4px;
}
.press-tweet-item .t-text {
  font-family: var(--press-sans);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-heading);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文章列表（长文） ---------- */
.press-list {
  max-width: 760px;
  margin: 0 auto;
}

.press-list-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 18px 0;
  border-bottom: 1px solid var(--press-hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.15s ease;
}
.press-list-item:first-child {
  border-top: 1px solid var(--press-hairline);
}
.press-list-item h2 {
  font-family: var(--press-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--color-heading);
}
.press-list-item:hover h2 {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.press-list-item:hover {
  opacity: 0.92;
  transform: none;
}
.press-list-item .deck {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}
.press-list-meta {
  font-size: 0.78rem;
  color: var(--press-muted);
}

/* =========================================================
   推文页 · News in Brief（#tweets-list）
   高密度简报：左日期 + X 标识 + hairline 分隔
   纯 CSS，不改 HTML/JS 结构
   ========================================================= */
#tweets-list.press-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 2px solid var(--press-ink);
}

#tweets-list .press-list-item {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.15rem;
  row-gap: 0.2rem;
  align-items: start;
  padding: 0.7rem 0 0.75rem;
  border-top: none;
  border-bottom: 1px solid var(--press-hairline);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#tweets-list .press-list-item:first-child {
  border-top: none;
}

/* 左侧时间戳：小号全大写无衬线，与内容竖向对齐线 */
#tweets-list .press-list-meta {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0.15rem 0.65rem 0 0;
  border-right: 1px solid var(--press-hairline);
  font-family: var(--press-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--press-muted);
  line-height: 1.35;
  /* 隐藏 JS 追加的「 · X」，改由标题前缀统一标识 */
  font-variant-numeric: tabular-nums;
}

#tweets-list .press-list-item h2 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--press-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--color-heading);
}

/* 内容前缀：X · 简报标识 */
#tweets-list .press-list-item h2::before {
  content: "X · ";
  font-family: var(--press-sans);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--press-muted);
  vertical-align: 0.08em;
}

#tweets-list .press-list-item .deck {
  grid-column: 2;
  grid-row: 2;
  margin: 0.15rem 0 0;
  font-family: var(--press-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--press-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#tweets-list .press-list-item:hover h2 {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
#tweets-list .press-list-item:hover {
  background: transparent !important;
  opacity: 1;
}

/* 推文页刊头：像固定「简报」栏目 */
body.press-site:has(#tweets-list) .press-page-title {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}
body.press-site:has(#tweets-list) .press-page-sub {
  font-family: var(--press-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--press-hairline);
  margin-bottom: 0;
  padding-bottom: 12px;
}

/* 首页推文轨：同样 denser + X 前缀气质 */
.press-tweets-rail .press-tweet-item {
  border-left: 1px solid var(--press-hairline);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0 12px;
}
.press-tweets-rail .press-tweet-item .t-date {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.press-tweets-rail .press-tweet-item .t-text::before {
  content: "X · ";
  font-family: var(--press-sans);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--press-muted);
}

.press-page-title {
  font-family: var(--press-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-heading);
  text-align: center;
}
.press-page-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--press-muted);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--press-hairline);
}

/* 置顶 / 标签：报刊风极简 */
.pinned-badge,
.post-tag {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--press-rule);
  color: var(--press-ink);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-left: 0;
  margin-right: 6px;
  box-shadow: none;
}

/* ---------- Footer：双线分隔 + 质朴小字 ---------- */
.footer-container {
  position: static !important;
  max-width: var(--press-max);
  margin: 48px auto 32px !important;
  padding: 18px 20px 8px !important;
  /* 双线收尾，与报头呼应 */
  border-top: 3px double var(--press-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  text-align: center;
  font-family: var(--press-sans) !important;
  font-size: 0.68rem !important;
  font-weight: 400;
  color: var(--press-muted) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

/* ---------- 全站最后 1%：链接 / 滚动条 / 去 Web 装饰 ---------- */
.press-site a {
  transition: color 0.12s ease, text-decoration-color 0.12s ease, opacity 0.12s ease !important;
}
.press-site a:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
/* 正文链接：仅下划线与透明度，无发光 */
.press-site .article-body a:hover,
.press-site .press-list-item:hover,
.press-site .press-card:hover,
.press-site .press-side-item:hover,
.press-site .press-tweet-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 极细灰色滚动条 */
.press-site,
.press-site * {
  scrollbar-width: thin;
  scrollbar-color: var(--press-hairline-strong, #c8c8c8) transparent;
}
.press-site::-webkit-scrollbar,
.press-site *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.press-site::-webkit-scrollbar-track,
.press-site *::-webkit-scrollbar-track {
  background: transparent;
}
.press-site::-webkit-scrollbar-thumb,
.press-site *::-webkit-scrollbar-thumb {
  background: var(--press-hairline-strong, rgba(18, 18, 18, 0.22));
  border-radius: 0;
  border: none;
}
.press-site::-webkit-scrollbar-thumb:hover,
.press-site *::-webkit-scrollbar-thumb:hover {
  background: var(--press-muted);
}

@media (max-width: 560px) {
  #tweets-list .press-list-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 0.65rem 0;
  }
  #tweets-list .press-list-meta {
    font-size: 0.6rem;
    padding-right: 0.45rem;
  }
  #tweets-list .press-list-item h2 {
    font-size: 0.98rem;
  }
  #tweets-list .press-list-item .deck {
    font-size: 0.84rem;
    -webkit-line-clamp: 3;
  }
}

/* =========================================================
   文章详情页报刊风（posts 页由 nav.js 注入本文件，不依赖 article.css）
   行宽 720px · 署名栏 · H1–H4 衬线 · 首字下沉 · 报纸表/引用
   ========================================================= */
.article-page {
  max-width: 720px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 32px !important;
  margin-bottom: 64px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

.article-page .article-meta {
  text-align: center !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.article-page .article-meta h1 {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em;
  color: var(--color-heading, var(--press-ink)) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
}

/* 署名栏：双 hairline 包裹 · 全大写小字 */
.article-page .article-meta .article-date {
  display: block !important;
  font-family: var(--press-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--press-muted) !important;
  border-top: 1px solid var(--press-hairline) !important;
  border-bottom: 1px solid var(--press-hairline) !important;
  padding: 11px 8px !important;
  margin: 0 !important;
  line-height: 1.4;
}
.article-page .article-meta .article-date::before {
  content: "By dczhe · ";
  letter-spacing: 0.14em;
}

.article-page .article-tags {
  justify-content: center;
  margin: 12px 0 0;
}
.article-page .post-tag {
  border-radius: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-color: var(--press-hairline);
  color: var(--press-muted);
  background: transparent;
}

.article-page .article-body {
  font-family: var(--press-sans) !important;
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
  color: var(--color-text) !important;
}

.article-page .article-body h1,
.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4 {
  font-family: var(--font-serif) !important;
  color: var(--color-heading, var(--press-ink)) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}
.article-page .article-body h1 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  margin: 2.2em 0 0.7em !important;
}
.article-page .article-body h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 2.1em 0 0.65em !important;
  padding-top: 0.35em;
  border-top: 1px solid var(--press-hairline);
}
.article-page .article-body h3 {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  margin: 1.85em 0 0.55em !important;
}
.article-page .article-body h4 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin: 1.6em 0 0.45em !important;
}
.article-page .article-body p {
  margin: 0 0 1.15em !important;
}

/* 首字下沉 */
.article-page .article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif) !important;
  font-size: 3.55em;
  font-weight: 700;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  margin: 0.04em 0.02em 0 0;
  color: var(--color-heading, var(--press-ink));
}

/* 引用：双线 + 衬线斜体 */
.article-page .article-body blockquote {
  margin: 1.6em 0 !important;
  padding: 0.35em 0 0.35em 1.15em !important;
  border-left: 3px double var(--press-ink) !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  color: var(--press-muted) !important;
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 1.02em;
  border-radius: 0 !important;
}
.article-page .article-body blockquote p {
  margin: 0.4em 0 !important;
}

/* 表格：仅横线 */
.article-page .article-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 1.5em 0 !important;
  font-size: 0.92rem;
  box-shadow: none !important;
  display: table !important;
}
.article-page .article-body th,
.article-page .article-body td {
  border: none !important;
  border-bottom: 1px solid var(--press-hairline) !important;
  padding: 0.55em 0.65em 0.55em 0 !important;
  text-align: left !important;
  background: transparent !important;
}
.article-page .article-body thead th {
  font-family: var(--press-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--press-ink) !important;
  color: var(--press-ink) !important;
  background: transparent !important;
}
.article-page .article-body tbody tr:nth-child(even),
.article-page .article-body tbody tr:hover {
  background: transparent !important;
}
.article-page .article-body tbody tr:last-child td {
  border-bottom: 1px solid var(--press-ink) !important;
}

/* 文内图：直角 hairline + 限高，报纸插图感 */
.article-page .article-body img {
  max-width: 100% !important;
  max-height: min(420px, 55vh);
  width: auto;
  height: auto !important;
  object-fit: contain;
  object-position: center top;
  margin: 1.4em auto !important;
  border-radius: 0 !important;
  border: 1px solid var(--press-hairline) !important;
  box-shadow: none !important;
}
.article-page .article-body a img {
  border-color: var(--press-hairline);
}
.article-page .article-body pre,
.article-page .article-body .code-block-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 0 !important;
  border: 1px solid var(--press-hairline) !important;
  margin: 1.4em 0 !important;
}
.article-page .article-body hr {
  border: none !important;
  border-top: 1px solid var(--press-hairline) !important;
  margin: 2em 0 !important;
}
.article-page .article-body a {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  border-bottom: none !important;
}
.article-page .article-body strong,
.article-page .article-body b {
  color: inherit !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .article-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 20px !important;
  }
  .article-page .article-meta h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
  }
  .article-page .article-body {
    font-size: 1.02rem !important;
  }
  .article-page .article-body > p:first-of-type::first-letter {
    font-size: 3.1em;
  }
  .article-page .article-body table {
    font-size: 0.85rem;
    display: block !important;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .article-page .article-meta .article-date {
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
  }
  .article-page .article-body > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    font-weight: inherit;
  }
}

/* ---------- 捐赠弹窗保留，去玻璃感 ---------- */
.donate-overlay .donate-modal {
  border-radius: 0;
  border: 1px solid var(--press-rule);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .press-front {
    grid-template-columns: 1fr;
    gap: 0;
    /* 移动端：头版整块底部分隔线 */
    border-bottom: 1px solid var(--press-hairline);
  }
  /* 头条单独占满宽，底 hairline 与侧栏分开 */
  .press-lead {
    padding: 0 0 28px;
    border-bottom: 1px solid var(--press-hairline);
    margin-bottom: 0;
  }
  .press-lead-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }
  .press-side-list {
    border-left: none;
    padding: 20px 0 24px;
    /* 纵向分栏线改为横向 hairline */
    border-top: none;
  }
  .press-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .press-tweet-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .press-grid,
  .press-tweet-row {
    grid-template-columns: 1fr;
  }
  .press-lead {
    padding-bottom: 24px;
  }
  .press-lead-title {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }
  .press-lead-deck {
    font-size: 1.02rem;
  }
  .press-section-label {
    margin-top: 24px;
  }
  .press-masthead {
    padding-top: 10px;
    margin-bottom: 4px;
  }
  .press-masthead-top {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .press-logo {
    max-width: 100%;
  }
  .press-logo-wrap {
    padding: 8px 0 10px;
  }
  /* 双线报头在窄屏仍保留 */
  .press-nav {
    border-bottom: 3px double var(--press-ink);
  }
  .press-nav-tools {
    width: 100%;
    justify-content: flex-end;
    border-left: none;
    border-top: 1px solid var(--press-hairline);
  }
}

/* 禁用旧 glass 浮动导航的 fixed 布局（若仍残留 class） */
.press-site .nav-container.nav-container {
  position: static;
  transform: none;
  width: auto;
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
