:root {
  --ink: #12161c;
  --ink-2: #1b212a;
  --ink-3: #232b36;
  --paper: #f2f5f8;
  --paper-dim: #c7ced7;
  --muted: #8b949e;
  --line-red: #e5484d;
  --line-blue: #3b82f6;
  --line-yellow: #f5c945;
  --line-green: #35c08a;
  --line-purple: #9b6bff;
  --line-cyan: #35c6d0;
  --border: #2b333e;
  --border-soft: #232a34;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --shell-narrow: 860px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--paper);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--line-cyan);
  outline-offset: 2px;
}

/* ============================================================
   layout — 全站骨架
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-plate {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--line-yellow);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-weight: 700;
}

.primary-nav.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 7px 11px;
  font-size: 15px;
  color: var(--paper-dim);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-list li a:hover {
  color: #fff;
  background: var(--ink-3);
}

.nav-list li a.is-current {
  color: #fff;
  border-bottom-color: var(--line-red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

/* 线路选择器 */
.line-picker {
  position: relative;
}

.line-picker-summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--paper-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  background: var(--ink-2);
  white-space: nowrap;
}

.line-picker-summary::-webkit-details-marker {
  display: none;
}

.line-picker-summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
}

.line-picker[open] .line-picker-summary {
  color: #fff;
  border-color: var(--line-cyan);
}

.line-picker-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 50;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.line-picker-list li a.line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--paper-dim);
  border-radius: var(--radius-sm);
}

.line-picker-list li a.line-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--muted);
  flex-shrink: 0;
}

.line-picker-list li a.line-item:hover {
  background: var(--ink-3);
  color: #fff;
}

.line-picker-list li a.line-item.is-current {
  color: #fff;
  background: var(--ink-3);
}

.line-picker-list li a.line-item.line-red::before { background: var(--line-red); }
.line-picker-list li a.line-item.line-blue::before { background: var(--line-blue); }
.line-picker-list li a.line-item.line-yellow::before { background: var(--line-yellow); }
.line-picker-list li a.line-item.line-green::before { background: var(--line-green); }
.line-picker-list li a.line-item.line-purple::before { background: var(--line-purple); }
.line-picker-list li a.line-item.line-cyan::before { background: var(--line-cyan); }

.scope-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-top: 28px;
}

.inner-main {
  padding-top: 24px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--paper-dim);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-sep {
  color: var(--border);
  margin: 0 6px;
}

.breadcrumb-current {
  color: var(--muted);
}

/* 内页标题区 */
.page-header {
  margin-bottom: 12px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

/* 页脚 */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: 28px 40px;
}

.footer-brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-group-title {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-group ul li a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--paper-dim);
}

.footer-group ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 26px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.footer-note,
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--line-red);
  color: #fff;
}

.btn-primary:hover {
  background: #cf3a3f;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--line-cyan);
  color: #fff;
}

.text-link {
  color: var(--line-cyan);
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* 线路色工具类 */
.line-red { --lc: var(--line-red); }
.line-blue { --lc: var(--line-blue); }
.line-yellow { --lc: var(--line-yellow); }
.line-green { --lc: var(--line-green); }
.line-purple { --lc: var(--line-purple); }
.line-cyan { --lc: var(--line-cyan); }

/* ============================================================
   components — 线路徽章 / 更新行 / 折叠问答
   ============================================================ */

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lc, var(--muted));
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

.update-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 120px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
}

.update-row:hover {
  background: var(--ink-2);
}

