/* HUICO Shared CSS — nav, footer, base typography, layout primitives */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #0a53f0;
  --brand-dark: #0a3d8f;
  --brand-grad-2: #3b82f6;
  --ink: #0a2540;
  --text: #1a1a1a;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #e5e7eb;
  --bg-soft: #f8f8f8;
  --bg-softer: #fafafa;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ============= TOP BAR ============= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 40px;
  transition: box-shadow 0.2s;
}
.topbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.brand {
  display: inline-flex; align-items: center;
  height: 100%;
}
.brand-logo {
  height: 48px; width: auto; max-width: none;
  display: block;
  transition: opacity 0.2s;
}
.brand:hover .brand-logo { opacity: 0.85; }
/* footer 里的 logo 稍大 */
footer .brand-logo { height: 56px; }
/* 深色背景下 logo 不需要反色，金色调本身在深色上就突出 */
.nav { display: flex; gap: 36px; margin-left: 60px; flex: 1; }
.nav a {
  font-size: 15px; color: var(--text); font-weight: 500;
  position: relative; padding: 8px 0; transition: color 0.2s;
}
.nav a:hover, .nav a.on { color: var(--brand); }
.nav a:hover::after, .nav a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 1px;
}
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 4px; }
.lang:hover { color: var(--brand); background: var(--bg-soft); }
.btn-trial {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 10px 24px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-trial:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,83,240,0.3); }

/* ============= MOBILE HAMBURGER ============= */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.topbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============= PAGE HERO (子页 banner) ============= */
.page-hero {
  margin-top: 72px; padding: 100px 40px 80px;
  background: linear-gradient(135deg, #0a2540 0%, #0a3d8f 50%, #0a53f0 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,197,253,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 13px; opacity: 0.7; letter-spacing: 2px; margin-bottom: 16px; }
.page-hero .crumb a:hover { opacity: 1; color: #93c5fd; }
.page-hero h1 { font-size: 56px; font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.page-hero h1 .accent {
  background: linear-gradient(135deg, #93c5fd 0%, #fff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { font-size: 18px; opacity: 0.85; max-width: 720px; }

/* ============= SECTIONS ============= */
section.band { padding: 100px 40px; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 4px; color: var(--brand);
  font-weight: 700; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand); }
h2.title { font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.section-head p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* ============= CTA STRIP ============= */
.cta-strip {
  background: linear-gradient(135deg, #0a2540 0%, #0a53f0 100%);
  padding: 80px 40px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-strip > * { position: relative; z-index: 2; }
.cta-strip h2 { font-size: 48px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; letter-spacing: -1px; }
.cta-strip p { font-size: 18px; opacity: 0.85; margin-bottom: 32px; }
.cta-strip .btn {
  display: inline-block; padding: 16px 40px;
  background: #fff; color: var(--brand); border-radius: 4px;
  font-weight: 700; letter-spacing: 2px;
  transition: transform 0.2s;
}
.cta-strip .btn:hover { transform: translateY(-2px); }

/* ============= FOOTER ============= */
footer {
  background: #0a1628; color: #cbd5e1;
  padding: 60px 40px 30px;
}
.foot-top {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid #1e293b;
}
.foot-brand .brand { color: #fff; }
.foot-brand .brand-cn { color: #94a3b8; }
.foot-brand p { font-size: 13px; color: #94a3b8; line-height: 1.9; margin-top: 20px; max-width: 320px; }
.foot-contact { margin-top: 24px; font-size: 13px; line-height: 2.2; }
.foot-contact .lbl { color: #64748b; letter-spacing: 2px; font-size: 11px; }
.foot-contact .val { color: #cbd5e1; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 20px; letter-spacing: 2px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { font-size: 13px; color: #94a3b8; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-bot {
  max-width: 1280px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #64748b; letter-spacing: 1px;
}
.foot-bot a { color: #94a3b8; margin-left: 16px; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-block; padding: 14px 32px; font-weight: 700;
  letter-spacing: 1px; border-radius: 4px;
  transition: all 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .top-right .lang { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin-left: 0; padding: 6px 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  .topbar.nav-open .nav { max-height: 80vh; overflow-y: auto; opacity: 1; visibility: visible; }
  .nav a { width: 100%; padding: 15px 24px; font-size: 16px; }
  .nav a:hover::after, .nav a.on::after { display: none; }
  .nav a.on { color: var(--brand); background: var(--bg-soft); }
  .topbar { padding: 0 24px; }
  .brand-logo { height: 40px; }
  footer .brand-logo { height: 48px; }
  section.band { padding: 60px 24px; }
  .container { padding: 0 24px; }
  .page-hero { padding: 80px 24px 60px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero p { font-size: 15px; }
  h2.title { font-size: 30px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-strip h2 { font-size: 28px; }
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
