/* ==========================================================================
   site.css — 版式、组件与页面样式
   所有颜色 / 字号 / 间距均引用 tokens.css 中的语义令牌
   ========================================================================== */

/* ==========================================================================
   01 顶部：报头条 + 导航
   ========================================================================== */
.utility-bar {
  background: var(--ink-900);
  color: var(--paper-200);
  border-bottom: 1px solid var(--ink-900);
}

[data-theme="dark"] .utility-bar {
  background: #0d0c09;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 36px;
  flex-wrap: wrap;
}

.utility-bar__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfc4ae;
}

.utility-bar__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-bar__divider {
  width: 1px;
  height: 10px;
  background: rgba(233, 225, 208, 0.35);
}

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.utility-bar__right .label {
  color: #cfc4ae;
  font-size: 11px;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.masthead.is-stuck {
  box-shadow: 0 12px 24px -22px rgba(27, 26, 23, 0.8);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--text);
  padding-block: var(--s-2);
}

/* 品牌标记：使用透明底 PNG，直接置于页面底色上 */
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current]:not([aria-current="false"]) {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* 当前阅读位置：加粗的下划线，与悬停区分开 */
.nav__link[aria-current]:not([aria-current="false"])::after {
  height: 2px;
  background: var(--brand);
  transform: scaleX(1);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text);
}

/* ==========================================================================
   02 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--on-brand);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--ink-900);
  color: var(--paper-100);
  border-color: var(--ink-900);
}

[data-theme="dark"] .btn--ghost:hover {
  background: var(--paper-100);
  color: var(--ink-900);
  border-color: var(--paper-100);
}

.btn--quiet {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: var(--s-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.35em;
}

.btn--quiet:hover {
  color: var(--brand);
  text-decoration-color: currentColor;
}

.btn--sm {
  min-height: 36px;
  padding-inline: var(--s-3);
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

/* 图标按钮：键盘/主题切换 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r-xs);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   03 标签 / 印章 / 分隔
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--brand {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
}

.chip--seal {
  border-color: color-mix(in srgb, var(--seal) 40%, transparent);
  color: var(--seal);
  background: color-mix(in srgb, var(--seal-soft) 60%, var(--surface));
  transform: rotate(-1.5deg);
}

/* 圆形印章：仅视觉，文字信息由相邻正文承载 */
.seal {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(-9deg);
  opacity: 0.88;
  position: relative;
  flex: none;
  padding: 6px;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.55;
}

.seal--sm {
  width: 68px;
  height: 68px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.rule-double {
  border: 0;
  border-top: 3px double var(--line);
  margin: 0;
}

/* ==========================================================================
   04 区块标题（目录式）
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-4) var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--s-8);
}

.section-head__main {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.section-head__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--seal);
  padding-bottom: 6px;
}

.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.section-head__en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-head__desc {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  max-width: 66ch;
  margin-top: var(--s-1);
}

/* ==========================================================================
   05 首屏
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

/* 网格纸底纹 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--bg-pattern) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-pattern) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--seal);
  border-radius: 50%;
  flex: none;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin-bottom: var(--s-5);
}

.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

/* 档案索引条：字下细线，作为强调标记 */
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.08em;
  bottom: -0.04em;
  height: 3px;
  background: var(--brand);
}

.hero__sub {
  margin-bottom: var(--s-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta-value {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   06 卷宗封面（首屏右侧主视觉）
   ========================================================================== */
.dossier {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.dossier__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: calc(100% - 56px);
  padding: 10px var(--s-4);
  background: var(--ink-900);
  color: var(--paper-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.dossier__tab .num {
  color: #e9e1d0;
}

.dossier__sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--paper-400);
  border-top: 3px solid var(--ink-900);
  box-shadow: var(--shadow-paper);
  padding: var(--s-6) var(--s-6) var(--s-6) calc(var(--s-6) + 14px);
  background-image: linear-gradient(180deg, rgba(196, 183, 155, 0.14), transparent 42%);
}

/* 装订孔 */
.dossier__sheet::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 6px;
  background-image: radial-gradient(circle, var(--paper-400) 2px, transparent 2.5px);
  background-size: 6px 28px;
  background-repeat: repeat-y;
  opacity: 0.9;
}

.dossier__code {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dossier__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.dossier__subject {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}

.dossier__rows {
  display: flex;
  flex-direction: column;
  margin: 0 0 var(--s-5);
  border-top: 1px solid var(--line);
}

.dossier__row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--s-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.dossier__row dt {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.dossier__row dd {
  margin: 0;
  color: var(--text);
}

.dossier__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
}

.dossier__stamp-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   07 数据条
   ========================================================================== */
.stats-band {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding-block: var(--s-9);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stats-band {
  background: #0d0c09;
  color: var(--paper-100);
}

.stats-band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid rgba(233, 225, 208, 0.22);
}

.stats-band__head h2 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.stats-band__head .label {
  color: rgba(233, 225, 208, 0.62);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  position: relative;
  padding-left: var(--s-4);
  border-left: 1px solid rgba(233, 225, 208, 0.22);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stat__unit {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: rgba(233, 225, 208, 0.66);
  margin-left: 4px;
}

.stat__label {
  font-size: var(--fs-sm);
  color: rgba(233, 225, 208, 0.78);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   08 服务索引卡
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--paper-400);
  border-bottom: 1px solid var(--paper-400);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--paper-400);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.service-card__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface));
  border-radius: var(--r-xs);
}

