:root {
  --bg-page: #f5f6f7;
  --bg-content: #ffffff;
  --text-main: #1f2328;
  --text-muted: #6b7280;
  --link-blue: #1b4f9c;
  --link-blue-dark: #143a75;
  --line: #d8dce1;
  --status-green: #2f6f4f;
  --container-max: 1080px;
  --content-width: 760px;
  --aside-width: 240px;
  --gap-col: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-cn: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-main);
  background: var(--bg-page);
}

/* ============ base ============ */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

p {
  margin: 0 0 18px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-blue-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link-blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============ layout ============ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-main);
  background: var(--bg-page);
}

.site-header {
  background: var(--bg-content);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--link-blue);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--link-blue);
}

.nav-link.is-current {
  color: var(--link-blue);
  border-bottom-color: var(--link-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

.site-main {
  display: block;
  background: var(--bg-content);
}

.inner-main {
  background: transparent;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-muted);
}

.page-header {
  padding: 40px 0 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
}

.page-description {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: var(--content-width);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content-width)) var(--aside-width);
  gap: var(--gap-col);
  align-items: start;
  padding-bottom: 56px;
}

.page-content,
.page-main,
.content-column,
.content-main {
  min-width: 0;
}

.page-sidebar,
.sidebar,
.page-aside,
.anchor-aside,
.anchor-nav,
.content-aside,
.page-toc {
  min-width: 0;
}

.sidebar-left .page-layout {
  grid-template-columns: var(--aside-width) minmax(0, var(--content-width));
}

.sidebar-left .page-layout > aside {
  order: -1;
}

.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-slogan {
  font-size: 15px;
  color: var(--text-main);
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-group a {
  font-size: 14px;
  line-height: 28px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav-group a:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

.footer-boundary {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-boundary p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.footer-copyright {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ============ components ============ */

.text-link {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--link-blue-dark);
}

.section {
  padding: 48px 0;
  background: var(--bg-content);
}

.section-alt {
  background: var(--bg-page);
}

.section .container > h2,
.section-alt .container > h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 24px;
}

.section-more {
  margin-top: 20px;
  font-size: 15px;
}

.content-figure,
.section-figure,
.article-media,
.page-figure {
  margin: 24px 0;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-figure img,
.section-figure img,
.article-media img,
.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-page);
}

.content-figure figcaption,
.section-figure figcaption,
.article-media figcaption,
.page-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-content);
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--bg-content);
}

.status-new,
.status-ok {
  color: var(--status-green);
  border-color: #b8d3c5;
  background: #f0f6f2;
}

.status-fixed {
  color: var(--link-blue);
  border-color: #b9cbe6;
  background: #eef3fa;
}

.status-current {
  color: var(--status-green);
  border-color: #b8d3c5;
  background: #f0f6f2;
}

.status-pending {
  color: #8a6100;
  border-color: #e0cfa4;
  background: #faf5e8;
}

.status-replaced {
  color: var(--text-muted);
  border-color: var(--line);
  background: var(--bg-page);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: var(--link-blue);
  border-color: var(--link-blue);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px 40px;
  font-size: 15px;
}

.related-links-label {
  font-size: 13px;
  color: var(--text-muted);
}

.related-links-item {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 侧栏目录 */
.sidebar-title,
.aside-title,
.anchor-nav-title,
.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.sidebar,
.anchor-aside,
.anchor-nav,
.content-aside,
.page-aside,
.page-toc {
  position: sticky;
  top: 84px;
}

.sidebar-list,
.anchor-list,
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list a,
.anchor-list a,
.toc-list a {
  display: block;
  min-height: 36px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.sidebar-list a:hover,
.anchor-list a:hover,
.toc-list a:hover {
  color: var(--link-blue);
}

.sidebar-list a.is-active,
.anchor-list a.is-active,
.toc-list a.is-active {
  color: var(--link-blue);
  border-left-color: var(--link-blue);
  font-weight: 600;
}

/* 小节筛选条 */
.section-filter {
  background: var(--bg-content);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.section-filter.is-sticky {
  position: sticky;
  top: 64px;
  z-index: 30;
}

.section-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 0;
}

.section-filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.section-filter-link:hover {
  color: var(--link-blue);
}

/* 通用内容区块 */
.content-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.content-section > h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 16px;
  color: var(--text-main);
}

/* 相关帮助 / 下一步 */
.related-help > h2,
.next-step > h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.related-list,
.help-list,
.next-step-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-list li,
.help-list li,
.next-step-links li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.related-list li:first-child,
.help-list li:first-child,
.next-step-links li:first-child {
  border-top: none;
}

.help-list a,
.next-step-links a,
.related-list a {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-list p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ pages ============ */

/* ---- 首页 ---- */
.home-main {
  background: var(--bg-content);
}

.hero-section {
  padding: 48px 0 40px;
  background: var(--bg-content);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 380px);
  gap: 56px;
  align-items: start;
}

.hero-primary {
  min-width: 0;
}

.hero-primary h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 16px;
  margin-bottom: 28px;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-page);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-content);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.side-block {
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.workway-list {
  display: flex;
  flex-direction: column;
}

.workway-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.workway-item:first-child {
  border-top: none;
  padding-top: 0;
}

.workway-name {
  font-weight: 600;
  color: var(--text-main);
}

.workway-desc {
  color: var(--text-muted);
  line-height: 1.75;
}

.accept-list {
  display: flex;
  flex-direction: column;
}

.accept-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.accept-item:first-child {
  border-top: none;
  padding-top: 0;
}

.accept-no {
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--link-blue);
}

