/* ==========================================================================
   age动漫 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f6f7f5;
  --bg-panel: #ffffff;
  --bg-soft: #eef1ee;
  --brand: #2f6b5e;
  --brand-deep: #245349;
  --accent: #c9a24a;
  --text-main: #22262a;
  --text-sub: #5b636b;
  --line: #e2e5e2;
  --line-strong: #d3d8d3;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(34, 38, 42, 0.05);
  --shadow-lift: 0 4px 14px rgba(34, 38, 42, 0.09);
  --container: 1180px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

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;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   layout · 容器与骨架
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: 64px;
}

.inner-main {
  padding-top: 24px;
}

/* 顶部事实条 */
.fact-bar {
  background-color: var(--brand-deep);
  color: #eaf1ee;
  font-size: 13px;
  line-height: 1.6;
}

.fact-bar-inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

.fact-bar-text {
  margin: 0;
  letter-spacing: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(246, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.85);
}

.brand-name {
  font-size: 19px;
  line-height: 1.2;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--bg-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

.nav-link.is-current,
.nav-item.is-current > .nav-link {
  color: var(--brand-deep);
  font-weight: 700;
  background-color: rgba(47, 107, 94, 0.09);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

.nav-toggle:hover {
  border-color: var(--brand);
}

/* 页脚 */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--line);
  padding-top: 44px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px 28px;
  padding-bottom: 32px;
}

.footer-about {
  max-width: 320px;
}

.footer-brand {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  line-height: 1.7;
}

