/* 整站 WebGL 舞台 — fx-v3 定调 */

.gl-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(80% 70% at 60% 40%, rgba(167, 139, 250, 0.12) 0%, transparent 55%),
        radial-gradient(70% 60% at 30% 70%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        linear-gradient(165deg, #f4f6fa 0%, #e8eef6 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 28px 60px -28px rgba(51, 65, 85, 0.28);
}

.gl-stage[data-size="hero"] {
    min-height: 420px;
    border-radius: 32px;
}

.gl-stage .gl-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.85s ease;
    z-index: 2;
}

.gl-stage.gl-ready .gl-canvas {
    opacity: 1;
}

.gl-stage .gl-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.6s ease;
}

.gl-stage.gl-ready .gl-fallback {
    opacity: 0;
    pointer-events: none;
}

.gl-stage.gl-static .gl-fallback {
    opacity: 1;
}

.gl-stage .gl-fallback img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* 不用 drop-shadow，避免 Logo 边缘出现重影/灰边 */
    filter: none;
}

.gl-stage.gl-card-still {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: none;
}

.gl-stage.gl-card-still .gl-card-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none !important;
    box-shadow: none !important;
    display: block;
}

/* 首页 hero 与 v3 对齐微调 */
.hero.hero-award.hero-gl-v3 {
    padding: 5rem 0 5.25rem;
    background:
        radial-gradient(100% 80% at 78% 40%, rgba(147, 197, 253, 0.18) 0%, transparent 55%),
        radial-gradient(70% 60% at 15% 25%, rgba(226, 232, 240, 0.95) 0%, transparent 50%),
        linear-gradient(180deg, #fbfcfe 0%, #eef3f9 52%, #e7eef6 100%);
}

.hero.hero-award.hero-gl-v3 .hero-stage {
    min-height: 440px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero.hero-award.hero-gl-v3 .hero-brand-line {
    letter-spacing: 0.12em;
    font-weight: 500;
    color: #64748b;
}

.hero.hero-award.hero-gl-v3 .hero-award-title {
    letter-spacing: -0.02em;
}

.hero.hero-award.hero-gl-v3 .hero-btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 10px 28px -12px rgba(59, 130, 246, 0.65);
}

.hero.hero-award.hero-gl-v3 .hero-btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #334155;
}

/* 精选产品卡 — 舞台感 */
.products-section.products-gl-v3 {
    padding-top: 4.25rem;
    padding-bottom: 4.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.products-section.products-gl-v3 > .container {
    max-width: 1320px;
}

/* 桌面端强制一排五卡，统一卡片节奏 */
.products-section.products-gl-v3 .products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2.25rem;
    align-items: stretch;
}

.products-section.products-gl-v3 .product-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 16px 36px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-section.products-gl-v3 .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.08);
}

.products-section.products-gl-v3 .product-image {
    position: relative;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    background: #eef2f7;
    overflow: hidden;
    flex-shrink: 0;
}

