/* ==========================================================================
   女神漫画网 · 全站样式
   1. base        基础重置与设计变量
   2. layout      全站骨架（页头 / 导航 / 主容器 / 面包屑 / 页脚）
   3. components  通用组件（按钮、卡片、表格、编号、折叠、下一步等）
   4. pages       各页专属模块
   5. responsive  断点适配
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #12333F;
  --teal: #16B7A0;
  --orange: #E8724A;
  --paper: #F5F7F6;
  --line: #DBE2E0;
  --muted: #5C6B6D;
  --white: #FFFFFF;
  --radius: 3px;
  --wrap: 1120px;
  --body-wide: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

strong {
  font-weight: 600;
}

.num,
.step-no,
.order-no,
.record-date,
.meta-value,
.bar-value,
.stat-value,
.cover-order,
.error-code {
  font-feature-settings: "tnum";
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 10px;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   2. layout · 页头与导航
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.head-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 16px 14px;
}

.mobile-nav li + li {
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
}

.mobile-nav a.is-current {
  color: var(--teal);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. layout · 主容器 / 内页骨架
   -------------------------------------------------------------------------- */

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 18px 0 0;
}

.page-title {
  max-width: var(--body-wide);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-head {
  max-width: var(--body-wide);
  padding: 12px 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
}

.page-head-main {
  flex: 1 1 420px;
  min-width: 220px;
}

.page-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-meta {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-label {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 12px;
}

.meta-value {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. layout · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 28px 32px;
}

.foot-brand .brand {
  display: inline-block;
  margin-bottom: 8px;
}

.foot-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.foot-col ul li + li {
  margin-top: 6px;
}

.foot-col ul a {
  font-size: 13px;
  color: var(--muted);
}

.foot-col ul a:hover {
  color: var(--teal);
}

.foot-note p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. components · 按钮与通用链接
   -------------------------------------------------------------------------- */

.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.link-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}

.link-more:hover {
  border-bottom-color: var(--teal);
}

.source-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.source-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.source-note a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.section-intro {
  margin: 8px 0 20px;
  max-width: var(--body-wide);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.inline-link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.inline-link a {
  color: var(--teal);
  font-weight: 600;
}

.inline-link a + a {
  margin-left: 14px;
}

/* 页末下一步块 */

.next-step {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
  max-width: var(--wrap);
}

.next-step h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.next-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.next-actions,
.next-links,
.next-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.next-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.next-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.next-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.next-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.next-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.next-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.next-hint {
  font-size: 14px;
  color: var(--muted);
}

/* 相关内容条 */

.related-links {
  max-width: var(--wrap);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
}

.related-links-label {
  color: var(--muted);
}

.related-links-item {
  color: var(--teal);
  font-weight: 600;
}

/* 表格横滑容器 */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.6;
}

.table-scroll caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.table-scroll thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-scroll tbody th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-scroll tbody td {
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll tbody tr:hover th,
.table-scroll tbody tr:hover td {
  background: #F0F6F4;
}

/* 图片容器通用约束 */

.hero-media img,
.path-media img,
.media-figure img,
.term-figure img,
.notes-figure img,
.flow-figure img,
.record-figure img,
.cover-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--muted);
}

.hero-copy h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 14px 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas:
    "no name"
    "no note";
  column-gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.step-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.step-item:first-child {
  padding-top: 2px;
}

