/* ============================================================
   韩漫网 hrt6688.com — 全站样式表
   档案馆风：纸张底色、墨色文字、档案深蓝与印章红点缀
   ============================================================ */

/* ------------------------------------------------------------
   Base — 基础变量、重置、全局字体与色彩
   ------------------------------------------------------------ */
:root {
  --paper: #F4EFE6;
  --ink: #2C2822;
  --archive-blue: #1F3A5F;
  --seal-red: #A63D2F;
  --divider: #D9CFBE;
  --card-bg: #FFFDF8;
  --muted: #6B6255;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1160px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 4px rgba(44, 40, 34, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--archive-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--seal-red);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* 等宽数字感 */
.archive-no,
.genre-code,
.item-no,
.step-no,
.batch-no,
.plan-no,
.principle-index,
.habit-index,
.path-step,
.digest-batch,
.breadcrumb,
.compare-table td:first-child {
  font-variant-numeric: tabular-nums;
}

/* 视觉隐藏 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Layout — 全站骨架：页头、页脚、主容器、面包屑、页面标题
   ------------------------------------------------------------ */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--divider);
  padding-left: 10px;
  display: none;
}

@media (min-width: 480px) {
  .brand-tag {
    display: inline;
  }
}

.site-nav .nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  padding: 8px 0;
  box-shadow: 0 8px 16px rgba(44, 40, 34, 0.08);
}

.site-nav .nav-list.is-open {
  display: flex;
}

.site-nav .nav-list a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  color: var(--ink);
  border-left: 3px solid transparent;
}

.site-nav .nav-list a:hover {
  background-color: rgba(31, 58, 95, 0.06);
  color: var(--archive-blue);
}

.site-nav .nav-list a.is-current {
  color: var(--archive-blue);
  border-left-color: var(--seal-red);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav .nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
    gap: 4px;
  }

  .site-nav .nav-list a {
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;
  }

  .site-nav .nav-list a:hover {
    background: none;
    border-bottom-color: var(--divider);
  }

  .site-nav .nav-list a.is-current {
    border-bottom-color: var(--seal-red);
  }
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--archive-blue);
}

.breadcrumb-sep {
  color: var(--divider);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--archive-blue);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--archive-blue);
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* ------------------------------------------------------------
   Components — 通用组件：按钮、封面卡、标签、侧栏、相关链接
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-family: var(--sans);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--archive-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: #16304f;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--archive-blue);
  border-color: var(--archive-blue);
}

.btn-secondary:hover {
  background-color: var(--archive-blue);
  color: #fff;
}

.genre-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--archive-blue);
  background-color: rgba(31, 58, 95, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 95, 0.15);
  white-space: nowrap;
}

.archive-no {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* 封面卡通用 */
.cover-card,
.archive-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cover-card img,
.archive-card img,
.card-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* 侧栏通用 */
.content-aside,
.compare-aside {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
}

.content-aside h2,
.compare-aside h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--archive-blue);
}

.aside-block {
  margin-bottom: 20px;
}

.aside-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--archive-blue);
}

.aside-block p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* 相关链接横条 */
.related-links {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.related-links-item {
  font-size: 14px;
  color: var(--archive-blue);
  border: 1px solid var(--divider);
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--card-bg);
}

.related-links-item:hover {
  border-color: var(--archive-blue);
}

/* ------------------------------------------------------------
   Pages — 首页
   ------------------------------------------------------------ */
.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 首屏题头 */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--divider);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-title {
  font-size: 40px;
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.hero-slogan {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--archive-blue);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

/* 通用区块标题 */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 26px;
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background-color: var(--seal-red);
}

.section-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

/* 馆藏说明 */
.collection-intro {
  padding: 48px 0 24px;
}

.collection-intro .intro-text {
  font-size: 15px;
  max-width: 860px;
  margin-bottom: 12px;
}

