/* ==========================================================================
   南京崴肯自动化设备科技有限公司 (WE CAN 崴肯)
   Precision Industrial Design System — v4.0
   Aesthetic: Swiss / German Precision Automation Editorial
   ========================================================================== */

:root {
  /* Surfaces — Architectural Daylight + Precision Anodized Dark */
  --bg: #FFFFFF;
  --bg-subtle: #F5F7FA;
  --bg-muted: #EDF1F7;
  --surface: #FFFFFF;
  --dark: #0A1120;
  --dark-2: #111B2E;
  --dark-3: #18253E;

  /* Ink */
  --ink: #0B1528;
  --ink-2: #33415C;
  --ink-3: #5C6B84;
  --ink-muted: #7C8AA3;
  --ink-on-dark: #F1F5FB;
  --ink-on-dark-2: #A6B4CC;
  --ink-on-dark-3: #6F809C;

  /* Brand Palette — Derived directly from WE CAN 崴肯 official mark */
  --brand: #1E3A8A;
  --brand-hi: #2553C7;
  --brand-soft: #EBF1FC;
  --brand-tint: rgba(37, 83, 199, 0.08);
  --red: #CC2420;
  --red-hi: #E0312C;
  --red-soft: #FDECEC;
  --ok: #0F9D6B;
  --ok-soft: rgba(15, 157, 107, 0.14);
  --warn: #D97706;
  --warn-soft: rgba(217, 119, 6, 0.16);

  /* Hairlines & Structural Rules */
  --line: #DDE3EC;
  --line-strong: #C5D0E0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-strong: rgba(255, 255, 255, 0.22);

  /* Typography */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Bahnschrift", "DIN Alternate", "SFMono-Regular", "Consolas", monospace;

  /* Layout & Radius */
  --wrap: 1240px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --nav-h: 72px;

  /* Shadows — restrained architectural elevation */
  --shadow-xs: 0 1px 2px rgba(11, 21, 40, 0.05);
  --shadow-sm: 0 4px 16px rgba(11, 21, 40, 0.06), 0 1px 3px rgba(11, 21, 40, 0.04);
  --shadow-md: 0 14px 36px rgba(11, 21, 40, 0.09), 0 2px 8px rgba(11, 21, 40, 0.04);
  --shadow-dark: 0 24px 60px rgba(4, 9, 20, 0.42);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= Reset & Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================= Scroll Progress Bar ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hi) 75%, var(--red) 100%);
  z-index: 120;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ================= Header & Navigation ================= */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-head.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(11, 21, 40, 0.06);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.brand-mark img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-sep {
  width: 1px;
  height: 26px;
  background: var(--line-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 8px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-xs);
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--brand);
  background: var(--bg-subtle);
}

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  background: var(--dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.call-btn svg {
  width: 15px;
  height: 15px;
  color: #FF6B66;
}

.call-btn:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.22);
}

.btn-primary:hover {
  background: var(--brand-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 83, 199, 0.28);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(204, 36, 32, 0.24);
}

.btn-red:hover {
  background: var(--red-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 36, 32, 0.34);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--line-dark-strong);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* ================= Section Headings & Architectural Labels ================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  flex: none;
}

.eyebrow.on-dark {
  color: #7FA5FF;
}

.sec {
  padding: 88px 0;
}

.sec-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-dark {
  background: var(--dark);
  color: var(--ink-on-dark);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.sec-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 12px;
}

.sec-dark .sec-title {
  color: #fff;
}

.sec-lead {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--ink-3);
  max-width: 600px;
}

.sec-dark .sec-lead {
  color: var(--ink-on-dark-2);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
  white-space: nowrap;
}

.more-link svg {
  width: 16px;
  height: 16px;
}

.more-link:hover {
  border-bottom-color: var(--brand);
  gap: 11px;
}

/* ================= HOME HERO — Split Precision Engineering Stage ================= */
.hero {
  position: relative;
  background:
    linear-gradient(to right, rgba(221, 227, 236, 0.35) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(221, 227, 236, 0.35) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #F8FAFD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-copy h1 .accent {
  color: var(--brand);
}

.hero-lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.creed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.creed span {
  padding: 3px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  letter-spacing: 0.12em;
}

.hero-cert {
  font-size: 13px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-cert i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

/* ================= Interactive CAD 3D Point-Cloud Viewport ================= */
.cad-stage {
  background: var(--dark);
  border: 1px solid #1E2D4A;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  color: var(--ink-on-dark);
  display: flex;
  flex-direction: column;
}

.cad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #0D1628;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-on-dark-2);
}

.cad-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #E2EBFA;
}

