/* ==========================================================================
   黑料网址 zhnsfw.cn — 全站样式表
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f6f7f9;
  --bg-panel: #ffffff;
  --text-strong: #0f1720;
  --text-muted: #5a6472;
  --accent: #1c6fd6;
  --accent-soft: #e8f1fc;
  --line: #d8dee6;
  --ok: #1f7a5a;
  --warn: #b45309;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1160px;
  --narrow: 880px;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-strong);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #1558ab;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

summary {
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架：页头、主导航、主容器、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-strong);
  font-family: var(--font-cn);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px 0;
}

.brand-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0;
}

.brand-link:hover {
  color: var(--accent);
}

.brand-slogan {
  font-size: 13px;
  color: var(--text-muted);
}

.site-nav {
  display: block;
  margin-top: 10px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  border-bottom: 1px solid var(--line);
}

.nav-list > li {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 9px 0 11px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-strong);
  border-bottom-color: var(--line);
}

.nav-link.is-current,
.nav-link.is-active {
  color: var(--text-strong);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
}

.rules-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px;
  background: var(--accent-soft);
  border: 1px solid #cfe1f7;
  border-radius: 999px;
  font-size: 13px;
  color: #1558ab;
}

.rules-entry:hover {
  background: #dbeafb;
  color: #124a92;
}

.rules-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.rules-text {
  white-space: nowrap;
}

.rules-version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 1px solid #c3d8f1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  position: relative;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: var(--text-strong);
  box-shadow: 0 6px 0 var(--text-strong), 0 12px 0 var(--text-strong);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 6px 0 14px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  display: block;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list .nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0;
  border-bottom: 0;
  font-size: 16px;
}

.mobile-nav-list .nav-link.is-active {
  color: var(--accent);
}

.mobile-actions {
  padding-top: 12px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main,
.inner-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #a9b3c0;
}

.breadcrumb-current {
  color: var(--text-strong);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-strong);
}

.page-head {
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}

.page-lead {
  max-width: 800px;
  font-size: 15px;
  color: var(--text-muted);
}

.page-head-inner {
  display: block;
}

.version-tag,
.page-version-tag,
.page-version {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 12px;
  color: #1558ab;
}

.site-footer {
  flex: none;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 20px 30px;
}

.footer-brand {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.footer-brand-desc {
  margin-top: 4px;
  max-width: 780px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.footer-col-list > li {
  margin-bottom: 6px;
}

.footer-col-list a {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.footer-col-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-meta-item {
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--line);
}

.footer-meta-item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

/* 通用布局容器 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-top: 26px;
}

/* 侧栏在前的布局：aside 与 main 同为容器直接子元素 */
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.narrow-container {
  max-width: var(--narrow);
  margin: 0 auto;
  padding-top: 26px;
}

.workflow-shell {
  max-width: var(--narrow);
  margin: 0 auto;
  padding-top: 22px;
}

/* --------------------------------------------------------------------------
   components — 通用组件：区块头、表格、卡片、折叠、按钮、图片
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 820px;
}

.section-text {
  margin-top: 10px;
  font-size: 15px;
  color: #2c3542;
  max-width: 800px;
}

.section-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.link-arrow {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.link-arrow::after {
  content: " →";
}

.link-arrow:hover {
  border-bottom-color: var(--accent);
}

.text-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
}

.text-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1558ab;
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-panel);
  color: var(--text-strong);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 表格 */
.table-wrap,
.table-scroll {
  overflow-x: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.verify-table {
  min-width: 640px;
  font-size: 14px;
}

.data-table caption,
.verify-table caption,
.table-caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  caption-side: top;
}

.data-table thead th,
.verify-table thead th {
  text-align: left;
  padding: 11px 14px;
  background: #f2f4f7;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td,
.verify-table tbody th,
.verify-table tbody td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #eaeef3;
  vertical-align: top;
  line-height: 1.6;
  color: #2c3542;
}