.accept-name {
  font-weight: 600;
}

.accept-for {
  grid-column: 2;
  color: var(--text-muted);
  line-height: 1.7;
}

.accept-item a {
  grid-column: 2;
  font-size: 13px;
}

.scope-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scope-group {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
}

.scope-group h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.scope-group-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.scope-list {
  display: flex;
  flex-direction: column;
}

.scope-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
}

.scope-list li:first-child {
  border-top: none;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stage-item {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
}

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.stage-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--link-blue);
}

.stage-name {
  font-size: 17px;
}

.stage-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-fields dt {
  font-size: 12px;
  color: var(--text-muted);
}

.stage-fields dd {
  font-size: 14px;
  line-height: 1.75;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.stage-fields dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scene-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.scene-col,
.prep-col {
  min-width: 0;
}

.col-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scene-list,
.prep-list,
.delivery-list,
.check-list {
  display: flex;
  flex-direction: column;
}

.scene-item,
.prep-item,
.delivery-item,
.check-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}

.scene-item:first-child,
.prep-item:first-child,
.delivery-item:first-child,
.check-item:first-child {
  border-top: none;
  padding-top: 0;
}

.scene-name,
.prep-name,
.delivery-name {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.scene-desc,
.prep-desc,
.delivery-desc {
  display: block;
  color: var(--text-muted);
}

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.term-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.term-name {
  font-weight: 600;
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term-def {
  color: var(--text-muted);
  font-size: 14px;
}

.delivery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.delivery-col,
.check-col {
  min-width: 0;
}

.revision-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.revision-block {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
}

.revision-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.revision-block p {
  font-size: 14px;
  color: var(--text-muted);
}

.revision-mark {
  margin-top: 12px;
  font-size: 13px;
}

.faq-preview {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--link-blue);
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  color: var(--link-blue);
}

.faq-item > p {
  padding: 0 0 16px 25px;
  font-size: 15px;
  color: var(--text-muted);
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.prepare-block {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
}

.prepare-block h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.prepare-block p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- 服务范围 ---- */
.clause-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.clause-item:first-of-type {
  border-top: none;
}

.clause-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  margin-bottom: 12px;
}

.clause-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--link-blue);
}

.clause-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.clause-col {
  min-width: 0;
}

.clause-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.clause-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clause-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.75;
}

.clause-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.clause-confirm {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
}

.boundary-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.boundary-item:first-child {
  border-top: none;
  padding-top: 0;
}

