/* Base reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }

:root{
  --brand-700:#0d60ff;
  --brand-600:#1f6bff;
  --brand-500:#3a7bfd;
  --brand-100:#eef4ff;
  --text:#1f2d3d;
  --muted:#f6f8fb;
  --border:#e6e9ef;
  --shadow:0 6px 18px rgba(10,30,65,.08);
}

body{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); line-height: 1.65; background:#fff; }
.container{ width: min(1200px, 92%); margin-inline: auto; }

/* Top bar */
.topbar{ background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); color:#fff; font-size:12px; }
.topbar__inner{ display:flex; justify-content:space-between; align-items:center; padding:6px 0; opacity:.95; }
.topbar a{ color:#fff; text-decoration: underline; }

/* Header & nav */
.header{ position: sticky; top:0; z-index: 30; backdrop-filter: saturate(160%) blur(10px); background: rgba(255,255,255,.76); border-bottom:1px solid rgba(10,30,65,.06); transition: box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.header__inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap: 18px; }
.logo{ font-weight: 900; font-size: 24px; letter-spacing:.3px; color: var(--brand-700); }
.logo--footer{ color:#fff; }
.nav{ display:flex; gap:28px; }
.nav a{ position:relative; padding:12px 14px; color:#1f2d3d; font-size:16px; font-weight:600; letter-spacing:.2px; opacity:.95; border-radius:10px; }
.nav a:hover{ color: var(--brand-700); background: var(--brand-100); }
.nav a.is-active{ color: var(--brand-700); background: var(--brand-100); }
.nav a::after{ content:""; position:absolute; left:14px; right:14px; bottom:6px; height:3px; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); border-radius:3px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a.is-active::after{ transform: scaleX(1); }

/* Dropdown in nav */
.dropdown{ position:relative; }
.dropdown > a{ display:inline-flex; align-items:center; gap:6px; }
.dropdown > a::before{ content:""; }
.dropdown > a::after{ content:""; position:static; width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid #6a7a8b; transform:none; margin-left:4px; }
.dropdown:hover > a{ background: var(--brand-100); color: var(--brand-700); }
.dropdown__menu{ position:absolute; top:100%; left:0; min-width: 180px; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow: 0 12px 28px rgba(10,30,65,.12); padding:8px; /* remove margin to avoid hover gap */ display:flex; flex-direction:column; gap:4px; opacity:0; transform: translateY(6px); pointer-events:none; transition: .2s ease; z-index: 50; }
.dropdown__menu::before{ content:""; position:absolute; left:0; right:0; top:-8px; height:8px; /* hover bridge to avoid flicker */ }
.dropdown:hover .dropdown__menu, .dropdown.is-open .dropdown__menu{ opacity:1; transform: translateY(0); pointer-events:auto; }
.dropdown.is-open > a{ background: var(--brand-100); color: var(--brand-700); }
.dropdown__menu a{ padding:10px 12px; border-radius:8px; color:#21374d; font-weight:600; }
.dropdown__menu a:hover, .dropdown__menu a.is-active{ background: var(--brand-100); color: var(--brand-700); }

.header--scrolled{ background:#fff; border-color: rgba(10,30,65,.08); box-shadow: 0 10px 28px rgba(10,30,65,.08); }

.btn{ display:inline-block; padding:10px 16px; border-radius:10px; border:1px solid var(--border); color:#17324d; background:#fff; transition:.2s ease; }
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary{ background: var(--brand-700); color:#fff; border-color: transparent; }
.btn--primary:hover{ filter: brightness(1.05); }

/* Header CTA 更显眼 */
.header .btn--primary{ padding:12px 18px; border-radius:999px; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); box-shadow: 0 8px 18px rgba(31,107,255,.25); }
.header .btn--primary:hover{ transform: translateY(-2px); filter: brightness(1.06); }

/* Hero */
.hero{ background: radial-gradient(1200px 420px at 80% -30%, #e7f0ff, transparent 60%), linear-gradient(135deg, #edf4ff 0%, #f9fbff 100%); border-bottom:1px solid var(--border); }
.hero__inner{ display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap: 40px; padding: 40px 0 28px; }
.hero__copy h1{ margin:0 0 8px; font-size: 30px; line-height:1.28; }
.subtitle{ margin:0 0 14px; color:#5a6b7c; }
.bullets li{ position:relative; padding-left:22px; margin:8px 0; }
.bullets li::before{ content:"✔"; position:absolute; left:0; top:0; color: var(--brand-700); font-size:14px; }
.cta{ margin-top:16px; display:flex; gap:12px; }
.hero__visual{ filter: drop-shadow(0 20px 30px rgba(10,30,65,.08)); }

/* Sections */
.section{ padding: 46px 0; }
.section--muted{ background: var(--muted); }
.section__title{ text-align:center; margin:0 0 18px; font-size:22px; }
.section__title span{ position:relative; display:inline-block; padding:2px 10px; }
.section__title span::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; background: linear-gradient(90deg,var(--brand-600),var(--brand-500)); border-radius:3px; }
.section__title.left{ text-align:left; }

/* Subpage hero & breadcrumb */
.page-hero{ background: linear-gradient(135deg,#f3f7ff 0%, #ffffff 70%); border-bottom:1px solid var(--border); }
.page-hero__inner{ padding: 32px 0; }
.page-hero h1{ margin:0 0 6px; font-size:28px; }
.breadcrumb{ display:flex; gap:8px; align-items:center; color:#6b7f93; font-size:13px; }
.breadcrumb a{ color:#40608a; }
.breadcrumb .sep{ opacity:.5; }

/* Solution page */
.split{ display:grid; grid-template-columns: 1.05fr .95fr; gap:28px; align-items:center; }
.solution-intro .subtitle{ max-width: 58ch; }

.solution-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:start; }
.panel{ background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.panel__title{ margin:0 0 10px; font-size:18px; }

.hw-list{ display:grid; gap:12px; }
.hw-item{ display:grid; grid-template-columns: 48px 1fr; gap:12px; align-items:center; padding:10px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.hw-item__icon{ width:48px; height:48px; border-radius:10px; background:#f1f5ff; border:1px solid var(--border); object-fit:cover; }
.spec{ color:#5a6b7c; font-size:13px; margin-top:2px; }

.sw-panel{ position:relative; }
.sw-shot{ width:100%; border:1px solid var(--border); border-radius:12px; background:#f4f7fc; margin-bottom:12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ display:inline-block; padding:8px 10px; background:#f3f6ff; color:#294766; border:1px solid var(--border); border-radius:999px; font-size:12px; }

@media (max-width: 1024px){
  .split, .solution-grid{ grid-template-columns: 1fr; }
}

/* Tabs */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin: 8px 0 16px; }
.tab{ padding:8px 14px; border:1px solid var(--border); border-radius:20px; background:#fff; color:#344a5f; cursor:pointer; }
.tab.is-active{ background: var(--brand-700); color:#fff; border-color: transparent; }
.is-hidden{ display:none !important; }

/* Product cards */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card{ display:block; border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; text-decoration:none; color:inherit; }
.card img{ width:100%; aspect-ratio: 4 / 3; object-fit:cover; background:#f2f5fb; }
.card h3{ font-size:16px; margin:10px 12px 2px; }
.card p{ font-size:13px; color:#5a6b7c; margin:0 12px 14px; }
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* Features */
.features{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.feature{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; text-align:center; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.feature__icon{ font-size:28px; background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); -webkit-background-clip:text; background-clip:text; color: transparent; margin-bottom:6px; }
.feature h3{ margin:0 0 6px; }
.feature p{ margin:0; color:#5a6b7c; font-size:14px; }

/* Cases */
.case-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.case{ margin:0; background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.case img{ width:100%; aspect-ratio: 16 / 9; object-fit:cover; background:#eef2f7; }
.case figcaption{ padding:10px 12px; font-size:13px; color:#4a5c6e; }

/* About & certs */
.about{ display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:start; }
.about__text p{ margin:10px 0; color:#4a5c6e; }
.certs{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.certs img{ width:100%; border:1px solid var(--border); border-radius:10px; background:#fff; box-shadow: 0 2px 10px rgba(0,0,0,.03); aspect-ratio: 3 / 4; object-fit:cover; }

/* News */
.news{ display:grid; gap:8px; }
.news li{ display:flex; align-items:center; gap:10px; border-bottom:1px dashed #e9edf3; padding:8px 0; }
.news .date{ width:54px; text-align:center; background:#ffeded; color:#d33; font-weight:700; border-radius:6px; padding:6px 0; font-size:12px; }
.news a{ color:#2a3d52; text-decoration:none; }
.news a:hover{ color: var(--brand-700); }

/* Footer */
.footer{ background:#0f1a29; color:#b7c4d6; margin-top: 20px; }
.footer__inner{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:18px; padding: 24px 0; }
.footer__col h4{ margin:0 0 10px; color:#fff; }
.footer__col ul{ display:grid; gap:6px; font-size:14px; }
.footer__col a{ color:#c6d5e6; }
.ipc{ text-align:center; padding:10px 0; border-top:1px solid rgba(255,255,255,.06); font-size:12px; color:#98a8bb; }
.ipc a, .ipc a:visited, .ipc a:hover{ color: inherit; text-decoration: none; }

/* Responsive */
@media (max-width: 1024px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .features, .case-grid{ grid-template-columns: repeat(2, 1fr); }
  .about{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .hero__inner{ grid-template-columns: 1fr; padding: 24px 0; }
  .cards{ grid-template-columns: 1fr; }
  .features, .case-grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .footer__inner{ grid-template-columns: 1fr; }
}
