/* AI Radar — 20260802 redesign: light-first + dark variant, AIHOT-inspired. */

:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --panel: #ffffff;
  --panel-soft: #eff1f2;
  --panel-strong: #e2e4e7;
  --surface-soft: rgba(28, 39, 51, 0.04);
  --surface-hover: rgba(28, 39, 51, 0.06);
  --surface-pressed: rgba(28, 39, 51, 0.09);
  --border: #e2e4e7;
  --border-strong: #d8dbdf;
  --border-soft: #eceef0;
  --border-emphasis: #8a94a2;
  --border-card-subtle-solid: #c9cdd2;
  --ink: #1c2733;
  --ink-strong: #1c2733;
  --muted: #6b7684;
  --soft: #5c6672;
  --accent: #135e6b;
  --accent-ink: #135e6b;
  --accent-soft: rgba(19, 94, 107, 0.08);
  --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-contrast: #fcfcfd;
  --gold: #b8873a;
  --gold-ink: #96702e;
  --gold-soft: color-mix(in srgb, var(--gold) 12%, transparent);
  --danger: #b3402a;
  --rank-second: #c2703f;
  --success: #2f7d5c;
  --success-ink: #2f7d5c;
  --note-ink: #42707c;
  --note-bg: color-mix(in srgb, var(--note-ink) 6%, transparent);
  --shadow-card: 0 1px 2px rgba(28, 39, 51, 0.05);
  --shadow-card-hover: 0 6px 18px rgba(28, 39, 51, 0.09);
  --shadow-pop: 0 12px 32px rgba(28, 39, 51, 0.12);
  --shadow-soft: 0 4px 12px rgba(28, 39, 51, 0.06);
  --shadow-thumb: 0 1px 3px rgba(28, 39, 51, 0.14);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-serif: "Noto Serif SC", ui-serif, Georgia, serif;
  --font-display: var(--font-sans);
  --font-daily-body: var(--font-sans);
  --text-size-xs: 0.75rem;
  --text-size-sm: 0.8125rem;
  --text-size-base: 0.875rem;
  --text-size-md: 1rem;
  --text-size-lg: 1.125rem;
  --text-size-xl: 1.25rem;
  --text-size-2xl: 1.5rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --dur-fast: 120ms;
  --dur-base: 160ms;
  --dur-press: 80ms;
  --dur-enter: 240ms;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-width: 180px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e4e7;
  --touch-target: 44px;
  --touch-target-sm: 36px;
  --mobile-rank-second: #a3642f;
  --mobile-ink-3: #65707e;
  --mobile-rank-rest-bg: #eceef0;
  --mobile-handle: #d3d8dd;
  --mobile-card-radius: 12px;
  --mobile-button-radius: 12px;
  --mobile-tabbar-height: 54px;
  --mobile-gutter: 18px;
  --poster-ink: rgba(255, 255, 255, 0.92);
  --poster-ink-muted: rgba(255, 255, 255, 0.55);
  --poster-button-bg: rgba(255, 255, 255, 0.10);
  --poster-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --search-control-height: 38px;
  --theme-transition: background-color 220ms ease, background 220ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151c;
  --panel: #171d26;
  --panel-soft: #171d26;
  --panel-strong: #1b2230;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-pressed: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-emphasis: rgba(255, 255, 255, 0.22);
  --border-card-subtle-solid: rgba(255, 255, 255, 0.14);
  --ink: #e8ebf2;
  --ink-strong: #e8ebf2;
  --muted: #7b869a;
  --soft: #98a2b3;
  --accent: #4fa3b3;
  --accent-ink: #6cb8c6;
  --accent-soft: rgba(79, 163, 179, 0.12);
  --accent-contrast: #10151c;
  --gold: #d3b26a;
  --gold-ink: #d3b26a;
  --danger: #d86a52;
  --rank-second: #d18a5e;
  --success: #5fc79a;
  --success-ink: #5fc79a;
  --note-ink: #8fb8a8;
  --note-bg: color-mix(in srgb, var(--note-ink) 10%, transparent);
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.4);
  --sidebar-bg: #0c1117;
  --sidebar-border: rgba(255, 255, 255, 0.07);
  --mobile-rank-second: #b45a3a;
  --mobile-ink-3: #7b869a;
  --mobile-rank-rest-bg: rgba(255, 255, 255, 0.07);
  --mobile-handle: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--surface-hover);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-emphasis);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-size-base)/var(--line-height-normal) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

@media (min-width: 961px) {
  body {
    display: flex;
    align-items: flex-start;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0;
  font-size: var(--text-size-2xl);
  line-height: var(--line-height-tight);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

input[type="search"] {
  appearance: none;
  height: var(--search-control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  padding: 0 var(--space-3);
  font: var(--text-size-sm)/var(--line-height-normal) var(--font-sans);
  min-width: 0;
  transition: var(--theme-transition);
}

input[type="search"]:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 1px;
  border-color: var(--border-emphasis);
}

button:active,
.wide-action:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.filter-submit:disabled:hover {
  border-color: var(--border-strong);
  background: var(--panel);
}

:where(input, select, textarea):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  padding: 20px 14px 16px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  transition: var(--theme-transition);
}

.sidebar-brand {
  display: block;
  padding: 2px 8px 14px;
}

.sidebar-close {
  display: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

.brand-logo-ai {
  color: var(--accent-ink);
}

.brand-logo-orbit {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.brand-logo-orbit-core {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0 10px;
}

.side-group-label {
  padding: 10px 10px 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: 13.5px;
  border: 1px solid transparent;
}

.side-link:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.side-link-active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}

.side-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.85;
}

.side-icon svg,
.m-tab-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.side-icon::before,
.side-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
}

