/* ============================================================
   zhafangyan.com · 整站样式表
   复古计算机风 · 米白纸张 + 终端窗口 + 朱红强调
   ============================================================ */

/* ============================================================
   1. Base · 基础变量与全局重置
   ============================================================ */

:root {
  --paper: #f5f3ea;
  --ink: #2b2b2b;
  --accent: #c7493a;
  --accent-dark: #a83a2e;
  --accent-soft: #f3e0dc;
  --muted-green: #3c6e71;
  --muted-green-dark: #2f5558;
  --terminal-bg: #1f2430;
  --terminal-text: #8b9bb4;
  --terminal-head: #2a3040;
  --border: #d5d0c5;
  --border-dark: #b8b2a6;
  --white: #ffffff;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Courier New", Courier, "Nimbus Mono PS", monospace;
  --shell-width: 1200px;
  --sidebar-width: 280px;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(43, 43, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 43, 43, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 0;
}

/* ============================================================
   2. Layout · 全站骨架容器
   ============================================================ */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background-color: var(--terminal-bg);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #e8ecf4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name::before {
  content: "▚ ";
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #b8c0d0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-current {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(139, 155, 180, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #b8c0d0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 8px;
  font-size: 14px;
  color: #6f6a60;
}

.breadcrumb a {
  color: var(--muted-green);
}

.breadcrumb a:hover {
  color: var(--muted-green-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-dark);
  font-family: var(--font-mono);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding: 8px 0 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.page-title-area {
  padding: 12px 0 20px;
}

.page-title-shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-title-left {
  flex-shrink: 0;
}

.page-title-right {
  flex: 1;
  max-width: 560px;
}

.page-title-desc,
.page-position,
.page-intro {
  font-size: 15px;
  color: #5c574e;
  line-height: 1.7;
}

/* 通用布局壳 */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 8px;
}

.layout-shell.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
}

.layout-shell.sidebar-left .main-content {
  min-width: 0;
  min-height: 0;
}

/* 通用 section 标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-left: 16px;
  margin-bottom: 20px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--accent);
}

/* 通用区块链接 */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-green);
  margin-top: 16px;
}

.section-link::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.18s ease;
}

.section-link:hover::after {
  transform: translateX(4px);
}

/* 终端窗口面板 */
.terminal-window,
.terminal-panel {
  background-color: var(--terminal-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.18);
}

.terminal-bar,
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: var(--terminal-head);
  border-bottom: 1px solid rgba(139, 155, 180, 0.2);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4a5266;
  flex-shrink: 0;
}

.terminal-dot:nth-child(1) {
  background-color: var(--accent);
}

.terminal-dot:nth-child(2) {
  background-color: #d9a441;
}

.terminal-dot:nth-child(3) {
  background-color: var(--muted-green);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--terminal-text);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 18px 20px;
}

/* 像素方块符号 */
.pixel-dot,
.square-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   3. Components · 通用组件
   ============================================================ */

/* 按钮 */
.btn-primary,
.btn-secondary,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--muted-green);
  border: 1px solid var(--muted-green);
}

.btn-secondary:hover {
  background-color: var(--muted-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-link {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-link:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-link.btn-secondary {
  background-color: transparent;
  color: var(--muted-green);
  border-color: var(--muted-green);
}

.btn-link.btn-secondary:hover {
  background-color: var(--muted-green);
  color: #ffffff;
}

/* 图片容器 */
.content-media {
  margin: 0;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--white);
}

.content-media figcaption {
  font-size: 13px;
  color: #6f6a60;
  padding: 8px 4px 0;
  line-height: 1.5;
}

/* 相关卡片 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(43, 43, 43, 0.08);
}

.related-name,
.related-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.related-desc,
.related-card-desc {
  font-size: 14px;
  color: #5c574e;
  line-height: 1.6;
}

/* ============================================================
   4. Pages · 首页
   ============================================================ */

.home-main {
  flex: 1 0 auto;
}

/* Hero */
.hero-section {
  background-color: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 0;
}

.hero-shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
}

.hero-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted-green);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #4a463e;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-terminal {
  min-width: 0;
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal-text);
  margin-bottom: 12px;
}

.terminal-prompt::before {
  content: "$ ";
  color: var(--accent);
}

.terminal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #c6cedd;
  line-height: 1.6;
}

.terminal-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Hero 图片 */
.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 40px;
}

.content-media-primary img {
  max-height: 320px;
  object-fit: cover;
}

.content-media-inline {
  margin: 24px 0;
}

/* 三原则 */
.principle-section {
  padding: 48px 0;
}

.section-shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--muted-green);
}

.principle-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.principle-card h3::before {
  content: "▪ ";
  color: var(--accent);
}

.principle-card p {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.65;
}

