/* DailyNews · 编辑风主题 —— 中文排版优先，移动端优先 */
:root {
  color-scheme: light dark;
  --bg: #faf9f7;
  --bg-card: #ffffff;
  --text: #29262d;
  --text-muted: #8b8593;
  --accent: #b4372f;
  --accent-soft: rgba(180, 55, 47, 0.08);
  --line: #e7e2da;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151419;
    --bg-card: #1e1d24;
    --text: #d8d5dd;
    --text-muted: #8f8a99;
    --accent: #e27263;
    --accent-soft: rgba(226, 114, 99, 0.1);
    --line: #2c2a33;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── 页头 ─────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.14em; }
.brand-date { font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── 首页 masthead ────────────────── */
.masthead { padding: 2.8rem 0 2rem; border-bottom: 1px solid var(--line); }
.masthead-kicker {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.masthead-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
}
.masthead-desc { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.95rem; max-width: 30em; }

/* ── 期刊列表 ─────────────────────── */
.issue-list { list-style: none; margin: 0; padding: 0.4rem 0 3rem; }
.issue-card { border-bottom: 1px solid var(--line); }
.issue-card:first-child { border-top: 1px solid var(--line); }
.issue-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0.2rem;
  color: var(--text);
}
.issue-link:hover { text-decoration: none; background: var(--accent-soft); }
.issue-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  padding: 0.3rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.issue-date small { font-size: 0.6rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.08em; }
.issue-body { flex: 1; min-width: 0; }
.issue-title { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.issue-excerpt {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.issue-arrow { flex: none; color: var(--text-muted); font-size: 1rem; transition: transform 0.15s ease, color 0.15s ease; }
.issue-link:hover .issue-arrow { transform: translateX(3px); color: var(--accent); }

/* ── 文章页 ───────────────────────── */
.post { padding: 2.6rem 0 3.5rem; }
.post-kicker { margin: 0 0 0.6rem; font-size: 0.78rem; letter-spacing: 0.22em; color: var(--accent); }
.post-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}
.post-meta { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.post-header { padding-bottom: 1.6rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }

.post p { margin: 0 0 1.05em; }

/* 条目标题（每个深挖条目是一个 h2，标题本身是原文链接）；
   顶部分隔线制造条目边界，缓解长页滚动疲劳 */
.post h2 {
  margin: 0 0 0.9em;
  padding: 1.7em 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.55;
}
.post h2:first-of-type { margin-top: 2.2em; }
.post h2 a {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.2s ease;
}
.post h2 a:hover { text-decoration: none; background-size: 100% 2px; }

/* 来源行：紧随 h2 的第一段 */
.post h2 + p {
  margin: 0 0 1.1em;
  padding: 0.55em 0.85em;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 列表：红色小圆点标记 */
.post ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.post ul ul { margin: 0.45em 0 0.6em; }
.post li { margin: 0.4em 0; padding-left: 1.15em; position: relative; }
.post li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.post ul ul li::before { background: var(--text-muted); }

.post hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
.post strong { font-weight: 650; }

.post-footer-nav { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* ── 其它 ─────────────────────────── */
.page-title { font-family: var(--serif); padding: 2.2rem 0 1.2rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer p { margin: 0; padding: 1.4rem 0; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; }

@media (max-width: 480px) {
  .brand-date { display: none; }
  .issue-excerpt { display: none; }
  .issue-link { gap: 0.85rem; padding: 1rem 0.1rem; }
  .post { padding-top: 2rem; }
  .post h2 { font-size: 1.18rem; }
}

/* ── 桌面端：放宽内容列 ────────────── */
@media (min-width: 1024px) {
  .wrap { max-width: 56rem; }
  body { font-size: 17px; }
  .post h2 { font-size: 1.34rem; }
  .issue-title { font-size: 1.08rem; }
}
