/* ============================================================
   厚石科技 HOUSHI TECH · 编辑式品牌版面
   内容口径对齐 houshi.tech；明暗：light / dark  矿物色：jade / slate / cobalt
   规则：不用渐变、玻璃、圆角、阴影、发光；用线、字号、留白和一点颜色
   ============================================================ */

:root {
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
}

:root,
[data-theme="light"] {
  --bg: #f1efea;
  --paper: #f8f6f1;
  --ink: #17181a;
  --ink-2: #4c4e50;
  --ink-3: #8b8d89;
  --line: rgba(23, 24, 26, .15);
  --line-2: rgba(23, 24, 26, .32);
  --grid: rgba(23, 24, 26, .045);
  --noise: .038;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #101112;
  --paper: #181a1b;
  --ink: #ece9e2;
  --ink-2: #a9aaa6;
  --ink-3: #717370;
  --line: rgba(236, 233, 226, .15);
  --line-2: rgba(236, 233, 226, .32);
  --grid: rgba(236, 233, 226, .05);
  --noise: .055;
  color-scheme: dark;
}

/* jade 为官网 emerald 主色的低饱和版本，作为品牌首选 */
[data-accent="jade"]   { --accent: #1c7457; --accent-rgb: 28, 116, 87; }
[data-accent="slate"]  { --accent: #2e6c68; --accent-rgb: 46, 108, 104; }
[data-accent="cobalt"] { --accent: #3b4c85; --accent-rgb: 59, 76, 133; }

[data-theme="dark"][data-accent="jade"]   { --accent: #79cfa6; --accent-rgb: 121, 207, 166; }
[data-theme="dark"][data-accent="slate"]  { --accent: #6bb6ac; --accent-rgb: 107, 182, 172; }
[data-theme="dark"][data-accent="cobalt"] { --accent: #8a9cd8; --accent-rgb: 138, 156, 216; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
/* 纸张颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: var(--noise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, blockquote, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
i, em { font-style: normal; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(1280px, 100% - 72px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.progress-bar { position: fixed; top: 0; left: 0; width: 0; height: 2px; z-index: 100; background: var(--accent); transition: width .1s linear; }

/* ---------- 报头 / 导航 ---------- */
.masthead { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.masthead.scrolled { border-bottom-color: var(--line-2); }
.masthead-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-seal { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 17px; line-height: 1; transform: rotate(-4deg); transition: background .35s ease; }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-type b { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.logo-type i { margin-top: 5px; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: var(--ink-3); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; padding: 6px 0; font-size: 13px; color: var(--ink-2); transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.tools-label { font-size: 9px; color: var(--ink-3); letter-spacing: .16em; }
.mode-switch { display: flex; border: 1px solid var(--line-2); }
.mode-switch button { padding: 6px 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-2); border-right: 1px solid var(--line-2); transition: background .2s ease, color .2s ease; }
.mode-switch button:last-child { border-right: 0; }
.mode-switch button:hover { color: var(--accent); }
.mode-switch button.is-active { background: var(--ink); color: var(--bg); }
.accent-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; transition: border-color .2s ease; }
.accent-btn:hover { border-color: var(--accent); }
.swatch { width: 10px; height: 10px; background: var(--accent); transition: background .35s ease; }
.menu-btn { display: none; width: 34px; height: 32px; place-items: center; border: 1px solid var(--line-2); }

/* ---------- HERO ---------- */
.hero-wrap { position: relative; }
.side-mark { position: absolute; left: -34px; top: 250px; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .28em; color: var(--ink-3); }
.hero-top { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--ink-3); }
.hero-main { display: grid; grid-template-columns: 1fr 272px; gap: 64px; padding: 82px 0 72px; }
.hero-title h1 { font-size: clamp(3rem, 7.1vw, 6.9rem); font-weight: 900; line-height: 1.09; letter-spacing: -.052em; }
.title-sq { display: inline-block; width: .15em; height: .15em; margin-left: .16em; background: var(--accent); vertical-align: middle; transform: translateY(-.06em); transition: background .35s ease; }
.hero-sub { max-width: 620px; margin-top: 30px; font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; margin-top: 42px; }
.link-cta { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); font-size: 16px; font-weight: 700; transition: color .2s ease, border-color .2s ease; }
.link-cta::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.link-cta svg { width: 18px; height: 18px; transition: transform .25s ease; }
.link-cta:hover { color: var(--accent); border-color: var(--accent); }
.link-cta:hover svg { transform: translateX(5px); }
.link-plain { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 5px; transition: color .2s ease; }
.link-plain .mono { margin-left: 6px; font-size: 11px; }
.link-plain:hover { color: var(--accent); }

.hero-index { border-left: 1px solid var(--line-2); padding-left: 24px; }
.index-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 9.5px; }
.hero-index li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.hero-index li .mono { width: 22px; color: var(--accent); font-size: 10px; }
.seal { display: grid; place-items: center; width: 92px; height: 92px; margin: 44px 0 0 auto; background: var(--accent); color: #fff; transform: rotate(-6deg); transition: background .35s ease; }
.seal span { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255, 255, 255, .58); font-family: var(--serif); font-size: 46px; line-height: 1; }
[data-theme="dark"] .logo-seal, [data-theme="dark"] .seal { color: #101112; }
[data-theme="dark"] .seal span { border-color: rgba(16, 17, 18, .45); }

.hero-foot { display: flex; align-items: center; border-top: 1px solid var(--line-2); padding: 22px 0 30px; }
.fact { flex: 1; padding-left: 26px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.fact b .pct { font-size: 17px; }
.fact > span { display: block; margin-top: 5px; font-size: 9px; color: var(--ink-3); }
.fact.is-word b { font-family: var(--sans); font-size: 27px; font-weight: 800; letter-spacing: .14em; }
.scroll-mark { padding-left: 26px; color: var(--ink-3); font-size: 9px; white-space: nowrap; }
.scroll-mark span { margin-left: 8px; }

/* ---------- 技术栈（静态索引行） ---------- */
.stack { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stack-inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 34px; }
.stack-label { color: var(--accent); white-space: nowrap; }
.stack-list { font-size: 11px; letter-spacing: .08em; line-height: 2; color: var(--ink-2); }
.stack-list i { margin: 0 7px; color: var(--line-2); }

/* ---------- 章节通用 ---------- */
.sec { padding: 96px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 56px 1fr auto; align-items: end; gap: 20px; padding-bottom: 26px; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); }
.sec-no { color: var(--accent); font-size: 12px; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.038em; }
.sec-aside { color: var(--ink-3); font-size: 10px; text-align: right; white-space: nowrap; }
.sec-intro { max-width: 860px; margin: -12px 0 36px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

/* ---------- 服务：索引列表 ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 56px minmax(200px, 1fr) minmax(280px, 1.5fr) 36px; gap: 24px; align-items: center; padding: 24px 16px; border-bottom: 1px solid var(--line); transition: background .18s ease, color .18s ease; }
.svc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity .18s ease; }
.svc-no { color: var(--ink-3); font-size: 11px; }
.svc-name { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.svc-desc { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.svc-desc i { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.75; color: var(--ink-3); }
.svc-arrow { display: grid; place-items: center; color: var(--ink-3); }
.svc-arrow svg { width: 19px; height: 19px; transition: transform .2s ease; }
.svc-row:hover { background: var(--ink); color: var(--bg); border-bottom-color: transparent; }
.svc-row:hover::before { opacity: 1; }
.svc-row:hover .svc-no, .svc-row:hover .svc-desc, .svc-row:hover .svc-arrow { color: var(--bg); }
.svc-row:hover .svc-desc i { color: var(--bg); opacity: .72; }
.svc-row:hover .svc-arrow svg { transform: translate(3px, -3px); }

/* ---------- 案例：图纸式线框 ---------- */
.work-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 48px; }
.work-item { min-width: 0; }
.work-lead { grid-row: span 2; }
.work-wide { grid-column: 1 / -1; }
.wide-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); }

.figure { position: relative; height: 200px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.figure.fig-tall { height: 420px; }
.fig-cap { position: absolute; left: 12px; bottom: 10px; padding: 3px 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-3); font-size: 9px; }
.bp { position: relative; width: 84%; height: 70%; }
.bp-line { display: block; height: 5px; background: var(--line); }
.w30 { width: 30%; } .w40 { width: 40%; } .w55 { width: 55%; } .w60 { width: 60%; } .w85 { width: 85%; }

/* 图纸 01 · 小程序 */
.bp-phone { display: grid; place-items: center; }
.bp-frame { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; width: 174px; height: 306px; padding: 16px 14px; border: 1px solid var(--line-2); background: var(--bg); }
.bp-notch { align-self: center; width: 38px; height: 4px; margin-bottom: 4px; background: var(--line-2); }
.bp-hero { width: 100%; height: 74px; border: 1px solid var(--line-2); background: repeating-linear-gradient(45deg, transparent, transparent 7px, var(--line) 7px, var(--line) 8px); }
.bp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
.bp-tiles i { height: 22px; border: 1px solid var(--line); }
.bp-fill { width: 100%; height: 24px; background: var(--accent); }
.bp-dots { display: flex; justify-content: center; gap: 9px; width: 100%; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.bp-dots i { width: 6px; height: 6px; border: 1px solid var(--line-2); border-radius: 50%; }
.bp-dots i:first-child { background: var(--accent); border-color: var(--accent); }

/* 图纸 02 · 后台 */
.bp-window { display: flex; flex-direction: column; width: 88%; height: 76%; border: 1px solid var(--line-2); background: var(--bg); }
.win-top { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.win-top i { width: 5px; height: 5px; border: 1px solid var(--line-2); border-radius: 50%; }
.win-top span { margin-left: auto; font-size: 8px; color: var(--ink-3); }
.win-body { display: flex; flex: 1; min-height: 0; }
.win-side { display: flex; flex-direction: column; gap: 9px; width: 34px; padding: 10px 8px; border-right: 1px solid var(--line); }
.win-side i { height: 4px; background: var(--line); }
.win-main { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; padding: 11px 13px; }
.win-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.win-cards i { height: 22px; border: 1px solid var(--line); }
.win-bars { display: flex; align-items: flex-end; gap: 6px; height: 38px; flex: none; }
.win-bars b { flex: 1; background: var(--line-2); }
.win-bars b:nth-child(1) { height: 42%; } .win-bars b:nth-child(2) { height: 66%; } .win-bars b:nth-child(3) { height: 50%; } .win-bars b:nth-child(4) { height: 80%; } .win-bars b:nth-child(5) { height: 60%; } .win-bars b:nth-child(6) { height: 88%; } .win-bars b:nth-child(7) { height: 72%; background: var(--accent); }

/* 图纸 03 · App 卡片 */
.bp-cards { display: grid; place-items: center; }
.c-stack { position: relative; width: 62%; height: 78%; }
.c-stack span { position: absolute; width: 64%; height: 82%; border: 1px solid var(--line-2); background: var(--bg); }
.c-stack span:nth-child(1) { left: 0; top: 0; }
.c-stack span:nth-child(2) { left: 16%; top: 9%; }
.c-stack span:nth-child(3) { left: 32%; top: 18%; background: var(--paper); }
.c-stack span:nth-child(3)::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; background: var(--accent); }

/* 图纸 04 · 官网栅格 */
.bp-grid { display: flex; flex-direction: column; gap: 10px; width: 88%; height: 76%; padding: 16px 20px; border: 1px solid var(--line-2); background: var(--bg); }
.g-head { display: flex; align-items: center; justify-content: space-between; }
.g-head i { display: block; width: 32px; height: 10px; border: 1px solid var(--line-2); }
.g-title { width: 72%; height: 20px; background: var(--line-2); }
.g-sub { width: 46%; height: 5px; background: var(--line); }
.g-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: auto; }
.g-cols i { height: 32px; border: 1px solid var(--line); }
.g-cols i:first-child { border-color: var(--accent); }

.work-info { padding-top: 16px; }
.work-cat { color: var(--accent); font-size: 10px; }
.work-info h3 { margin: 8px 0 7px; font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.work-info p { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.work-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 10px; transition: color .2s ease, border-color .2s ease; }
.work-link:hover { color: var(--accent); border-color: var(--accent); }
.work-note { margin-top: 28px; color: var(--ink-3); font-size: 10px; }

/* ---------- 工程能力：栅格词条 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.cap-item { padding: 24px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-no { color: var(--accent); font-size: 10px; }
.cap-item h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.cap-item p { font-size: 13px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 流程 / 理念：无卡片 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.flow-item { position: relative; display: flex; flex-direction: column; min-height: 236px; padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.flow-item:last-child { border-right: 0; }
.flow-item::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.flow-no { color: var(--accent); font-size: 10px; }
.flow-item h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 750; }
.flow-item p { flex: 1; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.flow-out { display: block; padding: 13px 0 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 9.5px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-l p { font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.about-l .about-lead { font-size: 19px; line-height: 1.9; color: var(--ink); margin-bottom: 18px; }
.creed { margin-top: 36px; padding: 22px 0 26px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.creed > .mono { color: var(--accent); font-size: 10px; }
.creed blockquote { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 600; line-height: 1.55; letter-spacing: .01em; }
.about-r-label { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 9.5px; }
.principles li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.principles li > .mono { padding-top: 4px; color: var(--accent); font-size: 11px; }
.principles b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 750; }

/* ---------- 合规与边界 ---------- */
.compliance-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; }
.comp-intro p { font-size: 15px; line-height: 2; color: var(--ink-2); }
.comp-stamp { display: block; margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--accent); font-size: 9.5px; line-height: 2; }
.comp-list { border-top: 1px solid var(--line-2); }
.comp-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.comp-list li > .mono { padding-top: 6px; color: var(--accent); font-size: 10px; }
.comp-list b { color: var(--ink); font-weight: 700; }
.comp-note { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink-3); font-size: 10px; line-height: 1.9; }

/* ---------- 联系：整块反色 ---------- */
.sec-contact { padding-bottom: 70px; }
.cta { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; padding: 62px 56px; background: var(--ink); color: var(--bg); }
.cta .mono { opacity: .72; }
.cta-label { display: block; margin-bottom: 24px; font-size: 10px; }
.cta h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 800; line-height: 1.22; letter-spacing: -.038em; }
.cta-mail { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--bg); font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; }
.cta-mail svg { width: .8em; height: .8em; transition: transform .2s ease; }
.cta-mail:hover svg { transform: translate(4px, -4px); }
.cta-r p { margin: 20px 0 24px; font-size: 14px; line-height: 1.9; opacity: .82; }
.cta-meta { display: block; font-size: 9.5px; line-height: 1.9; }
.contact-meta { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; }
.contact-meta > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-right: 1px solid var(--line); }
.contact-meta > div:last-child { border-right: 0; }
.contact-meta span { color: var(--ink-3); font-size: 9.5px; }
.contact-meta a, .contact-meta strong { font-size: 14px; font-weight: 650; }
.contact-meta a:hover { color: var(--accent); }