.side-icon-curated::before {
  inset: 1px 3px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.side-icon-curated::after {
  left: 6px;
  top: 5px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.side-icon-all::before {
  inset: 2px 1px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.side-icon-all::after {
  inset: 7px 1px;
  border-top: 1.5px solid currentColor;
}

.side-icon-daily::before {
  inset: 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.side-icon-daily::after {
  left: 5px;
  right: 5px;
  top: 7px;
  border-top: 1.5px solid currentColor;
}

.side-icon-wechat::before {
  inset: 2px 1px 4px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.side-icon-wechat::after {
  left: 5px;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.side-icon-bookmark::before {
  inset: 1px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 0 0;
}

.side-icon-bookmark::after {
  left: 5px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.side-icon-about::before {
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.side-icon-about::after {
  left: 7px;
  top: 5px;
  width: 2px;
  height: 6px;
  background: currentColor;
}

.side-icon::before,
.side-icon::after,
.m-tab-icon-more::before {
  content: none;
}

.side-count {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
}

.side-link-active .side-count {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: transparent;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ICP filing number. Required to be visible on a mainland-hosted site, but it
   is legal boilerplate rather than navigation, so it sits below the theme
   toggle at the smallest legible size and does not compete with the nav. */
.icp-footer {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.icp-footer a {
  color: inherit;
  text-decoration: none;
}

.icp-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The sidebar collapses on a phone, taking its copy of the footer with it, so
   every page carries a second copy at the end of <main>. Exactly one is visible
   at a time: this one only below the 960px breakpoint that swaps the sidebar
   for .m-tabbar. Placed inside <main>, which already reserves bottom padding
   for the fixed tab bar. */
.mobile-icp {
  display: none;
}

@media (max-width: 960px) {
  .mobile-icp {
    display: block;
    /* .app-main is a flex column whose children are explicitly ordered (see
       .home-page rules, order 1-5). Being last in the DOM is therefore not
       enough -- an unordered child defaults to order 0 and jumps to the top.
       This must stay above every ordered sibling. */
    order: 99;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
  }
}

/* ---------- theme toggle ---------- */

.theme-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--panel-soft);
  transition: var(--theme-transition);
}

.theme-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  width: 100%;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.theme-btn:hover {
  color: var(--ink);
}

.theme-btn[aria-pressed="true"] {
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  box-shadow: none;
}

.theme-toggle-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-hover);
  box-shadow: var(--shadow-thumb);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), background 0.2s ease, border-color 0.2s ease;
}

:root[data-theme-mode="dark"] .theme-toggle-thumb,
.theme-toggle-thumb[data-pos="dark"] {
  transform: translateX(0);
}

:root[data-theme-mode="system"] .theme-toggle-thumb,
.theme-toggle-thumb[data-pos="auto"] {
  transform: translateX(100%);
}

:root[data-theme-mode="light"] .theme-toggle-thumb,
.theme-toggle-thumb[data-pos="light"] {
  transform: translateX(200%);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- main shell ---------- */

.app-main {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 22px 28px 60px;
  margin: 0 auto;
}

.app-mobile-bar {
  display: none;
}

.mobile-context-head {
  display: none;
}

.m-tabbar,
.mobile-heading,
.mobile-search-link,
.mobile-date-label {
  display: none;
}

.home-page {
  display: flex;
  flex-direction: column;
}

.daily-page-main {
  display: grid;
}

.home-page .page-header { order: 1; }
.home-page .hot-topics { order: 2; }
.home-page #list { order: 3; }
.home-page .scroll-sentinel { order: 4; }
.home-page .scroll-status { order: 5; }

.more-page {
  width: min(640px, 100%);
  max-width: 1160px;
}

.more-page-head {
  padding: 10px 0 14px;
}

.more-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-size-sm);
}

.more-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--mobile-card-radius);
  background: var(--panel);
  overflow: hidden;
}

.more-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: var(--touch-target);
  padding: 12px 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--theme-transition), background-color var(--dur-base) ease;
}

.more-row:last-child {
  border-bottom: 0;
}

.more-row:hover {
  background: var(--surface-soft);
}

.more-row-arrow {
  color: var(--mobile-handle);
  font-size: 16px;
  line-height: 1;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--theme-transition);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-1) 0 0;
  margin-bottom: var(--space-4);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: var(--text-size-sm);
  line-height: var(--line-height-normal);
}

.feed-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.feed-segments {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1;
}

.seg-list {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-soft);
  transition: var(--theme-transition);
}

.seg-list::-webkit-scrollbar {
  display: none;
}

.seg-item {
  min-width: 0;
  padding: 7px 1px 9px;
  border-radius: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: color 120ms ease, box-shadow 120ms ease;
}

.seg-item:hover {
  color: var(--ink);
  background: none;
}

.seg-item-active {
  color: var(--accent-ink);
  font-weight: 600;
  background: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.feed-filter {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.feed-filter input[type="search"] {
  width: 200px;
}

.source-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  color: var(--soft);
  font-size: var(--text-size-sm);
  white-space: nowrap;
}

.source-filter select {
  height: var(--search-control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  padding: 0 var(--space-2);
  font: inherit;
  transition: var(--theme-transition);
}

.feed-channel-select-wrap {
  position: relative;
  display: inline-flex;
  width: 128px;
  flex: 0 0 128px;
}

.source-filter .feed-channel-select {
  width: 100%;
  padding: 0 36px 0 12px;
  appearance: none;
  cursor: pointer;
}

.feed-channel-select-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--muted);
  transform: translateY(-50%) rotate(90deg);
  transition: color var(--dur-fast) ease;
}

.feed-channel-select-wrap:hover .feed-channel-select-icon,
.feed-channel-select:focus + .feed-channel-select-icon {
  color: var(--soft);
}

.source-filter .feed-channel-select-active {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-ink);
  font-weight: 600;
}

.feed-channel-select-active + .feed-channel-select-icon {
  color: var(--accent-ink);
}

.filter-submit {
  appearance: none;
  width: 74px;
  flex: 0 0 74px;
  height: var(--search-control-height);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font: var(--text-size-sm)/1 var(--font-sans);
  font-weight: 600;
  padding: 0 var(--space-3);
  cursor: pointer;
  transition: var(--theme-transition);
}

.filter-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- hot topics ---------- */

.hot-topics {
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}

