/* ============================================================
   企业官网样式表 —— 墨 · 纸 · 赭
   纯 CSS，无外部依赖，无构建步骤
   规范：标题衬线（≥22px）/ 正文无衬线 / 4px 圆角 / 8px 间距基准
   ============================================================ */

:root {
  /* ---------- 墨：文字与深色面 ---------- */
  --ink:        #1b1a17;
  --ink-2:      #3a3730;
  --muted:      #6e675b;
  --muted-2:    #8a8377;

  /* ---------- 纸：背景与分隔 ---------- */
  --paper:      #ffffff;
  --paper-2:    #faf8f3;
  --paper-3:    #f3efe6;
  --line:       #e6e0d4;
  --line-soft:  #f0ebe0;
  --line-mid:   #d9d2c4;

  /* ---------- 赭：强调色，克制使用 ---------- */
  --accent:     #8a5a34;
  --accent-2:   #6d4526;
  --accent-bg:  #f5ede2;
  --accent-line:#dccbb8;

  /* ---------- 朱：极小面积点缀 ---------- */
  --seal:       #a83c2f;

  /* ---------- 深色面上的文字 ---------- */
  --on-dark:    #f5f2ec;
  --on-dark-2:  #b3aa9c;
  --on-dark-3:  #8a8175;

  /* ---------- 字体 ---------- */
  --font-serif: "Songti SC", "STSong", "Source Han Serif SC",
                "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
                Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---------- 字号 ---------- */
  --t-2xs:  12px;
  --t-xs:   13px;
  --t-sm:   15px;
  --t-base: 16px;
  --t-md:   17px;
  --t-lg:   18px;
  --t-xl:   20px;
  --t-2xl:  clamp(24px, 2.6vw, 32px);
  --t-h1:   clamp(27px, 3vw, 36px);
  --t-3xl:  clamp(30px, 3.6vw, 44px);

  /* ---------- 行高 ---------- */
  --lh-tight: 1.28;
  --lh-snug:  1.5;
  --lh-body:  1.78;

  /* ---------- 间距：8px 基准 ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;

  /* ---------- 形状 ---------- */
  --radius: 4px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ============================================================
   顶部导航
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

/* 标识：矢量 SVG，宽高比 653:180 ≈ 3.63:1 */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
.site-footer .brand-logo { height: 44px; }

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  flex: none;
}
/* 右下角赭石方块，呼应印章意象 */
.brand-mark::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--muted);
  font-size: var(--t-sm);
  letter-spacing: .02em;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

.nav-toggle { display: none; }

/* ============================================================
   按钮
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease,
              border-color .22s ease, transform .22s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}

/* ============================================================
   首屏
   ============================================================ */

.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(880px 360px at 84% -12%, var(--accent-bg) 0%, transparent 62%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: var(--s-7);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--muted);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  margin-bottom: var(--s-5);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--seal);
}

.hero h1 {
  margin: 0 0 var(--s-5);
  font-family: var(--font-serif);
  font-size: var(--t-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: .01em;
  color: var(--ink);
}

.hero p.lead {
  margin: 0 0 var(--s-6);
  font-size: var(--t-md);
  color: var(--muted);
  max-width: 33em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 首屏右侧概览面板 */

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
}

.hero-panel h2 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .14em;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.stat {
  background: var(--paper);
  padding: var(--s-4);
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: .01em;
}
.stat span {
  font-size: var(--t-xs);
  color: var(--muted);
}

.panel-note {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--muted);
}

/* ============================================================
   通用区块
   ============================================================ */

.section { padding: var(--s-9) 0; }

.section.soft {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin-bottom: var(--s-6);
}
.section-head h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--t-2xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: .01em;
  color: var(--ink);
}
/* 只有标题、没有说明文字时，去掉多余的下间距 */
.section-head h2:last-child { margin-bottom: 0; }
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-base);
}

/* ============================================================
   卡片
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  transition: border-color .22s ease, background-color .22s ease;
}
.card:hover { border-color: var(--accent-line); }

.card h3 {
  margin: 0 0 var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .01em;
}
.card p {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  transition: border-color .22s ease, color .22s ease;
}
.card-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}
.card:hover .card-icon {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ============================================================
   内页页头
   ============================================================ */

.page-head {
  padding: var(--s-8) 0 var(--s-7);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: .01em;
  color: var(--ink);
}
.page-head h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: var(--s-4) 0 0;
}
.page-head p {
  margin: var(--s-4) 0 0;
  color: var(--muted);
  max-width: 42em;
  font-size: var(--t-base);
}

