/* 首页整体 */
.home-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 10px 16px;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8ecf1 120px, #f5f6f8 100%);
}

.home-hero {
    margin-bottom: 12px;
}

/* 头图轮播：无绿底、圆角 */
.home-banner-box {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
    background: transparent;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.home-banner-swiper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.home-banner-swiper .swiper-slide {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.home-banner-swiper .swiper-slide a {
    display: block;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
}

.home-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
    vertical-align: middle;
    border-radius: 14px;
}

.home-banner-pagination {
    position: relative;
    margin-top: 10px;
    line-height: 1;
}

.home-banner-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.25s ease;
}

.home-banner-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, #c41e3a, #e85d04);
}

.home-banner-fallback {
    display: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* 轮播下方快捷按钮：4 个一排，描边卡片风（与开奖 Tab 渐变胶囊区分） */
.home-quick-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8dcc8;
    box-shadow: 0 2px 14px rgba(120, 45, 9, 0.07);
}

.home-quick-nav:empty {
    display: none;
}

.home-quick-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 8px 4px;
    text-align: center;
    text-decoration: none;
    color: #782d09;
    background: linear-gradient(180deg, #fffefb 0%, #faf5eb 100%);
    border: 1.5px solid #d4b896;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-quick-btn__text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    word-break: keep-all;
}

.home-quick-btn::before {
    content: "";
    display: block;
    width: 18px;
    height: 3px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: #c41e3a;
}

.home-quick-btn:nth-child(1)::before {
    background: #b45309;
}

.home-quick-btn:nth-child(2)::before {
    background: #0d9488;
}

.home-quick-btn:nth-child(3)::before {
    background: #7c3aed;
}

.home-quick-btn:nth-child(4)::before {
    background: #c41e3a;
}

.home-quick-btn:hover,
.home-quick-btn:active {
    background: linear-gradient(180deg, #fff8e7 0%, #f5e6cc 100%);
    border-color: #c9a066;
    transform: translateY(-1px);
}

/* 开奖区外框（勿 hidden，否则手机端两侧球号会被裁切） */
.home-page > .box.home-lottery-section,
.home-lottery-section {
    border-radius: 14px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-top: 12px !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.home-lottery-iframe {
    display: block;
    width: 100%;
    border: 0;
    height: 320px;
    min-height: 0;
    max-height: none;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 650px) {
    .home-lottery-iframe {
        height: 268px;
        min-height: 0;
        max-height: none;
    }
}

/* 内容卡片统一圆角 */
.home-page > .box {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
    margin-bottom: 10px !important;
}

@media (max-width: 400px) {
    .home-quick-nav {
        gap: 5px;
        padding: 8px 6px;
    }

    .home-quick-btn {
        min-height: 48px;
        padding: 6px 2px;
        border-radius: 8px;
    }

    .home-quick-btn__text {
        font-size: 11px;
    }

    .home-quick-btn::before {
        width: 14px;
        margin-bottom: 4px;
    }

    .home-banner-box,
    .home-banner-swiper,
    .home-banner-img {
        border-radius: 10px;
    }
}
