@font-face { font-family: "Bao Serif"; src: url(/s/serif-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bao Num"; src: url(/s/num.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bao Num"; src: url(/s/num-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --paper: #f3eee3; --paper-2: #ebe4d5; --ink: #1d1a15; --ink-2: #4a443a; --mute: #8a8172; --rule: #d6ccb8; --rule-2: #1d1a15;
  --zaobao: #b8381a; --morning: #9a6a06; --evening: #2c4a86;
  --acc: var(--zaobao);
  --serif: "Bao Serif", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --num: "Bao Num", "Instrument Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #16140f; --paper-2: #1e1b15; --ink: #ebe5d8; --ink-2: #c4bcad; --mute: #8b8478; --rule: #37322a; --rule-2: #ebe5d8;
    --zaobao: #ee7c58; --morning: #dcaa45; --evening: #8eaae6; }
}
.k-morning, .ed-morning { --acc: var(--morning); }
.k-evening, .ed-evening { --acc: var(--evening); }
.ed-zaobao { --acc: var(--zaobao); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.85 var(--sans); font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--acc) 22%, transparent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 6px 12px; z-index: 9; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }

/* 报头 */
.mast { padding: 0 20px; }
.mast-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  padding: 26px 0 14px; border-bottom: 3px solid var(--rule-2); position: relative; }
.mast-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; border-bottom: 1px solid var(--rule-2); }
.mast-name { font: 700 52px/1 var(--serif); letter-spacing: .14em; margin-right: -.14em; text-decoration: none; }
.mast-l, .mast-r { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; padding-bottom: 6px; }
.mast-l time { font-family: var(--num); font-size: 16px; letter-spacing: .02em; }
.mast-r { justify-self: end; display: flex; gap: 18px; }
.mast-r a { text-decoration: none; }
.mast-r a.home { font: italic 16px/1 var(--num); color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--rule); letter-spacing: .02em; }
.mast-r a.home:hover { color: var(--ink); }
.mast-r a:hover { text-decoration: underline; text-underline-offset: 4px; }

.seal { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; font: 700 13px/1 var(--serif); font-style: normal; color: var(--acc); border: 1.5px solid var(--acc); border-radius: 3px; }

/* 信息流 */
.feed { max-width: 880px; margin: 0 auto; padding: 18px 20px 24px; }
.divider { position: relative; display: flex; justify-content: center; margin: 34px 0 6px 128px; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.divider span { position: relative; padding: 0 14px; background: var(--paper); font-size: 13px; letter-spacing: .08em; color: var(--mute); }
.divider b { font-weight: 600; color: var(--ink-2); margin-right: 8px; }
.feed > .divider:first-child { margin-top: 18px; }

.entry { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 24px; position: relative; }
.gut { position: relative; text-align: right; padding-top: 22px; }
.gt { font: 400 26px/1 var(--num); color: var(--ink-2); letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.entry::before { content: ""; position: absolute; left: 116px; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.entry::after { content: ""; position: absolute; left: 112px; top: 29px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--paper); }
.ebody { min-width: 0; padding: 14px 0 18px 4px; border-bottom: 1px solid var(--rule); }
.entry:has(+ .divider) .ebody, .entry:has(+ .more) .ebody, .entry:has(+ .feed-end) .ebody, .entry:last-child .ebody { border-bottom: 0; }

summary { list-style: none; cursor: pointer; display: block; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
.ehead { margin: 0; font: inherit; }
.eh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.eh .seal { width: 30px; height: 30px; font-size: 16px; border-width: 2px; background: var(--acc); color: var(--paper); border-radius: 4px; }
.eh-name { font: 700 26px/1.2 var(--serif); letter-spacing: .08em; color: var(--ink); }
.eh-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 4px; }
.eh-meta time { display: none; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: none; }
.ehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chev { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); position: relative; transition: transform .2s, border-color .2s; }
.chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translate(-50%, -50%) rotate(45deg); }
details[open] .chev { transform: rotate(180deg); }
summary:hover .chev { border-color: var(--ink-2); }
summary:hover .eh-name { color: var(--acc); }

.teaser { display: grid; gap: 8px; padding: 4px 0 6px; }
details[open] .teaser { display: none; }
.ts { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; line-height: 1.6; color: var(--mute); letter-spacing: .03em; }
.ts span { white-space: nowrap; }
.tf { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tog { font-size: 13px; color: var(--acc); letter-spacing: .06em; }
.tog::after { content: " ↓"; }

.content { padding-bottom: 4px; }
.efoot { margin: 18px 0 0; font-size: 13px; }
.efoot a { color: var(--mute); text-decoration: none; }
.efoot a::after { content: " ↗"; }
.efoot a:hover { color: var(--acc); }

.more, .feed-end { display: block; margin: 30px 0 0 128px; text-align: center; }
.more { padding: 12px; border: 1px solid var(--rule); border-radius: 99px; text-decoration: none; font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.more:hover { border-color: var(--ink-2); color: var(--ink); }
.more.is-busy { opacity: .5; pointer-events: none; }
.feed-end { font-size: 13px; color: var(--mute); }

.is-standalone .ebody { border-bottom: 0; padding-top: 10px; }
.is-standalone .eh-meta time { display: inline; }
.is-standalone .eh-meta .dot { display: inline-block; }
.is-standalone .eh-name { font-size: 34px; }
.is-standalone .eh .seal { width: 36px; height: 36px; font-size: 19px; }
.is-one .pager, .is-day .pager { margin-left: 128px; }

.sec { padding-top: 26px; }
.sec h3 { margin: 0 0 4px; display: flex; align-items: baseline; gap: 12px; font: 700 19px/1.3 var(--serif); letter-spacing: .06em; }
.sec h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); transform: translateY(-6px); }
.sec-n { font: italic 400 17px/1 var(--num); color: var(--acc); letter-spacing: 0; }

