:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #7c3aed;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --card: #ffffff;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.1);
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    background-color: #eef3fc;
    background-image:
        radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        radial-gradient(55rem 30rem at 10% -6%, rgba(37, 99, 235, 0.24), transparent 62%),
        radial-gradient(48rem 26rem at 94% 0%, rgba(124, 58, 237, 0.22), transparent 62%),
        radial-gradient(42rem 26rem at 50% 108%, rgba(14, 165, 233, 0.2), transparent 60%),
        linear-gradient(180deg, #eef4fe 0%, #e6edfa 55%, #f1f5fd 100%);
    background-size: 22px 22px, auto, auto, auto, auto;
    background-attachment: fixed;
}

section {
    scroll-margin-top: 90px;
}

/* ---------- 导航 ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.logo::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 0.6rem;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-2px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav ul li a {
    display: inline-block;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: color 0.25s, background 0.25s;
}

nav ul li a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

/* ---------- 首屏 ---------- */
#hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    overflow: hidden;
}

#hero::before,
#hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

#hero::before {
    width: 26rem;
    height: 26rem;
    top: 12%;
    left: -8rem;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
    animation: float 14s ease-in-out infinite;
}

#hero::after {
    width: 22rem;
    height: 22rem;
    bottom: 6%;
    right: -6rem;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(2rem, -1.5rem, 0); }
}

.hero-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

#hero h1 {
    position: relative;
    z-index: 1;
    max-width: 20em;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, #0f172a 10%, #1e40af 55%, #6d28d9 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    max-width: 34rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--muted);
}

.cta-button {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
}

/* ---------- 产品 ---------- */
#products,
#certificates,
#customers,
#contact {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 4rem 5% 4.5rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
}

.section-head .section-sub {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 2.2rem 1.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.18);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.product-card h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 0.7rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- 软件著作权 ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 820px;
    margin: 0 auto;
}

.cert-card {
    margin: 0;
    padding: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.cert-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #eef2f8;
}

.cert-card figcaption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ---------- 客户 ---------- */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
}

.customer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.customer-logo img {
    max-width: 100%;
    max-height: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.customer-logo:hover img {
    transform: scale(1.06);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--primary);
}

.contact-value {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    transition: color 0.3s ease;
}

.contact-item:hover .contact-value {
    color: var(--primary);
}

/* ---------- 页脚 ---------- */
footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #94a3b8;
    background: linear-gradient(180deg, #0f172a, #0b1220);
}

footer p {
    font-size: 0.9rem;
}

footer .icp {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

footer .icp a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.25s;
}

footer .icp a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
    nav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        padding: 0.35rem 0.7rem;
        font-size: 0.9rem;
    }

    section {
        scroll-margin-top: 130px;
    }

    #hero {
        min-height: 88vh;
        padding-top: 10rem;
    }

    #products,
    #certificates,
    #customers,
    #contact {
        margin: 0 1rem 3rem;
        padding: 2.5rem 1.25rem 3rem;
        border-radius: 22px;
    }

    .customer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
