/* ==========================================================================
   羞羞漫画 mnxhr.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --ink: #1f3a5f;
  --ink-soft: #3d5a80;
  --accent: #e8794a;
  --paper: #fbf9f5;
  --panel: #eef4f2;
  --text: #2c3238;
  --text-mute: #5d6672;
  --line: #d8dcd9;
  --line-strong: #c2c9c5;
  --white: #ffffff;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 2px rgba(31, 58, 95, 0.06);
  --shadow-hover: 0 4px 14px rgba(31, 58, 95, 0.1);

  --wrap: 1120px;
  --wrap-narrow: 880px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-num: "SFMono-Regular", "DIN Alternate", "Menlo", Consolas, "Courier New", monospace;

  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap: 16px;
  --gap-md: 24px;
  --gap-lg: 36px;
  --gap-xl: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 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, background-color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

dl, dd, dt {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

strong {
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout — 骨架：事实条、页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */

/* 顶部事实说明条 */
.fact-bar {
  margin: 0;
  padding: 8px 20px;
  background-color: var(--ink);
  color: #e8eef5;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background-color: var(--accent);
  border-radius: 2px;
  vertical-align: 1px;
}

.brand:hover {
  color: var(--accent);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 9px 13px;
  min-height: 44px;
  line-height: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--ink);
  background-color: var(--panel);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主内容骨架 */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.inner-main {
  padding-top: 18px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0 0;
  font-size: 14px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-mute);
}

