/* ==========================================================================
   爱百搜城市分站系统 - 前台样式（Signal Ink 设计方向）
   深墨色底 + 单一青绿信号色；无外部依赖，离线可用。
   ========================================================================== */

:root {
  --ink: #070b14;
  --ink-2: #0a101d;
  --panel: #0e1526;
  --panel-2: #121c33;
  --panel-3: #16213c;
  --line: rgba(151, 180, 255, 0.13);
  --line-strong: rgba(151, 180, 255, 0.32);
  --text: #e9eef8;
  --muted: #9aa8c5;
  --dim: #66738f;
  --accent: #2fd4c0;
  --accent-deep: #17b3a1;
  --accent-soft: rgba(47, 212, 192, 0.12);
  --accent-line: rgba(47, 212, 192, 0.38);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-1: 0 12px 32px rgba(3, 8, 20, 0.45);
  --shadow-2: 0 24px 64px rgba(3, 8, 20, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景微纹理：极淡的网格，固定、不参与滚动渲染 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 180, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 180, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(47, 212, 192, 0.28); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #05221e; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: 68px;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(3, 8, 20, 0.5); }

.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--dim); letter-spacing: 0.14em; }
.brand:hover .brand-text em { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }
.main-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px; color: var(--muted);
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: rgba(151, 180, 255, 0.07); }
.main-nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.city-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 13px;
  background: rgba(47, 212, 192, 0.08);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--text); font-size: 13.5px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.city-trigger:hover { background: rgba(47, 212, 192, 0.14); border-color: var(--accent); }
