/* ==========================================================================
   51吃瓜莫里秀 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink-900: #1f2429;
  --ink-700: #414a52;
  --ink-500: #6b747c;
  --line: #dde2e6;
  --paper: #ffffff;
  --mist: #f5f7f8;
  --teal: #1f6f6b;
  --blue: #2c5a8a;
  --amber: #8a6416;
  --shell: 1180px;
  --radius: 6px;
  --header-h: 88px;
  --header-h-tight: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-900);
  background-color: var(--paper);
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  transition: min-height 0.2s ease;
}

.site-header.is-tight .header-inner {
  min-height: var(--header-h-tight);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  gap: 2px;
  color: var(--ink-900);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-tagline {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-500);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 22px;
}

.nav-item > a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-item > a:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-item.is-current > a,
.nav-item > a.is-current {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background-color: var(--ink-700);
}

.site-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.site-footer {
  margin-top: 48px;
  background-color: var(--mist);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-500);
}

.footer-boundary {
  margin-top: 12px;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--amber);
  border-left: 2px solid var(--amber);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-500);
}

.footer-list a:hover {
  color: var(--teal);
}

.footer-note {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-500);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   3. components · 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: #ffffff;
  background-color: var(--teal);
  border: 1px solid var(--teal);
}

.btn-primary:hover {
  background-color: #1a5d59;
  border-color: #1a5d59;
}

.btn-ghost {
  color: var(--teal);
  background-color: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-500);
}

.breadcrumb a {
  color: var(--ink-500);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-700);
}

/* 页面标题区 */
.page-header {
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink-900);
}

.page-lead {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-700);
}

.page-tags,
.page-meta,
.intro-tags,
.page-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}

.page-tag,
.page-meta-item,
.intro-tag,
.audience-tag {
  padding: 3px 10px;
  font-size: 13px;
  color: var(--ink-700);
  background-color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-title-block,
.page-head,
.page-intro,
.page-hero {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-intro-lead {
  font-size: 16px;
  color: var(--ink-700);
}

.page-intro,
.page-hero {
  margin-top: 0;
}

/* 两栏布局：默认主内容在前 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 48px;
  align-items: start;
}

.page-layout.layout-shell {
  grid-template-columns: 210px minmax(0, 1fr);
}

/* 侧栏在前的布局变体 */
.page-layout.sidebar-left {
  grid-template-columns: 210px minmax(0, 1fr);
}

.sidebar-left .page-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.content-column,
.content-main,
.main-content,
.page-content {
  min-width: 0;
}

/* 锚点侧栏 */
.anchor-aside,
.anchor-sidebar {
  position: sticky;
  top: calc(var(--header-h-tight) + 20px);
  min-width: 0;
}

.anchor-title,
.anchor-sidebar-title,
.anchor-nav-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.anchor-item > a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--ink-500);
  border-left: 2px solid transparent;
  margin-left: -1px;
  text-decoration: none;
}

.anchor-item > a:hover {
  color: var(--teal);
  text-decoration: none;
}

.anchor-item > a.is-active {
  color: var(--teal);
  border-left-color: var(--teal);
}

/* 内容区块 */
.section,
.content-block,
.content-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.content-block:first-child,
.content-section:first-child {
  padding-top: 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.content-block > h2,
.content-section > h2,
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
}

.section-desc,
.section-intro,
.section-lead,
.content-block > p,
.content-section > p {
  margin-top: 12px;
  color: var(--ink-700);
}

.subsection-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-700);
}

.section-note,
.block-footnote {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-500);
}

.section-note a,
.block-footnote a {
  margin-right: 16px;
}

/* 图片容器 */
.section-media,
.section-figure,
.content-figure {
  margin: 0 0 24px;
}

.section-media img,
.section-figure img,
.content-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.section-media figcaption,
.section-figure figcaption,
.content-figure figcaption,
.figure-caption,
.media-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-500);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.compare-table,
.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

.table-caption {
  padding-bottom: 10px;
  font-size: 13px;
  color: var(--ink-500);
  text-align: left;
}

.compare-table th,
.compare-table td,
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th,
.data-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  background-color: var(--mist);
  border-top: 1px solid var(--line);
}

