:root {
  --canvas: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #16181A;
  --ink-soft: #5B6165;
  --accent: #1F4D3D;
  --rule: #C8CBC4;
  --content-width: 1120px;
  --reading-width: 780px;
  --gutter: 24px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ============================================================
   layout: shell
   ============================================================ */
.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-drawer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px var(--gutter) 20px;
}

.drawer-list {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 2px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.drawer-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.inner-main {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 18px 0 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}

.page-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

.page-head {
  margin-bottom: 34px;
}

.page-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 42em;
}

.page-position {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 46px var(--gutter) 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34em;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-note,
.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============================================================
   layout: inner page columns
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.page-primary,
.layout-main,
.main-column {
  min-width: 0;
}

.page-aside,
.layout-aside,
.aside-related {
  min-width: 0;
}

.reading-shell,
.page-shell {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.page-shell-narrow {
  max-width: var(--reading-width);
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-title {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 46em;
}

.section-intro a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 22px;
}

.section-index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-note {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46em;
}

.section-foot {
  margin-top: 22px;
  font-size: 14px;
}

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.inline-link:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   components: figures / media
   ============================================================ */
.hero-figure,
.content-figure,
.media-figure,
.entry-media,
.faq-media {
  margin: 0;
}

.hero-figure img,
.content-figure img,
.media-figure img,
.entry-media img,
.faq-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--rule);
  border-radius: 4px;
}

.hero-figure img {
  aspect-ratio: 16 / 6;
}

.media-figure img,
.content-figure img,
.faq-media img {
  aspect-ratio: 16 / 9;
}

.entry-media img {
  aspect-ratio: 16 / 9;
}

.hero-caption,
.content-figure figcaption,
.media-figure figcaption,
.entry-media figcaption,
.faq-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-caption {
  padding-left: 12px;
  border-left: 2px solid var(--rule);
}

/* ============================================================
   components: buttons & links
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--accent);
  transition: background 0.18s ease;
}

.btn-primary:hover {
  background: #17392d;
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.link-action {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.link-action:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.link-plain {
  color: var(--ink-soft);
}

.link-plain:hover {
  color: var(--accent);
}

/* ============================================================
   components: tables
   ============================================================ */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}

.table-caption {
  caption-side: top;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.stage-grid,
.stage-table,
.format-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.stage-grid th,
.stage-grid td,
.stage-table th,
.stage-table td,
.format-table th,
.format-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.stage-grid thead th,
.stage-table thead th,
.format-table thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--canvas);
  white-space: nowrap;
}

.stage-grid tbody th,
.stage-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.stage-grid tbody tr:last-child th,
.stage-grid tbody tr:last-child td,
.stage-table tbody tr:last-child th,
.stage-table tbody tr:last-child td,
.format-table tbody tr:last-child th,
.format-table tbody tr:last-child td {
  border-bottom: 0;
}

.stage-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-right: 8px;
}

/* ============================================================
   components: FAQ accordion
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 20px;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.6;
  color: var(--accent);
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 4px 20px 36px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
   pages: home
   ============================================================ */
.home-main {
  padding-top: 24px;
}

.hero-visual {
  margin-bottom: 40px;
}

.hero-intro {
  margin-bottom: 42px;
}

.hero-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-lead h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.lead-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.service-index {
  min-width: 0;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.index-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.index-list {
  display: flex;
  flex-direction: column;
}

.index-item {
  border-bottom: 1px solid var(--rule);
}

.index-link {
  position: relative;
  display: block;
  padding: 16px 12px 16px 16px;
  color: var(--ink);
  transition: background 0.16s ease;
}

.index-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: transparent;
  transition: background 0.16s ease;
}

.index-link:hover,
.index-link:focus-visible {
  text-decoration: none;
  background: var(--surface);
}

.index-link:hover::before,
.index-link:focus-visible::before {
  background: var(--accent);
}

.index-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 4px;
}

.index-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}

.index-def {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.capacity-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 20px;
  margin-bottom: 46px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.capacity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  min-width: 0;
}

.capacity-text {
  color: var(--ink-soft);
}

.service-definitions {
  margin-bottom: 48px;
}

.service-definitions h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 46em;
}

.def-block {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.def-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.def-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  flex: 0 0 auto;
}

.def-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.def-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
}

.def-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.def-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  min-width: 0;
  max-width: 44em;
}

.stage-table {
  margin-bottom: 48px;
}

.stage-table h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.acceptance-summary {
  margin-bottom: 48px;
}

