/* ==========================================================================
   base
   ========================================================================== */

:root {
  --ink: #12212b;
  --ink-soft: #3c4d59;
  --teal-deep: #123a4d;
  --teal: #1f7a8c;
  --teal-light: #2f96a8;
  --bg: #eef2f5;
  --paper: #ffffff;
  --line: #d3dce3;
  --line-strong: #b6c3cd;
  --muted: #8b98a4;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(18, 33, 43, 0.06), 0 6px 18px rgba(18, 33, 43, 0.05);
  --font-base: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --w-page: 1120px;
  --w-narrow: 780px;
  --w-mid: 900px;
  --w-wide: 1000px;
  --pad-x: 24px;
  --gap-section: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  color: var(--ink);
}

dd {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  text-align: left;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: #f4f7f9;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--gap-section);
}

/* 页头 ---------------------------------------------------------------- */

.site-header {
  background: var(--teal-deep);
  color: #eaf2f6;
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  color: #f4fafd;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

/* 导航 ---------------------------------------------------------------- */

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-group {
  position: relative;
  padding: 8px 0 10px;
}

.nav-group-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #7fa3b3;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.nav-group ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-group ul a {
  display: inline-block;
  color: #d5e4ec;
  font-size: 14px;
  padding: 4px 2px;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
}

.nav-group ul a:hover {
  color: #ffffff;
  border-bottom-color: var(--teal-light);
}

.nav-group ul a.is-current {
  color: #ffffff;
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 3px;
  border-bottom-color: transparent;
}

.nav-group.is-current .nav-group-label {
  color: #cfe6ef;
  font-weight: 600;
}

.nav-group.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--teal-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #eaf2f6;
}

/* 面包屑 -------------------------------------------------------------- */

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 ---------------------------------------------------------- */

