/* ==========================================================================
   51漫画 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #F6F7F5;
  --bg-card: #FFFFFF;
  --ink-title: #113A3C;
  --ink-body: #5A6A6D;
  --brand: #1F7A6E;
  --brand-dark: #16594F;
  --amber: #E0A03A;
  --amber-soft: #FBF1DF;
  --teal-soft: #E4F1EE;
  --line: #E3E7E4;
  --line-strong: #CBD4D0;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(17, 58, 60, 0.06);
  --shadow-2: 0 6px 16px rgba(17, 58, 60, 0.10);
  --shell: 1160px;
  --pad-x: 20px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-title);
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: clamp(26px, 4.5vw, 38px);
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
  max-width: 72ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-body);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 10px 16px;
  background-color: var(--ink-title);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout：站点骨架、主容器、页头、速查条、页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--ink-title);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-title);
  text-decoration: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-body);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink-title);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--ink-title);
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-list > li > a:hover {
  background-color: var(--teal-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-list > li > a.is-current {
  color: var(--brand);
  font-weight: 600;
  background-color: var(--teal-soft);
}

.quick-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.quick-list {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--pad-x);
  overflow-x: auto;
  scrollbar-width: thin;
}

.quick-list > li {
  flex: 0 0 auto;
}

.quick-list > li > a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}

.quick-list > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--pad-x) 56px;
}

.inner-main {
  padding-top: 20px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.site-footer {
  background-color: var(--ink-title);
  color: #D6E0DE;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad-x) 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin-bottom: 10px;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}

.footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #B9C8C6;
}

.footer-title {
  margin-bottom: 12px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

.footer-list > li {
  margin-bottom: 8px;
}

.footer-list > li > a {
  color: #C6D4D2;
  font-size: 14px;
  text-decoration: none;
}

.footer-list > li > a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--pad-x) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-copy {
  margin: 0 0 6px;
  max-width: none;
  font-size: 13px;
  line-height: 1.7;
  color: #A9BAB8;
}

.footer-copy:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   components：通用模块
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-body);
}

.breadcrumb a {
  color: var(--ink-body);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-title);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
}

.page-lead {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-body);
}

.page-head .page-lead {
  margin-bottom: 0;
}

.page-hero {
  margin-bottom: 24px;
}

/* 区块标题 */
.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 6px;
}

.section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.section-title {
  margin-bottom: 8px;
}

.section-intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.section-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-body);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-title);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-plain {
  background-color: var(--bg-card);
  color: var(--ink-title);
  border-color: var(--line-strong);
}

.btn-plain:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* 卡片通用链接 */
.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.card-link::after {
  content: " →";
}

/* 表格 */
.table-scroll {
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.data-table {
  min-width: 720px;
  font-size: 15px;
}

.data-table caption {
  padding: 0;
}

.table-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-body);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: #F1F4F2;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink-title);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: #FAFBFA;
}

/* 状态标签 */
.status {
  display: inline-block;
  padding: 2px 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.status-ongoing {
  color: #14655A;
  background-color: var(--teal-soft);
}

.status-complete,
.status-finished {
  color: #8A5A10;
  background-color: var(--amber-soft);
}

.status-hiatus,
.status-paused {
  color: #6B6F70;
  background-color: #EDEFEE;
}

/* 通用标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-amber {
  color: #8A5A10;
  background-color: var(--amber-soft);
}

.tag-teal {
  color: #14655A;
  background-color: var(--teal-soft);
}

/* 相关入口条 */
.related-bar {
  margin-top: 40px;
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-bar .section-title {
  margin-bottom: 12px;
  font-size: 18px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-title);
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.related-list > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* 折叠问答（内页） */
.faq-group {
  margin-bottom: 36px;
}

.faq-group h2 {
  margin-bottom: 6px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item > summary {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-title);
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  content: "＋";
  display: inline-block;
  width: 20px;
  color: var(--amber);
  font-weight: 600;
}

.faq-item[open] > summary::before {
  content: "－";
}

.faq-item[open] > summary {
  border-bottom: 1px solid var(--line);
}

.faq-body {
  padding: 14px 18px 18px;
}

.faq-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.faq-footnote {
  margin-top: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
  background-color: var(--teal-soft);
  border-radius: var(--radius);
}

/* 锚点导航条 */
.anchor-bar {
  margin-bottom: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.anchor-list > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* 步骤列表（内页通用） */
.step-list,
.start-steps,
.path-steps {
  display: grid;
  gap: 16px;
}

.step-item,
.start-step,
.path-step {
  position: relative;
  padding: 18px 20px 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item h3,
.start-step h3,
.path-step h3 {
  margin-bottom: 6px;
}

.step-item p,
.start-step p,
.path-step p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.75;
}

.step-item p:last-child,
.start-step p:last-child,
.path-step p:last-child {
  margin-bottom: 0;
}

.step-index,
.step-no,
.step-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8A5A10;
  background-color: var(--amber-soft);
  border-radius: 999px;
}

.step-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.step-link::after {
  content: " →";
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* 首屏卡流 */
.hero-wall {
  display: grid;
  gap: 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
}

.hero-body h1 {
  margin-bottom: 12px;
}

.hero-text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.card-figure {
  min-width: 0;
}

.card-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}

.card-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.card-body .card-link {
  margin-top: auto;
  padding-top: 10px;
}

.hero-mini-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-body);
  text-decoration: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.mini-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
  color: var(--ink-body);
  text-decoration: none;
}

