/* Theme6 主样式文件 - 基于Figma设计重新编写 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-blue: #3081EE;
    --red-color: #FF3B30;
    --green-color: #34C759;
    --orange-color: #FF9500;
    --purple-color: #AF52DE;
    --gray-100: #F2F2F7;
    --gray-200: #E5E5EA;
    --gray-300: #D1D1D6;
    --gray-400: #C7C7CC;
    --gray-500: #AEAEB2;
    --gray-600: #707073;
    --gray-800: #1C1C1E;
    --white: #FFFFFF;
    --border-radius: 18px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --max-width: 600px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--gray-100);
    min-height: 100vh;
    padding-bottom: 70px;
}

.container.no-foot{
    padding-bottom: 0;
}

/* 主页面样式 */
.main-page {
    padding-top: 52px; /* 为固定header留出空间 */
}

.header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    z-index: 100;
    box-shadow: var(--shadow);
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
}

/* 游戏选择器样式 */
.game-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.game-selector .title-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 4px;
}

.game-selector .game-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin-right: 8px;
}

.game-selector .dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.game-selector.active .dropdown-icon {
    transform: rotate(180deg);
}

/* 游戏下拉列表样式 */
.game-dropdown {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    max-width: var(--max-width);
    background-color: var(--white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content {
    /*padding: 12px 0;*/
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
}

.dropdown-item.active {
    background-color: rgba(48, 129, 238, 0.1);
    color: var(--primary-blue);
}

.dropdown-item.active:hover {
    background-color: rgba(48, 129, 238, 0.15);
}

.dropdown-item .game-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
}

.dropdown-item .game-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-800);
}

.dropdown-item.active .game-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.dropdown-item .check-icon {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-left: 8px;
}

.banner {
    margin: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Swiper 轮播图样式 */
.banner-swiper {
    width: 100%;
    height: 120px;
}

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

.banner-slide-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-slide-item:hover {
    transform: scale(1.02);
}

.default-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.default-banner h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.default-banner p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.banner-swiper .swiper-pagination {
    bottom: 10px;
}

.banner-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: var(--white);
    transform: scale(1.2);
}

.banner > div,
.banner img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.notice {
    margin: 12px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    min-height: 35px;
}

.notice-icon {
    width: 18px;
    height: 18px;
}

.notice-icon img{
    width: 100%;
    height: 100%;
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-800);
    line-height: 1.4;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.result-display#result-display {
    display: none;
}

.tab-nav {
    display: none;
}

.tab-content {
    /* 移除默认隐藏，由JavaScript控制显示隐藏 */
}

.game-list {
    padding: 0 12px;
}

.game-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.game-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-icon img {
    width: 100%;
    height: 100%;
}

.game-info > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.period-info {
    font-size: 15px;
    color: var(--gray-600);
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0 10px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
}

.game-actions > .action-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    height: 34px;
    line-height: 34px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    padding: 0 10px;
    text-align: center;
}

.result-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.result-numbers-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.number-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    color: var(--gray-800);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

.number-ball.blue {
    color: var(--gray-800);
    background-color: var(--white);
}

.number-ball:last-child{
    color: var(--white);
    background-color: var(--primary-blue);
}

.plus-sign,
.equals-sign {
    font-size: 20px;
    color: var(--gray-400);
}

.attribute-badges {
    display: flex;
    gap: 5px;
    align-items: center;
}

.attribute-badges > .action-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
}

.badge.big,
.action-btn.big {
    background-color: var(--primary-blue);
}

.badge.single,
.action-btn.single {
    background-color: var(--red-color);
}

.badge.small,
.action-btn.small {
    background-color: var(--green-color);
}

.badge.double,
.action-btn.double {
    background-color: var(--green-color);
}

.game-status-row {
    position: absolute;
    top: 24px;
    right: 24px;
}

