/* ==========================================================================
   91漫画无限看 · begalon.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --bg: #FFF9F2;
  --ink: #22314A;
  --ink-soft: #4A5A73;
  --ink-mute: #6B7A90;
  --orange: #FF7A45;
  --orange-deep: #E85F2C;
  --teal: #12B3A6;
  --teal-deep: #0C8F85;
  --yellow: #FFC94D;
  --line: #F0DFCE;
  --line-strong: #E4CBB2;
  --card: #FFFFFF;
  --card-warm: #FFFDF9;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(34, 49, 74, 0.05);
  --shadow-md: 0 4px 14px rgba(34, 49, 74, 0.08);
  --shadow-lift: 0 8px 22px rgba(34, 49, 74, 0.12);
  --wrap: 1120px;
  --wrap-narrow: 860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--orange-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--teal-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 249, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 3px;
}

.brand-name {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

/* --- 主导航 --- */
.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav li {
  display: block;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #FFF1E4;
  color: var(--orange-deep);
}

.site-nav a.is-current {
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 600;
}

.site-nav a.is-current:hover,
.site-nav a.is-current:focus-visible {
  background: var(--orange-deep);
  color: #FFFFFF;
}

/* --- 汉堡按钮 --- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 主容器 --- */
.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
  min-width: 0;
}

.home-main {
  padding-bottom: 0;
}

/* --- 面包屑 --- */
.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 13.5px;
  color: var(--ink-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
  margin-right: 0;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 500;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--orange-deep);
}

.breadcrumb-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main .breadcrumb {
  max-width: none;
  padding: 0 0 14px;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* --- 页标题区 --- */
.page-header {
  padding: 0 0 18px;
}

.page-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* --- 页脚 --- */
.site-footer {
  margin-top: auto;
  background: #22314A;
  color: #D7E0EC;
  padding: 44px 0 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 28px;
  align-items: start;
}

.footer-brand-name {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #B9C6D8;
  margin-bottom: 10px;
}

.footer-brand-note {
  font-size: 13px;
  line-height: 1.7;
  color: #8FA0B8;
  border-left: 3px solid var(--teal);
  padding-left: 10px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: #B9C6D8;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 22px;
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.7;
  color: #8FA0B8;
}

/* --- 通用双栏布局 --- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.layout-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 82px;
}

.page-layout-single {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* --------------------------------------------------------------------------
   3. components —— 按钮、标签、卡片、列表、表格、FAQ、入口带
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--orange);
  color: #FFFFFF;
  box-shadow: 0 2px 0 var(--orange-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: #F2FBF9;
}

/* --- 标签胶囊 --- */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tag-primary {
  background: #FFF1E4;
  color: var(--orange-deep);
  border-color: #FFD9C2;
}

.tag-primary:hover,
.tag-primary:focus-visible {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}

.tag-secondary {
  background: #E9F8F6;
  color: var(--teal-deep);
  border-color: #BEEAE5;
}

/* --- 说明提示带 --- */
.panel-desc,
.section-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-lead {
  margin-top: 8px;
  margin-bottom: 18px;
}

/* --- 面板（首页与侧栏通用） --- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 24px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-head h2 {
  font-size: 21px;
  line-height: 1.35;
}

.panel-more {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
}

.panel-more:hover,
.panel-more:focus-visible {
  color: var(--orange-deep);
}

.panel-desc {
  margin-bottom: 16px;
}

.panel-highlight {
  background: #FFFDF6;
  border-color: #F6E3B4;
}

/* --- 侧栏卡片 --- */
.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-card h2 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.side-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.side-card p:last-child {
  margin-bottom: 0;
}

.side-card-lead {
  font-size: 14px;
  color: var(--ink-mute);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.side-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal);
}

.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.side-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--orange-deep);
  border-bottom: 1px dashed var(--line);
}

.side-link-list li:last-child a {
  border-bottom: 0;
}

.side-link-list a:hover,
.side-link-list a:focus-visible {
  color: var(--teal-deep);
}

