/* ==========================================================================
   天美免费观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1b1a18;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #a4402a;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover,
a:focus-visible {
  color: #7f2f1e;
}

:focus-visible {
  outline: 2px solid #a4402a;
  outline-offset: 2px;
}

code,
time,
.entry-no,
.step-no,
.batch-no code,
.node-num,
.ch-code,
.fold-batch {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 页头 --- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e3e0d8;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #1b1a18;
  min-height: 44px;
  justify-content: center;
}

.brand:hover,
.brand:focus-visible {
  color: #1b1a18;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: #5d5a53;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* --- 主导航 --- */

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #1b1a18;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #a4402a;
  border-bottom-color: #a4402a;
}

.site-nav a.is-current {
  color: #a4402a;
  border-bottom-color: #a4402a;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1b1a18;
}

/* --- 主内容 --- */

.site-main {
  display: block;
}

.inner-main {
  padding-bottom: 8px;
}

/* --- 面包屑 --- */

.breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: #5d5a53;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #5d5a53;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #a4402a;
}

.breadcrumb-sep {
  color: #b3aea3;
}

.breadcrumb-current {
  color: #1b1a18;
}

/* --- 页面标题区 --- */

.page-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.page-title {
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  color: #1b1a18;
}

.page-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 24px;
}

.lede {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3833;
  max-width: 78ch;
}

/* --- 页脚 --- */

.site-footer {
  margin-top: 56px;
  background: #f7f5f1;
  border-top: 1px solid #e3e0d8;
  color: #1b1a18;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-col h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1b1a18;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #4a473f;
  font-size: 15px;
}

.footer-col li a:hover,
.footer-col li a:focus-visible {
  color: #a4402a;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.75;
  color: #5d5a53;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e3e0d8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-boundary {
  font-size: 13px;
  color: #5d5a53;
  max-width: 62ch;
}

.footer-copy {
  font-size: 13px;
  color: #5d5a53;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* --- 区块标题 --- */

.section-intro,
.section-note {
  font-size: 15px;
  color: #5d5a53;
  margin-top: 8px;
  max-width: 76ch;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #23473f;
  font-weight: 700;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #23473f;
  font-weight: 700;
  text-transform: uppercase;
}

.site-main h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #1b1a18;
  margin-top: 36px;
}

.site-main h2:first-child {
  margin-top: 0;
}

.site-main h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #1b1a18;
}

.site-main section:first-child > h2,
.site-main .page-head + section h2 {
  margin-top: 0;
}

/* --- 结论条 --- */

.takeaway {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fbf3ee;
  border-left: 3px solid #a4402a;
  font-size: 15px;
  line-height: 1.7;
  color: #1b1a18;
}

.takeaway p + p {
  margin-top: 6px;
}

.takeaway a {
  color: #a4402a;
  text-decoration: underline;
}

/* --- 按钮 --- */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #a4402a;
}

.btn-primary {
  background: #a4402a;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #7f2f1e;
  color: #ffffff;
  border-color: #7f2f1e;
}

.btn-ghost {
  background: #ffffff;
  color: #a4402a;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fbf3ee;
  color: #7f2f1e;
}

/* --- 箭头链接 --- */

.link-arrow,
.task-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: #a4402a;
}

.link-arrow::after,
.task-link::after {
  content: "→";
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  transition: transform 120ms ease;
}

.link-arrow:hover::after,
.task-link:hover::after {
  transform: translateX(3px);
}

/* --- 表格 --- */

.table-scroll {
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

table.cmp caption {
  text-align: left;
}

table.cmp thead th {
  background: #f7f5f1;
  color: #23473f;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e0d8;
  white-space: nowrap;
}

table.cmp tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e3e0d8;
  vertical-align: top;
  line-height: 1.65;
}

table.cmp tbody tr:last-child td {
  border-bottom: 0;
}

table.cmp tbody tr:hover {
  background: #f7f5f1;
}

table.cmp td:first-child {
  font-weight: 700;
  color: #1b1a18;
}

table.cmp a {
  color: #a4402a;
  text-decoration: underline;
}

.table-note,
.cmp-note {
  margin-top: 12px;
  font-size: 14px;
  color: #5d5a53;
  line-height: 1.7;
  max-width: 78ch;
}

.cmp-note + .cmp-note {
  margin-top: 6px;
}

/* --- 频道标签条 --- */

.tag-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

a.tag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  background: #f7f5f1;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  color: #1b1a18;
}

a.tag:hover,
a.tag:focus-visible {
  background: #fbf3ee;
  border-color: #a4402a;
  color: #a4402a;
}