.mini-tag {
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8A5A10;
  background-color: var(--amber-soft);
  border-radius: 999px;
}

.mini-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-title);
}

.mini-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

/* 最近更新 */
.updates {
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.updates .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.updates .section-head h2 {
  grid-column: 1;
  margin-bottom: 4px;
}

.updates .section-head .section-desc {
  grid-column: 1;
}

.stepper {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  line-height: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: var(--bg-page);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.stepper-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.stepper-btn:disabled {
  color: var(--line-strong);
  cursor: not-allowed;
}

.stepper-value {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) auto auto minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
}

.update-genre,
.update-vol,
.update-hint {
  font-size: 14px;
  color: var(--ink-body);
}

.update-vol {
  white-space: nowrap;
}

/* 编辑选读顺序 */
.picks .section-head {
  margin-bottom: 16px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.pick-item:hover {
  box-shadow: var(--shadow-2);
}

.pick-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
}

.pick-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-title);
}

.pick-reason {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.pick-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pick-link::after {
  content: " →";
}

/* 作品资料速查表 */
.facts .section-head {
  margin-bottom: 16px;
}

/* 题材方向导航（首页） */
.genres .section-head {
  margin-bottom: 16px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.genre-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.genre-card-large {
  grid-column: span 3;
}

.genre-name {
  margin: 0;
}

.genre-text,
.genre-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-card .card-link {
  margin-top: auto;
  padding-top: 6px;
}

/* 角色索引速览 */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cast-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.cast-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.cast-name {
  margin: 0;
  font-size: 17px;
}

.cast-role {
  margin: 0;
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}

.cast-work {
  margin: 0;
  font-size: 14px;
  color: var(--ink-body);
}

.cast-card .card-link {
  margin-top: 8px;
}

/* 编辑部解读摘要 */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-item {
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-conclusion {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-title);
}

.note-meta {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #14655A;
  background-color: var(--teal-soft);
  border-radius: 999px;
}

.note-item .card-link {
  display: block;
  margin-top: 8px;
}

/* 侧栏：连载观察 */
.watch,
.qa,
.notes {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.watch h2,
.qa h2,
.notes h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.watch .section-desc {
  margin-bottom: 14px;
  font-size: 14px;
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.watch-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.watch-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.watch-field {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-title);
}

.watch-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

/* 侧栏：阅读答疑 */
.qa-item {
  border-bottom: 1px solid var(--line);
}

.qa-item:last-of-type {
  border-bottom: 0;
}

.qa-question {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
  list-style: none;
}

.qa-question::-webkit-details-marker {
  display: none;
}

.qa-question::before {
  content: "＋";
  display: inline-block;
  width: 18px;
  color: var(--amber);
}

.qa-item[open] .qa-question::before {
  content: "－";
}

.qa-answer {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.qa .card-link {
  display: block;
  margin-top: 12px;
}

/* 内容说明条 */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.notes-item {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.notes-label {
  font-weight: 600;
  color: var(--ink-title);
}

.notes-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.notes-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   pages：作品索引
   -------------------------------------------------------------------------- */
.page-works-index .legend {
  margin-bottom: 32px;
}

.legend-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.legend-item {
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #14655A;
  background-color: var(--teal-soft);
  border-radius: 999px;
}

.legend-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.fact-table {
  margin-bottom: 36px;
}

.table-figure {
  margin-bottom: 16px;
}

.table-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.group-index {
  margin-bottom: 36px;
}

.group-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.group-item {
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.group-link {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.group-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.group-block {
  padding: 18px 20px;
  margin-bottom: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.group-block:last-child {
  margin-bottom: 0;
}

.group-block h3 {
  margin-bottom: 6px;
}

.group-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
}

.start-guide .start-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   pages：题材导航
   -------------------------------------------------------------------------- */
.page-genres .section {
  margin-bottom: 40px;
}

.page-genres .section:last-of-type {
  margin-bottom: 0;
}

.page-genres .section-desc h2,
.page-genres .section h2 {
  margin-bottom: 10px;
}

.page-genres .section-desc p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.page-genres .genre-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-genres .genre-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.page-genres .genre-figure {
  min-width: 0;
}

.page-genres .genre-figure img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.page-genres .genre-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
}

.page-genres .genre-body .genre-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.page-genres .genre-link::after {
  content: " →";
}

.trait-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trait-item {
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trait-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.trait-setting {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.trait-audience {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand);
}

.page-genres .path-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-genres .section-related .related-list {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages：角色档案
   -------------------------------------------------------------------------- */
.page-cast-files .page-header {
  margin-bottom: 18px;
}

.page-cast-files .cast-figure {
  margin-bottom: 28px;
}

.page-cast-files .cast-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-cast-files .page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-bottom: 36px;
}

.cast-main {
  min-width: 0;
}

.cast-table {
  min-width: 760px;
}

.cast-aside {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.cast-aside .section-title {
  font-size: 18px;
}

.tag-list {
  margin: 0;
}

.tag-list dt {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
}

.tag-list dt:first-child {
  margin-top: 0;
}

.tag-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.relations {
  margin-bottom: 36px;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.relation-item {
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.relation-name {
  margin-bottom: 6px;
  font-size: 17px;
}

.relation-count {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.relation-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   pages：作品解读
   -------------------------------------------------------------------------- */
.page-reading-notes .page-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
}

.article-main {
  min-width: 0;
}

.article-main > section {
  margin-bottom: 40px;
}

.article-main > section:last-child {
  margin-bottom: 0;
}

.article-main h2 {
  margin-bottom: 14px;
}

.summary {
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}

.summary h2 {
  font-size: 20px;
}

.summary p {
  font-size: 16px;
  line-height: 1.85;
}

.article-figure {
  margin-bottom: 18px;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-item {
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #14655A;
  background-color: var(--teal-soft);
  border-radius: 999px;
}

.chapter {
  padding: 22px 24px;
  margin-bottom: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chapter:last-child {
  margin-bottom: 0;
}

.chapter h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.chapter p {
  font-size: 16px;
  line-height: 1.85;
}

.chapter-figure {
  margin-top: 16px;
}

.chapter-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.difficulty-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.difficulty-item {
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.difficulty-name {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8A5A10;
  background-color: var(--amber-soft);
  border-radius: 999px;
}

.difficulty-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.related {
  padding-top: 8px;
}

.related .related-list {
  margin-top: 12px;
}

.side-column .notes {
  position: sticky;
  top: 84px;
}

.side-column .notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.side-column .notes-item {
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   pages：连载观察
   -------------------------------------------------------------------------- */
.page-serial-watch .rules-section,
.page-serial-watch .fields-section,
.page-serial-watch .trends-section {
  margin-bottom: 40px;
}

.page-serial-watch h2 {
  margin-bottom: 8px;
}

.rules-table {
  min-width: 640px;
}

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fields-figure {
  min-width: 0;
}

.fields-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fields-notes h3 {
  margin-bottom: 12px;
}

.fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fields-list > li {
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-name {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
}

.fields-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.trends-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trend-item {
  padding: 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
}

.trend-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.trend-field {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.trend-item p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.back-section .back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-title);
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.back-links > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages：阅读答疑
   -------------------------------------------------------------------------- */
.page-reading-qa .start-guide {
  margin-top: 40px;
}

.page-reading-qa .guide-figure {
  margin-bottom: 20px;
}

.page-reading-qa .guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-reading-qa .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-block {
  max-width: 720px;
}

.error-code {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
}

.error-block h1 {
  margin-bottom: 12px;
}

.error-text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions > li > a {
  text-decoration: none;
}

.error-hint {
  max-width: 860px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-links > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.error-links > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive：断点 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout,
  .page-cast-files .page-layout,
  .page-reading-notes .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .legend-list,
  .group-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-genres .genre-grid,
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-genres .genre-card-large,
  .genre-card-large {
    grid-column: span 2;
  }

  .trait-list,
  .relation-grid,
  .trends-list,
  .difficulty-list,
  .page-genres .path-steps,
  .start-guide .start-steps,
  .page-reading-qa .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .quick-list {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .home-main {
    gap: 32px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-body {
    padding: 20px 18px 22px;
  }

  .hero-mid-row,
  .hero-mini-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .page-cast-files .page-layout,
  .page-reading-notes .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .side-column .notes {
    position: static;
  }

  .updates .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper {
    grid-column: 1;
    grid-row: auto;
    align-self: flex-start;
    margin-top: 8px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 2px;
  }

  .update-title {
    grid-column: 1 / -1;
  }

  .update-hint {
    grid-column: 1 / -1;
  }

  .pick-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
  }

  .pick-reason,
  .pick-link {
    grid-column: 2;
  }

  .cast-grid,
  .legend-list,
  .group-list,
  .trait-list,
  .relation-grid,
  .trends-list,
  .difficulty-list,
  .genre-grid,
  .page-genres .genre-grid,
  .page-genres .path-steps,
  .start-guide .start-steps,
  .page-reading-qa .step-list,
  .fields-layout,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-genres .genre-card-large,
  .genre-card-large {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-genres .genre-figure img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .related-bar {
    padding: 18px 16px;
  }

  .table-scroll {
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 680px;
  }

  .rules-table,
  .cast-table {
    min-width: 620px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .related-list > li > a,
  .anchor-list > li > a,
  .back-links > li > a {
    width: 100%;
  }

  .related-list,
  .anchor-list,
  .back-links {
    flex-direction: column;
    align-items: stretch;
  }

  .data-table {
    min-width: 640px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .card,
  .mini-card,
  .genre-card,
  .cast-card,
  .pick-item {
    transition: none;
  }
}