.hot-topics:empty:not([hidden]) {
  min-height: 132.5px;
}

.hot-topics-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.hot-topics-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

.hot-topics-title-mobile {
  display: none;
}

.hot-topics-more {
  flex: none;
  margin-left: auto;
  color: var(--accent-ink);
  font-size: var(--text-size-xs);
  font-weight: 700;
}

.hot-topics-more:hover {
  text-decoration: underline;
}

.hot-topics-list {
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
  display: grid;
}

.hot-topics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 16px;
  transition: background 140ms ease;
}

.hot-topics-row + .hot-topics-row {
  border-top: 1px solid var(--border-soft);
}

.hot-topics-row:hover {
  background: rgba(28, 39, 51, 0.025);
}

[data-theme="dark"] .hot-topics-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hot-topics-rank {
  flex: none;
  width: 20px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}

.hot-topics-rank-1,
.hot-topics-rank-2,
.hot-topics-rank-3 {
  font-size: 15px;
  font-weight: 900;
}

.hot-topics-rank-1 { color: var(--danger); }
.hot-topics-rank-2 { color: var(--rank-second); }
.hot-topics-rank-3 { color: var(--gold); }
.hot-topics-rank-rest { color: var(--muted); }

.hot-topics-link {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: var(--line-height-normal);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}

.hot-topics-link:hover {
  color: var(--accent-ink);
}

.hot-topics-meta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-size-sm);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ---------- hot ranking page ---------- */

.hot-page-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  max-width: none;
  padding: 24px 28px 72px;
  margin: 0;
}

.hot-page {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 48px 0 72px;
  color: var(--ink);
}

.hot-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.hot-hero-kicker,
.hot-rank-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}

.hot-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hot-hero p {
  margin: 0;
  max-width: 680px;
  font-size: var(--text-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--soft);
  text-wrap: pretty;
}

.hot-rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hot-rank-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.hot-rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.hot-rank-head h2 {
  margin: 4px 0 0;
  font-size: var(--text-size-xl);
  line-height: var(--line-height-tight);
}

.hot-rank-count {
  flex: none;
  font-size: var(--text-size-xs);
  color: var(--muted);
}

.hot-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--dur-base) ease;
}

.hot-rank-row:last-child {
  border-bottom: 0;
}

.hot-rank-row:hover {
  background: var(--surface-soft);
}

.hot-rank-number {
  flex: none;
  width: 28px;
  font-family: var(--font-mono);
  font-size: var(--text-size-sm);
  font-weight: 700;
  color: var(--muted);
}

.hot-rank-number-1 { color: var(--danger); }
.hot-rank-number-2 { color: var(--rank-second); }
.hot-rank-number-3 { color: var(--gold); }

.hot-rank-content {
  flex: 1 1 auto;
  min-width: 0;
}

.hot-rank-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.hot-rank-link {
  color: var(--ink);
  font-weight: 700;
  line-height: var(--line-height-normal);
  transition: color var(--dur-fast) ease;
}

.hot-rank-link:hover {
  color: var(--accent-ink);
}

.hot-rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: var(--text-size-xs);
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.hot-rank-sources {
  position: relative;
  flex: none;
  min-width: 76px;
  text-align: right;
}

.hot-rank-sources > summary,
.hot-rank-heat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.hot-rank-sources > summary {
  list-style: none;
  cursor: pointer;
}

.hot-rank-sources > summary::-webkit-details-marker {
  display: none;
}

.hot-rank-sources[open] > .dup-tooltip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hot-rank-sources:hover > .dup-tooltip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hot-rank-sources::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 8px;
  content: "";
}