.crumb {
  font-size: var(--t-xs);
  color: var(--muted);
  margin-bottom: var(--s-4);
  letter-spacing: .02em;
}
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 var(--s-2); opacity: .5; }

/* ============================================================
   长文排版
   ============================================================ */

.prose {
  max-width: 740px;
  margin: 0;
}

.prose h2 {
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-mid);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: .01em;
  color: var(--ink);
}
.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
/* 前面已经有一条分隔线时，不再重复画顶线 */
.prose hr + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin: var(--s-6) 0 var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .01em;
}

.prose p {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: var(--lh-body);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
  color: var(--ink-2);
}
/* 时间线自带缩进，不能被上面这条的 padding 叠掉，否则整条线右移 */
.prose ul.timeline { padding-left: 0; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--accent); }

.prose strong { color: var(--ink); font-weight: 500; }

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

.note {
  background: var(--paper-3);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--muted);
}
.note a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   时间线
   ============================================================ */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 var(--s-4) var(--s-6);
  border-left: 1px solid var(--line);
}
.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

.timeline time {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: var(--s-1);
}
.timeline strong {
  display: block;
  color: var(--ink);
  font-size: var(--t-base);
  font-weight: 500;
  margin-bottom: var(--s-1);
}
.timeline p {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   信息表格
   ============================================================ */

.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--t-sm);
  margin: 0 0 var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.info-table th {
  width: 140px;
  background: var(--paper-3);
  color: var(--muted);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: .05em;
  white-space: nowrap;
}

.info-table td { color: var(--ink-2); }

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ============================================================
   服务流程
   ============================================================ */

.flow {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
  counter-reset: step;
}

.flow li {
  position: relative;
  padding-top: var(--s-5);
}
.flow li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
}
.flow li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 22px;
  right: calc(-1 * var(--s-3));
  height: 1px;
  background: var(--line-mid);
}
.flow li:last-child::after { display: none; }

.flow strong {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.flow span {
  display: block;
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   案例
   ============================================================ */

.cases {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-6);
  max-width: 740px;
}

.case {
  border-top: 1px solid var(--line-mid);
  padding-top: var(--s-5);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: var(--s-3);
}
.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.case h2 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: .01em;
  color: var(--ink);
}

.case dl {
  margin: 0;
  display: grid;
  gap: var(--s-3);
}
.case dt {
  font-size: var(--t-xs);
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.case dd {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: var(--lh-body);
}

.case-figure {
  margin: var(--s-5) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 16 / 9;
}
.case-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 无照片时的占位 */
.case-placeholder {
  margin: var(--s-5) 0 0;
  border: 1px dashed var(--line-mid);
  border-radius: var(--radius);
  background: var(--paper-2);
  height: 200px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: var(--t-xs);
  letter-spacing: .1em;
}

/* 通用照片容器 */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   资质证书
   ============================================================ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
/* 只有一张证书时不要拉满半栏，避免右侧大面积留白 */
.cert-grid .cert-item:only-child { max-width: 420px; }

.cert-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.cert-item img { width: 100%; display: block; }

.cert-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  color: var(--muted-2);
  font-size: var(--t-xs);
  letter-spacing: .1em;
}

.cert-item figcaption {
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-xs);
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.info-table .cert-empty {
  text-align: center;
  color: var(--muted);
  padding: var(--s-6) var(--s-4);
}

/* 经营范围展示块 */
.prose .scope-block {
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
  line-height: 1.9;
  color: var(--ink-2);
}

/* ============================================================
   联系页
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: none; }

.contact-list .k {
  width: 84px;
  flex: none;
  color: var(--muted);
  font-size: var(--t-sm);
  letter-spacing: .03em;
}
.contact-list .v {
  color: var(--ink);
  font-size: var(--t-base);
  line-height: 1.7;
}
.contact-list .v strong { font-weight: 500; }

.map-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.map-box h3 {
  margin: 0 0 var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--ink);
}
.map-box p {
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.7;
}
.map-box p:last-child { margin-bottom: 0; }

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 0;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; }

/* 区块内的小标题（消除内联样式后使用） */
.block-title {
  margin: 0 0 var(--s-5);
  font-family: var(--font-serif);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}

.hr-soft {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--s-5) 0;
}

/* 居中的行动号召区块 */
.cta-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.cta-block h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.cta-block p {
  margin: 0 0 var(--s-6);
  color: var(--muted);
}
/* 没有说明文字、标题直接跟按钮时，补足纵向间距 */
.cta-block h2 + .btn { margin-top: var(--s-5); }

