/* ============================================================
   XCRAFT ROBOT — 旭擎智能
   Design language: DJI-inspired. Flat surfaces, sharp 4px cards,
   pill CTAs, full-bleed dark hero, pure black/white + Fog canvas.
   Dual-theme / bilingual preserved.
   ============================================================ */

:root {
  /* ---- brand (Xcraft cyan, used sparingly like DJI's two-blue) ---- */
  --brand: #0070d5;          /* primary CTA / accent  (DJI Sky CTA) */
  --brand-deep: #0a4f96;     /* deep accent fill */
  --brand-2: #17b3d4;        /* Xcraft cyan — hero light, accents */
  --brand-3: #3b63a9;        /* brand blue accent fill */
  --brand-ink: #0a3d52;
  /* ---- DJI geometry ---- */
  --radius: 4px;             /* flat card corner (DJI signature) */
  --radius-sm: 4px;
  --radius-pill: 64px;       /* pill buttons & tags */
  --maxw: 1200px;            /* DJI content lane */
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Open Sans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
          -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

/* ---------- LIGHT (DJI: Fog canvas #ededed + white cards) ---------- */
[data-theme="light"] {
  --bg: #ededed;             /* page canvas — DJI Fog */
  --bg-2: #ffffff;           /* card surface */
  --bg-3: #e3e3e3;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #ffffff;
  --line: #e3e3e3;           /* divider soft */
  --line-strong: #6c7073;    /* hairline */
  --text: #000000;           /* ink */
  --text-2: #303233;         /* body muted */
  --text-3: #6c7073;         /* helper */
  --glow: rgba(0,112,213,.22);
  --shadow: 0 8px 16px rgba(0,0,0,.1);   /* reserved: nav / overlays */
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --hero-veil: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 62%, #000 100%);
  --chip: #f5f5f5;
  --grid: transparent;
  --panel-tint: #f7f7f7;
  --dark-panel: #000000;
  --wr: 0;
}
/* ---------- DARK (DJI: Void #000000 hero, #272727 footer band) ---------- */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --surface: #141414;
  --surface-solid: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --line-strong: #6c7073;
  --text: #ffffff;
  --text-2: #c8c8c8;
  --text-3: #8a8a8a;
  --glow: rgba(23,179,212,.34);
  --shadow: 0 8px 16px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.4);
  --hero-veil: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 62%, #0a0a0a 100%);
  --chip: #1c1c1c;
  --grid: transparent;
  --panel-tint: #141414;
  --dark-panel: #000000;
  --wr: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .42s var(--ease), color .42s var(--ease);
}
body::before { content: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; position: relative; z-index: 1; }

/* ----------- multilingual visibility (cn default) ----------- */
html[data-lang="cn"] [data-en], html[data-lang="cn"] [data-tw], html[data-lang="cn"] [data-th], html[data-lang="cn"] [data-vi] { display: none !important; }
html[data-lang="tw"] [data-cn], html[data-lang="tw"] [data-en], html[data-lang="tw"] [data-th], html[data-lang="tw"] [data-vi] { display: none !important; }
html[data-lang="en"] [data-cn], html[data-lang="en"] [data-tw], html[data-lang="en"] [data-th], html[data-lang="en"] [data-vi] { display: none !important; }
html[data-lang="th"] [data-cn], html[data-lang="th"] [data-en], html[data-lang="th"] [data-tw], html[data-lang="th"] [data-vi] { display: none !important; }
html[data-lang="vi"] [data-cn], html[data-lang="vi"] [data-en], html[data-lang="vi"] [data-tw], html[data-lang="vi"] [data-th] { display: none !important; }

/* ----------- ambient orbs (retired — DJI runs flat, no glow mesh) ----------- */
.orb { display: none; }

