/* ==========================================================================
   动漫之家 · duolemai.cn
   通用漫画内容站 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-tint: #eef3f9;
  --text-main: #1f2329;
  --text-sub: #5c6672;
  --color-accent: #2f6fb3;
  --color-accent-dark: #24568a;
  --border-color: #e3e6ea;
  --border-strong: #d3d8de;
  --radius-card: 8px;
  --radius-chip: 6px;
  --shadow-card: 0 1px 2px rgba(31, 35, 41, 0.04);
  --shadow-hover: 0 4px 12px rgba(31, 35, 41, 0.08);
  --container: 1120px;
  --container-narrow: 960px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

time {
  font-style: normal;
}

.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;
}


/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */

/* --- 页头 --- */

.site-header {
  position: relative;
  z-index: 20;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: var(--text-main);
  line-height: 1.3;
}

.brand:hover,
.brand:focus-visible {
  color: var(--color-accent);
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.brand-slogan {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-chip);
  background-color: var(--bg-card);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  color: var(--text-main);
  font-size: 15px;
  border-radius: var(--radius-chip);
  border: 1px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
  background-color: var(--bg-tint);
}

.nav-link.is-current {
  color: var(--color-accent);
  font-weight: 600;
  background-color: var(--bg-tint);
  border-color: #dbe6f2;
}

.header-notice {
  background-color: var(--bg-tint);
  border-bottom: 1px solid var(--border-color);
}

.header-notice p {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

/* --- 主容器 --- */

.site-main {
  display: block;
  width: 100%;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 56px;
}

.home-main {
  padding-bottom: 56px;
}

/* --- 面包屑 --- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* --- 内页标题区 --- */

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
}

.page-description {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.75;
}

/* --- 页脚 --- */

.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px 0;
}

.back-to-main {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-accent);
  font-size: 13px;
}

.back-to-main::before {
  content: "↑";
  margin-right: 6px;
  font-size: 12px;
}

.back-to-main:hover,
.back-to-main:focus-visible {
  color: var(--color-accent-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 20px;
}

.footer-brand-name {
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
}

.footer-brand-desc {
  max-width: 300px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-group-title {
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  display: inline-block;
  min-height: 26px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--color-accent);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   3. components —— 通用组件：按钮、区块、标签、表格、时间线、FAQ
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-chip);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  color: #ffffff;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #ffffff;
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--color-accent);
  background-color: var(--bg-card);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--color-accent-dark);
  background-color: var(--bg-tint);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* --- 通用区块骨架 --- */