.update-time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.update-name,
.update-work {
  font-size: 15px;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-chapter {
  font-size: 13px;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

/* 折叠问答 */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 14px 34px 14px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
}

.faq-item[open] .faq-question {
  color: #fff;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--line-cyan);
}

.faq-answer {
  padding: 0 34px 16px 2px;
  font-size: 15px;
  color: var(--paper-dim);
}

.faq-answer a {
  color: var(--line-cyan);
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.related-links-label {
  font-size: 13px;
  color: var(--muted);
}

.related-links-item {
  font-size: 14px;
  color: var(--paper-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.related-links-item:hover {
  color: #fff;
  border-color: var(--line-cyan);
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 28px;
  margin-bottom: 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--line-cyan);
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: 40px;
  color: #fff;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 12px;
}

.hero-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-lines {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-lines .section-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
}

.line-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.line-card a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--lc, var(--muted));
  border-radius: var(--radius);
  padding: 12px;
  background: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.line-card a:hover {
  background: var(--ink-3);
  border-color: var(--line-cyan);
}

.line-card-cover {
  grid-row: 1 / span 3;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
}

.line-card-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.line-card .line-badge {
  justify-self: start;
}

.line-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.line-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

.section-more {
  margin: 16px 0 0;
}

/* 题材线路图 */
.route-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.route-row {
  display: grid;
  grid-template-columns: 6px 74px 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--ink-2);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row:hover {
  background: var(--ink-3);
}

.route-color {
  align-self: stretch;
  background: var(--lc, var(--muted));
  border-radius: 0 2px 2px 0;
}

.route-code {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.route-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.route-name:hover {
  color: var(--line-cyan);
}

.route-scope {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

/* 更新时刻表 */
.update-group {
  margin-bottom: 22px;
}

.update-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.update-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* 追更维度 */
.dimension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: dim;
}

.dimension-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 18px 20px;
}

.dimension-code {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--line-cyan);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  margin-bottom: 10px;
}

.dimension-name {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.dimension-text {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

/* 出发前提示 */
.before-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.before-list {
  counter-reset: before;
}

.before-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.before-item:last-child {
  border-bottom: 0;
}

.before-name {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.before-name::before {
  counter-increment: before;
  content: counter(before) ". ";
  color: var(--line-cyan);
}

.before-text {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.before-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.before-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 站台公告 */
.section-notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--line-yellow);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 22px 24px;
}

.notice-body p {
  font-size: 14px;
  color: var(--paper-dim);
}

.notice-body p:last-child {
  margin-bottom: 0;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 首页 FAQ */
.faq-list {
  border-top: 1px solid var(--border);
}

/* ============================================================
   pages — 内页公共
   ============================================================ */

.page-title {
  padding: 0;
}

.page-title-line {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--lc, var(--line-red));
  margin: 0 0 14px;
}

.page-title-summary {
  font-size: 15px;
  color: var(--paper-dim);
  margin: 0;
  max-width: 76ch;
}

.page-title-kicker {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--line-cyan);
  margin-bottom: 8px;
}

.page-title-lead {
  font-size: 15px;
  color: var(--paper-dim);
  margin: 0;
  max-width: 76ch;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.layout-shell .page-layout {
  margin-top: 0;
}

.content-main {
  min-width: 0;
}

.page-aside,
.content-aside {
  min-width: 0;
  position: sticky;
  top: 92px;
}

.aside-block,
.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.aside-title {
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.aside-block p,
.aside-card p {
  font-size: 14px;
  color: var(--paper-dim);
}

.aside-block p:last-child,
.aside-card p:last-child {
  margin-bottom: 0;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.aside-links a {
  font-size: 14px;
  color: var(--line-cyan);
}

.aside-links a:hover {
  text-decoration: underline;
}

/* ============================================================
   pages — 题材线路
   ============================================================ */

.line-rule-note {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 24px;
}

.line-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 20px 22px;
  margin-bottom: 22px;
}

.line-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lc, var(--muted));
  margin-bottom: 14px;
}

.line-name {
  font-size: 19px;
  color: #fff;
}

.line-scope {
  font-size: 14px;
  color: var(--paper-dim);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.work-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ink);
  padding: 10px;
}

.work-cover {
  grid-row: 1 / span 2;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
}

.work-cover img {
  width: 56px;
  height: 74px;
  object-fit: cover;
}

.work-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.work-chapter {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.line-foot {
  margin: 0;
}

/* ============================================================
   pages — 更新时刻表
   ============================================================ */

.sort-control {
  margin-top: 20px;
}

.sort-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 14px 18px;
}

.sort-label {
  font-size: 14px;
  color: var(--paper-dim);
}

.sort-select {
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sort-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.content-media {
  margin: 18px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.content-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.group-title {
  font-size: 17px;
  color: #fff;
}

.group-count {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.update-group {
  margin-bottom: 24px;
}

/* ============================================================
   pages — 追更榜
   ============================================================ */

.ranking-scope {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 22px 24px;
  margin-top: 24px;
}

.scope-text h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.scope-text p {
  font-size: 15px;
  color: var(--paper-dim);
}

.scope-text p:last-child {
  margin-bottom: 0;
}

.scope-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.scope-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.ranking-dimensions {
  margin-top: 36px;
}

.ranking-dimensions > h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 72ch;
}

.ranking-dimensions .dimension-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ranking-dimensions .dimension-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 18px;
  align-items: start;
}

.ranking-dimensions .dimension-index {
  grid-row: 1 / span 3;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--line-cyan);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  padding-top: 2px;
}

.ranking-dimensions .dimension-name {
  margin-bottom: 4px;
}

.dimension-basis {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.dimension-view {
  margin: 6px 0 0;
  font-size: 14px;
}

.dimension-view a {
  color: var(--line-cyan);
}

.dimension-view a:hover {
  text-decoration: underline;
}

.dimension-foot {
  margin: 18px 0 0;
}

.ranking-notice {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--line-purple);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 20px 24px;
}

.ranking-notice h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.ranking-notice p {
  font-size: 14px;
  color: var(--paper-dim);
}

.notice-link {
  margin-bottom: 0;
}

.notice-link a {
  color: var(--line-cyan);
}

.notice-link a:hover {
  text-decoration: underline;
}

/* ============================================================
   pages — 阅读说明
   ============================================================ */

.page-shell {
  max-width: var(--shell-narrow);
  margin: 28px auto 0;
}

.reading-guide-shell .guide-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.guide-block h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.guide-block > p {
  font-size: 15px;
  color: var(--paper-dim);
}

.example-list {
  margin: 16px 0;
}

.example-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.example-item:last-child {
  border-bottom: 0;
}

.example-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--line-cyan);
  font-variant-numeric: tabular-nums;
  min-width: 108px;
}

