/**
 * Brand Strength Carousel Styles
 * 品牌实力轮播样式
 */

/* ==================== Section Container ==================== */
.brand-carousel-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.brand-carousel-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-carousel-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==================== Header ==================== */
.brand-carousel-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.brand-carousel-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.6s ease;
    position: relative;
}

.brand-carousel-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    border-radius: 2px;
    opacity: 0.3;
}

.carousel-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 12px;
    font-weight: 400;
}

/* ==================== Carousel Wrapper ==================== */
.brand-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    z-index: 2;
}

.brand-carousel-container {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: white;
    position: relative;
}

.brand-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

.brand-carousel-item {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
}

.brand-carousel-item.active {
    opacity: 1;
    display: block;
}

.brand-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

/* ==================== Navigation Buttons ==================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #2c3e50;
    font-size: 20px;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* ==================== Indicators ==================== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.indicator-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.indicator-dot:hover::before {
    background: rgba(102, 126, 234, 0.1);
}

.indicator-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .brand-carousel-section {
        padding: 60px 0;
    }
    
    .brand-carousel-header h2 {
        font-size: 32px;
    }
    
    .carousel-subtitle {
        font-size: 16px;
    }
    
    .brand-carousel-wrapper {
        padding: 0 60px;
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .brand-carousel-section {
        padding: 50px 0;
    }
    
    .brand-carousel-header {
        margin-bottom: 40px;
    }
    
    .brand-carousel-header h2 {
        font-size: 28px;
    }
    
    .carousel-subtitle {
        font-size: 15px;
    }
    
    .brand-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .brand-carousel-item img {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .brand-carousel-section {
        padding: 40px 0;
    }
    
    .brand-carousel-header h2 {
        font-size: 24px;
    }
    
    .carousel-subtitle {
        font-size: 14px;
    }
    
    .brand-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .brand-carousel-item img {
        max-height: 300px;
    }
    
    .carousel-indicators {
        gap: 8px;
        margin-top: 30px;
    }
    
    .indicator-dot {
        width: 10px;
        height: 10px;
    }
    
    .indicator-dot.active {
        width: 26px;
    }
}

/* ==================== Loading State ==================== */
.brand-carousel-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== Accessibility ==================== */
.carousel-btn:focus,
.indicator-dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.carousel-btn:focus:not(:focus-visible),
.indicator-dot:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== Animation ==================== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-carousel-item.slide-in-right {
    animation: slideInFromRight 0.6s ease;
}

.brand-carousel-item.slide-in-left {
    animation: slideInFromLeft 0.6s ease;
}