.tag-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.tag-desc {
  font-size: 12px;
  color: #5d5a53;
  line-height: 1.4;
}

a.tag:hover .tag-desc {
  color: #a4402a;
}

/* --- 编号条目 --- */

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid #e3e0d8;
}

.entry {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid #e3e0d8;
  align-items: start;
}

.entry-no {
  grid-row: 1 / span 2;
  font-size: 13px;
  color: #23473f;
  font-weight: 700;
  padding-top: 3px;
}

.entry-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.entry-title a {
  color: #1b1a18;
}

.entry-title a:hover,
.entry-title a:focus-visible {
  color: #a4402a;
}

.entry-meta {
  font-size: 14px;
  color: #5d5a53;
  line-height: 1.7;
}

/* --- 准备清单 --- */

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: #1b1a18;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #23473f;
  border-radius: 2px;
}

/* --- 折叠块 --- */

.fold {
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
  margin-top: 12px;
}

.fold summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #1b1a18;
  background: #f7f5f1;
  border-radius: 6px;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #a4402a;
}

.fold[open] summary::after {
  content: "－";
}

.fold[open] summary {
  border-bottom: 1px solid #e3e0d8;
  border-radius: 6px 6px 0 0;
}

.fold-body {
  padding: 16px;
}

.fold-body h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.fold-body h3:first-child {
  margin-top: 0;
}

.fold-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
}

.fold-body ol {
  margin-top: 8px;
  padding-left: 20px;
  list-style: decimal;
}

.fold-body ol li {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
  margin-bottom: 4px;
}

/* --- 任务卡 --- */

.task-grid,
.task-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
}

.task-card h3 {
  font-size: 17px;
}

.task-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3833;
  flex: 1 1 auto;
}

.task-card .link-arrow,
.task-card .task-link {
  align-self: flex-start;
}

/* --- 图注 --- */

.figure-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #5d5a53;
}

/* --- 图片容器统一约束 --- */

.hero-figure,
.focus-figure,
.basis-figure,
.batch-figure,
figure.figure,
.sample-media figure {
  margin: 0;
}

.hero-figure img,
.focus-figure img,
.basis-figure img,
.batch-figure img,
figure.figure img,
.sample-media figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e3e0d8;
  background: #f7f5f1;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页
   -------------------------------------------------------------------------- */

/* --- 首屏 --- */

.hero {
  padding: 40px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(28px, 4.8vw, 40px);
  font-weight: 700;
  line-height: 1.26;
  color: #1b1a18;
  margin-top: 10px;
}

.hero-copy .lede {
  margin-top: 14px;
  font-size: 17px;
  color: #3a3833;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e3e0d8;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3833;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: #a4402a;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.checklist-block {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f7f5f1;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
}

.checklist-title {
  font-size: 17px;
  font-weight: 700;
  color: #1b1a18;
  margin-top: 0;
}

/* --- 快速分类 --- */

.quick-cats {
  padding: 40px 0 8px;
  border-top: 1px solid #e3e0d8;
  margin-top: 40px;
}

.quick-cats h2 {
  margin-top: 0;
}

/* --- 频道对照表区块 --- */

.cmp-section {
  padding: 40px 0 8px;
  border-top: 1px solid #e3e0d8;
  margin-top: 40px;
}

.cmp-section h2 {
  margin-top: 0;
}

/* --- 焦点内容 --- */

.focus {
  padding: 40px 0 8px;
  border-top: 1px solid #e3e0d8;
  margin-top: 40px;
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.focus-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.focus-copy h2 {
  margin-top: 8px;
}

.focus-copy p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
}

.focus-copy .link-arrow {
  margin-top: 10px;
}

/* --- 最新条目 --- */

.latest {
  padding: 40px 0 8px;
  border-top: 1px solid #e3e0d8;
  margin-top: 40px;
}

.latest h2 {
  margin-top: 0;
}

/* --- 帮助入口 --- */

.help {
  padding: 40px 0 8px;
  border-top: 1px solid #e3e0d8;
  margin-top: 40px;
}

.help h2 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   5. pages —— 内页
   -------------------------------------------------------------------------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.section > h2:first-child {
  margin-top: 0;
}

.section + .section {
  border-top: 1px solid #e3e0d8;
  margin-top: 28px;
  padding-top: 28px;
}

/* --- 快速开始 --- */

.steps {
  padding-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid #e3e0d8;
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-no {
  grid-row: 1 / span 3;
  font-size: 13px;
  font-weight: 700;
  color: #23473f;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
  max-width: 72ch;
}

.step-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.step-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3833;
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1.5px;
  background: #23473f;
}

