/* ============================================================
   華興科技 HuaXing Tech — 官網設計系統
   風格：乾淨專業 · 淺色 · 企業藍 · ITS 智慧運輸科技感
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand blues */
  --ink:        #0A1626;   /* near-black navy */
  --navy-900:   #0C2545;
  --navy-800:   #103564;
  --blue-700:   #0B3E96;
  --blue-600:   #1556D6;   /* primary */
  --blue-500:   #2E6BE6;
  --blue-200:   #AEC8F4;
  --blue-100:   #DCE8FB;

  /* Accent (tweakable signal color) */
  --accent:     #11B5D6;   /* signal cyan */
  --accent-ink: #06384a;

  /* Status */
  --active:     #14B26B;   /* dispatched / online */
  --warn:       #E8A13A;

  /* Neutral / surfaces */
  --bg:         #FFFFFF;
  --bg-soft:    #F2F6FC;
  --bg-soft-2:  #E9F1FB;
  --bg-ink:     #081326;   /* dark sections */
  --surface:    #FFFFFF;
  --line:       #DCE6F2;
  --line-soft:  #EAF0F8;

  /* Text */
  --text:       #0E1B2E;
  --text-2:     #3A4A60;
  --muted:      #6A7C93;
  --on-dark:    #EAF1FB;
  --on-dark-mut:#9DB2CE;

  /* Type */
  --font-disp: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Noto Sans TC", "Space Grotesk", system-ui, sans-serif;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(12,37,69,.06), 0 2px 8px rgba(12,37,69,.05);
  --shadow-md: 0 6px 20px rgba(12,37,69,.08), 0 2px 6px rgba(12,37,69,.05);
  --shadow-lg: 0 24px 60px -20px rgba(12,37,69,.30), 0 8px 24px rgba(12,37,69,.10);
  --shadow-accent: 0 18px 50px -16px color-mix(in oklch, var(--blue-600) 55%, transparent);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

/* Latin glyphs / numbers use display font even inside zh text runs */
.en, .num, .eyebrow, .stat-num, .logo-en, .btn { font-family: var(--font-disp); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section--ink .eyebrow { color: var(--accent); }

.s-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.s-head h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  margin-top: 16px;
  letter-spacing: -.02em;
}
.s-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin-top: 18px; max-width: 62ch; }
.section--ink .s-head p { color: var(--on-dark-mut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { transform: translateY(-2px); background: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(12,37,69,.03);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 8px; }
.brand .b-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .logo-zh { font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--navy-900); order: -1; }
.brand .logo-en { font-size: 12px; color: var(--muted); letter-spacing: .04em; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--text-2); transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--blue-700); background: var(--bg-soft-2); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); font-family: var(--font-disp); letter-spacing: .02em;
}
.lang-toggle button.active { background: var(--blue-600); color: #fff; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--bg-soft-2) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 8px 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.hero-badge .tag {
  font-family: var(--font-disp); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(120deg, var(--blue-600), var(--accent)); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px); letter-spacing: -.03em; line-height: 1.03;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--blue-600) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); margin-top: 24px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 52px; flex-wrap: wrap;
}
.hero-stats .stat-num { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; }
.hero-stats .stat-num small { font-size: .55em; color: var(--accent); margin-left: 2px; }
.hero-stats .stat-lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Hero visual — dispatch map */
.hero-visual {
  position: relative; aspect-ratio: 1 / 1.02; width: 100%;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--navy-900), var(--ink) 60%, #04101f);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.hero-visual .map-grid { position: absolute; inset: 0; opacity: .5; }
.hero-visual .glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 40%, transparent), transparent 65%);
  top: -10%; right: -8%; filter: blur(14px);
}
.hero-visual svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.car-dot {
  position: absolute; width: 14px; height: 14px; left: -7px; top: -7px;
  offset-rotate: 0deg;
}
.car-dot i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent), 0 0 14px var(--accent);
}
.car-dot.b i { background: var(--active); box-shadow: 0 0 0 4px color-mix(in oklch, var(--active) 25%, transparent), 0 0 14px var(--active); }
.car-dot.c i { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2), 0 0 12px rgba(255,255,255,.6); }

