:root {
  --blue: #2451b8;
  --blue-dark: #143780;
  --acid: #edff4f;
  --paper: #f5f5f2;
  --card: #ffffff;
  --muted: #e9e9e5;
  --ink: #111111;
  --soft: #676767;
  --line: #151515;
  --shadow: 0 18px 48px rgba(22, 38, 67, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
.site-head, .detail-head { max-width: 1120px; margin: 0 auto; padding: 24px 18px 0; }
.top-nav { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.top-nav a, .filter-chip, .hero-actions a {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 8px 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.top-nav .brand { border-color: transparent; background: var(--acid); margin-right: auto; }
.question-link, .hero-actions a:first-child { background: var(--acid) !important; }
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
  align-items: stretch;
  margin-top: 22px;
  padding: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: auto -70px -95px auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.55);
  transform: rotate(17deg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}
.hero-band h1, .detail-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
  letter-spacing: 0;
}
.hero-band p, .detail-hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 17px;
  font-weight: 650;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel {
  display: grid;
  align-content: center;
  padding: 22px;
  background: rgba(9, 26, 72, .28);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  z-index: 1;
}
.hero-panel strong { color: var(--acid); font-size: 54px; line-height: 1; }
.hero-panel span { margin: 2px 0 18px; font-weight: 900; }
.timeline-strip { display: flex; gap: 0; overflow-x: auto; padding: 22px 0; scrollbar-width: none; }
.timeline-strip a {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}
main { max-width: 1120px; margin: 0 auto; padding: 20px 18px 70px; }
.content-map, .tag-section, .feed-section { margin-top: 50px; }
h2 { margin: 0 0 22px; color: var(--ink); font-size: clamp(30px, 4vw, 46px); line-height: .98; letter-spacing: 0; text-align: center; }
h2 span { color: var(--blue); }
.map-grid, .note-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.map-card, .note-card, .meta-box, .toc-box, .mini-card, .reader-block { border-radius: 8px; }
.map-card { min-height: 210px; padding: 20px; background: #fff; border: 1px solid transparent; }
.map-card.is-primary { background: var(--acid); }
.map-card.is-deep { background: var(--blue); color: #fff; }
.map-card span, .note-category, .note-time { display: inline-flex; font-size: 12px; font-weight: 950; }
.map-card h3 { margin: 18px 0 10px; font-size: 24px; line-height: 1.08; }
.map-card p { margin: 0; color: inherit; font-size: 14px; font-weight: 650; }
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag-cloud span { display: inline-flex; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 900; }
.section-title { display: grid; grid-template-columns: 1fr; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.filter-chip { cursor: pointer; }
.filter-chip.is-active { color: #fff; background: var(--blue); }
.note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.note-card.is-yellow { background: var(--acid); }
.note-card.is-blue { color: #fff; background: var(--blue); }
.note-card.is-blue p, .note-card.is-blue li { color: rgba(255,255,255,.88); }
.note-card h3 { margin: 16px 0 10px; font-size: 23px; line-height: 1.05; }
.note-card p { margin: 0 0 14px; color: #333; font-size: 14px; font-weight: 650; }
.note-card ul { margin: 0; padding-left: 18px; color: #333; font-size: 12px; font-weight: 650; }
.compact-points li { margin-bottom: 5px; }
.note-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 900; }
.open-dot { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--acid); border: 1px solid rgba(0,0,0,.2); font-weight: 950; }
.detail-hero { margin-top: 22px; padding: 42px; color: #fff; background: var(--blue); border-radius: 8px; }
.detail-hero h1 { max-width: 980px; font-size: clamp(36px, 6vw, 76px); }
.detail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-side { position: sticky; top: 18px; display: grid; gap: 14px; }
.meta-box, .toc-box { padding: 18px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.meta-box.is-yellow { background: var(--acid); }
.meta-box h2, .toc-box h2, .related-flow h2 { margin: 0 0 12px; font-size: 18px; text-align: left; }
.meta-box dl { margin: 0; }
.meta-box dt { margin-top: 12px; color: var(--soft); font-size: 12px; font-weight: 950; }
.meta-box dd { margin: 2px 0 0; font-weight: 760; }
.toc-box { max-height: 430px; overflow: auto; }
.toc-box a { display: block; padding: 8px 0; border-top: 1px solid #eee; color: #333; font-size: 13px; font-weight: 760; }
.detail-content { min-width: 0; padding: 0; background: transparent; border-radius: 0; }
.reader-block { margin-bottom: 16px; padding: 28px; background: #fff; border: 1px solid rgba(0,0,0,.05); }
.reader-block h2, .reader-block h3 { margin: 0 0 14px; color: var(--blue); text-align: left; line-height: 1.12; }
.reader-block h2 { font-size: 30px; }
.reader-block h3 { font-size: 22px; }
.reader-block p, .reader-block li { color: #242424; font-size: 17px; line-height: 1.9; }
.reader-block p { margin: 0 0 1.1em; }
.reader-block blockquote { margin: 18px 0; padding: 14px 16px; background: #f1f3f8; border-left: 5px solid var(--blue); font-weight: 760; }
.reader-block a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.reader-block .source-title { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.related-flow { grid-column: 2; }
.related-flow > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-card { display: block; padding: 16px; background: #fff; border: 1px solid rgba(0,0,0,.06); font-weight: 850; }
.mini-card span { display: block; margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 950; }
.muted-copy { color: var(--soft); }
@media (max-width: 900px) {
  .top-nav { overflow-x: auto; padding-bottom: 2px; }
  .hero-band { grid-template-columns: 1fr; padding: 28px; }
  .hero-panel { grid-template-columns: auto 1fr auto 1fr; gap: 8px 12px; }
  .hero-panel span { margin-bottom: 0; }
  .map-grid, .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .related-flow { grid-column: 1; }
}
@media (max-width: 620px) {
  .site-head, .detail-head { padding-inline: 12px; }
  main { padding-inline: 12px; }
  .hero-band, .detail-hero { padding: 24px 18px; }
  .hero-band h1, .detail-hero h1 { font-size: 38px; }
  .map-grid, .note-grid, .related-flow > div { grid-template-columns: 1fr; }
  .note-card { min-height: 260px; }
  .reader-block { padding: 20px 16px; }
  .reader-block h2 { font-size: 25px; }
  .reader-block p, .reader-block li { font-size: 16px; }
}