.status-badge {
    background-color: var(--red-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.game-actions .nav-item {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 20px;
    padding: 0 5px;
    font-size: 14px;
    flex: 1;
    color: var(--gray-600);
    background-color: var(--gray-100);
}

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

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bottom-nav {
    height: 60px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    padding: 4px;
}

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

.bottom-nav .nav-icon {
    width: 28px;
    height: 28px;
}

.bottom-nav .nav-icon img {
    width: 24px;
    height: 24px;
}

.hot-badge {
    background-color: var(--red-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    position: absolute;
    top: -4px;
    right: -4px;
}

.hidden {
    display: none !important;
}

/* 详情页面样式 */
.detail-page {
    background-color: var(--gray-100);
    padding-top: 60px; /* 为固定的header留出空间 */
}

/* 详情页顶部导航 */
.detail-header {
    background-color: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: var(--max-width);
    margin: 0 auto;
}

.back-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}

.back-btn img {
    width: 20px;
    height: 20px;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.title-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
}

.detail-placeholder {
    width: 32px;
}

/* 开奖结果区域 */
.result-section {
    background-color: var(--white);
    margin: 0 0 12px 0;
    padding: 20px 10px;
}

.result-display-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-display-detail .result-numbers-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-display-detail .number-ball {
    width: 30px;
    height: 30px;
    font-size: 18px;
}

.result-attributes {
    display: flex;
    gap: 8px;
}

.attr-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.attr-badge.big {
    background-color: var(--primary-blue);
}

.attr-badge.single {
    background-color: var(--red-color);
}

.attr-badge.small {
    background-color: var(--green-color);
}

.attr-badge.double {
    background-color: var(--green-color);
}

.result-display-detail .attr-badge{
    width: 30px;
    height: 30px;
}

.wait-draw-btn {
    width: 75px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.streak-notice {
    background-color: var(--red-color);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
}

/* 详情页选项卡 */
/* 第一行选项卡 - detail-nav */
.detail-nav {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-nav .tab-item {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
}

.detail-nav .tab-item.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.detail-nav .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 20px;
    background-color: var(--primary-blue);
}

/* 第二行选项卡 - detail-tab */
.detail-tab {
    background-color: var(--white);
    display: flex;
    overflow-x: auto;
    padding: 12px 12px 0 12px;
    gap: 12px;
}

.detail-tab .tab-item {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s;
    border-radius: 10px;
    background-color: var(--gray-100);
}

.detail-tab .tab-item.active {
    color: var(--white);
    background-color: var(--primary-blue);
    font-weight: 500;
}

/* 详情页内容 */
.detail-content {
    background-color: var(--white);
}

/* 预测网格 - 改为4列布局 */
.open-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.open-btn {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    position: relative;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.open-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.hot-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--red-color);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
}

/* 历史记录表格 */
.history-table {
    background-color: var(--white);
    margin: 0 12px;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 12px;
}

.history-table table {
    border: 0;
    width: 100%;
    border-collapse: collapse;
}

.history-table thead th {
    background-color: var(--primary-blue);
    padding: 8px;
    font-size: 14px;
    color: var(--white);
    text-align: center;
}

.history-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.history-table tbody tr:nth-child(even) {
    background-color: var(--gray-100);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

/* 通用样式 */
.period-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.period-time {
    font-size: 12px;
    color: var(--gray-600);
}

.draw-text {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
}

.result-numbers-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 14px;
}

.mini-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--white);
}

