/* 主要内容区域 */
.main {
    padding: 60px 16px 16px;
}

/* 标签页切换 */
.lottery-tabs {
    max-width: 640px;
    margin: 0 auto 16px;
    display: flex;
    gap: 10px;
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--button-background);
    color: var(--text-secondary);
    border-radius: 12px;
    /* 卡片圆角 */
    /* 按钮圆角 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    font-weight: 600;
}

/* 暗色主题下的标签页 */
:root[data-theme="dark"] .tab-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
}

/* 亮色主题下的标签页 - 确保高对比度 */
:root[data-theme="light"] .tab-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

body {
    font-family: 'Inter', 'PingFang SC', sans-serif;
    background: var(--ocean-bg);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    overflow: hidden;
    /* 防止浏览器原生滚动，使用容器滚动 */
}

/* App 壳容器 */
.app-shell {
    display: flex;
    justify-content: center;
    background: transparent;
    height: 100vh;
    width: 100vw;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: transparent;
    /* 改为全透明，直接透出 Body 的海洋蓝背景 */
    backdrop-filter: blur(15px);
    /* 保持一致的玻璃感 */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* 顶部 Header - 修正为 fixed 以解决 iOS sticky 兼容性导致的重叠 */
.header {
    padding: 10px 20px;
    background: rgba(0, 11, 26, 0.82);
    /* 显式背景色，增强辨识度 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: absolute;
    /* 在 app-container 内部绝对定位 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 修复 Header 内部重叠 - 放弃绝对定位 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex: 1;
    justify-content: center;
}

/* 滚动内容区 */
/* 修复内容区和滚动 - 增加 paddingTop 以抵消 Header 高度 */
.main-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 75px 15px 120px;
    /* 顶部从 10px 增加到 75px，完美避开 Header */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.main-scroll-area::-webkit-scrollbar {
    display: none;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 162, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0);
    }
}

.hero-section {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 20px 15px;
    margin-top: 10px;
    /* 增加顶部间距 */
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    animation: pulse-blue 4s infinite;
}

.hero-timer {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Monaco', monospace;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 162, 255, 0.6);
}

/* 彩票列表卡片 - 重构布局 */
.lottery-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lottery-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* 独立倒计时胶囊 - 大幅放大 */
.lottery-status {
    background: rgba(0, 162, 255, 0.2);
    border: 1px solid rgba(0, 162, 255, 0.4);
    padding: 3px 8px;
    /* 减小内边距 */
    border-radius: 8px;
    font-size: 16px;
    /* 列表页统一降至 16px 确保同行 */
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Monaco', monospace;
    min-width: 60px;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
}

.card-period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Monaco', monospace;
}

.card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* 核心：修复号码球水平排列 */
.card-numbers {
    display: flex;
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
    gap: 8px !important;
    padding: 5px 0;
    flex-wrap: wrap;
    /* 允许在极窄屏幕下标签换行 */
}

.card-tag-group {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    /* 靠右对齐 */
}

