/* 高科技轮播图样式 */
.hero {
    position: relative;
    height: calc(70vh - 78px);
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

/* 鼠标移入时显示控制元素 */
.hero:hover .slider-controls,
.hero:hover .slider-arrows {
    opacity: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* 添加高科技遮罩效果 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(57, 127, 255, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* 添加动态粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(57, 127, 255, 0.6);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 1;
    }
}

/* 高科技内容样式 */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-text {
    max-width: 800px;
    position: relative;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: textEntrance 1.2s ease-out forwards;
}

@keyframes textEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-sub-title {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: subtitleEntrance 0.8s ease-out forwards 0.3s;
    opacity: 0;
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94baff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleEntrance 1s ease-out forwards 0.5s;
    opacity: 0;
    text-align: left;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    animation: textEntrance 1s ease-out forwards 0.7s;
    opacity: 0;
    text-align: left;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    min-width: 200px;
    background: linear-gradient(135deg, #397FFF, #2A69E2);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(57, 127, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: btnEntrance 0.8s ease-out forwards 0.9s;
    opacity: 0;
}

@keyframes btnEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(57, 127, 255, 0.4);
}

.hero-btn:hover::before {
    left: 100%;
}

/* 轮播控制按钮 */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 30px;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #397FFF;
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arrow:hover {
    background: rgba(57, 127, 255, 0.5);
    transform: scale(1.1);
}

.arrow i {
    color: white;
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        height: 50vh;
    }

    .hero-text {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .slider-arrows {
        padding: 0 15px;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }
}