/* ==========================================================================
   羞羞漫画 · 全站样式表
   基础 / 布局 / 组件 / 页面 / 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base 基础层：变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #faf7f2;
  --bg-card: #ffffff;
  --text-main: #2b2b2f;
  --text-sub: #6b6b73;
  --accent: #b08d57;
  --accent-deep: #8f6f3e;
  --line-soft: #e8e1d6;
  --line-mid: #d8cfc0;
  --shadow-soft: 0 1px 2px rgba(43, 43, 47, 0.04), 0 6px 18px rgba(43, 43, 47, 0.05);
  --shadow-lift: 0 2px 4px rgba(43, 43, 47, 0.06), 0 12px 26px rgba(43, 43, 47, 0.09);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1120px;
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-main);
}

h1 {
  font-size: 32px;
  line-height: 1.35;
}

h2 {
  font-size: 24px;
  line-height: 1.4;
}

h3 {
  font-size: 18px;
  line-height: 1.45;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
}

.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-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-page);
  font-family: var(--font-sans);
  color: var(--text-main);
}

/* 顶部事实条 —— 首页与部分内页 */
.fact-bar,
.top-fact-bar,
.site-factbar {
  background-color: #f3ede3;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.fact-bar,
.top-fact-bar {
  padding: 9px 20px;
  text-align: center;
}

.site-factbar {
  padding: 9px 20px;
  text-align: center;
}

.fact-bar p,
.top-fact-bar p,
.site-factbar {
  max-width: var(--container);
  margin: 0 auto;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(150%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 8px;
  height: 20px;
  margin-right: 10px;
  background-color: var(--accent);
  border-radius: 2px;
}

.brand:hover {
  color: var(--accent-deep);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-md);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--text-main);
  background-color: #f6f1e8;
}

.nav-list a.is-current {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-mid);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
}

.page-description {
  max-width: 780px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
}

.page-description a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.page-description a:hover {
  border-bottom-color: var(--accent);
}

