/* ==========================================================================
   酷漫屋 vxbda.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-ink: #16233a;
  --c-accent: #b8452f;
  --c-surface: #f5f6f8;
  --c-line: #e2e5ea;
  --c-muted: #3b4759;
  --c-bg: #ffffff;
  --c-accent-soft: #fbf0ed;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New",
    "PingFang SC", monospace;
  --w-shell: 1120px;
  --w-read: 720px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(22, 35, 58, 0.05);
  --shadow-raise: 0 2px 10px rgba(22, 35, 58, 0.07);
  --gap-module: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 2px;
  color: var(--c-ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--c-ink);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-slogan {
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.4;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-block;
  padding: 8px 2px;
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom-color: var(--c-accent);
}

.nav-link.is-current {
  color: var(--c-accent);
  font-weight: 700;
  border-bottom-color: var(--c-accent);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink);
  font-weight: 600;
}

.page-header {
  max-width: var(--w-read);
  margin: 0 0 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.page-description {
  margin: 0;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

.section-head {
  margin-bottom: 24px;
}

.section-head .section-title {
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-text {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-note {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

.block-desc {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand {
  margin: 0 0 8px;
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  margin: 0 0 10px;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
}

.footer-copy {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 16px 24px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 内页主栏 + 侧栏布局 */
.page-layout {
  display: grid;
  gap: 32px;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-main-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 通用内容区块 */
.section {
  margin-bottom: var(--gap-module);
}

.section:last-child {
  margin-bottom: 0;
}

.section > .section-title {
  margin-bottom: 8px;
}

.section > .section-intro,
.section > .section-desc,
.section > .section-text {
  margin-bottom: 20px;
}

.content-section {
  margin-bottom: var(--gap-module);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section > .section-title {
  margin-bottom: 8px;
}

.content-section > .section-desc {
  margin-bottom: 20px;
}

/* 标签 */
.tag,
.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 侧栏块 */
.aside-block {
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.aside-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.aside-desc,
.aside-text {
  margin-bottom: 12px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.aside-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list-item {
  position: relative;
  padding-left: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.aside-list-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-link-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link-item a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.aside-link-desc {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 要点列表 */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item {
  position: relative;
  padding-left: 18px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.rule-item::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 1px;
}

/* 入口链接块 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.entry-block {
  display: block;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-block:hover,
.entry-block:focus-visible {
  text-decoration: none;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-raise);
}

.entry-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.entry-text,
.entry-desc {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.entry-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.entry-card .entry-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.entry-card .entry-desc {
  margin-bottom: 12px;
}

.entry-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.entry-link:hover,
.entry-link:focus-visible {
  text-decoration: underline;
}

/* 出口卡片 */
.exit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.exit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.exit-card:hover,
.exit-card:focus-visible {
  text-decoration: none;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-raise);
}

.exit-card-title {
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.exit-card-desc {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: var(--gap-module);
  padding: 16px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.related-links-label {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
}

.related-links-item {
  color: var(--c-accent);
  font-size: 14px;
  text-decoration: none;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  text-decoration: underline;
}

/* 图片容器统一约束 */
.hero-figure,
.cover-figure,
.genre-media,
.updates-figure,
.ranking-figure,
.section-media,
.guide-figure {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.hero-figure img,
.cover-figure img,
.genre-media img,
.updates-figure img,
.ranking-figure img,
.section-media img,
.guide-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.home-hero {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 44px 24px 48px;
}

.hero-fact {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--c-accent);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-summary {
  margin: 0 0 22px;
  max-width: 620px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.hero-entry a {
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hero-entry a:hover,
.hero-entry a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.entry-note {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.hero-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

/* 题材方向总览 */
.home-genres {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: var(--gap-module) 24px;
}

.genre-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.genre-card .genre-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-scope {
  margin: 0 0 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.genre-card .genre-tags {
  margin-top: auto;
}

/* 封面条目 + 更新记录 */
.home-stream {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 0 24px var(--gap-module);
}

.home-stream > .section-title {
  margin-bottom: 24px;
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.stream-covers,
.stream-updates {
  min-width: 0;
}

.stream-covers .block-desc,
.stream-updates .block-desc {
  margin-bottom: 18px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cover-figure {
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
}

.cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-name {
  margin: 12px 14px 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cover-meta {
  margin: 0 14px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.update-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.update-group {
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.update-date {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-item {
  position: relative;
  padding-left: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.update-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
}

.update-text {
  color: var(--c-ink);
  font-weight: 600;
}

.stream-more,
.reference-more {
  margin-top: 16px;
  font-size: 14px;
}

.stream-more a,
.reference-more a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}

.stream-more a:hover,
.stream-more a:focus-visible,
.reference-more a:hover,
.reference-more a:focus-visible {
  text-decoration: underline;
}

/* 人气位次 + 字段口径 */
.home-reference {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 0 24px var(--gap-module);
}

.home-reference > .section-title {
  margin-bottom: 24px;
}

.reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.reference-ranking,
.reference-fields {
  min-width: 0;
}

.reference-ranking .block-desc,
.reference-fields .block-desc {
  margin-bottom: 18px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:nth-child(odd) {
  background: var(--c-surface);
}

.rank-no {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.rank-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.rank-genre {
  color: var(--c-muted);
  font-size: 13px;
  white-space: nowrap;
}

.field-brief {
  padding: 4px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.field-name {
  margin-top: 14px;
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.field-desc {
  margin: 4px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--c-line);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.field-desc:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

/* 查阅路径 */
.home-path {
  padding: var(--gap-module) 24px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.home-path .section-head,
.home-path .path-steps,
.home-path .path-feedback {
  max-width: var(--w-shell);
  margin-left: auto;
  margin-right: auto;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: path;
}

.path-step {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.path-step .step-no {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.path-step .step-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.path-step .step-text {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.path-step .step-result {
  margin: auto 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.path-step .step-result a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}

.path-step .step-result a:hover,
.path-step .step-result a:focus-visible {
  text-decoration: underline;
}

.path-feedback {
  margin-top: 28px;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.path-feedback .block-desc {
  margin-bottom: 10px;
}

.path-more {
  margin: 0;
  font-size: 14px;
}

.path-more a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}

.path-more a:hover,
.path-more a:focus-visible {
  text-decoration: underline;
}

/* 站内栏目索引 */
.home-index {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: var(--gap-module) 24px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.index-block {
  padding: 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-block:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-card);
}

.index-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.index-name a {
  text-decoration: none;
}

.index-desc {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.genre-brief {
  min-width: 0;
}

.genre-brief .genre-name {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-brief .genre-scope {
  margin: 0 0 14px;
}

.genre-represent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.genre-media {
  margin: 0;
}

.genre-media img {
  aspect-ratio: 16 / 9;
}

.genre-media-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

.genre-represent-note {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.diff-col {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.diff-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.diff-text {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.diff-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diff-point {
  position: relative;
  padding-left: 18px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

.diff-point::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   pages — 更新记录
   -------------------------------------------------------------------------- */

.updates-section {
  margin-bottom: var(--gap-module);
}

.updates-figure {
  margin: 0 0 28px;
}

.updates-figure img {
  aspect-ratio: 21 / 9;
}

.updates-figure-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

.update-batch {
  padding: 20px 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.update-batch + .update-batch {
  margin-top: 20px;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.batch-code {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.batch-date {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.batch-summary {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 6px 16px;
  padding: 8px 0;
  border-top: 1px dashed var(--c-line);
}

.batch-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.batch-item-name {
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.batch-item-detail {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.updates-scope {
  margin-bottom: var(--gap-module);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scope-item {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.scope-item-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.scope-item p {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.updates-exit {
  margin-bottom: var(--gap-module);
}

/* --------------------------------------------------------------------------
   pages — 人气位次
   -------------------------------------------------------------------------- */

.section-ranking-intro,
.section-ranking-list,
.section-ranking-fields,
.section-ranking-entries {
  margin-bottom: var(--gap-module);
}

.section-ranking-intro .section-text,
.section-ranking-list .section-text,
.section-ranking-fields .section-text,
.section-ranking-entries .section-text {
  margin-bottom: 16px;
}

.ranking-figure {
  margin: 0 0 24px;
}

.ranking-figure img {
  aspect-ratio: 21 / 9;
}

.ranking-figure figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:nth-child(odd) {
  background: var(--c-surface);
}

.ranking-num {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.ranking-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.ranking-genre {
  color: var(--c-muted);
  font-size: 13px;
  white-space: nowrap;
}

.field-relation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.field-relation-item {
  padding: 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.field-relation-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.field-relation-text {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages — 条目字段说明
   -------------------------------------------------------------------------- */

.field-table {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-caption {
  padding: 12px 16px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.field-table thead th {
  padding: 12px 16px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.field-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:nth-child(even) {
  background: var(--c-surface);
}

.field-col-name {
  width: 22%;
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

.field-col-meaning {
  width: 42%;
}

.field-col-range {
  width: 36%;
  font-family: var(--font-mono);
  font-size: 13px;
}

.field-name,
.field-meaning,
.field-range {
  min-width: 0;
}

.section-media {
  margin: 0 0 24px;
}

.section-media img {
  aspect-ratio: 16 / 9;
}

.media-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

.combo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.combo-item {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.combo-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.combo-desc {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.relation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.relation-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
}

.relation-item::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 1px;
}

.relation-item a {
  text-decoration: none;
}

.relation-item a:hover,
.relation-item a:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages — 查阅指引
   -------------------------------------------------------------------------- */

.section-steps,
.section-step-entries {
  margin-bottom: var(--gap-module);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.step-details {
  border-radius: var(--radius);
}

.step-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.step-summary::-webkit-details-marker {
  display: none;
}

.step-summary::after {
  content: "展开";
  margin-left: auto;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
}

.step-details[open] .step-summary::after {
  content: "收起";
}

.step-summary:hover {
  background: var(--c-surface);
}

.step-index {
  display: inline-block;
  padding: 2px 10px;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.step-name {
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.step-action {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-body {
  padding: 0 20px 18px;
  border-top: 1px dashed var(--c-line);
}

.step-body p {
  margin: 14px 0 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.step-hint {
  color: var(--c-ink);
  font-weight: 600;
}

.step-result,
.step-note {
  font-size: 14px;
}

.step-result a,
.step-note a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}

.step-result a:hover,
.step-result a:focus-visible,
.step-note a:hover,
.step-note a:focus-visible {
  text-decoration: underline;
}

.section-step-entries .entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-figure {
  margin: 0 0 var(--gap-module);
}

.guide-figure img {
  aspect-ratio: 16 / 9;
}

.guide-figure-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}

.aside-entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-entry a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-block {
  max-width: var(--w-read);
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}

.error-code {
  margin: 0 0 10px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.error-block h1 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.error-lead {
  margin: 0 0 22px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #9d3927;
  border-color: #9d3927;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

.error-hint h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.error-hint-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.error-hint-list a {
  display: block;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-hint-list a:hover,
.error-hint-list a:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .genre-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    padding: 8px 0;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    min-height: 44px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-link.is-current,
  .nav-link:hover,
  .nav-link:focus-visible {
    border-bottom-color: var(--c-line);
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 24px 36px;
  }

  .stream-layout,
  .reference-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .path-steps,
  .diff-grid,
  .scope-list,
  .field-relation,
  .combo-list,
  .section-step-entries .entry-grid,
  .error-hint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .layout-shell,
  .layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-aside {
    order: 2;
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .inner-main {
    padding: 20px 16px 44px;
  }

  .page-title,
  .hero-title,
  .error-block h1 {
    font-size: 26px;
  }

  .section-title,
  .error-hint h2 {
    font-size: 20px;
  }

  .page-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .section,
  .content-section {
    margin-bottom: 36px;
  }

  .home-hero-inner {
    padding: 28px 16px 32px;
  }

  .home-genres,
  .home-stream,
  .home-reference,
  .home-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-path {
    padding: 36px 16px;
  }

  .genre-overview,
  .cover-grid,
  .path-steps,
  .diff-grid,
  .scope-list,
  .field-relation,
  .combo-list,
  .section-step-entries .entry-grid,
  .error-hint-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    padding: 28px 16px 20px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .rank-item,
  .ranking-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .rank-genre,
  .ranking-genre {
    grid-column: 2;
    white-space: normal;
  }

  .batch-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-batch {
    padding: 16px 18px;
  }

  .field-table thead {
    display: none;
  }

  .field-table tbody td {
    display: block;
    width: 100%;
    border-bottom: 0;
    padding: 6px 16px;
  }

  .field-table tbody tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-line);
  }

  .field-table tbody tr:last-child {
    border-bottom: 0;
  }

  .field-col-name,
  .field-col-meaning,
  .field-col-range {
    width: 100%;
  }

  .field-table tbody td.field-col-name {
    padding-top: 12px;
    font-size: 14px;
  }

  .field-table tbody td.field-col-range {
    padding-bottom: 12px;
  }

  .error-main {
    padding: 36px 16px 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    text-align: center;
  }
}
