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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ====== 背景 ====== */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #CBD5E1 0.6px, transparent 0.6px);
    background-size: 32px 32px;
    opacity: 0.35;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.04) 0%, transparent 70%);
}

/* ====== 导航 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
}

    .navbar .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 4px;
}

    .nav-links a {
        padding: 8px 16px;
        font-size: 14px;
        color: #64748B;
        border-radius: 8px;
        transition: all 0.2s;
    }

        .nav-links a:hover {
            color: #2563EB;
            background: #EFF6FF;
        }

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

    .btn-primary:hover {
        box-shadow: 0 4px 16px rgba(37,99,235,0.35);
        transform: translateY(-1px);
    }

.btn-ghost {
    background: transparent;
    color: #475569;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-ghost:hover {
        background: #F1F5F9;
        color: #2563EB;
    }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ====== Hero ====== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:url('../picture/pgbg.jpg') no-repeat top center;
    background-size:100% auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    font-size: 14px;
    color: #2563EB;
    font-weight: 500;
    margin-bottom: 32px;
}

    .hero-badge span {
        width: 8px;
        height: 8px;
        background: #2563EB;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

    .hero h1 .gradient {
        background: linear-gradient(135deg, #2563EB, #0EA5E9);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero p {
    font-size: 18px;
    color: #64748B;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

    .hero-stats .num {
        font-size: 36px;
        font-weight: 700;
        color: #2563EB;
        line-height: 1;
    }

    .hero-stats .label {
        font-size: 14px;
        color: #94A3B8;
        margin-top: 6px;
    }

/* 粒子画布 */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, #F8FAFC);
    pointer-events: none;
}

/* ====== 通用区块 ====== */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

    .section-header .accent {
        width: 40px;
        height: 4px;
        background: linear-gradient(90deg, #2563EB, #0EA5E9);
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    .section-header h2 {
        font-size: 36px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 16px;
        color: #64748B;
        max-width: 520px;
        margin: 0 auto;
    }

/* ====== 品类 ====== */
.category {
    margin-bottom: 64px;
}

    .category:last-child {
        margin-bottom: 0;
    }

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

    .category-title .icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .category-title h3 {
        font-size: 26px;
        font-weight: 700;
        color: #1E293B;
    }

    .category-title .desc {
        font-size: 14px;
        color: #94A3B8;
    }

    .category-title .count {
        margin-left: auto;
        font-size: 12px;
        color: #94A3B8;
        background: #F1F5F9;
        padding: 4px 12px;
        border-radius: 999px;
    }

/* ====== 1大4小 网格 ====== */
.product-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 16px;
}

.product-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ====== 卡片 ====== */
.card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card:hover {
        box-shadow: 0 8px 25px rgba(37,99,235,0.08), 0 4px 12px rgba(15,23,42,0.04);
        border-color: #BFDBFE;
        transform: translateY(-4px);
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #2563EB, #0EA5E9, #06B6D4);
        opacity: 0;
        transition: opacity 0.35s;
        border-radius: 12px 12px 0 0;
    }

    .card:hover::before {
        opacity: 1;
    }

.card {
    position: relative;
}

.card-img {
    overflow: hidden;
    background: linear-gradient(135deg, #F1F5F9, #E8EDF3);
    flex-shrink: 0;
}

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.card:hover .card-img img {
    transform: scale(1.05);
}

/* 大卡片 */
.card-large .card-img {
    aspect-ratio: 3/3;
}

.card-large .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-large .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.card-large h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    transition: color 0.2s;
}

.card:hover h4 {
    color: #2563EB;
}

.card-large .subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.card-large .usage {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-large .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* 小卡片 */
.card-small .card-img {
    aspect-ratio: 16/10;
}

.card-small .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-small h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover h4 {
    color: #2563EB;
}

.card-small .subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin: 4px 0 8px;
}

.card-small .usage {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

.card-small .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.tag-blue {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #DBEAFE;
}

/* ====== 生态架构 ====== */
.ecosystem-svg {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.layer-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

    .layer-card:hover {
        box-shadow: 0 4px 16px rgba(15,23,42,0.06);
        transform: translateY(-2px);
    }

.layer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.layer-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 12px;
}

.layer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .layer-tags span {
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
    }

/* ====== 解决方案 ====== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.solution-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.35s;
    cursor: pointer;
}

    .solution-card:hover {
        box-shadow: 0 8px 25px rgba(37,99,235,0.06);
        border-color: #BFDBFE;
        transform: translateY(-3px);
    }

.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.solution-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.solution-card:hover h4 {
    color: #2563EB;
}

.solution-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 16px;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: #94A3B8;
    font-weight: 500;
    transition: color 0.2s;
}

.solution-card:hover .solution-link {
    color: #2563EB;
}

/* ====== 页脚 ====== */
footer {
    background: #fff;
    border-top: 1px solid #E2E8F0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 56px 0;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #64748B;
    padding: 5px 0;
    transition: color 0.2s;
}

    .footer-col a:hover {
        color: #2563EB;
    }

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94A3B8;
}

    .footer-bottom a {
        color: #94A3B8;
        margin-left: 20px;
        transition: color 0.2s;
    }

        .footer-bottom a:hover {
            color: #64748B;
        }

/* ====== 滚动显示动画 ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero p {
            font-size: 16px;
        }

    .section-header h2 {
        font-size: 28px;
    }

    .product-row {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* 移动菜单 */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    padding: 12px;
}

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav a {
        display: block;
        padding: 12px 16px;
        color: #475569;
        font-size: 14px;
        border-radius: 8px;
    }

        .mobile-nav a:hover {
            background: #EFF6FF;
            color: #2563EB;
        }
