/* ==========================================================================
   MR好色 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f4ee;
  --ink: #23211e;
  --brand: #1f3b34;
  --brand-soft: #2c4f46;
  --accent: #b5622a;
  --muted: #6b7f76;
  --line: #ddd6c9;
  --tint: #efe9dd;
  --white: #ffffff;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", system-ui, sans-serif;
  --radius: 6px;
  --shadow-none: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 120;
  padding: 8px 16px;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   layout · 通用容器与骨架
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  padding-bottom: 64px;
}

/* 顶部信息条（首页 / 项目做法页共用视觉） */
.topbar,
.top-bar {
  background: var(--brand);
  color: #e7e2d6;
  font-size: 13px;
  line-height: 1.6;
}

.topbar-inner,
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar-text,
.top-bar-text {
  margin: 0;
  color: #e7e2d6;
}

.topbar-here,
.top-bar-here {
  margin: 0;
  color: #c9b89f;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   components · 页头与导航
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--brand);
  flex-shrink: 0;
}

.brand:hover,
.brand:focus {
  color: var(--brand);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

.brand-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--line);
  transform: translateY(2px);
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-item a:hover,
.nav-item a:focus {
  color: var(--accent);
}

.nav-item.is-current a {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-note {
  display: none;
  margin: 0;
  padding: 16px 4px 4px;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 面包屑与页面标题区
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
}

.page-header {
  padding: 12px 0 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

/* --------------------------------------------------------------------------
   components · 通用区块、标题、链接、按钮
   -------------------------------------------------------------------------- */

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.section-intro {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 760px;
}

.section-note {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.section-title {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.section-more {
  margin-top: 20px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link::after {
  content: "→";
  font-size: 14px;
}

.text-link:hover,
.text-link:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-soft);
  color: var(--white);
  border-color: var(--brand-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--accent);
  border-color: var(--accent);
}

/* 图片容器统一样式 */
figure {
  margin: 0;
}

figure img,
.section-figure img,
.service-figure img,
.content-figure img,
.compare-figure img,
.hero-media img,
.library-media img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint);
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 表格
   -------------------------------------------------------------------------- */

.data-table,
.compare-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table thead th,
.compare-table thead th {
  background: var(--tint);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

.data-table tbody td,
.compare-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}

.data-table tbody tr:last-child td,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even),
.compare-table tbody tr:nth-child(even) {
  background: #fbf9f4;
}

.data-table tbody th,
.compare-table tbody th {
  text-align: left;
  font-weight: 600;
  padding: 11px 14px;
  background: #fbf9f4;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.tag-new {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  color: var(--white);
  background: var(--accent);
  border-radius: 3px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   components · 列表通用
   -------------------------------------------------------------------------- */

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   components · 折叠问答
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
  content: "−";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 4px 18px;
  font-size: 15px;
  color: #3c3a36;
  line-height: 1.85;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  background: var(--brand);
  color: #d8d3c6;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #f2eee4;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #c9c3b4;
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.footer-note {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #b8b2a4;
}

.footer-note p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: #b8b2a4;
}

.footer-brand {
  color: #f2eee4;
  font-weight: 600;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-nav a {
  color: #c9c3b4;
  font-size: 13px;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  color: #a9a294;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #3c3a36;
  max-width: 560px;
}

.hero-lead + .hero-lead {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

/* 需求去向条 */
.need-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.need-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 12px 20px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.18s ease;
}

.need-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.need-row:hover {
  background: var(--tint);
}

.need-row:hover::before {
  opacity: 1;
}

.need-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.need-body {
  min-width: 0;
}

.need-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.need-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.need-link {
  font-size: 14px;
  color: var(--brand);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.need-link::after {
  content: "→";
  margin-left: 4px;
}

.need-link:hover,
.need-link:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 服务矩阵 */
.service-matrix {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.service-index {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.7;
  flex-shrink: 0;
}

.service-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.service-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.service-includes {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.service-includes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 1px;
  opacity: 0.7;
}

/* 四步做法时间线 */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.timeline-step {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step .step-index {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 8px;
}

.timeline-step .step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}

.timeline-step .step-task {
  font-size: 14px;
  color: #3c3a36;
  line-height: 1.7;
}

.timeline-step .step-output {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* 资料目录预览 */
.library-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

.library-media {
  margin: 0;
}

.library-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.library-table-wrap {
  min-width: 0;
}

/* 方案对比入口 */
.compare-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.compare-copy h2 {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.compare-copy h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.compare-copy p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.compare-sample {
  min-width: 0;
}

.compare-mini {
  font-size: 14px;
}

/* 合作方式与准备清单 */
.cooperation-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.cooperation-list h2,
.cooperation-steps h2 {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.cooperation-list h2::before,
.cooperation-steps h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.cooperation-list .section-desc {
  margin-bottom: 18px;
}

.cooperation-steps .step-list {
  display: grid;
  gap: 14px;
  counter-reset: coop-step;
  margin-top: 18px;
}

.cooperation-steps .step-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: coop-step;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.cooperation-steps .step-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cooperation-steps .step-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.75;
}

.cooperation-steps .step-label::before {
  content: counter(coop-step, decimal-leading-zero);
}

/* --------------------------------------------------------------------------
   pages · 内页通用外壳
   -------------------------------------------------------------------------- */

.page-head {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.page-head-main {
  min-width: 0;
}

.page-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #3c3a36;
  max-width: 720px;
}

.page-meta {
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.meta-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-row dt,
.meta-label {
  font-weight: 600;
  color: var(--muted);
}

.meta-row dd,
.meta-value {
  margin: 0;
  color: var(--ink);
}

.meta-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}

.meta-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* 内页两栏布局：主内容在前、aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
}

.content-main,
.page-main,
.page-primary {
  min-width: 0;
}

.content-side,
.page-aside,
.page-sidebar {
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* 页内锚点条 */
.anchor-bar-wrap {
  padding-top: 20px;
}

.anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.anchor-bar a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.6;
}

.anchor-bar a:hover,
.anchor-bar a:focus {
  color: var(--accent);
  border-color: var(--accent);
}

/* 内页 hero 区 */
.page-hero {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #3c3a36;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   pages · 服务与范围
   -------------------------------------------------------------------------- */

.section-overview {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.overview-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.overview-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
}

.overview-name {
  font-weight: 600;
  color: var(--ink);
}

.overview-desc {
  color: var(--muted);
}

.service-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.service-block .service-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  margin-bottom: 16px;
}

.service-block .service-index {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.7;
}

.service-block .service-head h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.service-summary {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.service-figure {
  margin: 0 0 20px;
}

.service-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-block .service-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.service-block .service-body > p {
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.service-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.compare-col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
}

.compare-col h3,
.compare-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.compare-in h3,
.compare-in h4 {
  color: var(--brand);
}

.compare-out h3,
.compare-out h4 {
  color: var(--muted);
}

.compare-col ul {
  display: grid;
  gap: 6px;
}

.compare-col li {
  position: relative;
  padding-left: 16px;
  color: #3c3a36;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand);
}

.compare-out li::before {
  background: var(--muted);
  opacity: 0.6;
}

.service-output {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.output-label {
  font-weight: 600;
  color: var(--brand);
}

.section-exclusions {
  padding: 36px 0 8px;
}

.exclusion-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.exclusion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
}

.exclusion-case {
  color: #3c3a36;
}

.exclusion-go {
  color: var(--muted);
}

.exclusion-go::before {
  content: "改走：";
  color: var(--accent);
  font-weight: 600;
}

/* 服务页侧栏 */
.side-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 20px;
}

.side-block:last-child {
  margin-bottom: 0;
}

.side-block h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.selfcheck-list {
  display: grid;
  gap: 14px;
}

.selfcheck-item {
  min-width: 0;
}

.selfcheck-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.selfcheck-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  display: block;
  font-size: 14px;
  color: var(--brand);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.side-links a:hover,
.side-links a:focus {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 项目做法
   -------------------------------------------------------------------------- */

.section-tint {
  background: var(--tint);
}

.stage-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.stage-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.stage-index {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.stage-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

.stage-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.stage-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.stage-task,
.stage-role,
.stage-output {
  margin: 0;
}

.stage-role::before,
.stage-output::before {
  font-weight: 600;
  color: var(--brand);
}

.stage-role::before {
  content: "参与角色：";
}

.stage-output::before {
  content: "阶段交付物：";
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.input-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.input-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.input-need,
.input-decide {
  font-size: 14px;
  line-height: 1.75;
  color: #3c3a36;
}

.input-decide {
  margin-top: 8px;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 2px;
}

.section-figure {
  margin: 0;
}

.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}

.deviation-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.deviation-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: #3c3a36;
}

.deviation-case,
.deviation-why,
.deviation-fix {
  margin: 0;
  min-width: 0;
}

.deviation-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 2px;
}

.related-section {
  padding: 40px 0 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.related-item a:hover,
.related-item a:focus {
  border-color: var(--accent);
}

.related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.6;
}

.related-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 资料目录
   -------------------------------------------------------------------------- */

.content-figure {
  margin: 0 0 28px;
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.library-group {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.library-group h2 {
  position: relative;
  padding-left: 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.library-group h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.group-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.usage-block {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-block h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.usage-steps {
  display: grid;
  gap: 8px;
  counter-reset: usage-step;
}

.usage-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c3a36;
  counter-increment: usage-step;
}

.usage-steps li::before {
  content: counter(usage-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.usage-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.pitfall-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.pitfall-block h2 {
  position: relative;
  padding-left: 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.pitfall-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.pitfall-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pitfall-list li {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  min-width: 0;
}

.pitfall-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.6;
}

.pitfall-list p {
  font-size: 14px;
  color: #3c3a36;
  line-height: 1.75;
}

.version-block h2 {
  position: relative;
  padding-left: 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.version-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.version-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.version-rule {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.version-rule h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.version-rule p {
  font-size: 14px;
  color: #3c3a36;
  line-height: 1.75;
}

.aside-block {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-note-list {
  display: grid;
  gap: 14px;
}

.aside-note-list li {
  min-width: 0;
}

.note-lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.note-why {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-link-list {
  display: grid;
  gap: 8px;
}

.aside-link-list a {
  display: block;
  font-size: 14px;
  color: var(--brand);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.aside-link-list a:hover,
.aside-link-list a:focus {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 方案对比
   -------------------------------------------------------------------------- */

.compare-picker {
  padding: 40px 0 32px;
}

.picker-status {
  margin-bottom: 18px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand);
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-item {
  min-width: 0;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.plan-card:hover {
  border-color: var(--brand);
}

.plan-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.plan-head {
  display: block;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.plan-swatches {
  display: block;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #c9c3b4 0%, #c9c3b4 50%, #e7e2d6 50%, #e7e2d6 100%);
}

.plan-colors {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.plan-check:checked ~ .plan-head {
  color: var(--accent);
}

.plan-item:has(.plan-check:checked) .plan-card {
  border-color: var(--accent);
  background: #fdf9f3;
}

.compare-table-section {
  padding: 0 0 40px;
}

.compare-figure {
  margin: 0 0 20px;
}

.compare-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}

.compare-table {
  min-width: 640px;
}

.compare-table tbody th {
  width: 140px;
}

.compare-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.compare-next {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.next-col {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.next-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.next-col p {
  font-size: 14px;
  color: #3c3a36;
  line-height: 1.75;
}

.next-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.next-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.next-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 1px;
  opacity: 0.7;
}

.next-link {
  margin-top: 12px;
  font-size: 14px;
}

.next-link a {
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.next-link a::after {
  content: "→";
  margin-left: 4px;
}

.next-link a:hover,
.next-link a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.related-strip {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.related-strip .related-list {
  margin-top: 18px;
}

.related-strip .related-item a {
  display: block;
  padding: 14px 16px;
}

.related-strip .related-item a .related-desc {
  display: block;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages · 常见问题
   -------------------------------------------------------------------------- */

.page-primary .page-title {
  padding-bottom: 12px;
}

.page-primary .page-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #3c3a36;
  margin-bottom: 8px;
}

.page-primary .page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.faq-cat-nav {
  margin-bottom: 28px;
}

.faq-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-cat-list li {
  min-width: 0;
}

.faq-cat-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.6;
}

.faq-cat-list a:hover,
.faq-cat-list a:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.faq-group {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.faq-group h2 {
  position: relative;
  padding-left: 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-group h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
}

.faq-group .content-figure {
  margin: 16px 0;
}

.faq-group .content-figure img {
  aspect-ratio: 16 / 8;
}

.sidebar-block {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar-links {
  display: grid;
  gap: 8px;
}

.sidebar-links a {
  display: block;
  font-size: 14px;
  color: var(--brand);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.sidebar-links a:hover,
.sidebar-links a:focus {
  color: var(--accent);
}

.sidebar-note p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.sidebar-note p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 合作方式
   -------------------------------------------------------------------------- */

.cooperation-modes {
  padding-top: 40px;
}

.mode-list {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.mode-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.mode-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.mode-index {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.7;
}

.mode-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.mode-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

.mode-scene,
.mode-need {
  margin: 0;
}

.mode-need::before {
  content: "需要提供：";
  font-weight: 600;
  color: var(--brand);
}

.section-tail {
  margin-top: 20px;
  font-size: 15px;
}

.section-tail a {
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.section-tail a::after {
  content: "→";
  margin-left: 4px;
}

.section-tail a:hover,
.section-tail a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cooperation-prep {
  padding-top: 40px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.prep-col {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.prep-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section-media {
  margin: 40px 0 0;
}

.section-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}

.section-media figcaption {
  margin-top: 8px;
}

.cooperation-steps {
  padding-top: 40px;
}

.cooperation-steps .step-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.cooperation-steps .step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #3c3a36;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding: 64px 0 80px;
}

.error-inner {
  max-width: 720px;
}

.error-code {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-inner h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #3c3a36;
  margin-bottom: 24px;
}

.error-links {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.error-links a {
  display: inline-block;
  font-size: 15px;
  color: var(--brand);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.error-links a::after {
  content: "→";
  margin-left: 6px;
}

.error-links a:hover,
.error-links a:focus {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive · 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(35, 33, 30, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-item.is-current a {
    border-bottom-color: var(--line);
    color: var(--accent);
  }

  .nav-note {
    display: block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-step:nth-child(2n) {
    border-right: 0;
  }

  .timeline-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .library-grid,
  .compare-inner,
  .cooperation-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout,
  .page-head-inner,
  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .content-side,
  .page-aside,
  .page-sidebar {
    max-width: 100%;
  }

  .input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pitfall-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-row {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .mode-row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 720px
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  body,
  .site-body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .topbar-inner,
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-here,
  .top-bar-here {
    white-space: normal;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 12px;
  }

  .brand-divider {
    display: none;
  }

  .site-nav {
    padding: 0 16px 12px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .section {
    padding: 36px 0;
  }

  .section-head h2,
  .section-title,
  .compare-copy h2,
  .cooperation-list h2,
  .cooperation-steps h2 {
    font-size: 19px;
  }

  .library-group h2,
  .pitfall-block h2,
  .version-block h2,
  .faq-group h2 {
    font-size: 18px;
  }

  .hero {
    padding: 32px 0 36px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .need-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 8px;
  }

  .need-link {
    grid-column: 2;
    justify-self: start;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px;
  }

  .timeline-step:last-child {
    border-bottom: 0;
  }

  .timeline-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-row {
    padding: 18px 0;
  }

  .service-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-row,
  .exclusion-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .overview-name {
    font-size: 15px;
  }

  .stage-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .input-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .deviation-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pitfall-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .version-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prep-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mode-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .cooperation-steps .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  /* 表格在窄屏转为标签值块 */
  .data-table,
  .compare-table {
    border: 0;
    min-width: 0;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .data-table thead,
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .data-table tbody tr,
  .compare-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
  }

  .data-table tbody tr:last-child,
  .compare-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody td,
  .compare-table tbody td,
  .data-table tbody th,
  .compare-table tbody th {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    border-bottom: 1px dashed var(--line);
    padding: 10px 12px;
    white-space: normal;
    width: auto;
  }

  .data-table tbody tr > *:last-child,
  .compare-table tbody tr > *:last-child {
    border-bottom: 0;
  }

  .data-table tbody td::before,
  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 13px;
  }

  .data-table tbody tr:nth-child(even),
  .compare-table tbody tr:nth-child(even) {
    background: var(--white);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-nav {
    gap: 6px 12px;
  }

  .error-main {
    padding: 48px 0 56px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-inner h1 {
    font-size: 22px;
  }

  .anchor-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .anchor-bar a {
    flex-shrink: 0;
  }

  .faq-cat-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .faq-cat-list a {
    flex-shrink: 0;
  }

  .page-head,
  .page-hero {
    padding: 16px 0 20px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .service-block {
    padding: 26px 0;
  }

  .service-block .service-head {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .service-block .service-head h2 {
    font-size: 19px;
  }

  .service-output {
    flex-direction: column;
    gap: 4px;
  }

  .cooperation-steps .step-list li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .meta-row,
  .meta-line {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  figcaption {
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 390px 精细修正
   -------------------------------------------------------------------------- */

@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 23px;
  }

  .page-title {
    font-size: 22px;
  }

  .need-num {
    font-size: 17px;
  }

  .data-table tbody td,
  .compare-table tbody td,
  .data-table tbody th,
  .compare-table tbody th {
    grid-template-columns: 84px minmax(0, 1fr);
    font-size: 13px;
  }

  .footer-nav a {
    font-size: 12px;
  }
}
