/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* 全屏轮播容器 */
.fullscreen-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-height: 615px; /* 可根据需要调整最大高度 */
    overflow: hidden;
}

/* 轮播轨道 */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

/* 单个轮播项 */
.carousel-slide {
    min-width: 100%;
    position: relative;
}

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

/* 轮播内容 */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}

/* 导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* 指示器 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 移动端响应式设计 */
@media (max-width: 1024px) {
    .fullscreen-carousel {
        max-height: 600px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .fullscreen-carousel {
        max-height: 500px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 25px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .fullscreen-carousel {
        max-height: 400px;
    }
    
    .slide-content {
        padding: 1rem;
        width: 95%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .prev {
        left: 15px;
    }
    
    .next {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}