:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #171a21;
  --muted: #5d6675;
  --line: #e4e8ee;
  --accent: #e23b3b;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK JP", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: white; padding: 8px 12px; }
.skip:focus { top: 12px; z-index: 50; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 760; font-size: 22px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 6px 14px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.top-search { flex: 1; min-width: 180px; }
.top-search input, .search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #f7f8fa;
  font: inherit;
}
.external {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.ext { margin-left: 6px; font-size: 12px; opacity: 0.85; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.home-title { margin: 18px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.banner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 18px;
  margin-top: 18px;
  background: #111;
}
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: white; }
.slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.slide-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 4px;
  padding: 28px 24px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.slide-copy strong { font-size: clamp(28px, 4vw, 52px); line-height: 1.1; }
.kicker { color: #ffd0d0; font-size: 13px; letter-spacing: 0.08em; }
.home-cta, .cta-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.row { margin: 22px 0 8px; }
.row-head, .section-head, .page-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row-head h2, h1, h2 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
.deck { color: var(--muted); max-width: 46rem; }
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 24%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 2px 18px;
}
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.card {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #d8dee8; color: transparent; transition: transform 0.35s ease; }
.card:hover img { transform: scale(1.04); }
.card-body { display: grid; gap: 4px; padding: 0 12px 14px; }
.card-title { font-weight: 680; line-height: 1.35; }
.card-meta, .note, .crumbs, .chips { color: var(--muted); font-size: 13px; }
.tags { margin: 10px 0 28px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-list a, .filters a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.facet h2 { font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.hero-cover { width: min(100%, 1200px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; display: block; margin-top: 16px; background: #d8dee8; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; margin-top: 8px; }
.prose p { font-size: 17px; }
.sidecard, .cta-block { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.facts { display: grid; gap: 8px; margin: 0; }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #eef1f6; border-radius: 999px; padding: 4px 10px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 14px 0 0; margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.pager a, .pager span { min-height: 44px; display: inline-flex; align-items: center; }
.colophon { color: var(--muted); padding: 28px 0 40px; }
.search-box { margin: 16px 0; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-list li, .guide-list a { display: flex; justify-content: space-between; gap: 12px; }
.page-head { display: block; margin: 8px 0 12px; }
.page-head .deck { margin-top: 8px; }
.slide img { min-height: 280px; background: #1b212b; }
@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .record-layout { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: 72%; }
}
@media (max-width: 640px) {
  .top { padding: 10px 12px; }
  .wrap { width: min(1180px, calc(100% - 20px)); }
  .card-grid { grid-template-columns: 1fr; }
  .slide-copy strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .card img { transition: none; }
}
