/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 幻灯片容器 */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* 幻灯片包装器 */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* 单个幻灯片 */
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* 幻灯片图片 */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 导航按钮 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 内容区域 */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slider {
        height: 100vh;
    }
    
    .content h2 {
        font-size: 30px;
    }
    
    .content p {
        font-size: 20px;
    }
}