.side-figure {
  margin: 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.side-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.side-figure figcaption {
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: #FFFDF9;
  border-top: 1px solid var(--line);
}

/* --- 榜单列表（首页与排行榜共用结构） --- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rank-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: #4A3400;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.rank-list li:nth-child(n + 4) .rank-no {
  background: #F2E9DE;
  color: var(--ink-soft);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.rank-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-top: 2px;
}

.rank-body a {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
}

.rank-body a:hover,
.rank-body a:focus-visible {
  color: var(--orange-deep);
}

/* --- 更新顺序列表（首页侧栏） --- */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.update-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.update-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-group {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.update-slot {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: #E9F8F6;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}

.update-list a {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.update-list a:hover,
.update-list a:focus-visible {
  color: var(--teal-deep);
}

/* --- 入口带（首页与版权页共用） --- */
.entry-band {
  background: #FFF3E7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 20px;
}

.entry-band-title {
  max-width: var(--wrap);
  margin: 0 auto 18px;
  font-size: 22px;
  line-height: 1.35;
}

.entry-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.entry-card h2,
.entry-card h3 {
  font-size: 18px;
  line-height: 1.4;
}

.entry-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.entry-card .btn {
  margin-top: 4px;
}

/* --- 表格 --- */
.mapping-table,
.rank-view-table,
.update-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.mapping-table caption,
.rank-view-table caption,
.update-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-mute);
}

.mapping-table th,
.mapping-table td,
.rank-view-table th,
.rank-view-table td,
.update-table th,
.update-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.mapping-table thead th,
.rank-view-table thead th,
.update-table thead th {
  background: #FFF3E7;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-strong);
}

.mapping-table tbody tr:last-child th,
.mapping-table tbody tr:last-child td,
.rank-view-table tbody tr:last-child th,
.rank-view-table tbody tr:last-child td,
.update-table tbody tr:last-child th,
.update-table tbody tr:last-child td {
  border-bottom: 0;
}

.mapping-table tbody tr:nth-child(even),
.rank-view-table tbody tr:nth-child(even),
.update-table tbody tr:nth-child(even) {
  background: #FFFDF9;
}

.mapping-table td:first-child,
.update-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

/* --- FAQ 折叠 --- */
.faq {
  margin-top: 34px;
}

.faq h2 {
  font-size: 22px;
  line-height: 1.35;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--teal-deep);
}

.faq-item summary:hover {
  background: #FFF6EC;
}

.faq-item[open] summary {
  background: #FFF6EC;
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  padding: 14px 18px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --- 内容图片通用约束 --- */
.content-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.content-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

/* --------------------------------------------------------------------------
   4. pages —— 各页面业务模块
   -------------------------------------------------------------------------- */

/* ===== 4.1 首页 ===== */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #E9F8F6;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.28;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--orange);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
}

.cover-thumb {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.cover-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F7EEE4;
}

.cover-thumb figcaption {
  padding: 7px 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: var(--yellow);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

/* --- 题材快捷标签条 --- */
.topic-strip {
  max-width: var(--wrap);
  margin: 0 auto 30px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  background: #FFFFFF;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.topic-strip-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

/* --- 首页仪表盘 --- */
.dashboard {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 44px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-side .panel + .panel {
  margin-top: 0;
}

/* --- 题材分类速览（首页） --- */
.dashboard .theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard .theme-card {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard .theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.dashboard .theme-card h3 {
  font-size: 16.5px;
  line-height: 1.4;
}

.dashboard .theme-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-deep);
}

.card-link::after {
  content: "›";
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--orange-deep);
}

/* --- 漫画库封面墙 --- */
.cover-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.cover-card-figure {
  background: #F7EEE4;
}

.cover-card-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cover-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.cover-card-body .tag {
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
}

.cover-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.cover-card-body .card-link {
  align-self: flex-start;
}

/* ===== 4.2 内页共用：页标题引导区 ===== */
.page-hero {
  margin-bottom: 28px;
}

.page-hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46em;
}

.page-hero-inner {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.page-hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.page-hero-links a::after {
  content: "›";
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}

.page-hero-links a:hover,
.page-hero-links a:focus-visible {
  color: var(--teal-deep);
}

/* ===== 4.3 漫画库 catalog ===== */
.catalog-structure,
.catalog-groups,
.catalog-cards,
.catalog-path {
  margin-bottom: 34px;
}

.catalog-structure h2,
.catalog-groups h2,
.catalog-cards h2,
.catalog-path h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.catalog-structure p,
.catalog-groups p,
.catalog-cards p,
.catalog-path p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.structure-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.structure-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.structure-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange);
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.group-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.group-item h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.group-item p {
  margin-bottom: 10px;
}

.group-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-entries a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #FFF3E7;
  border: 1px solid #FFD9C2;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
}

