/* ============ Tokens ============ */
:root {
  --bg: #F6F6F2; --bg-2: #EEEEE8; --surface: #FFFFFF; --surface-2: #F3F3EE; --surface-3: #EAEAE3;
  --line: #E3E3DB; --line-2: #D0D1C7;
  --text: #0D0F12; --text-2: #454B54; --text-3: #676D76;
  --accent: #C8FF4D; --accent-ink: #0D0F12; --accent-text: #3D5C00; --accent-soft: rgba(160, 214, 30, .18);
  --ok: #13804E; --warn: #A15C00; --err: #C2341D;
  --c-news: #4A6E00; --c-agents: #6A48D6; --c-community: #0B6A9E; --c-cn: #C2410C;
  --grid: rgba(13, 15, 18, .045);
  --shadow: 0 1px 0 rgba(13,15,18,.03), 0 10px 30px -18px rgba(13,15,18,.22);
  --shadow-lg: 0 30px 80px -30px rgba(13,15,18,.35);
  --scrim: rgba(246, 246, 242, .78); --seg-on: #FFFFFF;
  --top-h: 98px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090B; --bg-2: #0B0D10; --surface: #0F1115; --surface-2: #14171C; --surface-3: #1A1E24;
    --line: #1E2229; --line-2: #2B3038;
    --text: #ECEEF2; --text-2: #A9B0BB; --text-3: #7F8793;
    --accent: #C8FF4D; --accent-ink: #0A0B0D; --accent-text: #C8FF4D; --accent-soft: rgba(200, 255, 77, .1);
    --ok: #5EE6A8; --warn: #FFC857; --err: #FF7A6B;
    --c-news: #C8FF4D; --c-agents: #B8A2FF; --c-community: #7DD3FC; --c-cn: #FF9E7A;
    --grid: rgba(255, 255, 255, .03);
    --shadow: 0 1px 0 rgba(255,255,255,.02), 0 16px 40px -24px rgba(0,0,0,.9);
    --shadow-lg: 0 40px 100px -30px rgba(0,0,0,.9);
    --scrim: rgba(4, 5, 6, .74); --seg-on: #1F232A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090B; --bg-2: #0B0D10; --surface: #0F1115; --surface-2: #14171C; --surface-3: #1A1E24;
  --line: #1E2229; --line-2: #2B3038;
  --text: #ECEEF2; --text-2: #A9B0BB; --text-3: #7F8793;
  --accent: #C8FF4D; --accent-ink: #0A0B0D; --accent-text: #C8FF4D; --accent-soft: rgba(200, 255, 77, .1);
  --ok: #5EE6A8; --warn: #FFC857; --err: #FF7A6B;
  --c-news: #C8FF4D; --c-agents: #B8A2FF; --c-community: #7DD3FC; --c-cn: #FF9E7A;
  --grid: rgba(255, 255, 255, .03);
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 16px 40px -24px rgba(0,0,0,.9);
  --shadow-lg: 0 40px 100px -30px rgba(0,0,0,.9);
  --scrim: rgba(4, 5, 6, .74); --seg-on: #1F232A;
  color-scheme: dark;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.mono, kbd, time { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ============ Top bar ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1480px; margin: 0 auto; height: 62px; padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Geist Mono", monospace; font-weight: 600; font-size: 15px; letter-spacing: .06em; flex: none; }
.brand-mark { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.brand-sub { color: var(--text-3); margin-left: -6px; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--text-3); transition: border-color .15s; }
.search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
kbd { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; line-height: 20px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); position: relative; }
.status.live .pulse { background: var(--ok); }
.status.live .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 30px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

.ticker { max-width: 1480px; margin: 0 auto; height: 36px; padding: 0 32px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ticker-label { display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px "Geist Mono", monospace; letter-spacing: .12em; color: var(--accent-text); flex: none; }
.ticker-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ticker-run { display: inline-flex; gap: 40px; white-space: nowrap; animation: marquee 90s linear infinite; }
.ticker-track:hover .ticker-run, .ticker-track:focus-within .ticker-run { animation-play-state: paused; }
.ticker-run a { color: var(--text-2); }
.ticker-run a:hover { color: var(--text); }
.ticker-run b { font: 500 12px "Geist Mono", monospace; color: var(--text-3); margin-right: 8px; font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Layout ============ */
.shell { max-width: 1480px; margin: 0 auto; padding: 32px 32px 96px; display: grid; grid-template-columns: 228px minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar, .rail { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.main { min-width: 0; }

/* ============ Sidebar ============ */
.side-block + .side-block { margin-top: 28px; }
.side-label { margin: 0 0 8px; padding: 0 10px; font: 500 11.5px "Geist Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14.5px; color: var(--text-2); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.nav-item .count { margin-left: auto; font: 500 12px "Geist Mono", monospace; color: var(--text-3); }
.nav-item .glyph { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c, var(--text-3)); flex: none; }
.src-group { margin: 14px 10px 4px; font-size: 12px; color: var(--text-3); }
.src-item .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot.ok { background: var(--ok); } .dot.error { background: var(--err); } .dot.pending { background: var(--warn); }
.board { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.board:hover { background: var(--surface-2); color: var(--text); }
.board small { display: block; font-size: 12px; color: var(--text-3); }
.side-foot { margin: 28px 10px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.side-foot code { font: 500 12px "Geist Mono", monospace; color: var(--text-2); overflow-wrap: anywhere; }

/* source badge */
.badge { --c: var(--text-3); width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font: 600 11.5px "Geist Mono", monospace; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); letter-spacing: 0; }
.badge.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; }
[data-cat="news"] { --c: var(--c-news); } [data-cat="agents"] { --c: var(--c-agents); }
[data-cat="community"] { --c: var(--c-community); } [data-cat="cn"] { --c: var(--c-cn); }

/* ============ Brief ============ */
.brief { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 36px 40px 16px; box-shadow: var(--shadow); }
.brief::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%); }
.brief::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); pointer-events: none; }
.brief > * { position: relative; z-index: 1; }
.kicker { margin: 0; font: 500 12px "Geist Mono", monospace; letter-spacing: .14em; color: var(--accent-text); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.brief h1 { margin: 14px 0 10px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
.brief h1 em, .serif-num { font-family: "Instrument Serif", "Songti SC", serif; font-style: italic; font-weight: 400; color: var(--accent-text); letter-spacing: 0; }
.brief h1 em { font-size: 1.22em; line-height: 0; }
.brief-meta { margin: 0; font-size: 13.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.brief-meta span + span::before { content: "·"; margin-right: 14px; color: var(--line-2); }
.brief-list { list-style: none; margin: 24px 0 0; padding: 0; }
.brief-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) 28px; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.brief-num { font-family: "Instrument Serif", serif; font-style: italic; font-size: 52px; line-height: .9; color: var(--text-3); transition: color .2s; }
.brief-item:hover .brief-num { color: var(--accent-text); }
.brief-item h3 { margin: 0 0 6px; font-size: 19.5px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.brief-item h3 button { all: unset; cursor: pointer; }
.brief-item h3 button:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.brief-item h3 button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.brief-item p { margin: 0; color: var(--text-2); font-size: 15px; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ref { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.ref:hover { border-color: var(--line-2); color: var(--text); }
.ref span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.brief-arrow { color: var(--text-3); margin-top: 4px; transition: transform .2s, color .2s; }
.brief-item:hover .brief-arrow { color: var(--accent-text); transform: translateX(3px); }

/* ============ Feed ============ */
.feed { margin-top: 48px; outline: none; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.feed-head h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 650; }
.feed-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--text-3); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.mobile-src { display: none; }

.day { position: sticky; top: var(--top-h); z-index: 5; display: flex; align-items: baseline; gap: 12px; padding: 16px 0 10px; background: var(--bg); }
.day h3 { margin: 0; font-size: 14px; font-weight: 600; }
.day time { font-size: 12px; color: var(--text-3); }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

.item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 16px; padding: 18px 14px; margin: 0 -14px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); }
.item:hover { background: var(--surface); box-shadow: var(--shadow); }
.item:hover::before, .item:hover + .item::before { opacity: 0; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-3); min-height: 28px; }
.item-meta .src { color: var(--text-2); font-weight: 500; max-width: 24em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta time { font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px "Geist Mono", monospace; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-3); }
.tag.hot { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.tag.full { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 35%, transparent); }
.item-title { margin: 4px 0 0; font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.005em; }
.item-title a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.item-orig { display: none; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
:root[data-lang="bi"] .item-orig { display: block; }
.item-sum { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.item-foot a { color: var(--text-3); }
.item-foot a:hover { color: var(--text); }

.feed-end { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 13.5px; }
.more-btn { border: 1px solid var(--line); background: var(--surface); padding: 10px 20px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.more-btn:hover { color: var(--text); border-color: var(--line-2); }
.empty { padding: 64px 0; text-align: center; color: var(--text-3); }
.empty b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* skeleton */
.sk { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; }
.sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk .b { width: 28px; height: 28px; border-radius: 8px; }
.sk div { display: grid; gap: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Rail ============ */
.rail { display: grid; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px 18px 8px; box-shadow: var(--shadow); }
.panel header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel header a { font-size: 12.5px; color: var(--text-3); }
.panel header a:hover { color: var(--text); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank-n { font-family: "Instrument Serif", serif; font-style: italic; font-size: 24px; line-height: 1; color: var(--text-3); text-align: right; }
.rank li:nth-child(-n+3) .rank-n { color: var(--accent-text); }
.rank-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rank-title.mono { font: 500 13px "Geist Mono", monospace; }
.rank-title.mono span { color: var(--text-3); font-weight: 400; }
.rank-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rank p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-meta { margin-top: 4px; font: 500 11.5px "Geist Mono", monospace; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.rank-meta .up { color: var(--ok); }

/* ============ Reader ============ */
.reader { position: fixed; inset: 0; z-index: 40; }
.reader[hidden] { display: none; }
.reader-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade .2s ease; }
/* 阅读器打开时暂停背后的动画：遮罩下面一直在动会让快速滚动时掉帧、闪烁 */
.reader-open .ticker-run, .reader-open .status .pulse::after { animation-play-state: paused; }
.reader-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.reader-src { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); min-width: 0; }
.reader-src time { color: var(--text-3); font-size: 12px; }
.reader-scroll { flex: 1; overflow-y: auto; padding: 32px 48px 80px; overscroll-behavior: contain; }
.reader-title { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.32; letter-spacing: -.02em; font-weight: 650; }
.reader-orig { margin: 10px 0 0; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.reader-orig:empty { display: none; }
.reader-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--line-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.seg .spin { display: inline-block; vertical-align: -2px; margin-right: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.seg button:disabled { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 13px; color: var(--text-3); }
.note.err { color: var(--err); }
.reader-body .source-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.reader-body {
  /* 正文参考 Medium：英文 Source Serif（Medium 正文字体 source-serif-pro 的新版），中文配同一家族的思源宋体 */
  --read-serif: "Source Serif 4", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  margin-top: 28px; font-family: var(--read-serif); font-optical-sizing: auto;
  font-size: 20px; line-height: 1.6; letter-spacing: -.003em; color: var(--text);
  font-kerning: normal; -webkit-font-smoothing: antialiased;
}
.reader-body:lang(zh) { font-size: 18.5px; line-height: 1.9; letter-spacing: .02em; }
.reader-body p { margin: 0 0 1.25em; }
.reader-body h4 { margin: 1.9em 0 .55em; font-family: "Geist", "PingFang SC", "Noto Sans SC", sans-serif; font-size: 23px; line-height: 1.3; letter-spacing: -.016em; font-weight: 700; }
.reader-body ul { margin: 0 0 1.25em; padding-left: 1.2em; }
.reader-body li { margin: .5em 0; padding-left: .2em; }
.reader-body li::marker { color: var(--text-3); }
.reader-body blockquote { margin: 0 0 1.25em; padding: 0 0 0 20px; border-left: 3px solid var(--text); font-style: italic; color: var(--text-2); }
.reader-body:lang(zh) blockquote { font-style: normal; }
.reader-body .lead { font-size: 1.05em; color: var(--text-2); }
.reader-body .orig-para { display: block; margin-top: .5em; font-family: var(--read-serif); font-size: 16px; line-height: 1.6; letter-spacing: -.003em; color: var(--text-3); font-style: normal; }
.reader-body .callout, .reader-body .note { font-family: "Geist", "PingFang SC", "Noto Sans SC", sans-serif; letter-spacing: 0; line-height: 1.7; }
.callout { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 14.5px; }

/* ============ New pill ============ */
.new-pill { position: fixed; left: 50%; top: calc(var(--top-h) + 16px); z-index: 30; transform: translateX(-50%); border: 0; background: var(--text); color: var(--bg); height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg); animation: drop .3s ease; }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }

/* ============ Responsive ============ */
@media (max-width: 1279px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); }
  .rail { grid-column: 2; position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
}
@media (max-width: 1023px) {
  .status { display: none; }
}
@media (max-width: 899px) {
  :root { --top-h: 150px; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .ticker { padding: 0 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 72px; gap: 32px; }
  .sidebar { display: none; }
  .rail { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .brief { padding: 26px 20px 8px; border-radius: 18px; }
  .brief-item { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 0; }
  .brief-num { font-size: 36px; }
  .brief-arrow { display: none; }
  .brief-item h3 { font-size: 17.5px; }
  .ref span:last-child { max-width: 200px; }
  .feed { margin-top: 36px; }
  .feed-head { flex-direction: column; align-items: stretch; }
  .mobile-src { display: block; margin-top: 12px; }
  .mobile-src select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
  .item { padding: 16px 0; margin: 0; border-radius: 0; }
  .item:hover { background: transparent; box-shadow: none; }
  .item + .item::before { left: 0; right: 0; }
  .item:hover::before, .item:hover + .item::before { opacity: 1; }
  .reader-scroll { padding: 24px 20px 64px; }
  .reader-body { font-size: 18px; line-height: 1.65; }
  .reader-body:lang(zh) { font-size: 17px; line-height: 1.85; }
  .reader-body h4 { font-size: 20px; }
  .reader-bar { padding: 12px 12px 12px 20px; }
}
@media (max-width: 420px) {
  .seg button { padding: 0 9px; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ticker-run { animation: none !important; }
}
