/* 美邦智联 HtmlDoc — 消费者向 · 手机/2K/4K 适配 · 无第三方 */
:root {
  --orange: #FF6B00;
  --orange-dark: #E85D00;
  --gold: #FFB800;
  --sky: #38BDF8;
  --green: #22C55E;
  --ink: #111827;
  --muted: #64748B;
  --line: #FED7AA;
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --shadow: 0 18px 50px rgba(255, 107, 0, 0.12);
  --radius: 22px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  /* 内容栏：手机满宽；桌面居中；2K/4K 不无限拉宽 */
  --content: min(1180px, calc(100% - 32px));
  --content-wide: min(1320px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -8%, #FFE8CC 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #CFFAFE 0%, transparent 45%),
    linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 42%, #FFF7ED 100%);
  line-height: 1.55;
  overflow-x: hidden;
}
body.rtl { direction: rtl; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.shell {
  width: var(--content);
  margin-inline: auto;
  padding-inline: 0;
}
@media (min-width: 1600px) {
  :root { --content: min(1320px, calc(100% - 80px)); }
}
@media (min-width: 2200px) {
  :root { --content: min(1480px, calc(100% - 120px)); }
  body { font-size: 17px; }
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 240, 0.92);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 0.72rem; font-weight: 700; color: var(--orange-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 800;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: flex-end;
}
.nav a {
  color: var(--ink); font-weight: 600; font-size: 0.9rem;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: #FFEDD5; color: var(--orange-dark); }
.lang-wrap { position: relative; }
.lang-btn, .sound-btn {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.28); font-size: 0.88rem;
}
.sound-btn { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); max-height: 360px; overflow: auto; min-width: 220px; z-index: 60;
}
body.rtl .lang-menu { right: auto; left: 0; }
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: start;
  padding: 10px 14px; color: var(--ink);
}
.lang-menu button:hover, .lang-menu button.active { background: #FFF7ED; color: var(--orange-dark); }

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(16px, 3vw, 32px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 3vw, 40px);
  align-items: center; perspective: 1200px;
}
.hero-copy h1 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.2; margin: 0 0 14px;
}
.hero-copy .lead {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--muted); margin: 0 0 20px; max-width: 38rem;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  background: #FFF7ED; color: var(--orange-dark); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
}
.badge.soft { background: #fff; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #FF8A3D);
  color: #fff; font-weight: 800; padding: 14px 22px; border-radius: 16px;
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.3); display: inline-block;
}
.btn-primary.light { background: #fff; color: var(--orange-dark); }
.btn-ghost {
  background: #fff; color: var(--ink); font-weight: 700;
  padding: 14px 22px; border-radius: 16px; border: 2px solid var(--line); display: inline-block;
}
.hero-points {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 8px;
}
.hero-points li {
  padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.75);
  border: 1px solid var(--line); font-weight: 650; font-size: 0.95rem;
}
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 900; }
.hero-stage { position: relative; min-height: 280px; }
.hero-card {
  background: linear-gradient(160deg, #fff, #FFF7ED);
  border: 2px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  transform: rotateY(-6deg) rotateX(4deg); transition: transform 0.25s ease;
}
.hero-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.float-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: floaty 5s ease-in-out infinite;
}
.orb-1 { width: 72px; height: 72px; background: rgba(255,184,0,.4); top: 6%; left: -3%; }
.orb-2 { width: 96px; height: 96px; background: rgba(56,189,248,.32); bottom: 4%; right: -2%; animation-delay: -1.5s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
section.block { padding: clamp(36px, 5vw, 72px) 0; }
section.block.alt { background: rgba(255,255,255,.45); }
.section-head { margin-bottom: 8px; }
.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem); margin: 0 0 10px;
}
.section-head .sub { color: var(--muted); margin: 0 0 24px; max-width: 52rem; line-height: 1.55; }
/* 试玩副标题：电脑一行显示；手机照常换行 */
@media (min-width: 900px) {
  #demo .section-head .sub {
    max-width: none;
    white-space: nowrap;
  }
}

.grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
@media (min-width: 1600px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 2200px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 10px 30px rgba(17,24,39,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card.icon-card > img {
  width: 100%; aspect-ratio: 1; max-height: 168px; object-fit: contain;
  background:
    radial-gradient(circle at 30% 20%, #FFF7ED, transparent 55%),
    radial-gradient(circle at 80% 70%, #E0F2FE, transparent 50%), #fff;
  padding: 14px; box-sizing: border-box;
}
.card .body { padding: 14px 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.product-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px;
}
.product-card.tracker { border-color: #FDBA74; background: linear-gradient(180deg, #fff, #FFF7ED); }
.product-card.ebike { border-color: #7DD3FC; background: linear-gradient(180deg, #fff, #F0F9FF); }
.product-card .tag {
  display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: #FFF7ED; color: var(--orange-dark); font-weight: 800; font-size: 0.8rem;
}
.product-card.ebike .tag { background: #E0F2FE; color: #0369A1; }
.story-band {
  padding: 18px 20px; border-radius: 20px; border: 1px dashed var(--line);
  background: #fff; color: var(--muted); font-size: 0.98rem;
}

/* Demo */
.demo {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start;
}
.demo-panel {
  background: linear-gradient(180deg, #fff, #FFF7ED);
  border: 2px solid var(--line); border-radius: 28px; padding: 20px;
  box-shadow: var(--shadow); perspective: 900px;
}
.demo-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bike-3d {
  width: min(100%, 400px); margin: 8px auto 16px; aspect-ratio: 1.4;
  transform-style: preserve-3d; transition: transform .15s ease;
  display: grid; place-items: center;
}
.bike-visual {
  width: 100%; height: 100%; border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, #FFE8CC, transparent 50%), linear-gradient(145deg, #FFEDD5, #FFF);
  border: 2px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden;
}
.bike-svg { width: 78%; height: auto; }
.lock-ring {
  position: absolute; inset: 18% 22%; border: 4px dashed rgba(255,107,0,.35);
  border-radius: 50%; transition: all .35s ease;
}
.lock-ring.on { border-color: var(--green); transform: scale(1.05); box-shadow: 0 0 0 12px rgba(34,197,94,.12); }
.status-pill {
  display: inline-flex; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem;
  background: #FEE2E2; color: #B91C1C;
}
.status-pill.unlocked, .status-pill.ok { background: #DCFCE7; color: #15803D; }
.status-pill.soft { background: #FFF7ED; color: var(--orange-dark); }
.status-pill.warn { background: #FEF3C7; color: #B45309; }
.status-pill.danger { background: #FEE2E2; color: #B91C1C; }
.ctrl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.ctrl-btn {
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 8px; font-weight: 800; color: var(--ink); font-size: 0.92rem;
}
.ctrl-btn:active { transform: scale(0.97); }
.ctrl-btn.main { background: linear-gradient(135deg, var(--orange), var(--gold)); color: #fff; border-color: transparent; }
.ctrl-btn.danger { background: #fff; color: #B91C1C; border-color: #FECACA; }
.timeline {
  margin-top: 14px; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 12px;
  max-height: 150px; overflow: auto;
}
.timeline ul { margin: 0; padding: 0; }
.timeline li { list-style: none; padding: 6px 0; border-bottom: 1px dashed #FDE68A; font-size: 0.88rem; }

/* Demo map (device marker) */
.demo-map {
  margin-top: 14px; background: #fff; border-radius: 18px; border: 1px solid var(--line);
  padding: 12px; overflow: hidden;
}
.demo-map-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.demo-map-head strong { display: block; font-size: 1rem; }
.demo-map-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.map-refresh {
  flex-shrink: 0; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 0.82rem;
  background: #FFF7ED; color: var(--orange-dark); border: 2px solid var(--line);
}
.map-refresh:active { transform: scale(0.97); }
.demo-map-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #E2E8F0;
}
.demo-map-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-pin {
  position: absolute; transform: translate(-50%, -100%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: left 1s linear, top 1s linear;
}
.map-pin-pulse {
  position: absolute; bottom: 6px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 107, 0, 0.28); animation: mapPulse 1.8s ease-out infinite;
}
.map-pin-icon {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border: 3px solid #fff; box-shadow: 0 8px 18px rgba(255, 107, 0, 0.45);
  position: relative; z-index: 1;
}
.map-pin-icon::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.map-pin-label {
  margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
  background: rgba(17, 24, 39, 0.88); color: #fff; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.demo-map-meta {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  margin-top: 10px; font-size: 0.84rem; font-weight: 700; color: var(--muted);
}
.demo-map-meta .dot { opacity: .5; }
.map-pin.ping .map-pin-pulse { animation-duration: .7s; }
@keyframes mapPulse {
  0% { transform: scale(0.55); opacity: .9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.demo-tips {
  background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 18px;
}
.demo-tips h3 { margin: 0 0 10px; }
.demo-tips ol { margin: 0 0 16px; padding-left: 1.2rem; color: var(--muted); }
.demo-tips img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  aspect-ratio: 1; object-fit: contain; background: #FFF7ED; padding: 10px; box-sizing: border-box;
}
.demo-tips img + img { margin-top: 12px; }

/* Locate */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; font-weight: 800;
  background: #fff; border: 2px solid var(--line); cursor: pointer;
}
.chip.active { background: var(--orange); color: #fff; border-color: transparent; }
.chip .chip-ico { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.gnss-bar {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, #FFF7ED, #E0F2FE);
  border: 1px solid var(--line); font-weight: 800; font-size: 0.92rem;
  color: var(--orange-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.loc-detail {
  margin-top: 16px; padding: 20px; border-radius: 20px; background: #fff;
  border: 2px solid var(--line); min-height: 96px; color: var(--muted);
}

/* Hardware */
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.spec {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.spec strong { font-size: 1.02rem; }
.spec span { color: var(--muted); font-size: 0.92rem; }

/* Install */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.inst-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.inst-card h3 { margin: 0; font-size: 1.02rem; }
.inst-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Highlights */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.hl-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.hl-item strong { font-size: 1.02rem; }
.hl-item span { color: var(--muted); font-size: 0.92rem; }

/* Compare table (legacy, unused on promo) */
.compare-wrap { overflow: auto; border-radius: 24px; border: 2px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 13px 14px; text-align: start; border-bottom: 1px solid #FFF7ED; }
table.compare th { background: #FFF7ED; font-weight: 800; position: sticky; top: 0; }
table.compare td.win { color: #15803D; font-weight: 800; }
table.compare td.lose { color: #94A3B8; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list p { margin: 10px 0 0; color: var(--muted); }

/* CTA */
.cta-band {
  margin: 8px 0 36px; padding: clamp(28px, 4vw, 48px) 0;
  border-radius: 0;
  background: linear-gradient(120deg, #FF6B00, #FFB800 55%, #38BDF8);
  color: #fff; text-align: center;
}
.cta-band .shell { max-width: var(--content); }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.cta-band p { margin: 0 0 18px; opacity: .95; max-width: 40rem; margin-inline: auto; }

footer.site-foot {
  padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.site-foot .foot-copy { margin: 0 0 8px; }
.site-foot .foot-meta { margin: 0; font-size: 0.84rem; }
.site-foot .foot-meta a { color: var(--muted); }
.site-foot .foot-meta a:hover { color: var(--orange-dark); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i {
  position: absolute; top: -10px; width: 10px; height: 14px; border-radius: 2px;
  animation: fall 1.2s linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 120;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); max-width: min(92vw, 420px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 8px 0 12px; gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .sound-btn, .nav .lang-btn { width: 100%; text-align: center; }
  .lang-menu { left: 0; right: 0; width: 100%; }
  .hero-grid, .demo, .product-duo { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .ctrl-grid { grid-template-columns: repeat(2, 1fr); }
  .card.icon-card > img { max-height: 140px; }
  .brand-text strong { max-width: 42vw; }
  .brand-text small { max-width: 42vw; }
}

@media (max-width: 420px) {
  .ctrl-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 1.55rem; }
}
