/* ==========================================================================
   好色先生 · 站点样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #F6F2EA;
  --surface: #FFFFFF;
  --ink-blue: #1E3A57;
  --brick: #B25338;
  --sand: #D8A24A;
  --mist-green: #5F7D6E;
  --text: #2B2B2B;
  --muted: #7A746B;
  --line: #E2DCD1;
  --line-strong: #CFC7B8;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(30, 58, 87, 0.06);
  --shadow-card: 0 2px 8px rgba(30, 58, 87, 0.07);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-blue);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

ul:last-child, ol:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 0.35em;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink-blue);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

summary {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-blue);
  letter-spacing: 0;
  white-space: nowrap;
  padding: 10px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brick);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-blue);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(178, 83, 56, 0.07);
  border-left-color: var(--brick);
  color: var(--brick);
}

.nav-link.is-current {
  color: var(--brick);
  font-weight: 600;
  border-left-color: var(--brick);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-blue);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav-list {
  margin: 0;
  padding: 8px 16px 16px;
  list-style: none;
}

.mobile-nav-list li {
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--ink-blue);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--brick);
}

.mobile-nav-list li:last-child .mobile-nav-link {
  border-bottom: 0;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-blue);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

/* 页标题区 */
.page-header {
  padding: 20px 0 8px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0;
}

/* 页脚 */
.site-footer {
  background: var(--ink-blue);
  color: #E8E2D6;
  margin-top: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #C3CCD6;
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sand);
  margin: 0 0 12px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 0 0 8px;
}

.footer-list a {
  font-size: 14px;
  color: #D9DEE4;
  line-height: 1.6;
  display: inline-block;
  padding: 2px 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 13px;
  color: #A9B4C0;
}

/* --------------------------------------------------------------------------
   components · 通用部件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--brick);
  color: #FFFFFF;
  border-color: var(--brick);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #9A4429;
  border-color: #9A4429;
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-blue);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
  background: rgba(178, 83, 56, 0.06);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

.section-head {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.section-sub,
.section-desc,
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-problem {
  background: rgba(178, 83, 56, 0.12);
  color: var(--brick);
}

.tag-action {
  background: rgba(95, 125, 110, 0.14);
  color: var(--mist-green);
}

.tag-genre {
  background: rgba(216, 162, 74, 0.18);
  color: #8A6118;
}

/* 图片容器 */
.content-media,
.content-figure,
.hero-figure,
.section-figure,
.process-figure,
.faq-figure,
.archive-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-media img,
.content-figure img,
.hero-figure img,
.section-figure img,
.process-figure img,
.faq-figure img,
.archive-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.content-media figcaption,
.content-figure figcaption,
.hero-figure figcaption,
.section-figure figcaption,
.process-figure figcaption,
.faq-figure figcaption,
.archive-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #FBF8F2;
}

/* FAQ 手风琴 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  line-height: 1.6;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--brick);
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 16px 20px 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.faq-answer p {
  margin: 0;
}

/* 相关链接条 */
.related-links {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--ink-blue);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
}

/* 链接箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brick);
}

.link-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(3px);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.process-table {
  min-width: 100%;
  font-size: 15px;
}

.data-table th,
.data-table td,
.process-table th,
.process-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.data-table thead th,
.process-table thead th {
  background: #F1EBE0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-blue);
  white-space: nowrap;
}

.data-table tbody th,
.process-table tbody th {
  font-weight: 600;
  color: var(--ink-blue);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.process-table tbody tr:last-child th,
.process-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.process-table tbody tr:hover {
  background: #FBF8F2;
}

/* 侧栏卡片 */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checklist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.sidebar-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.sidebar-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-link-list li {
  margin: 0 0 8px;
}

.sidebar-link-list li:last-child {
  margin-bottom: 0;
}

.sidebar-link-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--ink-blue);
  background: #FBF8F2;
  border-left: 2px solid var(--line-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.sidebar-link-list a:hover,
.sidebar-link-list a:focus-visible {
  border-left-color: var(--brick);
  background: rgba(178, 83, 56, 0.06);
  color: var(--brick);
}

/* 页内锚点导航 */
.page-anchors,
.page-anchor-nav,
.anchor-nav,
.page-anchor,
.page-toc {
  margin-top: 16px;
}

.page-anchor-list,
.anchor-list,
.anchor-nav-list,
.page-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-anchor-list li,
.anchor-list li,
.anchor-nav-list li,
.page-toc-list li {
  margin: 0;
}

.page-anchor-list a,
.anchor-list a,
.anchor-nav-list a,
.page-toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--ink-blue);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.page-anchor-list a:hover,
.anchor-list a:hover,
.anchor-nav-list a:hover,
.page-toc-list a:hover,
.page-anchor-list a:focus-visible,
.anchor-list a:focus-visible,
.anchor-nav-list a:focus-visible,
.page-toc-list a:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-toc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-blue);
  background: rgba(216, 162, 74, 0.2);
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 26px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 关键路径条 */
.path-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.path-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 16px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.path-item {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.path-item:first-child {
  border-left: 0;
}

.path-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 4px;
}

