/* ==========================================================================
   哔咔漫画- 漫画题材专题站
   基础样式 / 布局骨架 / 组件 / 页面模块 / 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base 基础层
   -------------------------------------------------------------------------- */
:root {
  --c-paper: #FFF8F0;
  --c-ink: #1B1B2F;
  --c-orange: #FF6B35;
  --c-teal: #2EC4B6;
  --c-lemon: #FFD23F;
  --c-band: #F2F4F8;
  --c-muted: #5A5A72;
  --c-line: #E3DCD2;
  --c-line-soft: #EDE7DF;

  --font-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", "Hiragino Sans GB", "Heiti SC", sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shell-width: 1120px;
  --shell-pad: 24px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-orange);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
}

h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

button {
  font-family: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. Layout 骨架层：页头 / 导航 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(27, 27, 47, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--c-orange);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--c-ink);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--c-orange);
  background-color: var(--c-band);
}

.nav-link.is-current {
  color: var(--c-orange);
  font-weight: 700;
  background-color: rgba(255, 107, 53, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--c-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.home-main,
.inner-main,
.error-main {
  width: 100%;
}

.inner-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-orange);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding: 10px 0 22px;
}

.page-title {
  max-width: 900px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

/* 主容器（归档页 / 版权页） */
.page-container {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. Components 组件层
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--c-ink);
  color: var(--c-paper);
}

.btn-primary:hover {
  background-color: var(--c-orange);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--c-ink);
  border-color: var(--c-teal);
}

.btn-ghost:hover {
  background-color: rgba(46, 196, 182, 0.12);
  color: var(--c-ink);
}

/* 文字链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-orange);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.text-link::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.15s ease;
}

.text-link:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 区块标题组 */
.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-desc {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.section-title {
  margin-bottom: 10px;
}

.section-intro {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 检查提示条 */
.check-tip {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink);
  background-color: rgba(255, 210, 63, 0.28);
  border-left: 3px solid var(--c-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 清单 */
.check-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.75;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.check-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 2px solid var(--c-teal);
  border-radius: 3px;
  background-color: rgba(46, 196, 182, 0.14);
}

/* 相关入口条（内页底部通用） */
.related-bar {
  margin-top: 40px;
  padding: 22px 24px;
  background-color: var(--c-band);
  border-radius: var(--radius-lg);
}

.related-bar .related-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-muted);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-list a,
.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.related-list a:hover,
.related-link:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

/* 相关内容条（首页 + 部分内页） */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 20px var(--shell-pad);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.related-links-item:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

/* FAQ 折叠项 */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--c-orange);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--c-line-soft);
}

.faq-answer {
  padding: 12px 18px 16px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 56px;
  background-color: var(--c-band);
  border-top: 1px solid var(--c-line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 44px var(--shell-pad) 36px;
}

.footer-logo {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.footer-slogan {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-orange);
}

.footer-intro {
  max-width: 340px;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.04em;
}

.footer-list {
  display: grid;
  gap: 4px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--c-muted);
}

.footer-list a:hover {
  color: var(--c-orange);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
}

.footer-copy {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 16px var(--shell-pad);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   5. 首页模块
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

/* 首屏分流面板 */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 52px;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: rgba(46, 196, 182, 0.2);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero-text h1 {
  position: relative;
  margin-bottom: 16px;
  padding: 10px 0 4px;
}

.hero-text h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  width: 90px;
  height: 46px;
  background-image: radial-gradient(var(--c-line) 1.4px, transparent 1.4px);
  background-size: 8px 8px;
  opacity: 0.9;
  z-index: -1;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: rgba(46, 196, 182, 0.22);
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.tag:hover {
  background-color: var(--c-teal);
  color: var(--c-ink);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  background-color: var(--c-band);
}

.hero-task {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 12px 16px;
  background-color: rgba(255, 210, 63, 0.3);
  border-left: 3px solid var(--c-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.hero-task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.hero-task-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* 通用首屏后区块间距 */
.atlas-wall,
.entry-rank,
.pick-table,
.setup-glance,
.archive-preview,
.home-faq {
  padding: 44px 0;
  border-top: 1px solid var(--c-line-soft);
}

/* 题材图鉴封面墙 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-orange);
  box-shadow: 0 6px 18px rgba(27, 27, 47, 0.08);
}

.cover-media {
  margin: 0;
  background-color: var(--c-band);
}

.cover-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.cover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.cover-rhythm {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.cover-audience {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: rgba(255, 210, 63, 0.42);
  border-radius: 999px;
}

.atlas-more,
.glance-more,
.faq-more {
  margin: 20px 0 0;
}

/* 入坑顺序榜 */
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-lemon);
  border-radius: 50%;
  letter-spacing: 0.04em;
}

.rank-body {
  min-width: 0;
}

.rank-title {
  margin-bottom: 4px;
  font-size: 17px;
}

.rank-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.rank-reason {
  margin: 0;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink);
  border-left: 2px solid var(--c-teal);
}

/* 挑读判断表 */
.judge-table {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.judge-table th,
.judge-table td {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.judge-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-band);
  border-bottom: 1px solid var(--c-line);
}