.hot-rank-sources-count {
  font-family: var(--font-mono);
  font-size: var(--text-size-xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.hot-rank-sources-label {
  font-size: var(--text-size-xs);
  color: var(--muted);
  white-space: nowrap;
}

.dup-tooltip.hot-topics-tooltip {
  left: auto;
  right: 0;
  top: calc(100% + 6px);
  bottom: auto;
  z-index: 60;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  max-height: min(60vh, 420px);
  overflow-y: auto;
  white-space: normal;
}

.dup-tooltip.hot-topics-tooltip .dup-tooltip-item {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hot-rank-empty {
  padding: 28px 22px;
  color: var(--muted);
  font-size: var(--text-size-sm);
}

.hot-method-note {
  margin: 18px 4px 0;
  font-size: var(--text-size-xs);
  line-height: var(--line-height-relaxed);
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  gap: 0;
}

/* 微信页不属于 AIHOT feed 复刻，保留本轮开始前的移动 timeline 几何。 */
.wechat-timeline {
  --tl-time-w: 44px;
  --tl-rail-w: 16px;
  --tl-dot-top: 20px;
}

.timeline-day {
  min-width: 0;
}

.timeline-day-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 10px;
  background: var(--bg);
}

.timeline-day-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.timeline-day-chevron {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.timeline-day-meta {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.date-collapse {
  border-radius: 6px;
}

.date-collapse:hover {
  color: var(--accent-ink);
}

.date-group-collapsed .timeline-day-chevron {
  transform: rotate(-90deg);
}

.timeline-day-items {
  display: grid;
  gap: 0;
}

.timeline-entry {
  --tl-accent: var(--accent);
  display: grid;
  grid-template-columns: var(--tl-time-w) var(--tl-rail-w) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.timeline-item-starred {
  --tl-accent: var(--gold);
}

.timeline-entry.entry-hidden {
  display: none;
}

.timeline-time {
  padding-top: calc(var(--tl-dot-top) - 4px);
  padding-right: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--soft);
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-rail {
  position: relative;
  min-height: 100%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: var(--tl-dot-top);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--tl-accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-card {
  margin: 8px 0;
  padding: 14px 16px;
  min-width: 0;
  border-radius: var(--radius);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.timeline-card:hover {
  border-color: var(--border-card-subtle-solid);
  background: var(--panel-strong);
  transform: translateY(-1px);
}

@media (min-width: 961px) {
  .timeline {
    --tl-time-w: 64px;
    --tl-rail-w: 22px;
    --tl-dot-top: 20px;
    gap: 22px;
  }

  .timeline-day-head {
    display: grid;
    grid-template-columns: var(--tl-time-w) var(--tl-rail-w) minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .timeline-day-items {
    position: relative;
  }

  .timeline-day-items::before {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: calc(var(--tl-time-w) + (var(--tl-rail-w) / 2));
    width: 1px;
    background: var(--border-strong);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  .date-group-collapsed .timeline-day-items::before {
    content: none;
  }

  .timeline-day-toggle {
    display: grid;
    grid-column: 1 / 3;
    grid-template-columns: var(--tl-time-w) var(--tl-rail-w);
    gap: 0;
  }

  .timeline-day-toggle time {
    grid-column: 1;
    text-align: right;
    white-space: nowrap;
  }

  .timeline-day-chevron {
    grid-column: 2;
    justify-self: center;
  }

  .timeline-day-meta {
    grid-column: 3;
  }

  .timeline-item {
    padding-bottom: 12px;
  }

  .timeline-item:last-child {
    padding-bottom: 0;
  }

  .timeline-card {
    margin: 0;
    padding: 15px 18px 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow-card);
    cursor: pointer;
  }

  .timeline-card:hover {
    background: var(--panel);
    box-shadow: var(--shadow-card-hover);
  }

  [data-theme="dark"] .timeline-card:hover {
    background: var(--panel-strong);
  }
}

@media (max-width: 960px) {
  .timeline-day-meta {
    display: none;
  }
}

.item-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.card-topline-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--soft);
  font-size: var(--text-size-sm);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.source-link:hover .source-name {
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

.source-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.source-avatar {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--panel-soft);
  border: 1px solid var(--border);
  z-index: 1;
}

.source-initial {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--panel-soft);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--soft);
}

.source-name {
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-author {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-strong);
}

.item-title:hover {
  color: var(--accent-ink);
}

.summary {
  margin: 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.clamped-card .summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.x-card .item-title {
  font-size: 14px;
}

.x-card .summary {
  color: var(--ink);
  font-size: 14px;
}

.clamped-card.x-card .item-title {
  display: none;
}

.clamped-card.x-card .summary {
  -webkit-line-clamp: 4;
}

.compact-card {
  gap: 5px;
}

.compact-card .summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* score / heat */

.timeline-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.timeline-score::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.timeline-score.score-high {
  color: var(--success-ink);
}

.timeline-score.score-mid {
  color: var(--accent-ink);
}

.timeline-score.score-muted {
  color: var(--muted);
}

.timeline-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border: 0;
  border-radius: 3px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  box-shadow: none;
  color: var(--gold-ink);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: none;
  -webkit-user-select: none;
  user-select: none;
  font-variant-east-asian: proportional-width;
}

.timeline-selected-badge::before {
  content: "\2726";
  display: inline-block;
  color: currentColor;
  font-size: 9.5px;
  font-weight: 400;
  transform: translateY(-0.5px);
  filter: none;
}

/* bookmark */

.bookmark-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.bookmark-btn:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.bookmark-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.bookmark-btn[aria-pressed="true"] {
  color: var(--accent-ink);
}

.bookmark-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

/* tags & related */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags:empty {
  display: none;
}

.tag {
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.tag::before {
  margin-right: 1px;
  content: "#";
  opacity: 0.55;
}

.tag-hot {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  font-weight: 600;
}

.timeline-dup-count {
  position: relative;
  font-size: 12px;
  color: var(--soft);
  cursor: default;
}

.timeline-dup-hover:focus-within .dup-tooltip,
.timeline-dup-count:hover .dup-tooltip {
  display: block;
}

.dup-tooltip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  min-width: 240px;
  max-width: 340px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
}

.dup-tooltip-item {
  display: block;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dup-tooltip-item:hover {
  color: var(--accent-ink);
}

.timeline-divider {
  border: 0;
  border-top: 1px dashed var(--border-strong);
  margin: 10px 0 0;
}

.reason {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--soft);
}

.reason strong,
.reason-label {
  color: var(--accent-ink);
  font-weight: 600;
}

.article-media {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.article-media-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.article-media-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-soft);
}

.article-media-count-1 .article-media-img {
  height: auto;
  aspect-ratio: auto;
}

/* ---------- states ---------- */

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--soft);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.empty-actions {
  margin-top: 14px;
}

.timeline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 0;
  color: var(--muted);
}

.timeline-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: loading-bounce 1s ease-in-out infinite;
}

.timeline-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.timeline-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loading-bounce {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.scroll-sentinel {
  height: 1px;
}

.scroll-status {
  padding: 18px 0 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.scroll-status a {
  color: var(--accent-ink);
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--soft);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.back-to-top.visible {
  display: inline-flex;
}

.back-to-top:hover {
  color: var(--accent-ink);
  border-color: var(--accent-line);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

.pagination[hidden] {
  display: none;
}

.pagination a,
.pagination span {
  min-width: 30px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--soft);
  font-size: 13px;
}

.pagination a:hover {
  color: var(--accent-ink);
  border-color: var(--accent-line);
}

.pagination-link-active {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  font-weight: 700;
}

.pagination-gap {
  border: 0;
  background: transparent;
}

.last-updated {
  color: var(--muted);
  font-size: 12px;
}

.inline-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.origin {
  color: var(--muted);
  font-size: 12px;
}

.role-tag {
  font-size: 11px;
  color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ---------- bookmarks page ---------- */

.bookmarks-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bookmarks-toolbar .wide-action {
  padding: 6px 14px;
  font-size: 12.5px;
}

.bookmarks-file-input {
  display: none;
}

/* ---------- detail / about / markdown ---------- */

.detail {
  max-width: 760px;
}

.detail-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--soft);
}

.detail-back:hover {
  color: var(--accent-ink);
}

.detail-card {
  padding: 22px 24px;
}

.detail-card h1 {
  font-size: 20px;
  margin-bottom: 10px;
}

.about-content {
  max-width: 760px;
  padding: 24px 26px;
}

.about-section {
  margin-bottom: 22px;
}

.about-section h2 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink-strong);
}