.section .figure {
  margin-top: 22px;
}

.section .figure img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

.miss-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.miss-list li {
  padding: 14px 18px;
  background: #f7f5f1;
  border-left: 3px solid #23473f;
  font-size: 15px;
  line-height: 1.7;
  color: #1b1a18;
}

.next-actions {
  margin-top: 32px;
}

/* --- 频道对照 --- */

.sort-bar {
  margin-top: 24px;
  padding: 16px 18px;
  background: #f7f5f1;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.sort-bar p {
  font-size: 14px;
  color: #5d5a53;
  flex: 1 1 220px;
  min-width: 0;
}

.sort-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sort-control label {
  font-size: 14px;
  font-weight: 700;
  color: #1b1a18;
}

.sort-control select {
  min-height: 44px;
  min-width: 190px;
  padding: 0 12px;
  font-size: 15px;
  color: #1b1a18;
  background: #ffffff;
  border: 1px solid #c9c4b8;
  border-radius: 6px;
}

.sort-hint {
  font-size: 13px;
  color: #5d5a53;
  flex-basis: 100%;
}

.col-note-section {
  margin-top: 32px;
}

.col-note-section > p {
  font-size: 15px;
  color: #3a3833;
  margin-top: 8px;
  max-width: 78ch;
}

.col-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.col-note {
  padding: 18px;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
}

.col-note h3 {
  font-size: 16px;
  color: #23473f;
  margin-bottom: 6px;
}

.col-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3833;
}

.col-note-warn {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e3e0d8;
  color: #5d5a53;
  font-size: 13px;
}

.col-note-warn::before {
  content: "不要误读：";
  font-weight: 700;
  color: #a4402a;
}

.basis-section {
  margin-top: 32px;
}

.basis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.basis-text h3 {
  font-size: 16px;
  margin-top: 18px;
}

.basis-text h3:first-child {
  margin-top: 0;
}

.basis-text p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
}

.basis-text p a {
  color: #a4402a;
  text-decoration: underline;
}

.basis-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.next-section {
  margin-top: 32px;
}

.next-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid #e3e0d8;
}

.next-list li {
  border-bottom: 1px solid #e3e0d8;
}

.next-list li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  color: #a4402a;
  padding: 4px 0;
}

.next-list li a:hover,
.next-list li a:focus-visible {
  color: #7f2f1e;
}

.next-list li a::after {
  content: "→";
  margin-left: auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* --- 专题样例 --- */

.sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #e3e0d8;
}

.sample:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.sample:first-of-type {
  padding-top: 8px;
}

.sample-media {
  min-width: 0;
}

.sample-media figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.sample-body {
  min-width: 0;
}

.sample-body .entry-no {
  font-size: 13px;
  font-weight: 700;
  color: #23473f;
  letter-spacing: 0.04em;
}

.sample-body h3 {
  font-size: 19px;
  margin-top: 4px;
}

.sample-body > p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
  max-width: 74ch;
}

.sample-body > p a {
  color: #a4402a;
  text-decoration: underline;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e3e0d8;
}

.field-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3833;
}

.field-list .field-name {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #23473f;
  font-weight: 700;
  margin-bottom: 2px;
}

.limit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.limit-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3833;
}

.limit-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 700;
  color: #a4402a;
}

.next-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e3e0d8;
}

.next-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}

.next-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: #a4402a;
}

.next-links li a:hover,
.next-links li a:focus-visible {
  color: #7f2f1e;
}

/* --- 内容日志 --- */

.batch-section {
  padding-top: 8px;
}

.batch {
  margin-top: 16px;
  padding: 20px 20px 20px 22px;
  background: #fbf3ee;
  border-left: 3px solid #a4402a;
  border-radius: 0 6px 6px 0;
}

.batch-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e0d8;
}

.batch-meta p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #3a3833;
  min-width: 0;
}

.label-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #23473f;
}

.batch-no code {
  font-size: 15px;
  font-weight: 700;
  color: #1b1a18;
}

.batch-date time {
  font-size: 14px;
  color: #1b1a18;
}

.batch-scope {
  word-break: break-word;
}

.batch-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.batch-items li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e3e0d8;
  align-items: start;
}

.batch-items li:last-child {
  border-bottom: 0;
}

.change-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #23473f;
  background: #ffffff;
  border: 1px solid #c9c4b8;
  border-radius: 4px;
  white-space: nowrap;
}

.batch-items li p {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3833;
}

.batch-figure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3e0d8;
}

