:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #181c20;
  --text-soft: #5d666e;
  --line: #dfe3e6;
  --accent: #b4512a;
  --accent-soft: #f6e7de;
  --ongoing: #2f6f52;
  --finished: #4a5560;
  --cover-gray: #e8ebed;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(24, 28, 32, 0.06);
  --font: -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1120px;
  --header-h: 64px;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* ==========================================================================
   layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  padding-bottom: 56px;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 10px;
  height: 12px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 1px;
}

.brand-name {
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 6px 10px;
  color: var(--text-soft);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */
.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 32px 0;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ==========================================================================
   components
   ========================================================================== */

/* 状态标签 */
.status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--ongoing);
  background: #e7f1eb;
  border-color: #cfe3d8;
}

.status-completed {
  color: var(--finished);
  background: #eceef0;
  border-color: #dbe0e4;
}

.status-irregular {
  color: #8a5a1c;
  background: #f7edda;
  border-color: #ecdcbe;
}

.status-chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  white-space: nowrap;
}

.status-chip.status-ongoing {
  color: var(--ongoing);
  border-color: #cfe3d8;
  background: #e7f1eb;
}

.status-chip.status-finished {
  color: var(--finished);
  border-color: #dbe0e4;
  background: #eceef0;
}

.status-chip.status-irregular {
  color: #8a5a1c;
  border-color: #ecdcbe;
  background: #f7edda;
}

/* 题材标签 */
.chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

/* 文字链接 */
.text-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.text-link::after {
  content: " →";
  font-size: 12px;
}

.text-link:hover {
  text-decoration: underline;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #9c4523;
  border-color: #9c4523;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--accent);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.field-table,
.fields-table {
  width: 100%;
  font-size: 14px;
  min-width: 560px;
}

.data-table thead th,
.field-table thead th,
.fields-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
  background: #fbfbfc;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td,
.field-table tbody td,
.fields-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}

.data-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.fields-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.field-table tbody tr:hover,
.fields-table tbody tr:hover {
  background: #fafbfb;
}

.data-table .cell-name {
  font-weight: 500;
}

.data-table .cell-date,
.field-table .cell-example {
  color: var(--text-soft);
  white-space: nowrap;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

/* 编号步骤 */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.step-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* 折叠问答 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 12px 0 14px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  border-top: 1px solid var(--line);
}

/* 相关入口列表 */
.related-list {
  display: grid;
  gap: 8px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.related-note {
  font-size: 13px;
  color: var(--text-soft);
}

/* 通用章节头 */
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head-text {
  min-width: 0;
}

.section-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  margin-top: 2px;
}

.section-title {
  font-size: 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-lead,
.section-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 760px;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 760px;
}

.section-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  padding-bottom: 8px;
}

