/* 商品卡片美化样式 */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-title {
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    color: var(--bs-body-color);
}

.product-title:hover {
    color: #0d6efd !important;
    text-shadow: none;
}

/* 暗色模式下的标题颜色 */
[data-bs-theme="dark"] .product-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .product-title:hover {
    color: #6ea8fe !important;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
    border-radius: 6px;
}

.product-card img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.fs-xs {
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
}

/* 轮播导航按钮样式 */
.carousel-nav-btn {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-50%) scale(0.9) !important;
    z-index: 10 !important;
    top: 50% !important;
    margin-top: 0 !important;
}

.carousel-nav-btn.swiper-button-prev {
    left: 15px !important;
}

.carousel-nav-btn.swiper-button-next {
    right: 15px !important;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.carousel-nav-btn::after {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.carousel-nav-btn:hover::after {
    color: #0d6efd !important;
}

/* 暗色模式下的导航按钮 */
[data-bs-theme="dark"] .carousel-nav-btn {
    background: rgba(33, 37, 41, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .carousel-nav-btn:hover {
    background: rgba(33, 37, 41, 1) !important;
}

[data-bs-theme="dark"] .carousel-nav-btn::after {
    color: #fff !important;
}

[data-bs-theme="dark"] .carousel-nav-btn:hover::after {
    color: #6ea8fe !important;
}

/* 轮播整体区域悬停效果 */
.carousel-hero-section {
    position: relative;
}

.carousel-hero-section:hover .swiper-button-prev.carousel-nav-btn,
.carousel-hero-section:hover .swiper-button-next.carousel-nav-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) scale(1) !important;
}

/* 移动端按钮样式调整 */
@media (max-width: 768px) {
    .carousel-nav-btn {
        width: 35px !important;
        height: 35px !important;
        opacity: 0.8 !important;
        visibility: visible !important;
        transform: translateY(-50%) scale(1) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .carousel-nav-btn.swiper-button-prev {
        left: 8px !important;
    }
    
    .carousel-nav-btn.swiper-button-next {
        right: 8px !important;
    }
    
    .carousel-nav-btn::after {
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    
    .carousel-nav-btn:hover {
        opacity: 1 !important;
        transform: translateY(-50%) scale(1) !important;
    }
    
    /* 移动端暗色模式 */
    [data-bs-theme="dark"] .carousel-nav-btn {
        background: rgba(33, 37, 41, 0.95) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* 移动端不需要悬停隐藏效果，始终显示 */
    .carousel-hero-section .carousel-nav-btn {
        opacity: 0.8 !important;
        visibility: visible !important;
        transform: translateY(-50%) scale(1) !important;
    }
}

/* 中等屏幕调整按钮位置和尺寸 */
@media (min-width: 769px) and (max-width: 1199px) {
    .carousel-nav-btn.swiper-button-prev {
        left: 10px !important;
    }
    
    .carousel-nav-btn.swiper-button-next {
        right: 10px !important;
    }
    
    .carousel-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .carousel-nav-btn::after {
        font-size: 12px !important;
    }
} 