@media screen and (max-width: 480px) {
    .lottery-card {
        padding: 12px;
        /* 进一步减小内边距 */
    }

    .card-numbers {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* 强制不换行 */
        gap: 3px !important;
        /* 极小间距 */
        overflow-x: auto;
        /* 极端情况允许横向滚动（虽然调整尺寸后应该不需要） */
        scrollbar-width: none;
        /* 隐藏滚动条 */
        -webkit-overflow-scrolling: touch;
        align-items: center;
        width: 100%;
        /* 确保占满容器 */
    }

    .card-numbers::-webkit-scrollbar {
        display: none;
    }

    /* 缩小移动端号码球尺寸 */
    .number-ball {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
        /* 防止被压缩 */
        border-width: 1px;
        /* 减小边框 */
    }

    /* 适配波色球 */
    .lottery-numbers .number.sum {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .card-tag-group {
        flex-shrink: 0;
        /* 防止标签组被压缩 */
        margin-left: auto;
        /* 保持靠右 */
        gap: 3px;
    }

    .result-tag {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 11px;
        padding: 0;
    }

    .lottery-status {
        padding: 1px 5px;
        font-size: 12px;
        min-width: 40px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 底部导航修正 */
.bottom-nav {
    position: fixed;
    /* 必须使用 fixed 以适配 iOS 视口 */
    bottom: calc(20px + env(safe-area-inset-bottom));
    /* 适配 iPhone 底部安全区域 */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 440px;
    height: 65px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex !important;
    /* 强制显示 */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    /* 提高层级 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 480px) {
    .app-container {
        max-width: 100%;
        border: none;
        border-radius: 0;
    }

    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 450px;
        bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* 波色样式 */
.lottery-numbers .number.sum {
    width: 28px;
    height: 28px;
    font-weight: 500;
}

/* 波色样式 */
.number-ball.red {
    background: #ff5b5b !important;
    color: #fff !important;
}

.number-ball.green {
    background: #46c35b !important;
    color: #fff !important;
}

.number-ball.blue {
    background: #007aff !important;
    color: #fff !important;
}

/* 暗色主题适配 */
:root[data-theme="dark"] .lottery-numbers .number {
    background: rgba(255, 255, 255, 0.1);
}


/* 号码球基础样式 */
.number-ball {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent), var(--number-ball-bg);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.4), inset 0 -4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.number-ball:hover {
    transform: scale(1.1);
}

/* 普通号码球使用浅灰色背景 */
.number-ball:not(.number-sum) {
    background: var(--secondary-btn-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* 暗色主题下的普通号码球 */
:root[data-theme="dark"] .number-ball:not(.number-sum) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* 和值的波色样式 */
.number-ball.number-sum.red {
    background: #ff5b5b !important;
    color: #fff !important;
}

.number-ball.number-sum.green {
    background: #46c35b !important;
    color: #fff !important;
}

.number-ball.number-sum.blue {
    background: #007aff !important;
    color: #fff !important;
}


.number-plus {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0 4px;
}

.number-sum {
    background: var(--countdown-bg);
}

/* 倒计时/开奖状态 */
/* 开奖状态样式 */
.lottery-status {
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;

}

/* 开奖中的呼吸效果 */
@keyframes breathe {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}



/* 操作按钮容器 */
.lottery-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 操作按钮样式优化 */
.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    /* 稍微增加透明度深度，避免 iOS 渲染为纯白 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 显式添加 webkit 前缀 */
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.2);
}

.action-button i {
    font-size: 14px;
}

/* 预测按钮 - 主要操作 */
.predict-btn {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    border-color: var(--primary-btn-border);
}

.predict-btn:hover {
    background-color: var(--primary-btn-hover-bg);
}

/* 走势图按钮 - 次要操作 - 增强对比度 */
.trend-btn {
    background-color: rgba(0, 162, 255, 0.15);
    /* 使用稍微亮一点的深天蓝背景 */
    color: #00A2FF;
    /* 使用极亮的天蓝色 */
    border-color: rgba(0, 162, 255, 0.3);
    font-weight: 700;
    /* 加粗字体 */
}

.trend-btn:hover {
    background-color: rgba(0, 162, 255, 0.25);
    color: #ffffff;
    /* 悬浮时变为纯白 */
}

/* 官方网站按钮 - 次要操作 */
.official-btn {
    background-color: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
    border-color: var(--secondary-btn-border);
}

.official-btn:hover {
    background-color: var(--secondary-btn-hover-bg);
}


/* 动画效果 */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* 开奖结果包装器 */
.lottery-result-wrapper {
    position: relative;
    padding: 16px;
}

/* 手机版样式 */
@media screen and (max-width: 768px) {
    .lottery-result-wrapper {
        padding: 0;
    }
}


/* 六合彩特定样式重构 */
.lhc-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
}

.lhc-logo-img {
    width: 100px;
    /* 大幅缩小巨大的 logo */
    height: auto;
    margin: 0 auto 15px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.3));
}

.lhc-info {
    text-align: center;
    margin-bottom: 15px;
}

/* 统一六合彩倒计时为蓝色胶囊风格 */
.lhc-countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.lhc-pill {
    background: rgba(0, 162, 255, 0.15);
    border: 1px solid rgba(0, 162, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Monaco', monospace;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.lhc-pill .val {
    font-size: 16px;
    line-height: 1;
}

.lhc-pill .lbl {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 2px;
}


.result-tag {
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: 700;
}

/* Hero 区域的大型标签 */
.hero-result-container .result-tag {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 20px;
}

.result-tag.big {
    background: #46c35b;
}

.result-tag.small {
    background: #007aff;
}

.result-tag.single {
    background: #5856d6;
}

.result-tag.double {
    background: #ff9500;
}

/* 连开提示 */
.train-hints {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    z-index: 1;
}

.train-hint {
    background: rgba(255, 59, 48, 0.9);
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    transform: scale(0.9);
    transform-origin: right top;
}

/* 暗色模式适配 */
:root[data-theme="dark"] .train-hint {
    background: rgba(255, 69, 58, 0.9);
}

/* 摇奖滚动特效 */
.number-rolling {
    animation: ballShake 0.15s infinite ease-in-out !important;
    filter: blur(1.5px);
    transform: scale(1.05);
    opacity: 0.9;
    background: var(--secondary-btn-bg) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.3) !important;
}

