/* ==========================================================================
   MEGATRON — fidelity rebuild
   Desktop-first. Light / dark themes. No framework, no build step.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --display: "Avenir Next", "Helvetica Neue", "PingFang SC", sans-serif;
  --num: "DIN Alternate", "Avenir Next", "Helvetica Neue", sans-serif;

  --max: 1680px;
  --pad: clamp(36px, 4vw, 72px);
  --gutter: 48px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.22,.7,.25,1);
  --dur: .55s;

  --accent: #9a5a2b;
  --accent-2: #7d4520;
  --accent-soft: rgba(154,90,43,.08);
  --warm: #c8792a;

  --bg: #ffffff;
  --bg-2: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --ink: #0a0a0a;
  --ink-2: #383838;
  --muted: #767676;
  --line: rgba(10,10,10,.12);
  --line-2: rgba(10,10,10,.3);
  --shadow: 0 24px 60px rgba(0,0,0,.07);
  --hdr-bg: #ffffff;
  --hdr-ink: #0a0a0a;
  --card-hover: #ffffff;

  --hero-bg: #000000;
  --hero-ink: #ffffff;
  --hero-muted: #b9bfc2;
  --hero-line: rgba(255,255,255,.2);
}

:root[data-theme="dark"] {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --surface: #0c0c0c;
  --surface-2: #111111;
  --ink: #f6f6f3;
  --ink-2: #c9c9c4;
  --muted: #8b8b86;
  --line: rgba(255,255,255,.14);
  --line-2: rgba(255,255,255,.3);
  --shadow: 0 30px 80px rgba(0,0,0,.5);
  --hdr-bg: #050505;
  --hdr-ink: #f6f6f3;
  --accent: #e0a267;
  --accent-2: #f0c092;
  --accent-soft: rgba(224,162,103,.12);
  --warm: #e0a25a;
  --card-hover: #0c0c0c;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }
::selection { color: #fff; background: var(--accent); }

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

.skip {
  position: fixed; top: -80px; left: 24px; z-index: 999;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 13px;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.mono { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* --- type --------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--accent);
}

.hero .eyebrow { color: var(--hero-muted); }
.hero .eyebrow::before { background: #ffc98a; box-shadow: none; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 3.1vw, 46px); }
h3 { font-size: 22px; }

.lead { color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.9; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color .25s, border-color .25s, gap .25s;
}
.link span { transition: transform .25s var(--ease); }
.link:hover { color: var(--accent); border-color: var(--accent); }
.link:hover span { transform: translateX(4px); }

/* --- header ------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 72px;
  display: flex; align-items: center; gap: 40px;
  padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2));
  color: var(--hero-ink);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.hdr.solid {
  color: var(--hdr-ink);
  background: var(--hdr-bg);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 34px; height: auto; }
.brand strong { display: block; font-size: 16px; letter-spacing: .06em; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; font-family: var(--display); font-size: 8px; letter-spacing: .26em; opacity: .62; }

.nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: 0; flex: 0 1 650px; min-width: 0; margin-left: 26px; }
.nav > * { justify-self: center; white-space: nowrap; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 14px; color: currentColor; opacity: .82;
  transition: opacity .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { opacity: 1; }

.hdr-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: currentColor;
  border: 1px solid currentColor;
  opacity: .5;
  transition: opacity .25s, transform .4s var(--ease);
}
.theme-btn:hover { opacity: 1; transform: rotate(18deg); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

.hdr-cta {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0; white-space: nowrap;
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  background: #fff; color: #000;
  font-size: 13px; font-weight: 500;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.hdr.solid .hdr-cta { background: var(--ink); color: var(--bg); }
.hdr-cta:hover { transform: translateY(-1px); }
.hdr-cta svg { width: 13px; height: 13px; }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
  color: var(--hero-ink);
}
.hero-contact { display: none; }
.hero-intro { display: none; }
.m-only { display: none; }
.lead-short { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #050505; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
  opacity: 1;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 0%, #000 24%, rgba(0,0,0,.93) 40%, rgba(0,0,0,.6) 54%, rgba(0,0,0,.12) 68%, transparent 78%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 14%, transparent 42%);
}
.hero-bg::after { display: none; }
.hero-sweep { display: none; }
.hero-wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 760px) 1fr; align-items: center; }
.hero-copy { padding: clamp(104px, 13vh, 150px) 0 clamp(210px, 25vh, 280px); }

.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(54px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
}
.hero h1 .l2 {
  display: block;
  white-space: nowrap;
  margin-top: 6px;
  font-weight: 300;
  color: #dcebf5;
  letter-spacing: .01em;
}
.hero h1 em {
  font-style: normal; font-weight: 600;
  color: #fff;
}
.hero-lead {
  max-width: 560px;
  white-space: pre-line;
  margin-bottom: 40px;
  color: var(--hero-muted);
  font-size: 16px; line-height: 1.95;
}
.hero-actions { display: flex; align-items: center; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #000; box-shadow: none; }
.btn-primary:hover { background: #e9e9e5; }
.btn-ghost { border: 1px solid rgba(255,255,255,.34); color: var(--hero-ink); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.hero-tags {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 46px;
  font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.5);
}
.hero-tags i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display); font-size: 9px; letter-spacing: .28em;
  color: rgba(180,210,225,.42); text-transform: uppercase;
}
.hero-foot .line { flex: 1; height: 1px; margin: 0 18px; background: rgba(170,215,240,.16); }

@keyframes hero-float {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.05) translate3d(-8px,-4px,0); }
}
@keyframes sweep {
  0%, 55% { transform: rotate(14deg) translateX(-26vw); opacity: 0; }
  65% { opacity: .9; }
  100% { transform: rotate(14deg) translateX(24vw); opacity: 0; }
}

/* --- stats -------------------------------------------------------------- */
.stats {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.74) 26%, #000 100%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 34px 22px; border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  color: #fff;
  font-family: var(--num);
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat b small { margin-left: 4px; font-family: var(--sans); font-size: 12px; font-weight: 400; color: #9a9a96; letter-spacing: 0; }
.stat p { margin-top: 12px; font-size: 12px; color: #9a9a96; letter-spacing: .05em; }

/* --- section shell ------------------------------------------------------ */
.section { padding: clamp(84px, 8vw, 128px) 0; }
.section.soft { background: var(--bg-2); }
#business { background: var(--bg-2); min-height: 100svh; }
#scope { padding-top: 48px; border-top: 1px solid var(--line); }
.svc-page { min-height: 100svh; }
#scope .sec-head { padding-top: 0; border-top: 0; }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end; gap: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}
.sec-head h2 { margin-top: 4px; }
.sec-head .section-sub { padding-bottom: 6px; }
.hero-follow > .wrap { border-top: 1px solid var(--line); padding-top: 26px; }

/* --- business cards ----------------------------------------------------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 330px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .35s;
}
.biz-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); background: var(--card-hover); }
.biz-top { display: flex; align-items: flex-start; justify-content: space-between; }
.biz-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
}
.biz-ico svg { width: 22px; height: 22px; }
.biz-no { font-family: var(--display); font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.biz-head { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.biz-head h3 { margin: 0; font-size: 22px; letter-spacing: 0; }
.biz-head .biz-no { margin-left: auto; white-space: nowrap; }
.biz-en { margin-top: 8px; font-family: var(--display); font-size: 9px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.biz-card .biz-desc { margin-top: 18px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.biz-more {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.biz-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease), color .3s; }
.biz-card:hover .biz-more svg { transform: translate(3px,-3px); color: var(--accent); }

/* --- chapters ----------------------------------------------------------- */
.chapter { padding: clamp(72px, 7vw, 112px) 0; border-top: 1px solid var(--line); }
.chapter.flip { background: var(--bg-2); }
.chapter:first-of-type { border-top: 0; }
.chapter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.chapter-media {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: #040c15;
}
.chapter-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03); transition: transform 1.2s var(--ease); }
.chapter-media.contain img { object-fit: contain; padding: 18px; }
.chapter:hover .chapter-media img { transform: scale(1.035); }
.chapter-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,12,20,.32), transparent 48%);
  pointer-events: none;
}
.chapter-media figcaption {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-family: var(--display); font-size: 9px; letter-spacing: .22em;
  color: rgba(235,245,250,.7); text-transform: uppercase;
}
.chapter.flip .chapter-media { order: 2; }
.chapter-copy { position: relative; }
.chapter-copy .index {
  font-family: var(--num); font-size: 64px; font-weight: 500; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 22px;
}
.chapter-copy h2 { margin-bottom: 20px; font-size: clamp(30px, 2.8vw, 40px); }
.chapter-copy .lead { max-width: 480px; margin-bottom: 30px; font-size: 15px; }
.kw { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--line); }
.kw li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.kw li span { font-family: var(--display); font-size: 10px; letter-spacing: .16em; color: var(--muted); }