/* 首页联系条 */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-strip > div {
  display: grid;
  gap: var(--s-1);
}
.contact-strip span {
  font-size: var(--t-2xs);
  color: var(--muted);
  letter-spacing: .12em;
}
.contact-strip strong,
.contact-strip a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}
.contact-strip a:hover { color: var(--accent); }

/* 区块底部的「查看全部」链接 */
.more-link {
  margin: var(--s-5) 0 0;
  font-size: var(--t-sm);
}
.more-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
}
.more-link a::after {
  content: "→";
  transition: transform .2s ease;
}
.more-link a:hover::after { transform: translateX(3px); }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  --focus-ring: var(--on-dark);
  background: var(--ink);
  color: var(--on-dark-2);
  padding: var(--s-7) 0 var(--s-5);
  font-size: var(--t-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.site-footer .brand { color: var(--on-dark); font-size: var(--t-base); }
.site-footer .brand-mark { background: rgba(255, 255, 255, .12); color: var(--on-dark); }

.footer-about {
  margin: var(--s-4) 0 0;
  max-width: 32em;
  line-height: 1.85;
  color: var(--on-dark-3);
}

.footer-col h4 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--t-2xs);
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: .14em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-2); line-height: 1.7; color: var(--on-dark-2); }
.footer-col a { color: var(--on-dark-2); }
.footer-col a:hover { color: var(--on-dark); }

.footer-bottom {
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  align-items: center;
  color: var(--on-dark-3);
  font-size: var(--t-2xs);
  letter-spacing: .02em;
}
.footer-bottom p { margin: 0; }

/* 版权与运营声明，纵向两行 */
.footer-copy {
  display: grid;
  gap: var(--s-1);
  color: var(--on-dark-2);
}
.footer-note {
  font-size: var(--t-2xs);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
}
/* 深色底上的链接必须有独立的高对比色，不能落回全局 a 的赭色 */
.footer-legal a { color: var(--on-dark-2); }
.footer-legal a:hover { color: var(--on-dark); }

/* ============================================================
   404
   ============================================================ */

.center-page {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-9) var(--s-5);
}
.center-page .code {
  font-family: var(--font-serif);
  font-size: 78px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  opacity: .16;
  margin-bottom: var(--s-3);
}
.center-page h1 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--ink);
}
.center-page p {
  margin: 0 0 var(--s-6);
  color: var(--muted);
}

/* ============================================================
   滚动进入动画（渐进增强：JS 未执行时内容照常显示）
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .section { padding: var(--s-8) 0; }
  .section.soft { padding: var(--s-7) 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-5); }
  .flow li:nth-child(3n)::after { display: none; }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --s-9: 56px;
    --s-8: 48px;
    --s-7: 32px;
  }

  .wrap { padding: 0 var(--s-4); }

  .nav { height: 60px; }

  .brand-logo { height: 26px; }
  .site-footer .brand-logo { height: 30px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--s-4) var(--s-4);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s-3) var(--s-2); }
  .nav-links a::after { left: var(--s-2); right: auto; width: 24px; }

  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero h1 { font-size: 28px; }

  .cards { grid-template-columns: 1fr; }

  .page-head { padding: var(--s-6) 0 var(--s-5); }

  .prose h2 { font-size: 20px; margin-top: var(--s-6); }
  .prose p { font-size: 15px; line-height: 1.85; }

  .info-table { font-size: var(--t-sm); }
  .info-table th { width: 96px; white-space: normal; }

  .footer-top { grid-template-columns: 1fr; gap: var(--s-5); }

  .center-page .code { font-size: 62px; }
  .center-page { padding: var(--s-7) var(--s-4); }

  .contact-strip { grid-template-columns: 1fr; gap: var(--s-4); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3n)::after { display: block; }
  .flow li:nth-child(2n)::after { display: none; }
}

/* 窄屏：信息表改为堆叠，避免标签列挤占正文 */
@media (max-width: 560px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table {
    border: none;
    border-radius: 0;
  }

  .info-table tr {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .info-table tr:last-child { border-bottom: none; }

  .info-table th {
    background: transparent;
    border-bottom: none;
    padding: 0 0 var(--s-1);
    white-space: normal;
  }
  .info-table td { padding: 0; }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 打印 */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .card, .note, .info-table, .hero-panel { border-color: #ccc; }
}
