/* ==========================================================================
   贝勒漫画 · 站点样式
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --line-blue: #1f6feb;
  --line-orange: #e8590c;
  --line-teal: #0b7285;
  --line-violet: #6741d9;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --text-main: #1f2328;
  --text-muted: #5c6470;
  --border-soft: #e3e6ea;
  --radius-card: 8px;
  --radius-pill: 6px;
  --shadow-card: 0 1px 2px rgba(31, 35, 40, 0.06);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --width-wide: 1120px;
  --width-read: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--line-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--line-blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--text-main);
  font-weight: 700;
  font-size: 17px;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--line-blue);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--line-blue);
  box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 1px var(--line-blue);
}

.brand-name {
  letter-spacing: 0;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--line-blue);
  background: #eef4fe;
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--line-blue);
  font-weight: 700;
  background: #eef4fe;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

.site-main {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--line-blue);
}

.breadcrumb-sep {
  color: #b3b9c2;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

.page-description {
  max-width: var(--width-read);
  margin-top: 10px;
  color: var(--text-muted);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
}

.section-desc {
  margin-top: 6px;
  color: var(--text-muted);
  max-width: var(--width-read);
}

.section-head {
  margin-bottom: 18px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
}

.footer-brand-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--line-blue);
}

.footer-bottom {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 14px 20px 24px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   components · 通用元素
   -------------------------------------------------------------------------- */

.inline-link,
.text-link {
  color: var(--line-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover,
.text-link:hover,
.inline-link:focus-visible,
.text-link:focus-visible {
  color: #1858bd;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
}

.block-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 封面条目卡 */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cover-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cover-link {
  display: block;
  padding: 10px;
  color: var(--text-main);
}

.cover-link:hover,
.cover-link:focus-visible {
  text-decoration: none;
  border-color: var(--line-blue);
}

.cover-card:hover {
  border-color: var(--line-blue);
}

.cover-figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0f3;
  aspect-ratio: 3 / 4;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cover-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #eef4fe;
  color: var(--line-blue);
  font-size: 12px;
  line-height: 1.6;
}

.cover-status {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fdf0e6;
  color: var(--line-orange);
  font-size: 12px;
  line-height: 1.6;
}

/* 批次列表 */

.batch-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-group {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--line-orange);
  border-radius: var(--radius-card);
}

.batch-head {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--line-orange);
}

.batch-time {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.batch-items {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-item {
  font-size: 14px;
  color: var(--text-main);
  padding-left: 12px;
  position: relative;
}

.batch-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-orange);
}

/* 位次清单（首页） */

.rank-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-teal);
  font-weight: 700;
}

.rank-name {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-route {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 字段口径表 */

.field-table {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 14px;
}

.field-caption,
.field-table-caption {
  caption-side: top;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table thead th {
  background: #f2f4f7;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-teal);
  font-weight: 700;
  white-space: nowrap;
  width: 120px;
}

.field-desc,
.field-meaning {
  color: var(--text-main);
}

.field-value {
  color: var(--text-muted);
}

/* 步骤清单（首页 / 位次 / 指引） */

.step-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.step-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  counter-increment: step;
}

.step-name,
.step-title {
  font-size: 16px;
  font-weight: 700;
}

.step-desc,
.step-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--line-violet);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

/* 反馈说明块 */

.feedback-block,
.feedback-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f3f0fd;
  border: 1px solid #ded6f7;
  border-radius: var(--radius-card);
}

.feedback-title,
.feedback-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--line-violet);
}

.feedback-desc,
.feedback-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--line-violet);
  color: #ffffff;
  font-size: 14px;
}

.feedback-link:hover,
.feedback-link:focus-visible {
  background: #5636b8;
  color: #ffffff;
  text-decoration: none;
}

