/* ==========================================================================
   女神漫画官网 · 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --bg: #f2f3f1;
  --panel: #ffffff;
  --ink: #1c2321;
  --accent: #3d6b5c;
  --line: #d8dcd6;
  --muted: #6b736e;
  --st-ongoing: #2f7d63;
  --st-paused: #b8791f;
  --st-ended: #55688a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --radius: 3px;
  --ctl-h: 36px;
  --wrap: 1120px;
  --wrap-wide: 1200px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 40;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--accent);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 14px;
}

.nav-toggle-bar:nth-child(2) {
  top: 21px;
}

.nav-toggle-bar:nth-child(3) {
  top: 28px;
}

.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);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.primary-nav a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 22px 0 4px;
}

.page-title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.page-head {
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-lead {
  font-size: 15px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 10px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.page-meta > span {
  display: inline-block;
}

.page-meta .meta-sep {
  color: var(--line);
}

.page-meta .mono {
  color: var(--muted);
}

.page-head-lead {
  font-size: 15px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 10px;
}

.page-meta .meta-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px var(--pad) 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-col-info p:last-child {
  margin-bottom: 0;
}

.footer-status {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad) 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-status p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   components · 共享元件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ctl-h);
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #325a4d;
  border-color: #325a4d;
  color: #ffffff;
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 状态标签：三色描边 */
.status-label {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  white-space: nowrap;
}

.status-ongoing,
.status-label.status-ongoing,
.status-tag-ongoing {
  color: var(--st-ongoing);
}

.status-paused,
.status-label.status-paused,
.status-tag-paused {
  color: var(--st-paused);
}

.status-completed,
.status-finished,
.status-label.status-completed,
.status-tag-completed {
  color: var(--st-ended);
}

/* 通用标签胶囊 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag:last-child {
  margin-right: 0;
}

/* 章节头 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.section-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.section-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.section-foot {
  margin: 18px 0 0;
  font-size: 13px;
}

.inline-link {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.inline-link:hover {
  text-decoration: none;
  color: #325a4d;
}

/* 字段表 */
.field-table {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.field-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
}

.field-table tbody th,
.field-table tbody td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody td {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  width: 100%;
}

.hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.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(--bg);
}

.hero-media figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* 题材索引目录 */
.genre-index {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 48px var(--pad) 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.genre-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-left-color 0.15s ease;
}

.genre-item:hover {
  border-left-color: var(--accent);
}

