/* 统一背景样式 - 以News.html为参照 */
.hero-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    background-size: 400% 400%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/product/background.webp') center/cover;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.8) 50%, rgba(26, 188, 156, 0.8) 100%);
}

.banner-titles {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.banner-titles h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-titles h2 {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }
    
    .banner-titles h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .banner-titles h2 {
        font-size: 1.6rem;
    }
}

/* 核心分类导航样式 */
.product-categories {
    padding: 60px 0;
    background: #f9f9f9;
}

.body-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card.wide {
    flex: 1;
}

.card-icon {
    height: 240px;
    min-height: 240px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

/* 悬停时图片效果 */
.category-card:hover .card-icon {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.card-content {
    padding: 20px;
    position: relative;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.5em;
}

.card-content p {
    margin: 0;
    color: #666;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 1.2em;
    color: #0066cc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-icon {
        height: 200px;
        min-height: 200px;
    }
    
    .category-card.wide .card-icon {
        height: 240px;
        min-height: 240px;
    }
    
    .category-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-card {
        flex: none;
    }
}

/* 宽卡片的图片高度更大 */
.category-card.wide .card-icon {
    height: 260px;
    min-height: 260px;
}

/* 产品中心页面样式 */

/* 产品网格容器 */
.products-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(42, 127, 186, 0.12);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image-link:hover {
    text-decoration: none;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 600;
}

.product-info p {
    margin: 0 0 15px;
    color: #718096;
    line-height: 1.5;
    font-size: 0.95rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid-container {
        padding: 0 15px 40px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-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; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1s; }

a.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* 保证悬停时也无下划线 */
a.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 让卡片本身在a内也有悬停效果 */
a.product-card-link .product-card:hover {
    box-shadow: 0 8px 24px rgba(52,152,219,0.15);
    transform: translateY(-5px) scale(1.03);
    transition: all 0.3s;
}