/* ---------- 页脚 ---------- */
.footer { padding: 60px 0 24px; border-top: 1px solid var(--line-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand > .mono { color: var(--accent); font-size: 10px; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col > .mono { margin-bottom: 6px; color: var(--ink-3); font-size: 9.5px; }
.footer-col a { font-size: 13px; color: var(--ink-2); transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.wordmark { padding: 18px 0 34px; font-size: clamp(4rem, 15.5vw, 14rem); font-weight: 900; line-height: .85; letter-spacing: -.07em; text-align: center; white-space: nowrap; overflow: hidden; color: var(--line); -webkit-text-stroke: 1px var(--line-2); user-select: none; }
@supports (-webkit-text-stroke: 1px #000) { .wordmark { color: transparent; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 9.5px; }
.footer-mode { display: flex; gap: 20px; }
#randomAgain { padding-bottom: 2px; border-bottom: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; }
#randomAgain:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 浮层控件 ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--ink); color: var(--bg); }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 90; max-width: min(420px, 80vw); padding: 10px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 入场（克制） ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
/* 导航项增至 7 个，提前折叠，避免中等宽度挤压 */
@media (max-width: 1180px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .menu-btn { display: grid; }
  .tools-label { display: none; }
}
@media (max-width: 1100px) {
  .wrap { width: min(1280px, 100% - 48px); }
  .side-mark { display: none; }
  .hero-main { grid-template-columns: 1fr 230px; gap: 40px; }
  .about-grid { gap: 50px; }
  .compliance-wrap { gap: 40px; }
  .svc-row { grid-template-columns: 48px minmax(180px, 1fr) minmax(220px, 1.3fr) 30px; gap: 16px; }
  .flow-item { padding-right: 14px; }
}
@media (max-width: 960px) {
  .hero-main { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 56px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-wrap { grid-template-columns: 1fr; gap: 30px; }
  .comp-stamp { margin-top: 18px; }
  .hero-index { border-left: 0; border-top: 1px solid var(--line-2); padding: 20px 0 0; }
  .hero-index ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .seal { margin: 24px 0 0; }
  .sec { padding: 76px 0; }
  .svc-row { grid-template-columns: 44px 1fr 30px; gap: 12px; padding: 20px 12px; }
  .svc-desc { grid-column: 2 / 3; grid-row: 2; font-size: 12.5px; }
  .svc-arrow { grid-column: 3; grid-row: 1; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-lead { grid-row: auto; }
  .figure.fig-tall { height: 340px; }
  .work-wide { grid-column: auto; }
  .wide-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-item { min-height: 210px; border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; gap: 32px; padding: 46px 38px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { width: min(1280px, 100% - 32px); }
  .masthead-inner { height: 64px; gap: 12px; }
  .logo-type i { display: none; }
  .nav-links { top: 64px; padding-inline: 16px; }
  .tools { gap: 6px; padding-left: 10px; }
  .mode-switch button { padding: 5px 7px; font-size: 9px; }
  .accent-btn { padding: 5px 7px; }
  #accentName { display: none; }
  .hero-top span:last-child { display: none; }
  .hero-main { padding: 52px 0 44px; }
  .hero-title h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); letter-spacing: -.045em; }
  .hero-sub { margin-top: 22px; font-size: 14px; }
  .hero-sub br { display: none; }
  .hero-actions { gap: 20px; margin-top: 30px; }
  .hero-index ol { grid-template-columns: 1fr; }
  .sec-intro { margin: -6px 0 26px; font-size: 13px; }
  .cap-grid { grid-template-columns: 1fr; }
  .comp-list li { grid-template-columns: 32px 1fr; gap: 10px; font-size: 13px; }
  .hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 0; padding: 20px 0 26px; }
  .fact { padding-left: 16px; border-right: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; }
  .fact b { font-size: 26px; }
  .scroll-mark { display: none; }
  .stack-inner { flex-direction: column; gap: 8px; }
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 36px 1fr; gap: 10px; padding-bottom: 20px; margin-bottom: 28px; }
  .sec-aside { display: none; }
  .sec-head h2 { font-size: 2rem; }
  .svc-name { font-size: 18px; }
  .figure { height: 180px; }
  .figure.fig-tall { height: 320px; }
  .bp-frame { width: 150px; height: 262px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-item { min-height: 0; padding: 20px 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-item p { padding-bottom: 16px; }
  .about-l .about-lead { font-size: 17px; }
  .creed blockquote { font-size: 1.7rem; }
  .cta { padding: 36px 24px; }
  .cta-mail { font-size: 1.15rem; }
  .contact-meta { grid-template-columns: 1fr; }
  .contact-meta > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .contact-meta > div:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .wordmark { font-size: 19vw; padding: 14px 0 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .to-top { right: 14px; bottom: 14px; }
  .toast { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
