/**
 * 自定义 Nivo Slider 样式
 * 模拟原版 Nivo Slider 的视觉效果
 */

/* 基础 Nivo Slider 样式 */
.nivoSlider {
    position: relative;
    background: #000;
    overflow: hidden;
}

.nivoSlider img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    border: 0;
    display: none;
}

.nivoSlider .nivo-main-image {
    display: block !important;
    position: relative;
}

.nivoSlider .nivo-slice {
    display: block;
    position: absolute;
    z-index: 5;
    height: 100%;
    top: 0;
    background-repeat: no-repeat;
}

.nivoSlider .nivo-box {
    display: block;
    position: absolute;
    z-index: 5;
    overflow: hidden;
    background-repeat: no-repeat;
}

/* 方向导航样式 */
.nivoSlider .nivo-directionNav a {
    position: absolute;
    top: 50%;
    z-index: 9;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-indent: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nivoSlider .nivo-directionNav a:hover {
    background: rgba(0, 78, 146, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nivoSlider .nivo-prevNav {
    left: 25px;
}

.nivoSlider .nivo-nextNav {
    right: 25px;
}

/* 控制导航样式 */
.nivoSlider .nivo-controlNav {
    position: absolute;
    left: 50%;
    bottom: 25px;
    z-index: 9;
    transform: translateX(-50%);
    text-align: center;
}

.nivoSlider .nivo-controlNav a {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    text-indent: -9999px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.nivoSlider .nivo-controlNav a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.nivoSlider .nivo-controlNav a.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* HTML Caption 样式 */
.nivo-html-caption {
    display: none;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
    color: white;
}

/* 轮播图内容样式 */
.slider-content {
    text-align: left;
}

.slider-title {
    font-size: 57px;
    color: #ffff00;
    font-family: "Microsoft YaHei";
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: slideInLeft 1s ease-out;
}

.slider-subtitle {
    font-size: 35px;
    color: #ffffff;
    font-family: "Microsoft YaHei";
    font-weight: bold;
    margin: 0 0 30px 0;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.slider-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.slider-buttons .btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-family: "Microsoft YaHei";
    font-size: 15px;
    font-weight: normal;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffff00;
    color: #ffff00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3);
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {

    .slider-wrapper,
    #home-slider,
    .nivoSlider {
        width: 100%;
        max-width: 1200px;
    }

    .slider-title {
        font-size: 42px;
    }

    .slider-subtitle {
        font-size: 28px;
    }

    .nivo-html-caption {
        max-width: 500px;
    }
}

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

    .slider-wrapper,
    #home-slider,
    .nivoSlider {
        height: 400px;
    }

    .slider-title {
        font-size: 28px;
    }

    .slider-subtitle {
        font-size: 18px;
    }

    .slider-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nivo-html-caption {
        padding: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .nivoSlider .nivo-directionNav a {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .nivoSlider .nivo-prevNav {
        left: 15px;
    }

    .nivoSlider .nivo-nextNav {
        right: 15px;
    }
}

/* 首页其他内容区域 */
.home-content {
    min-height: 500px;
    background-color: #ffffff;
    padding: 40px 0;
}

.home-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}