/* ====== 设计令牌 ====== */
:root {
    --navy: #0a1f44;
    --navy-2: #102a5c;
    --blue: #1e5cff;
    --blue-2: #4d8aff;
    --accent: #00d4c8;
    --ink: #0d1b3e;
    --text: #2a3550;
    --muted: #6b7693;
    --line: #e7eaf2;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-dark: #0a1f44;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px -24px rgba(16, 42, 92, 0.35);
    --shadow-soft: 0 8px 30px -16px rgba(16, 42, 92, 0.25);
    --maxw: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ====== 基础 ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ====== 顶部公告 ====== */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 38px; flex-wrap: wrap; gap: 0.5rem;
}
.topbar__contact a { margin-left: 1.2rem; transition: color .2s var(--ease); }
.topbar__contact a:hover { color: var(--accent); }

/* ====== 导航 ====== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-soft); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.nav__logo-img { position: relative; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; }
.nav__logo-img img { display: none; width: auto; height: 38px; max-width: 160px; object-fit: contain; }
.nav__logo-img img.loaded { display: block; }
.nav__logo-img.loaded .nav__logo-svg { display: none; }
.nav__brand { display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); font-size: 1.02rem; }
.nav__brand-sub { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--muted); font-weight: 500; }
.nav__menu { display: flex; gap: 0.35rem; }
.nav__menu a {
    padding: 0.5rem 0.85rem; border-radius: 8px; font-size: 0.95rem; color: var(--text);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__menu a:hover { color: var(--blue); background: var(--bg-soft); }
.nav__toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== 按钮 ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
    cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 12px 30px -10px rgba(30, 92, 255, 0.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(30, 92, 255, 0.7); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ====== Hero ====== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 120% at 80% -10%, #1b3a82 0%, var(--navy) 55%, #06122e 100%);
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 80% at 50% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.hero__orb--1 { width: 420px; height: 420px; background: #2b6fff; top: -120px; right: -80px; }
.hero__orb--2 { width: 360px; height: 360px; background: #00d4c8; bottom: -140px; left: -60px; opacity: 0.4; }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__eyebrow {
    display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.9); margin-bottom: 1.2rem;
}
.hero__title {
    font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
}
.grad-text {
    background: linear-gradient(120deg, #6db4ff, #00d4c8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__desc { margin-top: 1.2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 640px; }
.hero__cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
    margin-top: 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap;
    padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stats dt { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; }
.hero__stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; }

/* ====== 通用 section ====== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.eyebrow { color: var(--blue); font-size: 0.82rem; letter-spacing: 0.18em; font-weight: 600; margin-bottom: 0.7rem; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--ink); }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

/* ====== About ====== */
.about__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.about__list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.about__list li { padding-left: 1.2rem; position: relative; color: var(--text); }
.about__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.about__list strong { color: var(--ink); margin-right: 0.5rem; }
.about__card {
    position: relative; border-radius: var(--radius); padding: 2.5rem; min-height: 280px;
    background: linear-gradient(135deg, var(--navy), #102a5c);
    box-shadow: var(--shadow); overflow: hidden;
}
.about__card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about__card-grid span { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.about__card-grid span:nth-child(4), .about__card-grid span:nth-child(6) { background: rgba(30,92,255,0.35); }
.about__card-grid span:nth-child(2) { background: rgba(0,212,200,0.3); }
.about__card-badge { position: absolute; right: 1.5rem; bottom: 1.5rem; color: rgba(255,255,255,0.85); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ====== Products ====== */
.products { background: var(--bg-soft); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product__icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(30,92,255,0.12), rgba(0,212,200,0.12)); color: var(--blue); margin-bottom: 1.2rem;
}
.product__title { font-size: 1.25rem; color: var(--ink); margin-bottom: 0.6rem; }
.product__desc { color: var(--muted); font-size: 0.96rem; }
.product__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.product__tags li { font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* ====== AI ====== */
.ai__inner { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 3rem; align-items: start; }
.ai__flow { display: grid; gap: 1rem; }
.ai__step {
    display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.3rem 1.4rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ai__step:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); }
.ai__num { font-weight: 700; color: var(--blue); font-size: 1.1rem; min-width: 2.2rem; }
.ai__step h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.25rem; }
.ai__step p { color: var(--muted); font-size: 0.92rem; }
.ai__panel {
    background: linear-gradient(160deg, var(--navy), #06122e); color: #fff;
    border-radius: var(--radius); padding: 2rem; position: sticky; top: 100px;
}
.ai__panel h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.ai__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.ai__chips li { font-size: 0.85rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.ai__note { color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* ====== Advantages ====== */
.advantages { background: var(--bg-soft); }
.adv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.adv { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.adv:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.adv__icon { color: var(--blue); font-size: 1.5rem; display: block; margin-bottom: 0.6rem; }
.adv h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.adv p { color: var(--muted); font-size: 0.9rem; }

/* ====== Contact ====== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: baseline; }
.contact__list span:first-child { color: var(--muted); min-width: 4rem; font-size: 0.9rem; }
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--blue); }
.contact__qr { display: flex; justify-content: center; }
.contact__qr-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; text-align: center; box-shadow: var(--shadow-soft);
    max-width: 340px; width: 100%;
}
.contact__qr-title { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.contact__qr-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.contact__qr-img {
    position: relative; width: 220px; height: 220px; margin: 0 auto 1.3rem;
    border-radius: var(--radius-sm); overflow: hidden; background: #fff;
    border: 1px solid var(--line); display: grid; place-items: center;
}
.contact__qr-img img { display: none; width: 100%; height: 100%; object-fit: contain; }
.contact__qr-img img.loaded { display: block; }
.contact__qr-img.loaded .contact__qr-placeholder { display: none; }
.contact__qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--muted); }
.contact__qr-placeholder svg { width: 150px; height: 150px; }
.contact__qr-label { font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.contact__qr-tip { font-size: 0.72rem; color: var(--muted); }
.contact__qr-note { color: var(--muted); font-size: 0.85rem; }

/* ====== Footer ====== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.72); padding-top: 3.5rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer__logo { color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.footer__brand p { max-width: 360px; font-size: 0.9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__nav a { font-size: 0.9rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; font-size: 0.8rem; }
.footer__bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ====== 滚动动画 ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ====== Modal(企业微信二维码) ====== */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.modal.open { display: flex; }
.modal__overlay {
    position: absolute; inset: 0; background: rgba(6, 18, 46, 0.62);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: modalFade .25s var(--ease);
}
.modal__panel {
    position: relative; z-index: 1; width: min(92vw, 360px);
    background: #fff; border-radius: var(--radius);
    padding: 2rem 1.6rem 1.8rem; text-align: center; box-shadow: var(--shadow);
    animation: modalPop .3s var(--ease);
}
@keyframes modalFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }
.modal__close {
    position: absolute; top: 0.55rem; right: 0.8rem;
    width: 34px; height: 34px; border: 0; background: none;
    font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
    border-radius: 50%; transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__title { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.3rem; }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.modal__qr {
    position: relative; width: 240px; height: 240px; margin: 0 auto 1.2rem;
    border-radius: var(--radius-sm); overflow: hidden; background: #fff;
    border: 1px solid var(--line); display: grid; place-items: center;
}
.modal__qr img { display: none; width: 100%; height: 100%; object-fit: contain; }
.modal__qr img.loaded { display: block; }
.modal__qr.loaded .modal__qr-placeholder { display: none; }
.modal__qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--muted); }
.modal__qr-placeholder svg { width: 150px; height: 150px; }
.modal__qr-label { font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.modal__qr-tip { font-size: 0.72rem; color: var(--muted); }
.modal__note { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 540px) {
    .modal__qr { width: 200px; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .modal__overlay, .modal__panel { animation: none; }
}

/* ====== 响应式 ====== */
@media (max-width: 980px) {
    .about__inner, .ai__inner { grid-template-columns: 1fr; }
    .ai__panel { position: static; }
    .adv__grid { grid-template-columns: repeat(2, 1fr); }
    .products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav__menu {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
        background: #fff; padding: 0.6rem 1rem 1rem; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft); transform: translateY(-130%); transition: transform .35s var(--ease);
        max-height: calc(100vh - 68px); overflow-y: auto;
    }
    .nav__menu.open { transform: translateY(0); }
    .nav__menu a { display: block; padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); }
    .nav__toggle { display: flex; }
    .contact__inner { grid-template-columns: 1fr; }
    .topbar__text { display: none; }
    .footer__inner { flex-direction: column; }
}
@media (max-width: 540px) {
    .products__grid, .adv__grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 1.5rem; }
    .hero__stats dd { font-size: 1.2rem; }
    .btn { width: 100%; }
    .hero__cta { flex-direction: column; }
}
