/**
 * 轮播图样式
 * @description 响应式轮播图组件样式
 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.prev-slide,
.next-slide {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slide-button {
        padding: 0.8rem 1.5rem;
    }

    .prev-slide,
    .next-slide {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.9rem;
    }

    .slide-content {
        width: 90%;
    }

    .prev-slide,
    .next-slide {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* 页面特定样式 */
.hero-slider.home-slider {
    height: 800px;
}

.hero-slider.products-slider {
    height: 700px;
    background-color: var(--color-background-dark);
}

.hero-slider.services-slider {
    height: 700px;
}

/* 无障碍支持 */
.prev-slide:focus,
.next-slide:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content {
    animation: fadeIn 0.5s ease-out;
} 