.about-section p {
  margin: 0 0 8px;
  color: var(--soft);
  line-height: 1.7;
}

.markdown-body {
  line-height: 1.75;
  color: var(--ink);
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body h3 {
  margin: 18px 0 8px;
}

.markdown-body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.markdown-body ol,
.markdown-body li {
  margin: 4px 0;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  font-size: 13px;
}

.sources-table-wrap {
  overflow-x: auto;
}

.sources-table {
  border-collapse: collapse;
  width: 100%;
}

.sources-table th,
.sources-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}

.sources-table code {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- wechat ---------- */

.wechat-card .item-title {
  cursor: pointer;
}

.wechat-card .hot-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.wechat-card[data-detail-url] {
  cursor: pointer;
}

.wechat-card[data-detail-url]:focus-visible {
  outline: 2px solid var(--accent-line);
}

.wechat-card-origin {
  color: var(--muted);
  font-size: 12.5px;
}

.wechat-card-origin:hover {
  color: var(--accent-ink);
}

.wechat-detail-main {
  max-width: 760px;
}

.wechat-detail {
  padding: 24px 26px;
}

.wechat-detail-header h1 {
  font-size: 20px;
}

.wechat-detail-meta {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wechat-origin-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wechat-origin-link:hover {
  filter: brightness(1.1);
}

.wechat-not-found .summary {
  margin-top: 8px;
}

.summary-body {
  line-height: 1.75;
}

.summary-body blockquote {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--soft);
}

.summary-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .daily-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  [role="button"],
  [role="radio"],
  [role="switch"],
  [role="tab"],
  a,
  button,
  label,
  summary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(79, 163, 179, 0.22);
  }

  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  body {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .app-main {
    width: 100%;
    max-width: calc(640px + 2 * var(--mobile-gutter));
    padding: 0 var(--mobile-gutter) calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 28px);
  }

  .app-mobile-bar {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(45px + env(safe-area-inset-top, 0px));
    min-height: 45px;
    margin: 0 calc(var(--mobile-gutter) * -1) 12px;
    padding: env(safe-area-inset-top, 0px) var(--mobile-gutter) 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    transition: var(--theme-transition);
  }

  .app-mobile-brand,
  .app-mobile-brand-text {
    color: var(--ink);
  }

  .app-mobile-brand-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .app-mobile-date {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
  }

  .m-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: var(--mobile-tabbar-height);
    padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 4px) max(6px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--border);
    background: var(--panel);
    transition: var(--theme-transition);
  }

  .m-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--touch-target);
    padding: 4px 0;
    color: var(--muted);
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .m-tab-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .m-tab-icon-more {
    position: relative;
  }

  .m-tab-icon-more::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-shadow: 10px 0 0 -1.5px var(--panel), 10px 0 0 0 currentColor, 0 10px 0 -1.5px var(--panel), 0 10px 0 0 currentColor, 10px 10px 0 -1.5px var(--panel), 10px 10px 0 0 currentColor;
  }

  .m-tab-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
  }

  .m-tab-active {
    color: var(--accent);
  }

  .m-tab-active .m-tab-label {
    font-weight: 700;
  }

  .m-tab:focus-visible,
  .mobile-search-link:focus-visible,
  .more-row:focus-visible {
    border-radius: var(--mobile-button-radius);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .back-to-top {
    right: 16px;
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 16px);
    width: var(--touch-target);
    height: var(--touch-target);
  }

  .page-header {
    gap: 10px;
    margin-bottom: 12px;
    padding: 4px 0 0;
  }

  .m-pagehead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px 0 10px;
  }

  .m-pagehead-title {
    margin: 0;
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    line-height: 33px;
  }

  .page-header .m-pagehead-title {
    font-size: 22px;
    line-height: 33px;
  }

  .m-pagehead .page-subtitle,
  .more-page-head p {
    display: none;
  }

  .non-feed-page-header {
    gap: 14px;
    padding-top: 0;
  }

  .more-page-head {
    margin-bottom: 14px;
  }

  .mobile-context-head {
    display: flex;
    margin-bottom: 14px;
  }

  .about-page-header {
    gap: 0;
    padding: 0;
  }

  .about-hero {
    width: auto;
    margin: 52px 18px 26px;
  }

  .about-eyebrow {
    margin-bottom: 16px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 400;
    line-height: 15.75px;
  }

  .about-hero .about-title {
    margin: 0 0 10px;
    color: var(--ink-strong);
    font-size: 25px;
    font-weight: 700;
    line-height: 33.75px;
    letter-spacing: -0.015em;
  }

  .about-tag {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
  }

  .page-header h1 {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.15;
  }

  .mobile-heading,
  .mobile-date-label {
    display: inline;
  }

  .mobile-date-label {
    display: inline-block;
    font-size: 0;
  }

  .m-daybar-main {
    display: inline;
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.5;
  }

  .m-daybar-sub {
    display: inline;
    margin-left: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
  }

  .desktop-heading,
  .desktop-date-label {
    display: none;
  }

  .page-subtitle {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.45;
  }

  .home-page .hot-topics { order: 1; }
  .home-page .page-header { order: 2; }

  .home-page .page-subtitle {
    display: none;
  }

  .home-page .feed-toolbar-row {
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 8px;
  }

  .home-page .seg-list {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
    padding-bottom: 12px;
    overflow-x: auto;
    border-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .seg-list::-webkit-scrollbar {
    display: none;
  }

  .home-page .seg-item {
    flex: 0 0 auto;
    min-height: var(--touch-target-sm);
    padding: 5px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--panel);
    color: var(--soft);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
  }

  .home-page .seg-item-active {
    border-color: transparent;
    background: var(--ink);
    color: var(--panel);
    font-weight: 700;
  }

  .home-page .feed-filter {
    display: none;
  }

  .mobile-search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--touch-target);
    width: var(--touch-target);
    height: var(--touch-target);
    color: var(--soft);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
  }

  .mobile-search-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 7px;
    border-top: 1.8px solid currentColor;
    transform: rotate(45deg);
    transform-origin: right center;
  }

  .all-page .feed-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .all-page .feed-segments,
  .all-page .seg-list {
    width: 100%;
  }

  .all-page .seg-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .all-page .seg-list::-webkit-scrollbar {
    display: none;
  }

  .all-page .seg-item {
    flex: 0 0 auto;
    min-height: var(--touch-target-sm);
  }

  .all-page .feed-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }

  .all-page .feed-filter input[type="search"] {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .all-page .source-filter select,
  .all-page .filter-submit {
    min-height: var(--touch-target);
  }

  .timeline {
    gap: 0;
  }

  .timeline-day-head {
    top: env(safe-area-inset-top, 0px);
    margin: 0 calc(var(--mobile-gutter) * -1);
    padding: 8px var(--mobile-gutter);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: var(--panel-soft);
  }

  .timeline-day-toggle {
    min-height: var(--touch-target-sm);
    font-size: 13px;
  }

  .timeline-day-meta {
    display: none;
  }

  .timeline-day-items {
    gap: 0;
  }

  .timeline-entry {
    grid-template-columns: 40px minmax(0, 1fr);
    border-bottom: 1px solid var(--border);
  }

  :where(.home-page, .all-page) .timeline-entry {
    column-gap: 12px;
  }

  .timeline-entry:last-child {
    border-bottom: 0;
  }

  .timeline-time {
    display: block;
    grid-column: 1;
    padding-top: calc(var(--tl-dot-top) - 6px);
    font-weight: 600;
    text-align: right;
  }

  /* AIHOT feed 在该档显示独立的 m-row-time；隐藏 timeline 树里的 media 值不是可见权威。 */
  :where(.home-page, .all-page) .timeline-time {
    width: 40px;
    margin-top: 14px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--mobile-ink-3);
    text-align: left;
  }

  .timeline-rail {
    display: none;
  }

  .timeline-card {
    grid-column: 2;
    gap: 6px;
    margin: 0;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .timeline-card:hover {
    border-color: var(--border);
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .card-topline {
    align-items: flex-start;
    margin-bottom: 0;
  }

  .source-line {
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
  }

  .source-link,
  .source-name,
  .source-author {
    min-width: 0;
  }

  .bookmark-btn {
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    margin: -12px -8px -8px 0;
  }

  :where(.home-page, .all-page) :where(.timeline-selected-badge, .bookmark-btn, .tags) {
    display: none;
  }

  .item-title,
  .x-card .item-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .summary,
  .x-card .summary,
  .clamped-card .summary,
  .clamped-card.x-card .summary {
    display: -webkit-box;
    overflow: hidden;
    color: var(--soft);
    font-size: 13.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .timeline-divider {
    display: none;
  }

  .reason {
    display: block;
    overflow: visible;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--note-bg);
    color: var(--note-ink);
    font-size: 12.5px;
    line-height: 21px;
    overflow-wrap: anywhere;
    -webkit-line-clamp: none;
  }

  .reason-label {
    color: var(--note-ink);
    font-weight: 700;
  }

  .hot-topics {
    margin-bottom: 12px;
  }

  .hot-topics:empty:not([hidden]) {
    min-height: 173px;
  }

  .hot-topics-title-desktop {
    display: none;
  }

  .hot-topics-title-mobile {
    display: inline;
  }

  .hot-topics-head {
    padding: 13px 16px 4px;
  }

  .hot-topics-row {
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
  }

  .hot-topics-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--mobile-rank-rest-bg);
  }

  .hot-topics-rank-1 {
    background: var(--danger);
    color: #ffffff;
  }

  .hot-topics-rank-2 {
    background: var(--mobile-rank-second);
    color: #ffffff;
  }

  .hot-topics-rank-3 {
    background: var(--gold-ink);
    color: #ffffff;
  }

  .hot-topics-link {
    display: -webkit-box;
    white-space: normal;
    font-size: 14px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hot-topics-meta {
    padding-top: 3px;
    font-size: 11.5px;
  }

  .more-page {
    max-width: 640px;
  }

  .app-main.daily-main {
    padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 28px);
  }

  .more-list {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .more-row {
    padding-right: 4px;
    padding-left: 4px;
  }

  .hot-topics-title-desktop {
    display: none;
  }

  .hot-topics-title-mobile {
    display: inline;
  }

  .hot-page-main {
    max-width: none;
    padding: 12px 18px calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 28px);
  }

  .hot-page {
    width: min(calc(100% - 36px), 760px);
    padding: 28px 0 88px;
  }

  .hot-rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .m-tabbar {
    grid-template-columns: repeat(4, minmax(0, 120px));
    justify-content: center;
  }

  .wechat-timeline {
    --tl-time-w: 64px;
    --tl-rail-w: 22px;
    --tl-dot-top: 16px;
  }

  .wechat-timeline .timeline-time {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .wechat-timeline .timeline-time {
    padding-top: calc(var(--tl-dot-top) - 6px);
    padding-right: 6px;
    font-size: 12px;
    line-height: 1;
    color: var(--muted);
  }

  .hot-page {
    width: calc(100% - 28px);
  }

  .hot-rank-head,
  .hot-rank-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hot-rank-row {
    display: flex;
    align-items: center;
  }

}