.path-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 6px;
}

.path-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.content-media-primary {
  max-width: 1072px;
  margin: 28px auto 0;
}

.content-media-primary img {
  aspect-ratio: 16 / 7;
}

/* 年度档案索引 */
.archive-index {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.year-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.year-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-blue);
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.year-btn:hover {
  border-left-color: var(--brick);
  color: var(--brick);
}

.year-btn.is-active {
  background: rgba(178, 83, 56, 0.09);
  border-left-color: var(--brick);
  color: var(--brick);
}

.archive-panel {
  min-width: 0;
}

.month-group {
  margin-bottom: 24px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.archive-entry {
  padding: 12px 0 12px 14px;
  border-left: 2px solid transparent;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.archive-entry:hover {
  border-left-color: var(--brick);
  background: #FBF8F2;
}

.entry-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8A6118;
  background: rgba(216, 162, 74, 0.18);
  border-radius: var(--radius-sm);
}

.entry-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 6px;
}

.entry-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.archive-more {
  margin: 20px 0 0;
}

/* 服务范围速览 */
.service-overview {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
}

.service-rows {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) 32px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink-blue);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.service-row:first-child {
  border-top: 0;
}

.service-row:hover,
.service-row:focus-visible {
  background: #FBF8F2;
  border-left-color: var(--brick);
  color: var(--ink-blue);
}

.row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
}

.row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
}

.row-stage,
.row-output {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.row-arrow {
  justify-self: end;
  font-size: 16px;
  color: var(--brick);
  transition: transform 160ms ease;
}

.service-row:hover .row-arrow,
.service-row:focus-visible .row-arrow {
  transform: translateX(3px);
}

/* 适用场景对照 */
.scenario-compare {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
}

.scenario-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stage-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
}

.stage-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0;
}

.stage-desc {
  min-width: 0;
}

.stage-problem {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.stage-action {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.scenario-more {
  margin: 20px 0 0;
}

/* 合作边界 */
.boundary {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
}

.boundary-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.boundary-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.we-do .boundary-title {
  border-bottom-color: rgba(95, 125, 110, 0.4);
}

.we-dont .boundary-title {
  border-bottom-color: rgba(178, 83, 56, 0.35);
}

.boundary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.75;
}

.boundary-list li:last-child {
  margin-bottom: 0;
}

.we-do .boundary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mist-green);
  font-weight: 600;
}

.we-dont .boundary-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--brick);
  font-weight: 600;
}

/* 常见问题预览 */
.faq-preview {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
}

.faq-more {
  margin: 20px 0 0;
}

/* 合作入口条 */
.cta-strip {
  background: var(--ink-blue);
  color: #FFFFFF;
}

.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-text {
  min-width: 0;
  flex: 1 1 380px;
}

.cta-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.cta-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #C3CCD6;
}

.cta-inner .btn-primary {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   pages · 内页通用
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 8px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.page-hero-text {
  min-width: 0;
  max-width: 760px;
}

.page-lead,
.page-hero-summary,
.page-summary {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-head-main {
  min-width: 0;
  max-width: 760px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding-top: 32px;
  align-items: start;
}

.page-main-col,
.page-content {
  min-width: 0;
}

.page-sidebar {
  min-width: 0;
}

/* 服务范围页 */
.section-services {
  padding-top: 32px;
}

.service-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.service-item:last-of-type {
  margin-bottom: 0;
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.service-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
}

.service-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0;
}

.service-stage {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mist-green);
  background: rgba(95, 125, 110, 0.13);
  border-radius: var(--radius-sm);
}

.service-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 16px;
}

.service-deliver {
  padding: 14px 16px;
  background: #FBF8F2;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.service-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.service-list {
  margin: 0;
  padding-left: 1.15em;
}

.service-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.service-exclude {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.service-exclude-label {
  font-weight: 600;
  color: var(--brick);
  margin-right: 6px;
}

.section-services .content-figure {
  margin-top: 24px;
}

.section-services .content-figure img {
  aspect-ratio: 16 / 8;
}

.section-stage-table {
  padding-top: 8px;
}

.combine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.combine-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.combine-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.combine-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.extend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.extend-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.extend-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 6px;
}

.extend-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.extend-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brick);
}

.extend-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform 160ms ease;
}

.extend-link:hover::after,
.extend-link:focus-visible::after {
  transform: translateX(3px);
}

/* 适用场景页 */
.stage-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.stage-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
}

.stage-row .stage-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0;
}

.stage-body {
  min-width: 0;
}