.cad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 157, 107, 0.25);
}

.cad-tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #9FB5D9;
  font-size: 10.5px;
}

.cad-modes {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #0E182B;
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto;
}

.cad-mode-btn {
  padding: 6px 12px;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-on-dark-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.cad-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cad-mode-btn.active {
  background: rgba(37, 83, 199, 0.28);
  border-color: rgba(114, 158, 255, 0.5);
  color: #fff;
  font-weight: 600;
}

.cad-viewport {
  position: relative;
  height: 360px;
  background:
    radial-gradient(circle at 50% 48%, rgba(37, 83, 199, 0.16), transparent 64%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    #080E1B;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.cad-viewport:active {
  cursor: grabbing;
}

.cad-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Precision CAD corner ticks */
.cad-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: rgba(140, 174, 235, 0.45);
  border-style: solid;
  border-width: 0;
}
.cad-corner.tl { top: 12px; left: 12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cad-corner.tr { top: 12px; right: 12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cad-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cad-corner.br { bottom: 12px; right: 12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.cad-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(8, 14, 27, 0.78);
  border: 1px solid var(--line-dark);
  font-size: 11px;
  color: var(--ink-on-dark-2);
  pointer-events: none;
}

.cad-reset {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(17, 27, 46, 0.88);
  border: 1px solid var(--line-dark-strong);
  color: #D5E2F8;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s;
}

.cad-reset:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-hi);
}

.cad-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  background: #0D1628;
}

.cad-telemetry > div {
  padding: 10px 14px;
  border-right: 1px solid var(--line-dark);
}

.cad-telemetry > div:last-child {
  border-right: 0;
}

.cad-telemetry span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-on-dark-3);
  letter-spacing: 0.04em;
}

.cad-telemetry strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #EBF2FF;
}

/* ================= KPI Strip (Architectural Hairline Grid) ================= */
.kpi-strip {
  background: #fff;
  border-top: 1px solid var(--line);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.kpi-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}

.kpi-item:first-child {
  padding-left: 0;
}

.kpi-item:last-child {
  border-right: 0;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.kpi-val small {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-left: 4px;
}

.kpi-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* Standalone boxed KPI card (about page) */
.kpi-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.kpi-box .kpi-item:first-child {
  padding-left: 24px;
}

/* ================= Capability Ticker (Restrained Technical Bar) ================= */
.cap-ticker {
  background: var(--dark);
  color: var(--ink-on-dark-2);
  border-bottom: 1px solid #1E2D4A;
  overflow: hidden;
  padding: 13px 0;
}

.cap-ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: ticker 34s linear infinite;
}

.cap-ticker:hover .cap-ticker-track {
  animation-play-state: paused;
}

.cap-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cap-ticker-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 1px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= Services Cards (Swiss Precision Bento) ================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.25s;
}

.svc-card:hover {
  border-color: var(--brand-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-card:hover::before {
  background: var(--brand);
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(30, 58, 138, 0.12);
}

.svc-icon.red {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(204, 36, 32, 0.15);
}

.svc-icon.slate {
  background: var(--bg-muted);
  color: var(--ink);
  border-color: var(--line-strong);
}

.svc-icon svg {
  width: 24px;
  height: 24px;
}

.svc-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.svc-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.svc-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-3);
  flex: 1;
}

.svc-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.svc-foot svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.svc-card:hover .svc-foot svg {
  transform: translateX(4px);
}

/* ================= Process Strip (01 咨询 / 02 研发 / 03 落地) ================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 24px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 10px;
  border-radius: var(--r-xs);
  flex: none;
  margin-top: 2px;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.process-step p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ================= Full-Bleed Architectural Equipment Showcase Band ================= */
.equip-band {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.equip-band-bg {
  position: absolute;
  inset: 0;
}

.equip-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.48;
  transform: scale(1.03);
}

.equip-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 17, 32, 0.94) 0%, rgba(10, 17, 32, 0.72) 48%, rgba(10, 17, 32, 0.25) 100%);
}

.equip-band-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.equip-band h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-top: 14px;
}

.equip-band p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-on-dark-2);
  max-width: 480px;
}

.equip-callouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.callout-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10, 17, 32, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: #EEF4FF;
}

.callout-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 0 3px rgba(224, 49, 44, 0.28);
}

.callout-chip.ok i {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 157, 107, 0.28);
}

