/* ==========================================================================
   香蕉漫画 dzoum.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base —— 变量、重置、排版基础
   ========================================================================== */

:root {
  --paper: #FAF8F4;
  --ink: #1F1B18;
  --ink-soft: #6B6259;
  --line: #E4DED5;
  --line-strong: #D2C9BC;
  --card-bg: #FFFFFF;
  --accent: #B23A2E;
  --accent-soft: #F3E3DF;

  --genre-1: #C97B4A;
  --genre-2: #4A7C9B;
  --genre-3: #6E8B5A;
  --genre-4: #8A6BA1;

  --radius: 6px;
  --radius-sm: 4px;

  --container: 1180px;
  --gutter: 24px;

  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei",
    "Helvetica Neue", Arial, sans-serif;

  --shadow-hover: 0 4px 14px rgba(31, 27, 24, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   layout —— 骨架：header / nav / main / breadcrumb / page-header / footer
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

/* ---- 页头 ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFF6F3;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.brand-slogan {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- 导航 ---- */

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: #F1ECE4;
  color: var(--ink);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---- 主内容骨架 ---- */

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.home-main {
  width: 100%;
}

/* ---- 面包屑 ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* ---- 页面标题区 ---- */

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-description {
  max-width: 780px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
}

.page-description a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* ---- 页脚 ---- */

.site-footer {
  margin-top: auto;
  background: #F3EFE8;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.footer-group-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-group a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter) 22px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- 双栏页面布局（侧栏在前） ---- */

.sidebar-left .page-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ==========================================================================
   components —— 通用组件：区块、标签、卡片、表格、索引、FAQ
   ========================================================================== */

/* ---- 区块头 ---- */

.section {
  padding: 46px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.section-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 860px;
  margin: 0;
}

.section-desc a {
  color: var(--accent);
  margin-right: 14px;
  border-bottom: 1px solid var(--accent-soft);
}

.section-desc a:last-child {
  margin-right: 0;
}

.section-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-note a {
  color: var(--accent);
}

.section-more {
  margin-top: 22px;
  font-size: 0.92rem;
}

.section-more a {
  display: inline-block;
  margin-right: 16px;
  color: var(--accent);
}

.section-more a:last-child {
  margin-right: 0;
}

/* ---- 题材标签 ---- */

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.7;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #FBF9F6;
  white-space: nowrap;
}

.tag-hot {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: var(--accent-soft);
}

.tag-fantasy {
  border-color: #D9CBE6;
  color: var(--genre-4);
  background: #F5F0F9;
}

.tag-mystery {
  border-color: #C6D6E2;
  color: var(--genre-2);
  background: #EFF5F9;
}

.tag-daily {
  border-color: #D5E0CB;
  color: var(--genre-3);
  background: #F2F6EE;
}

.tag-genre {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.tag-state {
  border-color: #E7D3C5;
  color: var(--genre-1);
  background: #FAF1EA;
}

.status {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---- 封面图容器 ---- */

.cover-media,
.work-cover,
.ranking-cover,
.topic-figure,
.tese-group-figure,
.gx-media,
.hero-media,
.section-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #EFEAE2;
}

.cover-media img,
.work-cover img,
.ranking-cover img,
.topic-figure img,
.tese-group-figure img,
.gx-media img,
.hero-media img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 表格 ---- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.data-table,
.field-table {
  min-width: 520px;
  font-size: 0.92rem;
}

.data-table caption,
.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.field-table thead th {
  background: #F6F2EB;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

/* ---- 字段定义列表（首页） ---- */

.field-list {
  margin: 0;
}

.field-list dt {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 14px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---- 范围清单 ---- */

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---- 站内栏目索引 ---- */

.site-index,
.link-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.index-item,
.link-index li a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.index-item:hover,
.index-item:focus-visible,
.link-index li a:hover,
.link-index li a:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

.index-name {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.index-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.link-index li a {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--ink-soft);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  padding: 14px 18px 16px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---- 滚动出现增强（不影响初始可见性） ---- */

.section {
  animation: section-rise 0.5s ease both;
}

@keyframes section-rise {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section {
    animation: none;
  }
}

/* ==========================================================================
   pages —— 首页
   ========================================================================== */

/* ---- 首屏混合门户区 ---- */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.hero-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 16 / 10;
}

.hero-media img {
  grid-column: 1 / -1;
  border-radius: var(--radius);
}

.hero-media-caption {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---- 首屏三入口条 ---- */

.hero-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  border-left: 3px solid var(--genre-1);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.entry-card-tese {
  border-left-color: var(--genre-1);
}

.entry-card-mulu {
  border-left-color: var(--genre-2);
}

.entry-card-gengxin {
  border-left-color: var(--genre-3);
}

.entry-card:hover,
.entry-card:focus-visible {
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

.entry-label {
  font-weight: 700;
  font-size: 1.02rem;
}

.entry-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---- 首页通用区块容器 ---- */

.home-main .section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px var(--gutter);
}

/* ---- 题材方向总览 ---- */

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  border-top: 3px solid var(--genre-1);
}

.genre-col-1 {
  border-top-color: var(--genre-1);
}

.genre-col-2 {
  border-top-color: var(--genre-2);
}

.genre-col-3 {
  border-top-color: var(--genre-3);
}

.genre-col-4 {
  border-top-color: var(--genre-4);
}

.genre-name {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.genre-feature {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.genre-scope {
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-bottom: 12px;
}

.genre-samples {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.genre-samples a {
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.genre-samples a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

/* ---- 作品目录与封面墙 ---- */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.cover-media {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.cover-title {
  font-size: 0.98rem;
  padding: 12px 14px 0;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 14px 14px;
  margin: 0;
}

/* ---- 最近更新记录 ---- */

.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.update-row:hover {
  background: #FBF8F3;
}

.update-date {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.update-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.update-name a {
  display: inline-block;
}

/* ---- 人气榜单与编辑选题 ---- */

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rank-list-col,
.topic-col {
  min-width: 0;
}

.rank-subtitle {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: #F1ECE4;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-row:nth-child(-n+3) .rank-no {
  background: var(--accent);
  color: #FFF6F3;
}

.rank-name {
  font-size: 0.96rem;
  font-weight: 700;
}

.topic-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.topic-name {
  font-size: 1rem;
  margin-bottom: 8px;
}

.topic-scope {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.topic-count {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0;
}

/* ---- 阅读说明与收录范围摘要 ---- */

.notes-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.notes-fields,
.notes-scope {
  min-width: 0;
}

.notes-subtitle {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   pages —— 题材分类页
   ========================================================================== */

.tese-nav {
  position: sticky;
  top: 84px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.aside-title {
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.tese-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tese-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tese-nav-list a:hover,
.tese-nav-list a:focus-visible {
  background: #F1ECE4;
  color: var(--ink);
}

.tese-count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.aside-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.aside-note a {
  color: var(--accent);
}

.tese-content {
  min-width: 0;
}

.tese-group-section {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.tese-group-section:last-of-type {
  border-bottom: none;
}

.tese-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 26px;
  align-items: start;
}

.tese-group-text {
  min-width: 0;
}

.tese-subtitle {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.tese-subtitle + p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tese-group-figure {
  aspect-ratio: 3 / 4;
}

.tese-group-figure figcaption {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.tese-works {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.work-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.work-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.work-cover {
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
}

.work-title {
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.work-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #FBF9F6;
  white-space: nowrap;
}

.work-tag--rexue {
  border-color: #E7D3C5;
  color: var(--genre-1);
  background: #FAF1EA;
}

.work-tag--xuanyi {
  border-color: #C6D6E2;
  color: var(--genre-2);
  background: #EFF5F9;
}

.work-tag--richang {
  border-color: #D5E0CB;
  color: var(--genre-3);
  background: #F2F6EE;
}

.work-tag--qihuan {
  border-color: #D9CBE6;
  color: var(--genre-4);
  background: #F5F0F9;
}

.work-tag--xiaoyuan {
  border-color: #E7D3C5;
  color: var(--genre-1);
  background: #FAF1EA;
}

.work-tag--kehuan {
  border-color: #C6D6E2;
  color: var(--genre-2);
  background: #EFF5F9;
}

.work-status {
  font-size: 0.76rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tese-compare {
  padding-bottom: 10px;
}

.tese-cross-link {
  margin-top: 18px;
  font-size: 0.92rem;
}

.tese-cross-link a {
  display: inline-block;
  margin-right: 16px;
  color: var(--accent);
}

.tese-cross-link a:last-child {
  margin-right: 0;
}

/* ==========================================================================
   pages —— 更新记录页
   ========================================================================== */

.gx-datenav {
  position: sticky;
  top: 84px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.gx-datenav-title {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.gx-datenav-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.gx-datenav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gx-datenav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.gx-datenav-list a:hover,
.gx-datenav-list a:focus-visible {
  background: #F1ECE4;
  color: var(--ink);
}

.gx-datenav-count {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.gx-datenav-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.gx-datenav-note a {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
}

.gx-datenav-note a:last-child {
  margin-right: 0;
}

.gx-records {
  min-width: 0;
}

.gx-section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.gx-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.gx-section-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.gx-section-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 18px;
}

.gx-media {
  aspect-ratio: 16 / 7;
  margin-bottom: 24px;
}

.gx-media figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.gx-group {
  margin-bottom: 22px;
  scroll-margin-top: 84px;
}

.gx-date {
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.gx-list {
  display: flex;
  flex-direction: column;
}

.gx-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line);
}

.gx-row:last-child {
  border-bottom: none;
}

.gx-cover {
  width: 40px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #EFEAE2;
}

.gx-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-info {
  min-width: 0;
}

.gx-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.gx-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 0;
}

.gx-tag,
.gx-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #FBF9F6;
  white-space: nowrap;
}

.gx-status {
  border: none;
  background: none;
  padding: 0;
}

.gx-tag-daily {
  border-color: #D5E0CB;
  color: var(--genre-3);
  background: #F2F6EE;
}

.gx-tag-fantasy {
  border-color: #D9CBE6;
  color: var(--genre-4);
  background: #F5F0F9;
}

.gx-tag-healing {
  border-color: #D5E0CB;
  color: var(--genre-3);
  background: #F2F6EE;
}

.gx-tag-history {
  border-color: #E7D3C5;
  color: var(--genre-1);
  background: #FAF1EA;
}

.gx-tag-scifi {
  border-color: #C6D6E2;
  color: var(--genre-2);
  background: #EFF5F9;
}

.gx-tag-suspense {
  border-color: #C6D6E2;
  color: var(--genre-2);
  background: #EFF5F9;
}

.gx-table {
  min-width: 520px;
}

.gx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: gx-step;
}

.gx-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.gx-step-title {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.gx-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   pages —— 人气榜单页
   ========================================================================== */

.ranking-section,
.topic-section,
.relation-section {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.relation-section {
  border-bottom: none;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.ranking-item:hover {
  background: #FBF8F3;
}

.ranking-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #F1ECE4;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-item:nth-child(-n+3) .ranking-no {
  background: var(--accent);
  color: #FFF6F3;
}

.ranking-cover {
  aspect-ratio: 3 / 4;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.ranking-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ranking-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.topic-grid .topic-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.topic-figure {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.topic-body {
  padding: 16px 18px 18px;
}

.topic-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.relation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 18px;
}

.relation-col {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.relation-subtitle {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.relation-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.relation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relation-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.relation-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   pages —— 阅读说明页
   ========================================================================== */

.section-fields,
.section-scope,
.section-way,
.section-faq,
.section-index {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.section-index {
  border-bottom: none;
}

.section-figure {
  aspect-ratio: 16 / 7;
  margin: 18px 0 22px;
}

.section-figure figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.scope-col {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.scope-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scope-col-in {
  border-top: 3px solid var(--genre-3);
}

.scope-col-out {
  border-top: 3px solid var(--genre-1);
}

.way-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
  counter-reset: way-step;
}

.way-step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  counter-increment: way-step;
}

.way-step::before {
  content: counter(way-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFF6F3;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.way-step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.way-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.way-step p a {
  color: var(--accent);
}

/* ==========================================================================
   pages —— 404
   ========================================================================== */

.site-error .error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
  width: 100%;
}

.error-panel {
  max-width: 640px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.error-code {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.error-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.error-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.error-links a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  text-align: center;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-home-link {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #FFF6F3;
  font-weight: 700;
  font-size: 0.94rem;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: #9A2F25;
  color: #FFF6F3;
}

/* ==========================================================================
   responsive —— 断点
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .genre-columns,
  .work-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-layout,
  .notes-layout,
  .relation-columns,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px rgba(31, 27, 24, 0.08);
  }

  .header-inner {
    position: relative;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }

  .nav-list.is-open {
    max-height: 320px;
  }

  .nav-list a {
    padding: 12px;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tese-nav,
  .gx-datenav {
    position: static;
  }

  .tese-group-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tese-group-figure {
    max-width: 320px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .update-row .status {
    grid-column: 2 / -1;
  }

  .ranking-item {
    grid-template-columns: 36px 56px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.28rem;
  }

  .page-title {
    font-size: 1.45rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .genre-columns,
  .cover-grid,
  .work-card-list,
  .topic-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    gap: 16px;
  }

  .cover-media {
    aspect-ratio: 4 / 3;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .update-row .status {
    grid-column: auto;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
    row-gap: 4px;
  }

  .rank-row .tag,
  .rank-row .status {
    grid-column: 2;
  }

  .gx-row {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 4px;
  }

  .gx-row .gx-tag,
  .gx-row .gx-status {
    grid-column: 2;
  }

  .ranking-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-cover {
    aspect-ratio: 3 / 4;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 2.1rem;
  }

  .section-more a,
  .tese-cross-link a,
  .gx-datenav-note a {
    display: inline-block;
    margin-bottom: 8px;
  }
}
