/* ==========================================================================
   被窝福利影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #0f2e26;
  --ink-mid: #1f6f5c;
  --bg: #f5f6f4;
  --surface: #ffffff;
  --line: #d8dbd6;
  --warn: #8a4b2a;
  --text: #3a3f3c;
  --text-soft: #5c625d;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink-mid);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ink-mid);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-mid);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-soft);
  display: inline-block;
  padding: 2px 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--ink-mid);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-soft);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface);
}

.back-to-top::before {
  content: "↑";
  font-size: 14px;
  line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--ink);
  border-color: var(--ink-mid);
  text-decoration: none;
}

/* 内页统一骨架：面包屑 / 页标题区 / 主栏 + 侧栏 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.page-description {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 74ch;
}

.page-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 40px;
  align-items: start;
}

.main-column,
.layout-main,
.page-content {
  min-width: 0;
}

.side-column,
.sidebar,
.layout-sidebar,
.page-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
  align-self: start;
}

/* --------------------------------------------------------------------------
   components · 通用块
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink-mid);
  border-color: var(--ink-mid);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--ink-mid);
  color: var(--ink-mid);
  text-decoration: none;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-soft);
}

.tag-include {
  color: var(--ink-mid);
  border-color: #bcd6cd;
  background: #eef5f1;
}

.tag-exclude {
  color: var(--warn);
  border-color: #e0c8b8;
  background: #faf1ea;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-soft);
  white-space: nowrap;
}

.status-include {
  color: var(--ink-mid);
  border-color: #bcd6cd;
  background: #eef5f1;
}

.status-confirm {
  color: var(--warn);
  border-color: #e0c8b8;
  background: #faf1ea;
}

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title,
.content-section > h2,
.section > h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-head p,
.section-intro,
.section-lead,
.content-section > p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 76ch;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  color: var(--ink-mid);
  font-weight: 600;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-foot {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.section-media,
.section-figure {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.section-media img,
.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-media figcaption,
.section-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--ink-mid);
  color: var(--ink-mid);
  text-decoration: none;
}

/* 侧栏通用 */

.side-block,
.sidebar-block,
.aside-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  margin-bottom: 20px;
}

.side-title,
.sidebar-title,
.aside-title,
.toc-title,
.side-links-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.side-toc,
.sidebar-list,
.aside-list,
.toc-list,
.side-links-list,
.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-toc a,
.sidebar-list a,
.aside-list a,
.toc-list a,
.side-links-list a,
.anchor-list a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--line);
}

.side-toc li:last-child a,
.sidebar-list li:last-child a,
.aside-list li:last-child a,
.toc-list li:last-child a,
.side-links-list li:last-child a,
.anchor-list li:last-child a {
  border-bottom: 0;
}

.side-toc a:hover,
.sidebar-list a:hover,
.aside-list a:hover,
.toc-list a:hover,
.side-links-list a:hover,
.anchor-list a:hover,
.side-toc a:focus-visible,
.sidebar-list a:focus-visible,
.aside-list a:focus-visible,
.toc-list a:focus-visible,
.side-links-list a:focus-visible,
.anchor-list a:focus-visible {
  color: var(--ink-mid);
  text-decoration: none;
}

/* 字段表 / 字段列表 */

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  color: var(--ink);
  font-weight: 600;
  width: 26%;
}

.field-list {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.field-list .field-name {
  padding: 10px 16px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-mid);
}

.field-list .field-value {
  margin: 0;
  padding: 4px 16px 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.field-list .field-value:last-child {
  border-bottom: 0;
}

/* 编号清单、步骤清单 */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}

.step-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.step-title,
.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.step-body {
  display: block;
}

/* FAQ（原生 details） */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  font-family: var(--font-mono);
  color: var(--ink-mid);
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item summary:hover {
  color: var(--ink-mid);
}

.faq-answer,
.faq-item > p {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-question {
  display: block;
}

/* 警示条目 */

.warn-list,
.warning-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.warn-item,
.warning-item {
  background: #faf1ea;
  border: 1px solid #e0c8b8;
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.warn-name,
.warn-title,
.warning-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--warn);
  margin-bottom: 8px;
}

.warn-desc,
.warning-desc,
.warn-item p,
.warning-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* 说明块 */

.note-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}