.feedback-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.feedback-links li {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.fact-bar {
  background: #eef4fe;
  border-bottom: 1px solid #d7e3fb;
}

.fact-bar-text {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  color: #1858bd;
}

.hero-section {
  margin-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.hero-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #eef4fe;
  color: var(--line-blue);
  font-family: var(--font-mono);
  font-size: 13px;
}

.hero-title {
  margin-top: 12px;
  font-size: 32px;
}

.hero-lead {
  margin-top: 12px;
  max-width: 560px;
  color: var(--text-main);
}

.hero-note {
  margin-top: 10px;
  max-width: 560px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-entries {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.hero-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.hero-entry-link {
  display: block;
  padding: 12px 14px;
  color: var(--text-main);
}

.hero-entry-link:hover,
.hero-entry-link:focus-visible {
  text-decoration: none;
  color: var(--line-blue);
}

.hero-entry-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.hero-entry-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.routes-section {
  margin-bottom: 40px;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-column {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--line-blue);
}

.route-column--blue {
  border-top-color: var(--line-blue);
}

.route-column--orange {
  border-top-color: var(--line-orange);
}

.route-column--teal {
  border-top-color: var(--line-teal);
}

.route-column--violet {
  border-top-color: var(--line-violet);
}

.route-name {
  font-size: 16px;
}

.route-range {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.route-sample {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.route-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.overview-section {
  margin-bottom: 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.overview-aside {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.rank-section {
  margin-bottom: 40px;
}

.rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rank-aside {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.guide-section {
  margin-bottom: 40px;
}

.index-section {
  margin-bottom: 8px;
}

.index-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-column {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.index-name {
  font-size: 15px;
}

.index-link {
  color: var(--text-main);
}

.index-link:hover,
.index-link:focus-visible {
  color: var(--line-blue);
}

.index-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.filter-bar {
  margin-bottom: 32px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.filter-controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-label {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.filter-select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
}

.filter-reset {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--line-blue);
  font-size: 14px;
  font-weight: 600;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  background: #eef4fe;
}

.line-table-section {
  margin-bottom: 36px;
}

.line-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.line-table {
  min-width: 660px;
  font-size: 14px;
}

.line-table thead th {
  padding: 10px 14px;
  text-align: left;
  background: #f2f4f7;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}

.line-table td,
.line-table tbody th {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.line-table tbody tr:last-child th,
.line-table tbody tr:last-child td {
  border-bottom: 0;
}

.line-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.line-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-blue);
}

.line-row-shaonian .line-dot {
  background: var(--line-blue);
}

.line-row-richang .line-dot {
  background: var(--line-orange);
}

.line-row-qihuan .line-dot {
  background: var(--line-teal);
}

.line-row-xuanyi .line-dot {
  background: var(--line-violet);
}

.line-row-kehuan .line-dot {
  background: #c2255c;
}

.line-scope,
.line-rep {
  color: var(--text-main);
}

.line-status {
  white-space: nowrap;
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  background: #eef4fe;
  color: var(--line-blue);
}

.status-lianzai {
  background: #eef4fe;
  color: var(--line-blue);
}

.status-wanjie {
  background: #e6f4f1;
  color: var(--line-teal);
}

.status-xiugeng {
  background: #fdf0e6;
  color: var(--line-orange);
}

.cover-grid-section {
  margin-bottom: 36px;
}

.cover-group {
  margin-top: 22px;
}

.cover-group-title {
  font-size: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--line-blue);
}

.cover-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cover-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cover-item:hover {
  border-color: var(--line-blue);
}

.cover-item .cover-link {
  display: block;
  padding: 10px;
  color: var(--text-main);
}

.cover-item .cover-link:hover,
.cover-item .cover-link:focus-visible {
  text-decoration: none;
}

.field-summary-section {
  margin-bottom: 36px;
}

.field-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: var(--radius-card);
}

.path-guide-section {
  margin-bottom: 12px;
}

.path-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.path-step {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.path-step .step-name {
  font-size: 16px;
}

.path-step .step-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 36px;
}

.batch-timeline {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border-soft);
  padding-left: 0;
}

.batch-node {
  position: relative;
  padding: 0 0 20px 22px;
}

.batch-node::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-orange);
  box-shadow: 0 0 0 3px #ffffff;
}

.batch-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--line-orange);
}

.batch-timeline .batch-time {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.batch-scope {
  margin-top: 6px;
  max-width: var(--width-read);
  font-size: 14px;
  color: var(--text-main);
}

.update-group {
  margin-top: 20px;
}

.update-group-title {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--line-orange);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.update-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.update-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.update-thumb {
  margin: 0;
  width: 68px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0f3;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  min-width: 0;
}

.update-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.update-name:hover,
.update-name:focus-visible {
  color: var(--line-blue);
}

.update-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: #eef4fe;
  color: var(--line-blue);
  font-size: 12px;
}

.tag-subject {
  background: #e6f4f1;
  color: var(--line-teal);
}

.update-chapter,
.update-batch {
  font-family: var(--font-mono);
  font-size: 13px;
}

.update-batch {
  color: var(--line-orange);
}

.guide-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.guide-step {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.guide-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--line-violet);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.guide-step .step-name {
  font-size: 16px;
}

.guide-step .step-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 人气位次
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.weici-layout {
  margin-bottom: 36px;
}

.weici-list-block {
  min-width: 0;
}

.weici-list-block .rank-list {
  margin-top: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}

.rank-item .rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--line-teal);
}

