/* ==========================================================================
   风车动漫 brwhs.cn 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base —— 基础重置、字体、色彩变量
   -------------------------------------------------------------------------- */

:root {
  --paper: #fdfcf8;
  --ink: #1f1f1f;
  --ink-soft: #4a4742;
  --ink-mute: #7a756c;
  --red: #c0392b;
  --blue: #2c5f8a;
  --green: #3a7d44;
  --orange: #d97706;
  --line: #e5e2da;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(31, 31, 31, 0.06);
  --shadow-md: 0 6px 16px rgba(31, 31, 31, 0.09);
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1100px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout —— 页头、导航、主容器、面包屑、页脚骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.brand-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 3px;
  background: var(--red);
  border-radius: 2px;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #f2efe7;
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--red);
  font-weight: 700;
  background: #fbeeeb;
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 14px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--red);
}

.breadcrumb-sep {
  color: #c4bfb4;
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.site-footer {
  background: #f6f3ec;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.footer-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 3px 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--red);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components —— 通用按钮、标题组、标签、卡片、列表、表格、FAQ
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #a5311f;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.btn-plain {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-plain:hover,
.btn-plain:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--red);
}

.section-desc,
.section-lead {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 820px;
}

.section-desc a,
.section-lead a {
  color: var(--blue);
  border-bottom: 1px solid rgba(44, 95, 138, 0.35);
}

.section-desc a:hover,
.section-lead a:hover,
.section-desc a:focus-visible,
.section-lead a:focus-visible {
  color: var(--red);
  border-bottom-color: rgba(192, 57, 43, 0.4);
}

.section-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.section-foot a {
  color: var(--blue);
  border-bottom: 1px solid rgba(44, 95, 138, 0.35);
}

.section-foot a:hover,
.section-foot a:focus-visible {
  color: var(--red);
  border-bottom-color: rgba(192, 57, 43, 0.4);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 3px;
  background: #f2efe7;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag-genre {
  background: #eef3f8;
  color: var(--blue);
}

.tag-status {
  background: #eef5ef;
  color: var(--green);
}

.tag-update {
  background: #fdf1e4;
  color: var(--orange);
}

/* 封面卡（首页 / 题材分类页共用基底） */
.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cover-media,
.cover-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #efece4;
}

.cover-media img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.cover-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cover-name a {
  color: inherit;
}

.cover-name a:hover,
.cover-name a:focus-visible {
  color: var(--red);
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.cover-genre {
  color: var(--ink-mute);
}

.cover-tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 12px;
  border-radius: 3px;
  background: #eef5ef;
  color: var(--green);
}

.cover-tag--hot {
  background: #fdf1e4;
  color: var(--orange);
}

.cover-tag--new {
  background: #eef3f8;
  color: var(--blue);
}