.example-desc {
  font-size: 14px;
  color: var(--paper-dim);
}

.guide-figure {
  margin: 18px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.line-color-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.line-color-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ink);
  padding: 10px 12px;
}

.line-swatch {
  grid-row: 1 / span 2;
  width: 14px;
  height: 34px;
  border-radius: 2px;
  background: var(--lc, var(--muted));
}

.line-color-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.line-color-note {
  font-size: 12px;
  color: var(--muted);
}

.step-list {
  counter-reset: guide-step;
  margin: 14px 0;
}

.step-item {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 14px;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--border-soft);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--line-cyan);
  border-radius: 50%;
}

.tip-list {
  margin: 14px 0;
}

.tip-item {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 14px;
  color: var(--paper-dim);
}

.tip-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--line-green);
  border-radius: 2px;
}

.guide-inline-link {
  margin: 12px 0 0;
}

.guide-inline-link a {
  color: var(--line-cyan);
  font-size: 14px;
  font-weight: 600;
}

.guide-inline-link a:hover {
  text-decoration: underline;
}

.reading-guide-shell .guide-block-links .related-links {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ============================================================
   pages — 整理流程
   ============================================================ */

.step-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 24px 26px;
  margin-top: 24px;
}

.step-even .step-text {
  order: 2;
}

.step-even .step-media {
  order: 1;
}

.step-index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--line-yellow);
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  margin-bottom: 12px;
  font-weight: 700;
}

.step-text h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.step-text > p {
  font-size: 15px;
  color: var(--paper-dim);
}

.step-points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: var(--paper-dim);
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 2px;
  background: var(--line-cyan);
}

