/* ==========================================================================
   韩漫榜 feihongjinshu.com — 站点样式
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #2F3E46;
  --ink-soft: #5A6B70;
  --copper: #8A6A3B;
  --copper-light: #C9A96A;
  --line: #E4DED2;
  --tag-bg: #F1EADD;
  --rise: #4A6B4F;
  --fall: #8C5A45;
  --radius: 6px;
  --reading-scale: 1;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  --font-sans: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: 40em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--copper-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.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;
}

.visually-plain {
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--copper);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--copper);
  border-radius: 2px;
  display: inline-block;
}

.brand-name {
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.primary-nav {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-left: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group + .nav-group {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.nav-group-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-list a {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav-list a:hover {
  color: var(--copper);
}

.nav-list a.is-current {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.nav-group-note .nav-list a {
  font-size: 15px;
  font-weight: 500;
  padding-left: 12px;
  position: relative;
}

.nav-group-note .nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-light);
  transform: translateY(-50%);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 22px 0 0;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--copper);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 16px 0 8px;
}

.page-title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   components — 通用元素
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--copper);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--copper);
}

.btn-ghost:hover {
  background: var(--tag-bg);
  color: var(--copper);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--copper);
}

.section-sub,
.section-note,
.section-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.section-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* 内页内容区 H2 通用样式 */
.content-col section h2,
.genre-overview h2,
.genre-groups > h2,
.cross-tag-note h2,
.genre-jump h2,
.further-reading h2,
.year-index h2,
.year-blocks h2,
.year-change h2,
.archive-note h2,
.symptom-entries h2,
.decision-branches > h2,
.reading-setting h2,
.boundary-note h2,
.week-timeline .section-head h2,
.week-table .section-head h2,
.schedule-notes .section-head h2,
.map-note .section-head h2 {
  font-size: 22px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
  margin: 0 0 14px;
}

.content-col section h2::before,
.genre-overview h2::before,
.genre-groups > h2::before,
.cross-tag-note h2::before,
.genre-jump h2::before,
.further-reading h2::before,
.year-index h2::before,
.year-blocks h2::before,
.year-change h2::before,
.archive-note h2::before,
.symptom-entries h2::before,
.decision-branches > h2::before,
.reading-setting h2::before,
.boundary-note h2::before,
.week-timeline .section-head h2::before,
.week-table .section-head h2::before,
.schedule-notes .section-head h2::before,
.map-note .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--copper);
}

.content-col section,
.genre-overview,
.genre-groups,
.cross-tag-note,
.genre-jump,
.further-reading,
.year-index,
.year-blocks,
.year-change,
.archive-note,
.symptom-entries,
.decision-branches,
.reading-setting,
.boundary-note,
.week-timeline,
.week-table,
.schedule-notes,
.map-note {
  margin-bottom: 42px;
}

/* 页标题区 */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding: 14px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-head-main,
.page-head-copy,
.page-head-text {
  min-width: 0;
}

.page-head-desc,
.page-head-lead,
.page-lead,
.page-sub {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38em;
}

.page-head-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.page-head-card-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.page-head-card-value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

.page-head-card-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.page-head-card-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.key-facts,
.mini-facts {
  margin: 0;
}

.key-facts dt,
.mini-facts dt {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.key-facts dt:first-child,
.mini-facts dt:first-child {
  margin-top: 0;
}

.key-facts dd,
.mini-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* 主栏 + 侧栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-bottom: 42px;
}

.content-col {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.key-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.key-card-title,
.aside-links-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.key-list {
  margin: 0;
}

.key-list dt {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
}

.key-list dt:first-child {
  margin-top: 0;
}

.key-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.aside-links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-links a {
  font-size: 15px;
  color: var(--copper);
}

.aside-links a:hover {
  color: var(--copper-light);
}

/* 字号控制条 */
.font-control {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.font-control-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1 1 100%;
}

.font-control-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.font-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.font-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.font-level {
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 3em;
  text-align: center;
}

/* 表格容器 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--tag-bg);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody th,
tbody td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

tbody th {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-sans);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #FCFAF5;
}

/* 图片内容区 */
.content-media {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.content-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-media figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

/* 延伸阅读 */
.further-reading {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.further-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.further-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.further-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.further-item h3 a {
  color: var(--copper);
}

.further-item h3 a:hover {
  color: var(--copper-light);
}

.further-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.further-list,
.reading-list,
.reading-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.further-list li,
.reading-list li,
.reading-links li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.further-list a,
.reading-list a,
.reading-links a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 6px;
}

.further-list a:hover,
.reading-list a:hover,
.reading-links a:hover {
  color: var(--copper-light);
}

.further-list p,
.reading-list p,
.reading-links p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.further-list span,
.reading-list span,
.reading-links span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: block;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--copper);
  margin: 14px 0 8px;
}