@media (hover: none), (max-width: 960px) {
  .timeline-card:hover,
  .more-row:hover {
    box-shadow: none;
    transform: none;
  }

  .bookmark-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    transition: none;
  }

  .card,
  .sidebar,
  .app-mobile-bar,
  .m-tabbar {
    transition: none;
  }

  .timeline-loading-dot {
    animation: none;
  }

  .timeline-day-chevron {
    transition: none;
  }

  .theme-toggle-thumb {
    transition: none;
  }

  .m-tab,
  .more-row {
    transition: none;
  }
}

/* ---------- daily：全站 token 接线 + AI Radar 日报 ---------- */

.side-icon-daily::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.side-icon-daily::after {
  left: 4px;
  right: 4px;
  top: 6px;
  height: 1.5px;
  background: currentColor;
}

.side-icon::before,
.side-icon::after,
.m-tab-icon-more::before {
  content: none;
}

.daily-shell {
  width: 100%;
  min-width: 0;
  --d-bg: var(--bg);
  --d-text: var(--ink);
  --d-text-soft: var(--soft);
  --d-text-dim: var(--soft);
  --d-text-faint: var(--muted);
  --d-accent: var(--accent-ink);
  --d-accent-soft: var(--accent-line);
  --d-accent-dim: color-mix(in srgb, var(--accent) 7%, transparent);
  --d-rule: var(--border-soft);
  --d-rule-strong: var(--border);
  --sans: var(--font-sans);
  min-height: 100vh;
  margin: -24px -28px -72px;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  line-height: 1.7;
  transition: background 220ms ease, color 180ms ease;
}