/* =================== NAV =================== */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .4s, box-shadow .3s;
}
[data-theme="dark"] header.nav { background: #0a0a0a; }
header.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.1); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .logo { display: none; height: 32px; width: auto; }
html[data-lang="cn"][data-theme="light"] .brand .l-cn-l { display: block; }
html[data-lang="cn"][data-theme="dark"]  .brand .l-cn-d { display: block; }
html[data-lang="en"][data-theme="light"] .brand .l-en-l { display: block; }
html[data-lang="en"][data-theme="dark"]  .brand .l-en-d { display: block; }
/* tw/th/vi reuse the CN logo (Latin-EN logo for vi) */
html[data-lang="tw"][data-theme="light"] .brand .l-cn-l { display: block; }
html[data-lang="tw"][data-theme="dark"]  .brand .l-cn-d { display: block; }
html[data-lang="th"][data-theme="light"] .brand .l-cn-l { display: block; }
html[data-lang="th"][data-theme="dark"]  .brand .l-cn-d { display: block; }
html[data-lang="vi"][data-theme="light"] .brand .l-en-l { display: block; }
html[data-lang="vi"][data-theme="dark"]  .brand .l-en-d { display: block; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 4px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: .22s var(--ease); white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--chip); }
.nav-ctl { display: flex; gap: 9px; align-items: center; }