.data-table tbody th,
.verify-table tbody th {
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.verify-table tbody tr:last-child th,
.verify-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.verify-table tbody tr:hover {
  background: #f7f9fc;
}

.table-note,
.table-more,
.workflow-more,
.changelog-more,
.delivery-more,
.faq-more {
  margin-top: 12px;
  font-size: 14px;
}

/* 图片容器：统一宽高约束，避免布局抖动 */
.hero-media,
.table-figure,
.section-figure,
.content-figure,
.workflow-figure,
.rules-figure,
.doc-figure,
.media-figure,
.faq-media {
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-media img,
.table-figure img,
.section-figure img,
.content-figure img,
.workflow-figure img,
.rules-figure img,
.doc-figure img,
.media-figure img,
.faq-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #eef1f5;
}

.hero-caption,
.table-caption,
.section-figure figcaption,
.figure-caption,
.workflow-figure-caption,
.rules-figure-caption,
.doc-figure-caption,
.media-caption,
.faq-media-caption {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 折叠问答 */
.faq-list {
  display: block;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.faq-question::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
}

.faq-details[open] > .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: #2c3542;
  border-top: 1px solid #eef1f5;
}

.faq-answer p {
  padding-top: 12px;
}

/* 关联栏目入口 */
.related-list {
  display: block;
}

.related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.related-item:last-child {
  border-bottom: 0;
}

.related-link {
  font-weight: 600;
}

.related-desc {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 侧栏卡片 */
.side-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.side-card-title,
.side-title,
.aside-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.side-card .version-number,
.version-number {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
}

.side-card .version-desc,
.version-desc,
.side-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.side-list > li {
  padding: 7px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
}

.side-list > li:last-child {
  border-bottom: 0;
}

.side-link {
  margin-top: 8px;
  font-size: 13px;
}

/* 关联卡片网格：按内容数量自动分列，避免末行落单 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-card:hover {
  border-color: var(--accent);
}

.related-card-title,
.related-card-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.related-card-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-lead {
  margin-top: 14px;
  font-size: 15px;
  color: #2c3542;
}

.hero-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-index,
.verify-table-section,
.workflow-steps,
.changelog,
.delivery,
.faq-preview,
.cooperation-entry {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 20px 0;
}

.cooperation-entry {
  padding-bottom: 56px;
}

.index-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.index-col {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.index-col-title {
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.index-nav-list > li {
  padding: 8px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
}

.index-nav-list > li:last-child {
  border-bottom: 0;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.service-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  padding: 1px 8px;
  background: #f2f4f7;
  border-radius: var(--radius-sm);
}

.note-item {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 13px;
  color: #2c3542;
  border-bottom: 1px solid #eef1f5;
}

.note-item:last-child {
  border-bottom: 0;
}

.note-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.table-figure {
  margin-bottom: 16px;
}

.table-figure img {
  aspect-ratio: 16 / 6;
}

.verify-table tbody th {
  border-left: 0;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-num {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.step-action {
  font-size: 14px;
  color: #2c3542;
}

.step-result,
.step-exception {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.step-exception {
  color: var(--warn);
}

.changelog-list {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.changelog-item {
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
}

.changelog-item:last-child {
  border-bottom: 0;
}

.changelog-version {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.changelog-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #2c3542;
}

.changelog-impact {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.delivery-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.delivery-text {
  font-size: 14px;
  color: #2c3542;
}

.cooperation-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 28px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.cooperation-content h2 {
  font-size: 20px;
  font-weight: 600;
}

.cooperation-text {
  margin-top: 10px;
  font-size: 14px;
  color: #2c3542;
}

.cooperation-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.cooperation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cooperation-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cooperation-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-strong);
}

.copy-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-link-btn.is-copied {
  color: var(--ok);
  border-color: var(--ok);
}

/* pages — 核验服务（侧栏在前） */
.services-index {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: sticky;
  top: 16px;
}

.index-list > li {
  border-bottom: 1px solid #eef1f5;
}

.index-list > li:last-child {
  border-bottom: 0;
}

.index-link {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.index-link:hover {
  color: var(--accent);
}

.index-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.services-main {
  min-width: 0;
}

.overview-section .section-figure {
  margin-top: 14px;
}

.overview-section .section-figure img {
  aspect-ratio: 16 / 6;
}

.services-list-section .service-item {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  scroll-margin-top: 16px;
}

.services-list-section .service-item:last-child {
  margin-bottom: 0;
}

.services-list-section .service-name {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.service-detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
}

.service-detail dt {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 2px;
}

.service-detail dd {
  font-size: 14px;
  color: #2c3542;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.material-col {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.material-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.material-list > li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 14px;
  color: #2c3542;
}

.material-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* pages — 核验项清单 */
.main-column {
  min-width: 0;
}

.content-section {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.content-section .section-title {
  font-size: 19px;
}

.anomaly-list {
  margin-top: 4px;
}

.anomaly-item {
  padding: 12px 0;
  border-bottom: 1px solid #eef1f5;
}

.anomaly-item:last-child {
  border-bottom: 0;
}

.anomaly-term {
  font-size: 14px;
  font-weight: 600;
  color: var(--warn);
}

.anomaly-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #2c3542;
}

.record-steps {
  counter-reset: record;
}

.record-step {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #eef1f5;
}

.record-step:last-child {
  border-bottom: 0;
}

.record-step::before {
  counter-increment: record;
  content: counter(record);
  position: absolute;
  left: 0;
  top: 13px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  color: #1558ab;
}

.record-step-title {
  font-size: 15px;
  font-weight: 600;
}

.record-step-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #2c3542;
}

.side-column {
  min-width: 0;
}

.content-figure {
  margin-top: 20px;
}

.content-figure img {
  aspect-ratio: 16 / 7;
}

/* pages — 核验流程 */
.steps-index {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.steps-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.steps-index-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  background: #f2f4f7;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.steps-index-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.workflow-figure {
  margin-bottom: 24px;
}

.workflow-figure img {
  aspect-ratio: 16 / 6;
}

.workflow-shell .workflow-steps {
  max-width: none;
  padding: 0;
}

.workflow-shell .workflow-steps .step-list {
  display: block;
}

.workflow-shell .workflow-steps .step-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 0;
  scroll-margin-top: 16px;
}

.workflow-shell .workflow-steps .step-item:last-child {
  border-bottom: 1px solid var(--line);
}

.workflow-shell .step-block {
  display: block;
}

.workflow-shell .workflow-steps .step-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.workflow-shell .step-detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
}

