/* ============================================================
   漫画之家 · yuerjiaoliu.com
   全站样式表
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ============================================================
   base · 基础与变量
   ============================================================ */

:root {
  --paper: #f6f7f9;
  --ink: #1c2026;
  --ink-sub: #5b636e;
  --accent: #3457a6;
  --topic-1: #6f8f4e;
  --topic-2: #a8623f;
  --topic-3: #5b7fa6;
  --topic-4: #8a5f9e;
  --line: #dfe3e8;
  --surface: #ffffff;
  --surface-alt: #eef0f4;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --read: 720px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #24407d;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   layout · 全站骨架：事实条 / 页头 / 导航 / 主容器 / 页脚
   ============================================================ */

/* 顶部事实条（首页） */
.site-factbar {
  background-color: var(--ink);
  color: #e8ebef;
  border-bottom: 1px solid #0f1216;
}

.site-factbar p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #cfd5dd;
}

/* 内页事实条 */
.fact-bar {
  background-color: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.fact-text {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-sub);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-sub);
  font-weight: 400;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  background-color: var(--surface-alt);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* 汉堡按钮：桌面隐藏，移动端显示 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  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-color: var(--ink);
  border-radius: 2px;
}

/* 主内容区 */
.site-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 18px;
}

/* 页脚 */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px 26px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.6;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-sub);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================================
   components · 通用模块
   ============================================================ */

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead,
.section-intro,
.section-text,
.section-desc {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 1.75;
  max-width: var(--read);
  margin-bottom: 18px;
}

.column-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.more-link:hover,
.more-link:focus-visible {
  color: #24407d;
  border-bottom-color: #24407d;
}

/* 状态标签 */
.status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface-alt);
  color: var(--ink-sub);
}

.status-ongoing {
  color: #3f5a2b;
  background-color: #eef4e6;
  border-color: #cfdcbc;
}

.status-completed {
  color: #2f4a70;
  background-color: #e9eff8;
  border-color: #c7d6ea;
}

.status-paused {
  color: #7a4a33;
  background-color: #f7ece6;
  border-color: #e6cfc2;
}

/* 题材色标 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface-alt);
  color: var(--ink-sub);
}

.tag-topic-1 {
  color: #46602c;
  background-color: #edf3e5;
  border-color: #cadcb4;
}

.tag-topic-2 {
  color: #7d4529;
  background-color: #f8ece5;
  border-color: #e5cec0;
}

.tag-topic-3 {
  color: #33536f;
  background-color: #e9f0f6;
  border-color: #c4d6e5;
}

.tag-topic-4 {
  color: #5c3f6d;
  background-color: #f1eaf5;
  border-color: #d9c8e2;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 14px;
  font-size: 13px;
  color: var(--ink-sub);
}

.breadcrumb a {
  color: var(--ink-sub);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #a8b0ba;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

/* 页面标题区 */
.page-header {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 1.75;
  max-width: var(--read);
}

/* ============================================================
   pages · 首页
   ============================================================ */

/* 首屏 */
.hero {
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  max-width: 520px;
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-entries li {
  display: block;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-link:hover,
.entry-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background-color: #f2f5fb;
}

.hero-visual {
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.hero-visual img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-caption {
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.hero-tags li {
  display: block;
}

/* 题材方向总览 */
.topics-overview {
  margin-bottom: 38px;
}

.topic-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 15px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.topic-column.topic-1 {
  border-top-color: var(--topic-1);
}

.topic-column.topic-2 {
  border-top-color: var(--topic-2);
}

.topic-column.topic-3 {
  border-top-color: var(--topic-3);
}

.topic-column.topic-4 {
  border-top-color: var(--topic-4);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
}

.topic-scope {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
}

.topic-status {
  font-size: 13px;
  color: var(--ink-sub);
  padding: 5px 9px;
  background-color: var(--surface-alt);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.topic-picks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.topic-picks li {
  display: block;
}

.topic-picks a {
  font-size: 14px;
  line-height: 1.6;
  display: inline-block;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--accent);
}

.topic-picks a:hover,
.topic-picks a:focus-visible {
  color: #24407d;
  border-bottom-color: var(--accent);
}

/* 封面条目速览 */
.cover-browse {
  margin-bottom: 38px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--topic-3);
  box-shadow: 0 2px 8px rgba(28, 32, 38, 0.07);
}

.cover-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--surface-alt);
}

