/* ==========================================================================
   漫画之家 qawnsv.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --line-red: #d7263d;
  --line-blue: #1b6ca8;
  --line-green: #2e8b57;
  --line-yellow: #f2b705;
  --gray-bg: #f4f5f7;
  --gray-line: #dfe3e8;
  --gray-soft: #eceef1;
  --ink: #1f2329;
  --ink-soft: #4b5560;
  --ink-mute: #6b7480;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 35, 41, 0.1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --wrap: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--gray-bg);
  -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;
}

a {
  color: var(--line-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--line-red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--line-blue);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   layout — 骨架：顶部事实条、页头、主导航、主容器、页脚
   -------------------------------------------------------------------------- */

/* 顶部事实条（仅首页） */
.fact-bar {
  background-color: var(--ink);
  color: #e8eaed;
}

.fact-bar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background-color: var(--line-blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  background-color: var(--gray-bg);
  color: var(--line-blue);
}

.nav-list > li > a.is-current {
  color: var(--line-blue);
  font-weight: 700;
  background-color: rgba(27, 108, 168, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink);
  font-size: 0;
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* 主容器 */
.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.home-main {
  padding-bottom: 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--line-blue);
}

.breadcrumb-sep {
  color: var(--ink-mute);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

/* 内页标题区 */
.page-header {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-description a {
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: #c8cdd4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1.3fr;
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  display: inline-block;
  min-height: 28px;
  color: #c8cdd4;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
}

.footer-text {
  font-size: 14px;
  line-height: 1.75;
  color: #a9b1ba;
}

.footer-text + .footer-text {
  margin-top: 10px;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-links a {
  color: #c8cdd4;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 24px;
  font-size: 13px;
  color: #8b939d;
}

/* --------------------------------------------------------------------------
   components — 通用组件：section 头、按钮、标签、卡片、表格、步骤、FAQ
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 10px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-more {
  margin-top: 18px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--line-blue);
}

.link-more::after {
  content: "\2192";
  font-size: 14px;
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--line-red);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.btn-primary {
  background-color: var(--line-red);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #b81e33;
  color: var(--white);
}

.btn-ghost {
  border-color: var(--gray-line);
  background-color: var(--white);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background-color: var(--gray-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.tag-hot,
.tag-sus,
.tag-shonen {
  background-color: rgba(215, 38, 61, 0.1);
  color: #b81e33;
}

.tag-day,
.tag-daily,
.tag-slice {
  background-color: rgba(46, 139, 87, 0.12);
  color: #1f6b42;
}

.tag-fan,
.tag-fantasy {
  background-color: rgba(27, 108, 168, 0.12);
  color: #155a8c;
}

.tag-run,
.tag-serial,
.tag-suspense {
  background-color: rgba(242, 183, 5, 0.18);
  color: #8a6600;
}

.tag-done,
.tag-pause {
  background-color: var(--gray-soft);
  color: var(--ink-mute);
}

/* 表格 */
.field-table,
.compare-table {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-caption,
.field-table-caption,
.table-caption,
.compare-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  background-color: var(--gray-bg);
  border-bottom: 1px solid var(--gray-line);
}

.field-table th,
.field-table td,
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--gray-line);
  vertical-align: top;
}

.field-table thead th,
.compare-table thead th {
  background-color: var(--gray-bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th,
.compare-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.field-name {
  color: var(--ink);
  font-weight: 600;
}

/* 步骤条（首页字段区） */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-step {
  position: relative;
  padding: 14px 16px 14px 52px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.help-step .step-no {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--line-blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.help-step .step-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.help-step .step-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 更新状态标记 */
.is-new,
.is-update,
.is-live {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background-color: rgba(215, 38, 61, 0.1);
  color: #b81e33;
  font-size: 12px;
  line-height: 1;
}

.is-ongoing {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background-color: rgba(46, 139, 87, 0.12);
  color: #1f6b42;
  font-size: 12px;
  line-height: 1;
}

.is-paused {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background-color: var(--gray-soft);
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  background-color: rgba(27, 108, 168, 0.1);
  color: var(--line-blue);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.hero-text {
  margin-top: 14px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  margin: 22px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--gray-line);
}

/* 首屏右侧需求分流 */
.hero-demand {
  min-width: 0;
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  align-self: start;
}

.hero-demand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.demand-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.demand-item {
  padding-top: 16px;
  border-top: 1px solid var(--gray-line);
}

.demand-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.demand-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.demand-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.demand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
}

.demand-link::after {
  content: "\2192";
}

.demand-link:hover,
.demand-link:focus-visible {
  color: var(--line-red);
}

/* 题材线路目录 */
.topics-line {
  max-width: var(--wrap);
  margin: 0 auto 48px;
  padding: 0 20px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.topic-group {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.topic-media {
  margin: 0 0 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--gray-soft);
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.topic-scope {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topic-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-line);
}

.topic-items a {
  display: block;
  min-height: 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--line-blue);
}

.topic-items a:hover,
.topic-items a:focus-visible {
  color: var(--line-red);
}

/* 更新日历 + 今日推荐并列区 */
.dual-section {
  max-width: var(--wrap);
  margin: 0 auto 48px;
  padding: 0 20px;
}

.dual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 20px;
}

.dual-col {
  min-width: 0;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.col-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.col-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.update-row {
  display: grid;
  grid-template-columns: 76px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray-line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row .update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.update-row .update-batch {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-blue);
}

.update-row .update-topic {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-row .update-entry {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.col-more {
  margin-top: 16px;
}

/* 今日推荐卡片网格 */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.comic-card {
  display: flex;
  flex-direction: column;
  background-color: var(--gray-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comic-card:hover,
.comic-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-media {
  margin: 0;
  background-color: var(--gray-soft);
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-name {
  padding: 10px 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.card-tags {
  padding: 6px 12px 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 8px 12px 12px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
}

.card-link:hover,
.card-link:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

/* 条目字段摘要 + 阅读帮助 */
.field-section {
  max-width: var(--wrap);
  margin: 0 auto 48px;
  padding: 0 20px;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.field-col {
  min-width: 0;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.field-table-col .field-table {
  margin-top: 14px;
}

.field-steps-col .help-steps {
  margin-top: 14px;
}

.code-inline {
  padding: 1px 6px;
  border-radius: 3px;
  background-color: var(--gray-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

/* 站内栏目索引 */
.sitemap-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.sitemap-item {
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.sitemap-link {
  display: inline-block;
  min-height: 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--line-blue);
}

.sitemap-link:hover,
.sitemap-link:focus-visible {
  color: var(--line-red);
}

.sitemap-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages — 题材目录
   -------------------------------------------------------------------------- */

.topic-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.topic-overview-card {
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-top-width: 4px;
  border-radius: var(--radius);
}

.topic-line-red {
  border-top-color: var(--line-red);
}

.topic-line-blue {
  border-top-color: var(--line-blue);
}

.topic-line-green {
  border-top-color: var(--line-green);
}

.topic-line-yellow {
  border-top-color: var(--line-yellow);
}

.topic-overview-card .topic-name {
  font-size: 17px;
}

.topic-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topics-index {
  margin-bottom: 48px;
}

.topics-index .topic-group {
  margin-top: 24px;
  padding: 0;
  background-color: transparent;
  border: 0;
}

.topic-group-title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-blue);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-line);
}

.entry-cover {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--gray-soft);
}

.entry-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.entry-main {
  min-width: 0;
}

.entry-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.entry-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
}

.entry-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-chapter {
  min-width: 0;
  text-align: right;
}

.entry-chapter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
  white-space: nowrap;
}

.entry-chapter a:hover,
.entry-chapter a:focus-visible {
  background-color: var(--line-blue);
  color: var(--white);
}

.topics-compare {
  margin-bottom: 48px;
}

.topics-compare .compare-table {
  margin-top: 18px;
}

.topics-next {
  margin-bottom: 48px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-left-width: 4px;
  border-radius: var(--radius);
  color: var(--ink);
}

.next-card-updates {
  border-left-color: var(--line-green);
}

.next-card-ranking {
  border-left-color: var(--line-yellow);
}

.next-card:hover,
.next-card:focus-visible {
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.next-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--line-blue);
}

.next-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages — 更新日历
   -------------------------------------------------------------------------- */

.batch-status {
  margin-bottom: 48px;
}

.batch-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.batch-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-right: 1px solid var(--gray-line);
}

.batch-cell:last-child {
  border-right: 0;
}

.batch-label {
  font-size: 13px;
  color: var(--ink-mute);
}

.batch-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.batch-value.batch-state {
  color: var(--line-red);
}

.batch-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.update-log {
  margin-bottom: 48px;
}

.update-log .update-list {
  margin-top: 18px;
}

.update-item {
  display: grid;
  grid-template-columns: 108px 88px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-line);
}

.update-item .update-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.date-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.date-batch {
  font-size: 13px;
  color: var(--line-blue);
}

.update-cover {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--gray-soft);
}

.update-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 17px;
  font-weight: 700;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover,
.update-name a:focus-visible {
  color: var(--line-blue);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

.update-chapter {
  color: var(--ink-soft);
}

.update-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.update-more {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.update-rhythm {
  margin-bottom: 48px;
}

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.rhythm-step {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.rhythm-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--line-blue);
  color: var(--white);
  font-size: 13px;
  line-height: 1;
}

.rhythm-step .step-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.rhythm-step .step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.next-entry {
  margin-bottom: 48px;
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.entry-link-item {
  min-width: 0;
}

.entry-link-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  text-align: center;
}

.entry-link-item a:hover,
.entry-link-item a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

/* --------------------------------------------------------------------------
   pages — 位次参考
   -------------------------------------------------------------------------- */

.ranking-section {
  margin-bottom: 48px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gray-bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.ranking-row:nth-child(-n + 3) .rank-index {
  background-color: var(--line-yellow);
  color: var(--ink);
}

.rank-cover {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--gray-soft);
}

.rank-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-main {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
}

.rank-name a {
  color: var(--ink);
}

.rank-name a:hover,
.rank-name a:focus-visible {
  color: var(--line-blue);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}

.rank-chapters {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
  white-space: nowrap;
}

.rank-enter:hover,
.rank-enter:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

.ranking-section + .field-section .field-table {
  margin-top: 18px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}

.topic-cross-section {
  margin-bottom: 48px;
}

.topic-cross-section .compare-table {
  margin-top: 18px;
}

.compare-topic {
  color: var(--ink);
  font-weight: 600;
}

.entry-section {
  margin-bottom: 48px;
}

.entry-section .entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.entry-item {
  min-width: 0;
}

.entry-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  text-align: center;
}

.entry-item a:hover,
.entry-item a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

/* --------------------------------------------------------------------------
   pages — 阅读帮助
   -------------------------------------------------------------------------- */

.guide-path {
  margin-bottom: 48px;
}

.guide-figure {
  margin: 18px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--gray-line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.step-item {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}

.step-item .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--line-red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.step-item .step-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.step-item .step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-fields {
  margin-bottom: 48px;
}

.guide-fields .field-table {
  margin-top: 18px;
}

.section-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.guide-chapters {
  margin-bottom: 48px;
}

.chapter-rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.chapter-rule {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-left-width: 4px;
  border-left-color: var(--line-green);
  border-radius: var(--radius);
}

.chapter-rule-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.chapter-rule-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-faq {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--line-blue);
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--line-blue);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-top: 1px solid var(--gray-line);
  padding-top: 14px;
}

.guide-related {
  margin-bottom: 48px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  text-align: center;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.error-panel {
  padding: 36px 32px;
  background-color: var(--white);
  border: 1px solid var(--gray-line);
  border-left: 4px solid var(--line-red);
  border-radius: var(--radius);
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.error-text {
  margin-top: 14px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-text + .error-text {
  margin-top: 8px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.error-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  background-color: var(--gray-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  text-align: center;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-red);
}

/* --------------------------------------------------------------------------
   responsive — 平板与手机
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dual-layout,
  .field-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sitemap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-cell:nth-child(2) {
    border-right: 0;
  }

  .batch-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gray-line);
  }

  .rhythm-steps,
  .step-list,
  .chapter-rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-links,
  .entry-section .entry-list,
  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .fact-bar-text {
    padding: 8px 16px;
    font-size: 12px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--gray-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    border-radius: 0;
    font-size: 16px;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .home-main {
    padding-bottom: 40px;
  }

  .page-title,
  .error-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 21px;
  }

  .hero {
    padding: 24px 16px 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-demand {
    padding: 20px;
  }

  .topics-line,
  .dual-section,
  .field-section,
  .sitemap-section {
    padding: 0 16px;
  }

  .topics-grid,
  .pick-grid,
  .sitemap-grid,
  .topic-overview-grid,
  .rhythm-steps,
  .step-list,
  .chapter-rule-list,
  .next-links,
  .entry-links,
  .entry-section .entry-list,
  .related-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "date batch"
      "topic entry";
    gap: 6px 10px;
  }

  .update-row .update-date {
    grid-area: date;
  }

  .update-row .update-batch {
    grid-area: batch;
  }

  .update-row .update-topic {
    grid-area: topic;
    white-space: normal;
  }

  .update-row .update-entry {
    grid-area: entry;
    justify-self: end;
  }

  .entry-row {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "cover main"
      "chapter chapter";
    gap: 12px;
  }

  .entry-row .entry-cover {
    grid-area: cover;
  }

  .entry-row .entry-main {
    grid-area: main;
  }

  .entry-row .entry-chapter {
    grid-area: chapter;
    text-align: left;
  }

  .ranking-row {
    grid-template-columns: 40px 64px minmax(0, 1fr);
    grid-template-areas:
      "index cover main"
      "enter enter enter";
    gap: 12px;
  }

  .ranking-row .rank-index {
    grid-area: index;
  }

  .ranking-row .rank-cover {
    grid-area: cover;
  }

  .ranking-row .rank-main {
    grid-area: main;
  }

  .ranking-row .rank-enter {
    grid-area: enter;
    width: 100%;
  }

  .update-item {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "date cover"
      "body body";
    gap: 12px;
  }

  .update-item .update-date {
    grid-area: date;
  }

  .update-item .update-cover {
    grid-area: cover;
  }

  .update-item .update-body {
    grid-area: body;
  }

  .batch-status-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-cell {
    border-right: 0;
    border-bottom: 1px solid var(--gray-line);
  }

  .batch-cell:last-child {
    border-bottom: 0;
  }

  .batch-cell:nth-child(2) {
    border-bottom: 1px solid var(--gray-line);
  }

  .field-table,
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .field-table thead,
  .field-table tbody,
  .field-table tr,
  .field-table th,
  .field-table td,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    white-space: normal;
  }

  .field-table thead th,
  .compare-table thead th {
    white-space: nowrap;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 24px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 26px 20px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    min-width: 66px;
    height: 32px;
    padding: 0 10px;
    font-size: 15px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title,
  .error-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .dual-col,
  .field-col,
  .topic-group,
  .topic-overview-card,
  .rhythm-step,
  .step-item,
  .chapter-rule,
  .sitemap-item,
  .next-card {
    padding: 16px;
  }

  .entry-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 36px 56px minmax(0, 1fr);
  }
}
