/* ============================================================
   区域13：弹窗（.modal-overlay / .modal-box）
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
}

.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 380px;
    background: var(--qs);
    border-radius: 16px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 12px 16px;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
    position: relative;
    background: var(--jbs1);
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

.modal-body {
    padding: 10px;
    text-align: center;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--jbs2);
    padding: 6px 0;
    letter-spacing: 2px;
}

.section-title-fff {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    padding: 6px 0;
    letter-spacing: 2px;
}

.six-number {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px;
    font-size: 22px;
    font-weight: bold;
    color: var(--jbs2);
}

/* ===== 新增：六肖单个样式 ===== */
.six-item {
    color: var(--jbs2);
}

/* 16码网格 */
.number-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 5px;
}

/* ===== 新增：16码每行样式 ===== */
.number-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 修改：匹配 HTML 中的 class="num-item" ===== */
.num-item2 {
    color: var(--jbs2);
    font-size: 13px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--jbs2);
    flex-shrink: 0;
}

.divider {
    height: 1px;
    background: var(--jbs2);
    margin: 8px 16px;
}

.hx-section {
    background: var(--qs);
    border-radius: 12px;
    margin: 8px;
    padding: 8px;
}

.hx-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--jbs2);
    letter-spacing: 6px;
    margin: 8px 0;
}

.img-hx {
    border-radius: 12px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-top: 6px;
}