/* ================= Interactive MES Bidirectional Traceability Console ================= */
.mes-console {
  background: var(--dark);
  border: 1px solid #1E2D4A;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink-on-dark);
  box-shadow: var(--shadow-dark);
}

.mes-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  background: #0D1628;
  border-bottom: 1px solid var(--line-dark);
}

.mes-title-group h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mes-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(37, 83, 199, 0.28);
  border: 1px solid rgba(114, 158, 255, 0.4);
  color: #B4CDFF;
}

.mes-title-group p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-on-dark-2);
}

.mes-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.seg-group {
  display: inline-flex;
  background: #080E1B;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 3px;
}

.seg-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-on-dark-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.seg-btn.active {
  background: var(--brand-hi);
  color: #fff;
}

.mes-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #0E182B;
  border-bottom: 1px solid var(--line-dark);
}

.mes-samples-label {
  font-size: 12px;
  color: var(--ink-on-dark-3);
  margin-right: 4px;
}

.sn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-on-dark-2);
  cursor: pointer;
  transition: all 0.18s;
}

.sn-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sn-pill.active {
  background: rgba(37, 83, 199, 0.25);
  border-color: #6B97FF;
  color: #fff;
}

.sn-status {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.sn-status.ok {
  background: var(--ok-soft);
  color: #34D399;
}

.sn-status.ng {
  background: rgba(224, 49, 44, 0.22);
  color: #FF8A85;
}

.mes-body {
  padding: 26px;
}

/* 5-Station Pipeline */
.station-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.station-node {
  position: relative;
  text-align: left;
  padding: 16px 14px;
  border-radius: var(--r-sm);
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.station-node:hover {
  border-color: rgba(114, 158, 255, 0.5);
  transform: translateY(-2px);
}

.station-node.active {
  background: #162441;
  border-color: #6B97FF;
  box-shadow: 0 0 0 1px rgba(107, 151, 255, 0.4);
}

.station-node.blocked {
  border-color: rgba(224, 49, 44, 0.65);
  background: rgba(204, 36, 32, 0.12);
}

.station-node.skipped {
  opacity: 0.48;
}

.st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-on-dark-3);
}

.st-pill {
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
}

.st-pill.ok { background: var(--ok-soft); color: #34D399; }
.st-pill.ng { background: rgba(224, 49, 44, 0.25); color: #FF8A85; }
.st-pill.hold { background: rgba(255, 255, 255, 0.08); color: #94A3B8; }

.station-node h4 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.station-node p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-on-dark-2);
  line-height: 1.5;
}

/* Detail Telemetry Drawer */
.mes-detail {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: var(--r-sm);
  background: #080E1B;
  border: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.mes-detail h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mes-detail-desc {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-on-dark-2);
}

.mes-kv-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mes-kv {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
}

.mes-kv span {
  display: block;
  font-size: 11px;
  color: var(--ink-on-dark-3);
}

.mes-kv strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #EBF2FF;
}

.mes-genealogy {
  padding: 16px;
  border-radius: 6px;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
}

.mes-genealogy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9FB5D9;
  margin-bottom: 12px;
}

.genealogy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genealogy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(8, 14, 27, 0.65);
  border: 1px solid var(--line-dark);
  font-size: 12.5px;
}

.genealogy-row span {
  color: var(--ink-on-dark-2);
}

.genealogy-row code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8DB4FF;
}