.footer-intro {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  max-width: 26em;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--copper);
}

.footer-note p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 8px;
  max-width: 24em;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero-index {
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.year-tabs li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--tag-bg);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.year-tabs li a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.year-tabs li a.is-current {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.hero-covers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.hero-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: stretch;
  transition: border-color 160ms ease;
}

.cover-card:hover {
  border-color: var(--copper);
}

.cover-card img {
  width: 84px;
  height: 108px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.cover-card:hover img {
  transform: scale(1.02);
}

.cover-card figcaption {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* 现象分流 */
.triage {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.triage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 160ms ease;
}

.branch-card:hover {
  border-color: var(--copper);
}

.branch-no {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.06em;
}

.branch-card h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

.branch-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  flex: 1 1 auto;
}

.branch-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.branch-link::after {
  content: "→";
}

.branch-link:hover {
  color: var(--copper-light);
}

/* 当期榜单主推荐 */
.top-rank {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease, background 160ms ease;
}

.rank-item:hover {
  background: var(--surface);
}

.rank-no {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}

.rank-main {
  min-width: 0;
}

.rank-name {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 2px;
}

.rank-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.rank-change {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rank-change.is-up {
  color: var(--rise);
  background: rgba(74, 107, 79, 0.1);
}

.rank-change.is-down {
  color: var(--fall);
  background: rgba(140, 90, 69, 0.1);
}

.rank-change.is-new {
  color: var(--copper);
  background: var(--tag-bg);
}

.rank-change.is-flat {
  color: var(--ink-soft);
  background: var(--tag-bg);
}

.rank-footnote {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.rank-footnote a {
  color: var(--copper);
}

.rank-footnote a:hover {
  color: var(--copper-light);
}

/* 最近更新次推荐 */
.update-brief {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.update-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  background: var(--tag-bg);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
}

.update-main {
  min-width: 0;
}

.update-main h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 2px;
}

.update-main p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* 题材标签带 */
.genre-strip {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tags li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--tag-bg);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease;
}

.genre-tags li a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.genre-tags li a.is-current {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

/* 关键资料 + 时间线 */
.facts-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.facts-row > h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.key-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.key-facts h3,
.week-timeline h3 {
  font-size: 17px;
  margin: 0 0 14px;
}

.facts-list {
  margin: 0;
}

.facts-list dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  margin-top: 14px;
}

.facts-list dt:first-child {
  margin-top: 0;
}

.facts-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.week-timeline {
  min-width: 0;
}

.timeline-list {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-node {
  position: relative;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--surface);
}

.timeline-day {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 4px;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.timeline-card h4 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 2px;
}

.timeline-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* 阅读说明与边界提示 */
.reading-note {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.reading-note h2 {
  font-size: 22px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
  margin: 0 0 14px;
}

.reading-note h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--copper);
}

.reading-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 42em;
}

.boundary-tip {
  background: var(--tag-bg);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  max-width: none;
  margin: 18px 0 0;
}

/* 首页延伸阅读 */
.home-main .further-reading {
  padding: 44px 0 0;
  border-top: 0;
}

/* --------------------------------------------------------------------------
   pages — 当期榜单
   -------------------------------------------------------------------------- */

.rank-table {
  margin-bottom: 42px;
}

.rank-table table {
  min-width: 520px;
}

.rank-cell {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  width: 64px;
}

.rank-top .rank-cell {
  color: var(--copper-light);
}

.entry-cell {
  min-width: 200px;
}

.entry-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.entry-link {
  color: var(--ink);
}

.entry-link:hover {
  color: var(--copper);
}