.stage-body .stage-problem {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.stage-body .stage-action {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.stage-body .tag {
  margin-right: 8px;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.genre-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 10px;
}

.genre-name .tag {
  margin-left: 8px;
  vertical-align: middle;
}

.genre-require {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.genre-risk {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

.team-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.team-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.team-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.team-list {
  margin: 0;
  padding-left: 1.15em;
}

.team-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.section-figure {
  margin-top: 32px;
}

.section-figure img {
  aspect-ratio: 16 / 7;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.next-card:hover,
.next-card:focus-visible {
  border-left-color: var(--brick);
  background: #FBF8F2;
}

.next-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
}

.next-card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 合作流程页 */
.process-stages {
  padding-bottom: 8px;
}

.stage-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.stage-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
}

.stage-head .stage-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0;
}

.stage-tag {
  margin-left: auto;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mist-green);
  background: rgba(95, 125, 110, 0.13);
  border-radius: var(--radius-sm);
}

.stage-item .stage-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 14px;
}

.stage-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.stage-meta-row dt {
  font-weight: 600;
  color: var(--ink-blue);
}

.stage-meta-row dd {
  margin: 0;
  color: var(--muted);
}

.process-materials {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.process-figure {
  margin: 0 0 20px;
}

.process-figure img {
  aspect-ratio: 16 / 8;
}

.process-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-division {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.division-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.division-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.division-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.division-col-author h3 {
  border-bottom-color: rgba(178, 83, 56, 0.35);
}

.division-col-editor h3 {
  border-bottom-color: rgba(95, 125, 110, 0.4);
}

.division-list {
  margin: 0;
  padding-left: 1.15em;
}

.division-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* 年度档案页 */
.page-title-area {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-title-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.page-title-text {
  min-width: 0;
  max-width: 760px;
}

.archive-year-section {
  padding-top: 32px;
  border-top: 0;
}

.section-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 16px;
}

.year-index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.year-chip {
  min-height: 44px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-blue);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.year-chip:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.year-chip.is-current {
  background: var(--brick);
  border-color: var(--brick);
  color: #FFFFFF;
}

.year-index-summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.archive-entries-section {
  padding-top: 32px;
}

.archive-month-group {
  margin-bottom: 20px;
}

.archive-month-group:last-child {
  margin-bottom: 0;
}

.archive-month-group .month-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.archive-entries-section .archive-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  padding: 20px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color 160ms ease;
}

.archive-entries-section .archive-entry:hover {
  border-left-color: var(--brick);
}

.entry-main {
  min-width: 0;
}

.entry-main .entry-tag {
  margin: 0 0 8px;
}

.entry-main .entry-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.entry-abstract {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}

.entry-side {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.entry-toc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}

.entry-toc {
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.entry-toc li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 4px;
}

.entry-source {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.archive-empty-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.empty-note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.empty-note-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 10px;
}

.empty-note-list {
  margin: 0 0 12px;
  padding-left: 1.15em;
}

.empty-note-list li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.empty-note-link {
  margin: 0;
}

.archive-sources-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.sources-main {
  min-width: 0;
}

.sources-main p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.archive-figure img {
  aspect-ratio: 4 / 3;
}

.archive-erratum-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.erratum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.erratum-main {
  min-width: 0;
}

.erratum-main p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.erratum-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.erratum-entry-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}

.erratum-entry p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 10px;
}

.archive-more-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.more-entry-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.more-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.more-entry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.more-entry p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 10px;
}

/* 常见问题页 */
.faq-group {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.faq-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.faq-group-head {
  margin-bottom: 16px;
}

.faq-group-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 4px;
}

.faq-group-head h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 6px;
}

.faq-group-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-figure {
  margin: 8px 0 32px;
}

.faq-figure img {
  aspect-ratio: 16 / 7;
}

.entry-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.entry-bar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.entry-bar-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 16px;
}

.entry-bar-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  border-left-color: var(--brick);
  background: rgba(178, 83, 56, 0.05);
}

.entry-link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-blue);
}

.entry-link-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 合作联系页 */
.page-contact .page-title {
  margin-bottom: 4px;
}

.page-contact .page-title-main {
  min-width: 0;
}

.page-contact .page-title {
  padding-top: 8px;
}

.page-contact .content-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.page-contact .content-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.page-contact .content-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 8px;
}

.checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brick);
  background: rgba(178, 83, 56, 0.1);
  border-radius: 50%;
}

.checklist-body {
  min-width: 0;
}

.checklist-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 4px;
}

.checklist-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 6px;
}

.checklist-example {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  padding: 8px 12px;
  background: #FBF8F2;
  border-left: 2px solid var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sequence-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sequence-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.sequence-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.sequence-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--ink-blue);
  border-radius: 50%;
}

.sequence-body {
  min-width: 0;
}