[data-theme="light"] .daily-shell {
  --d-bg: var(--panel);
  background: var(--d-bg);
}

[data-theme="light"] .daily-page-main:has(> .daily-shell) {
  background: var(--panel);
  transition: var(--theme-transition);
}

html:has(.daily-shell) {
  scroll-behavior: smooth;
}

.daily-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.daily-side {
  position: sticky;
  top: 0;
  flex: 0 0 clamp(240px, 20vw, 320px);
  width: clamp(240px, 20vw, 320px);
  height: 100vh;
  align-self: stretch;
  padding: 0 16px 32px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--d-rule);
}

.daily-side::-webkit-scrollbar {
  width: 6px;
}

.daily-side::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--d-rule-strong);
}

.daily-main {
  display: flex;
  flex: 1 1;
  justify-content: center;
  min-width: 0;
  padding: 64px 32px 160px;
}

.daily-side-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  font-family: var(--sans);
  font-size: 13px;
}

.daily-side-empty {
  padding: 12px 0;
  color: var(--d-text-faint);
  font-size: 12px;
}

.daily-side-months {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-side-month {
  border-bottom: 1px solid var(--d-rule);
}

.daily-side-month:last-of-type {
  border-bottom: 0;
}

.daily-side-month > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.daily-side-month > summary::-webkit-details-marker {
  display: none;
}

.daily-side-month > summary::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--d-text-faint);
  border-bottom: 1.5px solid var(--d-text-faint);
  content: "";
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 180ms ease;
}

.daily-side-month[open] > summary::before {
  transform: translateY(-50%) rotate(45deg);
}

