/* ==========================================================================
   51吃瓜网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbf8;
  --panel: #ffffff;
  --ink: #23211e;
  --ink-soft: #5c5852;
  --primary: #1f5c4d;
  --primary-soft: #e3ede8;
  --line: #dcd8d0;
  --status-open: #1f5c4d;
  --status-pending: #a4560c;
  --status-closed: #7a7a72;
  --radius: 4px;
  --shell-max: 1120px;
  --content-max: 760px;
  --aside-w: 300px;
  --gap: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: #17463a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.35rem);
  font-weight: 700;
  letter-spacing: 0;
}

h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }

p {
  margin: 0 0 16px;
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

li {
  margin-bottom: 8px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
}

.brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.brand-tagline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-left: 18px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
  white-space: nowrap;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 12px 10px;
  min-height: 44px;
  line-height: 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.container {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 面包屑 */

.breadcrumb {
  padding: 20px 0 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */

.page-header {
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.page-description {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.page-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 18px;
  font-size: 0.84rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--font-mono);
  color: var(--ink);
  padding: 2px 8px;
  background: var(--primary-soft);
  border-radius: var(--radius);
}

.page-header-actions {
  margin-top: 18px;
}

/* 页脚 */

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin: 0 0 8px;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
  min-height: 32px;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. components · 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #17463a;
  border-color: #17463a;
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.btn-print {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--panel);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
}

.btn-print:hover {
  background: var(--primary-soft);
}

/* 小标签 */

.eyebrow,
.section-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

/* 区块标题 */

.section-head {
  margin-bottom: 22px;
  max-width: 72ch;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
}

.section-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.section-num,
.sec-num,
.h-num {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  color: var(--primary);
  vertical-align: 0.08em;
}

.section-note,
.table-note,
.section-foot,
.block-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-note a,
.table-note a,
.section-foot a,
.block-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.aside-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 数据表 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.65;
  min-width: 560px;
}

.data-table caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--primary-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody td {
  color: var(--ink-soft);
}

.data-table tbody tr:hover {
  background: #f7f7f2;
}

/* 状态徽标 */