.page-header {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* 页脚 ---------------------------------------------------------------- */

.site-footer {
  background: #0e1e27;
  color: #b9c8d2;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 48px var(--pad-x) 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  color: #f4fafd;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.footer-tagline {
  color: #cfe0e9;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-note {
  color: #7f96a4;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.footer-col-title {
  color: #f4fafd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: #b9c8d2;
  font-size: 14px;
  display: inline-block;
  padding: 3px 0;
  min-height: 24px;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 18px var(--pad-x) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #7f96a4;
  font-size: 12px;
  margin: 0;
}

.footer-bottom a {
  color: #b9c8d2;
  font-size: 12px;
  padding: 6px 0;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--teal);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 区块通用 ------------------------------------------------------------ */

.section {
  padding: var(--gap-section) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
  max-width: 780px;
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.section-more {
  margin-top: 20px;
  font-size: 14px;
}

.section-more a {
  font-weight: 500;
}

.section-more a::after {
  content: " →";
  color: var(--teal);
}

/* 编号徽章（等宽） ---------------------------------------------------- */

.stage-strip .num,
.matrix-num,
.flow-list .num,
.coop-steps .num,
.stage-badge,
.group-num,
.entry-index,
.path-index,
.scenario-num,
.step-badge {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* 标签 ---------------------------------------------------------------- */

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.tag {
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  background: #f7fafb;
}

/* 图卡 / 内容图 ------------------------------------------------------- */

.content-figure,
.scenario-figure,
.path-figure,
.flow-visual {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.content-figure img,
.scenario-figure img,
.path-figure img,
.flow-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.content-figure figcaption,
.scenario-figure figcaption,
.path-figure figcaption,
.flow-visual figcaption {
  padding: 10px 14px;
  margin: 0;
  background: #f7fafb;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* 定义列表对照 -------------------------------------------------------- */

.stage-dl,
.scenario-dl,
.duty-list,
.policy-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stage-dl dt,
.scenario-dl dt,
.duty-list dt,
.policy-list dt {
  padding: 12px 14px 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.stage-dl dd,
.scenario-dl dd,
.duty-list dd,
.policy-list dd {
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* 折叠问答（details） ------------------------------------------------ */

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  line-height: 1.55;
  position: relative;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  margin-left: auto;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

details[open] summary::after {
  content: "−";
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f7fafb;
}

.faq-answer,
.qa-body {
  padding: 14px 18px 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.faq-answer p,
.qa-body p {
  margin-bottom: 10px;
}

.faq-answer p:last-child,
.qa-body p:last-child {
  margin-bottom: 0;
}

.qa-block {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.qa-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-block:first-child {
  padding-top: 0;
}

.qa-block dt {
  font-size: 13px;
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.qa-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

/* 相关链接列表 -------------------------------------------------------- */

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.related-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.related-list a {
  font-weight: 500;
  font-size: 15px;
}

.related-list a::after {
  content: " →";
  color: var(--teal);
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 页底相关链接（insight / scenarios） --------------------------------- */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.related-links-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.related-links-item {
  color: var(--teal);
  font-weight: 500;
  padding: 4px 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* 首屏 ---------------------------------------------------------------- */

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 48px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-visual figcaption {
  padding: 10px 14px;
  margin: 0;
  background: #f7fafb;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* 环节编号条 ---------------------------------------------------------- */

.stage-strip {
  background: var(--teal-deep);
  color: #d5e4ec;
}

.stage-strip-list {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stage-strip-list li {
  padding: 14px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 44px;
}

.stage-strip-list li:last-child {
  border-right: none;
}

.stage-strip-list .num {
  color: var(--teal-light);
  font-size: 12px;
  flex: 0 0 auto;
}

/* 首页区块统一容器 ---------------------------------------------------- */

.home-main .section {
  max-width: var(--w-page);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.home-main .section:first-of-type {
  border-top: none;
}

/* 服务矩阵 ------------------------------------------------------------ */

.matrix-list {
  border-top: 1px solid var(--line);
}

.matrix-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr) minmax(0, 240px);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.matrix-num {
  font-size: 14px;
  color: var(--teal);
  padding-top: 3px;
}

.matrix-title {
  font-size: 17px;
  margin: 0;
}

.matrix-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.matrix-row .tag-group {
  justify-content: flex-start;
}

/* 交付流程与职责 ------------------------------------------------------ */

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.flow-steps h3,
.flow-duties h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--ink);
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.flow-list .num {
  font-size: 13px;
  color: var(--teal);
  flex: 0 0 auto;
  min-width: 28px;
}

.duty-list {
  grid-template-columns: 88px 1fr;
}

/* 场景摘要 ------------------------------------------------------------ */

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.scenario-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scenario-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.scenario-card figcaption {
  padding: 10px 16px;
  margin: 0;
  background: #f7fafb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.scenario-card p {
  padding: 14px 16px 16px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

/* 售后支持入口 -------------------------------------------------------- */

.aftercare-body {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.category-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-tab {
  display: block;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
  line-height: 1.5;
}

.category-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.faq-preview details:last-child {
  margin-bottom: 0;
}

/* 技术资料索引预览 ---------------------------------------------------- */

.resource-rows {
  border-top: 1px solid var(--line);
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.resource-row h3 {
  font-size: 16px;
  margin: 0;
}

.resource-row p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.resource-row a {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.resource-row a::after {
  content: " →";
}

/* 技术观察摘要 -------------------------------------------------------- */

.insight-list {
  border-top: 1px solid var(--line);
}

.insight-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.insight-item h3 {
  font-size: 16px;
  margin: 0;
}

.insight-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.insight-item a {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.insight-item a::after {
  content: " →";
}

/* 合作对接 ------------------------------------------------------------ */

.coop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.coop-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  min-height: 88px;
}

.coop-steps .num {
  font-size: 13px;
  color: var(--teal);
}

.coop-tags {
  margin-bottom: 4px;
}

/* ==========================================================================
   pages — 内页通用
   ========================================================================== */

/* 内页导语区（service / scenarios / resources / insight / cooperation / aftercare） */

.page-head,
.page-intro,
.page-shell .page-head {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-head-inner {
  max-width: 100%;
}

.page-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 10px;
}

.page-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0;
}

.page-layout {
  width: 100%;
}

.page-layout.content-narrow {
  max-width: var(--w-narrow);
  margin: 0 auto;
}

.content-main {
  min-width: 0;
}

/* 章节通用 ------------------------------------------------------------ */

.section-intro,
.section-note,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 100%;
}

.stage-section h2,
.duty-section h2,
.check-section h2,
.related-section h2,
.problem-group h2,
.troubleshoot-sample h2,
.service-policy h2,
.related-pages h2,
.compare h2,
.related h2,
.insight-paths h2,
.insight-list h2,
.cross-reading h2,
.mapping-section h2,
.precheck-section h2,
.intro-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.stage-section,
.duty-section,
.check-section,
.related-section,
.problem-group,
.troubleshoot-sample,
.service-policy,
.related-pages,
.compare,
.related,
.insight-paths,
.insight-list,
.cross-reading,
.mapping-section,
.precheck-section,
.intro-section {
  margin-bottom: 40px;
}

/* ==========================================================================
   pages — service.html
   ========================================================================== */

.stage-article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.stage-article:first-of-type {
  padding-top: 16px;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: #f0f7f9;
  flex: 0 0 auto;
}

.stage-head h3 {
  font-size: 18px;
  margin: 0;
}

.stage-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.stage-dl {
  margin-top: 4px;
}

.duty-section {
  margin-top: 8px;
}

.duty-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.duty-table thead th:first-child {
  width: 160px;
}

.duty-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  background: #f7fafb;
  font-size: 14px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.check-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--teal);
  border-radius: 2px;
}

/* ==========================================================================
   pages — aftercare.html
   ========================================================================== */

.page-container {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
}

.layout-shell {
  display: grid;
  gap: 32px;
  align-items: start;
}

.sidebar-left .layout-shell,
.layout-shell.sidebar-left {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.layout-shell:not(.sidebar-left) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
}

.page-container.layout-shell.sidebar-left {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  display: grid;
  padding: 0 var(--pad-x);
}

.side-index {
  position: sticky;
  top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.side-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-index-title {
  font-size: 14px;
  margin: 0;
  color: var(--ink);
}

.side-index-arrows {
  display: flex;
  gap: 4px;
}

.side-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #f7fafb;
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
  padding: 0;
  position: relative;
}

.side-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.side-arrow::before {
  content: "‹";
  font-family: var(--font-mono);
  font-size: 16px;
}

.side-arrow[aria-label*="右"]::before,
.side-arrow[aria-label*="向右"]::before {
  content: "›";
}

.side-index-scroll {
  max-height: 60vh;
  overflow-y: auto;
}

.side-group {
  margin-bottom: 16px;
}

.side-group:last-child {
  margin-bottom: 0;
}

.side-group-title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.side-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-group ul a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 8px;
  border-radius: 3px;
  line-height: 1.5;
  min-height: 36px;
}

.side-group ul a:hover {
  background: #f0f7f9;
  color: var(--teal);
}

.content-column {
  min-width: 0;
}

.problem-group .section-note {
  margin-bottom: 14px;
}

.qa-item summary {
  align-items: flex-start;
}

.qa-body {
  padding: 16px 18px 18px;
}

.qa-block dt {
  font-weight: 500;
}

.qa-block dd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.sample-steps {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.sample-steps li h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--teal-deep);
}

.sample-steps li p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
}

.policy-list {
  margin-bottom: 14px;
}

.policy-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 14px;
  background: #f7fafb;
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   pages — scenarios.html
   ========================================================================== */

.reading-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-bottom: 32px;
}

.reading-note h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--teal-deep);
}

.reading-note p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
}

.scenario {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.scenario h2 {
  font-size: 20px;
  margin: 12px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.scenario-figure {
  margin: 0 0 8px;
}

.scenario-dl {
  margin-top: 4px;
}

.compare {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.compare-table {
  min-width: 640px;
}

.compare-table thead th {
  font-size: 14px;
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  background: #f7fafb;
  font-size: 14px;
  width: 140px;
}

.related {
  margin-top: 8px;
}

.related-desc {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   pages — resources.html
   ========================================================================== */

.page-resources .container,
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.resource-group {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.resource-group:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.group-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.group-num {
  font-size: 14px;
  color: var(--teal);
  grid-row: span 2;
  padding-top: 4px;
}

.group-head h2 {
  font-size: 20px;
  margin: 0;
  grid-column: 2;
}

.group-desc {
  grid-column: 2;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 4px 0 0;
  line-height: 1.7;
}

.resource-list {
  border-top: 1px solid var(--line);
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 160px) minmax(0, 1fr) minmax(0, 220px);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.resource-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

.resource-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 9px;
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  background: #f0f7f9;
  border-radius: 3px;
  white-space: nowrap;
}

.resource-body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.resource-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.mapping-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mapping-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  background: #f7fafb;
  font-size: 14px;
  width: 180px;
}

.precheck-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.precheck-list li {
  padding: 12px 0 12px 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.precheck-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--teal);
  font-size: 13px;
}

/* ==========================================================================
   pages — insight.html
   ========================================================================== */

.insight-paths {
  margin-bottom: 40px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.path-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-index {
  font-size: 13px;
  color: var(--teal);
}

.path-title {
  font-size: 16px;
  margin: 0;
}

.path-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

.path-figure {
  margin: 0;
}

.insight-list .section-lead {
  margin-bottom: 20px;
}

.insight-entry {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.insight-entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

.entry-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.entry-index {
  font-size: 13px;
  color: var(--teal);
  flex: 0 0 auto;
}

.entry-title {
  font-size: 17px;
  margin: 0;
  line-height: 1.5;
}

.entry-body {
  min-width: 0;
}

.entry-scope,
.entry-question {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.entry-question {
  margin-bottom: 0;
}

.field-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cross-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.cross-item a {
  font-weight: 500;
  font-size: 15px;
}

.cross-item a::after {
  content: " →";
  color: var(--teal);
}

.cross-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   pages — cooperation.html
   ========================================================================== */

.page-shell {
  width: 100%;
  max-width: var(--w-mid);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.section-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.flow-visual {
  margin: 0 0 24px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: #f0f7f9;
  flex: 0 0 auto;
}

.flow-step-head h3 {
  font-size: 17px;
  margin: 0;
}

.flow-step-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.flow-field h4 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.flow-field ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-field ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.flow-field ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 1px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.checklist-grid li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.checklist-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--teal);
  border-radius: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.faq-link::after {
  content: " →";
}

.related-block {
  padding-bottom: 8px;
}

/* ==========================================================================
   pages — 404.html
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--pad-x);
  min-height: 60vh;
}

.error-panel {
  max-width: 640px;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 12px;
}

.error-title {
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.35;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 22px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.error-links li {
  margin: 0;
}

.error-links a {
  display: inline-block;
  padding: 9px 16px;
  min-height: 44px;
  line-height: 1.6;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink);
  background: #f7fafb;
}

.error-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.error-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .matrix-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "num title"
      "num desc"
      "num tags";
    gap: 6px 16px;
  }

  .matrix-num {
    grid-area: num;
    padding-top: 2px;
  }

  .matrix-title {
    grid-area: title;
  }

  .matrix-desc {
    grid-area: desc;
  }

  .matrix-row .tag-group {
    grid-area: tags;
    margin-top: 6px;
  }

  .aftercare-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
  }

  .category-tab {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .resource-row,
  .insight-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title link"
      "desc desc";
    gap: 6px 16px;
  }

  .resource-row h3,
  .insight-item h3 {
    grid-area: title;
  }

  .resource-row p,
  .insight-item p {
    grid-area: desc;
  }

  .resource-row a,
  .insight-item a {
    grid-area: link;
    justify-self: end;
  }

  .coop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-container.layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    padding: 0 var(--pad-x);
  }

  .sidebar-left .layout-shell,
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
  }

  .side-index-scroll {
    max-height: none;
    overflow: visible;
  }

  .side-group ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .side-group ul a {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 13px;
    min-height: 36px;
  }

  .resource-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0;
  }

  .resource-item .resource-stage {
    margin-bottom: 4px;
  }

  .resource-item .resource-body,
  .resource-item .resource-note {
    font-size: 14px;
  }

  .resource-item .resource-note::before {
    content: "查阅注意：";
    color: var(--teal);
    font-weight: 500;
    margin-right: 4px;
  }

  .path-list {
    grid-template-columns: 1fr;
  }

  .insight-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-step-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .check-list,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --pad-x: 16px;
    --gap-section: 36px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 56px;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 var(--pad-x);
  }

  .brand {
    font-size: 17px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding-bottom: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-group {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-group:last-child {
    border-bottom: none;
  }

  .nav-group.is-current::before {
    display: none;
  }

  .nav-group ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-group ul a {
    display: block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-group ul a.is-current {
    padding: 10px 12px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-header {
    padding: 14px 0 16px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 130px;
  }

  .stage-strip-list {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 var(--pad-x);
  }

  .stage-strip-list li {
    flex: 0 0 auto;
    padding: 12px 14px;
    white-space: nowrap;
    font-size: 13px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .scenario-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .coop-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coop-steps li {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .page-lead {
    font-size: 15px;
  }

  .stage-section h2,
  .duty-section h2,
  .check-section h2,
  .related-section h2,
  .problem-group h2,
  .troubleshoot-sample h2,
  .service-policy h2,
  .related-pages h2,
  .compare h2,
  .related h2,
  .insight-paths h2,
  .insight-list h2,
  .cross-reading h2,
  .mapping-section h2,
  .precheck-section h2,
  .intro-section h2 {
    font-size: 19px;
  }

  .stage-article {
    padding: 18px 0;
  }

  .stage-head h3 {
    font-size: 16px;
  }

  .stage-dl,
  .scenario-dl,
  .duty-list,
  .policy-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stage-dl dt,
  .scenario-dl dt,
  .duty-list dt,
  .policy-list dt {
    padding: 10px 0 2px;
    border-bottom: none;
    font-size: 13px;
    color: var(--teal-deep);
  }

  .stage-dl dd,
  .scenario-dl dd,
  .duty-list dd,
  .policy-list dd {
    padding: 0 0 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  .duty-table thead th:first-child {
    width: auto;
  }

  .duty-table,
  .mapping-table,
  .compare-table {
    font-size: 13px;
  }

  .duty-table th,
  .duty-table td,
  .mapping-table th,
  .mapping-table td,
  .compare-table th,
  .compare-table td {
    padding: 10px;
  }

  .scenario {
    padding: 18px;
  }

  .scenario h2 {
    font-size: 17px;
    margin: 10px 0 12px;
  }

  .reading-note {
    padding: 14px 16px;
    margin-bottom: 24px;
  }

  .reading-note h2 {
    font-size: 15px;
  }

  .related-list li {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .related-list a {
    font-size: 15px;
  }

  .related-links {
    gap: 8px 14px;
    padding: 16px 0;
  }

  .group-head {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .group-head h2 {
    font-size: 17px;
  }

  .group-num {
    font-size: 13px;
  }

  .resource-group {
    padding: 20px 0;
  }

  .precheck-list li {
    padding: 10px 0 10px 20px;
    font-size: 14px;
  }

  .precheck-list li::before {
    top: 10px;
  }

  .path-item {
    padding: 14px;
  }

  .entry-title {
    font-size: 16px;
  }

  .entry-scope,
  .entry-question {
    font-size: 14px;
  }

  .flow-step {
    padding: 16px;
  }

  .flow-step-head h3 {
    font-size: 16px;
  }

  .flow-step-body {
    gap: 14px;
  }

  .checklist-grid {
    gap: 8px;
  }

  .checklist-grid li {
    font-size: 14px;
    padding-left: 20px;
  }

  .checklist-grid li::before {
    top: 12px;
  }

  .qa-item summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .qa-body {
    padding: 12px 14px 14px;
  }

  .sample-steps li {
    padding: 14px;
  }

  .sample-steps li h3 {
    font-size: 14px;
  }

  .sample-steps li p {
    font-size: 13px;
  }

  .side-index {
    padding: 14px;
  }

  .side-group ul a {
    min-height: 40px;
    padding: 8px 10px;
  }

  .error-main {
    padding: 36px var(--pad-x);
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 32px var(--pad-x) 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 14px var(--pad-x) 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-col ul a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .category-tabs {
    flex-wrap: nowrap;
  }

  .category-tab {
    flex: 0 0 auto;
    min-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
