﻿.container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
}

/* 轮播组件 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    overflow: hidden;
    --carousel-background: url('https://picsum.photos/id/1015/1920/500');
    background: var(--carousel-background) center/cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    padding: 20px;
    backdrop-filter: blur(8px);
}

.carousel-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    z-index: 0;
}

/* 轮播轨道 */
.carousel-track {
    display: flex;
    animation: carousel-slide 30s linear infinite;
    position: relative;
    z-index: 1;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* 轮播项 */
.carousel-item {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    margin: 0 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-in-out;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.1);
}

.carousel-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.4));
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item:hover .carousel-caption {
    opacity: 1;
}

/* 动画关键帧 */
@keyframes carousel-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5 - 8px * 4)); }
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 32px;
    color: #333333;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title p {
    max-width: 500px;
    margin: 0 auto;
}