.sequence-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 4px;
}

.sequence-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.materials-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.materials-item {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.materials-item:last-child {
  margin-bottom: 0;
}

.materials-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 4px;
}

.materials-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.page-contact .content-figure {
  margin-top: 24px;
}

.page-contact .content-figure img {
  aspect-ratio: 16 / 8;
}

.not-fit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-fit-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.not-fit-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.not-fit-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
  margin: 0 0 4px;
}

.not-fit-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* 404 页 */
.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--sand);
  margin: 0 0 10px;
}

.error-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 20px;
}

.error-links {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-links li {
  margin: 0;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--ink-blue);
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.error-link:hover,
.error-link:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }

  .hero-title {
    font-size: 34px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 60px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 20px 28px;
    gap: 24px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-figure {
    order: 0;
  }

  .path-strip {
    padding: 24px 20px 0;
  }

  .path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .path-item:first-child {
    border-top: 0;
  }

  .content-media-primary {
    margin: 20px 20px 0;
  }

  .archive-index,
  .service-overview,
  .scenario-compare,
  .boundary,
  .faq-preview {
    padding: 36px 20px;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .year-rail {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .year-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    text-align: center;
  }

  .service-row {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 10px 12px;
    padding: 14px 16px;
  }

  .row-num {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 2px;
  }

  .row-name {
    grid-column: 2;
  }

  .row-stage {
    grid-column: 2;
    grid-row: 2;
  }

  .row-output {
    grid-column: 2;
    grid-row: 3;
  }

  .row-arrow {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
  }

  .scenario-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .stage-cell {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .boundary-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    padding: 28px 20px;
  }

  .inner-main {
    padding: 0 20px 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
  }

  .page-sidebar {
    order: 2;
  }

  .combine-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .extend-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .stage-label {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .team-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-meta-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .division-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-entries-section .archive-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .entry-side {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .sources-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .erratum-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .more-entry-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-bar-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-bottom p {
    padding: 16px 20px;
  }

  .related-links {
    padding: 18px 20px 32px;
  }

  .error-main {
    padding: 40px 20px 56px;
  }

  .error-panel {
    padding: 28px 22px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-inner {
    padding: 24px 16px 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .path-strip {
    padding: 20px 16px 0;
  }

  .path-item {
    padding: 16px;
  }

  .content-media-primary {
    margin: 16px 16px 0;
  }

  .content-media-primary img {
    aspect-ratio: 4 / 3;
  }

  .archive-index,
  .service-overview,
  .scenario-compare,
  .boundary,
  .faq-preview {
    padding: 28px 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .archive-layout {
    padding: 16px;
  }

  .service-row {
    padding: 14px;
  }

  .row-name {
    font-size: 15px;
  }

  .scenario-row {
    padding: 16px;
  }

  .boundary-col {
    padding: 18px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 14px 16px 16px;
    font-size: 14px;
  }

  .cta-inner {
    padding: 24px 16px;
    gap: 16px;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .page-header {
    padding: 16px 0 6px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-lead,
  .page-hero-summary,
  .page-summary {
    font-size: 15px;
  }

  .page-anchor-list a,
  .anchor-list a,
  .anchor-nav-list a,
  .page-toc-list a {
    font-size: 13px;
    padding: 4px 12px;
  }

  .section {
    padding: 28px 0;
  }

  .service-item {
    padding: 18px;
  }

  .service-name {
    font-size: 18px;
  }

  .stage-row {
    padding: 16px;
  }

  .stage-head {
    gap: 8px;
  }

  .stage-tag {
    margin-left: 0;
  }

  .stage-meta-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .stage-item {
    padding: 18px;
  }

  .process-figure img {
    aspect-ratio: 4 / 3;
  }

  .division-col {
    padding: 18px;
  }

  .year-index-bar {
    gap: 8px;
  }

  .year-chip {
    padding: 8px 14px;
    font-size: 14px;
  }

  .archive-entries-section .archive-entry {
    padding: 16px;
  }

  .entry-main .entry-title {
    font-size: 16px;
  }

  .empty-note-box {
    padding: 16px;
  }

  .erratum-entry {
    padding: 16px;
  }

  .more-entry {
    padding: 16px;
  }

  .faq-group {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .faq-group-head h2 {
    font-size: 20px;
  }

  .entry-bar {
    padding: 18px;
  }

  .entry-bar-title {
    font-size: 18px;
  }

  .page-contact .content-section {
    padding: 24px 0;
  }

  .page-contact .content-section h2 {
    font-size: 20px;
  }

  .checklist-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .checklist-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .sequence-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .sidebar-card {
    padding: 16px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-inner {
    padding: 28px 16px 20px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .related-links {
    padding: 16px 16px 28px;
  }

  .data-table th,
  .data-table td,
  .process-table th,
  .process-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