.section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.section-desc,
.section-intro,
.section-lead {
  max-width: 800px;
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.section-intro,
.section-lead {
  margin-bottom: 18px;
}

.section-desc a,
.section-intro a,
.section-lead a {
  color: var(--color-accent);
}

.section-foot {
  margin: 16px 0 0;
  font-size: 14px;
}

.text-link {
  color: var(--color-accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.text-link::after {
  content: "→";
  margin-left: 6px;
  font-size: 13px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent-dark);
}

/* --- 标签 --- */

.tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border: 1px solid #dbe6f2;
  border-radius: var(--radius-chip);
  font-size: 12px;
  line-height: 1.6;
}

.tag-state {
  color: var(--text-sub);
  background-color: #f1f3f5;
  border-color: var(--border-color);
}

/* --- figure 与图片 --- */

.hero-figure,
.genre-figure,
.catalog-figure,
.updates-figure,
.notes-figure,
.cover-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.hero-figure img,
.genre-figure img,
.catalog-figure img,
.updates-figure img,
.notes-figure img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure figcaption,
.genre-figure figcaption,
.catalog-figure figcaption,
.updates-figure figcaption,
.notes-figure figcaption {
  padding: 10px 14px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* --- 表格通用 --- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
}

.genre-table,
.field-table,
.status-table {
  min-width: 640px;
  font-size: 14px;
  line-height: 1.7;
}

.genre-table caption,
.field-table-caption {
  padding: 12px 16px;
  color: var(--text-sub);
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.genre-table th,
.genre-table td,
.field-table th,
.field-table td,
.status-table th,
.status-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.genre-table thead th,
.field-table thead th,
.status-table thead th {
  color: var(--text-main);
  font-weight: 600;
  background-color: var(--bg-tint);
  white-space: nowrap;
}

.genre-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.status-table tbody tr:last-child td,
.status-table tbody tr:last-child th {
  border-bottom: none;
}

.genre-table tbody tr:hover,
.field-table tbody tr:hover,
.status-table tbody tr:hover {
  background-color: #fafbfc;
}

/* --- 步骤编号（父级限定，避免跨页污染） --- */

.bridge-step .step-index,
.path-step .step-index,
.feedback-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background-color: var(--color-accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}


/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页模块
   -------------------------------------------------------------------------- */

/* --- 首页：首屏题材焦点区 --- */

.hero-section {
  padding: 32px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-desc {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.entry-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border: 1px solid #dbe6f2;
  border-radius: var(--radius-chip);
  font-size: 14px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.entry-chip:hover,
.entry-chip:focus-visible {
  color: var(--color-accent-dark);
  background-color: #e4edf8;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.hero-figure {
  border: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* --- 首页：题材分类方向总览 --- */

.genre-rows {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  overflow: hidden;
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.18s ease;
}

.genre-row:last-child {
  border-bottom: none;
}

.genre-row:hover {
  background-color: #fafbfc;
}

.genre-cell {
  min-width: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.genre-name {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}

.genre-feature {
  color: var(--text-main);
}

.genre-link {
  align-self: center;
  white-space: nowrap;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
}

.genre-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.genre-link:hover,
.genre-link:focus-visible {
  color: var(--color-accent-dark);
}

/* --- 首页：封面墙速览 --- */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cover-figure {
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-body {
  padding: 14px 16px 16px;
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.cover-tags {
  margin: 8px 0 0;
}

/* --- 首页：最近更新时间线 --- */

.timeline-list {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  overflow: hidden;
}

.timeline-month {
  padding: 14px 20px 10px;
  color: var(--text-main);
  background-color: var(--bg-tint);
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 600;
}

.month-items {
  padding: 4px 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
}

.month-items .timeline-item:last-child {
  border-bottom: none;
}

.item-date {
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.item-name {
  color: var(--text-main);
  font-weight: 500;
}

.item-genre {
  color: var(--text-sub);
}

.item-state {
  justify-self: end;
  padding: 2px 10px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border: 1px solid #dbe6f2;
  border-radius: var(--radius-chip);
  font-size: 12px;
  white-space: nowrap;
}

/* --- 首页：榜单排行速览 --- */

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ranking-block {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.ranking-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.ranking-basis {
  margin: 8px 0 14px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.ranking-list {
  counter-reset: rank;
}

.ranking-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
}

.ranking-list li::before {
  counter-increment: rank;
  content: counter(rank);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

/* --- 首页：阅读说明与收录边界摘要 --- */

.summary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.summary-col {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.field-mini-list dt {
  margin-top: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.field-mini-list dt:first-of-type {
  margin-top: 0;
}

.field-mini-list dd {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-list li:last-child {
  border-bottom: none;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* --- 首页：站内页面索引 --- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  min-width: 0;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.index-col:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.index-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.index-desc {
  margin: 8px 0 12px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.index-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
}

.index-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.index-link:hover,
.index-link:focus-visible {
  color: var(--color-accent-dark);
}


/* --- 内页：题材分类 --- */

.section-genre-table .genre-figure {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.section-genre-table .genre-figure img {
  aspect-ratio: 16 / 7;
}

.genre-table td:last-child a {
  color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.summary-card {
  min-width: 0;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.summary-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.summary-card-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.summary-card p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.summary-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.summary-list li {
  position: relative;
  padding: 5px 0 5px 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.bridge-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: bridge;
}

.bridge-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.bridge-step .step-index {
  margin-top: 2px;
}

.bridge-step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.bridge-step p {
  grid-column: 2 / -1;
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}


/* --- 内页：作品目录 --- */

.catalog-structure .catalog-figure {
  margin-top: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.catalog-structure .catalog-figure img {
  aspect-ratio: 16 / 7;
}

.catalog-fields .field-table {
  min-width: 520px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  overflow: hidden;
}

.field-table .field-name {
  width: 200px;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.catalog-scope p {
  max-width: 860px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.scope-item {
  position: relative;
  padding: 14px 16px 14px 34px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.scope-note {
  color: var(--text-sub);
  font-size: 14px;
}

.catalog-path .path-steps {
  display: grid;
  gap: 14px;
}

.path-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.path-step .step-index {
  margin-top: 2px;
}

.step-body {
  min-width: 0;
}

.path-step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.path-step p {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.path-step p a {
  color: var(--color-accent);
  font-weight: 500;
}

.catalog-related .related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  min-width: 0;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.related-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 16px;
  font-weight: 600;
}

.related-card-title a {
  color: var(--text-main);
}

.related-card-title a:hover,
.related-card-title a:focus-visible {
  color: var(--color-accent);
}

.related-card-desc {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}


/* --- 内页：最近更新 --- */

.updates-figure {
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.updates-figure img {
  aspect-ratio: 16 / 6;
}

.updates-timeline .timeline-group {
  margin-bottom: 24px;
}

.updates-timeline .timeline-month {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-chip);
  background-color: var(--bg-tint);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.updates-timeline .timeline-list {
  margin-top: 12px;
  border-left: 2px solid #dbe6f2;
  border-radius: 0;
  background-color: transparent;
  overflow: visible;
}

.updates-timeline .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-left: 18px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.updates-timeline .timeline-item + .timeline-item {
  margin-top: 12px;
}

.updates-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-card);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
}

.timeline-date {
  color: var(--text-sub);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.timeline-body {
  min-width: 0;
}

.timeline-work {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.timeline-meta {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.status-legend .status-table {
  min-width: 480px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  overflow: hidden;
}

.status-table tbody th {
  width: 160px;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.status-table tbody td {
  color: var(--text-sub);
}

.follow-guide .follow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.follow-step {
  min-width: 0;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.follow-step-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.follow-step p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.follow-step p a {
  color: var(--color-accent);
  font-weight: 500;
}


/* --- 内页：阅读说明 --- */

.notes-section {
  margin-bottom: 40px;
}

.notes-section .section-title {
  margin-bottom: 8px;
}

.notes-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.notes-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.notes-detail {
  display: block;
}

.notes-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.18s ease;
}

.notes-summary::-webkit-details-marker {
  display: none;
}

.notes-summary::after {
  content: "+";
  margin-left: auto;
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
}

.notes-detail[open] .notes-summary::after {
  content: "−";
}

.notes-summary:hover {
  background-color: #fafbfc;
}

.notes-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.notes-heading {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}

.notes-body {
  margin: 0;
  padding: 0 18px 16px 54px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.notes-scope .notes-figure {
  margin-top: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tint);
}

.notes-scope .notes-figure img {
  aspect-ratio: 16 / 6;
}

.maintain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.maintain-card {
  min-width: 0;
  padding: 16px 18px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.maintain-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.maintain-text {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.feedback-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feedback-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.feedback-step .step-index {
  margin-top: 2px;
}

.feedback-step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.step-text {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.step-text a {
  color: var(--color-accent);
  font-weight: 500;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 13px 44px 13px 18px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.18s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background-color: #fafbfc;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.related-item a::after {
  content: "→";
  margin-left: auto;
  padding-left: 8px;
  color: var(--color-accent);
  font-size: 13px;
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}


/* --- 404 --- */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.error-code {
  margin: 0;
  color: var(--color-accent);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.error-title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
}

.error-desc {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.error-tips li {
  min-width: 0;
}

.error-tips a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--color-accent);
  background-color: var(--bg-tint);
  border: 1px solid #dbe6f2;
  border-radius: var(--radius-chip);
  font-size: 14px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.error-tips a:hover,
.error-tips a:focus-visible {
  color: var(--color-accent-dark);
  background-color: #e4edf8;
  border-color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   5. responsive —— 平板与移动端
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-figure {
    order: -1;
  }

  .cover-grid,
  .ranking-grid,
  .summary-grid,
  .bridge-steps,
  .follow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid,
  .catalog-related .related-grid,
  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .genre-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
  }

  .genre-name {
    grid-column: 1 / -1;
  }

  .genre-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .timeline-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .item-genre {
    grid-column: 2 / 3;
  }

  .item-state {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
    justify-content: stretch;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .header-notice p {
    padding: 8px 16px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding-top: 20px;
  }

  .hero-inner {
    padding: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .section {
    margin-top: 32px;
  }

  .section-title {
    font-size: 18px;
  }

  .cover-grid,
  .ranking-grid,
  .summary-grid,
  .bridge-steps,
  .follow-steps,
  .summary-columns,
  .maintain-grid,
  .scope-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid,
  .catalog-related .related-grid,
  .related-links,
  .error-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-inner {
    padding: 20px 16px 16px;
  }

  .footer-top,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .updates-timeline .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .timeline-date {
    color: var(--color-accent);
    font-weight: 500;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-title {
    font-size: 22px;
  }

  .page-title {
    font-size: 20px;
  }

  .cover-grid,
  .index-grid,
  .catalog-related .related-grid,
  .related-links,
  .error-tips {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .item-name {
    grid-column: 1 / 2;
  }

  .item-genre {
    grid-column: 1 / 2;
  }

  .item-state {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-body {
    padding-left: 18px;
  }

  .error-actions .btn {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   6. motion —— 轻量增强（不影响初始可见性）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .section-title {
    animation: title-fade 0.4s ease both;
  }

  @keyframes title-fade {
    from {
      opacity: 0.01;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
