/* ====== 首页专用样式 v2 ====== */

/* 首页产品网格：4列 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f2f6fd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 74, 173, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.product-content {
    padding: 0.8rem 0.85rem 1rem;
}

.product-card .product-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    margin: 0 0 0.45rem;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.product-summary {
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 服务图标区域 */
.service-item .service-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* 合作伙伴占位 */
.partner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 0.5rem;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #f2f6fd;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.partner-placeholder:hover {
    background: #fff;
    border-color: #c90026;
    color: #0b4aad;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* 关于我们区块 */
.about-img img {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-content {
        padding: 0.6rem 0.6rem 0.8rem;
    }

    .product-card .product-title {
        font-size: 0.82rem !important;
    }
}

/* 材料科普 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.knowledge-card {
    display: block;
    background: #fff;
    border: 1px solid #f2f6fd;
    border-radius: 20px;
    padding: 1.4rem 1.3rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
    border-color: transparent;
}

.knowledge-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c90026;
    background: #ffebef;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.knowledge-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.knowledge-card p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 全球客户合作展示 ===== */
.clients-showcase {
    position: relative;
    background: linear-gradient(135deg, #0b2545 0%, #07357a 100%);
    padding: 90px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.clients-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 28, 56, 0.32);
    z-index: 0;
}

/* 全球地图背景装饰层：同色系深蓝暗纹，位于遮罩之上、内容之下 */
.clients-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/world-map.svg') center/cover no-repeat;
    opacity: 0.32;
    z-index: 1;
    pointer-events: none;
}

.clients-showcase .container {
    position: relative;
    z-index: 2;
}

/* 客户图墙必须抬到地图之上 */
.client-wall {
    position: relative;
    z-index: 2;
}

.clients-showcase h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    text-align: center;
}

.clients-showcase h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    margin: 16px auto 0;
}

.clients-showcase h2 .highlight {
    color: #fff;
    background: linear-gradient(135deg, #c90026 0%, #e62e50 100%);
    padding: 0 10px;
    border-radius: 8px;
    margin: 0 4px;
    display: inline-block;
}

.clients-showcase p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.92);
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ===== 客户 logo 滚动墙 ===== */
.client-wall {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.client-marquee {
    position: relative;
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* 两侧渐入渐出 */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    padding: 14px 0;
}

.client-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: client-scroll-left var(--dur, 30s) linear infinite;
    will-change: transform;
}

.client-track.reverse {
    animation-name: client-scroll-right;
}

/* 鼠标悬停暂停，方便查看 */
.client-marquee:hover .client-track {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.client-logo:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes client-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes client-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.client-wall-empty {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 10px 0;
}

.client-wall-empty code {
    background: rgba(255,255,255,0.15);
    padding: 1px 8px;
    border-radius: 5px;
    color: #fff;
}

@media (max-width: 768px) {
    .clients-showcase {
        padding: 60px 0;
    }
    .clients-showcase h2 {
        font-size: 1.6rem;
    }
    .clients-showcase p {
        font-size: 0.95rem;
    }
    .client-logo {
        width: 160px;
        height: 112px;
        padding: 0;
    }
    .client-marquee {
        max-width: none;
        margin: 0 16px;
        border-radius: 12px;
    }
}

/* ====== 产品应用范围 ====== */
.app-scope-section {
    background: linear-gradient(135deg, #0b4aad 0%, #07357a 100%);
}

.app-scope-title {
    color: #fff !important;
}

.app-scope-title + .section-divider {
    background: var(--color-accent-light);
}

.app-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.app-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s;
    cursor: default;
}

.app-card.has-image {
    background-color: #0b3d8c;
}

.app-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,53,122,0.25) 0%, rgba(7,53,122,0.55) 100%);
    transition: background 0.35s;
}

.app-card-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: color 0.3s;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -12px rgba(0,0,0,0.4);
}

.app-card:hover .app-card-overlay {
    background: linear-gradient(180deg, rgba(201,0,38,0.35) 0%, rgba(150,0,29,0.6) 100%);
}

.app-card:hover .app-card-label {
    color: #fff;
}

@media (max-width: 768px) {
    .app-scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .app-card {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .app-scope-grid {
        grid-template-columns: 1fr;
    }
}
