/* ==========================================================================
   羞羞漫画官网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base · 变量与基础排版
   ========================================================================== */

:root {
  --bg: #0f1117;
  --panel: #171a23;
  --panel-2: #1c202b;
  --line: #232837;
  --line-strong: #2f3648;
  --text: #e9edf5;
  --muted: #98a2b3;
  --accent: #ff4d6d;
  --accent-soft: rgba(255, 77, 109, 0.14);
  --live: #2fd39b;
  --done: #7c8bd1;
  --hold: #f2a33c;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --gap: 24px;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono-num: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   layout · 外壳骨架：工具条 / 页头 / 主导航 / 主容器 / 页脚
   ========================================================================== */

/* ---- 实用工具条 ---- */

.utility-bar {
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.utility-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-note {
  color: var(--muted);
  line-height: 1.6;
}

.utility-links,
.utility-list {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.utility-links a,
.utility-list a {
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.utility-links a:hover,
.utility-list a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---- 页头与主导航 ---- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-slogan {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--panel-2);
}

.nav-link.is-current {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

/* ---- 主内容容器 ---- */

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main {
  padding-top: 18px;
  padding-bottom: 56px;
}

/* ---- 面包屑与页面标题区 ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.breadcrumb-sep {
  color: #4a5364;
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}

/* ---- 页脚 ---- */

.site-footer {
  background: #0b0d12;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-copy {
  color: #6b7484;
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* ---- 区块标题与说明 ---- */

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-desc,
.section-intro,
.section-text {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 860px;
}

.subsection-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.section-more,
.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 109, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.18s ease;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* ---- 状态徽标（全站统一） ---- */

.badge,
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-live,
.status-live {
  color: var(--live);
}

.badge-done,
.status-done {
  color: var(--done);
}

.badge-hold,
.status-hold {
  color: var(--hold);
}

/* ---- 表格 ---- */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table caption,
.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .col-num {
  font-family: var(--mono-num);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.data-table a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.data-table a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- 折叠问答 ---- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
  color: var(--accent);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 109, 0.4);
}

/* ---- 入口卡 ---- */

.entry-card {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.entry-card-title,
.entry-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.entry-card-desc {
  font-size: 14px;
  color: var(--muted);
}

.entry-grid,
.entry-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.entry-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.entry-card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---- 相关入口卡（阅读方式 / 题材版图） ---- */

.related-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.related-card {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.related-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.related-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.related-card p,
.related-text {
  font-size: 14px;
  color: var(--muted);
}

/* ---- 规则列表（条目命名 / 章节编号 / 题材划分） ---- */

.rule-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.rule-item {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.rule-item h3,
.rule-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.rule-item p,
.rule-text {
  font-size: 15px;
  color: var(--muted);
}

/* ---- 图片说明块 ---- */

.media-figure,
.page-figure,
.page-media,
.theme-figure,
.works-visual {
  margin-top: 20px;
}

.media-figure img,
.page-figure img,
.page-media img,
.theme-figure img,
.works-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.media-figure figcaption,
.page-figure figcaption,
.page-media figcaption,
.theme-figure figcaption,
.works-visual figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* ---- 首屏 ---- */

.hero {
  padding: 32px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hero-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.entry-link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.entry-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 题材快速跳转带 ---- */

.theme-jump {
  padding: 36px 0 8px;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.theme-tag {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-tag:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---- 主区两栏：章节速递 + 侧栏 ---- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding: 40px 0 8px;
}

.layout-main {
  min-width: 0;
}

.layout-main .table-scroll {
  margin-top: 18px;
}

.layout-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.side-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.rank-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rank-row:first-child {
  border-top: 0;
}

.rank-num {
  font-family: var(--mono-num);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.rank-name {
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.rank-name:hover {
  color: var(--accent);
}

.tip-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- 封面墙 ---- */

.cover-wall {
  padding: 40px 0 8px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cover-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
}

.cover-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--panel-2);
}

.cover-name {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 0;
}

.cover-name a {
  color: var(--text);
  transition: color 0.18s ease;
}

.cover-name a:hover {
  color: var(--accent);
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px 0;
}

.theme-chip {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.cover-note {
  padding: 8px 16px 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 排期预览 ---- */

.schedule-preview {
  padding: 40px 0 8px;
}

.schedule-preview .table-scroll {
  margin-top: 18px;
}

/* ---- 阅读三步 ---- */

.reading-steps {
  padding: 40px 0 8px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  counter-reset: step;
}

.step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-title::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 15px;
  color: var(--muted);
}

/* ---- 常见问题简版 ---- */

.faq-brief {
  padding: 40px 0 0;
}

.faq-list {
  margin-top: 18px;
}

/* ==========================================================================
   pages · 内页公共模块
   ========================================================================== */

/* ---- 内页标题区与导语 ---- */

.page-head {
  padding: 4px 0 8px;
}

.page-head-inner {
  min-width: 0;
}

.page-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 860px;
  margin-top: 12px;
}

.page-hero {
  padding: 20px 0 4px;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.fact-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.fact-value {
  font-size: 15px;
  color: var(--text);
}

.page-hero-media {
  margin-top: 20px;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.page-hero-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.page-legend,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.legend-key {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

/* ---- 通用 section 间距 ---- */

.section {
  padding: 40px 0 0;
}

.section-head {
  margin-bottom: 4px;
}

/* ---- 字段说明表 / 状态图例（作品条目库） ---- */

.section-fields .table-scroll {
  margin-top: 18px;
}

.status-legend {
  margin-top: 22px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  min-width: 200px;
}

.legend-desc {
  color: var(--muted);
}

/* ---- 作品条目分组列表 ---- */

.section-works .work-group {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-group-head {
  padding: 16px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.work-group-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.work-group-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.work-rows {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 110px 92px minmax(0, 1.6fr);
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.work-row:first-child {
  border-top: 0;
}

.work-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.work-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.work-name:hover {
  color: var(--accent);
}

.work-chapter {
  font-family: var(--mono-num);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.work-note {
  font-size: 14px;
  color: var(--muted);
  min-width: 0;
}

/* ---- 相关入口（作品条目库） ---- */

.related-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.related-links-item {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.related-links-item:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.related-links-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.related-links-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ---- 题材区块（题材版图） ---- */

.section-divide .rule-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-themes .theme-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 20px;
}

.theme-info {
  min-width: 0;
}

.theme-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 999px;
}

.theme-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.theme-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.theme-entry-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.theme-entry:first-child {
  border-top: 0;
}

.theme-entry a {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.theme-entry a:hover {
  color: var(--accent);
}

.entry-note {
  font-size: 14px;
  color: var(--muted);
  min-width: 0;
}

.section-themes .theme-figure {
  margin-top: 22px;
}

/* ---- 更新速递 ---- */

.section-updates .table-scroll {
  margin-top: 18px;
}

.section-chapter-rule .rule-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.cadence-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cadence-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cadence-card p {
  font-size: 15px;
  color: var(--muted);
}

/* ---- 更新排期 ---- */

.schedule-table-section .table-scroll {
  margin-top: 18px;
}

.schedule-table {
  width: 100%;
  min-width: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.schedule-table thead th {
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.schedule-table tbody th {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.015);
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.status-legend-item {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-legend-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.status-legend-points {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-legend-points li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.status-legend-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.schedule-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.schedule-map-item {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-map-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.schedule-map-item p {
  font-size: 15px;
  color: var(--muted);
}

/* ---- 阅读方式 ---- */

.section-forms .table-scroll {
  margin-top: 18px;
}

.section-display .advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.advice-item {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advice-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.advice-item p {
  font-size: 15px;
  color: var(--muted);
}

.section-path .path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.path-step {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-index {
  display: block;
  font-family: var(--mono-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.path-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.path-step p {
  font-size: 15px;
  color: var(--muted);
}

.path-step p a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 109, 0.4);
  margin-right: 6px;
}

/* ---- 常见问题 ---- */

.faq-layout {
  display: block;
}

.faq-group {
  padding-top: 36px;
}

.faq-group .section-intro {
  margin-bottom: 18px;
}

/* ---- 404 ---- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.error-hero {
  padding: 56px 0 8px;
  max-width: 720px;
}

.error-code {
  font-family: var(--mono-num);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.error-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-top: 12px;
}

.error-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #ff6480;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--panel);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.error-paths {
  padding-top: 44px;
  max-width: 860px;
}

.error-paths h2 {
  font-size: 22px;
  font-weight: 700;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.error-path-list a {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.error-path-list a:hover {
  border-color: var(--accent);
  background: var(--panel-2);
}

/* ---- 内页正文行宽收束 ---- */

.section-fields,
.section-rules,
.section-chapter-rule,
.section-cadence,
.section-forms,
.section-display,
.section-path,
.section-divide,
.section-updates,
.schedule-table-section,
.status-legend-section,
.schedule-map-section,
.faq-group,
.section-related,
.related-entry-section,
.related-entry {
  max-width: 960px;
}

.faq-group,
.section-divide,
.section-forms,
.section-display,
.section-path,
.section-chapter-rule,
.section-cadence,
.related-entry-section,
.related-entry,
.section-related {
  max-width: 860px;
}

/* ==========================================================================
   responsive · 断点
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-media {
    order: 2;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .section-themes .theme-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1.2fr) 100px 84px minmax(0, 1.2fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .work-name {
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-hero {
    padding-top: 40px;
  }

  .error-hero h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .utility-inner {
    padding: 8px 16px;
    gap: 8px;
  }

  .utility-links,
  .utility-list {
    gap: 14px;
  }

  .header-inner,
  .home-main,
  .inner-main,
  .error-main,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-entries {
    gap: 10px;
  }

  .entry-link {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-name {
    font-size: 15px;
    padding: 12px 12px 0;
  }

  .cover-meta {
    padding: 8px 12px 0;
  }

  .cover-note {
    padding: 8px 12px 14px;
  }

  .status-strip {
    gap: 12px;
  }

  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .rank-num {
    font-size: 18px;
  }

  .theme-tag {
    padding: 8px 13px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .faq-question {
    padding: 13px 40px 13px 14px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 14px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