.cover-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 更新记录（首页 / 最近更新页共用行结构） */
.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.update-date {
  flex: 0 0 96px;
  font-size: 13px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.update-name {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.update-genre {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  background: #eef3f8;
  color: var(--blue);
}

.update-progress {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-status {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.update-status--ongoing,
.status-ongoing {
  background: #eef5ef;
  color: var(--green);
}

.update-status--pause,
.status-paused {
  background: #f2efe7;
  color: var(--ink-mute);
}

/* 说明列表（题材分类 / 阅读说明共用） */
.scope-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scope-item {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
}

.scope-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-tail {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-tail a {
  color: var(--blue);
  border-bottom: 1px solid rgba(44, 95, 138, 0.35);
}

.scope-tail a:hover,
.scope-tail a:focus-visible {
  color: var(--red);
}

/* 字段口径表（最近更新 / 阅读说明共用） */
.table-wrap {
  overflow-x: auto;
}

.field-table {
  width: 100%;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.field-table caption,
.field-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  background: #f6f3ec;
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.field-table thead th {
  background: #f6f3ec;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: #fbfaf5;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table td {
  color: var(--ink-soft);
}

/* 编辑选题卡（首页 / 人气榜单共用） */
.pick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pick-card .pick-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #efece4;
}

.pick-card .pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pick-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.pick-link {
  color: var(--blue);
  border-bottom: 1px solid rgba(44, 95, 138, 0.35);
}

.pick-link:hover,
.pick-link:focus-visible {
  color: var(--red);
  border-bottom-color: rgba(192, 57, 43, 0.4);
}

/* --------------------------------------------------------------------------
   pages —— 首页
   -------------------------------------------------------------------------- */

/* 顶部事实条 */
.factbar {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 0;
}

.factbar-text {
  font-size: 13px;
  color: var(--ink-mute);
}

/* 首屏作品索引区 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.hero-summary {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-tag--red a:hover,
.hero-tag--red a:focus-visible {
  color: var(--red);
  border-color: var(--red);
  background: #fbeeeb;
}

.hero-tag--blue a:hover,
.hero-tag--blue a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  background: #eef3f8;
}

.hero-tag--green a:hover,
.hero-tag--green a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  background: #eef5ef;
}

.hero-tag--orange a:hover,
.hero-tag--orange a:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  background: #fdf1e4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efece4;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 16px 10px;
  font-size: 12px;
  color: #fdfcf8;
  background: rgba(31, 31, 31, 0.62);
}

/* 题材方向总览 */
.genres {
  padding: 44px 0 8px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.genre-card--red {
  border-top-color: var(--red);
}

.genre-card--blue {
  border-top-color: var(--blue);
}

.genre-card--green {
  border-top-color: var(--green);
}

.genre-card--orange {
  border-top-color: var(--orange);
}

.genre-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.genre-intro {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.genre-list li {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 12px;
  position: relative;
}

.genre-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-mute);
}

/* 封面墙与作品条目 */
.covers {
  padding: 44px 0 8px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card--tall .cover-media {
  aspect-ratio: 3 / 4.4;
}

.cover-card--wide {
  grid-column: span 2;
}

.cover-card--wide .cover-media {
  aspect-ratio: 16 / 10;
}

/* 最近更新记录 */
.updates {
  padding: 44px 0 8px;
}

/* 人气榜单与编辑选题 */
.ranking {
  padding: 44px 0 8px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ranking-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex: 0 0 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.rank-name {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.rank-genre {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  background: #eef3f8;
  color: var(--blue);
}

.rank-note {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: right;
}

.ranking-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 阅读说明与内容反馈摘要 */
.guide {
  padding: 44px 0 8px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.guide-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.guide-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.guide-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 站内栏目索引 */
.site-index {
  padding: 44px 0 8px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-card:hover,
.index-card:focus-within {
  border-color: var(--red);
  transform: translateY(-2px);
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.index-card a {
  color: inherit;
}

.index-card a:hover,
.index-card a:focus-visible {
  color: var(--red);
}

.index-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages —— 题材分类（fcdm/tice.html）
   -------------------------------------------------------------------------- */

.genre-groups {
  margin-bottom: 44px;
}

.genre-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.genre-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.genre-group--red {
  border-left-color: var(--red);
}

.genre-group--blue {
  border-left-color: var(--blue);
}

.genre-group--green {
  border-left-color: var(--green);
}

.genre-group--amber {
  border-left-color: var(--orange);
}

.genre-tagline {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: normal;
}

.genre-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.genre-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.genre-meta li {
  font-size: 13px;
  color: var(--ink-soft);
}

.genre-covers {
  margin-bottom: 44px;
}

.genre-cover-block {
  margin-top: 26px;
}

.cover-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}

.genre-cover-block .cover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.genre-cover-block .cover-card {
  padding-bottom: 12px;
}

.genre-cover-block .cover-name {
  padding: 10px 12px 0;
  font-size: 14px;
}

.genre-cover-block .cover-meta {
  padding: 4px 12px 0;
}

.genre-scope {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   pages —— 最近更新（fcdm/gengxin.html）
   -------------------------------------------------------------------------- */

.section-update-list {
  margin-bottom: 44px;
}

.section-update-list .update-row {
  align-items: flex-start;
  gap: 16px;
  padding: 14px 4px;
}

.update-thumb {
  flex: 0 0 56px;
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #efece4;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.update-title:hover,
.update-title:focus-visible {
  color: var(--red);
}

.update-meta {
  font-size: 13px;
  color: var(--ink-mute);
}

.section-status-notes {
  margin-bottom: 44px;
}

.status-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.status-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.status-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.status-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.status-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.status-term {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 3px;
}

.status-completed {
  background: #eef3f8;
  color: var(--blue);
}

.status-hiatus {
  background: #f2efe7;
  color: var(--ink-mute);
}

.status-batch {
  background: #fdf1e4;
  color: var(--orange);
}

.status-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-field-notes {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   pages —— 人气榜单（fcdm/bangdan.html）
   -------------------------------------------------------------------------- */

.ranking-list-section {
  margin-bottom: 44px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-index {
  flex: 0 0 34px;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.rank-cover {
  flex: 0 0 64px;
  width: 64px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #efece4;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.rank-title a {
  color: inherit;
}

.rank-title a:hover,
.rank-title a:focus-visible {
  color: var(--red);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-notes-section {
  margin-bottom: 44px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.note-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.note-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.editor-picks-section {
  margin-bottom: 20px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   pages —— 阅读说明（fcdm/shuoming.html）
   -------------------------------------------------------------------------- */

.page-figure {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.section-field-table {
  margin-bottom: 44px;
}

.section-scope-notes {
  margin-bottom: 44px;
}

.section-feedback-path {
  margin-bottom: 44px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: feedback;
}

.feedback-step {
  position: relative;
  padding: 20px 16px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feedback-step::before {
  counter-increment: feedback;
  content: counter(feedback);
  position: absolute;
  top: -12px;
  left: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.feedback-step p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-faq {
  margin-bottom: 44px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "\2013";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--red);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.section-related {
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.related-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--red);
}

.related-item span {
  font-size: 12px;
  color: var(--ink-mute);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   pages —— 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 36px;
}

.error-hero {
  text-align: left;
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 56px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
}

.error-hero h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide {
  padding: 40px 0 20px;
}

.error-guide h2 {
  font-size: 20px;
  margin-bottom: 18px;
  padding-left: 12px;
  position: relative;
}

.error-guide h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--red);
}

.error-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.error-guide-item {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-guide-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.error-guide-item h3 a {
  color: var(--ink);
}

.error-guide-item h3 a:hover,
.error-guide-item h3 a:focus-visible {
  color: var(--red);
}

.error-guide-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   responsive —— 1024px / 768px / 480px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .genre-grid,
  .genre-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feedback-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px 16px 12px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 36px;
  }

  .hero-title {
    font-size: 24px;
  }

  .genres,
  .covers,
  .updates,
  .ranking,
  .guide,
  .site-index {
    padding-top: 34px;
  }

  .cover-grid,
  .genre-cover-block .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cover-card--wide {
    grid-column: span 2;
  }

  .ranking-layout,
  .guide-layout,
  .status-notes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-list,
  .pick-grid,
  .related-list,
  .error-guide-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }

  .update-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .update-date {
    flex: 0 0 auto;
  }

  .update-name {
    flex: 1 1 100%;
    order: -1;
  }

  .update-thumb {
    flex: 0 0 48px;
    width: 48px;
  }

  .ranking-item {
    gap: 12px;
  }

  .rank-cover {
    flex: 0 0 52px;
    width: 52px;
  }

  .rank-note {
    text-align: left;
    flex: 1 1 100%;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 26px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .genre-grid,
  .genre-group-grid,
  .cover-grid,
  .genre-cover-block .cover-grid,
  .feedback-steps,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card--wide {
    grid-column: span 1;
  }

  .cover-card--wide .cover-media {
    aspect-ratio: 3 / 4;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
  }

  .field-table th,
  .field-table td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .ranking-main {
    padding: 4px 14px;
  }

  .rank-no {
    flex: 0 0 22px;
    font-size: 14px;
  }

  .error-code {
    font-size: 38px;
  }
}