.step-media {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.step-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-media figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.quality-block {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 24px 26px;
}

.quality-block h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.quality-lead {
  font-size: 14px;
  color: var(--muted);
}

.quality-list {
  counter-reset: quality;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}

.quality-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ink);
  padding: 16px 18px;
}

.quality-list li h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.quality-list li h3::before {
  counter-increment: quality;
  content: counter(quality) " · ";
  color: var(--line-cyan);
}

.quality-list li p {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.quality-more {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
}

.quality-more a {
  color: var(--line-cyan);
  font-size: 14px;
  font-weight: 600;
}

.quality-more a:hover {
  text-decoration: underline;
}

.related-block {
  margin-top: 32px;
}

.related-block h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.related-block > p {
  font-size: 14px;
  color: var(--muted);
}

.related-block .related-links {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

/* ============================================================
   pages — 常见问题
   ============================================================ */

.faq-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 22px 24px;
  margin-top: 24px;
}

.faq-intro-text h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.faq-intro-text p {
  font-size: 15px;
  color: var(--paper-dim);
  margin: 0;
}

.faq-intro-text p a {
  color: var(--line-cyan);
}

.faq-intro-text p a:hover {
  text-decoration: underline;
}

.faq-intro-media {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.faq-intro-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.faq-intro-media figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.faq-list {
  margin-top: 32px;
}

.faq-list > h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.faq-entries {
  margin-top: 36px;
}

.faq-entries h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.faq-entries > p {
  font-size: 14px;
  color: var(--muted);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.entry-link {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 16px 18px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.entry-link:hover {
  border-color: var(--line-cyan);
  background: var(--ink-3);
}

.entry-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.entry-desc {
  display: block;
  font-size: 14px;
  color: var(--paper-dim);
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-hero {
  max-width: 640px;
}

.error-code {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--line-red);
  margin-bottom: 10px;
}

.error-title {
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--paper-dim);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--line-red);
  border-radius: var(--radius);
}

.error-home-link:hover {
  background: #cf3a3f;
  color: #fff;
}

.error-paths {
  margin-top: 44px;
}

.error-paths-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.error-path-list li a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--paper);
}

.error-path-list li a:hover {
  border-color: var(--line-cyan);
  background: var(--ink-3);
  color: #fff;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .primary-nav.site-nav {
    order: 3;
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-soft);
  }

  .line-picker {
    width: 100%;
  }

  .line-picker-summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .line-picker-list {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .line-picker-list li a.line-item {
    min-height: 48px;
  }

  .scope-note {
    text-align: left;
    margin-top: 8px;
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .layout-shell {
    padding: 0 16px 44px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-aside,
  .content-aside {
    position: static;
  }

  .hero {
    padding: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .line-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-row {
    grid-template-columns: 6px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    padding: 14px 16px 14px 0;
  }

  .route-color {
    grid-row: 1 / span 3;
  }

  .route-code {
    grid-column: 2;
  }

  .route-name {
    grid-column: 2;
  }

  .route-scope {
    grid-column: 2;
  }

  .update-row {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 12px;
  }

  .update-time {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .update-chapter {
    font-size: 12px;
  }

  .update-row .line-badge {
    grid-column: 2;
    justify-self: start;
  }

  .dimension-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .before-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ranking-scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px 20px;
  }

  .ranking-dimensions .dimension-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .ranking-dimensions .dimension-index {
    font-size: 19px;
  }

  .page-shell {
    margin-top: 22px;
  }

  .reading-guide-shell .guide-block {
    padding: 18px 20px;
  }

  .line-color-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .step-even .step-text,
  .step-even .step-media {
    order: 0;
  }

  .quality-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 20px;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    padding: 28px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .line-card a {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .line-card-cover img {
    width: 64px;
    height: 86px;
  }

  .work-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .work-cover img {
    width: 52px;
    height: 70px;
  }

  .notice-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .notice-actions .btn {
    width: 100%;
  }

  .example-code {
    min-width: 0;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-title {
    font-size: 26px;
  }
}