.boundary-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.dependency-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dependency-item {
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.dependency-item:first-child {
  border-top: none;
}

.dependency-before,
.dependency-after {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.dependency-arrow {
  color: var(--text-muted);
}

.dependency-item p {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---- 整理方法 ---- */
.page-hero {
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.page-summary {
  font-size: 15px;
  color: var(--text-muted);
  max-width: var(--content-width);
  margin: 0;
}

.method-flow > h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.phase-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.phase-block:first-of-type {
  border-top: none;
}

.phase-block h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 14px;
}

.phase-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--link-blue);
}

.phase-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.phase-col {
  min-width: 0;
}

.phase-col h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phase-col p,
.phase-col ul {
  font-size: 14px;
  line-height: 1.75;
}

.phase-col li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.phase-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.phase-criteria > h2,
.rework > h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.criteria-list,
.rework-list {
  display: flex;
  flex-direction: column;
}

.criteria-list li,
.rework-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.criteria-list li:first-child,
.rework-list li:first-child {
  border-top: none;
}

.criteria-list h3,
.rework-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.criteria-list p,
.rework-list p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- 适用场景 ---- */
.scenario-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.scenario-section:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scenario-block {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  min-width: 0;
}

.block-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.scenario-block .check-list li {
  position: relative;
  padding-left: 14px;
  border-top: none;
  padding-top: 0;
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.scenario-block .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.not-suitable-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.plain-list {
  display: flex;
  flex-direction: column;
}

.plain-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:first-child {
  border-top: none;
}

.item-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.plain-list p {
  font-size: 14px;
  color: var(--text-muted);
}

.next-step {
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}

.next-step > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---- 术语与口径 ---- */
.term-entry {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.term-entry:first-of-type {
  border-top: none;
}

.term-entry .term-name {
  font-size: 18px;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 12px;
}

.term-detail {
  display: flex;
  flex-direction: column;
}

.term-detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
}

.term-detail-label:first-of-type {
  margin-top: 0;
}

.term-detail-body {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 4px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-page);
}

.compare-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.position-list {
  display: flex;
  flex-direction: column;
}

.position-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.position-item:first-child {
  border-top: none;
}

.position-term {
  font-weight: 600;
  color: var(--text-main);
}

.position-place {
  color: var(--text-muted);
}

.related-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.related-item:first-child {
  border-top: none;
}

.related-link {
  font-size: 15px;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- 交付与验收 ---- */
.page-head {
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.page-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: var(--content-width);
  margin: 0;
}

.directory-list {
  display: flex;
  flex-direction: column;
  counter-reset: directory;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.directory-row:first-child {
  border-top: none;
}

.directory-name {
  font-weight: 600;
  color: var(--text-main);
}

.directory-desc {
  color: var(--text-muted);
}

.format-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.format-block:first-of-type {
  border-top: none;
}

.format-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.format-block p {
  font-size: 14px;
  color: var(--text-muted);
}

.checklist {
  display: flex;
  flex-direction: column;
  counter-reset: checklist;
}

.checklist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.checklist-item:first-child {
  border-top: none;
}

.checklist-name {
  font-weight: 600;
  color: var(--text-main);
}

.checklist-desc {
  color: var(--text-muted);
}

.storage-list {
  display: flex;
  flex-direction: column;
}

.storage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.storage-row:first-child {
  border-top: none;
}

.storage-name {
  font-weight: 600;
  color: var(--text-main);
}

.storage-desc {
  color: var(--text-muted);
}

.help-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.help-item:first-child {
  border-top: none;
}

/* ---- 修订与勘误 ---- */
.clause-block {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.clause-block:first-of-type {
  border-top: none;
}

.clause-block h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.clause-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.clause-grid .clause-col h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.clause-grid .clause-col p,
.clause-grid .clause-col li {
  font-size: 14px;
  line-height: 1.75;
}

.clause-grid .clause-col li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.clause-grid .clause-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.rule-list {
  display: flex;
  flex-direction: column;
}

.rule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.rule-item:first-child {
  border-top: none;
}

.rule-label {
  font-weight: 600;
  color: var(--text-main);
}

.rule-text {
  color: var(--text-muted);
}

.status-list {
  display: flex;
  flex-direction: column;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.status-item:first-child {
  border-top: none;
}

.status-desc {
  color: var(--text-muted);
}

.field-list {
  display: flex;
  flex-direction: column;
}

.field-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.field-item:first-child {
  border-top: none;
}

.field-name {
  font-weight: 600;
  color: var(--text-main);
}

.field-rule {
  color: var(--text-muted);
}

/* ---- 常见问题 ---- */
.page-title-block {
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.page-title-block .page-summary {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.faq-intro {
  padding: 24px 0 8px;
}

.faq-intro > h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.faq-group {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.faq-group > h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.group-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.faq-group .faq-item {
  border-top: 1px solid var(--line);
  border-bottom: none;
}

.faq-group .faq-item:first-of-type {
  border-top: none;
}

.faq-group .faq-item summary {
  min-height: 48px;
}

.faq-answer {
  padding: 0 0 16px 25px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- 404 ---- */
.error-main {
  background: var(--bg-content);
  padding: 64px 0 72px;
}

.error-inner {
  max-width: 720px;
}

.error-inner h1 {
  font-size: 28px;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-actions {
  margin-bottom: 32px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--bg-content);
  background: var(--link-blue);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.error-home-link:hover {
  color: var(--bg-content);
  background: var(--link-blue-dark);
}

.error-related h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-related-list {
  display: flex;
  flex-direction: column;
}

.error-related-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.error-related-list li:first-child {
  border-top: none;
}

/* ============ responsive ============ */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .page-layout > aside {
    order: 0;
  }

  .sidebar,
  .anchor-aside,
  .anchor-nav,
  .content-aside,
  .page-aside,
  .page-toc {
    position: static;
  }

  .scope-groups,
  .stage-strip,
  .revision-brief,
  .prepare-grid,
  .scenario-grid,
  .phase-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  body,
  .site-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .container,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    position: static;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg-content);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(31, 35, 40, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
  }

  .page-header {
    padding: 28px 0 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-section {
    padding: 32px 0 28px;
  }

  .hero-primary h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section {
    padding: 32px 0;
  }

  .section .container > h2,
  .section-alt .container > h2,
  .content-section > h2,
  .section-title,
  .phase-criteria > h2,
  .rework > h2,
  .faq-intro > h2,
  .faq-group > h2,
  .method-flow > h2,
  .related-help > h2,
  .next-step > h2 {
    font-size: 19px;
  }

  .scope-groups,
  .stage-strip,
  .revision-brief,
  .prepare-grid,
  .scenario-grid,
  .phase-cols,
  .scene-pair,
  .delivery-pair,
  .clause-pair,
  .clause-grid,
  .term-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .term-list {
    gap: 0;
  }

  .dependency-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory-row,
  .checklist-item,
  .storage-row,
  .rule-item,
  .field-item,
  .position-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .section-filter.is-sticky {
    position: static;
  }

  .section-filter-list {
    gap: 4px 20px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
  }

  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .error-main {
    padding: 40px 0 48px;
  }
}

@media (max-width: 420px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-entry {
    flex-direction: column;
    gap: 8px;
  }
}