/* 内页页面标题区 */
.page-header {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.page-description {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.8;
}

/* 页内锚点导航 */
.anchor-nav,
.page-anchors {
  margin-top: 18px;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-list a {
  display: block;
  padding: 7px 14px;
  min-height: 40px;
  line-height: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.anchor-list a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

/* 页脚 */
.site-footer {
  margin-top: 8px;
  background-color: var(--ink);
  color: #cfd9e4;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: var(--gap-md) var(--gap);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.footer-brand {
  grid-column: auto;
}

.footer-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #a9b7c6;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  min-height: 30px;
  line-height: 24px;
  font-size: 13px;
  color: #cfd9e4;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: #9fb0c2;
}

/* --------------------------------------------------------------------------
   components — 通用组件：区块头、标签、字段、按钮、列表条目
   -------------------------------------------------------------------------- */

.section {
  padding: 44px 0 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-note,
.section-lead,
.section-desc,
.section-intro {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.8;
}

.section-more,
.col-more,
.section-foot,
.section-tail {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a,
.col-more a,
.section-foot a,
.section-tail a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.section-more a:hover,
.col-more a:hover,
.section-foot a:hover,
.section-tail a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-foot a + a,
.section-tail a + a {
  margin-left: 16px;
}

/* 列容器 */
.col {
  min-width: 0;
}

.col-title {
  margin-bottom: 14px;
  padding-left: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border-left: 3px solid var(--accent);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 1px 9px;
  font-size: 12px;
  line-height: 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-cat,
.tag-genre {
  color: #b8542c;
  background-color: #fdeee6;
}

.tag-status {
  color: #2f6b5c;
  background-color: #e5f1ed;
}

/* 通用字段文字 */
.field {
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

/* 图片容器 */
.hero-visual,
.topic-figure,
.section-media,
.update-figure,
.page-figure,
.media-figure,
.zhuanti-cover {
  overflow: hidden;
  background-color: var(--panel);
  border-radius: var(--radius-lg);
}

.hero-visual img,
.topic-figure img,
.section-media img,
.update-figure img,
.page-figure img,
.media-figure img,
.zhuanti-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn-primary {
  color: #ffffff;
  background-color: var(--ink);
}

.btn-primary:hover {
  color: #ffffff;
  background-color: #16304f;
}

.btn-ghost {
  color: var(--ink);
  background-color: var(--white);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 0;
}

/* 首屏定位区 */
.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap-lg);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.hero-text {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 24px;
}

.hero-clues a {
  display: block;
  padding: 6px 14px;
  min-height: 38px;
  line-height: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-clues a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

.hero-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
}

.hero-visual img {
  aspect-ratio: 16 / 11;
}

.hero-visual figcaption {
  padding: 10px 14px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

/* 题材分类索引总览 */
.cat-index {
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: 62px minmax(120px, 168px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.cat-row:hover {
  background-color: #f5f8f6;
}

.cat-no {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.cat-desc {
  font-size: 14px;
  color: var(--text-mute);
}

.cat-link {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.cat-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 最近更新与连载状态速览 */
.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}

.update-group {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.group-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.update-list li + li {
  margin-top: 10px;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: none;
}

.update-name {
  flex: 1 1 120px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.field-chapter {
  margin-left: auto;
  font-family: var(--font-num);
}

/* 人气榜单与专题合集双栏入口 */
.split-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-md);
}

.col-rank,
.col-topic {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rank-list {
  counter-reset: none;
}

.rank-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  flex: 0 0 26px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rank-name {
  flex: 1 1 120px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.rank-item .field-status {
  margin-left: auto;
}

.topic-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-figure {
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.topic-figure img {
  aspect-ratio: 16 / 9;
}

.topic-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.topic-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-mute);
}

.topic-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.topic-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 阅读顺序四步说明 */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.step-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-no {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.step-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* 条目字段口径与收录边界摘要 */
.fields-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-md);
}

.col-fields,
.col-bounds {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.field-table {
  display: grid;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
  gap: 10px var(--gap);
}

.field-key {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field-val {
  font-size: 14px;
  color: var(--text-mute);
}

.bound-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.bound-list li + li {
  margin-top: 8px;
}

.bound-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* 站内栏目索引 */
.nav-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}

.nav-index-item {
  min-width: 0;
  padding: 16px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.nav-index-item a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.nav-index-item a:hover {
  color: var(--accent);
}

.nav-index-desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   pages — 内页：题材分类
   -------------------------------------------------------------------------- */

.section-tacai-index,
.section-tacai-rule,
.section-tacai-map,
.section-tacai-field {
  padding-top: 40px;
}

.section-tacai-index h2,
.section-tacai-rule h2,
.section-tacai-map h2,
.section-tacai-field h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-media {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.section-media img {
  aspect-ratio: 16 / 7;
}

.section-media figcaption {
  padding: 10px 14px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

.tacai-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.tacai-row {
  display: grid;
  grid-template-columns: 62px minmax(120px, 170px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap);
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.tacai-row:hover {
  background-color: #f5f8f6;
}

.tacai-code {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tacai-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.tacai-scope {
  font-size: 14px;
  color: var(--text-mute);
}

.tacai-link {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.tacai-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.rule-item {
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.rule-item + .rule-item {
  margin-top: 14px;
}

.rule-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.rule-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
}

.map-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-md);
  margin-top: 18px;
}

.map-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.map-col-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.map-list li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-mute);
  border-bottom: 1px dashed var(--line);
}

.map-list li:last-child {
  border-bottom: none;
}

.map-list a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.map-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.field-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.field-list dt {
  padding: 14px 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.field-list dd {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
}

.field-list dd a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.field-list dd a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages — 内页：最近更新
   -------------------------------------------------------------------------- */

.update-section,
.field-section,
.topic-section,
.pace-section,
.related-section {
  padding-top: 40px;
}

.update-section h2,
.field-section h2,
.topic-section h2,
.pace-section h2,
.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.update-figure {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.update-figure img {
  aspect-ratio: 16 / 7;
}

.update-figure figcaption {
  padding: 10px 14px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

.stage-group {
  margin-top: 22px;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stage-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.update-section .update-list li + li {
  margin-top: 8px;
}

.update-section .update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.update-section .update-item:last-child {
  border-bottom: none;
}

.update-section .update-name {
  flex: 1 1 150px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.update-section .update-name:hover {
  color: var(--accent);
}

.update-chapter {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.field-section .field-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: var(--gap);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.field-row dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.field-row dd {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
}

.topic-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.topic-link-list li {
  min-width: 0;
}

.topic-link-list a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-soft);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-link-list a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

.pace-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.pace-step {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pace-num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.pace-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.pace-step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-soft);
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

/* --------------------------------------------------------------------------
   pages — 内页：人气榜单
   -------------------------------------------------------------------------- */

.page-figure {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-figure img {
  aspect-ratio: 16 / 6;
}

.figure-caption {
  padding: 10px 14px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

.rank-section,
.rule-section,
.genre-section,
.cross-section {
  padding-top: 40px;
}

.rank-section .rank-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.rank-section .rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: var(--gap);
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-section .rank-item:hover {
  background-color: #f5f8f6;
}

.rank-section .rank-no {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rank-body {
  min-width: 0;
}

.rank-section .rank-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.rank-section .rank-name a {
  color: var(--ink);
}

.rank-section .rank-name a:hover {
  color: var(--accent);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.rank-chapter {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.rank-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.rule-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rule-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.rule-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
}

.genre-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.genre-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.genre-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.genre-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.cross-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.cross-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cross-item a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cross-item a:hover {
  color: var(--accent);
}

.cross-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   pages — 内页：专题合集
   -------------------------------------------------------------------------- */

.section-zhuanti-list,
.section-zhuanti-rule,
.section-zhuanti-order,
.section-zhuanti-map {
  padding-top: 40px;
}

.section-zhuanti-list h2,
.section-zhuanti-rule h2,
.section-zhuanti-order h2,
.section-zhuanti-map h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.zhuanti-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-md);
  margin-top: 18px;
}

.zhuanti-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: var(--gap);
  min-width: 0;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.zhuanti-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.zhuanti-cover {
  border: 1px solid var(--line);
}

.zhuanti-cover img {
  aspect-ratio: 3 / 4;
}

.zhuanti-body {
  min-width: 0;
}

.zhuanti-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.zhuanti-name a {
  color: var(--ink);
}

.zhuanti-name a:hover {
  color: var(--accent);
}

.zhuanti-tags {
  margin-top: 8px;
  font-size: 13px;
  color: #b8542c;
}

.zhuanti-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.zhuanti-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-mute);
}

.rule-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.rule-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rule-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.order-step {
  min-width: 0;
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
}

.map-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: var(--gap);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.map-row:last-child {
  border-bottom: none;
}

.map-head {
  background-color: var(--panel);
  font-weight: 700;
}

.map-cell {
  min-width: 0;
  font-size: 14px;
  color: var(--text-mute);
}

.map-head .map-cell {
  color: var(--ink);
}

.map-cell-name {
  font-weight: 700;
  color: var(--ink);
}

.map-cell-link a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.map-cell-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.map-note {
  margin-top: 16px;
  font-size: 14px;
}

.map-note a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.map-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.map-note a + a {
  margin-left: 16px;
}

/* --------------------------------------------------------------------------
   pages — 内页：阅读说明
   -------------------------------------------------------------------------- */

.rule-section {
  padding-top: 40px;
}

.rule-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.media-figure {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.media-figure img {
  aspect-ratio: 16 / 7;
}

.media-figure figcaption {
  padding: 10px 14px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

.rule-section .step-list {
  margin-top: 18px;
}

.rule-section .step-item {
  padding: 16px 18px;
}

.rule-section .step-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.rule-section .step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.field-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: var(--gap);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: none;
}

.field-head {
  background-color: var(--panel);
  font-weight: 700;
}

.field-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field-value {
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.boundary-list {
  margin-top: 18px;
}

.boundary-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-item + .boundary-item {
  margin-top: 10px;
}

.boundary-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}

.feedback-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.feedback-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
}

.feedback-note a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.feedback-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.feedback-note a + a {
  margin-left: 16px;
}

/* FAQ 折叠列表 */
.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background-color: var(--white);
}

.faq-question {
  position: relative;
  padding: 15px 44px 15px 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mute);
}

.related-section .related-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-panel {
  max-width: 720px;
  padding: 32px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.error-panel h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mute);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 24px;
}

.error-links a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-soft);
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: #fdf3ee;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
    background-color: var(--panel);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-md);
  }

  .hero-title {
    font-size: 28px;
  }

  .update-groups,
  .split-cols,
  .fields-cols,
  .map-columns,
  .zhuanti-list,
  .rule-grid,
  .rule-columns,
  .genre-list,
  .feedback-grid,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .pace-list,
  .order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-link-list,
  .related-list,
  .related-section .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .zhuanti-card {
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  }

  .cat-row,
  .tacai-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px var(--gap);
  }

  .cat-desc,
  .tacai-scope {
    grid-column: 2 / -1;
  }

  .cat-link,
  .tacai-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .fact-bar {
    padding: 7px 14px;
    font-size: 12px;
    text-align: left;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand {
    font-size: 19px;
  }

  .site-main {
    padding: 0 14px 48px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .section {
    padding-top: 32px;
  }

  .section-title,
  .section-tacai-index h2,
  .section-tacai-rule h2,
  .section-tacai-map h2,
  .section-tacai-field h2,
  .update-section h2,
  .field-section h2,
  .topic-section h2,
  .pace-section h2,
  .related-section h2,
  .section-zhuanti-list h2,
  .section-zhuanti-rule h2,
  .section-zhuanti-order h2,
  .section-zhuanti-map h2,
  .rule-section .section-title {
    font-size: 19px;
  }

  .step-list,
  .pace-list,
  .order-steps,
  .nav-index-list,
  .topic-link-list,
  .related-list,
  .related-section .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-row,
  .tacai-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .cat-name,
  .tacai-name {
    font-size: 15px;
  }

  .rank-section .rank-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--gap-sm);
  }

  .rank-section .rank-no {
    font-size: 17px;
  }

  .zhuanti-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .zhuanti-cover img {
    aspect-ratio: 16 / 10;
  }

  .field-row,
  .field-table,
  .map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-head {
    display: none;
  }

  .field-key,
  .field-name {
    font-size: 14px;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-panel h1 {
    font-size: 23px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px 14px 22px;
  }

  .footer-bottom {
    padding: 14px 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