.genre-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.genre-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.genre-cover {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.genre-link {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.genre-link:hover {
  text-decoration: none;
}

/* 连载状态一览 */
.status-board {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

.status-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.status-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  flex: 1 1 auto;
}

.status-arrow {
  font-size: 13px;
  color: var(--accent);
  align-self: flex-start;
}

.status-arrow:hover {
  text-decoration: none;
}

/* 最近更新 */
.recent {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.15s ease;
}

.entry-card:hover {
  border-color: var(--accent);
}

.card-media {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.card-tags {
  margin: 0 0 8px;
  font-size: 12px;
}

.card-status {
  margin: 0;
}

/* 选读清单预览 */
.shelf-preview {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

.shelf-list {
  border-top: 1px solid var(--line);
}

.shelf-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.shelf-cond {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.shelf-text {
  min-width: 0;
}

.shelf-summary {
  font-size: 14px;
  margin-bottom: 4px;
}

.shelf-reason {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 术语预览 */
.glossary-preview {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

/* 阅读排查入口 */
.fix-entry {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

.fix-list {
  border-top: 1px solid var(--line);
}

.fix-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fix-symptom {
  font-size: 14px;
  min-width: 0;
}

.fix-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* 站务口径摘要 */
.policy-summary {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 48px;
}

.policy-summary p {
  font-size: 14px;
  color: var(--ink);
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   pages · 题材目录
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 36px;
}

.section:last-child {
  margin-bottom: 0;
}

.section > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.genre-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.genre-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
}

.genre-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.genre-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-table tbody td:first-child {
  white-space: nowrap;
}

.idx-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
  letter-spacing: 0.02em;
}

.genre-table a {
  color: var(--accent);
}

.genre-table .tag {
  margin-bottom: 4px;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  white-space: nowrap;
}

.status-hiatus {
  color: var(--st-paused);
}

.genre-represent .represent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.genre-represent .entry-card {
  display: flex;
  flex-direction: column;
}

.entry-cover {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.entry-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.entry-body {
  padding: 12px 14px 14px;
  min-width: 0;
}

.entry-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.entry-tags .tag {
  margin: 0;
}

.entry-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.side-card h2 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field-list {
  margin: 0;
  font-size: 13px;
}

.field-list dt {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.field-list dd {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.field-list dd:last-of-type {
  margin-bottom: 0;
}

.side-link {
  margin: 12px 0 0;
  font-size: 13px;
}

.side-link a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.side-link a:hover {
  text-decoration: none;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.side-links a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 连载跟踪
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 860px;
  margin: 0 auto;
}

.status-legend {
  margin-bottom: 36px;
}

.status-legend > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.status-legend > .section-note a {
  color: var(--accent);
}

.status-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-legend-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.status-legend-item.status-ongoing {
  border-top-color: var(--st-ongoing);
}

.status-legend-item.status-paused {
  border-top-color: var(--st-paused);
}

.status-legend-item.status-completed {
  border-top-color: var(--st-ended);
}

.status-legend-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.status-legend-item p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.status-legend-link {
  font-size: 13px;
  color: var(--accent);
}

.batch-list {
  margin-bottom: 36px;
}

.batch-list > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.batch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.batch:last-child {
  margin-bottom: 0;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.batch-no {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.batch-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.batch-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.genre-chip {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.batch-change {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.batch-change strong {
  color: var(--ink);
  font-weight: 600;
}

.batch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  min-width: 0;
}

.work-card-cover {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.work-card-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card-body {
  padding: 10px 12px 12px;
  min-width: 0;
}

.work-card-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.work-card-tags .tag {
  margin: 0;
}

.work-card-field {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.status-notice > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.notice-list {
  border-top: 1px solid var(--line);
}

.notice-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.notice-text {
  margin: 0;
  font-size: 14px;
  flex: 1 1 320px;
  min-width: 0;
}

.notice-list a {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · 选读清单
   -------------------------------------------------------------------------- */
.shelf-filter {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.filter-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-right: 2px;
}

.filter-btn {
  min-height: var(--ctl-h);
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease,
    color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  border-color: var(--accent);
  background: #e8efeb;
  color: var(--accent);
  font-weight: 600;
}

.filter-clear {
  min-height: var(--ctl-h);
  padding: 0 12px;
  margin-left: auto;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}

.filter-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.result-status {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.shelf-list > h2 {
  font-size: 19px;
  margin: 24px 0 8px;
}

.shelf-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  align-items: start;
}

.shelf-item:last-child {
  margin-bottom: 0;
}

.shelf-cover {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shelf-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.shelf-body {
  min-width: 0;
}

.shelf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.tag-genre {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag-status {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  white-space: nowrap;
}

.shelf-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.shelf-reason {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.reason-label {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.shelf-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.shelf-fields .mono {
  color: var(--muted);
}

.shelf-limit {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.shelf-limit > h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

.shelf-limit ul {
  margin-bottom: 14px;
}

.shelf-limit li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.shelf-limit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.shelf-limit li:last-child {
  margin-bottom: 0;
}

.shelf-limit .section-note a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 术语对照
   -------------------------------------------------------------------------- */
.glossary-body {
  max-width: 860px;
  margin: 0 auto;
}

.glossary-section {
  margin-bottom: 36px;
}

.glossary-section:last-child {
  margin-bottom: 0;
}

.glossary-section > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.glossary-section .section-foot a {
  color: var(--accent);
  margin-right: 16px;
}

.glossary-section .section-foot a:last-child {
  margin-right: 0;
}

.field-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg);
}

.field-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.field-position-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.field-position-list li:last-child {
  border-bottom: 0;
}

.position-index {
  color: var(--accent);
  flex: 0 0 auto;
}

.field-position-list strong {
  font-weight: 600;
}

.limit-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.limit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.limit-list li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · 阅读排查
   -------------------------------------------------------------------------- */
.symptom-index {
  margin-bottom: 36px;
}

.symptom-index > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.symptom-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
  transition: border-color 0.15s ease;
}

.symptom-card:hover {
  border-color: var(--accent);
}

.symptom-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.symptom-card h3 a {
  color: var(--ink);
}

.symptom-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.symptom-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.normal-layout {
  margin-bottom: 36px;
}

.normal-layout > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.layout-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.layout-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg);
}

.layout-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.fix-list > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.fix-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.fix-block:last-child {
  margin-bottom: 0;
}

.fix-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
}

.fix-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.fix-head h3 {
  font-size: 16px;
}

.fix-body {
  padding: 14px 16px 16px;
}

.fix-desc {
  font-size: 14px;
  margin-bottom: 14px;
}

.fix-reasons,
.fix-steps {
  margin-bottom: 14px;
}

.fix-reasons h4,
.fix-steps h4 {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}

.fix-reasons ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 6px;
}

.fix-reasons ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--line);
}

.fix-steps ol {
  counter-reset: fixstep;
}

.fix-steps ol li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  margin-bottom: 8px;
  counter-increment: fixstep;
}

.fix-steps ol li::before {
  content: counter(fixstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.fix-tip {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.fix-tip a {
  color: var(--accent);
}

.feedback-path {
  margin: 36px 0;
}

.feedback-path > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: fbstep;
}

.feedback-steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
  counter-increment: fbstep;
}

.feedback-steps li h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.feedback-steps li h3::before {
  content: counter(fbstep, decimal-leading-zero) " ";
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.feedback-steps li p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group > h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.related-entry {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-entry > h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-list li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list li a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 站务口径
   -------------------------------------------------------------------------- */
.policy-body {
  max-width: 800px;
  margin: 0 auto;
}

.policy-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section > h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.policy-section > p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
}

.policy-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}

.policy-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg);
}

.policy-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.policy-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 10px;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.policy-steps {
  counter-reset: polstep;
  margin-bottom: 16px;
}

.policy-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  margin-bottom: 10px;
  counter-increment: polstep;
}

.policy-steps li::before {
  content: counter(polstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  font-size: 13px;
}

.policy-links a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.policy-links a:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--pad) 24px;
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.error-inner h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 24px;
}

.error-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.error-block h2 {
  font-size: 15px;
  margin-bottom: 10px;
}

.error-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.error-list li:last-child {
  margin-bottom: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.error-note {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 32px var(--pad);
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 16px;
    --ctl-h: 44px;
  }

  .header-inner {
    height: 56px;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 14px;
  }

  .primary-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav ul.is-open {
    display: flex;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .primary-nav li:last-child a {
    border-bottom: 0;
  }

  .primary-nav a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
    padding-left: 10px;
  }

  .page-title {
    font-size: 21px;
  }

  .page-header {
    padding: 16px 0 4px;
  }

  .page-head {
    padding: 6px 0 18px;
    margin-bottom: 22px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px var(--pad) 28px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media {
    order: 2;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-represent .represent-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-legend-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    gap: 6px;
  }

  .filter-btn {
    min-height: 44px;
    flex: 0 0 auto;
  }

  .filter-clear {
    margin-left: 0;
    width: 100%;
  }

  .shelf-filter {
    position: static;
  }

  .shelf-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .shelf-cover {
    max-width: 160px;
  }

  .symptom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px var(--pad) 20px;
  }

  .footer-status {
    flex-direction: column;
    gap: 6px;
  }

  .error-inner {
    padding: 36px var(--pad) 20px;
  }

  .error-inner h1 {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 20px;
  }

  .brand {
    font-size: 16px;
  }

  .batch-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 9px 10px;
  }

  .genre-table {
    font-size: 13px;
  }

  .genre-table thead th,
  .genre-table tbody td {
    padding: 9px 10px;
  }

  .notice-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .fix-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
