/* ==========================================================================
   age动漫下载 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base — 变量、重置、字体、骨架基础
   ========================================================================== */

:root {
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #1e2a44;
  --accent: #e0663c;
  --text: #22262e;
  --muted: #5c6472;
  --line: #ded8cc;
  --green: #2f7d63;
  --radius: 4px;
  --radius-lg: 8px;
  --shell: 1180px;
  --shadow-sm: 0 1px 2px rgba(30, 42, 68, 0.06);
  --shadow-md: 0 4px 14px rgba(30, 42, 68, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time,
.rank-no,
.step-no,
.update-date,
.entry-latest {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   layout — 骨架容器：页头 / 主导航 / 主区 / 页面布局 / 页脚
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:hover {
  background: #f1ede4;
  color: var(--ink);
}

.site-nav a.is-current {
  color: var(--accent);
  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: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.mobile-nav ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  font-size: 15.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.page-layout.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.content-main {
  min-width: 0;
}

.content-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 页脚 */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-brand,
.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-order,
.footer-copy {
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 区块标题 */

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
}

.section-desc,
.section-lead,
.section-note,
.section-intro {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.section-lead,
.section-intro {
  margin-bottom: 20px;
}

.section-note {
  margin-bottom: 16px;
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.btn-primary:hover {
  background: #c8552f;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

/* 更多入口 */

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}

.link-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.block-more,
.wall-more {
  margin-top: 18px;
}

/* 标签 */

.tag-sm {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, color 0.16s ease,
    background-color 0.16s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf1ea;
}

/* 连载状态 */

.status,
.status-ongoing,
.status-done,
.status-finished,
.status-serial,
.status-short,
.status-completed,
.tag-status,
.rank-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f1ede4;
  white-space: nowrap;
}

.status-ongoing,
.status-serial {
  color: var(--green);
  border-color: #c3ddd2;
  background: #eef6f1;
}

.status-done,
.status-finished,
.status-completed {
  color: var(--muted);
  border-color: var(--line);
  background: #f1ede4;
}

.status-short {
  color: var(--accent);
  border-color: #f0cdbd;
  background: #fdf1ea;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */

.page-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 780px;
}

.info-bar,
.page-facts,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.info-item,
.page-facts li,
.page-meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.info-item dt,
.fact-label,
.info-label,
.meta-label {
  color: var(--muted);
}

.info-item dd,
.fact-value,
.info-value,
.meta-value {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* 图片说明块 */

.entry-figure,
.anatomy-figure,
.genre-figure,
.rank-figure,
.reading-figure,
.page-figure {
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry-figure img,
.anatomy-figure img,
.genre-figure img,
.rank-figure img,
.reading-figure img,
.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ece7dd;
}

.entry-figure figcaption,
.anatomy-figure figcaption,
.genre-figure figcaption,
.rank-figure figcaption,
.reading-figure figcaption,
.page-figure figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 延伸入口（内页） */

.related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.related-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.related-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* 首页底部延伸入口条 */

.related-links {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.related-links-label {
  font-size: 13px;
  color: var(--muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 侧栏通用块 */

.aside-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.aside-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.aside-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-block + .aside-block {
  margin-top: 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

/* 首屏 */

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--accent);
  background: #fdf1ea;
  border: 1px solid #f0cdbd;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hero-lead {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-fact dt {
  font-size: 12.5px;
  color: var(--muted);
}

.hero-fact dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.hero-media {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece7dd;
}

.hero-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 题材选择轴 */

.genre-rail {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dimension-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dimension-item dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dimension-item dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* 封面墙 */

.cover-wall {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfc7b6;
}

.cover-link {
  display: block;
  padding: 14px;
}

.cover-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cover-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ece7dd;
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.16s ease;
}

.cover-card:hover .cover-figure img {
  transform: scale(1.03);
}

.cover-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* 首页主列 + 侧栏 */

.home-main .page-layout {
  margin-top: 48px;
}

.update-main {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.update-body {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  flex: 1;
}

.update-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.update-chapter {
  font-size: 13.5px;
  color: var(--muted);
}

.ranking-aside {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ranking-aside h2 {
  font-size: 22px;
}

.aside-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-row:nth-child(1) .rank-no,
.rank-item:nth-child(1) .rank-no {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.rank-name {
  font-size: 14.5px;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}

.rank-row .status,
.rank-row .status-ongoing,
.rank-row .status-done {
  flex-shrink: 0;
}

/* 专题入口 */

.theme-entry {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.theme-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-name {
  font-size: 17px;
}

.theme-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.theme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 阅读三步 */

.reading-steps {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: #fdf1ea;
  border: 1px solid #f0cdbd;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.step-title {
  font-size: 17px;
}

.step-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   pages — 更新日历
   ========================================================================== */

.page-updates .content-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.date-groups h2,
.page-catalog .grouped-list h2,
.page-genres .genre-grid h2,
.page-genres .cross-table h2,
.page-ranking .rank-groups h2,
.page-ranking .rule-note h2,
.page-guide .reading-steps h2,
.page-guide .guide-faq h2,
.page-feedback .self-check h2,
.page-feedback .issue-types h2,
.page-feedback .describe-points h2 {
  font-size: 22px;
}

.date-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.date-group:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.date-title {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-updates .update-row {
  gap: 8px 14px;
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.tag-genre {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-aside h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* ==========================================================================
   pages — 作品目录
   ========================================================================== */

.catalog-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.catalog-group:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.group-head {
  margin-bottom: 12px;
}

.group-head h3 {
  font-size: 17px;
}

.group-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  border-bottom: 1px solid var(--line);
}

.entry-row:last-child {
  border-bottom: none;
}

.entry-link {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 4px;
  transition: background-color 0.16s ease;
}

.entry-link:hover {
  background: #faf7f1;
}

.entry-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.entry-genre {
  font-size: 13.5px;
  color: var(--muted);
}

.entry-status {
  justify-self: start;
}

.entry-latest {
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
}

.entry-anatomy {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.field-table {
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.field-table caption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: #faf7f1;
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #faf7f1;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--muted);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   pages — 题材分类
   ========================================================================== */

.genre-grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.genre-card:hover {
  border-color: #cfc7b6;
  transform: translateY(-2px);
}

.genre-name {
  font-size: 17px;
}

.genre-name a {
  color: var(--ink);
}

.genre-name a:hover {
  color: var(--accent);
}

.genre-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.genre-order {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.cross-table {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.cross-table-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cross-row {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.cross-genre {
  font-size: 17px;
}

.cross-status,
.cross-pace {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.cross-pace {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* ==========================================================================
   pages — 人气榜单
   ========================================================================== */

.rank-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.rank-group:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.rank-group h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.page-ranking .rank-list {
  margin-top: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-body {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  flex: 1;
}

.rank-chapter {
  font-size: 13.5px;
  color: var(--muted);
}

.rule-note {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.rule-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.rule-card h3 {
  font-size: 17px;
}

.rule-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   pages — 阅读说明
   ========================================================================== */

.page-guide .content-main {
  min-width: 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 64px;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: #fdf1ea;
  border: 1px solid #f0cdbd;
  border-radius: var(--radius);
}

.step-item h3 {
  font-size: 17px;
}

.step-item p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-faq {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 18px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.page-guide .content-aside .aside-block h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-list li h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.aside-list li p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-links .aside-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.aside-links .aside-list li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.aside-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   pages — 问题反馈
   ========================================================================== */

.self-check,
.issue-types,
.describe-points {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.self-check {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.issue-group {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.issue-group h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.issue-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.issue-list li h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.issue-list li p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.point-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.point-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.point-note {
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  line-height: 1.7;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-hero {
  max-width: 720px;
}

.error-hero h1 {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
}

.error-lead {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-paths {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.error-paths h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.16s ease, color 0.16s ease,
    transform 0.16s ease;
}

.error-path-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* 进入视口淡入（不影响初始可见性，仅增强） */

.reveal {
  animation: reveal-in 0.4s ease both;
}

@keyframes reveal-in {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  .cover-card,
  .cover-figure img,
  .btn,
  .btn-primary,
  .btn-ghost,
  .related-list a,
  .genre-card,
  .error-path-list a {
    transition: none;
  }
}

/* ==========================================================================
   responsive — 960px
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 24px 32px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .dimension-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-link {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  }

  .entry-latest {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* ==========================================================================
   responsive — 640px
   ========================================================================== */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    height: 62px;
  }

  .brand-name {
    font-size: 17px;
  }

  .inner-main,
  .page-layout.layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .page-layout.layout-shell {
    padding-bottom: 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 20px 0;
    margin-bottom: 22px;
  }

  .hero-layout {
    padding: 28px 16px 26px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .genre-rail,
  .cover-wall,
  .theme-entry,
  .reading-steps {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-rail,
  .cover-wall,
  .theme-entry,
  .reading-steps {
    padding-top: 36px;
  }

  .home-main .page-layout {
    margin-top: 36px;
  }

  .dimension-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid,
  .theme-grid,
  .steps-grid,
  .rule-grid,
  .related-list,
  .genre-grid-list,
  .cross-table-rows,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-main,
  .ranking-aside,
  .page-updates .content-main {
    padding: 18px;
  }

  .update-row {
    flex-direction: column;
    gap: 4px;
  }

  .update-body {
    gap: 4px 10px;
  }

  .entry-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .entry-latest {
    text-align: left;
  }

  .field-table {
    display: block;
    overflow-x: auto;
  }

  .field-table caption,
  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .step-item {
    padding: 18px 16px 18px 56px;
  }

  .step-item::before {
    left: 16px;
    top: 18px;
  }

  .related-links {
    padding: 0 16px 36px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 22px;
    gap: 22px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
    flex-direction: column;
  }

  .error-main {
    padding: 40px 16px 52px;
  }

  .error-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 390px) {
  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