.acceptance-summary h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.acceptance-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.acceptance-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.acceptance-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  min-width: 0;
}

.scenario-compare {
  margin-bottom: 48px;
}

.scenario-compare h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compare-col {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.compare-fit {
  border-top: 3px solid var(--accent);
}

.compare-inhouse {
  border-top: 3px solid var(--rule);
  background: transparent;
}

.compare-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.compare-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.compare-inhouse .compare-list li::before {
  background: var(--rule);
}

.faq-preview {
  margin-bottom: 46px;
}

.faq-preview h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}

.cooperation-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.strip-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 40em;
}

/* ============================================================
   pages: services
   ============================================================ */
.service-entries {
  margin-bottom: 44px;
}

.service-entries h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-entry {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.entry-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}

.entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}

.entry-media {
  margin-bottom: 22px;
}

.entry-def,
.entry-explain,
.entry-example,
.entry-relate {
  padding: 14px 0;
  border-top: 1px dashed var(--rule);
}

.entry-def {
  border-top: 0;
  padding-top: 0;
}

.entry-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.entry-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 44em;
}

.entry-text + .entry-text {
  margin-top: 12px;
}

.entry-relate .entry-text a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.deliverable-forms {
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}

.deliverable-forms h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deliverable-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.deliverable-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

.deliverable-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.deliverable-form {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.scope-exclusions {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.scope-exclusions h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.exclusion-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.exclusion-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.exclusion-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  min-width: 0;
}

.exclusion-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  min-width: 0;
}

.entry-combination {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.entry-combination h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.combination-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.combination-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.combination-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

.combination-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.combination-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-aside {
  position: sticky;
  top: 24px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.aside-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.aside-desc,
.aside-note,
.aside-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.aside-links,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-link {
  display: block;
  padding-left: 14px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.aside-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.aside-link:hover {
  color: var(--accent);
}

/* ============================================================
   pages: scenarios
   ============================================================ */
.fit-conditions,
.inhouse-conditions,
.self-check,
.next-step {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.fit-conditions {
  border-top: 0;
  padding-top: 0;
}

.fit-conditions .media-figure {
  margin-bottom: 24px;
}

.condition-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.condition-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
}

.condition-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 44em;
}

.condition-item p + p {
  margin-top: 10px;
}

.condition-item.is-muted {
  opacity: 0.92;
}

.condition-item.is-muted h3 {
  color: var(--ink-soft);
}

.condition-item.is-muted p {
  color: var(--ink-soft);
}

.check-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.check-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.check-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.9;
}

.check-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  min-width: 0;
}

.check-summary {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.next-step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.next-step p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.next-step-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 15px;
}

/* ============================================================
   pages: process
   ============================================================ */
.stage-section {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.stage-section .media-figure {
  margin: 20px 0 24px;
}

.stage-section .table-wrap {
  margin-bottom: 16px;
}

.stage-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46em;
}

.role-section {
  padding-top: 34px;
}