.cover-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* 最近更新批次记录 */
.updates-brief {
  margin-bottom: 38px;
}

.batch-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.batch-group {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.batch-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.batch-list {
  display: flex;
  flex-direction: column;
}

.batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.batch-row:last-child {
  border-bottom: 0;
}

.row-name {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.row-topic {
  color: var(--ink-sub);
  font-size: 13px;
  min-width: 0;
}

.row-progress {
  color: var(--ink-sub);
  font-size: 13px;
  min-width: 0;
}

.row-time {
  color: var(--ink-sub);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
}

.section-more {
  margin-top: 14px;
}

/* 人气位次参考与条目字段口径摘要 */
.rank-and-fields {
  margin-bottom: 38px;
}

.rank-fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.rank-column,
.fields-column {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 0.6fr) 62px;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rank-name {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.rank-topic {
  color: var(--ink-sub);
  font-size: 13px;
  min-width: 0;
}

.rank-mark {
  font-size: 12px;
  text-align: right;
  color: var(--ink-sub);
}

.rank-up {
  color: #46602c;
}

.rank-down {
  color: #7d4529;
}

.rank-hold {
  color: var(--ink-sub);
}

.column-more {
  margin-top: 12px;
}

.field-brief {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field-desc {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  min-width: 0;
}

/* 查阅路径与反馈 */
.read-path {
  margin-bottom: 38px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  min-width: 0;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-name {
  font-size: 16px;
  font-weight: 700;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
}

.feedback-block {
  padding: 16px 18px;
  background-color: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
  max-width: var(--read);
}

.feedback-note {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  margin-top: 8px;
  max-width: var(--read);
}

/* 站内栏目索引 */
.site-index {
  margin-bottom: 10px;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.index-name:hover,
.index-name:focus-visible {
  color: #24407d;
}

.index-desc {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ============================================================
   pages · 题材分类
   ============================================================ */

.topic-overview {
  margin-bottom: 30px;
}

.overview-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.overview-point {
  padding: 14px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--topic-3);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
  min-width: 0;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.topic-row-main {
  min-width: 0;
}

.topic-row-main .section-title {
  margin-bottom: 8px;
}

.topic-note {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  margin-top: 8px;
}

.topic-row-side {
  min-width: 0;
}

.topic-row-side .topic-status {
  display: inline-block;
  margin-bottom: 12px;
}

.topic-row-side .topic-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.18s ease;
}

.topic-pick:hover {
  border-color: var(--topic-3);
}

.pick-media {
  min-width: 0;
}

.pick-media img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--surface-alt);
}

.pick-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.pick-name a {
  color: var(--ink);
}

.pick-name a:hover,
.pick-name a:focus-visible {
  color: var(--accent);
}

.pick-meta {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.65;
}

.topic-row-daily {
  border-top: 3px solid var(--topic-1);
}

.topic-row-action {
  border-top: 3px solid var(--topic-2);
}

.topic-row-mystery {
  border-top: 3px solid var(--topic-3);
}

.topic-row-fantasy {
  border-top: 3px solid var(--topic-4);
}

.topic-batch-map {
  padding: 26px 0 10px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.batch-map-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
}

.batch-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.batch-map-row:last-child {
  border-bottom: 0;
}

.batch-map-head {
  background-color: var(--surface-alt);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.batch-map-cell {
  min-width: 0;
  color: var(--ink-sub);
  line-height: 1.7;
}

.batch-map-head .batch-map-cell {
  color: var(--ink);
}

.topic-related {
  padding: 26px 0 6px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
}

.related-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.related-desc {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ============================================================
   pages · 最近更新
   ============================================================ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.section {
  min-width: 0;
}

.section + .section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.rule-item {
  padding: 10px 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--topic-3);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
}

.rule-key {
  font-weight: 700;
  color: var(--ink);
}

.section-batch-list .batch-group {
  margin-bottom: 14px;
}

.section-batch-list .batch-group:last-child {
  margin-bottom: 0;
}

.section-batch-list .batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.batch-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sub);
  letter-spacing: 0.3px;
}

.batch-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface-alt);
  color: var(--ink-sub);
}

.status-tag--new {
  color: #3f5a2b;
  background-color: #eef4e6;
  border-color: #cfdcbc;
}

.status-tag--update {
  color: #2f4a70;
  background-color: #e9eff8;
  border-color: #c7d6ea;
}

.status-tag--field {
  color: #7a4a33;
  background-color: #f7ece6;
  border-color: #e6cfc2;
}

.batch-records {
  display: flex;
  flex-direction: column;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.record-row:last-child {
  border-bottom: 0;
}

.record-name {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.record-topic {
  color: var(--ink-sub);
  font-size: 13px;
  min-width: 0;
}

.record-progress {
  color: var(--ink-sub);
  font-size: 13px;
  min-width: 0;
}

.record-time {
  color: var(--ink-sub);
  text-align: right;
  min-width: 0;
}

.status-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.status-legend-row:last-child {
  border-bottom: 0;
}

.status-legend-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
  min-width: 0;
}

.section-update-media {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-update-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--surface-alt);
}

.figure-caption {
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  max-width: var(--read);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.related-item:hover {
  border-color: var(--accent);
}

.related-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.related-note {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  min-width: 0;
}

/* ============================================================
   pages · 人气位次
   ============================================================ */

.rank-scope {
  min-width: 0;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scope-item {
  padding: 14px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--topic-3);
  border-radius: var(--radius);
  min-width: 0;
}

.scope-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scope-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
}

.rank-board {
  min-width: 0;
}

.rank-group {
  margin-bottom: 18px;
  padding: 14px 16px 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-group:last-child {
  margin-bottom: 0;
}

.rank-group-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.rank-board .rank-row {
  grid-template-columns: 34px 56px minmax(0, 1fr) minmax(0, 0.6fr) 62px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.rank-thumb {
  width: 56px;
  min-width: 56px;
}

.rank-thumb img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--surface-alt);
}

.rank-tag {
  font-size: 13px;
  color: var(--ink-sub);
  min-width: 0;
}

.rank-move {
  font-size: 12px;
  text-align: right;
  color: var(--ink-sub);
}

.rank-move.is-up {
  color: #46602c;
}

.rank-move.is-down {
  color: #7d4529;
}

.rank-move.is-flat {
  color: var(--ink-sub);
}

.rank-move.is-new {
  color: var(--accent);
  font-weight: 700;
}

.rank-pace {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.pace-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.entry-title {
  font-size: 16px;
  font-weight: 700;
}

.entry-title a {
  color: var(--accent);
}

.entry-title a:hover,
.entry-title a:focus-visible {
  color: #24407d;
}

.entry-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
}

/* ============================================================
   pages · 条目字段说明
   ============================================================ */

.fields-section {
  margin-bottom: 30px;
}

.fields-figure {
  margin-bottom: 20px;
}

.fields-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--surface-alt);
}