/* 服务矩阵 */
.service-matrix-section {
  padding: 48px 0;
  background-color: #efece1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(199, 73, 58, 0.1);
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.service-card h3::before {
  content: "▣ ";
  color: var(--accent);
  font-family: var(--font-mono);
}

.service-def {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-green);
  line-height: 1.5;
}

.service-explain {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.65;
  flex: 1;
}

.scene-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--muted-green);
  background-color: #e8f0f0;
  border-radius: 4px;
  padding: 2px 10px;
  align-self: flex-start;
}

.term-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}

.term-link::after {
  content: " →";
  font-family: var(--font-mono);
}

/* 方法摘要 */
.method-summary-section {
  padding: 48px 0;
}

.method-content {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--accent);
}

.method-content p {
  font-size: 15px;
  color: #3a3730;
  line-height: 1.8;
}

/* 流程预览 */
.process-preview-section {
  padding: 48px 0;
  background-color: #efece1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.step-item p {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.6;
}

/* FAQ 摘要 */
.faq-preview-section {
  padding: 48px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.18s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.faq-item h3::before {
  content: "Q: ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.faq-item p {
  font-size: 14px;
  color: #5c574e;
  line-height: 1.6;
  margin-bottom: 6px;
}

.faq-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-green);
}

.faq-link::after {
  content: " →";
  font-family: var(--font-mono);
}

/* ============================================================
   5. Pages · 内页
   ============================================================ */

/* ---- 服务内容页 ---- */
.page-services .layout-shell.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar-nav {
  min-width: 0;
}

.sidebar-panel {
  position: sticky;
  top: 84px;
}

.sidebar-menu {
  padding: 8px 0;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  border-bottom: 1px solid rgba(139, 155, 180, 0.15);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--terminal-text);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sidebar-item a:hover {
  background-color: rgba(139, 155, 180, 0.1);
  color: #ffffff;
}

.sidebar-item a::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.title-left {
  flex-shrink: 0;
}

.title-left h1 {
  font-size: 24px;
  font-weight: 700;
}

.title-right {
  flex: 1;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.title-right p {
  font-size: 15px;
  color: #5c574e;
  line-height: 1.7;
}

.service-detail-section {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}

.service-panel .terminal-body {
  padding: 24px 28px;
}

.service-panel h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 12px;
}

.service-panel h2::before {
  content: "▣ ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.service-panel p {
  font-size: 14px;
  color: #c6cedd;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-panel p:last-of-type {
  margin-bottom: 0;
}

.service-figure {
  margin: 16px 0;
}

.service-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(139, 155, 180, 0.3);
}

.service-figure figcaption {
  font-size: 13px;
  color: var(--terminal-text);
  padding-top: 8px;
  line-height: 1.5;
}

.service-scene {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: rgba(60, 110, 113, 0.2);
  border-left: 3px solid var(--muted-green);
  border-radius: 0 4px 4px 0;
}

.scene-label {
  font-size: 13px;
  font-weight: 700;
  color: #7fd1c5;
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.service-scene p {
  font-size: 13px;
  color: #c6cedd;
  margin-bottom: 0;
  line-height: 1.6;
}

.service-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(139, 155, 180, 0.2);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.service-links a {
  font-size: 14px;
  font-weight: 600;
  color: #7fd1c5;
  transition: color 0.18s ease;
}

.service-links a:hover {
  color: #ffffff;
}

.service-links a::after {
  content: " →";
  font-family: var(--font-mono);
}

.related-block {
  margin-top: 40px;
}

.related-panel {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.related-panel .terminal-bar {
  background-color: var(--terminal-head);
}

.related-panel .related-grid {
  padding: 20px;
}

/* ---- 合作流程页 ---- */
.page-process .inner-main {
  padding-bottom: 64px;
}

.process-layout {
  margin-top: 8px;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
}

.stage-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.stage-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 8px;
}

.stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: 15px;
  border-radius: 4px;
  flex-shrink: 0;
}

.stage-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.stage-body {
  padding: 0 24px 20px;
}

.stage-desc {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.7;
  margin-bottom: 12px;
}

.stage-actions {
  margin-bottom: 12px;
}

.stage-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-green);
  margin-bottom: 6px;
}

.stage-list-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-list-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #4a463e;
  line-height: 1.6;
}

.stage-list-items li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.stage-deliverable {
  padding: 12px 16px;
  background-color: #f0ede3;
  border-left: 3px solid var(--muted-green);
  border-radius: 0 4px 4px 0;
}

.stage-deliverable-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-green);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stage-deliverable-desc {
  font-size: 14px;
  color: #3a3730;
  line-height: 1.6;
}

.process-figure {
  margin: 32px 0;
  max-width: 860px;
}

.process-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.process-figure figcaption {
  font-size: 13px;
  color: #6f6a60;
  padding-top: 8px;
}

