.product-container {
    max-width: 1680px;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    margin: 0 auto
}

.product-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-header p {
    color: #7f8c8d;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 滑动门分类导航样式 */
.category-container {
    position: relative;
    width: 100%;
    margin: 0 auto 40px;
    background-color: #f1f3f5;
    border-radius: 30px;
    padding: 5px;
    height: 50px;
    display: flex;
    overflow: hidden;
}

.category-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    position: relative;
    z-index: 1;
    height: 100%;
    flex: 1;
    font-size: 16px;
    border-radius: 25px;
}

.sliding-door {
    position: absolute;
    top: 5px;
    left: 5px;
    height: 40px;
    background: linear-gradient(135deg, #31C2F6, #2a9de0);
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 0;
}

.category-slide.active {
    color: white;
    font-weight: 600;
}

/* 产品展示样式 */
.product-container {
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    transition: opacity 0.5s ease;
    position: relative;
    min-height: 400px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: none;
}
.product-card.active {
    display: flex; /* 只显示激活分类的产品 */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 14px;
    color: #31C2F6;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.product-card:hover .product-title {
    color: #31C2F6;
}

.product-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-top: auto;
}

/* 控制面板 */
.control-panel {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.control-btn {
    padding: 10px 20px;
    background: #31C2F6;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.control-btn:hover {
    background: #2a9de0;
    transform: translateY(-2px);
}

/* 自动切换指示器 */
.auto-switch-indicator {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(49, 194, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background-color: #31C2F6;
    transform: scale(1.3);
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
}

/* 响应式调整 */
@media (max-width: 1680px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-slide {
        padding: 0 15px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .category-slide {
        padding: 0 10px;
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .control-panel {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 15px;
    }
}