/* 轮播图动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播容器样式 */
.carousel-container {
    flex: 2;
    height: 400px;
    border-radius: 12px;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 轮播箭头按钮 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #667eea;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 100;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

/* 鼠标悬停时显示箭头 */
.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 400%; /* 4个slide，每个占25% */
}

.carousel-slide {
    width: 25%; /* 每个slide占25%宽度 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    box-sizing: border-box;
    flex-shrink: 0;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.carousel-slide h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    color: white;
    z-index: 1;
    position: relative;
    text-align: center;
}

.carousel-slide p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: white;
    z-index: 1;
    position: relative;
    text-align: center;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 0.4s both;
    z-index: 1;
    position: relative;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 10;
    margin: 0;
    list-style: none;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* 轮播容器响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px !important;
        margin-right: 15px;
    }
    
    .carousel-slide {
        padding: 40px;
    }
    
    .carousel-slide h2 {
        font-size: 28px !important;
        margin-bottom: 15px;
    }
    
    .carousel-slide p {
        font-size: 16px !important;
        margin-bottom: 20px;
    }
    
    .carousel-indicators {
        top: 15px;
        right: 15px;
        left: auto;
        transform: none;
    }
    
    .carousel-indicator {
        width: 30px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px !important;
        margin-right: 0;
    }
    
    .carousel-slide {
        padding: 30px;
    }
    
    .carousel-slide h2 {
        font-size: 24px !important;
        margin-bottom: 10px;
    }
    
    .carousel-slide p {
        font-size: 14px !important;
        margin-bottom: 15px;
        display: none; /* 在小屏幕上隐藏描述文字 */
    }
    
    .carousel-indicators {
        display: none; /* 在小屏幕上隐藏指示器 */
    }
}


