/* 每日汇总 · 样式
   单栏、留白、系统无衬线、圆角图片。颜色只在小处出现（话题圆点、链接）。 */

:root {
  --bg: #fcfcfb;
  --surface: #f3f3f1;
  --ink: #161616;
  --ink-2: #3a3a3a;
  --muted: #74746f;
  --line: #ebebe8;
  --accent: #0a7cff;
  --img-edge: rgb(0 0 0 / .06);
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --w: 680px;
  --gut: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1f;
    --ink: #ededeb;
    --ink-2: #c9c9c5;
    --muted: #8f8f8a;
    --line: #26262a;
    --img-edge: rgb(255 255 255 / .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap, .story { max-width: calc(var(--w) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

img.fade { opacity: 0; transition: opacity .4s ease; }
img.fade.in { opacity: 1; }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
}
.bar-in { max-width: calc(var(--w) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.bar-link { font-size: 14px; color: var(--muted); padding: 6px 2px; transition: color .2s; }
.bar-link:hover { color: var(--ink); }

/* ---------- 话题标记 ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.topic { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.topic:empty { display: none; }

/* ---------- 今天 ---------- */
.day-head { padding: 40px 0 32px; }
.kicker { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.day-date { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.day-date span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.day-intro { margin-top: 16px; font-size: 17px; line-height: 1.8; color: var(--ink-2); }

.lead { display: block; margin-bottom: 56px; }
.lead-media { position: relative; margin: 0 calc(var(--gut) * -1) 20px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lead:hover .lead-media img { transform: scale(1.015); }
.lead .topic { margin-bottom: 8px; }
.lead-title { font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; transition: color .2s; }
.lead:hover .lead-title { color: var(--accent); }
.lead-sum { margin-top: 10px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.lead.text-only .lead-title { font-size: 30px; }

.group { margin-bottom: 44px; }
.group-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding-bottom: 4px; }
.group-h span { font-size: 13px; font-weight: 400; color: var(--muted); }

.entries li + li .entry { border-top: 1px solid var(--line); }
.entry { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; transition: opacity .2s; }
.entry-text { flex: 1; min-width: 0; }
.entry h3 { font-size: 17px; line-height: 1.55; font-weight: 600; transition: color .2s; }
.entry:hover h3 { color: var(--accent); }
.entry p { margin-top: 5px; font-size: 14.5px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-src { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); opacity: .85; }

.thumb { position: relative; flex: none; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb img, .lead-media img, .story-media img, .inline-media img { outline: 1px solid var(--img-edge); outline-offset: -1px; border-radius: inherit; }

.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.play svg { width: 24px; height: 24px; margin-left: 2px; }
.play.sm { width: 32px; height: 32px; }
.play.sm svg { width: 15px; height: 15px; }

.day-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 72px; }
.day-nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 10px 16px; border-radius: 999px; background: var(--surface); transition: color .2s; }
.day-nav a:hover { color: var(--ink); }

/* ---------- 单篇 ---------- */
.story { padding-top: 24px; padding-bottom: 72px; }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 28px; transition: color .2s; }
.back:hover { color: var(--ink); }
.story .topic { margin-bottom: 12px; }
.story-title { font-size: 32px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.story-lead { margin-top: 18px; font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.story-media { margin: 32px calc(var(--gut) * -1) 0; }
.story-media img { width: 100%; max-height: 72vh; object-fit: cover; background: var(--surface); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.story-media figcaption { padding: 0 var(--gut); }

.prose { margin-top: 36px; font-size: 17px; line-height: 1.9; color: var(--ink); }
.prose p + p, .prose p + h2, .prose h2 + p { margin-top: 1.05em; }
.prose h2 { font-size: 18px; font-weight: 700; margin-top: 2.2em !important; letter-spacing: .01em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note { margin-top: 2.2em; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.note strong { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; letter-spacing: .04em; }
.note p + p { margin-top: .6em; }
.video, .inline-media { margin-top: 2em; }
.inline-media img { border-radius: var(--radius); }
.video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-frame iframe, video.video-frame { width: 100%; height: 100%; border: 0; }
.video figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; margin-bottom: 6px; }
.sources a, .sources li > .s-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.s-label { font-size: 15px; line-height: 1.5; transition: color .2s; }
.sources a:hover .s-label { color: var(--accent); }
.s-label::after { content: " ↗"; color: var(--muted); font-size: 12px; }
.sources li > .s-label::after { content: none; }
.s-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.story-nav { margin-top: 48px; display: grid; gap: 14px; }
.story-nav .next { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); transition: transform .2s ease; }
.story-nav .next:hover { transform: translateY(-1px); }
.story-nav .next > div:first-child { flex: 1; min-width: 0; }
.story-nav small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.story-nav strong { font-size: 16px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-nav .thumb { width: 64px; height: 64px; border-radius: 10px; }
.story-nav .prev { font-size: 14px; color: var(--muted); padding: 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-nav .prev:hover { color: var(--ink); }

/* ---------- 往期 ---------- */
.month { margin-bottom: 40px; }
.days li + li .day-row { border-top: 1px solid var(--line); }
.day-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.day-row-date { width: 76px; flex: none; }
.day-row-date strong { display: block; font-size: 16px; font-weight: 600; }
.day-row-date span { font-size: 12.5px; color: var(--muted); }
.day-row-main { flex: 1; min-width: 0; }
.day-row-main h3 { font-size: 15.5px; line-height: 1.55; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.day-row:hover h3 { color: var(--accent); }
.day-row-main p { margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-row-thumbs { display: flex; flex: none; }
.day-row-thumbs .thumb { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--bg); }
.day-row-thumbs .thumb + .thumb { margin-left: -14px; }

/* ---------- 宽屏：图片放大，文字仍保持舒适行宽 ---------- */
@media (min-width: 760px) {
  :root { --gut: 32px; }
  .day-head { padding: 64px 0 40px; }
  .day-date { font-size: 48px; }
  .lead-media, .story-media, .story-media img { border-radius: 18px; }
  .lead-media, .story-media { margin-left: -60px; margin-right: -60px; }
  .story-media figcaption { padding: 0; }
  .lead-title { font-size: 30px; }
  .story { padding-top: 40px; }
  .story-title { font-size: 38px; }
  .thumb { width: 104px; height: 104px; }
}
@media (min-width: 1100px) {
  .lead-media, .story-media { margin-left: -120px; margin-right: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  img.fade { opacity: 1; }
}