.rank-thumb {
  margin: 0;
  width: 56px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0f3;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item .rank-name {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-line {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.weici-criteria {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.criteria-item {
  margin-top: 16px;
}

.criteria-item:first-of-type {
  margin-top: 14px;
}

.criteria-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--line-teal);
}

.criteria-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.field-summary {
  margin-bottom: 32px;
}

.path-guide {
  margin-bottom: 12px;
}

.path-guide .step-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.path-guide .feedback-block {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 查阅指引
   -------------------------------------------------------------------------- */

.guide-fields {
  margin-bottom: 36px;
}

.guide-fields .field-table {
  margin-top: 16px;
}

.guide-steps {
  margin-bottom: 36px;
}

.guide-figure {
  margin: 16px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.guide-steps .step-list {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide-faq {
  margin-bottom: 36px;
}

.faq-item {
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--line-violet);
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-question:hover {
  color: var(--line-blue);
}

.faq-answer {
  padding: 0 16px 14px 42px;
  font-size: 14px;
  color: var(--text-muted);
}

.guide-feedback {
  margin-bottom: 12px;
}

.guide-feedback .feedback-block {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
}

.error-panel {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--line-orange);
}

.error-title {
  margin-top: 8px;
  font-size: 26px;
}

.error-text {
  margin-top: 10px;
  max-width: var(--width-read);
  color: var(--text-muted);
}

.error-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
}

.error-btn:hover,
.error-btn:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
  text-decoration: none;
}

.error-btn-primary {
  background: var(--line-blue);
  border-color: var(--line-blue);
  color: #ffffff;
}

.error-btn-primary:hover,
.error-btn-primary:focus-visible {
  background: #1858bd;
  border-color: #1858bd;
  color: #ffffff;
}

.error-guide {
  margin-top: 32px;
}

.error-guide-title {
  font-size: 18px;
}

.error-guide-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.error-guide-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 14px;
}

.error-guide-link:hover,
.error-guide-link:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px solid var(--border-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 10px;
  }

  .site-main {
    padding: 22px 16px 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .rank-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .fact-bar-text {
    padding: 8px 16px;
  }

  .page-title,
  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .routes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid,
  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field {
    min-width: 0;
  }

  .filter-reset {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 2px;
  }

  .rank-route {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .rank-item {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    row-gap: 4px;
  }

  .rank-item .rank-line {
    grid-column: 3 / -1;
    white-space: normal;
  }

  .rank-thumb {
    width: 48px;
  }

  .update-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb {
    width: 56px;
  }

  .field-name {
    width: auto;
    white-space: normal;
  }

  .field-table th,
  .field-table td {
    padding: 9px 10px;
  }

  .line-table thead th,
  .line-table td,
  .line-table tbody th {
    padding: 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 16px 16px;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
  }

  .error-panel {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .cover-item,
  .route-column,
  .index-column,
  .update-item,
  .rank-item,
  .rank-row {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
}
