/* product.css - 产品中心专用样式 */

/* 页面特定样式 */
.product-body {
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
}
                .toHeader {
                    margin-top: 70px;
                }

/* 产品横幅 */
.product-banner {
    background: linear-gradient(135deg, #1a56a7 0%, #4a90e2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/html/static/product-banner-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.product-banner .container {
    position: relative;
    z-index: 2;
}

.product-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-banner p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* 产品分类导航 */
.product-categories {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 68px;
    z-index: 999;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 12px 25px;
    background: white;
    border: 1px solid #e8f2ff;
    border-radius: 10px;
    /* color: #1a56a7; */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #c2d7f3, #4a90e2);
    color: white;
    /* border-color: transparent; */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 86, 167, 0.3);
}

/* 产品展示区域 */
.product-showcase {
    padding: 20px 0;
}

.product-section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a56a7;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.product-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a56a7, #4a90e2);
    margin: 20px auto 0;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #e8f2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .placeholder-icon {
    font-size: 80px;
    color: #4a90e2;
    opacity: 0.3;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.product-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-features {
    margin-bottom: 20px;
}

.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #5d6d7e;
    font-size: 13px;
}

.product-feature::before {
    content: '✓';
    color: #27ae60;
    margin-right: 8px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 700;
}

.product-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a56a7, #4a90e2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.product-btn:hover {
    background: linear-gradient(135deg, #4a90e2, #1a56a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 86, 167, 0.3);
}


/* 联系我们区域 */
/* 
.product-contact {
    padding: 80px 0;
    background: white;
}

.product-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #e8f2ff);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 40px;
    color: #1a56a7;
    margin-bottom: 20px;
    display: inline-block;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.contact-card p {
    color: #7f8c8d;
    margin: 0;
} */

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .product-body {
        padding-top: 70px;
    }

    .product-banner {
        padding: 60px 0;
    }

    .product-banner h1 {
        font-size: 36px;
    }

    .product-banner p {
        font-size: 18px;
    }

    .category-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .category-btn {
        width: 200px;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-banner h1 {
        font-size: 28px;
    }

    .product-banner p {
        font-size: 16px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .product-btn {
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.feature-item,
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* 滚动到分类的动画 */
@keyframes highlightCategory {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.category-btn.highlight {
    animation: highlightCategory 0.6s ease;
}