/* ================= Case Cards (Home Editorial Gallery) ================= */
.cases-home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.case-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.case-tile:hover {
  border-color: var(--brand-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.case-tile.featured {
  grid-row: span 2;
}

.case-tile-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 16 / 10;
}

.case-tile.featured .case-tile-media {
  aspect-ratio: 16 / 11;
  flex: 1;
  min-height: 290px;
}

/* Precision framed display for smaller photo (产品3.jpg) so it stays crisp */
.case-tile-media.framed {
  background:
    linear-gradient(to right, rgba(30, 58, 138, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, rgba(30, 58, 138, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    #EEF2F7;
  display: grid;
  place-items: center;
  padding: 18px;
}

.case-tile-media.framed img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 28px rgba(11, 21, 40, 0.16);
}

.case-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.case-tile:hover .case-tile-media img {
  transform: scale(1.03);
}

.case-tile-body {
  padding: 24px 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}

.chip.belt {
  background: var(--red-soft);
  color: var(--red);
}

.case-tile-body h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.case-tile-body p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.trace-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--r-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.trace-pill .arrows {
  font-family: var(--font-mono);
  color: var(--brand);
}

/* ================= Partners Bar ================= */
.partners-bar {
  margin-top: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.partners-label {
  display: flex;
  flex-direction: column;
}

.partners-label small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.partners-label strong {
  font-size: 16px;
  color: var(--ink);
  margin-top: 2px;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.partner-item {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.partner-item.more {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
  font-weight: 500;
}

/* ================= Subpage Architectural Hero ================= */
.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 64px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid #1E2D4A;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 17, 32, 0.96) 0%, rgba(10, 17, 32, 0.8) 55%, rgba(10, 17, 32, 0.5) 100%);
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-on-dark-2);
}

.crumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-hero .sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-on-dark-2);
  max-width: 620px;
}

/* ================= About Page: Split Showcase & Editorial Mosaic ================= */
.split-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split-sec.rev .split-media {
  order: 2;
}

.about-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.mosaic-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}

.mosaic-card.tall {
  grid-row: span 2;
  min-height: 360px;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-stat {
  padding: 20px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-md);
  border: 1px solid #1E2D4A;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mosaic-stat small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8DB4FF;
  letter-spacing: 0.08em;
}

.mosaic-stat strong {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.mosaic-stat span {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-on-dark-2);
}

.media-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.media-tags {
  display: inline-flex;
  gap: 6px;
}

.media-tags span {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 12px;
}

.prose .kicker {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.prose p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.feat-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.feat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.feat-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}

/* Credentials Strip */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.cred-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.cred-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.cred-icon svg {
  width: 22px;
  height: 22px;
}

.cred-card strong {
  font-size: 15.5px;
  color: var(--ink);
  display: block;
}

.cred-card span {
  font-size: 13px;
  color: var(--ink-3);
}

/* Values Grid (品质、诚信、合作) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.value-glyph {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-soft);
  position: absolute;
  top: 20px;
  right: 24px;
  user-select: none;
  pointer-events: none;
}

.value-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
}

.value-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ================= Services Page: Capability Matrix & Domains ================= */
.svc-row {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.svc-row:last-child {
  border-bottom: 0;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cap-card:hover {
  border-color: var(--brand-hi);
  box-shadow: var(--shadow-sm);
}

.cap-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

.cap-card h3 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.cap-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.cap-src {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  border: 1px solid #1E2D4A;
}

.domain-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.domain-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.1) 0%, rgba(10, 17, 32, 0.9) 100%);
}

.domain-card:hover img {
  transform: scale(1.04);
  opacity: 0.6;
}

.domain-card-body {
  position: relative;
  z-index: 2;
}

.domain-card-body h3 {
  font-size: 24px;
  font-weight: 700;
}

.domain-card-body p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-on-dark-2);
}

/* ================= Cases Page: Filter & Detailed Engineering Cards ================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn span {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.7;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.filter-note {
  font-size: 13px;
  color: var(--ink-3);
}

.case-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}

.case-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.case-card.hidden {
  display: none;
}

.case-media-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--bg-muted);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 320px;
}

.case-media-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.case-media-btn:hover img {
  transform: scale(1.03);
}

.case-media-btn.framed {
  background:
    linear-gradient(to right, rgba(30, 58, 138, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(to bottom, rgba(30, 58, 138, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    #EEF2F7;
  display: grid;
  place-items: center;
  padding: 28px;
}

.case-media-btn.framed img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 290px;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 14px 36px rgba(11, 21, 40, 0.16);
}

.zoom-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-xs);
  background: rgba(10, 17, 32, 0.84);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.zoom-pill svg {
  width: 14px;
  height: 14px;
}

.case-info {
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.case-info h2 {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.case-info > p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.spec-tags {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.spec-tag i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}

/* ================= Lightbox Modal ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 22, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  max-width: min(1040px, 100%);
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  background: #0F172A;
}

.lightbox-bar {
  margin-top: 18px;
  width: min(1040px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}

.lightbox-caption strong {
  font-size: 16px;
  display: block;
}

.lightbox-caption span {
  font-size: 13px;
  color: var(--ink-on-dark-2);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s;
}

.lb-btn:hover {
  background: var(--brand-hi);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
}

/* ================= Contact Page ================= */
.contact-cards {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.ccard {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.ccard.hotline {
  background: var(--dark);
  border-color: #1E2D4A;
  color: #fff;
}

.ccard-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.ccard.hotline .ccard-label {
  color: #8DB4FF;
}

.ccard h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 6px;
}

.phone-display {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.email-display {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-frame {
  width: 108px;
  height: 108px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  flex: none;
}

.qr-frame img {
  width: 100%;
  height: 100%;
}

/* Demand Brief Workbench */
.brief-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.brief-form-card {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.brief-form-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.brief-form-card > p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.need-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field label em {
  color: var(--red);
  font-style: normal;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-hi);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.brief-preview {
  padding: 28px;
  background: var(--dark);
  border: 1px solid #1E2D4A;
  border-radius: var(--r-md);
  color: var(--ink-on-dark);
}

.brief-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8DB4FF;
}

.brief-preview pre {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #DCE6F7;
  white-space: pre-wrap;
  word-break: break-word;
}

.brief-preview-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: var(--ink-on-dark-2);
}

/* ================= Dark Architectural CTA Band ================= */
.cta-wrap {
  padding: 20px 0 88px;
}

.cta-card {
  position: relative;
  padding: 48px 52px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, #0A1120 0%, #132240 100%);
  border: 1px solid #223559;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-hi), var(--red));
}

.cta-card h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-on-dark-2);
}