.judge-table tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--c-ink);
}

.judge-table tbody td {
  color: var(--c-muted);
}

.judge-table tbody tr:last-child th,
.judge-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 阅读设置速览 */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glance-item {
  padding: 20px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-teal);
  border-radius: var(--radius-md);
}

.glance-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.glance-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 主题归档摘要 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.archive-card:hover {
  border-color: var(--c-teal);
  transform: translateY(-2px);
}

.archive-title {
  font-size: 17px;
}

.archive-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 边界说明条 */
.boundary-note {
  margin: 8px 0 0;
  padding: 24px 26px;
  background-color: var(--c-band);
  border-radius: var(--radius-lg);
}

.boundary-text {
  max-width: 860px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.boundary-link {
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   6. 内页通用模块
   -------------------------------------------------------------------------- */
.page-hero {
  margin-bottom: 32px;
}

.page-lead {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--c-muted);
}

.page-figure,
.page-media,
.page-hero-media,
.route-visual {
  margin: 0;
  background-color: var(--c-band);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.page-figure img,
.page-media img,
.page-hero-media img,
.route-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-figure figcaption,
.page-media .media-caption,
.page-hero-media .media-caption,
.route-visual figcaption {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
  background-color: #FFFFFF;
}

/* 题材图谱：主内容 + 补充栏 */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-primary {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  padding: 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.aside-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.aside-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.aside-list {
  display: grid;
  gap: 2px;
}

.aside-item {
  border-bottom: 1px solid var(--c-line-soft);
}

.aside-item:last-child {
  border-bottom: 0;
}

.aside-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.aside-link:hover {
  color: var(--c-orange);
}

.aside-note {
  margin: 14px 0 0;
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

.aside-note a {
  color: var(--c-orange);
  font-weight: 600;
}

/* 题材分组 */
.atlas-groups {
  margin-bottom: 36px;
}

.atlas-group {
  padding: 22px 24px;
  margin-bottom: 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.group-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.group-desc {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.group-desc:last-of-type {
  margin-bottom: 12px;
}

.group-points {
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.group-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink);
}

.group-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--c-teal);
  border-radius: 2px;
}

/* 挑读信号 */
.atlas-signals {
  margin-bottom: 8px;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.signal-item {
  padding: 20px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-orange);
  border-radius: var(--radius-md);
}

.signal-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.signal-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 阅读动线：步骤纵线 */
.route-steps {
  margin-bottom: 36px;
}

.step-line {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 34px;
}

.step-line::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background-color: var(--c-line);
}

.step-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 20px 24px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.step-index {
  position: absolute;
  top: 20px;
  left: -34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-lemon);
  border-radius: 50%;
  letter-spacing: 0.04em;
}

.step-body {
  min-width: 0;
}

.step-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.step-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.step-text a {
  color: var(--c-orange);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}

.step-text a:hover {
  border-bottom-color: var(--c-orange);
}

.route-checklist {
  margin-bottom: 8px;
}

/* 阅读设置：两组设置 */
.setup-group {
  margin-bottom: 32px;
}

.setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-item {
  padding: 18px 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.setup-item-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.setup-item-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.setup-group-confirm .setup-item {
  border-left: 3px solid var(--c-teal);
}

.setup-list-check .setup-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.setup-check {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--c-orange);
  border-radius: 3px;
  background-color: rgba(255, 210, 63, 0.3);
}

.setup-list-check .setup-item-title {
  grid-column: 2;
}

.setup-list-check .setup-item-text {
  grid-column: 2;
}

/* 模式取舍对照表 */
.setup-compare {
  margin-bottom: 32px;
}

.compare-table {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.compare-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-band);
  border-bottom: 1px solid var(--c-line);
}

.compare-table tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--c-ink);
}