.status,
.status-badge {
  display: inline-block;
  padding: 1px 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-open,
.status-badge.status-open {
  color: var(--status-open);
}

.status-pending,
.status-badge.status-pending {
  color: var(--status-pending);
}

.status-closed,
.status-badge.status-closed {
  color: var(--status-closed);
}

/* 定义列表 */

.def-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.def-list dt {
  margin: 0;
  padding-top: 16px;
  font-weight: 600;
  color: var(--ink);
}

.def-list dd {
  margin: 4px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.75;
}

.def-list dd:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.def-list dd a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.def-list-rules .def-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.def-list-rules .def-row:first-child {
  border-top: 1px solid var(--line);
}

.def-list-rules .def-row dt {
  padding-top: 0;
  font-weight: 600;
}

.def-list-rules .def-row dd {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* 字段清单 */

.field-list {
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.field-list dt {
  margin: 0;
  padding: 14px 0 2px;
  font-weight: 600;
  color: var(--ink);
}

.field-list dd {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 步骤列表 */

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.step-item {
  margin: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item h3 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
}

.step-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.step-index,
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 8px;
  border-radius: var(--radius);
}

.step-output {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem !important;
}

/* 列表型组件 */

.check-list,
.materials-list,
.linkage-list,
.exclusion-list,
.criteria-list,
.plain-list,
.tip-list,
.faq-more-links,
.error-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.materials-list li,
.linkage-list li,
.exclusion-list li,
.criteria-list li,
.plain-list li,
.tip-list li {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 16px 12px 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-list li:last-child,
.materials-list li:last-child,
.linkage-list li:last-child,
.exclusion-list li:last-child,
.criteria-list li:last-child,
.plain-list li:last-child,
.tip-list li:last-child {
  margin-bottom: 0;
}

.check-list .check-num,
.materials-list .mat-num {
  position: absolute;
  left: 14px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
}

.exclusion-list li::before,
.criteria-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--primary);
  border-radius: 1px;
}

.linkage-list li strong {
  color: var(--ink);
  margin-right: 6px;
}

/* 侧栏面板 */

.aside-panel,
.aside-block {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.aside-panel:last-child,
.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.aside-intro {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aside-list {
  margin: 0;
  padding: 0;
}

.aside-list dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
}

.aside-list dd {
  margin: 2px 0 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.aside-list dd:last-of-type {
  margin-bottom: 0;
}

.aside-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-index li {
  margin: 0 0 6px;
}

.aside-index a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.aside-index a:hover {
  color: var(--primary);
}

.aside-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.aside-links li {
  margin: 0 0 6px;
}

.aside-links a {
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 图片容器 */

.hero-media,
.feature-media,
.page-media,
.content-figure,
.section-figure,
.page-hero-media,
.service-media {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.feature-media img,
.page-media img,
.content-figure img,
.section-figure img,
.page-hero-media img,
.service-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-media figcaption,
.feature-media figcaption,
.page-media figcaption,
.content-figure figcaption,
.section-figure figcaption,
.page-hero-media figcaption {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: 0;
}

.service-media {
  margin: 14px 0 18px;
}

.service-media img {
  max-height: 260px;
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 460px);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 4px 0 16px;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
}

.fit-list {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}

.fit-list-title {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
}

.fit-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 34px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink);
}

.fit-list li:last-child {
  margin-bottom: 0;
}

.fit-num {
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  align-self: start;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

/* 首页通用区块 */

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.section > .section-head,
.section > .table-wrap,
.section > .table-note,
.section > .feature-block,
.section > .def-list,
.section > .step-list,
.section > .faq-brief,
.section > .criteria-list {
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section > .section-head {
  padding-left: 0;
  padding-right: 0;
}

.home-main .section {
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-main .section > .section-head,
.home-main .section > .table-wrap,
.home-main .section > .table-note,
.home-main .section > .feature-block,
.home-main .section > .def-list,
.home-main .section > .step-list,
.home-main .section > .faq-brief {
  padding-left: 0;
  padding-right: 0;
}

.table-note {
  margin-top: 14px;
}

/* 首页图文交替服务块 */

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
}

.feature-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-block-reverse .feature-media {
  order: 2;
}

.feature-block-reverse .feature-copy {
  order: 1;
}

.feature-copy {
  min-width: 0;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.feature-copy p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.feature-points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.7;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.feature-media img {
  aspect-ratio: 4 / 3;
}

/* 首页问题摘要 */

.faq-brief {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-brief-item {
  margin: 0 0 14px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-brief-item:last-child {
  margin-bottom: 0;
}

.faq-brief-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq-brief-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.link-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 首页相关链接 */

.related-links {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.related-links-item {
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--primary);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.related-links-item:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. pages · 内页通用布局
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

/* 默认：正文在前，侧栏在后 */
.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
}

/* 侧栏在前：260px 索引 + 正文 */
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.layout-main,
.page-content {
  min-width: 0;
}

.content-column {
  min-width: 0;
}

.sidebar,
.service-index,
.page-aside {
  min-width: 0;
  position: sticky;
  top: 84px;
}

/* 内页 page-hero */

.page-hero {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner,
.page-hero-main {
  min-width: 0;
}

.page-hero-media {
  margin-top: 24px;
}

.page-hero-media img {
  aspect-ratio: 16 / 9;
}

/* 服务目录页 hero 与标题 */

.page-services .page-hero {
  padding-bottom: 8px;
  border-bottom: 0;
  margin-bottom: 24px;
}

/* 内容区块 */

.content-section,
.content-block {
  margin-bottom: 40px;
}

.content-section:last-child,
.content-block:last-child {
  margin-bottom: 0;
}

.content-section h2,
.content-block h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 600;
}

.content-section > p,
.content-block > p {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   6. pages · 服务目录 services.html
   -------------------------------------------------------------------------- */

.service-index {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: idx;
}

.index-list li {
  margin: 0 0 4px;
}

.index-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.index-list a:hover {
  color: var(--primary);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  flex: none;
}

.service-catalog > h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.service-item {
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-item:last-of-type {
  margin-bottom: 0;
}

.service-item h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.service-fields {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2px 20px;
}

.service-fields dt {
  margin: 0;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
  border-top: 1px solid var(--line);
}

.service-fields dd {
  margin: 0;
  padding: 8px 0;
  color: var(--ink-soft);
  line-height: 1.75;
  border-top: 1px solid var(--line);
}

.service-linkage,
.materials {
  margin-top: 36px;
}

.service-linkage h2,
.materials h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.service-linkage > p,
.materials > p {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   7. pages · 服务档期 schedule.html
   -------------------------------------------------------------------------- */

.page-container {
  max-width: 880px;
  margin: 0 auto;
}

.page-media {
  margin: 0 0 32px;
}

.page-media img {
  aspect-ratio: 16 / 9;
}

.content-section {
  margin-bottom: 36px;
}

.content-section > .section-intro {
  margin-bottom: 16px;
}

.data-table-actions {
  min-width: 480px;
}

.data-table-actions thead th {
  white-space: normal;
}

/* --------------------------------------------------------------------------
   8. pages · 内容规范 standards.html
   -------------------------------------------------------------------------- */

.content-figure {
  margin: 0 0 28px;
}

.content-figure img {
  aspect-ratio: 16 / 9;
}

.criteria-list li {
  padding-left: 46px;
}

.exclusion-list li {
  padding-left: 46px;
}

/* --------------------------------------------------------------------------
   9. pages · 合作入口 cooperation.html
   -------------------------------------------------------------------------- */

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 32px;
  align-items: start;
}

.page-heading-text {
  min-width: 0;
}

.page-heading-panel {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.panel-list {
  margin: 0;
  padding: 0;
}

.panel-list dt {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.panel-list dd {
  margin: 2px 0 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.panel-list dd:last-of-type {
  margin-bottom: 0;
}

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: start;
}

.fields-main {
  min-width: 0;
}

.section-figure {
  margin-top: 24px;
}

.section-figure img {
  aspect-ratio: 16 / 9;
}

.fields-aside {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip-list li {
  font-size: 0.9rem;
  padding: 10px 14px;
}

.section-steps .step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-steps .step-item {
  display: flex;
  flex-direction: column;
}

.section-steps .step-index {
  align-self: flex-start;
}

.section-steps .step-item h3 {
  margin-top: 10px;
}

.section-footnote {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-footnote a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reason-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.reason-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.link-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-cards li {
  margin: 0;
}

.link-cards a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 44px;
}

.link-cards a:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.link-card-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.link-card-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. pages · 项目答疑 faq.html
   -------------------------------------------------------------------------- */

.faq-group {
  max-width: 800px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.faq-group h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.group-intro {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.faq-item {
  margin: 0 0 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-more {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-more h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.faq-more > p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.faq-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-more-links li {
  margin: 0;
}

.faq-more-links a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.faq-more-links a:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   11. pages · 机构说明 about.html
   -------------------------------------------------------------------------- */

.page-about .page-hero {
  padding: 0 0 28px;
  margin-bottom: 28px;
}

.page-about .page-hero-main {
  max-width: 68ch;
}

.page-hero-panel {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kv-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
}

.kv-list dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.kv-list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.page-about .page-aside {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-about .aside-block {
  padding: 0;
  border: 0;
  background: transparent;
  margin-bottom: 20px;
}

.page-about .aside-block h2 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-about .page-content {
  min-width: 0;
}

.boundary-table {
  min-width: 520px;
}

.table-caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   12. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-block {
  max-width: 640px;
  text-align: left;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.error-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
}

.error-desc {
  margin: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.error-actions li {
  margin: 0;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.error-links li {
  margin: 0;
}

.error-links a {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .primary-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 4px 0 10px;
    border-top: 1px solid var(--line);
  }

  .primary-nav ul.is-open {
    display: flex;
  }

  .primary-nav li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--primary);
    background: var(--primary-soft);
  }

  .inner-main,
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media {
    max-width: 560px;
  }

  .page-layout.layout-shell,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .service-index,
  .page-aside {
    position: static;
  }

  .page-layout.sidebar-left .service-index,
  .page-layout.sidebar-left .page-aside {
    order: -1;
  }

  .page-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.site-body {
    font-size: 15.5px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .home-main .section {
    padding: 36px 20px;
  }

  .feature-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .feature-block-reverse .feature-media,
  .feature-block-reverse .feature-copy {
    order: initial;
  }

  .feature-media {
    order: -1;
  }

  .related-links {
    padding: 24px 20px 4px;
  }

  .page-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .page-hero {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .def-list-rules .def-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .service-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .service-fields dt {
    border-top: 0;
    padding-bottom: 0;
  }

  .service-fields dd {
    border-top: 0;
    padding-top: 2px;
  }

  .service-fields dt:first-of-type {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .service-fields dd:first-of-type {
    border-top: 1px solid var(--line);
    padding-top: 2px;
  }

  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .reason-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-container {
    max-width: 100%;
  }

  .kv-list {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .faq-group {
    padding: 0 20px;
  }

  .faq-more {
    margin: 0 20px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .inner-main,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .home-main .section {
    padding: 30px 16px;
  }

  .page-title,
  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .fit-list {
    padding: 16px;
  }

  .fit-list li {
    padding-left: 30px;
  }

  .data-table {
    min-width: 520px;
    font-size: 0.9rem;
  }

  .data-table-actions {
    min-width: 440px;
  }

  .boundary-table {
    min-width: 480px;
  }

  .service-item {
    padding: 18px 16px;
  }

  .service-index,
  .fields-aside,
  .page-hero-panel,
  .page-about .page-aside {
    padding: 16px;
  }

  .check-list li,
  .materials-list li,
  .linkage-list li,
  .exclusion-list li,
  .criteria-list li,
  .plain-list li,
  .tip-list li {
    padding: 12px 14px 12px 42px;
  }

  .check-list .check-num,
  .materials-list .mat-num {
    left: 12px;
  }

  .exclusion-list li::before,
  .criteria-list li::before,
  .plain-list li::before {
    left: 16px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .footer-group h2 {
    margin-bottom: 6px;
  }

  .footer-bottom p {
    padding: 16px;
  }

  .related-links {
    padding: 22px 16px 4px;
  }

  .faq-group {
    padding: 0 16px;
  }

  .faq-more {
    margin: 0 16px;
    padding: 18px 16px;
  }

  .faq-more-links {
    gap: 8px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .error-actions {
    flex-direction: column;
  }
}

/* 打印：只保留标题、档期表与规则说明 */
@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .page-header-actions,
  .page-media,
  .section-note a,
  .sidebar,
  .aside-note {
    display: none !important;
  }

  body.site-body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .inner-main {
    max-width: 100%;
    padding: 0;
  }

  .page-container {
    max-width: 100%;
  }

  .page-header {
    border-bottom: 1px solid #999;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead th {
    background: #eee;
    color: #000;
  }

  .table-wrap {
    overflow: visible;
    border-color: #999;
  }

  .content-section {
    page-break-inside: avoid;
  }

  .def-list-rules .def-row {
    border-bottom: 1px solid #ccc;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
