/* ============ Banner 轮播（Swiper.js - 严格仿 doageas.com） ============ */
#banner {
    width: 100%;
    /* 4 张 banner 图都是 16:9;容器也固定 16:9,避免上下被裁切 */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4fb;
}

#banner .swiper-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

#banner .swiper-wrapper,
#banner .swiper-slide {
    height: 100%;
}

#banner .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#banner .swiper-slide img {
    width: 100%;
    height: 100%;
    /* 完整显示整张 banner,不裁切底部价值条或左右内容 */
    object-fit: contain;
    object-position: center center;
    display: block;
    opacity: 1;
}

/* 图片上的文字覆盖层 */
.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    z-index: 10;
    pointer-events: none;
}

.banner-text-overlay h1 {
    font-size: 54px;
    color: #1e1e1e;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: none;
}

.banner-text-overlay h2.banner-title {
    font-size: 54px;
    color: #1e1e1e;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: none;
}

.banner-text-overlay p {
    font-size: 20px;
    color: #555;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.banner-text-overlay p .accent {
    color: #1e6fff;
    font-weight: 600;
    border-bottom: 2px solid #1e6fff;
    padding-bottom: 2px;
}

/* Swiper 原生分页器样式（doageas.com 默认风格） */
#banner .swiper-pagination {
    bottom: 25px !important;
}

#banner .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s;
}

#banner .swiper-pagination-bullet-active {
    background: #fff;
    width: 45px;
}

/* 左右导航按钮（doageas.com 风格） */
#banner .swiper-button-prev,
#banner .swiper-button-next {
    width: 50px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: background 0.3s;
    opacity: 0;
}

#banner:hover .swiper-button-prev,
#banner:hover .swiper-button-next {
    opacity: 1;
}

#banner .swiper-button-prev:hover,
#banner .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

#banner .swiper-button-prev::after,
#banner .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    #banner {
        /* 移动端保持 16:9(已 OK),去掉桌面 aspect-ratio,让小屏高度更紧凑 */
        max-height: 60vh;
    }
    #banner .swiper-container {
        height: 100%;
        min-height: 100%;
    }
    #banner .swiper-pagination { bottom: 18px !important; }
    #banner .swiper-button-prev,
    #banner .swiper-button-next { display: none; }
    .banner-text-overlay { padding: 0 20px; }
    .banner-text-overlay h1 { font-size: 24px; }
    .banner-text-overlay h2.banner-title { font-size: 24px; }
    .banner-text-overlay p { font-size: 13px; }
}