/* --- R&D ---------------------------------------------------------------- */
.rd {
  position: relative; overflow: hidden;
  padding: clamp(84px, 8vw, 120px) 0;
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rd::before { display: none; }
.rd .wrap { position: relative; }
.rd-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: start; }
.rd .eyebrow { color: var(--muted); }
.rd h2 { color: var(--ink); font-size: clamp(30px, 2.8vw, 42px); }
.rd .lead { margin-top: 22px; color: var(--ink-2); max-width: 460px; }
.rd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rd-list li {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rd-list b { font-family: var(--display); font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 500; padding-top: 4px; }
.rd-list h3 { font-size: 17px; font-weight: 500; color: var(--ink); }
.rd-list p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.rd .link { margin-top: 32px; color: var(--ink); border-color: var(--line-2); }

/* --- projects ----------------------------------------------------------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proj-card { display: block; }
.proj-media {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(.85) contrast(1.02); }
.proj-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(0deg, #040a10 0%, #040a10 18%, rgba(4,10,16,.72) 40%, transparent 100%);
  pointer-events: none;
}
.proj-card:hover .proj-media img { transform: scale(1.05); }
.proj-media.is-empty { display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); }
.proj-media.is-empty::after { display: none; }
.proj-media.is-empty span { font-family: var(--display); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.proj-meta { padding: 16px 2px 0; }
.proj-cat { font-family: var(--display); font-size: 9px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.proj-meta h3 { margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.proj-meta p { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* --- about -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: start; }
.about-copy h2 { max-width: 560px; }
.about-copy .lead { margin-top: 26px; max-width: 520px; }
.about-copy .lead + .lead { margin-top: 18px; }
.about-link { margin-top: 34px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--num); font-size: 20px; font-weight: 500; color: var(--accent); }
.timeline p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.about-panel {
  margin-top: 34px; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.about-panel h3 { font-size: 13px; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.about-panel ul { list-style: none; margin: 14px 0 0; padding: 0; }
.about-panel li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.about-panel li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; flex: none; border-radius: 50%; background: var(--accent); }

/* --- contact ------------------------------------------------------------ */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.contact h2 { font-size: clamp(38px, 3.8vw, 60px); line-height: 1.18; }
.contact h2 em { font-style: normal; color: var(--ink); }
.contact .lead { margin-top: 24px; max-width: 460px; }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.contact-row span { color: var(--muted); letter-spacing: .08em; }
.contact-row b { font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.contact-row b a:hover { color: var(--accent); }

/* --- footer ------------------------------------------------------------- */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.ftr-brand .brand { color: var(--ink); }
.ftr-brand p { margin-top: 20px; max-width: 300px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.ftr h4 { margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.ftr li a:hover { color: var(--accent); }
.ftr-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}

/* --- subpage hero ------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 156px 0 72px;
  background: #000;
  color: var(--hero-ink);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 46%, rgba(0,0,0,.4) 78%, transparent 100%);
}
.page-hero::after { display: none; }
.page-hero .wrap { position: relative; z-index: 2; }
/* 四个内容页共用同一首屏组件：同尺寸、同布局、同裁切、同遮罩。 */
.page-hero.page-hero-standard {
  min-height: 482px; padding: 110px 0 42px; background: #171514;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
.page-hero-standard::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(4,4,4,.95) 0%, rgba(7,7,7,.82) 42%, rgba(7,7,7,.28) 78%, rgba(7,7,7,.18) 100%);
}
.page-hero.page-hero-standard h1 { font-size: clamp(42px, 3.8vw, 54px); min-height: calc(2.24 * clamp(42px, 3.8vw, 54px)); }
.page-hero.page-hero-standard .lead { max-width: 620px; }
@media (max-width: 860px) {
  .page-hero.page-hero-standard { min-height: 440px; padding: 96px 0 40px; }
  .page-hero.page-hero-standard h1 { font-size: clamp(34px, 9vw, 42px); min-height: calc(2.24 * clamp(34px, 9vw, 42px)); }
}
.page-ghost {
  position: absolute; z-index: 1; right: 4%; bottom: -8%;
  font-family: var(--num); font-weight: 500; line-height: .8;
  font-size: clamp(200px, 25vw, 360px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  pointer-events: none; user-select: none;
}
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 30px; }
.crumbs a:hover { color: #fff; }
.crumbs i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.page-hero h1 { font-size: clamp(44px, 4.6vw, 68px); letter-spacing: -.02em; }
.page-hero .lead { margin-top: 24px; max-width: 620px; color: var(--hero-muted); font-size: 15px; }
.page-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.page-tags span {
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
  font-size: 11px; color: rgba(210,230,240,.8); letter-spacing: .06em;
}

/* --- service page ------------------------------------------------------- */
.svc-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.svc-intro h2 { max-width: 420px; }
.svc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.svc-group { padding: 26px 0; border-top: 1px solid var(--line); }
.svc-group h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.svc-group p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.svc-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.svc-group li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); }

/* Pending business scope: shown until the business side confirms it. */
.pending-note { margin: 26px 0 0; padding: 18px 20px; border: 1px dashed var(--line-2); }
.pending-note b { font-family: var(--display); font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.pending-note p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.pending-note ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.pending-note li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 30px 0 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step b { font-family: var(--display); font-size: 10px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.step h3 { margin-top: 18px; font-size: 17px; font-weight: 500; }
.step p { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.8; }

.svc-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.next-svc {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 40px 0 0; border-top: 1px solid var(--line);
}
.next-svc span { font-family: var(--display); font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.next-svc strong { display: block; margin-top: 8px; font-size: 28px; font-weight: 500; }
.next-svc a { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; flex: none; }
.next-svc a svg { width: 18px; height: 18px; }
.next-svc a:hover { color: var(--accent); }

/* --- projects page ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  transition: all .25s;
}
.filter:hover { border-color: var(--line-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.all-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.proj-empty { padding: 60px 0; color: var(--muted); font-size: 14px; }

/* --- detail page -------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: start; }
.detail-figure { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.detail-figure img { display: block; width: 100%; height: auto; object-fit: contain; filter: saturate(.88) contrast(1.02); }
.detail-figure video, .case-gallery-item video { display:block; width:100%; max-height:75vh; background:#000; }
.detail-figure.is-empty { display: grid; place-items: center; min-height: 340px; text-align: center; background: var(--bg-2); }
.detail-figure.is-empty span { font-family: var(--display); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.detail-figure.is-empty p { margin-top: 12px; font-size: 13px; color: var(--muted); }
.detail-body h2 { font-size: 22px; margin-bottom: 14px; }
.detail-body p { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.detail-meta { margin-top: 30px; border-top: 1px solid var(--line); }
.detail-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-meta span { color: var(--muted); }

/* --- reveal ------------------------------------------------------------- */
.reveal { opacity: 1; }

/* --- desktop-first fallbacks ------------------------------------------- */

/* service page: full-screen image opener */
.page-hero.service-hero::before { display: none; }
.page-hero.service-hero {
  padding: 0;
  min-height: 100svh;
  display: flex; align-items: center;
}
.service-bg { position: absolute; inset: 0 0 0 43%; z-index: 0; }
.service-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 60% 50%);
  filter: saturate(.9) contrast(1.03) brightness(1.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
}
.service-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 16%, transparent 40%); }
.service-bg-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.32);
}
.service-hero-inner {
  position: relative; z-index: 2;
  width: min(560px, 46vw);
  margin-left: max(var(--pad), calc((100vw - var(--max)) / 2));
  margin-right: 0;
  padding: 120px 0 190px;
}
.service-hero-inner .lead { max-width: 520px; }
.service-hero-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.service-facts { display: flex; gap: clamp(26px, 4vw, 56px); }
.service-fact { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: .06em; }
.service-fact span { font-family: var(--display); font-size: 9px; color: rgba(255,255,255,.35); }
.scroll-hint { font-family: var(--display); font-size: 9px; letter-spacing: .22em; color: rgba(255,255,255,.4); text-transform: uppercase; }
.link-light { color: #fff; border-color: rgba(255,255,255,.4); }
.link-light:hover { color: #fff; border-color: #fff; }


/* global next-page rail: small icon, larger invisible hit area, slides out on hover */
.site-next-hit {
  position: fixed; z-index: 90;
  right: clamp(2px, .6vw, 8px); top: 50%; transform: translateY(-50%);
  padding: 12px;
}
.site-next {
  display: flex; align-items: center; justify-content: flex-end;
  width: max-content; max-width: 40px; height: 40px; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(8,8,8,.38);
  color: #fff;
  transition: max-width .4s var(--ease), height .3s var(--ease), padding .4s var(--ease), background .3s, border-color .3s;
}
.site-next-hit:hover .site-next,
.site-next-hit:focus-within .site-next {
  max-width: 320px; height: 44px; padding: 0 4px 0 18px;
  justify-content: flex-start; gap: 10px;
  background: rgba(8,8,8,.66); border-color: rgba(255,255,255,.42);
}
.site-next .kicker, .site-next .name {
  opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity .25s, max-width .4s var(--ease);
}
.site-next .kicker { font-family: var(--display); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.site-next .name { font-size: 13px; letter-spacing: .06em; }
.site-next-hit:hover .kicker, .site-next-hit:focus-within .kicker { opacity: 1; max-width: 42px; }
.site-next-hit:hover .name, .site-next-hit:focus-within .name { opacity: 1; max-width: 240px; }
.site-next .disc { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.site-next .disc svg { width: 15px; height: 15px; }


/* --- projects page: category index + group subheads --------------------- */
.proj-index {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proj-index a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 20px 26px; border-left: 1px solid var(--line);
  transition: color .3s;
}
.proj-index a:first-child { border-left: 0; padding-left: 0; }
.proj-index a:hover { color: var(--accent); }
.proj-index .no { font-family: var(--display); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.proj-index .nm { font-size: 16px; }
.proj-index .ct { margin-left: auto; font-family: var(--display); font-size: 11px; color: var(--muted); }
.proj-block { padding: 72px 0; border-top: 1px solid var(--line); }
.proj-block:first-of-type { border-top: 0; }
.proj-block-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px; align-items: end;
}
.proj-block-head h2 { font-size: clamp(30px, 3vw, 42px); margin-top: 10px; }
.proj-block-side p { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.proj-block-side span { display: block; margin-top: 14px; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.proj-sub { margin-top: 44px; }
.proj-sub-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.proj-sub-head h3 { font-size: 16px; font-weight: 500; }
.proj-sub-head span { font-family: var(--display); font-size: 11px; color: var(--muted); }
.proj-grid.three { grid-template-columns: repeat(3, 1fr); }


/* --- projects index: four modules, four cases each ---------------------- */
.proj-mod { padding: 72px 0; border-top: 1px solid var(--line); }
.proj-mod-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px; align-items: end; margin-bottom: 40px;
}
.proj-mod-head > * { min-width: 0; }
.proj-mod-side { min-width: 0; }
.proj-mod-side p { max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.proj-mod-head h2 { font-size: clamp(30px, 3vw, 42px); margin-top: 10px; }
.proj-mod-side p { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.proj-mod-side span { display: block; margin-top: 14px; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.proj-mod-foot { margin-top: 32px; }
.proj-grid.four { grid-template-columns: repeat(4, 1fr); }
.proj-cat-count { margin-top: 18px; font-family: var(--display); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.proj-page .proj-sub:first-child { margin-top: 0; }


/* --- project detail: one complete case page ----------------------------- */
body.case-detail .hdr { background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--line); }
.case-page { min-height: 100svh; padding: 104px 0 64px; background: var(--bg); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.case-top .link { font-size: 12px; }
.case-page .crumbs { margin-bottom: 0; color: var(--muted); }
.case-page .crumbs a { color: var(--muted); }
.case-page .crumbs a:hover { color: var(--ink); }
.case-page .page-tags span { border-color: var(--line-2); color: var(--ink-2); }
.case-head { margin-bottom: 36px; }
.case-head h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.18; margin-top: 10px; max-width: 1100px; }
.case-head .page-tags { margin-top: 18px; }
.case-grid { gap: 56px; }
.case-page .detail-body h2 { font-size: 20px; margin-bottom: 12px; }
.case-page .detail-body > p { font-size: 14px; line-height: 1.9; }
.case-note { margin-top: 24px; font-size: 12px; color: var(--muted); }

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .hero-bg img { height: 92%; opacity: .78; }
  .biz-head { gap: 12px; margin-top: 16px; }
  .biz-head .biz-ico { width: 40px; height: 40px; }
  .biz-head h3 { font-size: 20px; }
  .m-only { display: inline; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .timeline b { font-size: 18px; }
  .biz-grid, .proj-grid, .all-grid, .proj-grid.three, .proj-grid.four { grid-template-columns: repeat(2, 1fr); }
  .proj-mod-head { grid-template-columns: 1fr; gap: 24px; }
  .proj-index { grid-template-columns: repeat(2, 1fr); }
  .proj-block-head { grid-template-columns: 1fr; gap: 24px; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .rd-grid, .about-grid, .contact-grid, .svc-intro, .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .chapter-grid { grid-template-columns: 1fr; gap: 34px; }
  .chapter.flip .chapter-media { order: 0; }
  .nav { gap: 22px; }
}

@media (max-width: 860px) {
  .hdr { height: 72px; gap: 18px; }
  .nav { display: none; }
  .hero-copy { padding: 120px 0 80px; }
  .hero h1 { font-size: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .svc-groups, .steps, .svc-projects, .ftr-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .hero-foot { display: none; }
}


@media (max-height: 820px) and (min-width: 1100px) {
  .hero-copy { padding: 82px 0 156px; }
  .hero h1 { font-size: clamp(46px, 4.5vw, 62px); }
  .hero-lead { margin-bottom: 24px; line-height: 1.8; font-size: 15px; }
  .hero-tags { margin-top: 24px; }
  .stat { padding: 16px 28px 14px; }
  .stat b { font-size: clamp(30px, 3vw, 40px); }
  .stat p { margin-top: 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .hero-sweep { animation: none !important; }
  * { transition-duration: .01ms !important; }
}


/* 首页首屏以下连续氛围样片；背景在 main 上统一定位，不按章节平铺。 */
:root[data-theme="dark"] main:has(> #business) {
  background-color:#10100f;
  background-image:
    radial-gradient(ellipse 70% 17% at 87% 15%,rgba(124,94,63,.19),transparent 72%),
    radial-gradient(ellipse 60% 16% at 4% 37%,rgba(91,102,94,.16),transparent 75%),
    radial-gradient(ellipse 70% 16% at 95% 61%,rgba(124,94,63,.17),transparent 75%),
    radial-gradient(ellipse 65% 18% at 8% 84%,rgba(87,100,92,.15),transparent 75%),
    linear-gradient(160deg,#141412 0%,#1b1b18 34%,#111311 68%,#1a1916 100%);
}
:root[data-theme="dark"] main:has(> #business) > #business,
:root[data-theme="dark"] main:has(> #business) > .chapter,
:root[data-theme="dark"] main:has(> #business) > .rd,
:root[data-theme="dark"] main:has(> #business) > #projects,
:root[data-theme="dark"] main:has(> #business) > #about,
:root[data-theme="dark"] main:has(> #business) > #contact {background:transparent}
/* 图像只作为业务区一幅整体场景，淡入连续底色；不在四张卡内重复。 */
#business {position:relative; isolation:isolate}
:root[data-theme="dark"] main:has(> #business) > #business {
 background: transparent;
}
:root[data-theme="dark"] #business .biz-card {background:#191917;border-color:rgba(239,225,206,.2)}
:root[data-theme="dark"] #business .biz-card:hover {background:#292824}
.biz-card:focus-visible {outline:2px solid var(--accent);outline-offset:4px}

/* 浅色主题业务区：保留白色信息卡，以独立场景形成清晰图文层次。 */
:root:not([data-theme="dark"]) main:has(> #business) > #business {
  background: transparent;
}
:root:not([data-theme="dark"]) #business .sec-head {border-color:rgba(255,255,255,.35)}
:root:not([data-theme="dark"]) #business .sec-head h2 {color:#fff}
:root:not([data-theme="dark"]) #business .sec-head .eyebrow,
:root:not([data-theme="dark"]) #business .sec-head .section-sub {color:#f0ebe4}
:root:not([data-theme="dark"]) #business .biz-card {background:rgba(255,255,255,.97);border-color:rgba(255,255,255,.8)}
:root[data-theme="dark"] #business .sec-head .section-sub {color:#ddd8d0}

/* 首屏以下：同一坐标系的蓝色细网格；背景只作用首页，不重复铺设场景图片。 */
:root main:has(> #business) {
 background-color:#f2f5f6;
 background-image:linear-gradient(rgba(54,102,128,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(54,102,128,.10) 1px,transparent 1px),linear-gradient(125deg,#f3f6f7,#eaf0f3);
 background-size:64px 64px,64px 64px,100% 100%;
}
:root[data-theme="dark"] main:has(> #business) {
 background-color:#0c141b;
 background-image:linear-gradient(rgba(99,160,191,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(99,160,191,.12) 1px,transparent 1px),linear-gradient(125deg,#0b131a,#15232e 45%,#0d171e);
 background-size:64px 64px,64px 64px,100% 100%;
}
:root main:has(> #business) > #business,:root main:has(> #business) > .chapter,:root main:has(> #business) > .rd,:root main:has(> #business) > #projects,:root main:has(> #business) > #about,:root main:has(> #business) > #contact {background:transparent}
:root:not([data-theme="dark"]) #business .sec-head {border-color:var(--line)}
:root:not([data-theme="dark"]) #business .sec-head h2 {color:var(--ink)}
:root:not([data-theme="dark"]) #business .sec-head .eyebrow,:root:not([data-theme="dark"]) #business .sec-head .section-sub {color:var(--muted)}
.biz-card {padding:0 0 24px;overflow:hidden}
.biz-image {position:relative;aspect-ratio:1.7;overflow:hidden;background:#172632}
.biz-image > span, .chapter-media > span {position:absolute;inset:0;display:grid;place-items:center;color:#d4e0e5;font-size:13px}
.biz-image img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease)}
.biz-card:hover .biz-image img {transform:scale(1.035)}
.biz-card .biz-top,.biz-card h3,.biz-card .biz-en,.biz-card .biz-desc,.biz-card .biz-more {margin-left:24px;margin-right:24px}
.biz-card .biz-top {margin-top:18px}.biz-card h3 {margin-top:18px}.biz-card .biz-desc {margin-bottom:22px}
:root[data-theme="dark"] #business .biz-card {background:#191917}
:root[data-theme="dark"] #business .biz-card:hover {background:#292824}
:root:not([data-theme="dark"]) #business .biz-card {background:#fff;border-color:var(--line)}
:root[data-theme="dark"] main:has(> #business) > #business,:root:not([data-theme="dark"]) main:has(> #business) > #business {background:transparent}
:root:not([data-theme="dark"]) main:has(> #business) > .rd .link {color:var(--ink) !important;border-color:var(--line-2) !important}

/* 首屏数据条到网格的渐隐：静态后备；支持滚动时间线时随进入视口淡出。 */
main:has(> .hero) > #business::before {
 content:"";position:absolute;z-index:0;pointer-events:none;inset:0 0 auto;height:clamp(150px,18vw,240px);
 background:linear-gradient(to bottom,#000 0%,rgba(4,8,11,.78) 22%,rgba(8,15,21,.28) 58%,transparent 100%);
}
main:has(> .hero) > #business > .wrap {position:relative;z-index:1}
@supports (animation-timeline: view()) {
 @media (prefers-reduced-motion: no-preference) {
  main:has(> .hero) > #business::before {animation:business-bridge 1s linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
  @keyframes business-bridge {from {opacity:1} to {opacity:.55}}
 }
}
/* 连续低对比线性纹理，替换密集方格；同一纹理贯穿首页正文。 */
:root main:has(> #business) {background-color:#f7f7f5;background-image:none;background-size:auto;background-repeat:no-repeat}
:root[data-theme="dark"] main:has(> #business) {background-color:#0b0b0b;background-image:none;background-size:auto;background-repeat:no-repeat}
/* 固定导航的文本及品牌整体居中；激活线绝对定位。 */
.hdr .brand {align-items:center;line-height:1}
.hdr .brand small {line-height:1.15}
.hdr .nav {align-items:center}
.hdr .nav a {display:flex;align-items:center;line-height:1.4;padding:0;min-height:40px}
.hdr .nav a::after {bottom:0}
body[data-page="index.html"] .hdr:not(.solid) {background:linear-gradient(180deg,rgba(0,0,0,.76),rgba(0,0,0,.40) 76%,rgba(0,0,0,.12))}
/* 浅色业务章节的文字区以柔和底色弱化底纹，不改变图文结构。 */
:root:not([data-theme="dark"]) main:has(> #business) .chapter-copy {padding:24px 28px;border-radius:12px;background:linear-gradient(115deg,rgba(249,251,251,.96),rgba(249,251,251,.84) 78%,rgba(249,251,251,.64));}
.hero-fibres {position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
@media (max-width:860px),(prefers-reduced-motion:reduce) {.hero-fibres{display:none}}
/* 项目实践模块首页：仅缩减标题区与首个项目模块之间的间距。 */
main:has(> .page-hero-standard[data-page-hero="projects"]) > .proj-page {padding-top:clamp(44px,5vw,72px)}
/* 导航底色延伸到条带外逐渐消失，避免边框或背景终点形成硬线。 */
.hdr {isolation:isolate;background:transparent;border-bottom:0}
.hdr::before {content:"";position:absolute;z-index:-1;pointer-events:none;left:0;right:0;top:0;bottom:-26px;background:linear-gradient(to bottom,rgba(0,0,0,.84) 0%,rgba(0,0,0,.64) 68%,transparent 100%)}
body[data-page="index.html"] .hdr:not(.solid) {background:transparent}
.hdr.solid {background:transparent;border-bottom:0}
:root[data-theme="light"] .hdr.solid::before {background:linear-gradient(to bottom,rgba(255,255,255,.98) 0%,rgba(255,255,255,.97) 68%,rgba(255,255,255,0) 100%)}
:root[data-theme="dark"] .hdr.solid::before {background:linear-gradient(to bottom,rgba(5,5,5,.98) 0%,rgba(5,5,5,.96) 68%,rgba(5,5,5,0) 100%)}
.hdr .brand > span {display:flex;flex-direction:column;justify-content:center;line-height:1}
.hdr .nav a {height:40px;min-height:0;line-height:1;display:inline-flex;align-items:center}
.hdr .nav a::after {position:absolute;bottom:-1px}
/* 亮色业务区：柔和远景光场和低亮表面，避免纯白纸片。 */
:root:not([data-theme="dark"]) main:has(> #business) > #business::after {content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 54% 40% at 82% 60%,rgba(176,194,195,.34),transparent 75%),radial-gradient(ellipse 42% 40% at 15% 76%,rgba(213,202,182,.30),transparent 76%)}
:root:not([data-theme="dark"]) #business .biz-card {background:linear-gradient(145deg,#f4f4f0,#e9edeb);border-color:rgba(93,110,108,.22);box-shadow:0 8px 26px rgba(35,49,48,.07)}
:root:not([data-theme="dark"]) #business .biz-card:hover {background:#f3f4f0;border-color:rgba(78,106,110,.4)}
/* 无 JS、减少动态和手机尺寸保留静态原图。 */
.hero-fibres {display:none}
@media (min-width:861px) and (prefers-reduced-motion:no-preference) {html.js-motion .hero-fibres {display:block}}

/* ==========================================================================
   H5 / mobile layout (<=860px)
   ========================================================================== */

.menu-btn, .m-menu { display: none; }

@media (max-width: 860px) {
  :root { --pad: 20px; --gutter: 20px; }
  html { scroll-padding-top: 64px; }

  /* header + mobile menu */
  .hdr { height: 64px; gap: 12px; padding: 0 20px; }
  .hdr .brand img { width: 30px; height: 30px; }
  .hdr .brand strong { font-size: 14px; }
  .hdr .brand small { font-size: 7px; letter-spacing: .16em; }
  .hdr-actions { gap: 8px; margin-left: auto; }
  .hdr-cta { display: none !important; }
  .theme-btn { display: none; }
  .menu-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
  .menu-btn span { position: absolute; left: 50%; top: 50%; display: block; width: 15px; height: 1px; margin: 0; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .3s; }
  .menu-btn span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
  .menu-btn span:nth-child(3) { transform: translate(-50%, calc(-50% + 4px)); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }
  .m-menu { display: block; position: fixed; z-index: 95; left: 0; right: 0; top: 64px; bottom: 0; background: var(--bg); color: var(--ink); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .m-menu.open { visibility: visible; opacity: 1; transform: none; }
  .m-menu-inner { padding: 18px 20px 40px; }
  .m-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: .02em; color: var(--ink); }
  .m-menu nav a[aria-current] { color: var(--accent); }
  .m-menu nav a::after { content: "→"; font-family: var(--display); font-size: 15px; color: var(--muted); }
  .m-cta { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; }
  .m-cta svg { width: 15px; height: 15px; margin-left: 6px; }
  .m-foot { display: grid; gap: 8px; margin-top: 28px; font-size: 13px; color: var(--muted); }
  body.menu-open { overflow: auto; }

  /* home hero */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 100svh; padding-top: 0; }
  .hero-bg { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-bg img { object-position: 46% 50%; }
  .hero-bg::before { display: none; }
  .hero-bg::after { content: ""; display: block; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.22) 38%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.82) 100%); }
  .hero-wrap { flex: 1; display: flex; align-items: flex-start; padding: 0; }
  .hero-grid { display: block; width: 100%; }
  .hero-copy { padding: 64px 0 24px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .hero-contact { display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 4; top: 82px; right: 20px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 11px; letter-spacing: .08em; color: #fff; }
  .hero-contact span { font-family: var(--display); font-size: 12px; }
  .hero h1 { font-size: clamp(32px, 8.8vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
  .hero h1 .l2 { display: block; white-space: normal; }
  .hero h1 .l2 em { display: block; white-space: nowrap; }
  .hero .eyebrow { font-size: 9px; }
  .hero-lead { display: block; margin-top: 14px; font-size: 12.5px; line-height: 1.7; margin-left: -20px; padding: 10px 0 10px 20px; border-radius: 0; background: linear-gradient(90deg, transparent 0, rgba(0,0,0,.66) 20px, rgba(0,0,0,.42) 75%, transparent 100%); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
  .lead-full { display: none; }
  .lead-short { display: inline; }
  .hero-actions { flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .hero-actions .btn-ghost { display: none; }
  .hero-actions .btn { flex: 0 0 auto; min-width: 152px; justify-content: center; text-align: center; padding: 13px 18px; font-size: 13px; }
  .hero-actions .btn svg { display: none; }
  .hero-tags { display: none; }
  .stats { position: static; margin-top: auto; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.74) 30%, #000 100%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 11px 14px 10px; }
  .stat:first-child { padding-left: 0; }
  .stat:nth-child(2) { padding-right: 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); padding-right: 0; }
  .stat b { font-size: 26px; }
  .stat p { margin-top: 6px; font-size: 9px; letter-spacing: .03em; }

  /* generic page hero */
  .page-hero { padding: 96px 0 40px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 42px); line-height: 1.12; }
  .page-hero .lead { max-width: 100%; margin-top: 18px; font-size: 14px; line-height: 1.85; }
  .crumbs { gap: 8px; margin-bottom: 24px; font-size: 10px; letter-spacing: .1em; }
  .page-tags { gap: 8px; margin-top: 20px; }
  .page-tags span { padding: 6px 12px; font-size: 10px; }
  .eyebrow { font-size: 10px; }
  .section { padding: 56px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .sec-head h2 { font-size: clamp(28px, 7vw, 34px); }
  .section-sub { font-size: 13px; line-height: 1.8; }

  /* home sections */
  #business { min-height: auto; padding: 56px 0; }
  .biz-grid { grid-template-columns: 1fr; gap: 12px; }
  .biz-card { padding: 22px; }
  .biz-card h3 { font-size: 22px; }
  .biz-desc { font-size: 13px; }
  .rd { padding: 56px 0; }
  .rd-grid { grid-template-columns: 1fr; gap: 30px; }
  .rd h2 { font-size: 28px; }
  .rd .lead { font-size: 14px; }
  .rd-list li { grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 0; }
  .rd-list h3 { font-size: 16px; }
  .rd-list p { font-size: 12px; }
  #business { scroll-margin-top: -56px; }
  .chapter { display: none; }
  .chapter-grid { grid-template-columns: 1fr; gap: 24px; }
  .chapter-media { aspect-ratio: 4 / 3; }
  .chapter-copy { padding: 0; background: none !important; }
  .chapter h2 { font-size: 30px; }
  .chapter .lead { font-size: 14px; }
  .chapter .index { font-size: 40px; }
  .kw { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy h2, .about-grid h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.22; }
  .timeline { grid-template-columns: 1fr; }
  .ftr { padding: 44px 0 24px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 30px; }
  .ftr-brand p { font-size: 13px; }
  .ftr h4 { font-size: 11px; }
  .ftr-bottom { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 10px; line-height: 1.7; }

  /* service page */
  .service-bg { inset: 0; }
  .service-bg img { object-position: 58% 50%; }
  .service-bg::before { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.84) 66%, rgba(0,0,0,.96) 100%), linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 65%, transparent 100%); }
  .service-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64%; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.60) 30%, rgba(0,0,0,.94) 70%, #000 100%); }
  .service-hero { display: flex; flex-direction: column; min-height: 100svh; }
  .service-hero-inner { width: calc(100% - 40px); margin: 0 auto; padding: 96px 0 22px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
  .service-hero-inner h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .service-hero-inner .lead { max-width: 100%; font-size: 14px; line-height: 1.85; }
  .service-hero-foot { position: static; width: 100%; margin-top: 0; }
  .service-hero-foot .foot-inner { display: block; width: calc(100% - 40px); margin: 0 auto; padding: 16px 0 18px; }
  .service-facts { display: flex; gap: 14px; }
  .service-fact { font-size: 10px; letter-spacing: .02em; }
  .service-fact span { margin-right: 5px; font-size: 9px; }
  .scroll-hint { display: none; }
  .site-next-hit { display: none; }
  .svc-page { min-height: auto; }
  #scope { padding-top: 28px; }
  #scope .sec-head { margin-bottom: 20px; }
  .svc-groups { grid-template-columns: 1fr; }
  .svc-group { padding: 20px 0; }
  .svc-group h3 { font-size: 17px; }
  .svc-group ul { gap: 5px; }
  .svc-group li { font-size: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step h3 { margin-top: 10px; font-size: 16px; }
  .svc-projects { grid-template-columns: 1fr; }
  .next-svc { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; }
  .next-svc strong { font-size: 26px; }

  /* projects index + category */
  .proj-page { padding-top: 32px; padding-bottom: 48px; }
  .proj-mod { padding: 44px 0; }
  .proj-mod-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .proj-mod-head h2 { font-size: 30px; }
  .proj-mod-side p { max-width: 100%; font-size: 13px; line-height: 1.8; }
  .proj-mod-side span { margin-top: 8px; font-size: 10px; }
  .proj-grid, .proj-grid.four, .proj-grid.three { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .proj-mod-foot { margin-top: 22px; }
  .proj-mod-foot .link { font-size: 12px; }
  .proj-meta h3 { font-size: 13px; line-height: 1.45; }
  .proj-cat { font-size: 9px; }
  .proj-sub { margin-top: 30px; }
  .proj-sub-head { margin-bottom: 14px; padding-bottom: 10px; }
  .proj-sub-head h3 { font-size: 15px; }
  .proj-block { padding: 44px 0; }
  .proj-cat-count { font-size: 10px; }

  /* case detail */
  .case-page { min-height: auto; padding: 88px 0 44px; }
  .case-top { flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
  .case-top .crumbs { width: 100%; }
  .case-top .link { font-size: 11px; }
  .case-head { margin-bottom: 24px; }
  .case-head h1 { font-size: clamp(30px, 8.4vw, 38px); line-height: 1.15; }
  .case-head .page-tags { margin-top: 14px; }
  .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-page .detail-body h2 { font-size: 18px; }
  .case-page .detail-body > p { font-size: 14px; line-height: 1.85; }
  .detail-meta div { font-size: 12px; }
  .case-note { font-size: 11px; line-height: 1.7; }

  /* about / contact */
  .contact-card, .contact-form { padding: 22px; }

  /* opaque fixed header once scrolled, and while the menu is open */
  .hdr.solid { background: var(--hdr-bg) !important; }
  .hdr.solid::before { display: none; }
  body.menu-open .hdr { background: var(--hdr-bg) !important; color: var(--hdr-ink); }
  body.menu-open .hdr::before { display: none; }

  .m-menu { top: 72px; right: 16px; left: auto; bottom: auto; width: min(268px, calc(100% - 32px)); max-height: calc(100dvh - 92px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
  .m-menu-inner { padding: 6px 16px 16px; }
  .m-menu nav a { padding: 12px 0; font-size: 16px; }
  .m-menu nav a::after { font-size: 13px; }
  .m-cta { height: 42px; margin-top: 16px; font-size: 13px; }
  .m-foot { margin-top: 14px; gap: 3px; font-size: 11px; }

  .hero h1, .page-hero h1, .case-head h1 { overflow-wrap: anywhere; }
}

/* Desktop: let the work-method section use its full page instead of leaving a blank block below the steps. */
@media (min-width: 861px) {
  .soft.svc-page { display: flex; flex-direction: column; }
  .soft.svc-page > .wrap { flex: 1; display: flex; flex-direction: column; }
  .soft.svc-page .steps { flex: 1; }
  .soft.svc-page .step { display: flex; flex-direction: column; padding-bottom: 36px; }
  .soft.svc-page .step h3 { margin-top: auto; }
}
/* 所有页面、主题及滚动状态统一黑色导航，边缘继续向下柔和消失。 */
.hdr,.hdr.solid,body.case-detail .hdr {color:#f6f6f3;background:transparent;border:0;box-shadow:none}
.hdr::before,.hdr.solid::before,body.case-detail .hdr::before,:root[data-theme="light"] .hdr.solid::before,:root[data-theme="dark"] .hdr.solid::before {background:linear-gradient(to bottom,rgba(0,0,0,.91) 0%,rgba(0,0,0,.79) 68%,transparent 100%)}
.hdr .hdr-cta,.hdr.solid .hdr-cta {background:#fff;color:#0a0a0a}
/* 手机首屏只微调原图取景，让沙盘偏右、给现有文字留出空间。 */
@media (max-width:860px) {.hero-bg img {object-position:72% 50%}}

/* 用户提供的手机首屏竖图；旧图坐标光效在手机已禁用。 */
@media (max-width:860px) { .hero-bg img { object-position:72% center; } }
.biz-card .biz-head h3 { margin: 0; }

/* 联系页桌面紧凑排版：缩减留白，保持正文与联系方式完整可读。 */
@media (min-width:1181px) {
 body[data-page="contact.html"] main > .section {padding:38px 0 56px}
 body[data-page="contact.html"] .contact-grid {align-items:start}
 body[data-page="contact.html"] .contact-grid .about-panel {margin-top:18px !important;padding:18px 24px}
 body[data-page="contact.html"] .contact-grid .about-panel ul {margin-top:8px}
 body[data-page="contact.html"] .contact-grid .about-panel li {padding:5px 0}
 body[data-page="contact.html"] .contact-grid .contact-row {padding:15px 0}
}
@media (min-width:1181px) and (max-height:760px) {
 body[data-page="contact.html"] main > .section {padding-top:30px}
 body[data-page="contact.html"] .contact-grid .about-panel {padding-top:14px;padding-bottom:14px}
}

/* 顶部保留沟通项目按钮，隐藏重复的联系导航项。 */
/* 联系我们保留在导航中；沟通项目 CTA 仍作为主入口。 */

/* swipe overlay: full-page layer with next sub-section on the right */
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body { overflow-y: scroll; }
html, body, main { overflow-anchor: none; }
main { background: var(--bg); will-change: transform; }
main.page-leave { filter: blur(10px); opacity: 0; transition: filter .32s cubic-bezier(.22,.61,.36,1), opacity .32s cubic-bezier(.22,.61,.36,1); }
main.page-enter { filter: blur(14px); opacity: .9; transform: scale(1.015); transition: filter .5s cubic-bezier(.22,.61,.36,1), opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1); }
.swipe-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 26px;
  background: linear-gradient(90deg, rgba(6,6,6,.08) 0%, rgba(6,6,6,.42) 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  backdrop-filter: blur(0px);
  transition: opacity .4s cubic-bezier(.22,.61,.36,1), backdrop-filter .4s cubic-bezier(.22,.61,.36,1);
}
.swipe-overlay.on { visibility: visible; backdrop-filter: blur(8px); }
.swipe-overlay-inner { text-align: right; color: #fff; }
.swipe-kicker { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.6); }
.swipe-name { display: block; margin-top: 8px; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.swipe-arrow { display: block; margin-top: 12px; color: var(--accent); font-size: 20px; }
/* 中等宽度图片存在单独高度裁切，隐藏桌面路径层以免偏移。 */
@media (max-width:1180px) {html.js-motion .hero-fibres {display:none}}
/* 业务页描述至少预留两行；内容增多时自然延展。 */
.service-hero-inner .lead {min-height:3.9em}
@media(max-width:860px){.service-hero-inner .lead {min-height:5.55em}}

/* true crossfade: old page ghost fades out while new page fades in */
.page-ghost {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 5;
  pointer-events: none; overflow: hidden;
  transform: translateY(calc(-1 * var(--ghost-y, 0px)));
  opacity: 1; filter: blur(0px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), filter .8s cubic-bezier(.4,0,.2,1);
}
.page-ghost.out { opacity: 0; filter: blur(10px); }
.page-ghost.fast { transition-duration: .4s; }

/* crossfade between pages (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
}
::view-transition-old(root) { animation-name: vt-page-out; }
::view-transition-new(root) { animation-name: vt-page-in; }
@keyframes vt-page-out { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(10px); } }
@keyframes vt-page-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

/* touch: don't leave the card stuck in hover lift/zoom after tapping */
@media (hover: none) {
  .biz-card:hover { transform: none; border-color: var(--line); box-shadow: none; background: var(--card); }
  .biz-card:hover .biz-image img { transform: none; }
  .biz-card:hover .biz-more svg { transform: none; color: var(--muted); }
  .biz-card { -webkit-tap-highlight-color: transparent; }
  .biz-card:active { transform: scale(.995); }
}

/* Light homepage: start the content backdrop immediately after the hero. */
:root:not([data-theme="dark"]) main:has(> .hero) > #business::before {
  display: none;
  animation: none;
}

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-size: 15px; color: var(--ink); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* GEO answer blocks: low-key accordion at the very bottom */
.geo-section { padding: 32px 0 44px; border-top: 1px solid var(--line); }
.geo-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.geo-head .link { font-size: 12px; }
.geo-label { font-family: var(--display); font-size: 9px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.geo-list { border-top: 1px solid var(--line); }
.geo-item { border-bottom: 1px solid var(--line); }
.geo-item summary { cursor: pointer; padding: 12px 0; font-size: 12.5px; color: var(--ink-2); list-style: none; }
.geo-item summary::-webkit-details-marker { display: none; }
.geo-item summary::after { content: "+"; float: right; color: var(--muted); }
.geo-item[open] summary::after { content: "−"; }
.geo-item p { margin: 0 0 12px; max-width: 760px; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* 桌面阅读层级：正文、辅助说明与操作文字，保留手机原有尺度。 */
@media (min-width: 861px) {
  .nav a, .hdr-cta, .link, .btn { font-size: 15px; }
  .lead, .page-hero .lead, .chapter-copy .lead, .section-sub,
  .proj-block-side p, .proj-mod-side p { font-size: 16px; line-height: 1.85; }
  .biz-card .biz-desc, .timeline p, .about-panel li,
  .svc-group p, .step p, .detail-body p, .case-page .detail-body > p,
  .faq-list p, .geo-item p { font-size: 15px; line-height: 1.85; }
  body[data-page="services/exhibition.html"] #scope .svc-group p { font-size: 15px; }
  .svc-group li, body[data-page="services/exhibition.html"] #scope .svc-group li { font-size: 14px; line-height: 1.5; }
  .faq-list summary { font-size: 17px; line-height: 1.6; }
  .geo-item summary { font-size: 15px; line-height: 1.7; }
  .biz-more, .proj-meta p, .detail-meta div, .case-note, .service-fact,
  .proj-cat, .proj-mod-side span, .proj-block-side span { font-size: 14px; line-height: 1.65; }
  .proj-meta h3 { font-size: 16px; line-height: 1.5; }
  .ftr-brand p, .ftr li, .ftr-bottom, .ftr h4, .about-panel h3,
  .geo-head .link { font-size: 14px; line-height: 1.75; }
  .ftr h4 { letter-spacing: .1em; }
  .eyebrow, .crumbs, .biz-en, .geo-label { font-size: 12px; }
}

@media (min-width: 861px) {
  .case-top .link { font-size: 15px; }
  .case-page .page-tags span { font-size: 14px; }
  .case-page .detail-body h2 { font-size: 22px; }
}

/* 案例详情桌面阅读区：正文与字段保持可读层级。 */
@media (min-width: 861px) {
  .case-page .detail-body h2 { font-size: 25px; line-height: 1.3; margin-bottom: 18px; }
  .case-page .detail-body > p { font-size: 18px; line-height: 1.8; }
  .case-page .detail-meta div { font-size: 17px; line-height: 1.6; padding: 15px 0; }
  .case-page .detail-meta span { color: var(--ink-2); }
}

/* 首页业务章节编号列表的桌面阅读尺度。 */
@media (min-width: 861px) {
  .chapter .kw li { font-size: 16px; line-height: 1.7; }
  .chapter .kw li span { font-size: 12px; color: var(--ink-2); }
}

/* 项目实践分类预览：桌面三列，较窄屏幕保留原有两列。 */
@media (min-width: 861px) {
  .proj-mod .proj-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 业务详情相关案例在桌面保持三列，手机沿用单列。 */
@media (min-width: 861px) {
  .svc-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- 2026-11-07 IA: six-item nav, service submenu, services/news ------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-item > .nav-link { display: inline-flex; align-items: center; }
.nav-sub-toggle {
  position: absolute; left: calc(100% + 2px);
  display: grid; place-items: center; width: 22px; height: 32px;
  padding: 0; border: 0; background: transparent; color: currentColor;
  opacity: .68; cursor: pointer;
}
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item.open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub {
  --nav-sub-gap: 18px;
  position: absolute; z-index: 60; top: calc(100% + var(--nav-sub-gap)); left: 50%;
  min-width: 196px; padding: 8px; display: none;
  transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
/* Keep hover on the menu while the pointer crosses the gap below the trigger. */
.nav-item > .nav-sub::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(-1 * var(--nav-sub-gap)); height: var(--nav-sub-gap);
}
.nav-item.open .nav-sub, .nav-item:hover .nav-sub { display: block; }
.nav-sub a {
  display: block; padding: 9px 12px !important; min-height: 0 !important;
  border-radius: 8px; font-size: 13px; opacity: .78; white-space: nowrap;
}
.nav-sub a:hover, .nav-sub a[aria-current] { opacity: 1; background: var(--surface-2); }
.nav-sub a::after { display: none; }
.nav-item.is-active > .nav-link { opacity: 1; }
.nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-sub-toggle[aria-expanded="true"] { opacity: 1; }

.news-content { padding-top:26px; border-top:1px solid var(--line); }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.news-filter a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.news-filter a:hover { border-color: var(--line-2); color: var(--ink); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news-media { overflow: hidden; border-radius: calc(var(--radius) - 4px); aspect-ratio: 16 / 10; background: var(--surface-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.news-card h3 { font-size: 18px; line-height: 1.5; }
.news-card p { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.news-list .news-card { flex-direction:row; align-items:baseline; justify-content:space-between; gap:24px; padding:20px 0; border:0; border-radius:0; background:transparent; }
.news-list .news-card + .news-card { border-top:1px solid var(--line); }
.news-list .news-card h3 { min-width:0; font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.news-list .news-card time, .news-date-missing { flex:none; color:var(--ink-2); font-size:13px; font-variant-numeric:tabular-nums; }
.news-list .news-card:hover h3 { color:var(--accent); }
.news-list .news-card:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.news-article { padding: 156px 0 96px; }
.news-article h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 52px); }
.news-cover { margin: 32px 0; border-radius: var(--radius); overflow: hidden; }
.news-cover img { width: 100%; height: auto; }
.news-body { max-width: 760px; margin-top: 26px; }
.news-body p { margin: 0 0 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

@media (max-width: 1180px) {
  .nav { gap: 0; margin-left: 18px; }
  .nav a { font-size: 13px; }
}
@media (max-width: 860px) {
  .m-menu { left: 0; right: 0; top: 64px; bottom: 0; width: auto; max-height: none; border-radius: 0; border: 0; }
  .m-menu-inner { padding: 8px 20px 40px; }
  .m-group { border-bottom: 1px solid var(--line); }
  .m-sub-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 17px 0; border: 0; background: transparent; color: var(--ink);
    font: inherit; font-size: 18px; letter-spacing: .02em; cursor: pointer;
  }
  .m-sub-toggle svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
  .m-group.open .m-sub-toggle svg { transform: rotate(180deg); }
  .m-sub { display: none; padding: 0 0 8px 14px; }
  .m-group.open .m-sub { display: block; }
  .m-sub a { padding: 10px 0 !important; border-bottom: 0 !important; font-size: 15px !important; }
  .m-group + a { border-top: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .news-article { padding: 108px 0 72px; }
}

/* nav dropdown: dark surface, stacked links (overrides .hdr .nav a inline-flex) */
.nav-sub { background: rgba(9, 14, 20, .98); color: #eef5f8; border-color: rgba(255,255,255,.14); }
.nav-sub a {
  display: block !important; width: 100%; height: auto !important;
  line-height: 1.5 !important; color: #eef5f8 !important; opacity: .78;
  padding: 10px 12px !important;
}
.nav-sub a:hover, .nav-sub a[aria-current] { background: rgba(255,255,255,.08); opacity: 1; }

/* case detail gallery */
.case-gallery-item { margin: 18px 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.case-gallery-item img { display: block; width: 100%; height: auto; }
.case-video-links { margin:32px 0; }
.case-video-links p { margin-top:14px; }

/* inquiry form + privacy (2026-11-08) */
.inquiry-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; }
.inquiry-form { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.inquiry-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.inquiry-form label { display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}
.inquiry-form textarea { resize: vertical; line-height: 1.7; }
.inquiry-form input:focus, .inquiry-form textarea:focus, .inquiry-form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.inquiry-form .privacy-check { display: flex; grid-template-columns: none; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; }
.inquiry-form .privacy-check input { width: auto; margin-top: 3px; }
.inquiry-form .form-status { min-height: 20px; font-size: 13px; color: var(--muted); }
.inquiry-form .form-status.ok { color: #1d7a4c; }
.inquiry-form .form-status.err { color: #b42318; }
.inquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.project-inquiry { min-height: 80vh; padding-top: 150px; }
.project-inquiry-intro h1 { font-size: clamp(36px, 4.5vw, 64px); margin: 28px 0 18px; }
.project-inquiry-intro .lead { max-width: 28em; margin-bottom: 28px; }
.contact-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-methods legend { font-size: 13px; color: var(--ink-2); }
.contact-methods .hint { margin: 6px 0 12px; }
@media (max-width: 860px) { .project-inquiry { padding-top: 110px; } }
.inquiry-form button[disabled] { opacity: .55; cursor: wait; }
.narrow { max-width: 820px; }
.prose p { margin: 0 0 18px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.privacy-hero { background: #171514 url("img/contact-hero-concept.webp") center 51% / cover no-repeat; }
.privacy-hero::before { background: linear-gradient(90deg, rgba(4,4,4,.95) 0%, rgba(7,7,7,.8) 46%, rgba(7,7,7,.35) 100%); }
@media (max-width: 860px) {
  .inquiry-grid { grid-template-columns: 1fr; gap: 28px; }
  .inquiry-form { padding: 18px; }
  .inquiry-form .grid-2, .inquiry-form .grid-3 { grid-template-columns: 1fr; }
}

.inquiry-form .btn-primary { justify-self: start; min-width: 140px; }

.inquiry-form .btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.inquiry-form .btn-primary:hover { background: var(--ink-2); }

/* 沟通项目：单列字段，延续现有站点配色。 */
.project-inquiry .inquiry-grid { display: block; max-width: 820px; }
.project-inquiry-intro { margin-bottom: 48px; }
.project-inquiry .inquiry-form { padding: 0; gap: 30px; border: 0; border-radius: 0; background: transparent; }
.project-inquiry .inquiry-form label, .project-inquiry .contact-methods legend { font-size: 14px; }
.project-inquiry .inquiry-form label { gap: 9px; }
.project-inquiry .inquiry-form input:not([type="checkbox"]), .project-inquiry .inquiry-form select {
  min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent;
}
.project-inquiry .inquiry-form textarea { min-height: 140px; }
.project-inquiry .contact-methods .grid-3 { grid-template-columns: 1fr; gap: 26px; }
.project-inquiry .contact-methods .hint { margin-bottom: 18px; }
.project-inquiry .privacy-check { display:flex; gap:10px; }
.project-inquiry .privacy-check input { flex: none; }
@media (max-width: 860px) { .project-inquiry-intro { margin-bottom: 32px; } .project-inquiry .inquiry-form { gap: 24px; } }