/* 最近整理封面墙 */
.recent-wall {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cover-card figcaption {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 768px) {
  .cover-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* 题材索引卡组 */
.genre-index {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

.genre-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.genre-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  border-color: var(--archive-blue);
  box-shadow: var(--shadow);
}

.genre-code {
  display: block;
  font-size: 13px;
  color: var(--seal-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.genre-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .genre-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 馆藏精选序列 */
.featured-list {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

.featured-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.featured-item:last-child {
  border-bottom: none;
}

.item-no {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--seal-red);
  font-weight: 700;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  padding-top: 2px;
}

.item-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
  display: inline-block;
  margin-right: 10px;
}

.item-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  margin-top: 6px;
}

/* 比较阅览室预告 */
.compare-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--divider);
  align-items: center;
}

.compare-media {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.compare-text h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.compare-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .compare-preview {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* 读者路径 */
.reader-path {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

.path-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.path-step {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--archive-blue);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-no {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--seal-red);
  font-weight: 700;
  margin-bottom: 6px;
}

.path-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

.path-step p a {
  font-weight: 600;
}

@media (min-width: 768px) {
  .path-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* 整理日志摘要 */
.updates-digest {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}

.digest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.digest-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.digest-batch {
  font-size: 13px;
  color: var(--seal-red);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}

.digest-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Pages — 初识韩漫（文章页）
   ------------------------------------------------------------ */
.intro-article {
  max-width: 860px;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.article-section p {
  font-size: 15px;
  margin-bottom: 12px;
}

.genre-map-figure {
  margin: 24px 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
}

.genre-map-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.genre-map-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--divider);
}

.genre-map-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

.genre-map-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
}

.genre-map-list li strong {
  color: var(--archive-blue);
  margin-right: 6px;
}

@media (min-width: 640px) {
  .genre-map-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: var(--card-bg);
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--divider);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background-color: rgba(31, 58, 95, 0.06);
  font-family: var(--serif);
  font-weight: 600;
  white-space: nowrap;
}

.compare-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  background-color: rgba(31, 58, 95, 0.03);
}

/* 关联入口 */
.related-entry {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px;
}

.entry-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.entry-card {
  background-color: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}

.entry-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.entry-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.entry-card a {
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   Pages — 题材档案（分类索引页）
   ------------------------------------------------------------ */
.layout-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-layout.main-first {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.content-main {
  min-width: 0;
}

.genre-select-section {
  margin-bottom: 32px;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.genre-select-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-wrap label {
  font-size: 14px;
  font-weight: 600;
}

.select-wrap select {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--ink);
  min-height: 44px;
}

.select-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.archive-grid-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.archive-card {
  display: flex;
  flex-direction: column;
}

.card-figure {
  position: relative;
  overflow: hidden;
}

.card-figure .archive-no {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--divider);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-info h3 {
  font-size: 16px;
  margin: 0;
}

.serial-status {
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-layout.main-first {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------
   Pages — 作品对比（比较决策页）
   ------------------------------------------------------------ */
.compare-selector {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.selector-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.selector-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.selector-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.selector-field label {
  font-size: 14px;
  font-weight: 600;
}

.compare-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--ink);
  min-height: 44px;
}

@media (min-width: 640px) {
  .selector-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare-figure {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.compare-figure img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
}

.compare-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px;
}

.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.compare-main {
  min-width: 0;
}

.compare-table-section h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.table-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: var(--card-bg);
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--divider);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background-color: rgba(31, 58, 95, 0.06);
  font-family: var(--serif);
  font-weight: 600;
}

.compare-table tbody tr {
  transition: background-color 0.15s ease;
}

.compare-table tbody tr:hover {
  background-color: rgba(31, 58, 95, 0.04);
}

.compare-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  background-color: rgba(31, 58, 95, 0.03);
}

.conclusion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.conclusion-list li {
  border-left: 3px solid var(--archive-blue);
  padding-left: 14px;
}

.conclusion-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.conclusion-list p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.aside-more {
  font-size: 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* ------------------------------------------------------------
   Pages — 阅读指南
   ------------------------------------------------------------ */
.paths-section,
.reading-habits-section,
.faq-section {
  margin-bottom: 48px;
}

.paths-section h2,
.reading-habits-section h2,
.faq-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.paths-section > p,
.reading-habits-section > p,
.faq-section > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.path-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
}