.seg { display: flex; padding: 3px; border-radius: 64px; background: var(--chip); border: 1px solid var(--line); }
.seg button {
  padding: 5px 14px; border-radius: 64px; font-size: 12.5px; font-weight: 600;
  color: var(--text-3); transition: .22s var(--ease); letter-spacing: .4px; white-space: nowrap;
}
.seg button.on { background: var(--brand); color: #fff; }
[data-theme="dark"] .seg button.on { background: var(--brand); color: #fff; }

/* ----------- language dropdown (5 languages) ----------- */
.lang-pick { position: relative; }
.lang-cur {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px;
  border-radius: 64px; background: var(--chip); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 600; transition: .22s var(--ease);
}
.lang-cur:hover { color: var(--text); border-color: var(--line-strong); }
.lang-cur svg { width: 16px; height: 16px; }
.lang-cur .chev { width: 14px; height: 14px; opacity: .6; transition: .25s var(--ease); }
.lang-pick:has(.lang-menu.on) .lang-cur .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 176px;
  padding: 6px; border-radius: 8px; background: var(--surface, #fff);
  border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
[data-theme="dark"] .lang-menu { background: #141414; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.lang-menu.on { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 8px 11px; border-radius: 5px; text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: .18s var(--ease);
}
.lang-menu button em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-3); }
.lang-menu button:hover { background: var(--chip); color: var(--text); }
.lang-menu button.on { background: var(--brand); color: #fff; }
.lang-menu button.on em { color: rgba(255,255,255,.78); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 64px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  transition: .22s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
html[data-theme="light"] .moon { display: none; }
html[data-theme="dark"] .sun { display: none; }

.burger { display: none; }
@media (max-width: 1080px) { .nav-links { display: none; } .burger { display: grid; } }

/* =================== HERO (DJI: full-bleed black stage) =================== */
.hero {
  position: relative; padding: 68px 0 0; overflow: hidden;
  background: #000000; color: #ffffff;
}
.hero-stage { position: relative; padding-top: 74px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 9px;
  border-radius: 64px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.86);
  backdrop-filter: blur(12px); margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22d67e; position: relative; flex-shrink: 0; }
.pulse::after { content:""; position:absolute; inset:0; border-radius:50%; background:#22d67e; animation: pulse 2.1s infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(3.2);opacity:0} }

.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; gap: 30px; } }

h1.hero-h {
  font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; font-weight: 600;
  letter-spacing: -.03em; margin: 0 0 22px; color: #fff;
}
.grad {
  background: linear-gradient(102deg, var(--brand-2) 0%, #4fc8e8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-p { font-size: 16.5px; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 0 16px; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.tag {
  padding: 7px 16px; border-radius: 64px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
[data-theme="dark"] .tag { color: rgba(255,255,255,.9); }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* DJI pill buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 30px;
  border-radius: 64px; font-size: 15px; font-weight: 600; transition: .26s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn-p { background: var(--brand); color: #fff; }
.btn-p:hover { background: #005cb0; }
.btn-g { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-g:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.hero-visual { position: relative; }
.hero-visual::before { content: none; }
.hero-visual::after { content: none; }
.hero-visual img {
  position: relative; z-index: 1;
  width: 100%; border-radius: 4px;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.5));
  mix-blend-mode: normal;
}
[data-theme="dark"] .hero-visual img { filter: brightness(1.02) drop-shadow(0 34px 70px rgba(0,0,0,.6)); }
.hero-ring { display: none; }

/* ---------- metric strip (DJI: flat tiles, hairline divider) ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 68px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.16);
  position: relative; z-index: 2;
}
.metrics.m3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 780px) { .metrics { grid-template-columns: repeat(2,1fr); } .metrics.m3 .metric:last-child { grid-column: 1 / -1; } }
.metric { background: #000000; padding: 30px 24px; transition: .3s var(--ease); }
.metric:hover { background: #0d0d0d; }
.metric b { display: block; font-size: clamp(30px,3.6vw,42px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; }
.metric b em { font-style: normal; font-size: .62em; }
.metric span { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 9px; font-weight: 500; }

/* =================== SECTION =================== */
section { padding: 96px 0; position: relative; z-index: 1; }
.sec-head { margin-bottom: 52px; max-width: 780px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 15px;
}
.sec-tag::before { content:""; width: 22px; height: 2px; background: var(--brand); }
h2.sec-h { font-size: clamp(28px,3.4vw,40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.18; margin: 0 0 16px; }
.sec-p { font-size: 16px; color: var(--text-2); margin: 0; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sec-tag { justify-content: center; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text);
  transition: .32s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.hero .card, .hero .about-main h3, .hero .vision b { color: var(--text); }
.hero .card .sec-tag { color: var(--brand); }

/* ============== ABOUT / POSITIONING ============== */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }
.intro-grid { padding-top: 4px; }
.about-main { padding: 40px; }
.about-main h3 { font-size: 22px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.02em; }
.about-main p { color: var(--text-2); margin: 0 0 15px; font-size: 15.5px; }
.vision {
  margin-top: 22px; padding: 20px 24px; border-radius: 4px;
  background: var(--panel-tint);
  border-left: 3px solid var(--brand);
}
.vision b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.vision span { font-size: 13px; color: var(--text-3); }

.cred-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; height: 100%; }
.cred { padding: 20px 22px; display: flex; gap: 15px; align-items: center; border: none; border-radius: 0; flex: 1; }
.cred:hover { background: var(--panel-tint); border-color: transparent; }
.cred .ico {
  width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--chip); color: var(--brand);
}
.cred .ico svg { width: 20px; height: 20px; }
.cred b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.cred span { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ============== ARCHITECTURE ============== */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .arch { grid-template-columns: 1fr; } }
.arch .rms-shot { order: -1; }
.arch-stack { padding: 34px; display: flex; flex-direction: column; gap: 11px; justify-content: space-between; }
.layer {
  border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px;
  background: var(--bg-2); transition: .28s var(--ease); position: relative; overflow: hidden;
}
.layer:hover { border-color: var(--line-strong); }
.layer.hl { background: #eef4fb; border-color: var(--brand); }
[data-theme="dark"] .layer.hl { background: #101b26; }
.layer-top { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.layer-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.layer-top b { font-size: 14.5px; font-weight: 600; }
.layer-top code { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; }
.layer-items { display: flex; flex-wrap: wrap; gap: 6px; }
.layer-items i {
  font-style: normal; font-size: 11.5px; font-weight: 500; padding: 4px 10px;
  border-radius: 4px; background: var(--chip); border: 1px solid var(--line); color: var(--text-2);
}
.flow-arrow { text-align: center; color: var(--text-3); font-size: 13px; line-height: 1; opacity: .6; }

/* ============== PRODUCT MATRIX (DJI: block-style tabs) ============== */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 34px; }
@media (max-width: 1080px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tabs { grid-template-columns: repeat(2, 1fr); } }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 17px 19px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-2); font-size: 15px; font-weight: 600;
  color: var(--text); transition: .24s var(--ease); text-align: left;
}
.tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tab.on { background: #000; color: #fff; border-color: #000; }
[data-theme="dark"] .tab.on { background: #fff; color: #000; border-color: #fff; }
.tab code { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .4px; font-weight: 600; }
.tab.on code { color: rgba(255,255,255,.65); }
[data-theme="dark"] .tab.on code { color: rgba(0,0,0,.6); }

/* 子系列分隔（搬运车大类内的配送系列） */
.p-sub { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }

.panel { display: none; animation: fadeUp .45s var(--ease); }
.panel.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.p-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 30px; align-items: start; }
@media (max-width: 980px) { .p-grid { grid-template-columns: 1fr; } }
.p-stage {
  padding: 30px; border-radius: 4px; display: grid; place-items: center;
  background: #ededed;
  border: 1px solid var(--line); min-height: 340px;
}
[data-theme="dark"] .p-stage { background: #141414; }
.p-stage img { max-height: 380px; width: auto; filter: drop-shadow(0 22px 44px rgba(0,0,0,.18)); transition: transform .5s var(--ease); }
[data-theme="dark"] .p-stage img { filter: brightness(.92) drop-shadow(0 22px 50px rgba(0,0,0,.5)); }
.p-stage img:hover { transform: scale(1.04); }
.p-thumbs { display: flex; gap: 10px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.p-thumbs img {
  height: 60px; width: auto; padding: 7px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); transition: .24s var(--ease);
}
.p-thumbs img:hover, .p-thumbs img.on { border-color: var(--brand); }

.p-info h3 { font-size: 25px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.02em; }
.p-model { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
.p-model code {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 4px 12px;
  border-radius: 64px; background: var(--chip); color: var(--brand); border: 1px solid var(--line);
}
[data-theme="dark"] .p-model code { color: #6fdcf0; }
.p-info > p { color: var(--text-2); font-size: 15px; margin: 0 0 20px; }
.adv { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.adv li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.adv li .n {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 4px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; background: var(--chip); color: var(--brand); margin-top: 2px;
}
.adv li span { color: var(--text-2); }

.specs { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.specs-cap {
  padding: 11px 17px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  background: var(--bg-2); color: var(--text-3); border-bottom: 1px solid var(--line);
}
.specs table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs th, .specs td { padding: 10px 17px; text-align: left; border-bottom: 1px solid var(--line); }
.specs tr:last-child td { border-bottom: none; }
.specs th { font-weight: 600; color: var(--text-3); width: 34%; background: var(--bg-2); }
.specs td { font-weight: 500; font-variant-numeric: tabular-nums; }
.specs tr:hover td { background: var(--panel-tint); }
.spec-scroll { overflow-x: auto; }

/* ============== RMS PLATFORM ============== */
.rms { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .rms { grid-template-columns: 1fr; } }
.rms-shot { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); align-self: stretch; display: flex; }
.rms-shot img { width: 100%; height: 100%; object-fit: contain; }
.rms-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1080px) { .rms-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .rms-feats { grid-template-columns: 1fr; } }
.feat { padding: 18px 20px; display: flex; gap: 14px; }
.feat .ico { width: 38px; height: 38px; border-radius: 4px; flex-shrink: 0; display: grid; place-items: center; background: var(--chip); color: var(--brand); }
.feat .ico svg { width: 19px; height: 19px; }
.feat b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.feat p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.55; }
.feat p em { font-style: normal; color: var(--brand); font-weight: 600; }

/* ============== FDE ============== */
.fde-quote {
  padding: 40px 44px; border-radius: 4px; margin-bottom: 34px;
  background: #000000; color: #fff;
}
[data-theme="dark"] .fde-quote { background: #141414; }
.fde-quote p { margin: 0 0 12px; font-size: 17px; font-weight: 500; line-height: 1.6; }
.fde-quote p:last-child { margin-bottom: 0; }
.fde-quote .hi { color: #4fc8e8; }
[data-theme="dark"] .fde-quote .hi { color: #6fdcf0; }
.fde-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; margin-bottom: 32px; }
.fde-step { padding: 26px 24px; position: relative; }
.fde-step .num {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand);
  letter-spacing: 1px; margin-bottom: 13px; display: block;
}
.fde-step h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.fde-step p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.62; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.cmp { padding: 26px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2); }
.cmp.bad { background: var(--panel-tint); }
.cmp.good { background: #eef4fb; border-color: var(--brand); }
[data-theme="dark"] .cmp.good { background: #101b26; }
.cmp h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.cmp h4 .pill { font-size: 10.5px; padding: 3px 10px; border-radius: 64px; font-weight: 700; letter-spacing: .5px; }
.cmp.bad h4 .pill { background: #ededed; color: var(--text-3); }
[data-theme="dark"] .cmp.bad h4 .pill { background: #222; }
.cmp.good h4 .pill { background: var(--brand); color: #fff; }
.cmp ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.cmp li { margin-bottom: 6px; }

/* ============== CASES ============== */
/* ============== CASES CAROUSEL (center-mode slider) ============== */
.car { position: relative; }
.car-vp {
  width: min(860px, 100%); margin: 0 auto;
  overflow: hidden; cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.car-vp.grab { cursor: grabbing; }
.car-track { display: flex; gap: 24px; transition: transform .6s var(--ease); will-change: transform; }
.car .case { flex: 0 0 min(860px, 100%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.car .case.dim { opacity: .38; transform: scale(.97); }
.car .case-img { height: 280px; }
.car .case-body { padding: 26px 30px 30px; }
.car .case-body h4 { font-size: 19px; }
.car .case-body p { font-size: 14px; }
.car-btn {
  position: absolute; top: 140px; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: #ffffff; color: var(--text); border: 1px solid var(--line);
  display: grid; place-items: center; transition: .22s var(--ease);
}
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.car-btn.off { opacity: .3; pointer-events: none; }
.car-prev { left: calc(50% - min(430px, 50%) + 14px); }
.car-next { right: calc(50% - min(430px, 50%) + 14px); }
.car-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 20px; }
.car-count { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 1.5px; }
.car-count b { color: var(--text); font-size: 14px; }
.car-dots { grid-column: 2; display: flex; gap: 8px; }
.car-dots i { width: 7px; height: 7px; border-radius: 64px; background: var(--line-strong); opacity: .35; cursor: pointer; transition: .25s var(--ease); }
.car-dots i.on { width: 24px; opacity: 1; background: var(--brand); }
@media (max-width: 720px) {
  .car-btn { display: none; }
  .car-vp { width: 94%; }
  .car .case { flex: 0 0 100%; }
  .car .case-img { height: 190px; }
  .car .case-body { padding: 20px 20px 24px; }
}
.case { overflow: hidden; display: flex; flex-direction: column; }
.case-img { display: flex; height: 178px; background: #ededed; }
[data-theme="dark"] .case-img { background: #141414; }
.case-img img { width: 50%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.case-img img:only-child { width: 100%; }
.case-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-idx { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--brand); letter-spacing: 1.2px; }
.case-body h4 { margin: 8px 0 11px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.case-body p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.case-res { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.case-res ul { margin: 0; padding-left: 17px; font-size: 13px; color: var(--text-2); }
.case-res li { margin-bottom: 5px; }
.res-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.res-tags span {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 64px;
  background: var(--chip); color: var(--brand); border: 1px solid var(--line);
}
[data-theme="dark"] .res-tags span { color: #6fdcf0; }

/* ============== VIDEO ============== */
.vids-feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 22px; }
.vids-feat.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .vids-feat { grid-template-columns: 1fr; } }
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1080px) { .vids { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .vids { grid-template-columns: 1fr; } }
.vgrp-head {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  margin-top: 30px;
}
.vgrp-head:first-child { margin-top: 0; }
.vgrp-head h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.vgrp-head i { flex: 1; height: 1px; background: var(--line); }
.vcard { overflow: hidden; text-align: left; }
.vthumb { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.vids .vthumb { aspect-ratio: 4/3; }
.vthumb img, .vthumb video { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); opacity: .92; }
.vcard:hover .vthumb img, .vcard:hover .vthumb video { transform: scale(1.05); opacity: 1; }
.vplay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%);
}
.vplay i {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.94); transition: .3s var(--ease);
}
.vcard:hover .vplay i { transform: scale(1.1); background: var(--brand); }
.vplay i::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 15px solid #000; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.vcard:hover .vplay i::after { border-left-color: #fff; }
.vinfo { padding: 16px 19px 19px; }
.vinfo b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.vinfo span { font-size: 12.5px; color: var(--text-3); }
.vdur {
  position: absolute; top: 11px; right: 11px; padding: 3px 10px; border-radius: 64px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 600; font-family: var(--mono);
  backdrop-filter: blur(6px);
}

/* ============== PARTNERS (DJI: uniform white tiles, equal size grid) ============== */
.pmarks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pmark {
  display: flex; align-items: center; justify-content: center;
  width: calc((100% - 60px) / 6); height: 96px;
  border-radius: 4px; background: #ffffff; border: 1px solid transparent;
  box-sizing: border-box;
  transition: .26s var(--ease);
}
.pmark:hover { border-color: #d5d5d5; }
.pmark img { max-height: 48px; max-width: 72%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1080px) { .pmark { width: calc((100% - 36px) / 4); height: 88px; } }
@media (max-width: 720px)  { .pmark { width: calc((100% - 24px) / 3); height: 80px; } .pmark img { max-height: 40px; } }
@media (max-width: 480px)  { .pmark { width: calc((100% - 12px) / 2); } }

/* ============== CONTACT ============== */
/* ============== CONTACT (full-width fleet shot + centered info below) ============== */
.contact-shot img { width: 100%; display: block; }
.contact-v2 { text-align: center; padding-top: 46px; }
.contact-v2 .cv-head h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.contact-v2 .cv-head p { color: var(--text-2); font-size: 15px; margin: 0 auto; max-width: 760px; }
.cv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  max-width: 1020px; margin: 36px auto 0; text-align: left;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.cv-grid .crow { padding: 0 28px; }
.cv-grid .crow + .crow { border-left: 1px solid var(--line); }
.cv-grid .crow.wide { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 22px; }
.contact-v2 .qrs { justify-content: center; border-top: none; margin-top: 30px; padding-top: 0; }
@media (max-width: 900px) {
  .cv-grid { grid-template-columns: 1fr; gap: 20px; }
  .cv-grid .crow + .crow { border-left: none; border-top: 1px solid var(--line); padding-top: 20px; }
  .cv-grid .crow { padding: 0 4px; }
}
.crow { display: flex; gap: 13px; align-items: flex-start; }
.crow .ico { width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0; display: grid; place-items: center; background: var(--chip); color: var(--brand); }
.crow .ico svg { width: 19px; height: 19px; }
.crow b { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 2px; }
.crow span, .crow a { font-size: 15px; font-weight: 600; }
.crow a:hover { color: var(--brand); }
.qrs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.qr { text-align: center; }
.qr img { width: 96px; border-radius: 4px; border: 1px solid var(--line); background: #fff; padding: 5px; }
.qr span { display: block; font-size: 12px; color: var(--text-3); margin-top: 8px; font-weight: 500; }

/* ============== FOOTER (DJI: #272727 dark terminal band) ============== */
footer {
  padding: 46px 0 40px; border-top: 1px solid var(--line); margin-top: 40px;
  position: relative; z-index: 1; background: #272727; color: #fff;
}
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.foot-links { display: flex; gap: 18px; font-size: 13px; color: rgba(255,255,255,.72); }
.foot-links a:hover { color: #fff; }
/* 备案信息（工信部要求展示备案号并链接至 beian.miit.gov.cn） */
.foot-legal {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; align-items: center;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; line-height: 1.6;
}
.foot-legal a, .foot-legal span { color: rgba(255,255,255,.40); text-decoration: none; }
.foot-legal a:hover { color: rgba(255,255,255,.78); }
.foot-legal .fl-addr { flex-basis: 100%; text-align: center; }
.foot .brand .logo { display: none !important; }
html[data-lang="cn"] footer .brand .l-cn-d, html[data-lang="tw"] footer .brand .l-cn-d, html[data-lang="th"] footer .brand .l-cn-d { display: block !important; }
html[data-lang="en"] footer .brand .l-en-d, html[data-lang="vi"] footer .brand .l-en-d { display: block !important; }

/* ============== VIDEO MODAL ============== */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 5vh 4vw;
  background: rgba(0,0,0,.9); backdrop-filter: blur(14px);
}
.modal.on { display: grid; animation: fadeIn .28s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-in { width: min(1180px, 100%); }
.modal-in video {
  width: min(100%, calc(76vh * 16 / 9)); aspect-ratio: 16/9; max-height: 76vh; object-fit: contain;
  margin: 0 auto;
  border-radius: 4px; background: #000; display: block;
}
.modal-cap { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; gap: 16px; }
.modal-cap b { color: #fff; font-size: 15px; font-weight: 600; }
.modal-close {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14);
  color: #fff; display: grid; place-items: center; font-size: 19px; flex-shrink: 0;
  transition: .22s var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,.28); }

/* ============== REVEAL ============== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ============== MOBILE MENU ============== */
.mmenu {
  position: fixed; inset: 68px 0 auto; z-index: 99; padding: 18px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); display: none;
  box-shadow: var(--shadow);
}
.mmenu.on { display: block; animation: fadeUp .3s var(--ease); }
.mmenu a { display: block; padding: 13px 16px; border-radius: 4px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.mmenu a:hover { background: var(--chip); color: var(--brand); }

@media (max-width: 620px) {
  section { padding: 68px 0; }
  .hero-stage { padding-top: 50px; }
  .about-main, .arch-stack, .fde-quote { padding: 26px; }
  .tab { padding: 9px 15px; font-size: 13px; }
  .nav-in { gap: 12px; }
  .brand .logo { height: 26px; }
  .seg button { padding: 5px 10px; font-size: 11.5px; }
  .nav-ctl { margin-left: auto; }
}