.hud {
  position: absolute; backdrop-filter: blur(8px);
  background: rgba(8,19,38,.62); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 13px 15px; color: var(--on-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.hud-top { top: 22px; left: 22px; }
.hud-bot { bottom: 22px; right: 22px; }
.hud .hud-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); }
.hud .hud-val { font-size: 22px; font-weight: 700; font-family: var(--font-disp); margin-top: 3px; }
.hud .hud-val .live { color: var(--active); }
.hud-row { display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--active); box-shadow: 0 0 0 0 var(--active); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 color-mix(in oklch, var(--active) 60%, transparent);} 70%{ box-shadow:0 0 0 9px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

@keyframes dash { to { stroke-dashoffset: -1000; } }

/* ---------- Logos / partner strip ---------- */
.trust { padding-block: 40px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-lbl { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .1em; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 52px); }
.trust-row span { font-weight: 600; color: #9aabc2; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .02em; transition: color .2s; }
.trust-row span:hover { color: var(--navy-800); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.about-lead b { color: var(--blue-700); }
.about-body p { color: var(--text-2); margin-top: 16px; font-size: 16px; }

.pillars { display: grid; gap: 18px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 26px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.pillar .p-ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.pillar .p-ico.a { background: linear-gradient(140deg, var(--blue-600), var(--blue-700)); }
.pillar .p-ico.b { background: linear-gradient(140deg, var(--accent), #0a7fa3); }
.pillar .p-ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 19px; }
.pillar .p-en { font-family: var(--font-disp); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.pillar p { font-size: 14.5px; color: var(--text-2); margin-top: 10px; }
.pillar ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.pillar li { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: clamp(40px,5vw,64px); }
.value-card { padding: 28px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line-soft); }
.value-card .v-num { font-family: var(--font-disp); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.value-card h4 { font-size: 18px; margin-top: 10px; }
.value-card p { font-size: 14.5px; color: var(--text-2); margin-top: 8px; }

/* ============================================================
   PRODUCTS / SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  position: relative; padding: 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s; overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft-2); color: var(--blue-600); margin-bottom: 20px; }
.svc-ico svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 20px; }
.svc-card .svc-en { font-family: var(--font-disp); font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; text-transform: uppercase; }
.svc-card p { font-size: 14.5px; color: var(--text-2); margin-top: 14px; }

/* ============================================================
   DISPATCH CENTER
   ============================================================ */
.dispatch { background: var(--bg-ink); color: var(--on-dark); overflow: hidden; }
.dispatch .s-head h2 { color: #fff; }
.dispatch-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px,5vw,64px); align-items: center; }
.disp-feature { display: grid; gap: 14px; }
.disp-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s; }
.disp-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.disp-item .d-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(17,181,214,.16); color: var(--accent); }
.disp-item .d-ico svg { width: 24px; height: 24px; }
.disp-item h4 { font-size: 17px; color: #fff; }
.disp-item p { font-size: 14px; color: var(--on-dark-mut); margin-top: 5px; }

/* Dispatch console mock */
.console {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, #0c1f3c, #07111f); box-shadow: var(--shadow-lg);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.console-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.console-bar .dot:nth-child(1){ background:#ff5f57;} .console-bar .dot:nth-child(2){ background:#febc2e;} .console-bar .dot:nth-child(3){ background:#28c840;}
.console-bar .c-title { margin-left: 8px; font-size: 13px; color: var(--on-dark-mut); font-family: var(--font-disp); letter-spacing: .02em; }
.console-body { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 320px; }
.console-map { position: relative; background: radial-gradient(120% 120% at 30% 20%, #0e234c 0, #081326 60%); border-right: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.console-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.console-side { padding: 18px; display: grid; gap: 12px; align-content: start; }
.disp-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.disp-row .car-id { font-family: var(--font-disp); font-weight: 700; font-size: 13px; color: #fff; }
.disp-row .car-meta { font-size: 11.5px; color: var(--on-dark-mut); }
.disp-row .badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-family: var(--font-disp); letter-spacing: .04em; }
.badge.go { background: rgba(20,178,107,.18); color: #44d894; }
.badge.idle { background: rgba(157,178,206,.14); color: var(--on-dark-mut); }
.badge.busy { background: rgba(232,161,58,.18); color: #f0bd6b; }

/* ============================================================
   AI 自動客服  (highlight)
   ============================================================ */
.ai { position: relative; overflow: hidden; }
.ai::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 60% at 80% 0%, var(--bg-soft-2) 0, transparent 60%);
}
.ai .wrap { position: relative; z-index: 1; }
.ai-tag-new {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 12px;
  font-family: var(--font-disp); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 11px; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--blue-600));
}

/* shared AI feature list */
.ai-features { display: grid; gap: 12px; }
.ai-feat { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; }
.ai-feat .f-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 14px; background: var(--bg-soft-2); color: var(--blue-700); }
.ai-feat h4 { font-size: 17px; }
.ai-feat p { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* entry channels chips */
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.channel { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.channel svg { width: 18px; height: 18px; }
.channel .ch-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; }

/* ---- Chat widget ---- */
.chat {
  width: 100%; border-radius: var(--r-xl); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; min-height: 540px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(120deg, var(--navy-900), var(--blue-700)); color: #fff; }
.chat-head .ava { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.chat-head .ava svg { width: 22px; height: 22px; }
.chat-head .ch-name { font-weight: 700; font-size: 15px; display:flex; align-items:center; gap:8px; }
.chat-head .ch-stat { font-size: 12px; color: var(--blue-200); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-head .mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--active); }
.chat-head .ch-actions { margin-left: auto; display: flex; gap: 6px; opacity: .6; }
.chat-head .ch-actions i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.12); display:grid; place-items:center; }

.chat-body { flex: 1; padding: 22px 20px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.msg { display: flex; gap: 10px; max-width: 86%; opacity: 0; transform: translateY(8px); animation: msgIn .4s forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .m-ava { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; }
.msg.bot .m-ava { background: linear-gradient(140deg, var(--blue-600), var(--accent)); color: #fff; }
.msg.user .m-ava { background: var(--navy-800); color: #fff; }
.msg .m-ava svg { width: 16px; height: 16px; }
.bubble { padding: 12px 15px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow-sm); }
.msg.bot .bubble { background: #fff; border-top-left-radius: 5px; color: var(--text); }
.msg.user .bubble { background: var(--blue-600); color: #fff; border-top-right-radius: 5px; }
.bubble .b-meta { font-size: 11px; color: var(--muted); margin-top: 7px; }
.msg.user .bubble .b-meta { color: var(--blue-100); }

/* agent reasoning steps inside a bot bubble */
.agent-steps { display: grid; gap: 8px; margin-top: 4px; }
.astep { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.astep .tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-soft-2); color: var(--muted); }
.astep.done .tick { background: var(--active); color: #fff; }
.astep .tick svg { width: 11px; height: 11px; }
.astep b { color: var(--text); font-weight: 600; }

/* dispatch result card inside chat */
.dispatch-card { margin-top: 6px; border-radius: 13px; border: 1px solid var(--line); overflow: hidden; }
.dc-top { background: var(--navy-900); color: #fff; padding: 11px 14px; display: flex; align-items: center; gap: 10px; }
.dc-top .car-no { font-family: var(--font-disp); font-weight: 700; font-size: 16px; }
.dc-top .go-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(20,178,107,.25); color: #54e09c; font-family: var(--font-disp); }
.dc-body { padding: 12px 14px; background: #fff; display: grid; gap: 9px; }
.dc-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.dc-line svg { width: 15px; height: 15px; color: var(--blue-600); flex-shrink: 0; }
.dc-line b { color: var(--text); }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

/* guardrail chip */
.guard { margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: color-mix(in oklch, var(--warn) 16%, white); color: #9a6a16; font-weight: 600; }
.guard svg { width: 14px; height: 14px; }

.chat-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-top: 1px solid var(--line); }
.chat-input .qreplies { display: flex; gap: 8px; flex: 1; overflow: hidden; }
.qchip { font-size: 12.5px; padding: 8px 13px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; transition: all .15s; }
.qchip:hover { border-color: var(--blue-500); color: var(--blue-700); background: #fff; }
.chat-input .send { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--blue-600); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-input .send svg { width: 18px; height: 18px; }
.chat-replay { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); background:none; border:0; padding:8px 12px; }
.chat-replay svg { width:15px; height:15px; }

/* AI section layout variants (driven by data-ai-variant on .ai) */
.ai-arr { display: grid; gap: clamp(30px,4.5vw,60px); align-items: center; }
.ai-aside, .ai-reason { display: block; }

/* default = split */
.ai-arr { grid-template-columns: 1fr 1.06fr; }
.ai-reason { display: none; }

/* reasoning dark panel (console) */
.ai-reason {
  background: var(--bg-ink); border-radius: var(--r-xl); padding: clamp(26px,3vw,38px);
  color: var(--on-dark); align-self: stretch; box-shadow: var(--shadow-md);
}
.ai-reason .rp-head { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-family: var(--font-disp); margin-bottom: 20px; }
.ai-reason .ai-feat .f-num { background: rgba(17,181,214,.16); color: var(--accent); }
.ai-reason .ai-feat h4 { color: #fff; }
.ai-reason .ai-feat p { color: var(--on-dark-mut); }
.ai-reason .ai-features { gap: 20px; }
.ai-reason .channel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-dark); }

/* SPLIT */
[data-ai-variant="split"] .ai-aside { display: block; }
[data-ai-variant="split"] .ai-reason { display: none; }

/* STACKED — chat centered, features in a 2-col grid below */
[data-ai-variant="stacked"] .ai-arr { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
[data-ai-variant="stacked"] .ai-chat-col { order: 1; }
[data-ai-variant="stacked"] .ai-aside { order: 2; }
[data-ai-variant="stacked"] .ai-aside { display: block; }
[data-ai-variant="stacked"] .ai-aside .ai-features { grid-template-columns: repeat(2,1fr); gap: 24px 28px; }
[data-ai-variant="stacked"] .ai-reason { display: none; }

/* CONSOLE — dark reasoning panel left, wide chat right */
[data-ai-variant="console"] .ai-arr { grid-template-columns: .92fr 1.25fr; align-items: stretch; }
[data-ai-variant="console"] .ai-aside { display: none; }
[data-ai-variant="console"] .ai-reason { display: block; }

@media (max-width: 1000px) {
  .ai-arr, [data-ai-variant="console"] .ai-arr { grid-template-columns: 1fr; }
  [data-ai-variant="stacked"] .ai-aside .ai-features { grid-template-columns: 1fr; }
}

/* ============================================================
   TECH ADVANTAGE / STATS
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.tech-card .t-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft-2); color: var(--blue-600); margin-bottom: 16px; }
.tech-card .t-ico svg { width: 24px; height: 24px; }
.tech-card h4 { font-size: 17px; }
.tech-card p { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: clamp(40px,5vw,60px); padding: clamp(34px,4vw,48px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--blue-700), var(--navy-900)); color: #fff; box-shadow: var(--shadow-lg); }
.stat-cell { text-align: center; }
.stat-cell .big { font-family: var(--font-disp); font-size: clamp(34px,4.5vw,52px); font-weight: 700; letter-spacing: -.02em; }
.stat-cell .big small { font-size: .5em; color: var(--accent); }
.stat-cell .lbl { font-size: 13.5px; color: var(--blue-200); margin-top: 6px; }

/* ============================================================
   CASES / TIMELINE / PARTNERS
   ============================================================ */
.timeline { position: relative; display: grid; gap: 0; margin-top: 10px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); position: relative; }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--font-disp); font-size: 26px; font-weight: 700; color: var(--blue-600); position: relative; }
.tl-year small { display: block; font-size: 12px; color: var(--muted); font-family: var(--font-body); font-weight: 500; letter-spacing: .04em; margin-top: 2px; }
.tl-body h4 { font-size: 18px; }
.tl-body p { font-size: 14.5px; color: var(--text-2); margin-top: 8px; max-width: 70ch; }
.tl-body .tl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tl-body .tl-tags span { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; margin-top: clamp(40px,5vw,56px); }
.partner { display: grid; place-items: center; padding: 24px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; text-align: center; transition: border-color .2s, transform .2s; }
.partner:hover { border-color: var(--blue-200); transform: translateY(-2px); }
.partner .p-name { font-weight: 600; font-size: 15px; color: var(--navy-800); }
.partner .p-kind { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--blue-700) 0%, var(--navy-900) 70%, var(--ink) 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(44px,6vw,80px);
  box-shadow: var(--shadow-lg);
}
.cta .cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px,5vw,60px); align-items: center; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px,4vw,46px); letter-spacing: -.02em; }
.cta p { color: var(--blue-200); margin-top: 18px; font-size: 17px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta .cta-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(6px); }
.cta .cta-card .ci { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cta .cta-card .ci:last-child { border-bottom: 0; }
.cta .cta-card .ci .ci-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.cta .cta-card .ci .ci-ico svg { width: 19px; height: 19px; }
.cta .cta-card .ci .ci-lbl { font-size: 12px; color: var(--blue-200); }
.cta .cta-card .ci .ci-val { font-weight: 600; font-size: 15px; }
.cta .cta-card .ci .ci-val a { color: inherit; text-decoration: none; transition: color .15s; }
.cta .cta-card .ci .ci-val a:hover { color: var(--accent); text-decoration: underline; }
.cta .blob { position: absolute; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklch, var(--accent) 35%, transparent), transparent 65%); right: -8%; bottom: -30%; filter: blur(20px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark-mut); padding-block: 64px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand-mark { display: flex; align-items: center; gap: 12px; }
.foot-brand-mark .mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 8px; }
.foot-brand-mark .b-txt { display: flex; flex-direction: column; line-height: 1.15; }
.foot-brand .logo-zh { color: #fff; font-size: 19px; font-weight: 700; font-family: var(--font-disp); order: -1; }
.foot-brand .logo-en { color: var(--on-dark-mut); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.foot-brand p { margin-top: 14px; font-size: 14px; max-width: 30ch; }
.foot-col h5 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-disp); }
.foot-col a { display: block; font-size: 14px; padding: 6px 0; color: var(--on-dark-mut); transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* ============================================================
   REVEAL animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; }
}

/* ---------- language visibility ---------- */
[data-lang="zh"] .en-only { display: none; }
[data-lang="en"] .zh-only { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .dispatch-grid, .ai-split, .ai-console-grid, .cta .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .svc-grid, .tech-grid { grid-template-columns: repeat(2,1fr); }
  .values { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
  .console-body { grid-template-columns: 1fr; }
  .ai-stacked .ai-features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav .lang-toggle { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav.open .nav-links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .svc-grid, .tech-grid, .foot-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2,1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-grid { gap: 28px; }
}