.group-entries a:hover,
.group-entries a:focus-visible {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}

.entry-figure {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.entry-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.entry-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.entry-card-grid .entry-card {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: block;
  box-shadow: none;
}

.entry-card-grid .entry-card:hover {
  border-color: var(--teal);
  transform: none;
  box-shadow: var(--shadow-sm);
}

.entry-card-grid .entry-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.entry-card-grid .entry-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  counter-reset: pathstep;
}

.path-list > li {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 52px;
  counter-increment: pathstep;
}

.path-list > li::before {
  content: counter(pathstep);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.path-list h3 {
  font-size: 15.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.path-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ===== 4.4 题材分类 themes ===== */
.theme-intro,
.theme-grid,
.theme-boundary,
.theme-mapping {
  margin-bottom: 34px;
}

.theme-intro h2,
.theme-grid h2,
.theme-boundary h2,
.theme-mapping h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.theme-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
  max-width: 68em;
}

/* 题材页网格：标题与说明留在网格外，只有 .theme-grid-inner 参与分列 */
.theme-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.theme-grid-inner .theme-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-grid-inner .theme-card h3 {
  font-size: 17px;
  line-height: 1.4;
}

.theme-basis {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  flex: 0 0 auto;
}

.theme-scene {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.theme-grid-inner .theme-card > a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-deep);
}

.theme-grid-inner .theme-card > a::after {
  content: "›";
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}

.theme-grid-inner .theme-card > a:hover,
.theme-grid-inner .theme-card > a:focus-visible {
  color: var(--orange-deep);
}

.theme-card-media {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "fig title"
    "fig basis"
    "fig scene"
    "fig link";
  align-content: start;
  column-gap: 20px;
  row-gap: 8px;
}