.workflow-shell .step-detail-term {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 2px;
}

.workflow-shell .step-detail-desc {
  font-size: 14px;
  color: #2c3542;
}

.workflow-notes {
  margin-top: 28px;
}

.notes-fields {
  margin-top: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.notes-fields-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.notes-field-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
}

.notes-field-item:last-child {
  border-bottom: 0;
}

.notes-field-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.related-entry {
  margin-top: 28px;
}

.related-entry .related-list {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

/* pages — 规则库版本 */
.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid #cfe1f7;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.version-bar-main {
  min-width: 0;
}

.version-bar-label {
  font-size: 13px;
  color: #1558ab;
}

.version-bar-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: #124a92;
}

.version-bar-note {
  margin-top: 4px;
  font-size: 13px;
  color: #2c4a6e;
}

.version-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.version-switch-btn {
  min-height: 36px;
  padding: 0 12px;
  background: var(--bg-panel);
  border: 1px solid #c3d8f1;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  color: #1558ab;
}

.version-switch-btn:hover {
  border-color: var(--accent);
}

.version-switch-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.version-list {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.version-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.version-item:last-child {
  border-bottom: 0;
}

.version-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.version-item-title {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.version-item-flag {
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #1558ab;
}

.version-item-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

.change-list > li,
.affected-list > li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 14px;
  color: #2c3542;
}

.change-list > li::before,
.affected-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.change-list > li::before {
  background: var(--accent);
}

.rules-figure {
  margin-top: 24px;
}

.rules-figure img {
  aspect-ratio: 16 / 6;
}

.related {
  margin-top: 28px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.related-links-label {
  color: var(--text-muted);
}

.related-links-item {
  color: var(--accent);
}

/* pages — 服务边界 */
.doc-figure {
  margin-top: 22px;
}

.doc-figure img {
  aspect-ratio: 16 / 6;
}

.boundary-section {
  margin-top: 32px;
  scroll-margin-top: 16px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-col {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.scope-col--cover {
  border-top: 3px solid var(--accent);
}

.scope-col--exclude {
  border-top: 3px solid var(--line);
}

.scope-col-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.scope-item {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  color: #2c3542;
  border-bottom: 1px solid #eef1f5;
}

.scope-item:last-child {
  border-bottom: 0;
}

.scope-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 12px;
  color: var(--accent);
}

.scope-col--exclude .scope-item::before {
  content: "—";
  color: var(--text-muted);
}

.condition-list {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.condition-item {
  padding: 14px 0;
  border-bottom: 1px solid #eef1f5;
}

.condition-item:last-child {
  border-bottom: 0;
}

.condition-term {
  font-size: 15px;
  font-weight: 600;
}

.condition-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #2c3542;
}

.usage-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usage-block {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.usage-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.usage-text {
  font-size: 14px;
  color: #2c3542;
}

/* pages — 合作接入 */
.content-main {
  min-width: 0;
}

.access-steps {
  counter-reset: access;
}

.access-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 54px;
  margin-bottom: 12px;
  scroll-margin-top: 16px;
}

.access-step:last-child {
  margin-bottom: 0;
}

.access-step::before {
  counter-increment: access;
  content: counter(access);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  color: #1558ab;
}

.access-step .step-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.access-step .step-action {
  font-size: 14px;
  color: #2c3542;
}

.access-step .step-material,
.access-step .step-output {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.entry-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.entry-desc {
  font-size: 14px;
  color: #2c3542;
}

.content-side {
  min-width: 0;
}

/* pages — 常见问题 */
.faq-layout {
  max-width: var(--narrow);
  margin: 0 auto;
  padding-top: 24px;
}

.faq-media {
  margin-bottom: 24px;
}

.faq-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.faq-group {
  margin-bottom: 30px;
}

.faq-related {
  margin-top: 32px;
}

.faq-related .related-list {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.faq-related .related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.faq-related .related-desc {
  margin-top: 0;
}

/* pages — 404 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 70px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
}

.error-code {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 8px;
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.error-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: #f2f4f7;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-strong);
}

.error-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.error-actions {
  margin-top: 20px;
}

.error-home-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  color: #ffffff;
}

.error-home-btn:hover {
  background: #1558ab;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   responsive — 900px / 640px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px 0;
  }

  .site-nav {
    margin-top: 0;
  }

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    padding: 10px 0 12px;
  }

  .inner-main {
    padding: 0 16px 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 16px 32px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .service-index,
  .verify-table-section,
  .workflow-steps,
  .changelog,
  .delivery,
  .faq-preview,
  .cooperation-entry {
    padding: 32px 16px 0;
  }

  .cooperation-entry {
    padding-bottom: 44px;
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .delivery-grid,
  .material-grid,
  .scope-columns,
  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cooperation-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .services-index {
    position: static;
    order: 2;
  }

  .services-index .index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .services-index .index-list > li {
    border-bottom: 0;
  }

  .services-index .index-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #f2f4f7;
    border-radius: var(--radius-sm);
  }

  .services-main {
    order: 1;
  }

  .side-column {
    order: 3;
  }

  .usage-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand-row {
    gap: 8px;
  }

  .brand-link {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .rules-version {
    display: none;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid,
  .usage-blocks,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-detail,
  .workflow-shell .step-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .service-detail dt,
  .workflow-shell .step-detail-term {
    padding-top: 8px;
    font-weight: 600;
  }

  .content-section {
    padding: 16px 14px;
  }

  .services-list-section .service-item {
    padding: 14px 15px;
  }

  .version-bar {
    padding: 14px;
  }

  .version-bar-value {
    font-size: 19px;
  }

  .version-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .version-switch-btn {
    flex: none;
  }

  .steps-index-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .steps-index-link {
    flex: none;
  }

  .access-step {
    padding: 14px 15px 14px 48px;
  }

  .access-step::before {
    left: 14px;
    top: 15px;
  }

  .error-inner {
    padding: 22px 18px;
  }

  .error-code {
    font-size: 32px;
  }

  .footer-inner {
    padding: 22px 16px 26px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
  }

  .footer-meta-item {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav-link,
  .rules-entry,
  .related-card,
  .copy-link-btn,
  .version-switch-btn,
  .index-link,
  .text-link {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
