



/* 主要内容区域 */
.main {
    padding: 72px 16px 16px;
}

/* 彩票列表 */
.lottery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 彩票卡片 */
.lottery-card {
    background: var(--card-background);
    
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: cardFadeIn 0.3s ease-out;
}

.lottery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lottery-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lottery-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.lottery-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.lottery-period {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 开奖号码样式 */
.lottery-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lottery-numbers .number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-btn-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-family: monospace;
    color: var(--text-primary);
}

.lottery-numbers .plus,
.lottery-numbers .equal {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 波色样式 */
.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: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--secondary-btn-bg);
    color: var(--text-primary);
}

/* 普通号码球使用浅灰色背景 */
.number-ball:not(.number-sum) {
    background: #f5f5f5;
    color: #333;
}

/* 暗色主题下的普通号码球 */
: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;
    background: #ff3b30;
}

/* 开奖中的呼吸效果 */
@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: 4px;
    padding: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--button-background);
    text-decoration: none;
    transition: background-color 0.2s;
}

.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: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
    border-color: var(--secondary-btn-border);
}

.trend-btn:hover {
    background-color: var(--secondary-btn-hover-bg);
}

/* 官方网站按钮 - 次要操作 */
.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;
    }
}


.lottery-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-sum-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 走势图按钮包装器 */
.trend-btn-wrapper {
    flex: 1;
    position: relative;
}

/* 开奖结果标签 */
.result-tags {
    display: flex !important; /* 使用!important确保显示 */
    gap: 6px;
    margin-left: 12px;
}


.result-tag {

    border-radius: 5px;
    font-size: 15px;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.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);
}