.products-section.products-gl-v3 .product-image .gl-stage,
.products-section.products-gl-v3 .product-image .gl-card-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.products-section.products-gl-v3 .product-image > img.gl-card-static,
.products-section.products-gl-v3 .product-image img.gl-card-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.products-section.products-gl-v3 .product-content {
    padding: 1.15rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.products-section.products-gl-v3 .product-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section.products-gl-v3 .product-description {
    font-size: 0.82rem;
    color: #6e6e73;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 固定两行高度，避免长短文案导致按钮错位 */
    height: calc(0.82rem * 1.45 * 2);
    margin: 0;
    flex: 0 0 auto;
}

.products-section.products-gl-v3 .product-meta--minimal {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
}

.products-section.products-gl-v3 .product-actions {
    margin-top: auto !important;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.products-section.products-gl-v3 .product-actions .btn,
.products-section.products-gl-v3 .product-actions .btn-download,
.products-section.products-gl-v3 .product-actions a.btn {
    flex: 1 1 0;
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    min-height: 2.35rem;
    height: 2.35rem;
    line-height: 1.2;
    border-radius: 9999px !important;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.products-section.products-gl-v3 .product-actions .btn:active,
.products-section.products-gl-v3 .product-actions .btn-download:active,
.products-section.products-gl-v3 .product-actions a.btn:active {
    transform: scale(0.96);
}

.products-section.products-gl-v3 .product-actions .btn-primary {
    background: #0071e3 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.products-section.products-gl-v3 .product-actions .btn-primary:hover {
    background: #0077ed !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.products-section.products-gl-v3 .product-actions .btn-download,
.products-section.products-gl-v3 .product-actions .btn-download {
    background: #1d1d1f !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-section.products-gl-v3 .product-actions .btn-download:hover {
    background: #000000 !important;
}

.products-section.products-gl-v3 .product-actions .btn-download,
.products-section.products-gl-v3 .product-actions .download-dropdown-container,
.products-section.products-gl-v3 .product-actions .btn-ghost-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.products-section.products-gl-v3 .product-actions .download-dropdown-container {
    display: flex;
    align-items: stretch;
    position: relative;
}

.products-section.products-gl-v3 .product-actions .download-dropdown-container .btn {
    width: 100%;
    height: 2.35rem;
    min-height: 2.35rem;
}

.products-section.products-gl-v3 .product-actions .btn-ghost-slot {
    visibility: hidden;
    pointer-events: none;
    border: 1px solid transparent;
    background: transparent !important;
}

.products-section.products-gl-v3 .download-dropdown-menu {
    z-index: 60;
}

.products-section .product-image,
.products-section.products-gl-v3 .product-image {
    position: relative !important;
    overflow: hidden;
}

.products-section .featured-badge,
.products-section .featured-badge--quiet,
.products-section.products-gl-v3 .featured-badge,
.products-section.products-gl-v3 .featured-badge--quiet {
    position: absolute !important;
    top: 13px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 6 !important;
    display: inline-block !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.04em !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none;
    margin: 0 !important;
}

.products-section.products-gl-v3 .btn-download,
.products-section .btn-download {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.products-section.products-gl-v3 .btn-download:hover,
.products-section .btn-download:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

@media (max-width: 1180px) {
    .products-section.products-gl-v3 .products-grid {
        gap: 0.75rem;
    }

    .products-section.products-gl-v3 .product-title {
        font-size: 0.95rem;
    }

    .products-section.products-gl-v3 .product-actions .btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.3rem;
    }
}

@media (max-width: 900px) {
    .products-section.products-gl-v3 .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .products-section.products-gl-v3 .product-actions {
        flex-wrap: wrap;
    }

    .products-section.products-gl-v3 .product-actions .btn,
    .products-section.products-gl-v3 .product-actions .btn-download {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .products-section.products-gl-v3 .product-actions .btn-ghost-slot {
        display: none;
    }
}

@media (max-width: 560px) {
    .products-section.products-gl-v3 .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 二级页通用轻量 hero */
.page-hero-gl {
    position: relative;
    overflow: hidden;
    padding: 3.75rem 0 3.25rem;
    text-align: center;
    color: #1d1d1f;
    background:
        radial-gradient(90% 70% at 75% 40%, rgba(147, 197, 253, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #fbfcfe 0%, #eef3f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-hero-gl__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #86868b;
}

.page-hero-gl__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
}

.page-hero-gl__lead {
    margin: 0 auto;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6e6e73;
}

/* 产品详情页 hero */
.product-gl-hero {
    position: relative;
    overflow: hidden;
    color: #1d1d1f;
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(90% 70% at 75% 40%, rgba(147, 197, 253, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #fbfcfe 0%, #eef3f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.product-gl-hero .product-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    color: #1d1d1f;
}

.product-gl-hero .product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-gl-hero .product-title-large {
    margin: 0 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #1d1d1f;
}

.product-gl-hero .product-subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: #6e6e73;
    line-height: 1.6;
}

.product-gl-hero .product-hero-stage {
    min-height: 420px;
}

.product-gl-hero .download-hero-btn {
    background: #0071e3 !important;
    color: #fff !important;
    border: none;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28) !important;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-gl-hero .download-hero-btn:hover {
    background: #0077ed !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35) !important;
    transform: translateY(-1px);
}

.product-gl-hero .download-hero-btn:active {
    background: #0062c4 !important;
    transform: scale(0.97) !important;
}

.product-gl-hero .feature-item-inline--meta {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
}

@media (max-width: 900px) {
    .hero.hero-award.hero-gl-v3 .hero-award-grid,
    .product-gl-hero .product-hero {
        grid-template-columns: 1fr;
    }

    .gl-stage[data-size="hero"],
    .product-gl-hero .product-hero-stage {
        min-height: 320px;
    }
}
