/* ===== 轮播区块 ===== */
.carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 1920 / 800;
}

@media (min-width: 768px) {
    .carousel-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 1920 / 800;
        max-height: 800px;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .carousel-wrapper {
        width: 100vw;
        height: 60vh;
        max-width: 100vw;
        max-height: 60vh;
        aspect-ratio: auto;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .carousel-wrapper {
        width: 100vw;
        height: auto;
        aspect-ratio: 1920 / 800;
        max-height: 100vh;
    }
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2c2c2c;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文案 */
.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0);
    border-radius: 20px;
}

.slide-caption h2 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.slide-caption p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .slide-caption {
        width: 88%;
        padding: 12px 16px;
        background: rgba(0, 0, 0, 0);
    }
    .slide-caption h2 {
        font-size: 1.8rem;
    }
    .slide-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .slide-caption h2 {
        font-size: 1.4rem;
    }
    .slide-caption p {
        font-size: 0.8rem;
    }
}

/* 控制按钮 */
.carousel-controls {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.carousel-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.carousel-controls .dot.active {
    background: #ffffff;
    border-color: #ffffff;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
    user-select: none;
}

.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.arrow-left { left: 12px; }
.arrow-right { right: 12px; }

@media (max-width: 768px) {
    .arrow-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .arrow-left { left: 8px; }
    .arrow-right { right: 8px; }
    .carousel-controls .dot {
        width: 10px;
        height: 10px;
    }
}   
/* ===== 轮播区块 ===== */
