/* Why Choose Slider Styles */
.why-choose-slider-container {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.why-choose-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.why-choose-card-new {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.why-choose-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-choose-card-new:hover .card-image-box img {
    transform: scale(1.1);
}

.card-content-new {
    padding: 20px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.card-title-new {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-plus-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-choose-card-new:hover .card-plus-btn {
    background: #e60012;
    color: #fff;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.control-btn:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

@media (max-width: 1024px) {
    .why-choose-card-new {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .why-choose-card-new {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .why-choose-card-new {
        flex: 0 0 100%;
    }
}



/* Category Carousel Styles */
.category-banner-section {
    padding: 20px 0;
    background-color: #fff;
}

.category-carousel {
    width: 100%;
    aspect-ratio: 2.8 / 1;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.category-carousel .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.category-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-carousel .carousel-prev,
.category-carousel .carousel-next {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.category-carousel .carousel-prev:hover,
.category-carousel .carousel-next:hover {
    background: var(--primary-color);
    color: #fff;
}

.category-carousel .carousel-prev {
    left: 20px;
}

.category-carousel .carousel-next {
    right: 20px;
}

.category-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.category-carousel .dot {
    width: 15px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.category-carousel .dot.active {
    width: 35px;
    background-color: rgba(0, 0, 0, 0.2);
}

.category-carousel .dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
}

.category-carousel .dot.active::after {
    width: 100%;
    transition: width 5s linear;
}

/* Series Header Styles */
.series-header h2 .more-link {
    float: right;
    font-size: 16px;
    font-weight: normal;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.series-header h2 .more-link:hover {
    color: var(--primary-color);
}
/* 修复移动端轮播图宽度溢出问题 */
@media (max-width: 768px) {
    .category-carousel {
        aspect-ratio: 4 / 3;
        /* 在移动端改用更合适的 16:9 比例 */
        min-height: 200px;
        /* 降低移动端的最小高度限制 */
    }
}