@keyframes ballShake {
    0% {
        transform: translateY(0) scale(1.05);
    }

    25% {
        transform: translateY(-2px) scale(1.05);
    }

    50% {
        transform: translateY(0) scale(1.05);
    }

    75% {
        transform: translateY(2px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1.05);
    }
}

/* 确保六合彩滚动槽位高度一致 */
.lhc-number-item.is-rolling .lhc-zodiac {
    color: transparent;
}

.lhc-number-item.is-rolling .lhc-zodiac::after {
    content: "..";
    color: rgba(255, 255, 255, 0.3);
    display: block;
}

/* 全局公告栏样式 - 垂直滚动版 */
.announcement-bar {
    width: calc(100% - 32px);
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.announcement-icon {
    color: var(--primary-color);
    font-size: 14px;
    background: rgba(0, 122, 255, 0.15);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.announcement-scroll-container {
    flex: 1;
    height: 32px;
    /* 固定高度，匹配垂直项 */
    overflow: hidden;
    position: relative;
}

.announcement-vertical-list {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.announcement-item {
    height: 32px;
    line-height: 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.3s;
}

.announcement-item:hover {
    color: var(--primary-color);
}

/* 六合彩卡片 */
.lhc-card {
    background: var(--card-background);
}

/* 六合彩开奖时间信息 - 紧凑 */
.lhc-draw-info {
    padding: 6px 12px;
    background: var(--secondary-btn-bg);
    border-radius: 4px;
    margin: 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.lhc-draw-info .draw-label {
    color: var(--text-secondary);
    margin-right: 4px;
}

/* 六合彩号码区域 - 撑满宽度，一行显示 */
.lhc-numbers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    flex-wrap: nowrap;
    /* 不换行 */
    padding: 12px 4px;
    width: 100%;
    overflow: visible;
}

.lhc-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    /* 自适应宽度，撑满容器 */
    min-width: 0;
    /* 允许收缩 */
}

/* 六合彩号码球 - Pure CSS 3D 质感 */
.lhc-ball {
    width: 100%;
    max-width: 44px;
    aspect-ratio: 1;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2px;
    /* 视觉修正：向下微调 2px */
}

/* 暗色主题下号码使用白色 */
:root[data-theme="dark"] .lhc-ball {
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* 亮色主题下号码使用黑色 */
:root[data-theme="light"] .lhc-ball {
    color: #000;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
}

/* 六合彩波色 - 3D 径向渐变 */
.lhc-ball.red {
    background: radial-gradient(circle at 35% 35%, #ff8e8e 0%, #ff5b5b 40%, #cc0000 100%);
    box-shadow: 0 4px 10px rgba(255, 91, 91, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
}

.lhc-ball.blue {
    background: radial-gradient(circle at 35% 35%, #7abaea 0%, #007aff 40%, #0044cc 100%);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
}

.lhc-ball.green {
    background: radial-gradient(circle at 35% 35%, #88e29a 0%, #46c35b 40%, #008800 100%);
    box-shadow: 0 4px 10px rgba(70, 195, 91, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
}

/* 生肖文字 - 更大更清晰 */
.lhc-zodiac {
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

/* 总和显示 - 更大更清晰 */
.lhc-sum-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 2px solid var(--border-color);
    flex-shrink: 0;
    /* 不收缩 */
}

.lhc-sum-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.lhc-sum-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}


/* 号码之间的+号 */
.lhc-plus {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 44px;
    margin: 0 4px;
    margin-top: -18px;
    /* 向上微调与球心对齐 */
}

/* 倒计时盒子样式 - 所有彩种通用 */
.countdown-boxes {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 移除旧的黑框倒计时样式 */
.countdown-box {
    display: none;
}

/* 暗色主题下倒计时用红色背景 */
:root[data-theme="dark"] .countdown-box {
    background: linear-gradient(135deg, #ff3b30 0%, #e53935 100%);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
}

/* 亮色主题倒计时保持黑色背景 */
:root[data-theme="light"] .countdown-box {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.countdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    line-height: 1;
}

/* 开奖中状态样式 - 极致蓝重构 */
.countdown-drawing {
    display: inline-block;
    background: rgba(0, 162, 255, 0.15);
    /* 基础透明蓝 */
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(0, 162, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
    animation: breathe 2s infinite;
}

/* 暗色主题开奖中使用精致呼吸红 */
:root[data-theme="dark"] .countdown-drawing {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 69, 58, 0.3) 100%);
    border-color: rgba(255, 59, 48, 0.5);
    color: #ff9f9f;
    /* 浅淡红色文字，更高级 */
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
}

/* 亮色主题下保持玻璃质感蓝 */
:root[data-theme="light"] .countdown-drawing {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-color: rgba(0, 122, 255, 0.2);
}

/* 开奖中的呼吸动画 */
@keyframes breathe {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .lhc-numbers {
        gap: 1px;
        padding: 10px 2px;
    }

    .lhc-ball {
        max-width: 35px;
        min-width: 32px;
        font-size: 16px;
        padding: 0;
        /* 重置内边距，依赖 Flex 居中 */
    }

    .lhc-zodiac {
        font-size: 12px;
    }

    .lhc-sum-value {
        font-size: 18px;
    }

    .lhc-plus {
        font-size: 16px;
        margin: 0 1px;
        margin-top: -12px;
        /* 移动端微调对齐 */
    }

    /* 倒计时盒子响应式 */
    .countdown-boxes {
        gap: 3px;
    }

    .countdown-box {
        padding: 3px 4px;
        min-width: 28px;
    }

    .countdown-value {
        font-size: 14px;
    }

    .countdown-label {
        font-size: 9px;
    }



    .countdown-drawing {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 摇奖滚动特效 */
.number-rolling {
    animation: ballRolling 0.15s infinite linear !important;
    filter: blur(2px);
    opacity: 0.8;
    transform: scale(1.05);
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes ballRolling {
    0% {
        transform: translateY(-2px) scale(1.05);
    }

    50% {
        transform: translateY(2px) scale(1.05);
    }

    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* 兼容 predict 页面与 Hero 区域的大球滚动 */
.hero-rolling-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.hero-rolling-container .number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 162, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
    animation: heroBallRolling 0.12s infinite linear;
    filter: blur(2px);
}

@keyframes heroBallRolling {
    0% {
        transform: translateY(-4px) scale(1.05);
    }

    50% {
        transform: translateY(4px) scale(1.05);
    }

    100% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* 结果展示期专用样式 */
.hero-result-container {
    padding: 10px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.hero-result-container .hero-rolling-container {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 12px;
}

.hero-result-container .number {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: none !important;
    filter: none !important;
}

.hero-result-container .number.red {
    background: radial-gradient(circle at 30% 30%, #ff5b5b, #cc0000);
    box-shadow: 0 0 20px rgba(255, 91, 91, 0.4);
}

.hero-result-container .number.green {
    background: radial-gradient(circle at 30% 30%, #46c35b, #008800);
    box-shadow: 0 0 20px rgba(70, 195, 91, 0.4);
}

.hero-result-container .number.blue {
    background: radial-gradient(circle at 30% 30%, #007aff, #0044cc);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
}

.hero-timer.showing-result {
    font-size: 14px !important;
    height: auto !important;
    min-height: 140px;
}


/* 摇奖滚动特效 */
.number-rolling {
    animation: ballRolling 0.15s infinite linear !important;
    filter: blur(2px);
    opacity: 0.8;
    transform: scale(1.05);
    user-select: none;
}

@keyframes ballRolling {
    0% {
        transform: translateY(-2px) scale(1.05);
    }

    50% {
        transform: translateY(2px) scale(1.05);
    }

    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* 兼容 predict 页面顶部大球 */
.hero-section .number-rolling {
    filter: blur(3px);
    transform: scale(1.1);
    animation: heroBallRolling 0.1s infinite linear !important;
}

@keyframes heroBallRolling {
    0% {
        transform: translateY(-3px) scale(1.1);
    }

    50% {
        transform: translateY(3px) scale(1.1);
    }

    100% {
        transform: translateY(-3px) scale(1.1);
    }
}

/* 奖池金额特效 */
.jackpot-amount {
    color: #ffcc00 !important;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    animation: jackpotGlow 2s infinite alternate;
}

@keyframes jackpotGlow {
    from {
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.2);
    }

    to {
        text-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
    }
}