.path-step {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--seal-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.path-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.path-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

.path-card p a {
  font-weight: 600;
}

@media (min-width: 768px) {
  .paths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.habits-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.habits-figure {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
}

.habits-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.habits-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--divider);
}

.habits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.habit-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.habit-index {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--seal-red);
  font-weight: 700;
}

.habit-item h3 {
  font-size: 16px;
}

.habit-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .habits-block {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-family: var(--serif);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--archive-blue);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Pages — 整理日志
   ------------------------------------------------------------ */
.batch-timeline,
.cover-format,
.future-plan {
  margin-bottom: 48px;
}

.batch-timeline h2,
.cover-format h2,
.future-plan h2 {
  font-size: 24px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.batch-list {
  position: relative;
  padding-left: 24px;
}

.batch-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--divider);
}

.batch-item {
  position: relative;
  padding: 0 0 24px 20px;
}

.batch-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--archive-blue);
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--archive-blue);
}

.batch-no {
  font-size: 13px;
  color: var(--seal-red);
  font-weight: 700;
}

.batch-item h3 {
  font-size: 17px;
  margin: 4px 0;
}

.batch-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.format-figure {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
  margin: 20px 0;
}

.format-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.format-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--divider);
}

.format-rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.format-rules li {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.format-rules h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.format-rules p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .format-rules {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}

.plan-no {
  font-size: 13px;
  color: var(--seal-red);
  font-weight: 700;
}

.plan-card h3 {
  font-size: 16px;
  margin: 4px 0;
}

.plan-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.related-links a {
  font-size: 14px;
  color: var(--archive-blue);
  border: 1px solid var(--divider);
  padding: 8px 20px;
  border-radius: 999px;
  background-color: var(--card-bg);
}

.related-links a:hover {
  border-color: var(--archive-blue);
}

/* ------------------------------------------------------------
   Pages — 版权说明
   ------------------------------------------------------------ */
.notice-section {
  margin-bottom: 40px;
}

.notice-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.section-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle-list li {
  display: flex;
  gap: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}

.principle-index {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--seal-red);
  font-weight: 700;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.principle-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.principle-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.entry-figure {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
  margin: 20px 0;
}

.entry-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--divider);
}

.entry-parts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.part-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--archive-blue);
  background-color: rgba(31, 58, 95, 0.06);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 95, 0.15);
}

@media (min-width: 640px) {
  .entry-parts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.boundary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.boundary-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}

.boundary-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--archive-blue);
}

.boundary-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .boundary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.related-card {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}

.related-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.related-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   Pages — 404
   ------------------------------------------------------------ */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--archive-blue);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--archive-blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  min-height: 44px;
  line-height: 1.4;
}

.btn-back:hover {
  background-color: #16304f;
  color: #fff;
}

/* ------------------------------------------------------------
   Responsive — 全局响应式收尾
   ------------------------------------------------------------ */
@media (max-width: 390px) {
  .header-inner {
    padding: 0 16px;
    height: 64px;
  }

  .site-nav .nav-list {
    top: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .home-main,
  .inner-main,
  .layout-shell,
  .page-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-card-grid {
    grid-template-columns: 1fr;
  }

  .featured-item {
    gap: 12px;
  }

  .item-no {
    width: 30px;
    font-size: 17px;
  }

  .compare-preview {
    grid-template-columns: 1fr;
  }

  .path-steps {
    grid-template-columns: 1fr;
  }

  .principle-list li {
    flex-direction: column;
    gap: 8px;
  }

  .principle-index {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .page-title {
    font-size: 36px;
  }
}

/* 滚动出现动画增强（不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .genre-card,
  .path-step,
  .archive-card,
  .path-card,
  .habit-item,
  .plan-card,
  .boundary-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .genre-card:hover,
  .archive-card:hover,
  .path-card:hover,
  .boundary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 40, 34, 0.1);
  }
}