/* 页脚 */
.site-footer {
  margin-top: 24px;
  background-color: #f4efe6;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 1fr)) minmax(150px, 1fr);
  gap: 28px 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-brand-desc {
  margin-top: 10px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-list {
  margin-top: 12px;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--text-sub);
}

.footer-list a:hover {
  color: var(--accent-deep);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.footer-year {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. components 通用组件：区块、标题组、按钮、状态标签、FAQ、表格、卡片
   -------------------------------------------------------------------------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 20px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-desc,
.section-lead {
  max-width: 820px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.section-desc a,
.section-lead a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.section-desc a:hover,
.section-lead a:hover {
  border-bottom-color: var(--accent);
}

.section-more {
  margin-top: 18px;
  font-size: 15px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--accent-deep);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.link-more::after {
  content: "→";
  margin-left: 8px;
  font-family: var(--font-mono);
}

.link-more:hover {
  color: #ffffff;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  color: #ffffff;
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  color: var(--text-main);
  background-color: var(--bg-card);
  border-color: var(--line-mid);
}

.btn-ghost:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* 状态标签 */
.status-ongoing,
.status-done,
.status-paused,
.status-hiatus,
.status-soon {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-ongoing {
  color: #4a6b3f;
  background-color: #eef4e9;
  border: 1px solid #d6e3cb;
}

.status-done {
  color: #4a5f7a;
  background-color: #eef1f6;
  border: 1px solid #d5dde8;
}

.status-paused {
  color: #8a6431;
  background-color: #f7f0e2;
  border: 1px solid #e8dcc2;
}

.status-hiatus {
  color: #7a5a5a;
  background-color: #f6eeec;
  border: 1px solid #e6d6d2;
}

.status-soon {
  color: #6b6b73;
  background-color: #f2f0ec;
  border: 1px solid #e2ddd4;
}

/* 题材表格 */
.genre-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.genre-table thead th {
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  text-align: left;
  background-color: #f7f3ec;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.genre-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
}

.genre-table tbody tr:last-child {
  border-bottom: 0;
}

.genre-table tbody tr:hover {
  background-color: #fbf8f4;
}

.genre-table td,
.genre-table tbody th {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  color: var(--text-main);
}

.genre-table .cell-code,
.genre-table .genre-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-deep);
  white-space: nowrap;
}

.genre-table .genre-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.genre-table a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.genre-table a:hover {
  border-bottom-color: var(--accent);
}

/* 对照表 */
.compare-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.compare-table thead th {
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  text-align: left;
  background-color: #f7f3ec;
  border-bottom: 1px solid var(--line-soft);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
}

.compare-table tbody tr:last-child {
  border-bottom: 0;
}

.compare-table tbody th {
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.compare-table td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  vertical-align: top;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 15px 46px 15px 18px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.faq-item p a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

/* 图片容器统一约束 */
.hero-figure,
.hero-covers img,
.topic-card img,
.section-media,
.page-media,
.guide-media,
.work-cover,
.collection-figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #f1ece3;
}

.hero-figure img,
.hero-covers img,
.topic-card img,
.section-media img,
.page-media img,
.guide-media img,
.work-cover img,
.collection-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-media figcaption,
.page-media figcaption,
.guide-media figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   4. pages 页面层：首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.05fr);
  gap: 40px;
  align-items: start;
}

.hero-intro {
  padding-top: 6px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
}

.hero-text {
  max-width: 480px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-lift);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cover-name {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

.cover-meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 首页最近更新 */
.update-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.update-group {
  padding: 18px 18px 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.group-title,
.update-group-title {
  padding-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.update-list {
  margin-top: 6px;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
}

.update-list .update-item:last-child {
  border-bottom: 0;
}

.update-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.update-genre {
  color: var(--text-sub);
}

.update-chapter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

.update-status {
  justify-self: start;
}

/* 首页榜单与专题双栏 */
.rank-topic-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: start;
}

.rank-column,
.topic-column {
  min-width: 0;
}

.rank-list {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.3fr) minmax(0, 0.7fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.rank-list .rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background-color: #fbf8f4;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.rank-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.rank-genre {
  color: var(--text-sub);
}

.rank-status {
  justify-self: start;
  font-size: 13px;
  color: var(--text-sub);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-lift);
}

.topic-card img {
  grid-row: 1 / span 2;
  width: 84px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.topic-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.topic-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* 首页阅读顺序四步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  padding: 20px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.step-name {
  font-size: 17px;
  font-weight: 600;
}

.step-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 首页站内栏目索引 */
.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.index-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-lift);
}

.index-item a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.index-item a:hover {
  color: var(--accent-deep);
}

.index-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   5. pages 页面层：题材分类
   -------------------------------------------------------------------------- */

.genre-table-section .genre-table {
  margin-top: 4px;
}

.genre-compare-section .section-media {
  margin: 4px 0 22px;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line-soft);
}

.genre-works-section .section-desc a {
  margin-right: 14px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-lift);
}

.work-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
}

.work-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.work-genre {
  color: var(--accent-deep);
}

.work-status {
  color: var(--text-sub);
}

.genre-next-section .next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.next-links li {
  min-width: 0;
}

.next-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  font-size: 15px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.next-links a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. pages 页面层：最近更新
   -------------------------------------------------------------------------- */

.page-media {
  max-width: var(--container);
  margin: 0 0 32px;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.update-groups .update-group {
  margin-bottom: 18px;
}

.update-groups .update-group:last-child {
  margin-bottom: 0;
}

.field-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.field-table .field-row:last-child {
  border-bottom: 0;
}

.field-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.field-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.legend-badge {
  align-self: flex-start;
}

.legend-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.legend-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
  align-self: flex-start;
}

.legend-link:hover {
  border-bottom-color: var(--accent);
}

.return-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.return-list li {
  min-width: 0;
}

.return-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  font-size: 15px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.return-list a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. pages 页面层：人气榜单
   -------------------------------------------------------------------------- */

.ranking-list {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-list .ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background-color: #fbf8f4;
}

.ranking-no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 17px;
  font-weight: 600;
}

.ranking-name a {
  color: var(--text-main);
  border-bottom: 1px solid transparent;
}

.ranking-name a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-sub);
}

.ranking-genre {
  color: var(--accent-deep);
}

.ranking-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-lift);
}

.collection-figure {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
}

.collection-name {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
}

.collection-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.collection-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 13px;
  color: var(--accent-deep);
}