.deliverable-note {
  margin: 32px 0;
  max-width: 860px;
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--muted-green);
}

.deliverable-note h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.note-text {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.7;
}

.contact-note {
  margin-top: 32px;
  max-width: 860px;
  padding: 24px;
  background-color: var(--terminal-bg);
  border-radius: var(--radius);
}

.contact-note h2 {
  font-size: 17px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 10px;
}

.contact-note .note-text {
  color: var(--terminal-text);
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  min-height: 44px;
  transition: background-color 0.18s ease;
}

.contact-link:hover {
  background-color: var(--accent-dark);
  color: #ffffff;
}

/* ---- 交付标准页 ---- */
.page-standards .inner-main {
  padding-bottom: 64px;
}

.page-standards .layout-shell.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.page-standards .page-title-area {
  padding: 12px 0 8px;
}

.aside-panel {
  min-width: 0;
}

.aside-window {
  position: sticky;
  top: 84px;
}

.aside-window .terminal-body {
  padding: 12px 0;
}

.excluded-list {
  display: flex;
  flex-direction: column;
}

.excluded-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.excluded-item:last-child {
  border-bottom: none;
}

.excluded-item::before {
  content: "✕";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.excluded-name {
  font-size: 14px;
  font-weight: 700;
  color: #e8ecf4;
  line-height: 1.5;
  display: block;
  margin-bottom: 2px;
}

.excluded-desc {
  font-size: 13px;
  color: var(--terminal-text);
  line-height: 1.6;
}

.content-window {
  margin-bottom: 32px;
}

.content-window .terminal-body {
  padding: 8px 0;
}

.accept-item {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.15);
}

.accept-item:last-child {
  border-bottom: none;
}

.accept-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.accept-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 4px;
  flex-shrink: 0;
}

.accept-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
}

.accept-standard {
  font-size: 14px;
  color: #c6cedd;
  line-height: 1.7;
  margin-bottom: 8px;
}

.accept-example {
  font-size: 13px;
  color: var(--terminal-text);
  line-height: 1.6;
  padding-left: 14px;
  border-left: 2px solid var(--muted-green);
}

