/**
 * Hero 轮播图模块样式
 */

.hero-carousel-module {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide-text {
    text-align: left;
    color: #fff;
    padding: 20px;
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 30px 0;
    color: #fff;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.slide-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 40px 0;
    color: #fff;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.slide-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.slide-button:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    color: #fff;
}

.slide-button:active {
    transform: translateY(0);
}

/* 导航箭头 - 左下角 */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    right: 90px; /* 在 next 按钮左侧 */
}

.carousel-next {
    right: 30px;
}

/* 指示器 - 隐藏 */
.carousel-indicators {
    display: none;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

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

.indicator.active {
    background-color: #fff;
    border-color: #fff;
    width: 32px;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .carousel-container {
        height: 500px;
    }

    .slide-title {
        font-size: 44px;
    }

    .slide-subtitle {
        font-size: 20px;
    }

    .carousel-prev {
        right: 80px; /* 在 next 按钮左侧 */
        bottom: 20px;
    }

    .carousel-next {
        right: 20px;
        bottom: 20px;
    }

    .carousel-indicators {
        right: 150px; /* 在导航按钮左侧 */
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 450px;
    }

    .slide-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .slide-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .slide-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .carousel-prev {
        right: 75px; /* 在 next 按钮左侧 */
        bottom: 20px;
    }

    .carousel-next {
        right: 15px;
        bottom: 20px;
    }

    .carousel-indicators {
        right: 140px; /* 在导航按钮左侧 */
        bottom: 20px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 400px;
    }

    .slide-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-text {
        padding: 15px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev {
        right: 65px; /* 在 next 按钮左侧 */
        bottom: 15px;
    }

    .carousel-next {
        right: 10px;
        bottom: 15px;
    }

    .carousel-indicators {
        right: 120px; /* 在导航按钮左侧 */
        bottom: 15px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide.active .slide-text {
    animation: fadeIn 0.8s ease-in-out;
}