.batch-figure img {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

.fold-batch {
  font-size: 13px;
  font-weight: 700;
  color: #23473f;
}

.fold summary time {
  font-size: 13px;
  font-weight: 400;
  color: #5d5a53;
}

.fold-summary {
  font-weight: 400;
  color: #3a3833;
  font-size: 14px;
  flex-basis: 100%;
}

.fold .batch-items {
  padding: 4px 16px 12px;
  margin-top: 0;
}

.verify-section {
  margin-top: 32px;
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.verify-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
}

.verify-text p + p {
  margin-top: 10px;
}

.verify-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #f7f5f1;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
}

.verify-links .task-link {
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid #e3e0d8;
  padding-bottom: 8px;
}

.verify-links .task-link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* --- 排查手册 --- */

.section-flow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 0;
}

.flow-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.node {
  padding: 18px;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
}

.node-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #a4402a;
  margin-bottom: 6px;
}

.node h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.node p {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3833;
}

.section-flow .figure {
  margin-top: 24px;
}

.section-flow .figure img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

.section-cases {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  border-top: 1px solid #e3e0d8;
  margin-top: 32px;
  padding-top: 32px;
}

.section-cases .fold {
  margin-top: 14px;
}

.section-cases .fold summary {
  font-weight: 700;
}

.section-stop {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  border-top: 1px solid #e3e0d8;
  margin-top: 32px;
}

.stop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.stop-text h3,
.stop-list h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.stop-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3833;
}

.stop-text p + p {
  margin-top: 10px;
}

.stop-list {
  padding: 18px;
  background: #f7f5f1;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
}

.section-next {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  border-top: 1px solid #e3e0d8;
  margin-top: 32px;
}

/* --- 标注说明 --- */

.misread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.misread {
  padding: 18px;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  background: #ffffff;
}

.misread h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #1b1a18;
}

.misread p {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3833;
}

.misread p + p {
  margin-top: 8px;
}

.misread p strong {
  color: #a4402a;
}

/* --------------------------------------------------------------------------
   6. pages —— 404
   -------------------------------------------------------------------------- */

.error-main {
  min-height: 52vh;
}

.error-inner {
  padding-top: 56px;
  padding-bottom: 32px;
}

.error-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #23473f;
}

.error-inner h1 {
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
}

.error-inner .lede {
  margin-top: 12px;
}

.error-next {
  margin-top: 28px;
}

.error-next h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
}

.error-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #e3e0d8;
  max-width: 560px;
}

.error-links li {
  border-bottom: 1px solid #e3e0d8;
}

.error-links li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  color: #a4402a;
}

.error-links li a::after {
  content: "→";
  margin-left: auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.error-back {
  margin-top: 28px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #a4402a;
  border: 1px solid #a4402a;
  border-radius: 6px;
}

.error-home:hover,
.error-home:focus-visible {
  background: #7f2f1e;
  border-color: #7f2f1e;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid,
  .focus-grid,
  .basis-grid,
  .verify-grid,
  .stop-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure img,
  .focus-figure img,
  .basis-figure img {
    aspect-ratio: 16 / 9;
  }

  .col-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 18px;
  }

  .header-inner {
    gap: 12px;
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    display: block;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
    border-top: 1px solid #e3e0d8;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid #e3e0d8;
  }

  .site-nav a.is-current {
    border-bottom-color: #a4402a;
  }

  .breadcrumb {
    padding: 14px 18px 0;
    font-size: 13px;
  }

  .page-header {
    padding: 24px 18px 0;
  }

  .page-head {
    padding: 10px 18px 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
  }

  .tag-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  a.tag {
    min-height: 56px;
  }

  .task-grid,
  .task-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .entry {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 14px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding: 20px 0;
  }

  .step-no {
    grid-row: auto;
    padding-top: 0;
  }

  .col-note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-nodes {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .misread-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch {
    padding: 16px 14px 16px 16px;
  }

  .batch-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .batch-items li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .change-type {
    justify-self: start;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .sort-bar {
    padding: 14px;
  }

  .sort-control {
    width: 100%;
  }

  .sort-control select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .section,
  .section-flow,
  .section-cases,
  .section-stop,
  .section-next {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .page-title {
    font-size: clamp(22px, 6.6vw, 26px);
  }

  .site-main h2 {
    font-size: 19px;
  }

  .site-main h3 {
    font-size: 16px;
  }

  .hero-copy .lede {
    font-size: 16px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    flex: 1 1 100%;
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .entry-no {
    grid-row: auto;
    padding-top: 0;
  }

  .task-card,
  .col-note,
  .node,
  .misread {
    padding: 16px;
  }

  .takeaway {
    padding: 12px 14px;
  }

  .footer-inner {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