.entry-meta {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--tag-bg);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.change-up,
.change-down,
.change-new,
.change-out,
.change-flat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.change-up {
  color: var(--rise);
}

.change-down {
  color: var(--fall);
}

.change-new {
  color: var(--copper);
}

.change-out {
  color: var(--ink-soft);
}

.change-flat {
  color: var(--ink-soft);
}

.change-record {
  margin-bottom: 42px;
}

.change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.change-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.change-col h3 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.change-col-up h3 {
  color: var(--rise);
}

.change-col-down h3 {
  color: var(--fall);
}

.change-col-io h3 {
  color: var(--copper);
}

.change-col .change-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.change-col .change-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.change-col .change-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.map-note {
  margin-bottom: 0;
}

.map-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 42em;
}

.map-note-link {
  margin-top: 14px;
}

.map-note-link a {
  font-weight: 600;
  color: var(--copper);
}

.map-note-link a:hover {
  color: var(--copper-light);
}

/* --------------------------------------------------------------------------
   pages — 作品档案
   -------------------------------------------------------------------------- */

.year-bar,
.filter-bar {
  margin-bottom: 34px;
}

.year-bar .section-note,
.filter-bar .section-note {
  margin-bottom: 14px;
}

.state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.state-tags li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease;
}

.state-tags li a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.state-tags li a.is-current {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.state-tags li a.is-current .tag-count {
  color: rgba(255, 255, 255, 0.78);
}

.tag-count {
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.cover-wall {
  margin-bottom: 42px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-grid .cover-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease;
}

.cover-grid .cover-card:hover {
  border-color: var(--copper);
}

.cover-link {
  display: block;
  color: var(--ink);
}

.cover-link:hover {
  color: var(--ink);
}

.cover-figure {
  overflow: hidden;
  background: var(--tag-bg);
}

.cover-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 160ms ease;
}

.cover-grid .cover-card:hover .cover-figure img {
  transform: scale(1.02);
}

.cover-meta {
  padding: 14px 16px 16px;
}

.cover-title {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.cover-genre {
  font-size: 13px;
  color: var(--copper);
  margin: 0 0 2px;
}

.cover-day {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.field-table {
  margin-top: 4px;
}

.field-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.related-links-item {
  font-size: 14px;
  color: var(--copper);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.related-links-item:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   pages — 更新排期
   -------------------------------------------------------------------------- */

.head-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.head-card-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.mini-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-fact dt {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.mini-fact dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.week-timeline .section-head,
.week-table .section-head,
.schedule-notes .section-head,
.map-note .section-head {
  margin-bottom: 20px;
}

.week-timeline .timeline-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding-left: 0;
  border-left: 0;
}

.week-timeline .timeline-node {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.week-timeline .timeline-node::before {
  display: none;
}

.week-timeline .timeline-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--copper);
}

.week-timeline .timeline-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.timeline-thumb {
  overflow: hidden;
  background: var(--tag-bg);
}

.timeline-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.timeline-card-body {
  padding: 12px 14px;
}

.timeline-card-title {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 4px;
}

.timeline-card-meta {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.schedule-table {
  min-width: 560px;
}

.schedule-table th[scope="row"] {
  font-size: 14px;
  white-space: nowrap;
  color: var(--copper);
}

.schedule-table td {
  font-size: 14px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.note-box h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.note-box p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.genre-overview {
  margin-bottom: 42px;
}

.genre-overview p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 42em;
}

.genre-tags-overview li a {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.genre-groups > h2 {
  margin-bottom: 8px;
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.genre-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.genre-intro {
  min-width: 0;
}

.genre-intro h3 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.genre-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tag-bg);
  margin-bottom: 14px;
}

.genre-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.genre-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 32em;
}

.genre-entry {
  margin: 0;
}

.genre-entry a {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
}

.genre-entry a:hover {
  color: var(--copper-light);
}

.genre-picks {
  min-width: 0;
}

.picks-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.pick-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
  transition: border-color 160ms ease;
}

.pick-card:hover {
  border-color: var(--copper);
}

.pick-card a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 4px;
}

.pick-card a:hover {
  color: var(--copper);
}

.pick-meta {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.cross-tag-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 42em;
}

.genre-tags-cross {
  margin-top: 4px;
}

.genre-jump p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 42em;
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jump-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
}

