/* =============================================================
   Waweis — English B2B Manufacturer Site | global.css
   Design tokens per docs/建站开发方案.md §5
   ============================================================= */
:root {
  --color-primary: #0B1F3A;
  --color-primary-deep: #071528;
  --color-accent: #2D7FF9;
  --color-accent-soft: #E8F1FE;
  --color-amber: #F5A623;
  --color-bg: #F6F8FB;
  --color-surface: #FFFFFF;
  --color-text: #14213D;
  --color-muted: #5A6B85;
  --color-line: #E3E9F2;
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius-card: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 24px rgba(11,31,58,.08);
  --shadow-hover: 0 12px 32px rgba(11,31,58,.14);
  --container: 1200px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--color-primary); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--color-primary-deep); color: #B9C7DC; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #DDE7F5; font-weight: 600; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-line); position: sticky; top: 0; z-index: 100; transition: box-shadow .2s ease; }
.site-header.header-scrolled { box-shadow: 0 6px 18px rgba(11,31,58,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand .logo-main { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--color-primary); letter-spacing: .5px; }
.brand .logo-main b { color: var(--color-accent); }
.brand .logo-sub { font-size: 11px; color: var(--color-muted); letter-spacing: 1.1px; text-transform: uppercase; }

/* ONLY the first-level menu list lays out horizontally */
.nav-menu > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-menu > ul > li { position: relative; }
.nav-menu > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--color-text); border-radius: 8px; transition: color .15s ease, background .15s ease; }
.nav-menu > ul > li > a:hover, .nav-menu > ul > li > a.active { color: var(--color-accent); background: var(--color-accent-soft); text-decoration: none; }
.nav-menu a.nav-cta { background: var(--color-accent); color: #fff; border-radius: 999px; padding: 9px 20px; margin-left: 8px; }
.nav-menu a.nav-cta:hover { background: var(--color-primary); text-decoration: none; }
.nav-menu .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }

/* dropdown (desktop hover) — always a vertical stack */
.dropdown {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 12px;
  box-shadow: var(--shadow-hover); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-menu > ul > li:hover .dropdown, .nav-menu > ul > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { width: 100%; }
.dropdown li a { display: block; width: 100%; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--color-text); border-radius: 8px; white-space: nowrap; }
.dropdown li a:hover { background: var(--color-accent-soft); color: var(--color-accent); text-decoration: none; }

/* nav toggle (mobile) */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-primary); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; border-radius: 999px; padding: 13px 26px; cursor: pointer; border: 2px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-primary); }
.btn-amber { background: var(--color-amber); color: #fff; }
.btn-amber:hover { background: #E2950F; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 55%, #123a6b 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(45,127,249,.35), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #9FC0FF; background: rgba(45,127,249,.14); border: 1px solid rgba(45,127,249,.35); border-radius: 999px; padding: 7px 14px; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.16; margin-bottom: 18px; max-width: 560px; }
.hero h1 .accent { color: var(--color-amber); }
.hero p.lead { color: #C7D5EA; font-size: 17px; max-width: 520px; margin-bottom: 28px; line-height: 1.65; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #B9C7DC; font-weight: 600; }
.hero-facts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-amber); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.product-shot {
  width: 100%; max-width: 380px; aspect-ratio: 5/4; border-radius: 22px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px rgba(0,0,0,.4);
  background: #14213D;
}
.hero-chip { position: absolute; background: var(--color-surface); color: var(--color-primary); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow-hover); font-size: 13px; font-weight: 700; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-amber); }
.hero-chip.one { top: -18px; right: 22px; }
.hero-chip.two { bottom: -16px; left: -10px; }

/* ---------- Responsive: global ---------- */
@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 86vw);
    background: var(--color-surface); box-shadow: -12px 0 40px rgba(11,31,58,.18);
    transform: translateX(102%); transition: transform .26s ease;
    z-index: 120; overflow-y: auto; padding: 64px 24px 24px;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > ul, .nav-menu ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-menu > ul > li > a { width: 100%; justify-content: space-between; }
  .nav-menu a.nav-cta { margin-left: 0; margin-top: 6px; justify-content: center; }
  .nav-menu .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--color-accent-soft);
    padding: 0 0 0 12px; margin: 2px 0 8px; max-height: 0; overflow: hidden;
    transition: max-height .26s ease;
  }
  .nav-menu li.open .dropdown { max-height: 420px; }
  body.no-scroll { overflow: hidden; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-facts { justify-content: center; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 576px) {
  .topbar .container { justify-content: center; text-align: center; }
  .hero-chip.one { right: 6px; }
  .hero-chip.two { left: 0; }
}

/* ---------- Section eyebrow (shared, all pages) ---------- */
.section-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent);
  background: var(--color-accent-soft); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 14px; font-weight: 600;
}

/* ---------- Footer (shared, all pages) ---------- */
.site-footer { background: var(--color-primary-deep); color: #A9B8CF; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #A9B8CF; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; color: var(--color-amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7E8DA6; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #DDE7F5; }
.social-row a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Reveal on scroll (shared, all pages) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive: footer (shared) ---------- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}