.city-trigger:active { transform: scale(0.97); }
.city-trigger svg { width: 14px; height: 14px; color: var(--accent); }
.city-trigger .caret { width: 10px; height: 10px; color: var(--muted); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: #052421; }
.btn-primary:hover { background: #43e2ce; box-shadow: 0 10px 28px rgba(47, 212, 192, 0.22); }
.btn-ghost { border-color: rgba(151, 180, 255, 0.4); color: var(--text); background: rgba(151, 180, 255, 0.05); }
.btn-ghost:hover { border-color: var(--accent-line); background: rgba(47, 212, 192, 0.08); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }

.link-arrow { color: var(--accent); font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: #57e5d2; }

/* ---------------- Sections / headings ---------------- */

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.7; }

h1, h2, h3, h4 { line-height: 1.24; font-weight: 700; letter-spacing: 0.01em; }
.h-display { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.015em; line-height: 1.14; }
.h-section { font-size: clamp(26px, 3vw, 38px); }
.h-card { font-size: 19px; }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

.accent-text { color: var(--accent); }

/* ---------------- Hero ---------------- */

.hero { padding: 84px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 56px; align-items: center; }

.hero-copy .lead { color: var(--muted); font-size: 17.5px; margin: 22px 0 0; max-width: 34em; }
.hero-meta {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
  background: rgba(151, 180, 255, 0.04);
}
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 212, 192, 0.14); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; color: var(--accent); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  aspect-ratio: 16 / 10.5;
  background: var(--panel);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-network img { transform: scale(1.08); object-position: center 46%; }
.frame-city img { transform: scale(1.12); object-position: center 68%; }
.lead { text-wrap: pretty; }
.section-head p { text-wrap: pretty; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 38%, rgba(7, 11, 20, 0.82) 100%);
}
.hero-frame-caption {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: rgba(233, 238, 248, 0.85);
  text-shadow: 0 1px 10px rgba(3, 8, 20, 0.7);
}
.hero-frame-caption .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); background: rgba(7, 11, 20, 0.55); border: 1px solid var(--accent-line);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 3; }
.hero-chips a {
  font-size: 12.5px; color: var(--text);
  background: rgba(14, 21, 38, 0.92); border: 1px solid var(--line-strong);
  padding: 7px 13px; border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.hero-chips a:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.hero-chips a.is-all { color: var(--accent); border-color: var(--accent-line); }

/* 首屏入场动画（纯 CSS，禁用动效时直接可见） */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 0.7s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
.hero-visual { animation: rise 0.8s var(--ease) 0.18s both; }

/* ---------------- Stats band ---------------- */

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; background: rgba(10, 16, 29, 0.55); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { border-left: 1px solid var(--line); padding-left: 22px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .v { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat .v em { font-style: normal; font-size: 0.55em; color: var(--accent); margin-left: 4px; font-weight: 600; }
.stat .k { color: var(--text); font-size: 14px; margin-top: 4px; }
.stat .n { color: var(--dim); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }

/* ---------------- Services ---------------- */

.media-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 44px; align-items: center; margin-bottom: 40px; }
.media-head .section-head { margin-bottom: 0; }
.media-figure { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); background: var(--panel); }
.media-figure img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.media-figure figcaption { padding: 12px 18px; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.media-figure figcaption b { color: var(--accent); font-weight: 600; }

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service-card {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.service-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.service-card.is-lg { grid-column: span 3; }
.service-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.service-icon svg { width: 21px; height: 21px; }
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.service-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 10px; }
.service-points span {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; background: rgba(151, 180, 255, 0.035);
}
.service-card .card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: 12.5px; padding-top: 12px; border-top: 1px solid var(--line); }
.service-card .card-foot b { color: var(--accent); font-weight: 600; font-size: 12.5px; }

/* ---------------- City network ---------------- */

.city-network { background: rgba(10, 16, 29, 0.5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.region-tab {
  height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  transition: all 0.2s;
}
.region-tab:hover { color: var(--text); border-color: var(--line-strong); }
.region-tab.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

.city-board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.city-panel {
  grid-column: span 12; display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px;
}
.city-panel.is-active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; }
.city-province h4 { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 12px; }
.city-province h4 span { color: var(--accent); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.city-links { display: flex; flex-wrap: wrap; gap: 7px; }
.city-links a {
  font-size: 13.5px; color: var(--muted); padding: 5px 12px; border-radius: 8px;
  border: 1px solid transparent; transition: all 0.18s;
}
.city-links a:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.city-network-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.city-network-foot .hint { color: var(--dim); font-size: 13.5px; }

/* ---------------- Process ---------------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.process-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.process-step .num {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--accent-line); width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--accent-soft);
}
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 13.5px; }

/* ---------------- Cases ---------------- */

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card {
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.case-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.case-tag { align-self: flex-start; font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 3px 11px; border-radius: 999px; }
.case-card h3 { font-size: 18px; }
.case-card p { color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.case-metric { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.case-metric .num { font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.case-metric .lb { color: var(--muted); font-size: 13.5px; }

/* ---------------- Insights ---------------- */

.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.insight-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.insight-card .meta { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 12.5px; flex-wrap: wrap; }
.insight-card .meta .tag { color: var(--accent); }
.insight-card h3 { font-size: 16.5px; line-height: 1.5; }
.insight-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; flex: 1; }
.insight-card .more { color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------------- CTA / contact ---------------- */

.cta-band { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 28, 51, 0.5), rgba(7, 11, 20, 0.2)); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.cta-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.cta-copy p { color: var(--muted); margin-bottom: 26px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.contact-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14.5px; }
.contact-line svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.contact-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-line a { color: var(--text); }
.contact-line a:hover { color: var(--accent); }

.lead-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: grid; gap: 16px;
}
.lead-form .form-title { font-size: 18px; font-weight: 700; }
.lead-form .form-sub { color: var(--dim); font-size: 13px; margin-top: -10px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 14px; font-size: 14.5px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 212, 192, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field .err { color: #ff8f8f; font-size: 12.5px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: rgba(255, 122, 122, 0.6); }
.field.has-error .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-foot .note { color: var(--dim); font-size: 12.5px; }
.form-status { font-size: 13.5px; display: none; border-radius: 10px; padding: 10px 14px; }
.form-status.ok { display: block; color: #8ef0dd; background: rgba(47, 212, 192, 0.1); border: 1px solid var(--accent-line); }
.form-status.fail { display: block; color: #ffb3b3; background: rgba(255, 122, 122, 0.08); border: 1px solid rgba(255, 122, 122, 0.35); }

/* ---------------- City page ---------------- */

.crumbs { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--text); }

.city-hero { padding: 64px 0 70px; }
.city-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; white-space: nowrap;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600;
}
.city-badge .pin { width: 13px; height: 13px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.why-card h3 { font-size: 17px; margin: 14px 0 10px; }
.why-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.why-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.16em; }

.deliver-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deliver-card { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.deliver-card .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.deliver-card .ic svg { width: 18px; height: 18px; }
.deliver-card h3 { font-size: 16px; margin-bottom: 6px; }
.deliver-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 19px 24px; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.related-cities { border-top: 1px solid var(--line); }
.related-block { margin-bottom: 22px; }
.related-block h4 { font-size: 13px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 12px; font-weight: 600; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a {
  font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; transition: all 0.18s;
}
.related-links a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------------- City index page ---------------- */

.directory-search { position: relative; max-width: 560px; margin: 26px 0 8px; }
.directory-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.directory-search input {
  width: 100%; height: 50px; padding: 0 18px 0 44px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); font-size: 15px;
}
.directory-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 212, 192, 0.14); }
.directory-search input::placeholder { color: var(--dim); }
.directory-empty { display: none; color: var(--dim); padding: 30px 0; }
.directory-region { margin-bottom: 34px; }
.directory-region > h3 { font-size: 15px; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.directory-region > h3 .count { font-family: var(--mono); font-size: 11px; color: var(--accent); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.directory-province { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; padding: 14px 0; border-top: 1px dashed var(--line); }
.directory-province > h4 { font-size: 14px; color: var(--muted); padding-top: 5px; }
.directory-province .city-links a { font-size: 14px; padding: 5px 12px; }
.country-stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 18px 0 10px; }
.country-stats .cs { color: var(--muted); font-size: 14px; }
.country-stats .cs b { color: var(--accent); font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 4px; }

/* ---------------- Footer ---------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 64px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .muted { color: var(--dim); font-size: 12.5px; }
.footer-cities { border-top: 1px solid var(--line); padding-top: 34px; margin-bottom: 30px; }
.footer-cities h4 { font-size: 13px; color: var(--dim); letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-city-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.footer-region h5 { font-size: 12.5px; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.footer-region ul { list-style: none; display: grid; gap: 7px; }
.footer-region a { color: var(--dim); font-size: 12.5px; }
.footer-region a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--dim); font-size: 12.5px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- City picker modal ---------------- */

.city-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 9vh 20px 20px; }
.city-modal[hidden] { display: none; }
.city-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 14, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.city-dialog {
  position: relative; width: 100%; max-width: 780px; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
  animation: rise 0.35s var(--ease) both;
}
.city-dialog-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.city-dialog-head .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.city-dialog-head h3 { font-size: 17px; }
.city-dialog-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.city-dialog-close:hover { color: var(--text); border-color: var(--line-strong); }
.city-dialog-search { position: relative; margin-top: 14px; }
.city-dialog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); }
.city-dialog-search input {
  width: 100%; height: 46px; padding: 0 16px 0 40px; border-radius: 12px;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 14.5px;
}
.city-dialog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 212, 192, 0.14); }
.city-dialog-search input::placeholder { color: var(--dim); }
.city-dialog-body { padding: 20px 26px 26px; overflow-y: auto; }
.city-hot { margin-bottom: 20px; }
.city-hot h4, .city-group-title { font-size: 12.5px; color: var(--dim); letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 600; }
.city-hot .chips, .city-group .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.city-hot .chips a, .city-group .chips a {
  font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: all 0.18s;
}
.city-hot .chips a:hover, .city-group .chips a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.city-group { margin-bottom: 20px; }
.city-group-title { display: flex; align-items: center; gap: 8px; }
.city-group-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.city-noresult { display: none; color: var(--dim); font-size: 14px; padding: 20px 0; text-align: center; }

/* ---------------- Floating city bar (city pages) ---------------- */

.float-city {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14, 21, 38, 0.94); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 16px; font-size: 13.5px; box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s, border-color 0.2s, transform 0.2s var(--ease);
}
.float-city.is-on { opacity: 1; visibility: visible; }
html:not(.js) .float-city { opacity: 1; visibility: visible; }
.float-city:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.float-city svg { width: 14px; height: 14px; color: var(--accent); }
.float-city b { color: var(--accent); font-weight: 600; }

/* ---------------- Reveal on scroll ---------------- */

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
html.js .reveal.seen { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.14s; }
html.js .reveal:nth-child(4) { transition-delay: 0.2s; }

/* ---------------- 404 ---------------- */

.page-404 { min-height: 68vh; display: flex; align-items: center; }
.page-404 .inner { text-align: left; max-width: 560px; }
.page-404 .code { font-family: var(--mono); color: var(--accent); letter-spacing: 0.3em; font-size: 14px; margin-bottom: 16px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .media-head { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card.is-lg { grid-column: span 1; }
  .footer-city-cols { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 16px; right: 16px; top: 74px;
    background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow-2); z-index: 70; gap: 2px;
  }
  .main-nav.is-open a { padding: 12px 14px; font-size: 15px; }
  .header-actions .btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat { border-left: 0; padding-left: 0; }
  .city-panel.is-active { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .insights-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr; }
  .footer-city-cols { grid-template-columns: repeat(3, 1fr); }
  .directory-province { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 52px 0 56px; }
  .h-display { font-size: clamp(30px, 9vw, 38px); }
  .hero-cta .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .city-panel.is-active { grid-template-columns: 1fr; padding: 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-city-cols { grid-template-columns: repeat(2, 1fr); }
  .city-modal { padding: 4vh 12px 12px; }
  .brand-text em { display: none; }
  .stats-band { padding: 26px 0; }
}

/* ---------------- Reduced motion ---------------- */

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