/* ============================================================
   万界环行 · 官方网站
   Tianjin Wanjie Huanxing Electronic Technology Co., Ltd.
   Design system — dark / AI-hardware aesthetic
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #101828;
  --surface-2: #162033;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);

  --text: #e8eef8;
  --text-muted: #96a2b8;
  --text-faint: #5c6a82;

  --accent: #00c853;          /* cyan */
  --accent-2: #14b8a6;        /* violet */
  --accent-3: #4ade80;        /* mint */
  --gold: #fbbf24;

  --grad: linear-gradient(120deg, #00c853 0%, #14b8a6 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,200,83,.16), rgba(20,184,166,.16));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.7);

  --nav-h: 72px;
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Helvetica Neue", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(0,200,83,.3); }

/* ---------- ambient background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -6%, rgba(20,184,166,.16), transparent 60%),
    radial-gradient(800px 500px at 88% 4%, rgba(0,200,83,.13), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(74,222,128,.07), transparent 60%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .5;
}
.section-title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.section-sub { margin-top: 16px; color: var(--text-muted); font-size: 17px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #061018;
  box-shadow: 0 10px 30px -10px rgba(0,200,83,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0,200,83,.7); }
.btn-ghost {
  border: 1px solid var(--border-strong); color: var(--text);
  background: rgba(148,163,184,.05);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,11,20,.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: .05em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--text-muted);
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,.08); }
.nav-links a.active { color: var(--text); background: rgba(0,200,83,.12); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: .25s; }

/* mobile menu */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11,17,32,.98); padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: block; }
  .nav .btn-sm { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 96px) 0 96px;
  text-align: center; position: relative;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border-strong); background: rgba(148,163,184,.05);
  margin-bottom: 28px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }
.hero h1 {
  font-size: clamp(40px, 7.5vw, 78px); font-weight: 900; line-height: 1.06; letter-spacing: -.02em;
  margin-bottom: 8px;
}
.hero .sub { font-size: clamp(17px, 2.4vw, 22px); color: var(--text-muted); margin-bottom: 8px; }
.hero .vision {
  font-size: clamp(15px, 2vw, 18px); color: var(--text);
  background: var(--grad-soft); border: 1px solid var(--border);
  display: inline-block; padding: 12px 26px; border-radius: 999px; margin: 16px 0 36px;
}
.hero .vision b { color: var(--accent); }
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-devices { margin-top: 72px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 5vw, 60px); }
.hero-devices .device { text-align: center; }
.hero-devices .device svg { width: clamp(70px, 12vw, 110px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,200,83,.25)); }
.hero-devices .device p { margin-top: 14px; font-size: 14px; color: var(--text-muted); }

/* scroll cue */
.scroll-cue { margin-top: 60px; color: var(--text-faint); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scroll-dot 1.6s ease infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- products carousel (ROW 1) ---------- */
.products { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.carousel { position: relative; max-width: 1080px; margin: 0 auto; }
.carousel-track { position: relative; min-height: 520px; }
.carousel-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  opacity: 0; transform: translateX(40px); pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.carousel-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.carousel-slide.prev { transform: translateX(-40px); }

.product-visual {
  position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 28px; background: var(--grad-soft); border: 1px solid var(--border);
  overflow: hidden;
}
.product-visual::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,83,.18), transparent 70%);
  filter: blur(6px); z-index: 0;
}
.product-visual svg { position: relative; z-index: 1; width: 62%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.product-visual img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.product-info { text-align: left; }
.product-info .tag { color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.product-info h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 6px; }
.product-info .en { color: var(--text-faint); font-size: 14px; margin-bottom: 22px; }
.product-info p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; max-width: 460px; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.specs li {
  font-size: 13px; color: var(--text-muted); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(148,163,184,.05);
}
.specs li b { color: var(--text); font-weight: 600; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.carousel-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--text-muted); transition: .2s;
}
.carousel-arrow:hover { color: var(--accent); border-color: var(--accent); }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 999px; background: var(--border-strong); transition: .3s; }
.carousel-dots button.active { width: 28px; background: var(--grad); }

/* ---------- agent market (ROW 2) ---------- */
.market { position: relative; overflow: hidden; }
.market-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(0,200,83,.4); }
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 22px;
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

.market-stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 56px; }
.stat { text-align: center; }
.stat b { font-size: clamp(28px, 4vw, 44px); font-weight: 800; display: block; }
.stat span { color: var(--text-muted); font-size: 14px; }

/* ---------- services (ROW 3) ---------- */
.services { background: var(--bg-2); border-top: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 24px; }
.service-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(20,184,166,.4); }
.service-card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 24px;
}
.service-card .icon svg { width: 28px; height: 28px; color: #061018; }
.service-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.service-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card ul li { font-size: 13px; color: var(--text-muted); padding: 6px 13px; border-radius: 999px; background: rgba(148,163,184,.07); border: 1px solid var(--border); }
.service-card .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0; }
.service-card .glow.c { background: var(--accent); top: -80px; right: -60px; }
.service-card .glow.v { background: var(--accent-2); top: -80px; right: -60px; }

/* ---------- cta band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); margin-bottom: 32px; }
.cta-band .btn { margin: 0 8px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 72px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 300px; }
footer h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul a { color: var(--text-muted); font-size: 14px; transition: color .18s; }
footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px;
}

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--nav-h) + 88px) 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 900; letter-spacing: -.02em; }
.page-hero p { color: var(--text-muted); margin-top: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > div h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 18px; }
.split > div p { color: var(--text-muted); margin-bottom: 16px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.contact-item .icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; font-family: inherit; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,200,83,.15); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .carousel-slide { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .product-info { text-align: center; }
  .product-info p { margin-left: auto; margin-right: auto; }
  .specs { justify-content: center; }
  .product-visual { max-width: 300px; }
  .market-grid, .values { grid-template-columns: 1fr; }
  .services-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-devices { gap: 24px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-track { min-height: 600px; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