.fields-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fields-column {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.fields-subtitle {
  padding-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.fields-list {
  margin-top: 6px;
}

.fields-term {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.fields-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.fields-desc a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.related-item a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.related-item a:hover {
  color: var(--accent-deep);
}

.related-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   8. pages 页面层：阅读说明
   -------------------------------------------------------------------------- */

.page-layout {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.reading-order-section .section-lead,
.field-scope-section .section-lead,
.faq-section .section-lead,
.continue-section .section-lead {
  max-width: 820px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.guide-media {
  margin: 22px 0 26px;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.reading-order-section .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.reading-order-section .step-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.step-title {
  font-size: 17px;
  font-weight: 600;
}

.step-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.step-desc a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.field-scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.field-column,
.scope-column {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.subsection-title {
  padding-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.field-list {
  margin-top: 6px;
}

.field-list .field-name {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.field-list .field-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.scope-list {
  margin-top: 6px;
}

.scope-item {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--line-soft);
}

.scope-list .scope-item:last-child {
  border-bottom: 0;
}

.scope-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.faq-section .faq-list {
  margin-top: 20px;
}

.faq-question {
  position: relative;
  padding: 15px 46px 15px 18px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--accent-deep);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.faq-answer a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-mid);
}

.continue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.continue-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.continue-item a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.continue-item a:hover {
  color: var(--accent-deep);
}

.continue-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   9. pages 页面层：404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 72px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 40px 32px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

.error-title {
  margin-top: 12px;
  font-size: 24px;
}

.error-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.error-links li {
  min-width: 0;
}

.error-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 15px;
  background-color: #fbf8f4;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.error-links a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   10. responsive 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-text {
    max-width: none;
  }

  .rank-topic-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .update-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 4px;
  }

  .update-name {
    grid-column: 1;
  }

  .update-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .update-genre {
    grid-column: 1;
  }

  .update-chapter {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  h1,
  .hero-title,
  .page-title {
    font-size: 26px;
  }

  h2,
  .section-title {
    font-size: 21px;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    transition: max-height 0.24s ease;
  }

  .nav-list.is-open {
    max-height: 320px;
    padding-bottom: 8px;
  }

  .nav-list li {
    display: block;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line-soft);
    background-color: #f6f1e8;
  }

  .fact-bar,
  .top-fact-bar,
  .site-factbar {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 26px 16px 4px;
  }

  .section {
    padding: 34px 16px 0;
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .page-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .hero-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-card {
    padding: 8px;
  }

  .cover-name {
    font-size: 14px;
  }

  .cover-meta {
    font-size: 12px;
  }

  .update-groups,
  .step-list,
  .reading-order-section .step-list,
  .index-list,
  .work-grid,
  .legend-list,
  .return-list,
  .collection-grid,
  .related-list,
  .continue-list,
  .next-links,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 4px;
    padding: 12px 14px;
  }

  .rank-no {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .rank-name {
    grid-column: 2;
  }

  .rank-genre {
    grid-column: 2;
    font-size: 13px;
  }

  .rank-status {
    grid-column: 2;
  }

  .genre-table,
  .compare-table,
  .ranking-list,
  .field-table {
    border-radius: var(--radius-md);
  }

  .genre-table thead,
  .compare-table thead {
    display: none;
  }

  .genre-table tbody tr,
  .compare-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .genre-table td,
  .genre-table tbody th,
  .compare-table td,
  .compare-table tbody th {
    padding: 2px 0;
    white-space: normal;
  }

  .genre-table .cell-code,
  .genre-table .genre-code {
    font-size: 13px;
  }

  .genre-table .genre-name,
  .compare-table tbody th {
    font-size: 16px;
  }

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .ranking-no {
    font-size: 18px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 16px;
  }

  .fields-layout,
  .field-scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .topic-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .topic-card img {
    width: 72px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px 16px 22px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-copy {
    padding: 14px 16px 22px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 40px;
  }
}

@media (max-width: 420px) {
  h1,
  .hero-title,
  .page-title {
    font-size: 23px;
  }

  .hero-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-covers .cover-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* 首屏以下模块的轻量滚动出现增强，不影响初始可见性 */
@media (prefers-reduced-motion: no-preference) {
  .section {
    animation: none;
  }

  .section.is-visible {
    animation: section-rise 0.42s ease-out both;
  }
}

@keyframes section-rise {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(0);
  }
}