.footer-col-title {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  color: var(--text-sub);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brand-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 22px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
/* 章节编号标题块 */
.chapter-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(47, 107, 94, 0.35);
  border-radius: var(--radius-sm);
  background-color: rgba(47, 107, 94, 0.07);
  font-size: 12px;
  color: var(--brand-deep);
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead,
.section-desc {
  max-width: 760px;
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

.section-num {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  color: var(--text-main);
  font-size: 15px;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand-deep);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 700;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-description {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-lead,
.page-summary {
  max-width: 780px;
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

/* 图片容器统一约束 */
.hero-figure img,
.cover-figure img,
.focus-media img,
.ranking-cover img,
.work-cover img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg-soft);
}

/* 状态标签 */
.status-ongoing,
.status-completed,
.status-paused {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.status-ongoing {
  background-color: rgba(47, 107, 94, 0.12);
  color: var(--brand-deep);
}

.status-completed {
  background-color: rgba(201, 162, 74, 0.18);
  color: #8a6c1f;
}

.status-paused {
  background-color: rgba(91, 99, 107, 0.13);
  color: var(--text-sub);
}

/* 相关入口 · 列表型 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-item {
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
}

.related-note {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* 相关入口 · 卡片型 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  text-decoration: none;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
  color: var(--text-main);
  text-decoration: none;
}

.related-title {
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--brand-deep);
}

.related-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.32;
  margin-bottom: 14px;
}

.hero-summary {
  margin: 0 0 22px;
  color: var(--text-sub);
  font-size: 16px;
}

.hero-paths {
  display: grid;
  gap: 10px;
}

.hero-path {
  border-left: 3px solid var(--line-strong);
  padding-left: 14px;
}

.hero-path:hover {
  border-left-color: var(--brand);
}

.hero-path-link {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
}

.hero-path-desc {
  margin: 2px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.65;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.hero-figure img {
  aspect-ratio: 16 / 9;
}

.hero-caption {
  padding: 10px 14px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.hero-genre-nav {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-genre-title {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--brand-deep);
}

.hero-genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.hero-genre-item {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

.hero-genre-link {
  font-size: 15px;
}

/* 题材方向总览 */
.genre-overview {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.genre-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}

.genre-name {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--brand-deep);
}

.genre-trait {
  margin: 0 0 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.genre-count {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.genre-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
}

.genre-link::after {
  content: " →";
  font-weight: 400;
}

/* 封面墙 */
.cover-wall {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cover-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}

.cover-figure {
  background-color: var(--bg-soft);
}

.cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-name {
  font-size: 16px;
  line-height: 1.45;
}

.cover-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 13px;
}

.cover-genre {
  color: var(--brand);
  font-weight: 700;
}

.cover-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(47, 107, 94, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
}

/* 更新记录与榜单并列 */
.updates-ranking {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.ur-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.ur-col {
  padding: 22px 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ur-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: var(--brand-deep);
}

.update-list {
  display: grid;
  gap: 0;
}

.update-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date {
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.update-name,
.update-title {
  color: var(--text-main);
  font-weight: 700;
}

.update-genre {
  color: var(--accent);
  font-size: 13px;
}

.update-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(91, 99, 107, 0.1);
  color: var(--text-sub);
  font-size: 12px;
  white-space: nowrap;
}

.ur-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.ur-more::after {
  content: " →";
  font-weight: 400;
}

.rank-list {
  counter-reset: rank;
  display: grid;
  gap: 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: rgba(201, 162, 74, 0.16);
  color: #8a6c1f;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rank-name {
  font-size: 15px;
  font-weight: 700;
}

.rank-reason {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

/* 阅读说明摘要 */
.guide-summary {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.guide-col {
  padding: 22px 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-col-title {
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--brand-deep);
}

.guide-points {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-point {
  position: relative;
  padding-left: 18px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.guide-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand);
}

.guide-text {
  margin: 0 0 14px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.guide-link {
  font-size: 14px;
  font-weight: 700;
}

.guide-link::after {
  content: " →";
  font-weight: 400;
}

/* 站内栏目索引 */
.site-index {
  padding: 52px 0 8px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-col {
  padding: 18px 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  margin-bottom: 8px;
  font-size: 16px;
}

.index-desc {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-genres-overview .genre-grid {
  margin-top: 24px;
}

.genre-mark {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.genre-note {
  margin: 0 0 4px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.genre-works {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.genre-works-group {
  padding: 20px 22px 22px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-group-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: var(--brand-deep);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.work-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
}

.work-cover img {
  aspect-ratio: 3 / 4;
}

.work-title {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.45;
}

.work-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 13px;
}

.work-genre {
  color: var(--brand);
  font-weight: 700;
}

.work-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(47, 107, 94, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.boundary-title {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--brand-deep);
}

.boundary-list {
  display: grid;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  font-size: 15px;
  font-weight: 700;
}

.related-link:hover,
.related-link:focus-visible {
  border-color: var(--brand);
  background-color: rgba(47, 107, 94, 0.06);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.update-section,
.update-focus,
.update-fields,
.ranking-section,
.ranking-note-section,
.related-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.related-section {
  border-bottom: 0;
}

.update-section .update-list {
  margin-top: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
}

.update-section .update-row {
  grid-template-columns: 104px minmax(0, 1fr) 116px 96px;
  align-items: center;
  padding: 14px 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.focus-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.focus-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}

.focus-media {
  background-color: var(--bg-soft);
}

.focus-media img {
  aspect-ratio: 16 / 10;
}

.focus-body {
  padding: 16px 18px 18px;
}

.focus-name {
  margin-bottom: 6px;
  font-size: 17px;
}

.focus-meta {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.focus-note {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.field-table {
  margin-top: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.field-caption,
.field-table-caption {
  caption-side: top;
  padding: 14px 18px;
  text-align: left;
  color: var(--text-sub);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  background-color: var(--bg-soft);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.field-table tbody th {
  width: 180px;
  color: var(--text-main);
  font-weight: 700;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table td {
  color: var(--text-sub);
}

.field-note {
  margin: 14px 0 0;
  color: var(--text-sub);
  font-size: 14px;
}

.update-fields .section-desc a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */
.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.ranking-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}

.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(201, 162, 74, 0.16);
  color: #8a6c1f;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.ranking-cover img {
  aspect-ratio: 3 / 4;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  margin-bottom: 6px;
  font-size: 17px;
}

.ranking-meta {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.tag-genre {
  color: var(--brand);
  font-weight: 700;
}

.tag-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(91, 99, 107, 0.1);
  color: var(--text-sub);
  font-size: 12px;
}

.ranking-reason {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.ranking-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.note-card {
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-title {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--brand-deep);
}

.note-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.rank-filter {
  margin-top: 24px;
  padding: 22px 24px;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-filter .note-text {
  margin-bottom: 16px;
}

.rank-filter-controls {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto 90px auto;
  align-items: center;
  gap: 12px 14px;
}

.rank-filter-label {
  color: var(--text-sub);
  font-size: 14px;
  white-space: nowrap;
}

.rank-filter-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--brand);
  cursor: pointer;
}

.rank-filter-number {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  color: var(--text-main);
  font-size: 15px;
  font-family: inherit;
}

.rank-filter-output {
  min-width: 74px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(47, 107, 94, 0.1);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */
.guide-figure {
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-figure-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.guide-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-of-type {
  border-bottom: 0;
}

.guide-section .section-title {
  margin-bottom: 8px;
}

.guide-section .section-desc {
  margin-bottom: 20px;
}

.guide-section .field-table tbody td.field-name {
  width: 180px;
  color: var(--text-main);
  font-weight: 700;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rule-item {
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.rule-title {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--brand-deep);
}

.rule-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-question {
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--brand-deep);
}

.faq-answer {
  margin: 0;
  padding: 14px 0 18px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
  border-top: 1px dashed var(--line);
}

.faq-answer a {
  font-weight: 700;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-text {
  margin: 0 0 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: 56px;
}

.error-panel {
  padding: 40px 36px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.error-panel h1 {
  font-size: 32px;
  line-height: 1.32;
  margin-bottom: 12px;
}

.error-text {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--text-sub);
  font-size: 16px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hint {
  margin-top: 28px;
  padding: 24px 26px;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint h2 {
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--brand-deep);
}

.error-links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.error-links a {
  font-weight: 700;
}

.error-note {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    min-height: 62px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0 20px 14px;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(34, 38, 42, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 16px;
  }

  .hero-section {
    padding: 36px 0 40px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .genre-overview,
  .cover-wall,
  .updates-ranking,
  .guide-summary,
  .site-index {
    padding: 40px 0;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ur-columns,
  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .footer-about {
    max-width: none;
    grid-column: 1 / -1;
  }

  .page-title {
    font-size: 26px;
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-columns,
  .focus-grid,
  .ranking-note-grid,
  .rule-list,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-section .update-row {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 12px;
  }

  .update-section .update-genre,
  .update-section .update-status {
    grid-column: 2;
  }

  .ranking-item {
    grid-template-columns: 40px 84px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .rank-filter-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .rank-filter-range,
  .rank-filter-number {
    grid-column: 1 / -1;
  }

  .rank-filter-output {
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .fact-bar {
    font-size: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-genre-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid,
  .cover-grid,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-figure img {
    aspect-ratio: 4 / 3;
  }

  .update-row,
  .update-section .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-section .update-genre,
  .update-section .update-status {
    grid-column: 1;
  }

  .update-section .update-list {
    padding: 4px 16px;
  }

  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .work-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-cover {
    grid-column: 2;
    width: 96px;
  }

  .ranking-body {
    grid-column: 2;
  }

  .ranking-rank {
    grid-row: span 3;
  }

  .field-table thead {
    display: none;
  }

  .field-table,
  .field-table tbody,
  .field-table tr,
  .field-table th,
  .field-table td {
    display: block;
    width: 100%;
  }

  .field-table tbody th,
  .guide-section .field-table tbody td.field-name {
    width: 100%;
    padding-bottom: 4px;
    border-bottom: 0;
    color: var(--brand-deep);
  }

  .field-table td {
    padding-top: 0;
  }

  .field-table tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .field-table tbody tr:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .rank-filter {
    padding: 18px 16px;
  }

  .rank-filter-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
