html, body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f6f7fb;
    color: #222;
}

.page {
    padding: 12px;
}

/* 头部标题与副标题 */
.article-header {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.article-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.article-title {
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    font-weight: 700;
    color: #222;
    flex: 1;
}

.article-sub {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-sub .dot {
    color: #c0c0c0;
}

.article-sub a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    font-weight: 500;
}

/* 文章状态样式 */
.article-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.article-status.status-pending {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: #fff;
    border: 1px solid #ff9800;
}

.article-status.status-hit {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
    border: 1px solid #388e3c;
}

.article-status.status-miss {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff;
    border: 1px solid #d32f2f;
}

.status-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 卡片内容 */
.card {
    background: #fff;
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.card-title {
    font-size: 14px;
    color: #222;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.card-body {
    padding: 12px;
}

.article-content {
    margin: 0;
    white-space: pre-line;
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

/* 历史文章 */
.history {
    margin-top: 12px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.history-title {
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-item {
    display: block;
    padding: 5px 12px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f5f5f5;
}

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

.history-text {
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.history-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.history-time {
    color: #666;
    flex-shrink: 0;
    font-size: 14px;
    white-space: nowrap;
}

/* 预测号码区域 */
.prediction-section {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.prediction-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.prediction-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-dot {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: url('/assets/m/icon/bsmi.png') center/100% 100% no-repeat;
    box-shadow: 0 4px 10px rgba(229, 57, 53, .15);
}

/* 开奖号码（本期开奖号码） */
.drawn-numbers {
    background: #fff;
    border-radius: 12px;
    margin-top: 12px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.drawn-numbers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawn-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.drawn-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.drawn-badge.hit {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    box-shadow: 0 4px 12px rgba(76, 175, 80, .25);
}

.drawn-badge.miss {
    background: linear-gradient(135deg, #f44336, #c62828);
    box-shadow: 0 4px 12px rgba(244, 67, 54, .25);
}

.drawn-balls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ball {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12), inset 0 -2px 6px rgba(0, 0, 0, .2);
}

.ball-red {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #d63031);
}

.ball-blue {
    background: radial-gradient(circle at 30% 30%, #4dabf7, #1976d2);
}

.ball-sep {
    font-weight: 700;
    color: #bbb;
    margin: 0 4px;
}

.analysis-section {
    background: linear-gradient(180deg, #ffffff, #fafcff);
    border: 1px solid #edf2ff;
}

.analysis-section .ball {
    background: #fff;
    color: #d32f2f;
    box-shadow: inset 0 0 0 2px rgba(211, 47, 47, .15), 0 2px 8px rgba(0, 0, 0, .06);
}

.analysis-section .ball-blue {
    color: #1976d2;
    box-shadow: inset 0 0 0 2px rgba(25, 118, 210, .2), 0 2px 8px rgba(0, 0, 0, .06);
}

.analysis-section .ball-red {
    color: #c62828;
}

/* 命中标识三角形样式 */
.hit-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #4caf50;
    font-size: 0;
    line-height: 0;
    z-index: 1;
}

.ball-container {
    position: relative;
    display: inline-block;
}

.ball {
    position: relative;
}

/* 为红球和蓝球添加不同的命中标识颜色 */
.ball-container .ball-red + .hit-indicator {
    border-bottom-color: #f44336;
}

.ball-container .ball-blue + .hit-indicator {
    border-bottom-color: #2196f3;
}

.legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 8px;
}

.legend-item {
    font-size: 12px;
    color: #888;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f5f7fb;
    border: 1px solid #eef1f6;
}

.legend-red {
    border-color: #ffd7d7;
    background: #fff5f5;
    color: #c62828;
}

.legend-blue {
    border-color: #d7e9ff;
    background: #f5f9ff;
    color: #1976d2;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 999;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    z-index: 1000;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
}

.modal-body {
    padding: 14px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.modal-footer {
    padding: 12px 14px 16px;
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: #0aa6ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(10, 166, 255, .3);
}

/* 快捷入口 */
.shortcut {
    margin-top: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ff6a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.shortcut-icon.small {
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    padding: 6px;
    box-sizing: border-box;
}

.shortcut-info .title {
    font-size: 16px;
    color: #222;
    font-weight: 700;
}

.shortcut-info .desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.arrow {
    margin-left: auto;
    color: #bbb;
    font-size: 24px;
    line-height: 1;
}

.wheel-display {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.wheel-digit {
    min-width: 22px;
    min-height: 22px;
    padding: 0 4px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #f7f7f7);
    border: 1px solid #e6e6e6;
    color: #d32f2f;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.03);
    user-select: none;
    pointer-events: none;
}


.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #0aa6ff;
    color: #fff;
    font-size: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.back-to-top.show {
    display: flex;
}

/* 付费提示卡片样式 */
.paywall-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.paywall-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.paywall-text .jingcaidou {
    color: #ff4757;
    font-weight: 600;
    margin: 0 4px;
}

.paywall-text .how-to-get {
    color: #ff4757;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 4px;
}

.paywall-button {
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.paywall-button:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.paywall-button:active {
    transform: translateY(0);
}


/* PC端布局（>=767px） */
@media (min-width: 767px) {
    body {
        width: 80%;
        margin: 0 auto;
    }

    .history,
    .shortcut {
        float: left;
        width: calc(50% - 6px);
    }

    .history {
        margin-right: 12px;
    }

    /* 保持卡片底部间距一致 */
    .shortcut {
        margin-top: 12px;
    }

    /* 清除浮动，避免影响后续布局 */
    .page:after {
        content: "";
        display: block;
        clear: both;
    }
}