.cta-phone {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Footer ================= */
.site-foot {
  background: var(--dark);
  color: var(--ink-on-dark-2);
  border-top: 1px solid #1E2D4A;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.9fr;
  gap: 36px;
  padding: 60px 0 48px;
}

.foot-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #fff;
  border-radius: var(--r-sm);
}

.foot-brand-badge img {
  height: 28px;
  width: auto;
}

.foot-desc {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-on-dark-2);
  max-width: 340px;
}

.site-foot h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.foot-links {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.foot-links a {
  transition: color 0.18s;
}

.foot-links a:hover {
  color: #fff;
}

.foot-qr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot-qr-box {
  width: 84px;
  height: 84px;
  padding: 5px;
  background: #fff;
  border-radius: var(--r-sm);
  flex: none;
}

.foot-qr-box img {
  width: 100%;
  height: 100%;
}

.foot-qr span {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-on-dark-2);
}

.foot-bot {
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-on-dark-3);
}

/* ================= Toast Notification ================= */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--dark);
  border: 1px solid #2A3F66;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-dark);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Scroll Reveal ================= */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .cap-ticker-track { animation: none; }
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .station-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .mes-detail {
    grid-template-columns: 1fr;
  }
  .cases-home-grid {
    grid-template-columns: 1fr;
  }
  .case-tile.featured {
    grid-row: auto;
  }
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ccard.hotline {
    grid-column: 1 / -1;
  }
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(var(--wrap), 100% - 32px);
  }

  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 16px 36px rgba(11, 21, 40, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    background: var(--brand-soft);
  }

  .menu-btn {
    display: inline-flex;
  }

  .call-btn span {
    display: none;
  }

  .call-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .brand-sep,
  .brand-text small {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-item {
    padding: 20px 16px !important;
    border-bottom: 1px solid var(--line);
  }

  .kpi-item:nth-child(even) {
    border-right: 0;
  }

  .svc-grid,
  .process-grid,
  .cred-grid,
  .values-grid,
  .caps-grid,
  .domains-grid,
  .split-sec,
  .case-card,
  .equip-band-inner,
  .contact-cards,
  .foot-top {
    grid-template-columns: 1fr;
  }

  .split-sec.rev .split-media {
    order: 0;
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .equip-callouts {
    align-items: flex-start;
  }

  .about-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-card.tall {
    min-height: 240px;
  }

  .station-flow {
    grid-template-columns: 1fr;
  }

  .need-form {
    grid-template-columns: 1fr;
  }

  .sec {
    padding: 60px 0;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .cta-card {
    padding: 32px 24px;
  }

  .case-info {
    padding: 24px 20px;
  }

  .spec-tags {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WebGIS Workbench & Embedded Spatial Preview Styles (v4.1)
   ========================================================================== */

/* Embedded Home Page WebGIS Showcase */
.home-gis-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.home-gis-map-wrap {
  position: relative;
  min-height: 440px;
  background: #EBF1F8;
  border-right: 1px solid var(--line);
}

.home-gis-map-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gis-map-hud-tl {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
}

.gis-pill-btn {
  padding: 6px 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-xs);
}

.gis-pill-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.gis-pill-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.gis-zoom-stack {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.gis-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.16s;
}

.gis-icon-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.gis-map-hud-bl {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  pointer-events: none;
}

.scale-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scale-bar {
  height: 6px;
  width: 72px;
  border: 1.5px solid var(--ink);
  border-top: 0;
  transition: width 0.12s;
}

.home-gis-side {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: #FAFBFD;
}

.home-gis-side h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}

.home-gis-meta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.home-gis-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.gis-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.gis-tech-chips span {
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}

/* Full-Screen WebGIS Workbench (gis.html) */
.gis-body {
  background: var(--bg-subtle);
}

.wb-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  height: 100vh;
  min-height: 640px;
  background: #fff;
}

.wb-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #FAFBFD;
}