.step-item .step-no {
  grid-area: no;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 2px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.step-item .step-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.step-item .step-note {
  grid-area: note;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.hero-media img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.hero-media figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 首页模块通用标题区 */

.sec-head {
  margin-bottom: 22px;
}

.sec-head h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.sec-lead {
  margin-top: 8px;
  max-width: var(--body-wide);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.path,
.data-grid,
.series-entry,
.terms-brief,
.pitfalls,
.journal-brief {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.sec-foot-link {
  margin-top: 18px;
  font-size: 14px;
}

/* 三步路径详解 */

.path-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.path-articles {
  display: grid;
  gap: 16px;
}

.path-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.16s ease;
}

.path-item:hover {
  border-color: var(--teal);
}

.path-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}

.path-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.path-media img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.path-media figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 数据结论卡与条形图 */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 6px;
}

.stat-value .num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.stat-value .unit {
  font-size: 13px;
  color: var(--muted);
}

.stat-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.bar-figure {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.bar-caption {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 74px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 13px;
  color: var(--ink);
}

.bar-track {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--teal);
}

.bar-value {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

/* 最近整理作品封面墙 */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.cover-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.cover-card > a {
  display: block;
  padding-bottom: 4px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  background: var(--paper);
}

.cover-name {
  padding: 10px 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.cover-meta .tag {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}

.cover-meta .order-no {
  color: var(--orange);
  font-weight: 600;
}

/* 术语速查 */

.terms-brief .term-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.terms-brief .term-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
}

.terms-brief .term-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.terms-brief .term-item dd {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.terms-brief .term-item dd a {
  color: var(--teal);
  font-weight: 600;
}

/* 常见误区 */

.pitfall-list {
  display: grid;
  gap: 12px;
}

.pitfall-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pitfall-row h3 {
  font-size: 15px;
  color: var(--ink);
}

.pitfall-row p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.pitfall-row p a {
  color: var(--teal);
  font-weight: 600;
}

/* 近期调整摘要 */

.journal-brief .record-list {
  display: grid;
  gap: 10px;
}

.journal-brief .record-row {
  display: grid;
  grid-template-columns: 104px 1fr 1.2fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13.5px;
}

.journal-brief .record-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.journal-brief .record-field {
  color: var(--ink);
}

.journal-brief .record-basis {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. pages · 站点起点
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-toc {
  position: sticky;
  top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.toc-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-toc ul {
  display: grid;
  gap: 4px;
}

.page-toc a {
  display: block;
  padding: 6px 0 6px 10px;
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.page-toc a:hover {
  color: var(--teal);
  border-left-color: var(--teal);
}

.page-body {
  min-width: 0;
  max-width: var(--body-wide);
}

.page-body section + section {
  margin-top: 38px;
}

.page-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-body > section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

.checklist-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  counter-reset: origin-step;
}

.checklist-list li {
  position: relative;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  counter-increment: origin-step;
}

.checklist-list li::before {
  content: counter(origin-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  font-feature-settings: "tnum";
}

.checklist-list li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.media-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.media-figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.media-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.principle-item {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.principle-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.principle-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.principle-counter {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  color: var(--muted);
}

.change-list {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.change-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.change-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.change-list p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. pages · 选题与整理方法
   -------------------------------------------------------------------------- */

.flow-section,
.fields-section,
.rework-section,
.checklist-section,
.section-block {
  margin-top: 8px;
}

.flow-section > h2,
.fields-section > h2,
.rework-section > h2,
.checklist-section > h2,
.section-block > h2,
.journal-records > h2,
.journal-ongoing > h2,
.journal-rhythm > h2,
.notes-faq > h2,
.notes-mistakes > h2,
.notes-check > h2,
.term-index > h2,
.term-confuse > h2,
.term-maintain > h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.flow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
}

.flow-step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border-radius: 2px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-cond {
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.6;
}

.step-body > p:last-child {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.flow-figure {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.flow-figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.flow-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fields-section {
  margin-top: 38px;
}

.field-table {
  min-width: 640px;
}

.rework-section {
  margin-top: 38px;
}

.rework-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rework-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper);
}

.rework-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.rework-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.checklist-section {
  margin-top: 38px;
}

.checklist {
  display: grid;
  gap: 10px;
  counter-reset: method-check;
}

.checklist li {
  position: relative;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  counter-increment: method-check;
}

.checklist li::before {
  content: counter(method-check);
  position: absolute;
  left: 14px;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  line-height: 18px;
  font-feature-settings: "tnum";
}

/* --------------------------------------------------------------------------
   4. pages · 系列目录
   -------------------------------------------------------------------------- */

.anchor-bar {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.anchor-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0;
}

.anchor-bar a {
  display: inline-block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.anchor-bar a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.section-block + .section-block {
  margin-top: 40px;
}

.entry-table {
  min-width: 760px;
}

.relation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.relation-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.relation-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.relation-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.section-block .cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-block .cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.section-block .cover-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.cover-figure {
  background: var(--paper);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}

.cover-body {
  padding: 12px 14px 14px;
}

.cover-body h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.cover-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--muted);
}

.cover-order {
  font-size: 12.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.cover-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.cover-link:hover {
  border-bottom-color: var(--teal);
}

.unit-item {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
}

.unit-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.unit-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. pages · 题材术语索引
   -------------------------------------------------------------------------- */

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.term-article {
  min-width: 0;
  max-width: var(--body-wide);
}

.term-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.term-figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.term-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.term-index .term-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.term-index .term-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
}

.term-index .term-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.term-scope {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 4px;
}

.term-near {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.term-confuse,
.term-maintain {
  margin-top: 38px;
}

.confuse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.confuse-pair {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.confuse-pair h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.confuse-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.confuse-side {
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.maintain-list {
  display: grid;
  gap: 12px;
}

.maintain-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.maintain-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.maintain-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.side-notes {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.side-block {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.side-block h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.side-links li + li {
  margin-top: 6px;
}

.side-links a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.side-links a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   4. pages · 阅读说明
   -------------------------------------------------------------------------- */

.notes-faq {
  max-width: var(--body-wide);
}

.notes-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.notes-figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.notes-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 44px 12px 16px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.faq-body {
  padding: 14px 16px;
}

.faq-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-body p + p {
  margin-top: 8px;
}

.notes-mistakes,
.notes-check {
  margin-top: 38px;
}

.mistake-list {
  display: grid;
  gap: 12px;
}

.mistake-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.mistake-wrong,
.mistake-right {
  min-width: 0;
  padding: 14px 16px;
}

.mistake-wrong {
  border-right: 1px solid var(--line);
  background: #FCF4F1;
}

.mistake-right {
  background: #F1F8F6;
}

.mistake-item h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.mistake-wrong h3 {
  color: var(--orange);
}

.mistake-right h3 {
  color: var(--teal);
}

.mistake-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.notes-check > p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.check-links {
  display: grid;
  gap: 10px;
}

.check-links li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 14px;
}

.check-links a {
  color: var(--teal);
  font-weight: 600;
}

.check-links span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. pages · 近期动态
   -------------------------------------------------------------------------- */

.journal-records {
  max-width: 900px;
}

.journal-records .record-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.journal-records .record-item:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.journal-records .record-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.journal-records .record-date time {
  display: block;
}

.record-body {
  min-width: 0;
}

.record-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.journal-records .record-field {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 2px;
}

.journal-records .record-basis {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.record-media {
  display: block;
  padding: 16px 0;
}

.record-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.record-figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.record-figure figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.journal-ongoing,
.journal-rhythm {
  margin-top: 38px;
  max-width: 900px;
}

.ongoing-list {
  display: grid;
  gap: 12px;
}

.ongoing-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.ongoing-name {
  font-size: 15px;
}

.ongoing-progress {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.ongoing-next {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.rhythm-block {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.rhythm-block h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.rhythm-block p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-block {
  max-width: 640px;
  padding: 56px 0 0;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

.error-block h1 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}

.error-tips {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.error-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.error-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--teal);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .head-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .home-main,
  .inner-main {
    padding: 0 16px 40px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 0 32px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .path-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .path-media img {
    aspect-ratio: 16 / 10;
  }

  .cover-grid,
  .section-block .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pitfall-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .journal-brief .record-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .journal-brief .record-basis {
    grid-column: 2;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-toc {
    position: static;
    order: -1;
  }

  .page-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .page-toc a {
    border-left: 0;
    padding-left: 0;
    border-bottom: 2px solid transparent;
  }

  .page-toc a:hover {
    border-bottom-color: var(--teal);
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-article {
    max-width: none;
  }

  .side-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mistake-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .mistake-wrong {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ongoing-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 16px 16px;
  }

  .foot-bottom {
    padding: 12px 16px 24px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14.5px;
  }

  .brand {
    font-size: 17px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12.5px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-head {
    padding: 10px 0 20px;
    margin-bottom: 20px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .sec-head h2,
  .page-body h2,
  .flow-section > h2,
  .fields-section > h2,
  .rework-section > h2,
  .checklist-section > h2,
  .section-block > h2,
  .journal-records > h2,
  .journal-ongoing > h2,
  .journal-rhythm > h2,
  .notes-faq > h2,
  .notes-mistakes > h2,
  .notes-check > h2,
  .term-index > h2,
  .term-confuse > h2,
  .term-maintain > h2 {
    font-size: 18px;
  }

  .path,
  .data-grid,
  .series-entry,
  .terms-brief,
  .pitfalls,
  .journal-brief {
    padding: 30px 0;
  }

  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-value .num {
    font-size: 24px;
  }

  .bar-row {
    grid-template-columns: 76px minmax(0, 1fr) 62px;
    gap: 8px;
  }

  .bar-label {
    font-size: 12.5px;
  }

  .cover-grid,
  .section-block .cover-grid {
    gap: 12px;
  }

  .cover-name,
  .cover-body h3 {
    font-size: 14px;
  }

  .term-index .term-list,
  .terms-brief .term-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .flow-step .step-no {
    width: 28px;
    height: 24px;
  }

  .confuse-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .confuse-side + .confuse-side {
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }

  .side-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .journal-records .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
  }

  .journal-records .record-date {
    font-size: 12.5px;
  }

  .journal-brief .record-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 14px;
  }

  .journal-brief .record-basis {
    grid-column: auto;
  }

  .next-step {
    padding: 18px 16px;
    margin-top: 30px;
  }

  .next-actions .btn,
  .next-links .next-link,
  .next-step-links .next-link,
  .next-primary,
  .next-secondary {
    flex: 1 1 100%;
  }

  .table-scroll table {
    font-size: 13px;
  }

  .table-scroll thead th,
  .table-scroll tbody th,
  .table-scroll tbody td {
    padding: 9px 11px;
  }

  .foot-inner {
    padding: 24px 16px 14px;
  }

  .foot-bottom {
    text-align: left;
  }

  .error-block {
    padding-top: 40px;
  }

  .error-block h1 {
    font-size: 22px;
  }

  .error-actions .btn-primary,
  .error-actions .btn-ghost {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .cover-card:hover,
  .section-block .cover-card:hover {
    transform: none;
  }
}
