/* ==========================================================================
   蜜桃影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --paper: #F6F3EE;
  --surface: #FFFFFF;
  --ink: #1F1B18;
  --ink-soft: #6B625A;
  --brand: #D96E4B;
  --brand-dark: #B9522F;
  --accent: #2F6E63;
  --line: #E4DCD2;
  --line-strong: #CFC4B6;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --pad-x: 32px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
}

li:last-child {
  margin-bottom: 0;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0 0 0.6em;
}

dd:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brand-dark);
  text-decoration: none;
}

.header-entry {
  font-size: 14px;
  color: var(--brand-dark);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

.header-entry:hover,
.header-entry:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.site-nav {
  border-top: 1px solid var(--line);
}

.main-nav ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-dark);
  text-decoration: none;
}

.main-nav a.is-current {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 var(--pad-x) 0 auto;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s ease;
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  top: 28px;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-drawer {
  border-top: 1px solid var(--line);
  padding: 12px var(--pad-x) 20px;
  background-color: var(--surface);
}

.nav-drawer[hidden] {
  display: none;
}

.drawer-group-title {
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.nav-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-drawer li {
  margin: 0;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible {
  color: var(--brand-dark);
  text-decoration: none;
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand-dark);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  margin: 0;
}

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 44px 0 28px;
  margin-top: 24px;
}

.footer-groups {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-group h2 {
  font-size: 15px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin: 0 0 8px;
}

.footer-group a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--brand-dark);
}

.footer-copy {
  max-width: var(--shell);
  margin: 32px auto 0;
  padding: 16px var(--pad-x) 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46em;
}

.section-intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 44em;
}

.section-more {
  margin: 24px 0 0;
  font-size: 15px;
}

.section-more a {
  color: var(--brand-dark);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

.section-more a:hover,
.section-more a:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  color: var(--brand-dark);
  font-size: 15px;
  background-color: transparent;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--brand);
  color: #FFFFFF;
  text-decoration: none;
}

.serial,
.item-index,
.step-index,
.scenario-index,
.stage-no {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.section-figure,
.spec-figure,
.media-figure,
.scenario-figure,
.faq-figure,
.method-figure {
  margin: 28px 0 0;
}

.section-figure img,
.spec-figure img,
.media-figure img,
.scenario-figure img,
.faq-figure img,
.method-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  background-color: var(--line);
}

.related-list,
.next-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-list li,
.next-links li {
  margin: 0;
}

.related-list a,
.next-links a {
  display: inline-block;
  min-height: 24px;
  color: var(--brand-dark);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.related-list a:hover,
.next-links a:hover,
.related-list a:focus-visible,
.next-links a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* FAQ 折叠项 */
.faq-list,
.faq-group {
  display: block;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--brand-dark);
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.faq-answer p {
  margin: 14px 0 0;
}

.faq-link {
  font-size: 14px;
}

.faq-link a {
  color: var(--brand-dark);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

.faq-link a:hover,
.faq-link a:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

/* 边界说明列表 */
.boundary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-list li {
  margin: 0;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.boundary-list h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-list p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-note {
  margin: 20px 0 0;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  padding-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-slogan {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--line);
}

.services-overview .service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.service-list .service-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.service-list .service-item:hover .item-index {
  color: var(--brand-dark);
}

.service-list .item-body {
  min-width: 0;
}

.service-list .item-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.service-list .item-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.service-list .item-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--brand-dark);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

.service-list .item-link:hover,
.service-list .item-link:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

.scenario-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scenario-col,
.scenario-column {
  min-width: 0;
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
}

.scenario-col h3,
.scenario-column h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.scenario-col dl,
.scenario-column dl {
  margin: 0;
}

.scenario-col dt,
.scenario-column dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 2px;
}

.scenario-col dd,
.scenario-column dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.scenario-col dd:last-child,
.scenario-column dd:last-child {
  margin-bottom: 0;
}

.scenario-col dd a {
  color: var(--brand-dark);
}