.compare-table tbody th,
.data-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
}

.compare-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
  background-color: var(--mist);
}

.tip-bar {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-700);
  background-color: var(--mist);
  border-left: 3px solid var(--teal);
}

/* 问答折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--teal);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 40px 18px 0;
  color: var(--ink-700);
}

.faq-answer p + p {
  margin-top: 10px;
}

/* 通用列表 */
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-700);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--teal);
  border-radius: 50%;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
  padding: 16px 20px;
  background-color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
}

.related-links-item {
  font-size: 14px;
}

/* 规则摘要框 */
.rule-box,
.rule-summary-box {
  padding: 20px 22px;
  background-color: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.rule-list,
.rule-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item,
.rule-summary-item {
  position: relative;
  padding-left: 20px;
  color: var(--ink-900);
}

.rule-item::before,
.rule-summary-item::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--amber);
}

.rule-reason {
  margin-top: 14px;
  padding-top: 14px;
  font-size: 14px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
}

.rule-mark {
  font-weight: 600;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 16px;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-700);
}

.hero-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background-color: var(--blue);
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.home-main .section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px;
}

/* 服务矩阵总览 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-col {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s ease;
}

.service-col:first-child {
  border-left: 1px solid var(--line);
}

.service-col:hover {
  border-left: 2px solid var(--teal);
}

.service-col-name {
  font-size: 17px;
  font-weight: 600;
}

.service-col-problem {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-700);
}

.service-col-label {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

.service-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.service-col-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-700);
}

.service-col-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--blue);
  border-radius: 50%;
}

.service-col-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

/* 交付阶段速览（首页） */
.stage-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stage-track .stage-item {
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stage-track .stage-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.stage-track .stage-name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

.stage-track .stage-owner,
.stage-track .stage-output {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-500);
}

/* 适用场景对照（首页） */
.section-scenarios .tip-bar {
  margin-top: 20px;
}

/* 交付物与配合清单 */
.checklist-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--line);
}

.checklist-col {
  min-width: 0;
  padding: 22px 0;
}

.checklist-col-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  position: relative;
  padding-left: 26px;
  color: var(--ink-700);
}

.checklist-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--teal);
  border-radius: 3px;
}

/* 合作洽谈入口（首页） */
.coop-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--line);
}

.coop-list-col,
.coop-agenda-col {
  min-width: 0;
  padding: 22px 0;
}

.coop-subtitle {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
}

.coop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coop-item {
  position: relative;
  padding-left: 18px;
  color: var(--ink-700);
}

.coop-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--teal);
  border-radius: 50%;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agenda-item {
  min-width: 0;
  padding-left: 44px;
  position: relative;
}