.wb-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wb-brand-link img {
  height: 24px;
  width: auto;
  flex: none;
}

.wb-brand-link strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.wb-brand-link small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.wb-back-btn {
  padding: 5px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.16s;
}

.wb-back-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.wb-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--line);
}

.wb-panel.right {
  border-right: 0;
  border-left: 1px solid var(--line);
  background: #FAFBFD;
}

.wb-sec {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
}

.wb-sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.wb-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.wb-mode-btn {
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s;
}

.wb-mode-btn.active {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.wb-layer-list {
  display: grid;
  gap: 8px;
}

.wb-layer-list.hidden {
  display: none;
}

.wb-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.wb-toggle:hover {
  border-color: var(--line-strong);
}

.wb-toggle input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.wb-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.wb-slider {
  width: 100%;
  margin: 10px 0 8px;
  accent-color: var(--brand);
  cursor: pointer;
}

.wb-buf-summary {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.wb-site-list {
  display: grid;
  gap: 6px;
}

.wb-site-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.16s;
}

.wb-site-item:hover {
  border-color: var(--brand-hi);
  background: var(--brand-soft);
}

.wb-site-item.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}

.wb-site-item strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.wb-site-item span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.wb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.wb-dot.red { background: var(--red); }
.wb-dot.blue { background: var(--brand); }
.wb-dot.muted { background: #94A3B8; }

/* Center Map Viewport */
.wb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #EBF1F8;
}

.wb-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 400px;
}

.wb-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wb-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.wb-toolbar > * {
  pointer-events: auto;
}

.wb-tool-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 3px;
  box-shadow: var(--shadow-xs);
}

.wb-tool-btn {
  padding: 6px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s;
}

.wb-tool-btn:hover {
  color: var(--brand);
}

.wb-tool-btn.active {
  background: var(--dark);
  color: #fff;
}

.wb-measure-bar {
  position: absolute;
  top: 62px;
  left: 14px;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(10, 17, 32, 0.92);
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}

.wb-measure-bar.show {
  display: inline-flex;
}

.wb-measure-bar button {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 11.5px;
  cursor: pointer;
}

.wb-measure-bar button:hover {
  background: var(--red);
  border-color: var(--red);
}

.wb-north {
  position: absolute;
  right: 14px;
  bottom: 48px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  pointer-events: none;
}

.wb-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  background: var(--dark);
  color: var(--ink-on-dark-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-top: 1px solid #1E2D4A;
}

.wb-status-left,
.wb-status-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.wb-statusbar .scale-bar {
  border-color: #93B8FF;
}

/* Right Inspector Drawer */
.insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wb-inspector h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.insp-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}

.insp-kv {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.insp-kv > div {
  padding: 9px 11px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.insp-kv span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.insp-kv strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink);
}

.insp-equip {
  margin-top: 14px;
}

.insp-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.insp-equip ul {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.insp-equip li {
  font-size: 12.5px;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}

.wb-arch-card {
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--dark);
  color: var(--ink-on-dark);
  font-size: 12px;
  line-height: 1.65;
}

.wb-arch-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8DB4FF;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

/* GeoJSON Modal */
.geo-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(6, 11, 22, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.geo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.geo-modal-box {
  width: min(760px, 100%);
  max-height: 82vh;
  background: var(--dark);
  border: 1px solid #2A3F66;
  border-radius: var(--r-md);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.geo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.geo-modal-head strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.geo-modal pre {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #B8D0F5;
  background: #070C17;
}

@media (max-width: 1160px) {
  .wb-shell {
    grid-template-columns: 270px minmax(0, 1fr);
    height: auto;
  }
  .wb-panel.right {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .wb-canvas-wrap {
    min-height: 540px;
  }
}

@media (max-width: 860px) {
  .home-gis-shell {
    grid-template-columns: 1fr;
  }
  .home-gis-map-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 360px;
  }
  .wb-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .wb-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wb-canvas-wrap {
    min-height: 440px;
  }
}
