﻿.slider-container {
    position: relative;
    width: 100%;
    /*height: auto;
    min-height: 300px;*/ /* 设置最小高度避免过小 */
    /*max-height: 480px;*/ /* 保持最大高度限制 */
    padding-top: 36.5%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #003366;
}

/* 轮播轨道 */
.slider-track {
    position: absolute; /* 绝对定位，覆盖整个容器 */
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    /*transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
}

/* 单个幻灯片 */
.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide {
    display: block; /* 让 a 标签变成块级元素 */
    width: 100%;
    height: 100%;
    text-decoration: none; /* 去掉下划线 */
    cursor: pointer;
}
/* 幻灯片内容 */
.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    background:none;
    border-radius: 10px;
    backdrop-filter: blur(3px);
    animation: fadeInUp 1s ease-out;
}

.slide-title {
    font-size: 3.0rem;
    color:white;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #413aa4, #06b590);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(6, 181, 144, 0.3);
}

    .slide-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(6, 181, 144, 0.4);
    }

/* 导航按钮 */
.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor:pointer;
    transition: all 0.3s ease;
}

    .nav-dot.active {
        background: white;
        transform: scale(1.2);
    }

/* 左右箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .slider-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .slider-arrow.prev {
        left: 20px;
    }

    .slider-arrow.next {
        right: 20px;
    }

    .slider-arrow i {
        color: white;
        font-size: 1.5rem;
    }
.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 或 contain（保持完整比例，可能留白） */
}
/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .slider-container {
        height: 48vh;
        min-height:300px;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 40vh; /* 移动端进一步降低高度 */
        min-height: 200px;
    }
    /*.slider-container {
        position: relative;
        width: 100%;*/
        /*height: auto;
    min-height: 300px;*/ /* 设置最小高度避免过小 */
        /*max-height: 480px;*/ /* 保持最大高度限制 */
        /*padding-top: 36.5%;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        background: #003366;
    }*/
    .slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .slide-title {
        font-size: 1.8rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slide-content {
        padding: 20px;
        margin: 0 20px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    /* 调整按钮大小 */
    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 30vh; /* 移动端进一步降低高度 */
        min-height: 150px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.9rem;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
