/* =========================================================
   讯车 XUNCHE · 官网公共样式
   设计基调：深色科技 + 玻璃拟态 + 青蓝渐变，简洁克制
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #060911;
  --bg-2: #090e1a;
  --bg-3: #0d1424;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #eaf0ff;
  --text-2: #a3b1c9;
  --text-3: #6c7c98;

  --brand: #3b82f6;
  --brand-deep: #1d4ed8;
  --cyan: #16e0c0;
  --grad: linear-gradient(120deg, #3b82f6 0%, #16e0c0 100%);
  --grad-soft: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(22, 224, 192, 0.18));

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 20px 60px -20px rgba(59, 130, 246, 0.45);

  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景氛围光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(760px 460px at 92% 4%, rgba(22, 224, 192, 0.1), transparent 62%);
}

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 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
}

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

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 104px 0;
  position: relative;
  z-index: 1;
}

.section--soft {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 40%, transparent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-2);
  font-size: 17px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--grad);
  color: #04101c;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px -18px rgba(59, 130, 246, 0.6);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: #06101d;
}

.btn--light:hover {
  transform: translateY(-2px);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- 5. 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.card--hover:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 6. 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(6, 9, 17, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  flex: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.8);
}

.brand__mark svg {
  width: 18px;
  height: 18px;
  stroke: #04101c;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.16em;
  padding-left: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__link.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span + span {
  margin-top: 5px;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(6, 9, 17, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.drawer.is-open {
  display: flex;
}

.drawer__link {
  padding: 16px 14px;
  border-radius: 14px;
  font-size: 17px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}

.drawer__link.is-active {
  color: var(--text);
  background: var(--surface);
}

.drawer__cta {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 96px;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(800px 620px at 60% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(800px 620px at 60% 20%, #000 0%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}

.hero__badge b {
  background: var(--grad);
  color: #04101c;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 22px;
}

.hero__desc {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__note {
  font-size: 13px;
  color: var(--text-3);
}

/* Hero 视觉：实时车场看板 */
.hero__visual {
  position: relative;
}

.dash {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(20px);
}

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

.dash__title {
  font-size: 15px;
  font-weight: 600;
}

.dash__sub {
  font-size: 12px;
  color: var(--text-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cyan);
  background: rgba(22, 224, 192, 0.1);
  border: 1px solid rgba(22, 224, 192, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(22, 224, 192, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(22, 224, 192, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 224, 192, 0);
  }
}

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

.dash__stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

.dash__stat span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.dash__stat b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dash__stat--used b {
  color: #ffc46b;
}

.dash__stat--free b {
  color: var(--cyan);
}

.dash__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
}

.dash__bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  width: 0;
  transition: width 1.6s var(--ease);
}

.dash__bar-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}

.dash__list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.dash__row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 13px;
}

.dash__row .plate {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.dash__row .time {
  color: var(--text-3);
  font-size: 12px;
}

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag--ok {
  color: var(--cyan);
  background: rgba(22, 224, 192, 0.1);
  border-color: rgba(22, 224, 192, 0.22);
}

.tag--warn {
  color: #ffc46b;
  background: rgba(255, 196, 107, 0.1);
  border-color: rgba(255, 196, 107, 0.22);
}

.tag--info {
  color: #8ab4ff;
  background: rgba(138, 180, 255, 0.1);
  border-color: rgba(138, 180, 255, 0.22);
}

/* ---------- 8. 数据条 ---------- */
.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 40px 0;
}

.metric {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric b {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- 9. 通用网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.feat h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feat p {
  color: var(--text-2);
  font-size: 15px;
}

.feat__more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--cyan);
}

.feat__more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.feat__more:hover svg {
  transform: translateX(4px);
}

/* ---------- 10. 方案切换 ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.tab.is-active {
  background: var(--grad);
  color: #04101c;
  border-color: transparent;
  font-weight: 600;
}

.panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: fadeUp 0.5s var(--ease);
}

.panel.is-active {
  display: grid;
}

.panel h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.panel p {
  color: var(--text-2);
  margin-bottom: 20px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 方案配图（抽象几何） */
.visual {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.14), rgba(22, 224, 192, 0.08));
  padding: 28px;
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(320px 320px at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(320px 320px at 50% 50%, #000, transparent 75%);
}

/* 场景界面卡（替代抽象车位矩阵） */
.shot {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(20px);
}

.shot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.shot__head b {
  font-size: 14px;
  font-weight: 600;
}

.shot__head .where {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 2px;
}

.shot__body {
  padding: 16px 18px;
  display: grid;
  gap: 9px;
}

.shot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.shot__row b {
  color: var(--text);
  font-weight: 600;
}

.shot__row--total {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.28);
  font-size: 15px;
}

.shot__row--total b {
  font-size: 20px;
  color: var(--cyan);
}

.shot__row--cut {
  color: var(--cyan);
}

.shot__note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shot__note svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shot__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}

.shot__foot b {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.shot__actions {
  display: flex;
  gap: 8px;
}

/* 防线卡（安全审计） */
.def {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.def__no {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.5;
  background: linear-gradient(120deg, var(--brand), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.def b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 6px;
}

.def p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}

/* 审计流水行 */
.audit-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 14px;
}

.audit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-2);
}

.audit-top b {
  color: var(--text);
  font-weight: 600;
}

.audit-src {
  flex: none;
  font-size: 11px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid;
}

.audit-src--auto {
  color: var(--cyan);
  border-color: rgba(22, 224, 192, 0.4);
  background: rgba(22, 224, 192, 0.1);
}

.audit-src--manual {
  color: #8ab4ff;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.14);
}

.audit-src--free {
  color: #ffc46b;
  border-color: rgba(255, 196, 107, 0.45);
  background: rgba(255, 196, 107, 0.14);
}

