:root {
  color-scheme: light;
  --paper: #f7f7f8;
  --surface: #ffffff;
  --ink: #171719;
  --muted: #626268;
  --subtle: #77777e;
  --line: #d8d8dc;
  --line-strong: #aaaab1;
  --accent: #e4002b;
  --accent-soft: #ffeaee;
  --dark: #111113;
  --font-ui: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select { font: inherit; }
button,
select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 248, .97);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 15px; font-weight: 750; letter-spacing: .015em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #44444a;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: color .16s ease, background .16s ease;
}

.header-link:hover { color: #fff; background: var(--ink); }
.menu-toggle { display: none; }

.hero {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: 7%;
  padding-block: 72px 64px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .035em;
}

.eyebrow-dark { color: var(--accent); }
.hero h1 {
  max-width: 690px;
  margin: 22px 0 20px;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: 1.12;
}

.hero-intro {
  max-width: 520px;
  margin: 0;
  color: #4e4e54;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: #bd0024; }
.button-secondary { border-color: var(--ink); background: transparent; }
.button-secondary:hover { color: #fff; background: var(--ink); }
.button-inverse { border-color: #fff; color: #fff; background: transparent; }
.button-inverse:hover { color: var(--dark); background: #fff; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }

.hero-stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.hero-stats div { display: grid; align-content: start; gap: 3px; }
.hero-stats strong { font-size: clamp(24px, 3vw, 34px); font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.055em; line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.hero-visual {
  min-width: 0;
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.visual-head,
.visual-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visual-head { color: #414147; font-size: 13px; font-weight: 700; }
.visual-period { color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; }
.visual-title { display: grid; gap: 2px; margin-top: 21px; }
.visual-title strong { font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.visual-trim { color: var(--muted); font-size: 13px; }
.chart-wrap { height: 230px; margin-top: 17px; }
.chart-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid line { stroke: #d9d9dd; stroke-width: 1; }
.chart-area { fill: url("#chartFill"); }
.chart-line { fill: none; stroke: var(--accent); stroke-linecap: square; stroke-linejoin: miter; stroke-width: 3; }
.chart-point { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.chart-value { fill: var(--ink); font: 16px var(--font-ui); font-weight: 700; }
.chart-placeholder { display: grid; height: 100%; align-content: end; gap: 40px; padding: 14px 4px 18px; }
.chart-placeholder span { display: block; height: 1px; background: var(--line); }
.chart-placeholder span:nth-child(2) { width: 92%; }
.chart-placeholder span:nth-child(3) { width: 84%; }
.chart-placeholder span:nth-child(4) { width: 76%; }
.chart-axis-labels { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-axis-labels span { text-align: center; }
.visual-foot { margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); color: #414147; font-size: 13px; }
.visual-foot b { color: var(--accent); font-size: 14px; }
.visual-foot-note { color: var(--muted); font-size: 12px; text-align: right; }

.intro-strip {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) 1.3fr;
  gap: 30px;
  align-items: start;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.intro-strip strong { font-size: 15px; }
.intro-strip p { max-width: 730px; margin: 0; color: #4e4e54; font-size: 15px; }
.section { padding: 100px 0; }
.results-section { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading h2,
.compare-dialog h2 { margin: 14px 0 8px; font-size: clamp(38px, 4.5vw, 56px); font-weight: 740; letter-spacing: -.07em; line-height: 1.1; }
.section-lede { max-width: 640px; margin: 0; color: var(--muted); font-size: 15px; }

.source-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: border-color .16s ease, color .16s ease;
}

.source-button:hover { border-color: var(--accent); color: var(--accent); }
.source-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--accent); }
.source-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.7; }
.source-button span:last-child { display: grid; gap: 2px; }
.source-button strong { font-size: 14px; }
.source-button small { color: var(--muted); font-size: 12px; }

.filter-bar { display: grid; grid-template-columns: minmax(240px, .75fr) 1.25fr; gap: 12px; margin-top: 38px; }
.search-field {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.search-icon { position: relative; width: 17px; height: 17px; flex: 0 0 auto; border: 1.7px solid #55555c; border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.7px; background: #55555c; content: ""; transform: rotate(48deg); transform-origin: left center; }
.search-field input { width: 100%; min-width: 0; min-height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-field input::placeholder { color: #686870; opacity: 1; }
.search-field:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }

.record-filters { min-width: 0; border: 1px solid var(--line-strong); background: #fff; }
.record-filters summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.record-filters summary::-webkit-details-marker { display: none; }
.record-filters summary::after { width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.record-filters[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.filter-count { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 700; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 10px 10px; }
.filter-select { display: grid; min-width: 0; min-height: 62px; align-content: center; gap: 1px; padding: 7px 10px; border: 1px solid var(--line); background: #fff; }
.filter-select > span { color: var(--muted); font-size: 12px; }
.filter-select select,
.compact-select { width: 100%; min-width: 0; min-height: 32px; padding: 2px 18px 2px 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 650; }
.filter-select:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-select select:focus-visible,
.compact-select:focus-visible { outline: 0; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.active-filter-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid #f1a5b4;
  color: #8e001b;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-chip::after { width: 10px; height: 10px; flex: 0 0 auto; background: linear-gradient(45deg, transparent 45%, currentColor 46%, currentColor 55%, transparent 56%), linear-gradient(-45deg, transparent 45%, currentColor 46%, currentColor 55%, transparent 56%); content: ""; }
.results-toolbar,
.notes-toolbar { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 16px; }
.results-toolbar p,
.notes-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }
.results-toolbar p strong,
.notes-toolbar p strong { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.clear-filters { min-height: 44px; padding: 0 8px; border: 0; color: #45454b; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.clear-filters:hover { color: var(--accent); }

.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table thead { background: #f0f0f2; }
.data-table th { padding: 13px 12px; border-bottom: 1px solid var(--line-strong); color: #44444a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.data-table th small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: #303036; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr { background: #fff; transition: background .14s ease; }
.data-table tbody tr:hover { background: #f7f7f8; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { min-width: 190px; white-space: normal; }
.metric-value { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.car-cell { display: grid; gap: 3px; }
.car-cell strong { font-size: 14px; font-weight: 750; }
.car-cell span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.speed-pill { display: inline-flex; min-height: 30px; align-items: baseline; gap: 4px; padding: 3px 7px; border-left: 2px solid var(--accent); font-weight: 750; }
.speed-pill small { color: var(--muted); font-size: 12px; font-weight: 500; }
.reading-muted { color: #686870 !important; }
.range-cell { color: var(--ink) !important; font-size: 21px !important; font-weight: 780; letter-spacing: -.04em; }
.range-cell small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.ac-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 8px; border: 1px solid var(--line-strong); color: #3b3b41; font-size: 12px; }
.ac-badge.is-on { border-color: var(--accent); color: #a80020; background: var(--accent-soft); }
.row-actions { display: flex; align-items: center; gap: 6px; }
.row-detail,
.compare-toggle { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 700; }
.row-detail:hover,
.compare-toggle:hover { border-color: var(--line-strong); }
.compare-toggle { color: #8e001b; }
.compare-toggle::before { display: inline-block; width: 16px; height: 16px; margin-right: 5px; border: 1px solid #717178; content: ""; }
.compare-toggle[aria-pressed="true"]::before { border-color: var(--accent); background: linear-gradient(135deg, transparent 42%, #fff 43%, #fff 52%, transparent 53%) 1px 2px / 7px 7px no-repeat, linear-gradient(45deg, transparent 38%, #fff 39%, #fff 50%, transparent 51%) 5px 0 / 9px 11px no-repeat var(--accent); }
.loading-cell { height: 94px; color: var(--muted) !important; text-align: center; white-space: normal !important; }
.table-footnote { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 25px; }
.load-more-wrap .button { min-width: 180px; }
.empty-state { display: grid; min-height: 190px; align-content: center; justify-items: center; gap: 7px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0; font-size: 14px; }
.data-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.data-error p { margin: 0; color: #4b1822; font-size: 14px; }

.compare-section { position: sticky; z-index: 15; bottom: 0; border-top: 1px solid var(--ink); background: var(--paper); }
.compare-inner { display: flex; min-height: 76px; align-items: center; gap: 16px; }
.compare-copy { display: flex; flex: 0 0 auto; align-items: baseline; gap: 7px; color: var(--muted); font-size: 13px; }
.compare-count { color: var(--accent); font-size: 25px; font-variant-numeric: tabular-nums; }
.compare-chips { display: flex; min-width: 0; flex: 1; gap: 7px; overflow-x: auto; }
.compare-chip { display: inline-flex; min-height: 50px; max-width: 260px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 3px 5px 3px 9px; border: 1px solid var(--line-strong); background: #fff; font-size: 12px; }
.compare-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-chip button { position: relative; width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: transparent; }
.compare-chip button::before,
.compare-chip button::after { position: absolute; top: 14px; left: 8px; width: 14px; height: 1.5px; background: currentColor; content: ""; }
.compare-chip button::before { transform: rotate(45deg); }
.compare-chip button::after { transform: rotate(-45deg); }
.compare-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.compare-actions .button { min-height: 44px; }
.compare-clear { min-height: 44px; padding: 0 8px; border: 0; color: #45454b; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.notes-section { background: var(--paper); }
.notes-heading { align-items: end; }
.notes-controls { display: flex; width: min(520px, 52%); align-items: center; gap: 10px; }
.notes-search { flex: 1; background: transparent; }
.compact-select { width: auto; min-width: 126px; min-height: 50px; padding-inline: 12px 24px; border: 1px solid var(--line-strong); background: #fff; }
.notes-toolbar { min-height: 62px; }
.note-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.note-card { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; text-align: left; cursor: pointer; transition: border-color .14s ease; }
.note-card:hover { border-color: var(--accent); }
.note-cover-wrap { position: relative; aspect-ratio: 1.26 / 1; overflow: hidden; background: #ededf0; }
.note-cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.note-card:hover .note-cover-wrap img { transform: scale(1.025); }
.cover-fallback { display: grid; width: 100%; height: 100%; align-content: end; padding: 16px; color: var(--ink); background: #ededf0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.note-type { position: absolute; top: 10px; left: 10px; min-height: 28px; padding: 4px 8px; border: 1px solid #fff; color: #fff; background: rgba(17, 17, 19, .85); font-size: 12px; font-weight: 700; }
.note-card-body { display: grid; gap: 10px; padding: 15px; }
.note-card-title { display: -webkit-box; min-height: 48px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; color: var(--muted); font-size: 12px; }
.note-card-meta span:last-child { color: #414147; }
.note-card-tags { display: flex; max-height: 29px; gap: 6px; overflow: hidden; }
.note-card-tags span { padding: 4px 7px; border: 1px solid var(--line); color: #414147; font-size: 12px; white-space: nowrap; }
.notes-empty { margin-top: 12px; }

.method-section { padding: 86px 0; color: #fff; background: var(--dark); }
.method-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: 10%; }
.method-title { align-self: start; }
.method-title .eyebrow { color: #ff879b; }
.method-title h2 { margin: 19px 0 14px; font-size: clamp(36px, 4.1vw, 52px); font-weight: 720; letter-spacing: -.07em; line-height: 1.2; }
.method-title > p:not(.eyebrow) { max-width: 360px; margin: 0; color: #d3d3d7; font-size: 15px; line-height: 1.8; }
.method-title .button { margin-top: 25px; }
.method-points { border-top: 1px solid #68686d; }
.method-point { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #68686d; }
.method-index { color: #ff879b; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 700; }
.method-point h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.method-point p { max-width: 620px; margin: 0; color: #d3d3d7; font-size: 14px; line-height: 1.8; }

.closing-section { display: flex; min-height: 126px; align-items: center; justify-content: space-between; gap: 20px; }
.closing-section strong { font-size: 17px; }
.back-top { display: inline-flex; min-height: 44px; align-items: center; color: #404047; font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.back-top:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; color: #4f4f56; font-size: 13px; }

.detail-dialog,
.compare-dialog { width: min(760px, calc(100% - 40px)); max-height: min(86vh, 900px); padding: 0; overflow: auto; border: 1px solid var(--ink); color: var(--ink); background: #fff; }
.detail-dialog::backdrop,
.compare-dialog::backdrop { background: rgba(17, 17, 19, .62); }
.dialog-close { position: sticky; z-index: 2; top: 10px; float: right; display: grid; width: 44px; height: 44px; margin: 10px 10px -54px 0; place-items: center; border: 1px solid var(--line-strong); background: #fff; }
.dialog-close span { position: relative; width: 18px; height: 18px; }
.dialog-close span::before,
.dialog-close span::after { position: absolute; top: 8px; left: 0; width: 18px; height: 1.5px; background: currentColor; content: ""; }
.dialog-close span::before { transform: rotate(45deg); }
.dialog-close span::after { transform: rotate(-45deg); }
.dialog-content { min-height: 80px; }
.detail-cover { width: 100%; max-height: 330px; object-fit: cover; background: #ededf0; }
.detail-inner { padding: 36px 38px 38px; }
.dialog-kicker { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.detail-title { margin: 8px 56px 10px 0; font-size: clamp(25px, 4vw, 36px); font-weight: 740; letter-spacing: -.05em; line-height: 1.3; }
.detail-subline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.detail-subline span + span::before { margin-right: 14px; color: var(--line-strong); content: "|"; }
.detail-summary { margin: 22px 0; padding: 17px 18px; border-left: 3px solid var(--accent); color: #303036; background: #f5f5f6; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.detail-tags span { padding: 5px 8px; border: 1px solid var(--line); color: #414147; font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-actions .button { min-width: 150px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.detail-stats strong { margin-left: 5px; color: var(--ink); font-size: 14px; }
.record-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.record-fact { min-height: 80px; padding: 12px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: #fff; }
.record-fact span { display: block; color: var(--muted); font-size: 12px; }
.record-fact strong { display: block; margin-top: 5px; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 700; }
.record-note { margin: 15px 0 0; color: #4f4f56; font-size: 14px; line-height: 1.7; }
.related-heading { margin: 24px 0 10px; font-size: 15px; }
.related-list { display: grid; border-top: 1px solid var(--line); }
.related-item { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.related-item:hover { color: var(--accent); }
.related-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item span:last-child { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.detail-source { display: inline-flex; min-height: 44px; align-items: center; margin-top: 14px; color: #33333a; font-size: 13px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.compare-dialog { padding: 26px; }
.compare-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.compare-dialog-head h2 { margin: 8px 0 22px; }
.compare-dialog-head .dialog-close { position: relative; top: auto; right: auto; float: none; flex: 0 0 auto; margin: 0; }
.compare-scroll-hint { display: none; }
.compare-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.compare-table { width: 100%; min-width: 570px; border-collapse: collapse; }
.compare-table th,
.compare-table td { min-width: 120px; padding: 13px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: #4e4e54; font-size: 13px; font-weight: 650; }
.compare-table th:first-child,
.compare-table td:first-child { min-width: 115px; color: var(--muted); }
.compare-table td { font-size: 14px; font-variant-numeric: tabular-nums; }
.compare-table .compare-car { min-height: 50px; color: var(--ink); font-size: 14px; font-weight: 750; white-space: pre-line; }
.dialog-footnote { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.toast { position: fixed; z-index: 40; right: 50%; bottom: 94px; max-width: min(420px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid var(--ink); color: #fff; background: var(--dark); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .16s ease, transform .16s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1020px) {
  .shell { width: min(100% - 48px, 900px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 5%; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-grid { gap: 6%; }
  .data-table { min-width: 980px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 12px; }
  .main-nav { position: absolute; top: 65px; right: 18px; left: 18px; display: none; gap: 0; padding: 6px 14px; border: 1px solid var(--ink); background: #fff; }
  .main-nav.is-open { display: grid; }
  .main-nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .header-link { min-height: 42px; margin-left: auto; padding-inline: 11px; font-size: 13px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; flex: 0 0 auto; align-content: center; justify-items: center; gap: 6px; padding: 0; border: 1px solid var(--ink); background: transparent; }
  .menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .16s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding-block: 48px 36px; }
  .hero h1 { margin: 18px 0 15px; font-size: clamp(43px, 12vw, 64px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { gap: 8px 16px; margin-top: 21px; }
  .hero-stats { gap: 9px; margin-top: 29px; padding-top: 14px; }
  .hero-stats strong { font-size: clamp(22px, 7vw, 30px); }
  .hero-stats span { font-size: 12px; }
  .hero-visual { padding: 16px 14px 14px; }
  .visual-head { align-items: start; }
  .visual-period { max-width: 45%; }
  .visual-title { margin-top: 15px; }
  .visual-title strong { font-size: 20px; }
  .chart-wrap { height: 190px; margin-top: 10px; }
  .chart-axis-labels { font-size: 12px; }
  .visual-foot { align-items: start; }
  .intro-strip { grid-template-columns: 1fr; gap: 7px; padding-block: 18px; }
  .intro-strip p { font-size: 14px; }
  .section { padding: 70px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .section-heading h2 { margin-top: 10px; font-size: 42px; }
  .section-lede { font-size: 14px; line-height: 1.75; }
  .source-button { width: 100%; min-height: 56px; }
  .filter-bar { gap: 9px; margin-top: 25px; }
  .search-field { min-height: 50px; }
  .record-filters summary { min-height: 50px; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 8px 8px; }
  .filter-select { min-height: 60px; padding-inline: 8px; }
  .filter-select > span { font-size: 12px; }
  .filter-select select { font-size: 13px; }
  .active-filters { gap: 6px; }
  .active-filter-chip { min-height: 44px; font-size: 12px; }
  .results-toolbar,
  .notes-toolbar { min-height: 54px; }
  .results-toolbar p,
  .notes-toolbar p { font-size: 13px; }
  .results-toolbar p strong,
  .notes-toolbar p strong { font-size: 15px; }
  .table-scroll { overflow: visible; border: 0; }
  .data-table,
  .data-table tbody { display: block; width: 100%; min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .data-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line-strong); }
  .data-table tbody tr:last-child { border-bottom: 1px solid var(--line-strong); }
  .data-table td { display: grid; min-width: 0; min-height: 62px; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; white-space: normal; }
  .data-table td::before { color: var(--muted); content: attr(data-label); font-size: 12px; line-height: 1.4; }
  .data-table td.loading-cell::before { display: none; }
  .data-table td:first-child { min-width: 0; grid-column: 1 / -1; padding-top: 3px; }
  .data-table td:first-child::before { display: none; }
  .data-table td:nth-child(6) { color: var(--accent) !important; }
  .data-table td:last-child { grid-column: 1 / -1; grid-template-columns: 1fr; justify-items: start; border-bottom: 0; }
  .data-table td:last-child::before { content: "记录操作"; }
  .car-cell strong { font-size: 16px; }
  .car-cell span { font-size: 12px; }
  .range-cell { font-size: 20px !important; }
  .row-actions { gap: 7px; }
  .row-detail,
  .compare-toggle { min-height: 44px; padding-inline: 10px; border: 1px solid var(--line-strong); font-size: 13px; }
  .table-footnote { font-size: 13px; }
  .compare-inner { min-height: 0; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .compare-copy { font-size: 12px; }
  .compare-count { font-size: 23px; }
  .compare-chips { order: 3; width: 100%; flex-basis: 100%; }
  .compare-actions { margin-left: auto; }
  .compare-actions .button { min-height: 42px; padding-inline: 12px; }
  .compare-clear { min-height: 42px; }
  .notes-heading { display: flex; }
  .notes-controls { width: 100%; }
  .notes-search { min-height: 48px; }
  .compact-select { min-width: 120px; min-height: 48px; font-size: 13px; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .note-cover-wrap { aspect-ratio: 1.08 / 1; }
  .note-card-body { gap: 8px; padding: 10px; }
  .note-card-title { min-height: 46px; font-size: 13px; }
  .note-card-meta { font-size: 12px; }
  .note-card-tags { display: none; }
  .method-section { padding: 64px 0; }
  .method-grid { grid-template-columns: 1fr; gap: 32px; }
  .method-title h2 { margin-top: 15px; font-size: 42px; }
  .method-title > p:not(.eyebrow) { font-size: 14px; }
  .method-point { grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; }
  .method-point h3 { font-size: 15px; }
  .method-point p { font-size: 14px; }
  .closing-section { min-height: 100px; }
  .closing-section strong { font-size: 15px; }
  .back-top { font-size: 13px; }
  .footer-inner { min-height: 74px; flex-wrap: wrap; align-content: center; justify-content: flex-start; gap: 4px 18px; padding-block: 12px; }
  .footer-inner span { font-size: 12px; }
  .detail-dialog,
  .compare-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 90dvh; margin: 0; border-right: 0; border-bottom: 0; border-left: 0; }
  .detail-dialog { border-top: 2px solid var(--accent); }
  .compare-dialog { border-top: 2px solid var(--accent); padding: 20px 16px 24px; }
  .compare-table th:first-child,
  .compare-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
  .dialog-close { top: 7px; margin-top: 7px; margin-right: 7px; }
  .detail-inner { padding: 28px 18px 25px; }
  .detail-title { font-size: 25px; }
  .detail-summary { font-size: 14px; }
  .record-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-fact { min-height: 70px; padding: 10px; }
  .record-fact strong { font-size: 16px; }
  .compare-dialog-head h2 { font-size: 30px; }
  .toast { bottom: 115px; font-size: 13px; }
}

@media (max-width: 610px) {
  .compare-scroll-hint { display: block; margin: -8px 0 12px; color: var(--muted); font-size: 12px; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { gap: 7px; }
  .brand-copy strong { font-size: 13px; }
  .header-link { padding-inline: 9px; font-size: 12px; }
  .hero h1 { font-size: 43px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 12px; }
  .note-grid { gap: 8px; }
  .note-card-body { padding: 9px; }
  .note-card-title { font-size: 12px; }
  .note-card-meta { align-items: start; flex-direction: column; }
  .closing-section { align-items: start; flex-direction: column; justify-content: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
