
.carousel-container {
    width: 100vw;
    height: 360px;
    margin:  0 auto;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* 注意：这里的 transition 可以移除或保留，Animate.css 会覆盖它 */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.active {
    opacity: 1; /* 动画结束后保持可见 */
}

/* 步骤 2: 移除了所有自定义的动画类和 @keyframes */

/* 控制按钮样式保持不变 */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.control-btn.active {
    background: rgba(255, 255, 255, 1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 36px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.animation-name {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
