/* ===== 基础与变量 ===== */
:root {
    --blue-600: #1d4ed8;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --cyan-400: #22d3ee;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-300: #cbd5e1;
    --bg: #ffffff;
    --bg-soft: #f5f8ff;
    --bg-card: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 40px rgba(29, 78, 216, 0.12);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    color: var(--ink-700);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.25; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(120deg, var(--blue-600), var(--blue-400)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(29,78,216,.28); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }

.text-link { color: var(--blue-600); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ===== 顶部导航 ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0); transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 40px; height: 40px; border-radius: 12px;
    object-fit: contain; object-position: center;
    transition: transform .2s ease;
}
.brand-logo:hover { transform: scale(1.06); }
.footer-logo { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 19px; color: #fff; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,.7); }
.site-header.scrolled .brand-name { color: var(--ink-900); }
.site-header.scrolled .brand-name small { color: var(--ink-500); }

.nav-links { display: flex; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 15px; color: rgba(255,255,255,.92); position: relative; padding: 6px 0; }
.site-header.scrolled .nav-links a { color: var(--ink-700); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue-500); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 9px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink-900); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(34,211,238,.35), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(29,78,216,.55), transparent 55%),
        linear-gradient(135deg, #0b1f4d, #143a8c 55%, #1d4ed8);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 90px; }
.hero-eyebrow { letter-spacing: 3px; font-size: 13px; font-weight: 700; color: var(--cyan-400); margin-bottom: 18px; }
.hero-text h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; color: #fff; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 30px; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.72); }

/* Hero 视觉芯片卡 */
.hero-visual { display: grid; place-items: center; }
.chip-card {
    width: 300px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px; padding: 22px; backdrop-filter: blur(8px); box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.chip-top { display: flex; align-items: center; gap: 10px; }
.chip-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 12px var(--cyan-400); }
.chip-title { font-weight: 700; letter-spacing: 1px; }
.chip-body { position: relative; height: 180px; display: grid; place-items: center; margin: 16px 0; }
.chip-core {
    width: 130px; height: 130px; border-radius: 24px; display: grid; place-items: center;
    font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #04122e;
    background: linear-gradient(135deg, #fff, #cfe8ff); box-shadow: 0 0 30px rgba(34,211,238,.6);
}
.pulse-ring {
    position: absolute; width: 150px; height: 150px; border-radius: 50%;
    border: 2px solid rgba(34,211,238,.5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.chip-foot { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.8); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag { letter-spacing: 4px; font-size: 12px; font-weight: 700; color: var(--blue-500); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-desc { color: var(--ink-500); margin-top: 12px; font-size: 16px; }

/* ===== 关于我们 ===== */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-lead p { font-size: 16px; margin-bottom: 16px; color: var(--ink-700); }
.about-lead strong { color: var(--blue-600); }
.about-actions { margin-top: 10px; }
.about-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-feats li { background: var(--bg-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.about-feats li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-ico { color: var(--blue-500); font-size: 20px; line-height: 1.6; }
.about-feats h4 { font-size: 16px; margin-bottom: 6px; }
.about-feats p { font-size: 13.5px; color: var(--ink-500); }

/* ===== 产品中心 ===== */
.products { background: #fff; }
.xpan-feature {
    display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: 24px; overflow: hidden;
    background: linear-gradient(135deg, #0b1f4d, #1d4ed8); color: #fff; box-shadow: var(--shadow-md); margin-bottom: 64px;
}
.xpan-media { position: relative; padding: 50px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.35), transparent 60%); }
.xpan-glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.5), transparent 70%); filter: blur(20px); }
.xpan-logo { position: relative; font-size: 44px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 30px rgba(34,211,238,.8); }
.xpan-tag { position: relative; margin-top: 14px; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.7); }
.xpan-badge { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); padding: 5px 16px; border-radius: 999px; font-size: 12px; letter-spacing: 2px; }
.xpan-info { padding: 46px 50px; }
.xpan-eyebrow { color: var(--cyan-400); font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.xpan-info h3 { color: #fff; font-size: 30px; margin: 8px 0 14px; }
.xpan-desc { color: rgba(255,255,255,.86); font-size: 15.5px; margin-bottom: 22px; }
.xpan-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 22px; }
.xpan-feat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; }
.xpan-feat .xf-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.xpan-feat p { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.55; }
.xpan-scenes { display: flex; flex-wrap: wrap; gap: 10px; }
.xpan-scenes span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 13px; }

.sub-title { font-size: 22px; font-weight: 800; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.sub-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--blue-600), var(--cyan-400)); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    background: var(--bg-card); border: 1px solid #eef2f9; border-radius: var(--radius); padding: 26px 22px;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.pc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); margin-bottom: 16px; }
.product-card h4 { font-size: 16px; margin-bottom: 10px; min-height: 44px; }
.product-card p { font-size: 13.5px; color: var(--ink-500); }

/* ===== 联系我们 ===== */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.info-ico {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; color: var(--blue-600);
    background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(34,211,238,.14));
}
.info-ico svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 15px; margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--ink-500); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 13px 16px; margin-bottom: 14px; border: 1px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; font-family: inherit; color: var(--ink-700); background: #fbfdff; transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; }
.form-tip { margin-top: 12px; color: #16a34a; font-weight: 600; font-size: 14px; text-align: center; }

/* ===== 页脚 ===== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.8); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 40px 24px; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: rgba(255,255,255,.78); font-size: 14px; }
.footer-nav a:hover { color: var(--cyan-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .xpan-feature { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-cta { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; padding: 14px 24px; box-shadow: 0 12px 30px rgba(15,23,42,.12);
    }
    .nav-links.open a { color: var(--ink-700); padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
    .nav-toggle { display: flex; }
    .site-header.scrolled .nav-links.open a { color: var(--ink-700); }
}
@media (max-width: 560px) {
    .about-feats { grid-template-columns: 1fr; }
    .xpan-feats { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .section { padding: 70px 0; }
}