.compare-table tbody td {
  color: var(--c-muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 常见误区 */
.setup-mistakes {
  margin-bottom: 8px;
}

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mistake-card {
  padding: 20px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.mistake-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.mistake-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   7. 归档页
   -------------------------------------------------------------------------- */
.page-archive .page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.page-hero-text {
  min-width: 0;
}

.topic-index-bar {
  margin-bottom: 32px;
  padding: 10px 0;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

.topic-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.topic-index-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: var(--c-band);
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topic-index-link:hover {
  background-color: var(--c-teal);
  color: var(--c-ink);
}

.archive-section {
  margin-bottom: 32px;
}

.page-archive .archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 22px 24px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.archive-card-main {
  min-width: 0;
}

.archive-card-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.archive-card-summary {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.archive-card-summary:last-of-type {
  margin-bottom: 12px;
}

.archive-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scope-tag {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: rgba(46, 196, 182, 0.2);
  border-radius: 999px;
}

.archive-card-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.archive-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-band);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.archive-card-link::after {
  content: "→";
}

.archive-card-link:hover {
  color: #FFFFFF;
  background-color: var(--c-orange);
  border-color: var(--c-orange);
}

.archive-note-section {
  margin-bottom: 8px;
  padding: 22px 24px;
  background-color: var(--c-band);
  border-radius: var(--radius-lg);
}

.archive-note-text {
  max-width: 820px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   8. 术语页
   -------------------------------------------------------------------------- */
.anchor-bar {
  margin-bottom: 28px;
  padding: 10px 0;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: var(--c-band);
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.anchor-link:hover {
  background-color: var(--c-teal);
  color: var(--c-ink);
}

.glossary-group {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.glossary-group .section-desc {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   9. 版权与纠错页
   -------------------------------------------------------------------------- */
.scope-section,
.exclude-section,
.correction-section,
.checklist-section {
  margin-bottom: 32px;
}

.scope-section h2,
.exclude-section h2,
.correction-section h2,
.checklist-section h2 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.scope-section > p,
.section-note {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.scope-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.scope-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.scope-list li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-teal);
}

.scope-list strong {
  color: var(--c-ink);
}

.exclude-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.exclude-item {
  padding: 20px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-orange);
  border-radius: var(--radius-md);
}

.exclude-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.exclude-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 纠错流程四步 */
.step-list {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 34px;
  max-width: 820px;
}

.step-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background-color: var(--c-line);
}

.step-item {
  position: relative;
  padding: 18px 22px;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.step-item .step-index {
  position: absolute;
  top: 18px;
  left: -34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  background-color: var(--c-lemon);
  border-radius: 50%;
  letter-spacing: 0.04em;
}

.step-item .step-body {
  min-width: 0;
}

.step-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   10. 404 页
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 56px var(--shell-pad) 48px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 36px 32px;
  text-align: center;
  background-color: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.error-code {
  margin: 0 0 8px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-orange);
  letter-spacing: 0.04em;
}

.error-title {
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.error-text {
  max-width: 480px;
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-guide {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 26px;
  background-color: var(--c-band);
  border-radius: var(--radius-lg);
}

.error-guide-title {
  margin-bottom: 12px;
  font-size: 17px;
}

.error-guide-list {
  display: grid;
  gap: 4px;
}

.error-guide-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.error-guide-list a:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

/* --------------------------------------------------------------------------
   11. Responsive 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0 var(--shell-pad);
    background-color: var(--c-paper);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 8px 18px rgba(27, 27, 47, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--radius-md);
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside {
    order: 2;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-list,
  .glance-grid,
  .mistake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-list .signal-item:last-child,
  .glance-grid .glance-item:last-child,
  .mistake-grid .mistake-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --shell-pad: 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .inner-main {
    padding-bottom: 40px;
  }

  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 0 36px;
  }

  .hero-text h1::before {
    left: -8px;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .atlas-wall,
  .entry-rank,
  .pick-table,
  .setup-glance,
  .archive-preview,
  .home-faq {
    padding: 32px 0;
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-media img {
    aspect-ratio: 16 / 10;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 18px;
  }

  .rank-reason {
    grid-column: 2;
    padding-left: 14px;
  }

  .judge-table,
  .compare-table {
    display: block;
  }

  .judge-table thead,
  .compare-table thead {
    display: none;
  }

  .judge-table tbody,
  .compare-table tbody {
    display: block;
  }

  .judge-table tbody tr,
  .compare-table tbody tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .judge-table tbody tr:last-child,
  .compare-table tbody tr:last-child {
    border-bottom: 0;
  }

  .judge-table tbody th,
  .judge-table tbody td,
  .compare-table tbody th,
  .compare-table tbody td {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 0;
  }

  .judge-table tbody th,
  .compare-table tbody th {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .judge-table tbody td,
  .compare-table tbody td {
    margin-bottom: 0;
    font-size: 14px;
  }

  .glance-grid,
  .archive-grid,
  .signal-list,
  .mistake-grid,
  .exclude-grid,
  .setup-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .signal-list .signal-item:last-child,
  .glance-grid .glance-item:last-child,
  .mistake-grid .mistake-card:last-child {
    grid-column: auto;
  }

  .page-lead {
    font-size: 16px;
  }

  .page-archive .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-archive .archive-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .archive-card-side {
    justify-content: flex-start;
  }

  .archive-card-link {
    width: 100%;
    justify-content: center;
  }

  .topic-index-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .topic-index-list li {
    flex: 0 0 auto;
  }

  .step-line {
    padding-left: 30px;
  }

  .step-node {
    padding: 18px;
  }

  .step-index {
    left: -30px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .step-list {
    padding-left: 30px;
  }

  .step-item .step-index {
    left: -30px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .related-bar {
    padding: 18px;
  }

  .related-list {
    flex-direction: column;
    gap: 4px;
  }

  .related-links {
    padding: 16px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px var(--shell-pad) 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-intro {
    max-width: none;
  }

  .error-main {
    padding: 36px var(--shell-pad) 36px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-actions .btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 390px) {
  .nav-link {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-index {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .rank-reason {
    grid-column: auto;
  }

  .topic-index-link,
  .anchor-link,
  .tag {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .cover-card:hover,
  .archive-card:hover,
  .tag:hover,
  .text-link:hover::after {
    transform: none;
  }
}