.agenda-step {
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.agenda-text {
  color: var(--ink-700);
}

.coop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   5. pages · 内页模块
   -------------------------------------------------------------------------- */

/* 服务矩阵页 */
.service-entry {
  margin-top: 24px;
  padding: 22px;
  background-color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-entry h3 {
  font-size: 17px;
  font-weight: 600;
}

.service-entry h3 + p {
  margin-top: 8px;
  color: var(--ink-700);
}

.service-entry h3 + ul,
.service-entry .plain-list + h3 {
  margin-top: 14px;
}

.service-entry h3:not(:first-child) {
  margin-top: 18px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.plan-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}

.plan-item h3 {
  font-size: 17px;
  font-weight: 600;
}

.plan-item p {
  margin-top: 8px;
  color: var(--ink-700);
}

.block-next {
  border-bottom: 0;
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.next-links a {
  font-size: 15px;
}

/* 交付方法页 */
.stage-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.stage-list .stage-item {
  position: relative;
  padding: 22px 0 22px 52px;
  border-bottom: 1px solid var(--line);
}

.stage-list .stage-index {
  position: absolute;
  left: 0;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.stage-list .stage-name {
  font-size: 16px;
  font-weight: 600;
}

.stage-goal {
  margin-top: 8px;
  color: var(--ink-700);
}

.stage-detail {
  margin: 12px 0 0;
}

.stage-detail dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

.stage-detail dd {
  margin: 0 0 8px;
  color: var(--ink-700);
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.material-item {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.material-name {
  font-size: 16px;
  font-weight: 600;
}

.material-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

.rule-list .rule-item {
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid var(--line);
}

.rule-list .rule-item::before {
  top: 16px;
}

.rule-name {
  font-size: 16px;
  font-weight: 600;
}

.rule-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-700);
}

/* 适用场景页 */
.advice-item,
.misfit-item,
.switch-item {
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.advice-item:last-child,
.misfit-item:last-child,
.switch-item:last-child {
  border-bottom: 0;
}

.advice-name,
.misfit-name,
.switch-name {
  font-size: 16px;
  font-weight: 600;
}

.advice-body,
.misfit-body,
.switch-body {
  margin-top: 8px;
  color: var(--ink-700);
}

.misfit-list,
.switch-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.switch-list {
  counter-reset: switch-count;
}

.switch-item {
  position: relative;
  padding-left: 44px;
}

.switch-item::before {
  counter-increment: switch-count;
  content: counter(switch-count);
  position: absolute;
  left: 0;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* 合规边界页 */
.rule-detail {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rule-detail-title {
  font-size: 16px;
  font-weight: 600;
}

.rule-detail-reason {
  margin-top: 8px;
  color: var(--ink-700);
}

.rule-detail-example {
  margin-top: 8px;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-500);
  border-left: 2px solid var(--line);
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.node-item {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.node-title {
  font-size: 16px;
  font-weight: 600;
}

.node-desc {
  margin-top: 6px;
  color: var(--ink-700);
}

.handle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.handle-item {
  position: relative;
  padding-left: 30px;
  color: var(--ink-700);
}

.handle-step {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* 常见问题页 */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.guide-item {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.guide-title {
  font-size: 16px;
  font-weight: 600;
}

.guide-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

/* 合作洽谈页 */
.checklist-label {
  display: inline-block;
  min-width: 96px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

.checklist-text {
  color: var(--ink-700);
}

.agenda-title {
  font-size: 16px;
  font-weight: 600;
}

.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.confirm-item {
  position: relative;
  min-width: 0;
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--line);
}

.confirm-index {
  position: absolute;
  left: 0;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
}

.confirm-text {
  margin-top: 8px;
  color: var(--ink-700);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.related-item {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* 404 */
.error-main {
  display: block;
}

.error-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 72px;
}

.error-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.error-inner h1 {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 600;
}

.error-desc {
  margin-top: 16px;
  color: var(--ink-700);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
}

.error-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.error-link-list a {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   6. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: var(--header-h-tight);
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .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-item > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-item.is-current > a,
  .nav-item > a.is-current {
    border-bottom-color: var(--line);
    border-left: 2px solid var(--teal);
    padding-left: 10px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 20px 40px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-media {
    order: 2;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-col:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .stage-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-columns,
  .coop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .page-layout,
  .page-layout.layout-shell,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .anchor-aside,
  .anchor-sidebar {
    position: static;
    order: 2;
  }

  .anchor-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }

  .anchor-item {
    flex: 0 0 auto;
  }

  .anchor-item > a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    padding: 8px 14px;
  }

  .anchor-item > a.is-active {
    border-left: 0;
    border-bottom-color: var(--teal);
  }

  .content-column,
  .content-main,
  .main-content,
  .page-content {
    order: 1;
  }

  .page-title {
    font-size: 28px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-col-note {
    grid-column: 1 / -1;
  }

  .home-main .section {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .inner-main {
    padding: 20px 16px 56px;
  }

  .hero-inner {
    padding: 32px 16px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .home-main .section {
    padding: 32px 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-head h2,
  .content-block > h2,
  .content-section > h2,
  .section-title {
    font-size: 20px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-col,
  .service-col:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .stage-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-table,
  .data-table {
    min-width: 480px;
  }

  .checklist-label {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }

  .stage-list .stage-item {
    padding-left: 44px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 24px;
  }

  .footer-col-note {
    grid-column: auto;
  }

  .footer-copy {
    padding: 14px 16px 20px;
  }

  .error-inner {
    padding: 64px 16px 56px;
  }

  .error-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