.note-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.note-text + .note-text {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-media {
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.content-media-primary {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.content-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.home-main > .section {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.section-services {
  padding-top: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.service-card-feature {
  grid-column: span 2;
  background: #eef5f1;
  border-color: #bcd6cd;
}

.service-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-audience {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-mid);
  margin-bottom: 10px;
}

.service-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.service-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.scenario-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.scenario-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.scenario-need {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.scenario-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--warn);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flow-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-mid);
  border-radius: var(--radius);
  padding: 18px;
}

.flow-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.flow-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.flow-coop {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.flow-output {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boundary-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.boundary-include {
  border-color: #bcd6cd;
}

.boundary-exclude {
  border-color: #e0c8b8;
  background: #fdf8f5;
}

.boundary-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.boundary-include .boundary-list li::before {
  background: var(--ink-mid);
}

.boundary-exclude .boundary-list li::before {
  background: var(--warn);
}

.observation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.observation-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.observation-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.observation-basis {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.observation-approach {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

.section-contact-cta {
  padding-bottom: 56px;
}

.cta-block {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-text h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 60ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   pages · 服务范围
   -------------------------------------------------------------------------- */

.page-service-scope .content-section {
  margin-bottom: 44px;
}

.scope-block {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-block > h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-col {
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.compare-include {
  border-color: #bcd6cd;
  background: #eef5f1;
}

.compare-exclude {
  border-color: #e0c8b8;
  background: #faf1ea;
}

.compare-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.compare-include h4 {
  color: var(--ink-mid);
}

.compare-exclude h4 {
  color: var(--warn);
}

.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-col li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.related-entry .related-list {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages · 行业场景
   -------------------------------------------------------------------------- */

.page-industry-scenario .section {
  margin-bottom: 44px;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.scenario-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-mid);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.scenario-chip-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.scenario-chip-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.scenario-block {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scenario-block > h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.scenario-block > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.constraint-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.constraint-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.constraint-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.constraint-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.section-related .related-list {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages · 交付流程
   -------------------------------------------------------------------------- */

.page-delivery-process .section {
  margin-bottom: 44px;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stage-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stage-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mid);
  padding-top: 2px;
}

.stage-body {
  min-width: 0;
}

.stage-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.stage-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.stage-block {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.stage-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.stage-block-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.stage-block .field-table {
  min-width: 0;
}

.stage-block .field-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stage-block .field-row:last-child {
  border-bottom: 0;
}

.stage-block .field-name {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-mid);
  margin: 0;
}

.stage-block .field-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.change-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.change-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.change-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.change-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.related-bar {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   pages · 案例观察
   -------------------------------------------------------------------------- */

.page-case-observation .section {
  margin-bottom: 44px;
}

.obs-step-list {
  margin-top: 18px;
}

.step-item .step-body .step-title {
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.field-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.field-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.field-block .field-table {
  min-width: 0;
}

.field-block .field-table tbody th {
  width: 38%;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-mid);
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.field-block .field-table tbody td {
  font-size: 14px;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.field-block .field-table tbody tr:last-child th,
.field-block .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.entry-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.entry-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.entry-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.obs-note-block {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 合作咨询
   -------------------------------------------------------------------------- */

.page-contact .content-section {
  margin-bottom: 44px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.path-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.path-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.path-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 12px;
}

.error-inner h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.error-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--ink-mid);
  color: var(--ink-mid);
  text-decoration: none;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 24px 32px;
  }

  .hero-title {
    font-size: 30px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-feature {
    grid-column: span 2;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .side-column,
  .sidebar,
  .layout-sidebar,
  .page-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    min-height: 44px;
    padding: 10px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .hero-inner {
    padding: 28px 16px 28px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .home-main > .section {
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .section-services {
    padding-top: 36px;
  }

  .content-media figcaption {
    padding: 10px 16px;
  }

  .service-grid,
  .boundary-columns,
  .compare-grid,
  .cta-block,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card-feature {
    grid-column: span 1;
  }

  .cta-block {
    padding: 20px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }

  .stage-block .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .error-inner {
    padding: 28px 20px;
  }

  .error-inner h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 16px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-head h2,
  .section-title,
  .content-section > h2,
  .section > h2 {
    font-size: 20px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions,
  .cta-actions,
  .section-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .related-list {
    flex-direction: column;
    align-items: stretch;
  }

  .related-list a {
    justify-content: flex-start;
  }

  .step-list,
  .scenario-list,
  .flow-list,
  .observation-list,
  .constraint-list,
  .change-list,
  .entry-list,
  .field-group,
  .path-list,
  .warn-list,
  .warning-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-block,
  .scenario-block,
  .stage-block,
  .field-block {
    padding: 16px;
  }
}