.fields-figure figcaption {
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  max-width: var(--read);
}

.fields-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
}

.fields-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.fields-row:last-child {
  border-bottom: 0;
}

.fields-row-head {
  background-color: var(--surface-alt);
  font-weight: 700;
  font-size: 13px;
}

.fields-cell {
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.fields-row-head .fields-cell {
  color: var(--ink);
}

.fields-cell-name {
  font-weight: 700;
  color: var(--ink);
}

.boundary-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: 30px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.boundary-item {
  padding: 14px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--topic-2);
  border-radius: var(--radius);
  min-width: 0;
}

.boundary-item-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.boundary-item-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
}

.path-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: 30px;
}

.path-section .path-steps {
  margin-bottom: 18px;
}

.path-section .path-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  min-width: 0;
}

.path-step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.path-step-title {
  font-size: 16px;
  font-weight: 700;
}

.path-step-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
}

.path-step-text a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.path-step-text a:hover,
.path-step-text a:focus-visible {
  color: #24407d;
  border-bottom-color: #24407d;
}

.feedback-block .feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-block .feedback-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.75;
  max-width: var(--read);
}

.feedback-block .feedback-note {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
  margin-top: 8px;
  max-width: var(--read);
}

.related-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-section .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-section .related-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.related-section .related-item:hover,
.related-section .related-item:focus-visible {
  border-color: var(--accent);
}

