* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
   
    min-height: 120vh;
    /* padding: 20px; */
}

.container {
    /* max-width: 900px; */
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: black;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-container {
    position: relative;
    background: white;
    border-radius: 15px;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.3); */
    overflow: hidden;
    
}

.carousel {
    position: relative;
    width: 100%;
    /* height: 500px;  */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
     height: 90%; 
    object-fit: cover;
    display: block;
}

.news-info {
    /* padding: 20px; */
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.news-info h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: bold;
}

/* .news-info p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1;
} */

/* 导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 指示器 */
.indicators {
    position: absolute;
    bottom: 20px;
    /* left: 50%; */
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .carousel {
        height: 450px;
    }
    
    .carousel-slide img {
        height: 55%;
    }
    
    .news-info {
        padding: 15px;
        height: 45%;
    }
    
    .news-info h3 {
        font-size: 1.1em;
    }
    
    .news-info p {
        font-size: 0.9em;
    }
    
    .nav-btn {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 400px;
    }
    
    .carousel-slide img {
        height: 50%;
    }
    
    .news-info {
        padding: 10px;
        height: 50%;
    }
    
    .news-info h3 {
        font-size: 1em;
        margin-bottom: 5px;
    }
    
    .news-info p {
        font-size: 0.85em;
        line-height: 1.4;
    }
}