/* ========================================
   产品中心页样式
   商务风格 · 专业设计
   ======================================== */

/* ========== 页面标题 ========== */
.page-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0F172A 100%);
    color: white;
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* ========== 产品分类导航 ========== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.tab-btn {
    padding: 12px 32px;
    border: 2px solid #E2E8F0;
    background: white;
    color: #64748B;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-color: #3B82F6;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ========== 产品列表 ========== */
.products-section {
    padding: 100px 0;
    background: #F8FAFC;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.product-content {
    padding: 28px;
}

.product-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
}

.product-content p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563EB;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #1D4ED8;
    gap: 10px;
}

/* ========== 产品详情弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    padding: 40px;
    text-align: center;
}

.modal-header h2 {
    font-size: 26px;
    color: white;
    margin-bottom: 8px;
}

.modal-body {
    padding: 40px;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 16px;
    margin-top: 28px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: #64748B;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    color: #64748B;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-radius: 50%;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .product-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