.theme-card-media .theme-figure {
  grid-area: fig;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.theme-card-media .theme-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.theme-card-media .theme-figure figcaption {
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.theme-card-media h3 {
  grid-area: title;
}

.theme-card-media .theme-basis {
  grid-area: basis;
}

.theme-card-media .theme-scene {
  grid-area: scene;
}

.theme-card-media > a {
  grid-area: link;
}

.theme-boundary-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.theme-boundary-col {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.theme-boundary-col h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.theme-boundary-col p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.theme-boundary-col p:last-child {
  margin-bottom: 0;
}

.theme-mapping .mapping-table {
  margin-top: 6px;
}

.theme-mapping-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.theme-mapping-note a {
  font-weight: 600;
  color: var(--orange-deep);
  margin-right: 12px;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

.theme-mapping-note a:hover,
.theme-mapping-note a:focus-visible {
  color: var(--teal-deep);
}

/* ===== 4.5 排行榜 ranking ===== */
.rule-brief,
.rank-groups,
.rank-view {
  margin-bottom: 34px;
}

.rule-brief h2,
.rank-groups h2,
.rank-view h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.rule-brief > p,
.rank-view > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.rule-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.rule-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rule-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange);
}

.rank-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rank-block {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.rank-block h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFF1E4;
}

.rank-block-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas:
    "no name link"
    "no note link";
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-item .rank-no {
  grid-area: no;
  margin-top: 2px;
}

.rank-item .rank-name {
  grid-area: name;
  font-size: 15.5px;
}

.rank-note {
  grid-area: note;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin: 0;
}

.rank-item > a {
  grid-area: link;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #E9F8F6;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.rank-item > a:hover,
.rank-item > a:focus-visible {
  background: var(--teal);
  color: #FFFFFF;
}

.rank-view-table {
  margin-top: 6px;
}

/* ===== 4.6 更新记录 updates ===== */
.update-intro,
.update-table-section,
.update-notes,
.update-path {
  margin-bottom: 34px;
}

.update-intro h2,
.update-table-section h2,
.update-notes h2,
.update-path h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.update-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 22px;
  align-items: start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.update-intro-text {
  min-width: 0;
}

.update-intro-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.update-intro-text p:last-child {
  margin-bottom: 0;
}

.update-intro-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.update-intro-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.update-intro-figure figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.update-principles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F2FBF9;
  border: 1px solid #BEEAE5;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.update-principles li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.update-principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal);
}

.update-table-section .update-table {
  margin-top: 6px;
}

.update-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.note-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.note-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.note-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.note-card-allow {
  border-left: 4px solid var(--teal);
}

.note-card-allow li::before {
  background: var(--teal);
}

.note-card-deny {
  border-left: 4px solid #E0B4A0;
  background: #FFFBF8;
}

.note-card-deny li::before {
  background: #D98C6A;
}

.update-notes-tail {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.update-notes-tail a {
  font-weight: 600;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.update-notes-tail a:hover,
.update-notes-tail a:focus-visible {
  color: var(--teal-deep);
}

.update-path .path-list {
  margin-top: 14px;
}

.path-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.path-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.path-step-body {
  min-width: 0;
}

.path-step-body h3 {
  font-size: 15.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.path-step-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== 4.7 阅读说明 reading-guide ===== */
.path-steps,
.reading-order,
.faq {
  margin-bottom: 34px;
}

.path-steps h2,
.reading-order h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.path-figure {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.path-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.path-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.step-body a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-deep);
}

.step-body a:hover,
.step-body a:focus-visible {
  color: var(--teal-deep);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.order-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.order-item h3 {
  font-size: 15.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.order-item p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.key-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: keypoint;
  margin-top: 8px;
}

.key-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: keypoint;
}

.key-list li::before {
  content: counter(keypoint);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #FFF1E4;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--orange);
}

.pill-link:hover,
.pill-link:focus-visible {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #FFFFFF;
}

.pill-link-soft {
  background: #FFFFFF;
  color: var(--teal-deep);
  border-color: #BEEAE5;
}

.pill-link-soft:hover,
.pill-link-soft:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
}

/* ===== 4.8 版权反馈 copyright-feedback ===== */
.article-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
}

.article-block {
  margin-bottom: 34px;
}

.article-block h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFF1E4;
}

.article-block h3 {
  font-size: 16.5px;
  line-height: 1.4;
  margin: 16px 0 6px;
  color: var(--ink);
}

.article-block p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

.media-split-text {
  min-width: 0;
}

.media-split-text p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.media-split-text p:last-child {
  margin-bottom: 0;
}

.media-split-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-warm);
}

.media-split-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-split-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 14px;
}

.scope-list li {
  position: relative;
  padding: 12px 16px 12px 36px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.scope-list-muted li {
  background: #FFFBF8;
  border-color: #F0DDD2;
}

.scope-list-muted li::before {
  background: #D98C6A;
}

/* ===== 4.9 404 ===== */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.error-hero {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  margin-bottom: 28px;
}

.error-code {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 12px;
}

.error-hero h1 {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.32;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46em;
  margin-bottom: 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--orange-deep);
  color: #FFFFFF;
}

.error-paths {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.error-paths h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.error-paths > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-path-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.error-path-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-deep);
}

.error-path-list a:hover,
.error-path-list a:focus-visible {
  color: var(--teal-deep);
}

