/**
 * 首页 1:1 对齐 49208c.com（仅样式，不改 DOM 功能）
 */
body.home-page {
    background: #f7f8fa;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 16px));
    color: #323233;
}

/* ===== 顶栏 ===== */
.home-page .header {
    height: 46px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid #ebedf0;
    box-shadow: none;
}

.home-page .header-backup {
    min-width: 60px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #17c45b, #07c160);
    box-shadow: 0 2px 6px rgba(7, 193, 96, .25);
}

.home-page .header-backup .url {
    font-size: 13px;
    font-weight: 700;
}

.home-page .header-title {
    font-size: 22px;
    font-weight: 600;
    color: #323233;
}

.home-page .header-actions {
    gap: 10px;
}

.home-page .header-action {
    font-size: 16px;
    color: #646566;
    min-width: 28px;
}

.home-page .header-action .hi-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page .header-action .hi-icon svg {
    width: 20px;
    height: 20px;
    fill: #07c160;
}

/* ===== Banner ===== */
.home-page .banner-wrap {
    background: #fff;
}

.home-page .banner-viewport {
    overflow: hidden;
    width: 100%;
}

.home-page .banner-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 500;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
}

.home-page .banner-slide.slide-text {
    aspect-ratio: 750 / 500;
}

.home-page .banner-dots {
    bottom: 8px;
}

.home-page .banner-dots span {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, .45);
}

.home-page .banner-dots span.active {
    width: 14px;
    background: #fff;
    border-radius: 3px;
}

/* ===== 公告 van-notice-bar ===== */
.home-page .announcement {
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #ebedf0;
}

.home-page .announcement .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ee0a24;
    font-size: 20px;
    flex-shrink: 0;
}

.home-page .announcement-text {
    font-size: 19px;
    color: #646566;
}

/* ===== 彩种 Tab ===== */
.home-page .lottery-tabs {
    padding: 10px 12px 0;
    gap: 8px;
    background: #fff;
}

.home-page .lottery-tab {
    padding: 10px 8px 8px;
    border-radius: 8px 8px 0 0;
    background: #f5f5f5;
    color: #969799;
    border: none;
}

.home-page .lottery-tab.active {
    background: #07c160;
    color: #fff;
    border: none;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.home-page .lottery-tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #07c160;
    z-index: 3;
}

.home-page .lottery-tab .name {
    font-size: 21px;
}

.home-page .lottery-tab.active .date {
    color: rgba(255, 255, 255, .88);
}

.home-page .lottery-tab .date {
    font-size: 17px;
    margin-top: 3px;
}

/* ===== 开奖卡片 ===== */
.home-page .lottery-result {
    margin: 0 12px 10px;
    border: 1px solid #07c160;
    border-radius: 8px;
    box-shadow: none;
    padding: 20px 10px 14px;
    background: #fff;
}

.home-page .lottery-result .live-tag {
    top: 0;
    padding: 3px 18px;
    font-size: 18px;
    border-radius: 0 0 10px 10px;
    background: #07c160;
}

.home-page .lottery-meta {
    margin: 10px 0 12px;
    font-size: 16px;
}

.home-page .lottery-meta .issue,
.home-page .lottery-meta .history {
    color: #07c160;
    font-weight: 600;
}

.home-page .lottery-meta .countdown {
    color: #ee0a24;
    font-weight: 500;
}

.home-page .lottery-balls {
    gap: 0;
    padding: 8px 2px 4px;
    border: none;
    align-items: flex-start;
    justify-content: center;
}

.home-page .ball-item {
    width: auto;
    min-width: 46px;
    flex: 0 0 auto;
}

.home-page .ball-plus {
    margin-top: 16px;
    width: 18px;
    padding: 0 1px;
}

.home-page .lottery-next {
    margin-top: 10px;
    font-size: 19px;
    color: #ee0a24;
    text-align: center;
    border-top: none;
    padding-top: 0;
}

/* ===== 快捷导航 ===== */
.home-page .quick-links {
    margin-top: 8px;
    padding: 10px 8px;
}

.home-page .quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
}

.home-page .quick-link-item {
    flex: 0 0 calc(25% - 5px);
    max-width: calc(25% - 5px);
    padding: 9px 4px;
    font-size: 19px;
    text-align: center;
    background: #f7f8fa;
    border-radius: 6px;
    color: #646566;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 功能九宫格（对标 49208 圆形图标 + 完整文字） ===== */
.home-page .function-grid {
    padding: 8px 0 12px;
    margin-bottom: 8px;
}

.home-page .function-grid-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 0;
    padding: 4px 8px 0;
}

.home-page .function-item {
    width: auto;
    padding: 0;
    gap: 5px;
}

.home-page .function-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    overflow: hidden;
    background: transparent !important;
    flex-shrink: 0;
}

.home-page .function-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0;
}

.home-page .function-item span {
    display: block;
    width: 100%;
    font-size: 18px;
    color: #323233;
    line-height: 1.25;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all;
    padding: 0 1px;
}

/* ===== 图库年份 / 系列 ===== */
.home-page .body-image-block {
    padding: 10px 10px 12px;
    margin-bottom: 0;
    border-top: 1px solid #ebedf0;
}

.home-page .gallery-year-nav {
    padding-bottom: 8px;
}

.home-page .gallery-year-item {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 72px;
}

.home-page .gallery-year-icon {
    width: 34px;
    height: 34px;
    background: #07c160;
}

.home-page .gallery-year-icon.bw {
    background: #c8c9cc;
}

.home-page .gallery-year-item span {
    font-size: 16px;
    color: #646566;
}

.home-page .gallery-series-row .gs-item {
    height: 32px;
    line-height: 32px;
    font-size: 19px;
    border-radius: 16px;
    background: #07c160;
}

.home-page .gallery-series-row .gs-more {
    height: 32px;
    line-height: 32px;
    background: #e8f8ef;
    color: #07c160;
    border-radius: 16px;
}

.home-page .home-picture-card {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.home-page .home-picture-card .hp-name {
    font-size: 18px;
    color: #323233;
    padding: 6px 4px 8px;
}

.home-page .home-picture-tip {
    font-size: 18px;
    color: #969799;
    padding: 10px 0 4px;
}