.flow-strip {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.flow-strip .flow-step {
  margin: 0;
  padding: 18px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-strip .flow-step h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}

.flow-strip .flow-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spec-card {
  min-width: 0;
  padding: 18px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.spec-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.method-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.method-text {
  min-width: 0;
}

.method-text p {
  font-size: 16px;
  line-height: 1.85;
}

.method-figure {
  margin: 0;
  min-width: 0;
}

.method-figure img {
  aspect-ratio: 3 / 2;
}

.method-figure-wide {
  margin-top: 32px;
}

.method-figure-wide img {
  aspect-ratio: 21 / 9;
}

.boundary-preview .boundary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   pages · 内页通用（服务目录 / 场景方案 / 技术资料 / 合作流程 / 常见问题）
   -------------------------------------------------------------------------- */
.page-head,
.page-intro,
.page-hero {
  padding: 0 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-hero-lead {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.85;
  max-width: 44em;
}

.page-scope,
.page-hero-scope {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46em;
}

/* 主内容 + 右侧栏（DOM 顺序：主内容在前，aside 在后） */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 300px);
  gap: 48px;
  align-items: start;
}

.content-main,
.layout-main {
  min-width: 0;
}

.content-side,
.layout-aside {
  min-width: 0;
}

.side-block,
.aside-block {
  margin-bottom: 28px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-block:last-child,
.aside-block:last-child {
  margin-bottom: 0;
}

.side-block h2,
.aside-block h2 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-list,
.aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li,
.aside-list li {
  margin: 0 0 4px;
}

.side-list a,
.aside-list a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.side-list li:last-child a,
.aside-list li:last-child a {
  border-bottom: 0;
}

.side-list a:hover,
.side-list a:focus-visible,
.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--brand-dark);
  text-decoration: none;
}

/* 服务目录 */
.services-list .service-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.services-list .service-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.services-list .service-item-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.services-list .service-item-head h3 {
  font-size: 19px;
  margin: 0;
}

.services-list .service-item-body {
  min-width: 0;
}

.service-fields {
  margin: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 6px 18px;
}

.service-fields dt {
  font-size: 14px;
  color: var(--accent);
  padding-top: 2px;
}