.error-path-list span {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   5. responsive —— 断点 1024px / 768px / 480px
   -------------------------------------------------------------------------- */

/* --- 平板：双栏收窄 --- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 10px 16px;
  }

  .site-nav a {
    padding: 0 9px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    padding: 28px 16px 24px;
  }

  .hero-covers {
    max-width: 100%;
  }

  .topic-strip {
    margin-left: 16px;
    margin-right: 16px;
    padding: 12px 16px;
  }

  .dashboard,
  .layout-shell,
  .page-layout-single {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 22px;
  }

  .layout-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 26px 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* --- 手机：单列 + 汉堡导航 --- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 12px;
    font-size: 15px;
    width: 100%;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 16px 22px;
  }

  .hero h1 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .topic-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  .topic-tags {
    gap: 8px;
  }

  .tag {
    min-height: 38px;
  }

  .dashboard,
  .page-layout,
  .page-layout-single {
    display: block;
  }

  .dashboard-main,
  .layout-main {
    margin-bottom: 24px;
  }

  .dashboard-side,
  .layout-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .panel {
    padding: 18px 16px;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .dashboard .theme-grid,
  .theme-grid-inner,
  .cover-wall,
  .entry-card-grid,
  .update-notes-grid,
  .entry-grid,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-card-media {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fig"
      "title"
      "basis"
      "scene"
      "link";
    row-gap: 10px;
  }

  .theme-boundary-inner,
  .update-intro-body,
  .media-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rank-item {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "no note"
      "no link";
  }

  .rank-item > a {
    justify-self: start;
    margin-top: 6px;
  }

  .entry-band {
    padding: 28px 16px;
  }

  .entry-band-title {
    font-size: 20px;
  }

  .entry-grid .entry-card {
    padding: 18px;
  }

  /* 表格转卡片式排布 */
  .mapping-table,
  .rank-view-table,
  .update-table {
    display: block;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .mapping-table caption,
  .rank-view-table caption,
  .update-table caption {
    padding-bottom: 12px;
  }

  .mapping-table thead,
  .rank-view-table thead,
  .update-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mapping-table tbody,
  .rank-view-table tbody,
  .update-table tbody {
    display: block;
  }

  .mapping-table tbody tr,
  .rank-view-table tbody tr,
  .update-table tbody tr {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .mapping-table tbody tr:nth-child(even),
  .rank-view-table tbody tr:nth-child(even),
  .update-table tbody tr:nth-child(even) {
    background: #FFFFFF;
  }

  .mapping-table tbody td,
  .rank-view-table tbody td,
  .update-table tbody td,
  .update-table tbody th {
    display: block;
    padding: 4px 0;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .update-table tbody th {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px dashed var(--line);
  }

  .mapping-table tbody td:first-child {
    font-size: 15px;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px dashed var(--line);
  }

  .article-narrow {
    max-width: 100%;
  }

  .article-block h2 {
    font-size: 20px;
  }

  .article-block p,
  .media-split-text p {
    font-size: 15px;
  }

  .scope-list li {
    padding: 12px 14px 12px 32px;
  }

  .scope-list li::before {
    left: 12px;
    top: 19px;
  }

  .error-main {
    padding: 28px 16px 48px;
  }

  .error-hero {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-paths {
    padding: 18px 16px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 0 16px 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 14px 16px 20px;
  }

  .site-footer {
    padding-top: 32px;
  }

  .step-item,
  .path-step {
    padding: 14px;
    gap: 12px;
  }

  .step-body p,
  .path-step-body p {
    font-size: 14px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 12px 14px;
  }

  .faq-item p {
    padding: 12px 14px 16px;
    font-size: 14.5px;
  }

  .page-hero-inner {
    padding: 16px;
  }

  .page-hero-lead {
    font-size: 15px;
  }

  .rank-block {
    padding: 16px;
  }

  .update-intro-body {
    padding: 16px;
  }

  .update-principles,
  .rule-points,
  .structure-points {
    padding: 14px;
  }
}

/* --- 小屏手机 --- */
@media (max-width: 480px) {
  .brand-name {
    font-size: 16.5px;
  }

  .hero-covers {
    gap: 8px;
  }

  .cover-thumb figcaption {
    font-size: 12px;
    padding: 6px 4px;
  }

  .hero-actions .btn {
    min-width: 0;
    flex: 1 1 100%;
  }

  .topic-tags .tag {
    font-size: 12.5px;
    padding: 0 12px;
  }

  .panel-head h2,
  .faq h2,
  .catalog-structure h2,
  .catalog-groups h2,
  .catalog-cards h2,
  .catalog-path h2,
  .theme-intro h2,
  .theme-grid h2,
  .theme-boundary h2,
  .theme-mapping h2,
  .rule-brief h2,
  .rank-groups h2,
  .rank-view h2,
  .update-intro h2,
  .update-table-section h2,
  .update-notes h2,
  .update-path h2,
  .path-steps h2,
  .reading-order h2,
  .article-block h2 {
    font-size: 19px;
  }

  .rank-item {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
  }

  .rank-no {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .entry-band-title {
    font-size: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-list > li {
    padding-left: 46px;
  }
}

/* --- 降低动效偏好 --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