.audit-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}

.audit-div {
  color: rgba(255, 255, 255, 0.14);
  font-style: normal;
}

.audit-state {
  flex: none;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 20px;
}

.audit-state--ok {
  color: var(--cyan);
  background: rgba(22, 224, 192, 0.12);
}

.audit-state--wait {
  color: #8ab4ff;
  background: rgba(59, 130, 246, 0.16);
}

.audit-alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.audit-alert svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  stroke: #ff6b6b;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audit-alert b {
  color: var(--text);
}

.mini-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.mini-btn--ok {
  color: var(--cyan);
  border-color: rgba(22, 224, 192, 0.35);
  background: rgba(22, 224, 192, 0.1);
}

/* ---------- 11. 架构分层 ---------- */
.stack {
  display: grid;
  gap: 14px;
}

.layer {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 24px;
}

.layer__name {
  width: 116px;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

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

.chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
}

/* ---------- 12. 案例 ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.case__num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case__title {
  font-size: 19px;
  margin: 6px 0 10px;
}

.case__desc {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 18px;
}

.case__list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case__list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
}

.case__list b {
  color: var(--text);
  font-weight: 600;
}

/* 客户评价 */
.quote {
  font-size: 17px;
  color: var(--text);
  line-height: 1.8;
}

.quote-by {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-3);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  flex: none;
}

/* 合作伙伴 */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.logos div {
  height: 62px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.logos div:hover {
  color: var(--text);
  border-color: var(--line-2);
}

/* ---------- 12.5 车主体验链路 ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.journey__item {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.journey__item:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.journey__item::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--line-2);
}

.journey__item:last-child::after {
  display: none;
}

.journey__time {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.journey__item h3 {
  font-size: 17px;
  margin: 8px 0 8px;
}

.journey__item p {
  font-size: 14px;
  color: var(--text-2);
}

.migrate {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: rgba(59, 130, 246, 0.06);
  font-size: 15px;
  color: var(--text-2);
}

.migrate b {
  color: var(--text);
}

.migrate .ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.migrate .ic svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 12.6 机器狗巡检 ---------- */
.patrol-tasks {
  display: grid;
  gap: 10px;
}

.patrol-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.patrol-task__ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(22, 224, 192, 0.12);
  border: 1px solid rgba(22, 224, 192, 0.3);
}

.patrol-task__ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patrol-task h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.patrol-task p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.patrol-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 7px;
}

.patrol-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.patrol-cmp {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.patrol-cmp__item {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.patrol-cmp__k {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.patrol-cmp__item s {
  display: block;
  font-size: 14px;
  color: var(--text-3);
  text-decoration-thickness: 1px;
  margin-bottom: 4px;
}

.patrol-cmp__item b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.patrol-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.patrol-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 13. 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.step::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 34px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.step h4 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- 14. CTA ---------- */
.cta {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
}

.cta p {
  color: var(--text-2);
  margin-bottom: 30px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* CTA 内联预约表单 */
.cta-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.cta-form__field {
  position: relative;
  flex: 1;
  margin-bottom: 0;
}

.cta-form__field .err-msg {
  position: absolute;
  top: calc(100% + 4px);
  left: 2px;
}

.cta-form__select {
  flex: none;
  width: 200px;
  cursor: pointer;
}

.cta-form__select option {
  background: #0d1424;
  color: var(--text);
}

/* ---------- 15. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: rgba(4, 6, 12, 0.6);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer__about p {
  color: var(--text-3);
  font-size: 14px;
  margin: 16px 0 20px;
  max-width: 280px;
}

.footer__col h5 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}

.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--text);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--surface);
}

.socials svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}

.footer__bottom a {
  color: var(--text-3);
}

.footer__bottom a:hover {
  color: var(--text-2);
}

/* ---------- 16. 表单控件 ---------- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.input::placeholder {
  color: var(--text-3);
}

.input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.06);
}

.input.is-error {
  border-color: #ff6b6b;
}

select.input {
  cursor: pointer;
}

select.input option {
  background: #0d1424;
  color: var(--text);
}

textarea.input {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}

.err-msg {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #ff8787;
}

.err-msg.show {
  display: block;
}

/* ---------- 17. 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(13, 20, 36, 0.9);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 19. 页面顶部留白（内页） ---------- */
.page-head {
  padding: calc(var(--header-h) + 76px) 0 56px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 16px;
}

.page-head p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--text-2);
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav__menu {
    gap: 2px;
  }
  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__desc {
    max-width: none;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer__about {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 76px 0;
  }
  .nav__menu,
  .nav__actions .btn--ghost {
    display: none;
  }
  .nav__toggle {
    display: flex;
    flex-direction: column;
  }
  .grid--3,
  .grid--4,
  .steps,
  .journey,
  .patrol-cmp {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey__item::after {
    display: none;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .panel.is-active {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .metrics__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 0;
  }
  .metric:nth-child(3),
  .metric:nth-child(5) {
    border-right: 0;
  }
  .logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: calc(var(--header-h) + 52px) 0 64px;
  }
  .hero__actions .btn {
    flex: 1;
    min-width: 140px;
  }
  .grid--3,
  .grid--4,
  .steps,
  .journey {
    grid-template-columns: 1fr;
  }
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }
  .metric:nth-child(2),
  .metric:nth-child(4) {
    border-right: 0;
  }
  .metric:last-child {
    grid-column: span 2;
    border-right: 0;
  }
  .migrate {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .cta {
    padding: 40px 22px;
  }
  .cta-form {
    flex-direction: column;
  }
  .cta-form__select {
    width: 100%;
  }
  .cta-form .btn {
    width: 100%;
  }
  .dash {
    padding: 16px;
  }
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__about {
    grid-column: span 2;
  }
  .layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .layer__name {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