.service-fields dd {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.service-fields dd:last-of-type {
  margin-bottom: 0;
}

.service-combos .combo-item {
  padding: 20px;
  margin-bottom: 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-combos .combo-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-combos .combo-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.combo-links {
  margin: 12px 0 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.combo-links a {
  color: var(--brand-dark);
  border-bottom: 1px solid var(--line-strong);
}

.combo-links a:hover,
.combo-links a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

.fit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fit-block {
  min-width: 0;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit-block h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.fit-yes {
  border-top: 3px solid var(--accent);
}

.fit-no {
  border-top: 3px solid var(--brand);
}

.fit-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.fit-block li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 场景方案 */
.scenario-overview {
  margin-bottom: 40px;
}

.scenario-overview > h2 {
  margin-bottom: 8px;
}

.scenario-detail {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.scenario-detail h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.scenario-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.scenario-condition,
.scenario-order {
  min-width: 0;
}

.scenario-condition h3,
.scenario-order h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}

.scenario-condition p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.scenario-order ol {
  margin: 0;
  padding-left: 1.3em;
}

.scenario-order li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.scenario-mapping {
  padding: 36px 0 8px;
  border-top: 1px solid var(--line);
}

.mapping-table {
  margin-top: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.mapping-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.mapping-table th,
.mapping-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}

.mapping-table thead th {
  background-color: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.mapping-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.mapping-table tbody td {
  color: var(--ink-soft);
}

.mapping-table tbody tr:last-child th,
.mapping-table tbody tr:last-child td {
  border-bottom: 0;
}

.scenario-next {
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}

.scenario-next p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 46em;
}

/* 合作流程 */
.page-delivery .page-intro {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.stage-overview,
.stage-details,
.delivery-media,
.acceptance-ref,
.service-boundary,
.related-entry {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.related-entry {
  border-bottom: 0;
}

.stage-overview > h2,
.stage-details > h2,
.delivery-media > h2,
.acceptance-ref > h2,
.service-boundary > h2,
.related-entry > h2 {
  margin-bottom: 8px;
}

.stage-strip {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stage-strip li {
  margin: 0;
}

.stage-strip a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
  padding: 14px 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.stage-strip a:hover,
.stage-strip a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.stage-strip .stage-name {
  font-size: 14px;
  line-height: 1.5;
}

.stage-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.stage-block:first-of-type {
  border-top: 0;
}

.stage-block h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  margin-bottom: 16px;
}

.stage-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.stage-col {
  min-width: 0;
}

.stage-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.stage-col-work h4 {
  color: var(--brand-dark);
}

.stage-col-input h4 {
  color: var(--accent);
}

.stage-col p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.stage-col ul {
  margin: 0;
  padding-left: 1.2em;
}

.stage-col li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.delivery-media > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46em;
}

.delivery-media .media-figure img {
  aspect-ratio: 21 / 9;
}

.acceptance-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.acceptance-list li {
  margin: 0;
  padding: 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.acceptance-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.service-boundary .boundary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.service-boundary .boundary-list li {
  padding: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.related-entry .related-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

/* 技术资料 */
.spec-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.spec-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.spec-section > h2 {
  margin-bottom: 8px;
}

.spec-table {
  margin-top: 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row > span {
  min-width: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}

.spec-row > span:last-child {
  border-right: 0;
}

.spec-head {
  background-color: var(--paper);
}

.spec-head > span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.spec-row .spec-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand-dark);
  background-color: #FCFAF7;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.apply-box {
  min-width: 0;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.apply-box h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.apply-yes {
  border-top: 3px solid var(--accent);
}

.apply-no {
  border-top: 3px solid var(--brand);
}

.apply-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.apply-box li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.spec-scope-list {
  margin: 20px 0 0;
  padding-left: 1.2em;
}

.spec-scope-list li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* 常见问题 */
.faq-group-nav {
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.faq-group-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.faq-group-nav li {
  margin: 0;
}

.faq-group-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}

.faq-group-nav a:hover,
.faq-group-nav a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.faq-group {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.faq-group > h2 {
  margin-bottom: 8px;
}

.faq-group-intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 44em;
}

.faq-related {
  padding: 32px 0 0;
}

.faq-related p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 46em;
}

.faq-related .related-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

/* 404 */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--pad-x) 80px;
}

.error-block {
  max-width: 620px;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.error-title {
  font-size: 34px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 40em;
}

.error-links {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.error-links li {
  margin: 0;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.error-note {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 40em;
}

/* --------------------------------------------------------------------------
   responsive · 1120 / 900 / 640 三档断点
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: 36px;
  }

  .spec-row {
    grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-top {
    padding-bottom: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 32px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .services-overview .service-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .scenario-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .method-figure-wide img {
    aspect-ratio: 16 / 9;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .scenario-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .stage-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-boundary .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-table {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .spec-head {
    display: none;
  }

  .spec-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
  }

  .spec-row:last-child {
    margin-bottom: 0;
  }

  .spec-row > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .spec-row > span:last-child {
    border-bottom: 0;
  }

  .spec-row .spec-name {
    font-weight: 600;
    background-color: var(--paper);
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 20px;
  }

  body {
    font-size: 16px;
    line-height: 1.8;
  }

  h1,
  .page-title,
  .error-title {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .header-top {
    padding: 14px var(--pad-x);
  }

  .brand {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-outline {
    flex: 1 1 auto;
    justify-content: center;
  }

  .flow-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-list,
  .boundary-preview .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .fit-columns,
  .apply-grid,
  .acceptance-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-entry .related-list,
  .faq-related .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .service-fields dt {
    padding-top: 8px;
  }

  .services-list .service-item-head {
    flex-direction: column;
    gap: 4px;
  }

  .stage-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-strip a {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .faq-group-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .faq-group-nav a {
    white-space: nowrap;
  }

  .mapping-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .error-main {
    padding: 48px var(--pad-x) 56px;
  }

  .error-links {
    flex-direction: column;
    align-items: stretch;
  }

  .error-links a {
    justify-content: center;
  }
}