.service-card__icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-card p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-muted);
}

.service-card__list {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.service-card__list li {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
}

.service-card__list li::before {
  content: "—";
  color: var(--paper-400);
  flex: none;
}

/* 收口条：一体化交付说明，横贯整行，不与上方卡片对齐 */
.service-card--note {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  background: var(--surface-2);
  border-style: dashed;
  border-color: var(--paper-400);
}

.service-card--note .service-card__top,
.service-card--note h3 {
  flex: 0 0 auto;
}

.service-card--note p {
  flex: 1 1 280px;
  max-width: 46ch;
}

.service-card--note .seal {
  margin-left: auto;
  align-self: center;
}

/* ==========================================================================
   09 筛选项 + 案例表
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.filter {
  min-height: 36px;
  padding: 0 var(--s-4);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-50);
}

[data-theme="dark"] .filter[aria-pressed="true"] {
  background: var(--paper-100);
  border-color: var(--paper-100);
  color: var(--ink-900);
}

.case-list {
  border-top: 1px solid var(--line-strong);
}

.case-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px 190px 40px;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5) var(--s-2);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.case-row:hover {
  background: var(--surface);
  padding-left: var(--s-4);
  color: var(--text);
}

.case-row__no {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--seal);
  letter-spacing: 0.06em;
}

.case-row__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-row__sub {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.case-row__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-row__scale {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-align: right;
}

.case-row__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  justify-self: end;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.case-row__arrow svg {
  width: 16px;
  height: 16px;
}

.case-row:hover .case-row__arrow {
  color: var(--brand);
  border-color: var(--line);
  transform: translateX(2px);
}

.case-row.is-hidden {
  display: none;
}

/* ==========================================================================
   10 资质证书卡
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--paper-400);
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cert-card:hover {
  border-color: var(--paper-400);
  box-shadow: var(--shadow-paper);
}

.cert-card--key {
  border-top-color: var(--seal);
  background: linear-gradient(180deg, color-mix(in srgb, var(--seal-soft) 34%, var(--surface)), var(--surface) 55%);
}

.cert-card__no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.cert-card h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.cert-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.cert-card__meta {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   11 成果展示（四栏，末行留白）
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.gallery__item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: var(--text);
}

.gallery__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 7px,
    color-mix(in srgb, var(--paper-400) 26%, transparent) 7px 8px
  );
}

.gallery__figure::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--paper-400) 70%, transparent);
}

/* 实拍成果图：满铺裁切；缺图时图片被移除，底下斜纹占位自然露出 */
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 界面截图与图纸：整幅装入纸面，不裁切（--fit） */
.gallery__img--fit {
  object-fit: contain;
}

.gallery__figure.is-plate {
  background-image: none;
  background-color: var(--surface-2);
}

/* has-photo 由 app.js 在图片加载成功后加上，印章加纸底保证可读 */
.gallery__figure.has-photo .gallery__stamp {
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.gallery__stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
  border: 1px solid color-mix(in srgb, var(--seal) 45%, transparent);
  padding: 3px 6px;
  transform: rotate(-4deg);
}

.gallery__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery__body h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery__body p {
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--text-muted);
}

/* ==========================================================================
   12 服务单位名录
   ========================================================================== */
.clients {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
}

.clients__aside h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-3);
}

.clients__aside p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.clients__note {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.clients__list {
  columns: 3;
  column-gap: var(--s-6);
  column-rule: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 2;
}

.clients__list li {
  break-inside: avoid;
}

/* ==========================================================================
   13 联系 / 公文抬头卡
   ========================================================================== */
.contact-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--paper-400);
  box-shadow: var(--shadow-paper);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.contact-panel__docno {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--seal);
  margin-bottom: var(--s-4);
}

.contact-panel h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-4);
}

.contact-panel__lead {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.95;
  margin-bottom: var(--s-6);
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px dashed var(--line);
}

.contact-point {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.contact-point svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  margin-top: 4px;
}

.contact-point strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.contact-point span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.7;
}

/* 表单 */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.field__label .req {
  color: var(--seal);
  margin-left: 2px;
}

.field__hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}

.input,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--s-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.72;
}

.input:hover,
.textarea:hover {
  border-color: var(--paper-400);
}

.input:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
  background: var(--surface);
}

.textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.7;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-1);
}

.form__note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1 1 160px;
}

.form__status {
  display: none;
  padding: 10px var(--s-3);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface));
  color: var(--brand);
  font-size: var(--fs-sm);
}