.related-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.related-item-text {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ============================================================
   pages · 404
   ============================================================ */

.error-main {
  padding-top: 40px;
  padding-bottom: 60px;
}

.error-panel {
  max-width: 720px;
  padding: 28px 26px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 1.8;
  margin-bottom: 18px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.error-list li {
  display: block;
}

.error-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.error-list a:hover,
.error-list a:focus-visible {
  color: #24407d;
  border-bottom-color: var(--accent);
}

.error-actions {
  padding-top: 4px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent);
  border-radius: var(--radius);
}

.error-home-link:hover,
.error-home-link:focus-visible {
  color: #ffffff;
  background-color: #24407d;
}

/* 内容区块进入视口的轻微上移淡入（纯增强，不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .topics-overview,
  .cover-browse,
  .updates-brief,
  .rank-and-fields,
  .read-path,
  .site-index {
    animation: section-rise 0.4s ease-out both;
  }

  .cover-browse {
    animation-delay: 0.05s;
  }

  .updates-brief {
    animation-delay: 0.1s;
  }

  .rank-and-fields {
    animation-delay: 0.15s;
  }
}

@keyframes section-rise {
  from {
    transform: translateY(8px);
    opacity: 0.001;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   responsive · 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }

  .site-main {
    padding: 0 20px 48px;
  }

  .footer-inner {
    padding: 32px 20px 24px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-visual img {
    height: 232px;
  }

  .topic-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .scope-list,
  .pace-entries,
  .boundary-list,
  .overview-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-row {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }
}

/* ============================================================
   responsive · 640px
   ============================================================ */

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .site-factbar p,
  .fact-text {
    padding: 8px 16px;
    font-size: 12px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
    min-height: 58px;
  }

  /* 汉堡菜单：仅隐藏 .nav-list 本身，由 .nav-list.is-open 展开 */
  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(28, 32, 38, 0.08);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.24s ease;
  }

  .nav-list.is-open {
    max-height: 360px;
    overflow: auto;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    font-size: 15px;
  }

  .nav-link.is-current {
    border-bottom: 0;
    border-left-color: var(--accent);
    background-color: var(--surface-alt);
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .inner-main {
    padding-top: 14px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .column-title {
    font-size: 16px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  /* 首页首屏：主视觉在上、文字在下 */
  .hero {
    padding: 18px 0 24px;
    margin-bottom: 26px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    height: 200px;
  }

  .hero-entries {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    justify-content: center;
    width: 100%;
  }

  .topic-columns,
  .cover-grid,
  .index-columns,
  .scope-list,
  .pace-entries,
  .boundary-list,
  .overview-points,
  .path-steps,
  .related-grid,
  .related-section .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-row-side .topic-picks {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card img {
    height: 186px;
  }

  .pick-media img {
    height: 168px;
  }

  /* 更新清单行改为两列堆叠 */
  .batch-row,
  .record-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    padding: 10px 0;
  }

  .row-name,
  .record-name {
    grid-column: 1 / -1;
  }

  .row-time,
  .record-time {
    text-align: left;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr) 58px;
    gap: 4px 10px;
  }

  .rank-row .rank-topic {
    grid-column: 2 / 3;
  }

  .rank-board .rank-row {
    grid-template-columns: 30px 52px minmax(0, 1fr) 56px;
    align-items: center;
  }

  .rank-board .rank-row .rank-tag {
    grid-column: 3 / 4;
  }

  .rank-board .rank-row .rank-move {
    grid-column: 4 / 5;
  }

  .rank-thumb,
  .rank-thumb img {
    width: 52px;
    min-width: 52px;
  }

  .rank-thumb img {
    height: 40px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .batch-map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .batch-map-head {
    display: none;
  }

  .fields-table {
    border: 0;
    background-color: transparent;
    overflow: visible;
  }

  .fields-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
  }

  .fields-row:last-child {
    margin-bottom: 0;
  }

  .fields-row-head {
    display: none;
  }

  .fields-cell {
    font-size: 13px;
  }

  .fields-cell-name {
    font-size: 15px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--line);
  }

  .section-update-media img,
  .fields-figure img {
    height: 200px;
  }

  .related-item {
    flex-direction: column;
    gap: 4px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .error-panel {
    padding: 22px 18px;
  }
}
