/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner轮播图 - 自适应 */
.banner {
    margin-top: 0px; /* 默认桌面端距离 */
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* 保持16:9的宽高比 */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-buttons button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: clamp(20px, 3vw, 38px);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    z-index: 2; /* 增加层级，避免被图片盖住 */
}

.slider-buttons button:hover {
    color: #1985fe;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 手机端banner上边距 */
@media (max-width: 767px) {
    .banner {
        margin-top: 0px;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}