.form__status.is-visible {
  display: block;
}

/* ==========================================================================
   14 页脚
   ========================================================================== */
.footer {
  background: var(--surface-inverse);
  color: var(--paper-200);
  padding-top: var(--s-9);
  padding-bottom: var(--s-5);
  margin-top: 0;
}

[data-theme="dark"] .footer {
  background: #0d0c09;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: var(--s-6);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(233, 225, 208, 0.2);
}

.footer__brand .brand {
  color: var(--paper-100);
  margin-bottom: var(--s-3);
}

[data-theme="dark"] .brand__mark img,
.footer__brand .brand__mark img {
  filter: brightness(1.65) saturate(1.1);
}

.footer__brand .brand__sub {
  color: rgba(233, 225, 208, 0.55);
}

.footer__slogan {
  font-size: var(--fs-sm);
  color: rgba(233, 225, 208, 0.72);
  letter-spacing: 0.12em;
  line-height: 1.9;
  max-width: 30ch;
}

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 225, 208, 0.5);
  margin-bottom: var(--s-4);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__col a {
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
  color: rgba(233, 225, 208, 0.82);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer__col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(233, 225, 208, 0.55);
  text-transform: uppercase;
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--paper-100);
  text-decoration: underline;
}

.footer__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #9ec3e2;
  border-radius: 50%;
}

/* ==========================================================================
   14B AI 能力
   ========================================================================== */
/* 服务网格下方的 AI 模块卡：整幅横幅，左侧说明、右侧六项列表 */
.service-card--ai {
  margin-top: var(--s-4);
  border-top: 2px solid color-mix(in srgb, var(--brand) 50%, transparent);
}

.ai-module {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: var(--s-5) var(--s-8);
  align-items: start;
}

.ai-module__intro {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.ai-module__intro h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ai-module__intro p {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-muted);
}

.ai-module__principles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.ai-module__principles li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.ai-module__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-6);
  border-top: 1px solid var(--line);
}

.ai-module__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ai-module__list b {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ai-module__list li > span:last-child {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-muted);
}



/* ==========================================================================
   15 面包屑 / 分页 / 提示 / 数据表
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.breadcrumb__sep {
  color: var(--paper-400);
  font-family: var(--font-mono);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.pagination__item:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.pagination__item[aria-current="page"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-50);
}

.pagination__item[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.alert {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}

.alert svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--brand);
}

.alert strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.alert--seal {
  border-left-color: var(--seal);
  background: color-mix(in srgb, var(--seal-soft) 32%, var(--surface));
}

.alert--seal svg {
  color: var(--seal);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--s-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.table th,
.table td {
  padding: 12px var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--paper-400);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* ==========================================================================
   16 入场动效（仅在 JS 可用时启用隐藏态，避免无脚本时不可见）
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   16 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .clients__list {
    columns: 2;
  }

  /* 中等宽度：压缩品牌与导航，避免中文导航逐字换行 */
  .brand__name {
    font-size: 15px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .brand__sub {
    display: none;
  }

  .nav__link {
    padding-inline: var(--s-2);
    font-size: var(--fs-xs);
    white-space: nowrap;
  }

  .nav__link::after {
    left: var(--s-2);
    right: var(--s-2);
  }

  .masthead__actions .btn {
    padding-inline: var(--s-4);
  }
}

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }

  .dossier {
    max-width: 520px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--s-7);
  }

  .stat:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .services,
  .cert-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-module {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav,
  .masthead__actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* 移动端抽屉 */
  .masthead.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -32px rgba(27, 26, 23, 0.9);
  }

  .masthead.is-open .nav__link {
    min-height: 48px;
    padding-inline: 0;
    border-bottom: 1px dashed var(--line);
    font-size: var(--fs-body);
  }

  .masthead.is-open .nav__link::after {
    display: none;
  }

  /* 抽屉里没有下划线，用品牌色标出当前区块 */
  .masthead.is-open .nav__link[aria-current]:not([aria-current="false"]) {
    color: var(--brand);
  }

  .case-row {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: var(--s-2) var(--s-3);
  }

  .case-row__type {
    grid-column: 2;
  }

  .case-row__scale {
    grid-column: 2;
    text-align: left;
    color: var(--text-muted);
    font-size: var(--fs-xs);
  }

  .case-row__arrow {
    grid-row: 1 / span 3;
    grid-column: 3;
    align-self: center;
  }

  .clients {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .utility-bar__right {
    display: none;
  }

  .masthead__inner {
    gap: var(--s-3);
  }

  .brand {
    gap: var(--s-2);
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 15px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .brand__sub {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .services,
  .cert-grid,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-module__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .clients__list {
    columns: 1;
    column-rule: 0;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .section-head__meta {
    align-items: flex-start;
    text-align: left;
  }



  .dossier__sheet {
    padding: var(--s-5) var(--s-4) var(--s-5) calc(var(--s-4) + 12px);
  }

  .dossier__sheet::before {
    left: 14px;
  }
}