.role-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.role-col {
  min-width: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.role-col-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-item {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.role-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.role-stage {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-right: 6px;
}

.layout-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-block {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.aside-input-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-input-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.aside-input-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.input-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

/* ============================================================
   pages: delivery
   ============================================================ */
.content-section {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.content-section:first-of-type {
  border-top: 0;
}

.content-section .content-figure {
  margin-top: 24px;
}

.content-section .deliverable-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.format-table {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.format-table th {
  width: 30%;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
}

.format-table td {
  font-size: 15px;
  color: var(--ink);
}

.revision-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.revision-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.revision-round {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}

.revision-scope {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.revision-over {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.acceptance-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.acceptance-method {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.acceptance-basis {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.dispute-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: dispute;
}

.dispute-step {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  counter-increment: dispute;
}

.dispute-step::before {
  content: counter(dispute, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.aside-related {
  position: sticky;
  top: 24px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* ============================================================
   pages: cooperation
   ============================================================ */
.prepare-section .media-figure {
  margin: 20px 0 24px;
}

.numbered-list {
  display: flex;
  flex-direction: column;
  counter-reset: prepare;
}

.prepare-item {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--rule);
  counter-increment: prepare;
}

.prepare-item::before {
  content: counter(prepare, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.prepare-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.prepare-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.topic-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.topic-outcome {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}

.condition-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.preconditions-section .condition-item {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.condition-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.channel-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.channel-section p + p {
  margin-top: 12px;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.channel-links a {
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.channel-links a:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

/* ============================================================
   pages: faq
   ============================================================ */
.faq-media {
  margin-bottom: 32px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}

.faq-group {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.faq-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-group h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-group-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.faq-group-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  margin-right: 12px;
}

.faq-exit {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.faq-exit h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.faq-exit p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.faq-exit-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-exit-links a {
  font-size: 15px;
  color: var(--ink);
  border-left: 2px solid var(--rule);
  padding-left: 12px;
}

.faq-exit-links a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   components: related links strip
   ============================================================ */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.related-links-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.related-links-item {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.related-links-item:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   pages: 404
   ============================================================ */
.error-main {
  padding-top: 60px;
  padding-bottom: 90px;
}

.error-inner {
  max-width: 620px;
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.error-inner h1 {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.error-options h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.error-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.error-list li {
  border-bottom: 1px solid var(--rule);
}

.error-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  color: var(--ink);
  padding: 4px 2px;
}

.error-list a:hover {
  color: var(--accent);
}

.error-back {
  margin-top: 30px;
  font-size: 15px;
}

.error-home-link {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.error-home-link:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }

  .hero-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-lead h1 {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 14px var(--gutter);
  }

  .page-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-aside,
  .aside-related,
  .faq-exit {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  body.site-body {
    font-size: 15px;
  }

  .hero-lead h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title,
  .service-definitions h2,
  .stage-table h2,
  .acceptance-summary h2,
  .scenario-compare h2,
  .faq-preview h2,
  .service-entries h2,
  .deliverable-forms h2,
  .scope-exclusions h2,
  .entry-combination h2,
  .faq-group h2 {
    font-size: 20px;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .def-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .acceptance-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .exclusion-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .deliverable-list,
  .content-section .deliverable-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cooperation-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .cooperation-strip .btn-primary {
    width: 100%;
  }

  .capacity-status {
    padding: 16px;
  }

  .service-entry {
    padding: 24px 0;
  }

  .dispute-step {
    padding: 16px 16px 16px 48px;
  }

  .dispute-step::before {
    left: 16px;
    top: 16px;
  }

  .prepare-item {
    padding-left: 44px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 34px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .faq-answer {
    padding-left: 4px;
  }

  /* 阶段表在窄屏转为纵向块，避免横向溢出 */
  .stage-grid,
  .stage-table {
    display: block;
    width: 100%;
    border-collapse: collapse;
  }

  .stage-grid thead,
  .stage-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .stage-grid tbody,
  .stage-table tbody,
  .stage-grid tr,
  .stage-table tr,
  .stage-grid th,
  .stage-table th,
  .stage-grid td,
  .stage-table td {
    display: block;
    width: 100%;
  }

  .stage-grid tbody tr,
  .stage-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
  }

  .stage-grid tbody tr:last-child,
  .stage-table tbody tr:last-child {
    border-bottom: 0;
  }

  .stage-grid tbody th,
  .stage-table tbody th {
    padding: 0 0 10px;
    border-bottom: 1px dashed var(--rule);
    margin-bottom: 10px;
    white-space: normal;
    font-size: 16px;
  }

  .stage-grid tbody td,
  .stage-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .stage-grid tbody td::before,
  .stage-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    margin-bottom: 2px;
  }

  .format-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .format-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .format-table tbody,
  .format-table tr,
  .format-table th,
  .format-table td {
    display: block;
    width: 100%;
  }

  .format-table tbody tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .format-table tbody tr:last-child {
    border-bottom: 0;
  }

  .format-table th {
    padding: 0 0 6px;
    background: transparent;
    border-bottom: 0;
    font-size: 15px;
  }

  .format-table td {
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   motion / print
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: none;
  }

  .index-link,
  .aside-link,
  .faq-question,
  .btn-primary,
  .btn-ghost,
  .related-links-item {
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }

  html:focus-within {
    scroll-padding-top: 20px;
  }

  :target {
    scroll-margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .mobile-drawer,
  .menu-toggle,
  .site-nav,
  .footer-col,
  .related-links,
  .hero-actions,
  .cooperation-strip .btn-primary,
  .skip-link {
    display: none !important;
  }

  body.site-body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-main,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    max-width: none;
    padding: 0;
  }

  .brand-mark,
  .footer-mark {
    display: block;
    margin-bottom: 10px;
  }

  .page-layout,
  .faq-layout {
    display: block;
  }

  .page-aside,
  .aside-related,
  .faq-exit {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .faq-item {
    break-inside: avoid;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