.jump-list li a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   pages — 榜单规则
   -------------------------------------------------------------------------- */

.lead p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 42em;
}

.rule-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin: 18px 0 0;
}

.rule-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rule-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.clause-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: clause;
}

.clause-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 56px;
  position: relative;
  counter-increment: clause;
}

.clause-item::before {
  content: counter(clause);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  background: var(--tag-bg);
  color: var(--copper);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clause-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.clause-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  max-width: 40em;
}

.include-exclude-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.include-box,
.exclude-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  min-width: 0;
}

.include-box h3,
.exclude-box h3 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.include-box h3 {
  color: var(--rise);
}

.exclude-box h3 {
  color: var(--fall);
}

.include-box ul,
.exclude-box ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.include-box li,
.exclude-box li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.include-box li::before {
  content: "＋";
  position: absolute;
  left: 0;
  color: var(--rise);
  font-weight: 700;
}

.exclude-box li::before {
  content: "－";
  position: absolute;
  left: 0;
  color: var(--fall);
  font-weight: 700;
}

.faq-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px 16px 46px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  position: absolute;
  left: 20px;
  top: 15px;
  color: var(--copper);
  font-weight: 700;
  font-size: 16px;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  color: var(--copper);
}

.faq-item p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  padding: 0 20px 18px 46px;
  margin: 0;
  max-width: 42em;
}

.change-log .change-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.change-item {
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.change-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  margin: 0 0 2px;
  font-variant-numeric: tabular-nums;
}

.change-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: 40em;
}

/* --------------------------------------------------------------------------
   pages — 阅读指引
   -------------------------------------------------------------------------- */

.symptom-entries .section-desc,
.decision-branches .section-desc {
  margin-bottom: 18px;
}

.symptom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.symptom-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease;
}

.symptom-link:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.branch {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  scroll-margin-top: 90px;
}

.branch:last-child {
  border-bottom: 0;
}

.branch-no {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--copper-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.branch-body {
  min-width: 0;
}

.branch-body h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.branch-judge {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 40em;
}

.branch-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  counter-reset: step;
}

.branch-steps li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.75;
  counter-increment: step;
}

.branch-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-steps li a {
  color: var(--copper);
}

.branch-steps li a:hover {
  color: var(--copper-light);
}

.branch-next {
  font-size: 14px;
  margin: 0;
}

.branch-next a {
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.branch-next a::after {
  content: "→";
}

.branch-next a:hover {
  color: var(--copper-light);
}

.reading-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.reading-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tag-bg);
}

.reading-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reading-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.reading-setting-body {
  min-width: 0;
}

.reading-setting-body h2 {
  margin-bottom: 12px;
}

.reading-setting-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 34em;
}

.reading-setting-body .font-control {
  margin-top: 16px;
  padding: 12px 16px;
}

.boundary-note {
  background: var(--tag-bg);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}

.boundary-note h2 {
  padding-left: 0;
  margin-bottom: 8px;
}

.boundary-note h2::before {
  display: none;
}

.boundary-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 42em;
}

.boundary-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 历年归档
   -------------------------------------------------------------------------- */

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.archive-tab:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.archive-tab.is-current {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.year-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.year-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.year-summary {
  min-width: 0;
}

.year-title {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

.year-meta {
  font-size: 13px;
  color: var(--copper);
  margin: 0 0 10px;
}

.year-summary p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 32em;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.text-link::after {
  content: "→";
}

.text-link:hover {
  color: var(--copper-light);
}

.year-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.year-pick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.year-pick img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.year-pick figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  padding: 10px 12px;
}

.year-change p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 42em;
}

.year-change .change-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.year-change .change-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.year-change .change-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-light);
}

.archive-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 42em;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.error-panel {
  max-width: 560px;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin: 0 0 10px;
}