.mini-ball.sum {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.result-numbers-mini span {
    color: var(--gray-400);
    font-size: 14px;
}

/* 预测容器样式 */
.predict-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.predict-badge {
    width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.predict-badge.kill {
    min-width: 60px;
    border-radius: 12px;
    background-color: var(--orange-color);
}

.predict-badge.single {
    background-color: var(--red-color);
}

.predict-badge.double {
    background-color: var(--green-color);
}

.predict-badge.big {
    background-color: var(--primary-blue);
}

.predict-badge.small {
    background-color: var(--green-color);
}

.predict-badge.combo {
    background-color: var(--purple-color);
}

.predict-badge.kill {
    background-color: var(--orange-color);
}

.sha {
    color: var(--red-color);
    font-weight: 700;
    font-size: 14px;
    margin-right: 4px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-icon.success {
    background-color: #34C759;
}

.status-icon.success::after {
    content: '';
    width: 12px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.status-icon.error {
    background-color: #FF3B30;
}

.status-icon.error::before,
.status-icon.error::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2.5px;
    background-color: white;
}

.status-icon.error::before {
    transform: rotate(45deg);
}

.status-icon.error::after {
    transform: rotate(-45deg);
}

.status-icon.wait {
    background: none;
}

.status-icon.wait::after {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url('/static/theme6/img/icon_alarm.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mi-btn {
    background-color: var(--primary-blue);
    color: white;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    position: fixed;
    right: 0;
    bottom: 15%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(48, 129, 238, 0.3);
}

/* 走势图样式 */
.trend-container {
    background-color: var(--white);
    overflow-x: auto;
    margin: 12px 0;
}

.trend-grid {
    display: table;
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    overflow: hidden;
}

.trend-header {
    display: table-row;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.trend-header > div {
    height: 40px;
    line-height: 40px;
    display: table-cell;
    padding: 0 8px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trend-header > div:last-child {
    border-right: none;
}

.trend-row {
    display: table-row;
    border-bottom: 1px solid var(--gray-200);
}

.trend-row:nth-child(even) {
    background-color: #f8f9fa;
}

.trend-row > div {
    display: table-cell;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid var(--gray-200);
    font-size: 14px;
}

.trend-row > div:last-child {
    border-right: none;
}

.trend-period {
    font-size: 10px;
    color: var(--gray-600);
    white-space: nowrap;
    width: 60px;
    text-align: center;
    line-height: 1.2;
}

.trend-period .period-number {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 12px;
    line-height: 1.2;
}

.trend-period .period-time {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1;
    margin-top: 1px;
}

.trend-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.trend-cell {
    width: 30px;
    font-size: 10px;
    color: var(--gray-400);
    position: relative;
    background-color: transparent;
}

/* 走势图中的属性标签 */
.trend-cell .trend-badge {
    min-width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto;
    padding: 0 4px;
}

/* 大 - 红色 */
.trend-cell .trend-badge.big {
    background-color: #FF5C5B;
}

/* 小 - 蓝色 */
.trend-cell .trend-badge.small {
    background-color: #3081EE;
}

/* 单 - 绿色 */
.trend-cell .trend-badge.single {
    background-color: #4BD964;
}

/* 双 - 橙色 */
.trend-cell .trend-badge.double {
    background-color: #FF9500;
}

/* 组合颜色 */
.trend-cell .trend-badge.big-single {
    background-color: #FF5C5B;
}

.trend-cell .trend-badge.big-double {
    background-color: #FF9500;
}

.trend-cell .trend-badge.small-single {
    background-color: #3081EE;
}

.trend-cell .trend-badge.small-double {
    background-color: #4BD964;
}

/* 统计样式 */
.stats-section {
    background-color: var(--white);
    padding: 12px;
    overflow: hidden;
}

.stats-section-title {
    background-color: var(--primary-blue);
    color: var(--white);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* 单点数字统计网格 */
.number-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
}

.number-stats-item {
    background-color: var(--gray-100);
    height: 38px;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
}

.number-value {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    text-align: center;
}

.stats-info {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: flex-start;
}

.stats-text {
    color: var(--gray-600);
    font-size: 12px;
}

.stats-number {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 12px;
}

.stats-number.high {
    color: #FF3B30;
}

/* 大小单双统计网格 */
.basic-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
}

.basic-stats-grid .number-stats-item,
.combo-stats-grid .number-stats-item,
.extreme-stats-grid .number-stats-item{
    justify-content: center;
}

.basic-stats-grid .stats-info,
.combo-stats-grid .stats-info,
.extreme-stats-grid .stats-info{
    flex: none;
}

.basic-stats-grid .number-value,
.combo-stats-grid .number-value,
.extreme-stats-grid .number-value{
    width: unset;
    margin-right: 5px;
    color: var(--gray-600);
}

/* 组合统计网格 */
.combo-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
}

/* 极大极小统计网格 */
.extreme-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
}

/* 通用显示隐藏类 */
.show {
    display: block !important;
}

.hide {
    display: none !important;
}

/* 咪牌状态容器 */
.mi-state {
    width: 100%;
}

/* 刮奖容器 */
.mi-scratch-container {
    position: relative;
    width: 100%;
    height: 125px;
    margin: 0 auto;
    overflow: hidden;
}

.mi-result-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F4F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mi-scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    touch-action: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mi-result-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.result-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid var(--primary-blue);
    color: var(--gray-600);
}

.result-sum {
    width: 36px;
    height: 36px;
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.result-plus, .result-equals {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-600);
}

.mi-scratch-tip {
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 15px;
    font-weight: 500;
}


/* 咪牌弹窗样式 */
.mi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.mi-modal.show {
    display: flex!important;
}

.mi-modal-content {
    background-color: var(--white);
    border-radius: 20px;
    width: 300px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mi-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;;
    color: var(--gray-800);
}

.modal-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.mi-modal-period {
    margin-bottom: 10px;
}

.period-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.mi-modal-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.countdown-box {
    background-color: var(--primary-blue);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.countdown-number {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    color: white;
    font-size: 14px;
    margin-left: 5px;
}

.countdown-separator {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 700;
}


.mi-modal-close {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-blue);
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.earn-page {
    padding-bottom: 80px;
    background: var(--gray-100);
    min-height: calc(100vh - 80px);
}

.earn-title {
    text-align: center;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.6;
    padding: 10px 20px;
    background-color: var(--white);
}

.earn-title > span{
    color: red;
}

.earn-tabs {
    display: flex;
    background: var(--white);
    padding: 4px;
}

.earn-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    color: var(--gray-600);
    cursor: pointer;
    position: relative;
    font-size: 15px;
    transition: all 0.3s;
}

.earn-tab.active {
    color: var(--primary-blue);
}

.earn-tab.active::after{
    content: "";
    width: 20px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
}

.earn-card {
    margin-bottom: 12px;
}

.earn-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.earn-card img:active {
    transform: scale(0.98);
}

.no-earn-data {
    text-align: center;
    color: var(--gray-600);
    padding: 20px 0;
    font-size: 16px;
}

.earn-content{
    padding: 12px;
}