.hero {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.hero-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-overview {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.overview-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.overview-list {
  margin: 0 0 16px;
  display: grid;
  gap: 0;
}

.overview-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.overview-row:last-child {
  border-bottom: 0;
}

.overview-row dt {
  color: var(--text-soft);
  flex-shrink: 0;
}

.overview-row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 500;
}

.overview-figure {
  border-radius: 6px;
  overflow: hidden;
  background: var(--cover-gray);
}

.overview-figure img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

/* 首页章节 */
.chapter {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.chapter:last-of-type {
  border-bottom: 0;
}

.chapter-head {
  margin-bottom: 20px;
}

.chapter-head .chapter-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.chapter-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.chapter-summary {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 780px;
}

.chapter-foot {
  margin-top: 16px;
  text-align: right;
}

/* 题材目录索引 */
.genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.genre-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.genre-main {
  min-width: 0;
  flex: 1 1 auto;
}

.genre-name {
  font-size: 15px;
  margin-bottom: 3px;
}

.genre-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.genre-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

.genre-count {
  white-space: nowrap;
}

/* 首页最近更新表 */
.chapter .table-wrap {
  margin-top: 4px;
}

/* 首页榜单双列 */
.ranking-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.ranking-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.ranking-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.ranking-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.rank-list {
  display: grid;
  gap: 0;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 0;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex-shrink: 0;
  width: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

.rank-item:nth-child(-n + 3) .rank-no {
  color: var(--accent);
}

.rank-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-genre {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.rank-item .status {
  flex-shrink: 0;
}

/* 首页专题卡 */
.topic-cards {
  display: grid;
  gap: 16px;
}

.topic-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.topic-figure {
  background: var(--cover-gray);
  min-height: 100%;
}

.topic-figure img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.topic-body {
  min-width: 0;
  padding: 16px 20px 16px 0;
}

.topic-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 8px;
}

.topic-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 首页阅读说明与纠错入口 */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-links {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.guide-link {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.guide-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.guide-link-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.guide-link-desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ==========================================================================
   pages — 内页公共
   ========================================================================== */

.page-head {
  margin: 12px 0 24px;
}

.page-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 800px;
}

.page-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.page-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages — 漫画目录
   ========================================================================== */

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.aside-title {
  font-size: 14px;
  margin-bottom: 10px;
}

.aside-list {
  display: grid;
  gap: 8px;
}

.aside-list a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.aside-list li:last-child a {
  border-bottom: 0;
}

.genre-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.genre-section:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.genre-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.genre-summary {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.entry-cover {
  width: 64px;
  height: 88px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cover-gray);
}

.entry-cover img {
  width: 64px;
  height: 88px;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.entry-name {
  font-size: 14px;
  margin-bottom: 1px;
}

.entry-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.entry-updated {
  white-space: nowrap;
}

.entry-link {
  font-size: 13px;
  margin-top: 2px;
}

.field-section {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.field-section .section-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.field-section .section-lead {
  margin-bottom: 14px;
}

/* ==========================================================================
   pages — 最近更新
   ========================================================================== */

.page-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
}

.page-head-text {
  min-width: 0;
}

.page-head-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
}

.page-head-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.page-head-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--cover-gray);
}

.page-head-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-head-media figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.schedule-bar {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.schedule-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 14px;
}

.schedule-bar-item {
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}

.schedule-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.schedule-bar-item p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

.update-group {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.update-group:last-of-type {
  border-bottom: 0;
}

.update-group .section-title {
  font-size: 18px;
}

.update-rules {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rules-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.rules-col-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.rules-list {
  display: grid;
  gap: 8px;
}

.rules-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.update-rules-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages — 读者榜单
   ========================================================================== */

.page-hero {
  padding: 8px 0 32px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
}

.page-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-hero-figure {
  border-radius: 8px;
  overflow: hidden;
  background: var(--cover-gray);
}

.page-hero-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.page-hero-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section-rules .rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.rule-cell {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.rule-cell-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.rule-cell-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}

.board-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.board-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.board-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.board-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.board-list {
  display: grid;
  gap: 0;
}

.board-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 0;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-rank {
  grid-row: span 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

.board-row:nth-child(-n + 3) .board-rank {
  color: var(--accent);
}

.board-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-tag {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.board-tag .status-tag {
  display: inline-block;
  padding: 0 6px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: var(--bg);
  white-space: nowrap;
}

.board-tag .status-tag.status-ongoing {
  color: var(--ongoing);
  border-color: #cfe3d8;
  background: #e7f1eb;
}

.board-tag .status-tag.status-finished {
  color: var(--finished);
  border-color: #dbe0e4;
  background: #eceef0;
}

.board-tag .status-tag.status-irregular {
  color: #8a5a1c;
  border-color: #ecdcbe;
  background: #f7edda;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cycle-cell {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cycle-cell-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.cycle-cell p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.cycle-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.section-related .related-list {
  margin-top: 14px;
}

/* ==========================================================================
   pages — 题材专题
   ========================================================================== */

.topic-feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.topic-feature-media {
  min-width: 0;
}

.topic-feature-media .topic-figure {
  height: 100%;
  background: var(--cover-gray);
}

.topic-feature-media .topic-figure img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.topic-figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.topic-feature-body {
  min-width: 0;
  padding: 20px 24px 20px 0;
}

.topic-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.topic-summary {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-feature-body .topic-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-feature-body .topic-meta dt {
  color: var(--text-soft);
  white-space: nowrap;
}

.topic-feature-body .topic-meta dd {
  margin: 0;
  color: var(--text);
}

.topic-subtitle {
  font-size: 14px;
  margin-bottom: 8px;
}

.topic-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.topic-related a {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-soft);
}

.topic-related a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.topic-entry {
  font-size: 14px;
}

.topic-archive {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.topic-archive h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.archive-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.archive-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.archive-name {
  font-weight: 500;
  min-width: 0;
}

.archive-month {
  font-size: 13px;
  color: var(--text-soft);
}

.archive-count {
  font-size: 13px;
  color: var(--text-soft);
}

.archive-item a {
  margin-left: auto;
  font-size: 13px;
}

.topic-scope {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.topic-scope h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-scope p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 800px;
}

.scope-rules {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.scope-rules li {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.scope-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.scope-rules strong {
  color: var(--text);
  font-weight: 600;
}

.scope-note {
  font-size: 13px;
}

/* ==========================================================================
   pages — 阅读说明
   ========================================================================== */

.guide-figure {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cover-gray);
}

.guide-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.guide-figure-caption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.guide-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-heading .section-title {
  font-size: 18px;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.guide-columns-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.guide-col-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.guide-col p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.guide-list {
  display: grid;
  gap: 8px;
}

.guide-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.guide-section .faq-list {
  margin-top: 14px;
}

/* ==========================================================================
   pages — 条目纠错
   ========================================================================== */

.section-fields,
.section-locate,
.section-steps,
.section-faq,
.section-related {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.section-fields {
  border-top: 0;
}

.locate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.locate-item {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.locate-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.locate-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.locate-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.section-steps .step-list {
  margin-top: 16px;
  max-width: 820px;
}

.section-faq .faq-list {
  margin-top: 16px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
}

.error-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.error-title {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}

.error-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.error-note {
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  flex-shrink: 0;
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.footer-brand {
  min-width: 0;
  max-width: 360px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-nav {
  min-width: 0;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav-list a {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-nav-list a:hover {
  color: var(--accent);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
}

.footer-index-group {
  min-width: 0;
}

.footer-index-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-index-list a {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-index-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

.footer-note {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-note a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-note a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-soft);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .container,
  .header-inner,
  .breadcrumb,
  .page-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-overview {
    max-width: 560px;
  }

  .genre-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ranking-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .topic-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside {
    position: static;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .schedule-bar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .section-rules .rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .boards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-feature {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .guide-columns,
  .guide-columns-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .locate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }

  body {
    font-size: 15px;
  }

  .container,
  .header-inner,
  .breadcrumb,
  .page-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(24, 28, 32, 0.08);
    padding: 8px 16px 12px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-size: 15px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    color: var(--accent);
  }

  .nav-list li:last-child .nav-link {
    border-bottom: 0;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12px;
  }

  .page-header {
    padding-top: 8px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .hero {
    padding: 28px 0 28px;
  }

  .hero-text h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .hero-overview {
    padding: 16px;
  }

  .overview-figure img {
    height: 110px;
  }

  .chapter {
    padding: 32px 0;
  }

  .chapter-head h2 {
    font-size: 18px;
  }

  .chapter-summary {
    font-size: 13px;
  }

  .genre-item {
    flex-direction: column;
    gap: 6px;
  }

  .genre-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .topic-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .topic-card .topic-figure img {
    height: 160px;
    min-height: 0;
  }

  .topic-body {
    padding: 14px 16px 16px;
  }

  .rank-name,
  .board-name {
    white-space: normal;
  }

  .topic-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .topic-feature-media .topic-figure img {
    height: 180px;
    min-height: 0;
  }

  .topic-feature-body {
    padding: 16px;
  }

  .topic-feature-body .topic-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .topic-feature-body .topic-meta dt {
    margin-top: 6px;
  }

  .archive-item {
    gap: 4px 12px;
  }

  .archive-item a {
    margin-left: 0;
  }

  .schedule-bar-grid {
    gap: 14px;
  }

  .cycle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .entry-cover,
  .entry-cover img {
    width: 56px;
    height: 76px;
  }

  .page-head-media img,
  .page-hero-figure img,
  .guide-figure img {
    height: 160px;
  }

  .error-main {
    padding: 40px 0 56px;
  }

  .error-inner {
    padding: 0 16px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table,
  .field-table,
  .fields-table {
    min-width: 0;
  }

  .data-table thead,
  .field-table thead,
  .fields-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .field-table,
  .field-table tbody,
  .fields-table,
  .fields-table tbody {
    display: block;
    width: 100%;
  }

  .data-table tbody tr,
  .field-table tbody tr,
  .fields-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .data-table tbody tr:last-child,
  .field-table tbody tr:last-child,
  .fields-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table tbody td,
  .field-table tbody td,
  .fields-table tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
    min-width: 0;
    word-break: break-word;
  }

  .data-table tbody td:first-child,
  .field-table tbody td:first-child,
  .fields-table tbody td:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .data-table tbody td:first-child::before,
  .field-table tbody td:first-child::before,
  .fields-table tbody td:first-child::before {
    content: none;
  }

  .data-table tbody td:not(:first-child)::before,
  .field-table tbody td:not(:first-child)::before,
  .fields-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--text-soft);
    margin-bottom: 1px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-nav-list {
    gap: 6px 14px;
  }

  .footer-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}