.daily-side-month-name {
  flex: 1 1;
  color: var(--d-text-soft);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.daily-side-month-count {
  color: var(--d-text-faint);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.daily-side-day-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}

.daily-side-day {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 10px 8px 0;
  border-radius: 4px;
  color: var(--d-text-dim);
  text-decoration: none;
  transition: background 120ms, color 120ms;
}

.daily-side-day:hover {
  background: var(--d-rule);
  color: var(--d-text);
}

.daily-side-day.is-active {
  background: var(--d-accent-dim);
  color: var(--d-accent);
}

.daily-side-day-num {
  min-width: 52px;
  padding-left: 14px;
  color: var(--d-text-faint);
  font-family: var(--sans);
  font-feature-settings: "tnum";
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.daily-side-day.is-active .daily-side-day-num {
  color: var(--d-accent);
  font-weight: 600;
}

.daily-side-day-headline {
  display: -webkit-box;
  flex: 1 1;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.daily-side-archive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--d-rule);
  color: var(--d-text-faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms;
}

.daily-side-archive:hover {
  color: var(--d-accent);
}

.daily-paper {
  width: 100%;
  max-width: 760px;
}

.daily-masthead {
  margin-bottom: 0;
  text-align: center;
}

.daily-masthead-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--d-text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daily-masthead-eyebrow .sep {
  color: var(--d-text-faint);
  opacity: 0.6;
}

.daily-masthead-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin: 0 0 10px;
  color: var(--d-text);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.daily-masthead-title .zh {
  margin-left: 12px;
}

.daily-masthead-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}

.daily-masthead-date {
  margin: 0;
  color: var(--d-text-faint);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.daily-masthead::after {
  display: block;
  box-sizing: content-box;
  height: 0;
  margin-top: 14px;
  padding-top: 2px;
  border-top: 2px solid var(--d-text);
  border-bottom: 1px solid var(--d-text);
  content: "";
}

.daily-fallback-status {
  margin: 10px 0 0;
  color: var(--d-text-faint);
  font-size: 12px;
  text-align: center;
}

.reader-toc {
  padding: 16px 20px;
  border: 1px solid var(--d-rule-strong);
  border-radius: 12px;
}

.daily-report > .reader-toc {
  margin: 18px 0 28px;
}

.reader-toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.reader-toc-heading {
  color: var(--d-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reader-toc-meta {
  color: var(--d-text-dim);
  font-feature-settings: "tnum";
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.reader-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reader-toc-list li + li {
  border-top: 1px solid var(--d-rule);
}

.reader-toc-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  text-decoration: none;
}

.reader-toc-no {
  color: var(--d-accent);
  font-feature-settings: "tnum";
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.reader-toc-body {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reader-toc-label {
  color: var(--d-text);
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms;
}

.reader-toc-row:hover .reader-toc-label {
  color: var(--d-accent);
}

.reader-toc-sub {
  overflow: hidden;
  color: var(--d-text-dim);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-toc-count {
  color: var(--d-text-faint);
  font-feature-settings: "tnum";
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.reader-toc-row:focus-visible {
  border-radius: var(--mobile-button-radius);
  outline: 2px solid var(--d-accent);
  outline-offset: 2px;
}

.daily-sections {
  display: block;
}

.daily-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  padding: 0;
  border-top: 1px solid var(--d-rule-strong);
  border-bottom: 1px solid var(--d-rule-strong);
  font-family: var(--sans);
}

.daily-metric {
  padding: 14px 8px;
  text-align: center;
}

.daily-metric + .daily-metric {
  border-left: 1px solid var(--d-rule);
}

.daily-metric-value {
  color: var(--d-text);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.1;
}

.daily-metric-label {
  margin-top: 2px;
  color: var(--d-text-faint);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.daily-section {
  margin: 0;
  padding: 0 0 24px;
  scroll-margin-top: 24px;
}

.daily-section:last-of-type {
  padding-bottom: 0;
}

.daily-section + .daily-section {
  padding-top: 24px;
  border-top: 0;
}

.daily-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--d-rule-strong);
}

.daily-section-no,
.daily-section-number {
  flex-shrink: 0;
  color: var(--d-accent);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0;
}

.daily-section-title {
  margin: 0;
  color: var(--d-text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.daily-section-subtitle {
  color: var(--d-text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.daily-section-count {
  margin-left: auto;
  color: var(--d-text-dim);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.daily-section-count strong {
  margin-right: 2px;
  color: var(--d-text);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
}

.daily-section-articles,
.daily-article-list {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.daily-article {
  padding: 14px 0;
}

.daily-article:first-child {
  padding-top: 16px;
}

.daily-article:last-child {
  padding-bottom: 0;
}

.daily-article + .daily-article {
  border-top: 1px solid var(--d-rule);
}

.daily-article-title {
  margin: 0 0 5px;
  color: var(--d-text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.daily-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}

.daily-article-title a:hover {
  color: var(--d-accent);
}

.daily-article-source,
.daily-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--d-text-faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
}

.daily-article-source .role-tag {
  display: inline-block;
  padding: 1px 6px;
  border: 0;
  border-radius: 3px;
  background: var(--surface-hover);
  color: var(--d-text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.daily-source-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--d-rule);
  border-radius: 50%;
  object-fit: cover;
}

.daily-article-summary {
  margin: 0;
  color: var(--d-text-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0;
  text-autospace: normal;
}

.daily-article:not(.daily-article--lead) .daily-article-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.daily-empty {
  padding: 120px 0;
  color: var(--d-text-dim);
  font-size: 16px;
  text-align: center;
}

.daily-empty h2 {
  margin: 0 0 16px;
  color: var(--d-text);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.daily-empty p {
  margin: 0;
}

.daily-loading {
  padding: 120px 0;
  color: var(--d-text-dim);
  font-size: 14px;
  text-align: center;
}

.daily-prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
}

.daily-prev-next a {
  padding: 4px 0;
  color: var(--d-text-dim);
  text-decoration: none;
  transition: color 150ms;
}

.daily-prev-next a:hover {
  color: var(--d-accent);
}

/* ---------- changelog：仓库 CHANGELOG.md 的忠实阅读面 ---------- */

.cl-page {
  display: flex;
  justify-content: center;
}

.cl-shell {
  width: 100%;
  max-width: 880px;
  padding: 56px 24px 80px;
}

.cl-eyebrow {
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.85;
  text-transform: uppercase;
}

.cl-content-stream > .cl-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.cl-tag {
  margin: 0 0 64px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

.cl-day-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 56px 0 0;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.cl-day-date {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.cl-day-weekday {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.cl-tag + .cl-day-head {
  margin-top: 0;
}

.cl-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-entry {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--soft);
  font-size: 14px;
  line-height: 1.75;
}

.cl-day-head + .cl-entries > .cl-entry:first-child {
  border-top: 0;
}

.cl-p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.75;
}

.md-inline-code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: 0.92em;
  word-break: break-word;
}

.cl-li strong,
.cl-p strong {
  color: var(--ink);
  font-weight: 600;
}

.cl-content-stream a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.cl-content-stream pre {
  overflow-x: auto;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
}

.cl-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 960px) {
  .cl-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .cl-shell {
    justify-self: center;
  }

  .daily-shell {
    min-height: 0;
    margin: 0;
    background: transparent;
  }

  .daily-layout {
    flex-direction: column;
  }

  .daily-side {
    display: none;
  }

  .daily-main {
    padding: 0;
  }

  .daily-paper {
    padding: 24px 18px 60px;
  }

  .daily-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
  }

  .daily-metric + .daily-metric {
    border-left: 0;
  }

  .daily-metric:nth-child(2n) {
    border-left: 1px solid var(--d-rule);
  }

  .daily-metric:nth-child(n + 3) {
    border-top: 1px solid var(--d-rule);
  }

  .daily-metric-value {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .daily-paper {
    max-width: none;
    padding: 24px 0 60px;
  }

  .daily-masthead-eyebrow {
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1.5;
  }

  .daily-masthead-title {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.05;
  }

  .daily-masthead-date {
    font-size: 11.5px;
  }

  .daily-report > .reader-toc {
    margin-top: 18px;
    padding: 14px 16px;
  }

  .reader-toc-label {
    font-size: 13.5px;
  }

  .reader-toc-sub {
    font-size: 12.5px;
  }

  .daily-section {
    padding-bottom: 22px;
  }

  .daily-section + .daily-section {
    padding-top: 22px;
  }

  .daily-section-header {
    gap: 8px;
  }

  .daily-section-subtitle {
    display: none;
  }

  .daily-article {
    padding: 14px 0;
  }

  .daily-article-title {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.5;
  }

  .daily-article-source,
  .daily-article-meta {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
  }

  .daily-article-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .daily-prev-next {
    gap: 10px;
    margin-top: 48px;
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .daily-prev-next a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
  }

  .daily-empty {
    padding: 80px 0;
    font-size: 14px;
  }

  .daily-empty h2 {
    font-size: 22px;
  }

  .cl-shell {
    padding: 40px 16px 60px;
  }

  .cl-content-stream > .cl-title {
    font-size: 26px;
  }

  .cl-day-head {
    margin-top: 44px;
  }

  .cl-day-date {
    font-size: 19px;
  }

  .cl-entry {
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.daily-shell) {
    scroll-behavior: auto;
  }

  .daily-side-month > summary::before {
    transition: none;
  }
}