.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 6px; padding: 12px 0; border-bottom: 1px dotted var(--rule); }
.items li:last-child { border-bottom: 0; }
.items .n { font: 400 22px/1.25 var(--num); color: var(--acc); font-variant-numeric: lining-nums; }
.items p { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.items p b { font-weight: 650; }

.pager { margin-top: 44px; padding-top: 18px; border-top: 3px double var(--rule-2); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pager a { text-decoration: none; display: grid; gap: 2px; }
.pager a[rel=next] { text-align: right; }
.pager small { font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.pager b { font: 700 16px/1.3 var(--serif); letter-spacing: .04em; }
.pager a:hover b { color: var(--acc); }
.pager-mid { font-size: 13px; color: var(--ink-2); padding: 6px 14px; border: 1px solid var(--rule); border-radius: 99px; }
.pager-mid:hover { border-color: var(--ink-2); }

.foot { max-width: 1120px; margin: 24px auto 0; padding: 18px 20px 36px; text-align: center; font: italic 15px var(--num); color: var(--mute); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* 往期 */
.arch { max-width: 1120px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 56px; }
.arch-h { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.arch-h h1 { margin: 0; font: 700 40px/1.1 var(--serif); letter-spacing: .1em; }
.legend { margin: 0; display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.month h2 { margin: 0 0 14px; font: 400 34px/1 var(--num); letter-spacing: 0; }
.month h2 small { font: 700 15px var(--serif); margin: 0 6px 0 4px; color: var(--ink-2); }
.wk, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk span { text-align: center; font-size: 12px; color: var(--mute); padding-bottom: 4px; }
.day { aspect-ratio: 1 / 1.05; min-height: 44px; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  padding: 6px 0 8px; border-radius: 4px; text-decoration: none; position: relative; }
.dn { font: 400 22px/1 var(--num); }
a.day { background: var(--paper-2); }
a.day:hover { background: color-mix(in srgb, var(--paper-2) 60%, var(--ink) 10%); }
.day.empty .dn { color: var(--mute); opacity: .55; }
.day.future .dn { opacity: .25; }
.day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.marks { display: flex; gap: 3px; }
.mk { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.mk-zaobao { --acc: var(--zaobao); } .mk-morning { --acc: var(--morning); } .mk-evening { --acc: var(--evening); }
.mk.no { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }

/* 404 */
.lost { max-width: 680px; margin: 0 auto; padding: 72px 20px 40px; text-align: center; }
.lost-n { margin: 0; font: italic 400 120px/1 var(--num); color: var(--zaobao); }
.lost h1 { margin: 12px 0 28px; font: 700 26px/1.3 var(--serif); letter-spacing: .12em; }
.lost-a { display: flex; justify-content: center; gap: 12px; }
.lost-a a { text-decoration: none; padding: 8px 18px; border: 1px solid var(--ink); border-radius: 99px; font-size: 15px; }
.lost-a a:first-child { background: var(--ink); color: var(--paper); }

/* 手机 */
@media (max-width: 760px) {
  body { font-size: 16.5px; line-height: 1.8; }
  .mast { padding: 0 16px; }
  .mast-in { grid-template-columns: 1fr auto; padding: 18px 0 10px; border-bottom-width: 2px; }
  .mast-in::after { bottom: -6px; }
  .mast-l { display: none; }
  .mast-name { font-size: 34px; justify-self: start; }
  .mast-r { padding-bottom: 3px; font-size: 14px; }
  .feed { padding: 8px 16px 16px; }
  .entry { display: block; }
  .entry::before, .entry::after, .gut { display: none; }
  .divider, .more, .feed-end, .is-one .pager, .is-day .pager { margin-left: 0; }
  .divider { margin-top: 28px; }
  .ebody { padding: 12px 0 16px; border-left: 3px solid var(--acc); padding-left: 14px; border-bottom: 0; margin-bottom: 14px; }
  .is-standalone .ebody { border-left: 0; padding-left: 0; }
  .eh { gap: 10px; }
  .eh .seal { width: 26px; height: 26px; font-size: 14px; }
  .eh-name { font-size: 22px; }
  .eh-meta time { display: inline; }
  .eh-meta .dot { display: inline-block; }
  .is-standalone .eh-name { font-size: 28px; }
  .chev { width: 28px; height: 28px; }
  .sec h3 { font-size: 18px; }
  .items li { grid-template-columns: 24px minmax(0, 1fr); padding: 11px 0; }
  .items .n { font-size: 20px; }
  .pager b { font-size: 15px; }
  .arch { padding: 24px 16px 16px; gap: 32px; grid-template-columns: 1fr; }
  .arch-h h1 { font-size: 32px; }
  .lost-n { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .mast-r, .pager, .foot, .skip, .more, .gut, .chev, .efoot { display: none; } .entry { display: block; } .entry::before, .entry::after { display: none; } .divider, .pager { margin-left: 0; } body { background: #fff; color: #000; } }