.error-panel h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.error-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.error-hint {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.error-hint h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.error-links a {
  font-size: 14px;
  color: var(--copper);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.error-links a:hover {
  color: var(--copper-light);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .nav-group + .nav-group {
    padding-left: 18px;
  }

  .primary-nav {
    gap: 18px;
  }

  .nav-list {
    gap: 14px;
  }

  .nav-list a {
    font-size: 15px;
  }

  .hero-inner {
    gap: 32px;
  }

  .triage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-timeline .timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: block;
    width: 100%;
    margin-left: 0;
    order: 3;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 0 16px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .nav-group {
    display: none;
    padding: 14px 0;
  }

  .nav-group + .nav-group {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .nav-group.is-open {
    display: block;
  }

  .nav-group-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 16px;
    border-bottom: 0;
    padding: 0;
  }

  .nav-list a.is-current {
    border-bottom: 0;
    color: var(--copper);
  }

  .nav-group-note .nav-list a {
    padding-left: 14px;
  }

  .inner-main,
  .home-main {
    padding: 0 20px 56px;
  }

  .page-title,
  .error-panel h1 {
    font-size: 30px;
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 12px 0 28px;
    margin-bottom: 32px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-aside {
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-covers {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cover {
    flex: 1 1 100%;
  }

  .hero-cover img {
    height: 200px;
  }

  .cover-card {
    flex: 1 1 240px;
  }

  .facts-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .week-timeline .timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .reading-setting {
    grid-template-columns: minmax(0, 1fr);
  }

  .year-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .further-grid,
  .further-list,
  .reading-list,
  .reading-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 40px 20px 28px;
  }

  .footer-bottom {
    padding: 16px 20px 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .inner-main,
  .home-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 16px 0 0;
    font-size: 13px;
  }

  .page-title,
  .error-panel h1 {
    font-size: 26px;
  }

  .page-head-card {
    padding: 16px;
  }

  .hero-index {
    padding: 28px 0 36px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
    padding: 0 16px;
  }

  .hero-cover img {
    height: 160px;
  }

  .cover-card {
    flex: 1 1 100%;
  }

  .cover-card img {
    width: 76px;
    height: 96px;
  }

  .triage,
  .top-rank,
  .update-brief,
  .genre-strip,
  .facts-row,
  .reading-note {
    padding: 32px 0;
  }

  .triage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    row-gap: 6px;
    padding: 14px 10px;
  }

  .rank-no {
    font-size: 20px;
  }

  .rank-change {
    grid-column: 2;
    justify-self: start;
  }

  .update-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .genre-tags {
    gap: 8px;
  }

  .genre-tags li a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .facts-row {
    gap: 24px;
  }

  .key-facts {
    padding: 18px;
  }

  .week-timeline .timeline-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .week-timeline .timeline-card {
    flex-direction: row;
    align-items: stretch;
  }

  .timeline-thumb {
    width: 88px;
    flex-shrink: 0;
  }

  .timeline-thumb img {
    height: 100%;
    min-height: 88px;
  }

  .timeline-card-body {
    padding: 10px 12px;
  }

  .change-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-figure img {
    height: 180px;
  }

  .cover-meta {
    padding: 12px;
  }

  .cover-title {
    font-size: 15px;
  }

  .pick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pick-list .pick-card:last-child {
    grid-column: 1 / -1;
  }

  .include-exclude-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .clause-item {
    padding: 16px 16px 16px 48px;
  }

  .clause-item::before {
    left: 14px;
    top: 16px;
  }

  .faq-item summary {
    padding: 14px 16px 14px 40px;
    font-size: 14px;
  }

  .faq-item summary::before {
    left: 16px;
    top: 13px;
  }

  .faq-item p {
    padding: 0 16px 16px 40px;
  }

  .branch {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 22px 0;
  }

  .branch-no {
    font-size: 20px;
  }

  .symptom-list {
    gap: 10px;
  }

  .symptom-link {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }

  .reading-setting {
    padding: 18px;
  }

  .reading-figure img {
    height: 160px;
  }

  .boundary-note {
    padding: 16px 18px;
  }

  .year-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .year-picks .year-pick:last-child {
    grid-column: 1 / -1;
  }

  .year-pick img {
    height: 120px;
  }

  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .further-grid,
  .further-list,
  .reading-list,
  .reading-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-tags-overview {
    gap: 8px;
  }

  .jump-list li a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .error-main {
    padding: 48px 16px 72px;
  }

  .error-actions {
    gap: 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 20px;
  }

  .related-links {
    gap: 8px 12px;
  }

  .table-scroll {
    border-radius: var(--radius);
  }

  thead th,
  tbody th,
  tbody td {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
