/* ==========================================================================
   樱花动漫 kqven.cn — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版
   -------------------------------------------------------------------------- */
:root {
  --brand: #C2415A;
  --brand-deep: #A32F47;
  --ink: #2E3A4B;
  --ink-soft: #4A5666;
  --muted: #6B7280;
  --bg: #FBF7F8;
  --card: #FFFFFF;
  --line: #E7DEE1;
  --line-soft: #F1E9EC;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(46, 58, 75, 0.05);
  --shadow-hover: 0 6px 16px rgba(46, 58, 75, 0.10);
  --wrap: 1180px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout：站点骨架（页头 / 导航 / 主容器 / 面包屑 / 页脚）
   -------------------------------------------------------------------------- */
.site-body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--line);
}

.nav-list a.is-current {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.inner-main {
  padding-top: 18px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页标题区（全站统一） */
.page-header {
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  max-width: 860px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* 页脚 */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 20px 22px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr);
  gap: 32px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--muted);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brand);
}

.footer-list a.is-current {
  color: var(--brand);
  font-weight: 700;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components：通用模块（区块头、卡片、标签、列表、表格、步骤、FAQ）
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.section-desc a {
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.section-desc a:hover,
.section-desc a:focus-visible {
  border-bottom-color: var(--brand);
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

/* 题材标签 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 6px 4px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--brand);
  background: #FCEFF2;
  border: 1px solid #F3D8DE;
  border-radius: 4px;
}

/* 图文封面通用约束 */
.cover-figure,
.work-cover,
.rank-thumb,
.ranking-cover,
.update-thumb,
.hero-figure,
.guide-figure {
  position: relative;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
}

.cover-figure img,
.work-cover img,
.rank-thumb img,
.ranking-cover img,
.update-thumb img,
.hero-figure img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 步骤列表（内页通用，按父级作用域区分） */
.step-list,
.path-steps {
  display: grid;
  gap: 16px;
}

.step-item,
.path-step {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index,
.path-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand);
  border-radius: 50%;
}

.step-title,
.path-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-body p,
.path-step-body p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* 相关入口列表 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-list a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.fact-bar {
  background: var(--ink);
  color: #F4E9EC;
}

.fact-bar p {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.home-main {
  padding-top: 26px;
}

/* 首屏 */
.hero {
  margin-bottom: 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-paths {
  display: grid;
  gap: 12px;
}

.hero-path a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.hero-path a:hover,
.hero-path a:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.hero-path-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.hero-path a:hover .hero-path-name,
.hero-path a:focus-visible .hero-path-name {
  color: var(--brand);
}

.hero-path-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-media {
  display: grid;
  gap: 18px;
}

.hero-figure {
  border: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.hero-genre-index {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-genre-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.hero-genre-list li {
  display: flex;
}

.hero-genre-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-genre-list a:hover,
.hero-genre-list a:focus-visible {
  color: var(--brand);
}

/* 题材方向总览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.genre-trait {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}

.genre-samples {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.genre-samples li {
  margin-bottom: 4px;
}

.genre-samples a {
  font-size: 14px;
  color: var(--brand);
}

.genre-samples a:hover,
.genre-samples a:focus-visible {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand-deep);
}

/* 主推荐封面条目 + 最近更新 */
.pick-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: start;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cover-card-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.cover-card-wide {
  grid-column: span 2;
}

.cover-figure {
  border-radius: 0;
  flex: 0 0 auto;
}

.cover-card .cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
}

.cover-card-tall .cover-figure img {
  aspect-ratio: 4 / 5;
}

.cover-card-wide .cover-figure img {
  aspect-ratio: 16 / 9;
}

.cover-meta {
  padding: 10px 12px 12px;
}

.cover-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.cover-tags {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cover-status {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  background: #FCEFF2;
  border: 1px solid #F3D8DE;
  border-radius: 4px;
  padding: 1px 8px;
}

/* 最近更新侧栏 */
.update-column {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-group {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.update-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.update-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

.update-row:first-child {
  border-top: 0;
}

.update-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.update-genre {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
}

.update-state {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.aside-more {
  margin: 8px 0 0;
  font-size: 14px;
}

.aside-more a {
  color: var(--brand);
  font-weight: 500;
}

.aside-more a:hover,
.aside-more a:focus-visible {
  border-bottom: 1px solid var(--brand);
}

/* 人气榜单位次 + 字段口径 */
.rank-field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.rank-no {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.rank-thumb {
  width: 64px;
  height: 84px;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.rank-more {
  margin: 14px 0 0;
  font-size: 14px;
}

.rank-more a {
  color: var(--brand);
  font-weight: 500;
}

.rank-more a:hover,
.rank-more a:focus-visible {
  border-bottom: 1px solid var(--brand);
}

.field-column {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 9px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.field-table thead th {
  color: var(--ink);
  font-weight: 700;
  background: #FCF5F7;
}

.field-table tbody th {
  width: 34%;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--muted);
  line-height: 1.7;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.field-note a {
  color: var(--brand);
  font-weight: 500;
}

.field-note a:hover,
.field-note a:focus-visible {
  border-bottom: 1px solid var(--brand);
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.index-item:hover,
.index-item:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.index-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.index-item:hover .index-name,
.index-item:focus-visible .index-name {
  color: var(--brand);
}

.index-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages：题材分类 genre.html
   -------------------------------------------------------------------------- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.toc-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.toc-card-title a {
  color: var(--brand);
}

.toc-card-title a:hover,
.toc-card-title a:focus-visible {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand-deep);
}

.toc-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.genre-group {
  padding: 22px 22px 18px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-group-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.genre-group-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #FDFAFA;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.work-cover {
  flex: 0 0 auto;
  width: 72px;
}

.work-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.work-body {
  min-width: 0;
}

.work-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.work-tags {
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 4px;
}

.work-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.basis-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.basis-col {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.basis-col-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.basis-col p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages：最近更新 updates.html
   -------------------------------------------------------------------------- */
.update-log,
.update-explain,
.update-rhythm,
.update-path {
  margin-bottom: 40px;
}

.update-day {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-day-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.update-log .update-list {
  display: grid;
  gap: 0;
}

.update-log .update-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.update-log .update-row:first-child {
  border-top: 0;
}

.update-thumb {
  width: 60px;
  height: 80px;
}

.update-info {
  min-width: 0;
}

.update-info .update-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.update-info .update-genre {
  font-size: 13px;
  color: var(--muted);
}

.update-status {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.update-status.is-new {
  color: var(--brand);
  background: #FCEFF2;
  border-color: #F3D8DE;
}

.explain-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.explain-col {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.explain-col h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.explain-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.explain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.rhythm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rhythm-item {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rhythm-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rhythm-item p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.rhythm-item a {
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.rhythm-item a:hover,
.rhythm-item a:focus-visible {
  border-bottom-color: var(--brand);
}

.update-path .path-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-path .path-step {
  flex-direction: column;
  gap: 10px;
}

.update-path .path-step h3 {
  font-size: 17px;
  font-weight: 700;
}

.update-path .path-step p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages：人气榜单 ranking.html
   -------------------------------------------------------------------------- */
.ranking-section,
.ranking-method,
.ranking-reasons,
.ranking-paths {
  margin-bottom: 40px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ranking-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.ranking-rank {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ranking-cover {
  width: 72px;
  height: 96px;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ranking-name a {
  color: var(--ink);
}

.ranking-name a:hover,
.ranking-name a:focus-visible {
  color: var(--brand);
}

.ranking-genre {
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 4px;
}

.ranking-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.method-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.method-col {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.method-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.reason-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reason-col {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.reason-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.path-item {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.path-title a {
  color: var(--brand);
}

.path-title a:hover,
.path-title a:focus-visible {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand-deep);
}

.path-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages：阅读说明 guide.html
   -------------------------------------------------------------------------- */
.guide-fields,
.guide-scope,
.guide-path,
.guide-feedback,
.guide-faq,
.guide-related {
  margin-bottom: 40px;
}

.guide-figure {
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.guide-fields .field-table {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-fields .field-row {
  display: grid;
  grid-template-columns: minmax(140px, 26%) minmax(0, 1fr);
}

.guide-fields .field-row + .field-row {
  border-top: 1px solid var(--line-soft);
}

.guide-fields .field-row-head {
  background: #FCF5F7;
}

.guide-fields .field-name {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--line-soft);
}

.guide-fields .field-desc {
  padding: 11px 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-fields .field-row-head .field-name,
.guide-fields .field-row-head .field-desc {
  color: var(--ink);
}

.guide-fields .field-note {
  margin-top: 12px;
}

.guide-fields .field-note a {
  margin-right: 14px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scope-item {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-item-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scope-item p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.guide-path .path-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-path .path-step {
  align-items: flex-start;
}

.path-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.path-note a {
  color: var(--brand);
  font-weight: 500;
}

.path-note a:hover,
.path-note a:focus-visible {
  border-bottom: 1px solid var(--brand);
}

.feedback-block {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-block-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.feedback-item {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.feedback-note {
  font-size: 14px;
  color: var(--muted);
}

.feedback-note a {
  color: var(--brand);
  font-weight: 500;
}

.feedback-note a:hover,
.feedback-note a:focus-visible {
  border-bottom: 1px solid var(--brand);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 15px 44px 15px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] .faq-question::after {
  content: "收起";
  color: var(--brand);
}

.faq-item[open] .faq-question {
  color: var(--brand);
  border-bottom: 1px solid var(--line-soft);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.guide-related .related-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--brand-deep);
}

.related-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: 40px;
}

.error-block {
  max-width: 720px;
  padding: 36px 32px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
  line-height: 1.2;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.error-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.error-paths a {
  display: block;
  padding: 12px 14px;
  background: #FDFAFA;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}

.error-paths a:hover,
.error-paths a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
}

.error-home:hover,
.error-home:focus-visible {
  background: var(--brand-deep);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   responsive：断点 900px / 600px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 46px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--brand);
    padding-left: 12px;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .fact-bar p {
    padding: 8px 16px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick-update-layout,
  .rank-field-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cover-card-tall .cover-figure img {
    aspect-ratio: 3 / 4;
  }

  .cover-card-wide {
    grid-column: span 2;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basis-columns,
  .explain-columns,
  .method-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .rhythm-list,
  .reason-columns,
  .scope-list,
  .update-path .path-steps,
  .guide-path .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-related .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title {
    font-size: 19px;
  }

  .hero-path a {
    padding: 12px 14px;
  }

  .hero-genre-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-card-wide {
    grid-column: span 2;
  }

  .cover-card-wide .cover-figure img {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rank-thumb {
    width: 56px;
    height: 74px;
  }

  .ranking-item {
    grid-template-columns: 36px 60px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-cover {
    width: 60px;
    height: 80px;
  }

  .update-log .update-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .update-thumb {
    width: 52px;
    height: 70px;
  }

  .update-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-fields .field-table {
    display: grid;
    gap: 10px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .guide-fields .field-row-head {
    display: none;
  }

  .guide-fields .field-row {
    display: block;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .guide-fields .field-row + .field-row {
    border-top: 1px solid var(--line);
  }

  .guide-fields .field-name {
    padding: 0 0 4px;
    border-right: 0;
  }

  .guide-fields .field-desc {
    padding: 0;
  }

  .index-grid,
  .toc-grid,
  .guide-related .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .error-block {
    padding: 26px 20px 24px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-title {
    font-size: 22px;
  }
}