.boundary-note {
  margin: 32px 0;
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.boundary-text {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.7;
}

.misunderstanding-block {
  margin-bottom: 40px;
}

.misunderstanding-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.mis-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.mis-q::before {
  content: "Q: ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.mis-a {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.65;
}

.mis-a::before {
  content: "A: ";
  color: var(--muted-green);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.related-panel {
  margin-top: 40px;
}

.related-shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.related-panel .related-shell {
  padding: 0;
}

/* ---- 常见问答页 ---- */
.page-faq .inner-main {
  padding-bottom: 64px;
}

.page-title-block {
  padding: 8px 0 20px;
}

.title-shell {
  max-width: 720px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}

.faq-media {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.faq-figure {
  margin: 0;
}

.faq-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.faq-figure figcaption {
  font-size: 13px;
  color: #6f6a60;
  padding-top: 8px;
  line-height: 1.5;
}

.faq-groups {
  min-width: 0;
}

.faq-group {
  margin-bottom: 32px;
}

.faq-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--terminal-bg);
  margin-bottom: 16px;
}

.faq-group-title::before {
  content: "▚ ";
  color: var(--accent);
  font-family: var(--font-mono);
}

.faq-group .faq-list {
  gap: 10px;
}

.faq-group details.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-group details.faq-item summary {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.18s ease;
  min-height: 44px;
}

.faq-group details.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-group details.faq-item summary::before {
  content: "▸";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.18s ease;
}

.faq-group details.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-group details.faq-item summary:hover {
  color: var(--accent);
}

.faq-group details.faq-item[open] {
  border-color: var(--accent);
}

.faq-answer {
  padding: 0 20px 16px 44px;
  font-size: 14px;
  color: #4a463e;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-contact-link {
  margin-top: 40px;
}

.contact-link-card {
  background-color: var(--terminal-bg);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link-text {
  font-size: 15px;
  color: var(--terminal-text);
  line-height: 1.7;
  flex: 1;
  min-width: 260px;
}

.contact-link-card .btn-link {
  flex-shrink: 0;
}

/* ---- 咨询入口页 ---- */
.page-contact .inner-main {
  padding-bottom: 64px;
}

.page-container {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-contact .page-title-area {
  padding: 12px 0 8px;
}

.page-contact .layout-shell.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.preparation-sidebar {
  min-width: 0;
}

.preparation-sidebar .terminal-panel {
  position: sticky;
  top: 84px;
}

.preparation-section {
  padding: 8px 0;
}

.preparation-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8ecf4;
  padding: 12px 20px 4px;
  font-family: var(--font-mono);
}

.preparation-list {
  display: flex;
  flex-direction: column;
}

.preparation-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.preparation-item:last-child {
  border-bottom: none;
}

.preparation-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.item-name {
  font-size: 14px;
  font-weight: 700;
  color: #e8ecf4;
  display: block;
  line-height: 1.5;
}

.item-desc {
  font-size: 13px;
  color: var(--terminal-text);
  line-height: 1.6;
  margin-top: 2px;
}

.preparation-figure {
  margin: 16px 20px 20px;
}

.preparation-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(139, 155, 180, 0.3);
}

.figure-caption {
  font-size: 12px;
  color: var(--terminal-text);
  padding-top: 6px;
  line-height: 1.5;
}

.how-to-start {
  margin-bottom: 40px;
}

.section-lead {
  font-size: 15px;
  color: #5c574e;
  line-height: 1.7;
  margin-bottom: 20px;
}

.start-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.start-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.start-step:hover {
  border-color: var(--accent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-text {
  font-size: 14px;
  color: #4a463e;
  line-height: 1.65;
}

.step-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-green);
  margin-top: 6px;
}

.step-link::after {
  content: " →";
  font-family: var(--font-mono);
}

.related-pages {
  margin-top: 40px;
}

/* ---- 404 页 ---- */
.error-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-panel {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 2px 8px rgba(43, 43, 43, 0.06);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #5c574e;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  min-height: 44px;
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.error-link:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.error-link:last-child {
  background-color: transparent;
  color: var(--muted-green);
  border-color: var(--muted-green);
}

.error-link:last-child:hover {
  background-color: var(--muted-green);
  color: #ffffff;
}

/* ============================================================
   6. Footer · 页脚
   ============================================================ */

.site-footer {
  background-color: var(--terminal-bg);
  border-top: 3px solid var(--accent);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 8px;
}

.footer-brand::before {
  content: "▚ ";
  color: var(--accent);
}

.footer-desc {
  font-size: 14px;
  color: var(--terminal-text);
  line-height: 1.7;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--terminal-text);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-principles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-principles li {
  font-size: 14px;
  color: var(--terminal-text);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-principles li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.footer-note {
  font-size: 14px;
  color: var(--terminal-text);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(139, 155, 180, 0.2);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #6a7384;
}

/* ============================================================
   7. Responsive · 响应式断点
   ============================================================ */

/* 平板：≤1024px */
@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }

  .faq-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* 手机：≤768px */
@media (max-width: 768px) {
  .header-shell {
    height: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--terminal-bg);
    border-top: 1px solid rgba(139, 155, 180, 0.2);
    border-bottom: 3px solid var(--accent);
    padding: 8px 0;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(139, 155, 180, 0.12);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-left-color: var(--accent);
    border-bottom-color: rgba(139, 155, 180, 0.12);
    background-color: rgba(199, 73, 58, 0.15);
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .hero-section {
    padding: 32px 0 0;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .content-media-primary {
    margin-top: 24px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-shell {
    padding: 0 16px;
  }

  .principle-section,
  .service-matrix-section,
  .method-summary-section,
  .process-preview-section,
  .faq-preview-section {
    padding: 36px 0;
  }

  /* 内页布局：侧栏后退 */
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-services .layout-shell.sidebar-left,
  .page-standards .layout-shell.sidebar-left,
  .page-contact .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-nav,
  .aside-panel,
  .preparation-sidebar {
    order: 2;
  }

  .sidebar-panel,
  .aside-window,
  .preparation-sidebar .terminal-panel {
    position: static;
  }

  .main-content {
    order: 1;
  }

  .page-title-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .title-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    max-width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-media {
    position: static;
    order: 2;
  }

  .faq-groups {
    order: 1;
  }

  .contact-link-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .contact-link-card .btn-link {
    width: 100%;
  }

  .process-layout {
    margin-top: 0;
  }

  .stage-head {
    padding: 16px 16px 8px;
  }

  .stage-body {
    padding: 0 16px 16px;
  }

  .stage-deliverable {
    padding: 10px 12px;
  }

  .page-container {
    padding: 0 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

/* 小手机：≤390px */
@media (max-width: 390px) {
  .brand-name {
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-link {
    padding: 10px 18px;
    font-size: 14px;
  }

  .terminal-body {
    padding: 14px 16px;
  }

  .service-panel .terminal-body {
    padding: 18px 16px;
  }

  .method-content {
    padding: 20px 16px;
  }

  .stage-item::before {
    width: 3px;
  }

  .stage-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .accept-head {
    align-items: flex-start;
  }

  .accept-index {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .faq-group details.faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 14px 14px 38px;
    font-size: 13px;
  }

  .contact-link-card {
    padding: 20px;
  }

  .start-step {
    padding: 16px;
    gap: 12px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .error-panel {
    padding: 28px 16px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
