/* mb.css - 预测板块样式 */

/* ============================================================
   每个字段一个表格（网格布局）
   ============================================================ */
.mb-tables-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
}

.field-table-wrap {

    color: #000;
    border-radius: 5px 5px 0 0;  /* 左上角、右上角圆角，左下角、右下角无圆角 */
    border: 0px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.field-table-wrap:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================================
   表格样式
   ============================================================ */
.field-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto;  /* 自动布局，由内容决定宽度 */
    font-weight: 700;
    
}

.field-table thead {
    background: #f5f5f5;
}

.field-table th {
    padding: 4px 6px;
    text-align: center;
    font-weight: bold;
    color: #000000;
    border-bottom: 0px solid #ddd;
    font-size: 11px;
    white-space: nowrap;
}

.field-table td {
    padding: 4px 6px;
    border-bottom: 0px solid #f0f0f0;
    line-height: 1.1;
}

.field-table tr:last-child td {
    border-bottom: none;
}

.field-table tr:hover {
    background: #fff;
}

/* ============================================================
   三列宽度：第1列靠左 | 第2列居中占剩余 | 第3列靠右
   ============================================================ */
.field-table .col-qid,
.field-table .row-qid {
    white-space: nowrap;
    text-align: left;
    width: 1px;           /* 最小宽度，实际由内容决定 */
}

.field-table .col-value,
.field-table .row-value {
    text-align: center;
    /* 不设置宽度，自动占满剩余空间 */
}

.field-table .col-t7,
.field-table .row-t7 {
    white-space: nowrap;
    text-align: right;
    width: 1px;           /* 最小宽度，实际由内容决定 */
}

/* ============================================================
   表头标题行
   ============================================================ */
.field-table .table-header-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--fff);
    padding: 8px 6px;
    background: var(--btbs);
    border-bottom: 0px solid #d0dbe8;
}

.field-table .table-header-row {
    text-align: center;
    padding: 4px 6px;
    background: red;
}

/* ============================================================
   数据行样式
   ============================================================ */
.field-table .row-qid {
    color: #666666;         /* 第1列 - 期号列颜色（蓝色） */
    font-weight: 500;
    font-size: 12px;
}

.field-table .row-value {
    opacity: 0.9;
    font-size: 13px;
    font-weight: 500;
    color: #4d4d4d;         /* 第2列 - 预测列颜色（绿色） */
}

.field-table .row-t7 {
    font-size: 13px;
    font-weight: 500;
    color: #4d4d4d;        /* 第3列 - 开奖列颜色（红色） */
    opacity: 0.8;
}

.field-table .row-t7 .t7-number {
    font-weight: 700;
}

.field-table .row-t7 .t7-attr {
    font-weight: 400;
    color: #000000;
    font-size: 12px;
    margin-left: 0;
}

.field-table .empty {
    color: #ddd;
}

.empty-tip {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================================
   命中样式
   ============================================================ */
.hit-item {
    color: #ff0000 !important;  /* 命中的项变红色 */
    font-weight: 700;
}


/*准 字*/
.hit-tag {
    display: inline-block;
    background: var(--jbs1);
    color: #ffffff;
    font-size: 8px;
    padding-top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    text-align: center;
    vertical-align: middle;
    margin-left: 0;
}

/*错字*/
.cuo-tag {
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    font-size: 8px;
    padding-top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    text-align: center;
    vertical-align: middle;
    margin-left: 0;
}


/* 开奖号码命中红色 */
.field-table .t7-number.hit-number {
    color: #ff0000 !important;
    font-weight: 700;
}

/* 开奖单元格整体命中红色 */
.field-table .t7-cell-content.hit-number {
    color: #ff0000 !important;
    font-weight: 700;
}

/* sjg 特殊样式 */
.sjg-line {
    text-align: center;
    line-height: 1.8;
    font-size: 14px;
}

.sjg-strong {
    font-size: 16px;
    color: #ff0000;
}

.sjg-line .hit-item {
    color: #ff0000 !important;
    font-weight: 700;
}

/* 开奖列命中红色（复用已有样式） */
.field-table .hit-item {
    color: #ff0000 !important;
    font-weight: 700;
}

/* 总行前缀 - 命中闪烁 */
.prefix-hit {
    font-size: 6px;
    color: #00ff7f;
    display: inline-block;
    margin-right: 4px;
    animation: pulse-hot 0.8s ease-in-out infinite;
}

/* 总行前缀 - 未命中闪烁 */
.prefix-miss {
    font-size: 5px;
    color: #ee0000;
    display: inline-block;
    margin-right: 6px;
    animation: pulse-hot 0.8s ease-in-out infinite;
}

@keyframes pulse-hot { 
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}





/* 尾数命中背景色（带圆角） */
.hit-bg {
    background: #ff0000;
    color: #ffffff;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 700;
}





/* ============================================================
   mtm 板块独立样式
   ============================================================ */

/* 外容器 */
.mtm-wrap {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 10px;
}

/* 外层表格 */
.mtm-table {
    width: 100%;
    border-collapse: collapse;
}

/* 表头 */
.mtm-header {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    padding: 10px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 月份标题行 */
.mtm-title {
    text-align: center;
    font-weight: 700;
    padding: 8px 0;
    background: #f5f7fa;
    border-bottom: 2px solid #e8e8e8;
    font-size: 15px;
    color: #333;
}

/* 命中数量 */
.mtm-count {
    color: #ff0000;
    font-weight: 700;
    font-size: 16px;
}

/* 内嵌表格 */
.mtm-inner-table {
    width: 100%;
    border-collapse: collapse;
}

/* 内嵌表格单元格 */
.mtm-cell {
    text-align: left;
    padding: 4px 1px;
    border: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}



.mtm-cell strong {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px 4px;
    border-radius: 2px;
    color: #fff;
}


/* 强制去掉所有链接样式 */
.mtm-cell a,
.mtm-cell a:link,
.mtm-cell a:visited,
.mtm-cell a:hover,
.mtm-cell a:active {
    color: #333;
    text-decoration: none !important;
}

/* 命中背景（黄底红字） */
.mtm-hit {
    background: var(--jbs1);
    color: #ffffff  !important;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
}






/* 额外行样式 */
.mtm-row {
    text-align: center;
    padding: 6px 12px;
}



/* ============================================================
   lw 板块（尾数）独立样式
   ============================================================ */

/* 命中背景（红底白字） */
.lw-hit {
    background: #ffff00;
    color: #4d4d4d;
    padding: 0 2px;
    border-radius: 1px;
    font-weight: 700;
}

/* 命中数量（有命中） */
.lw-count {
    color: #ff0000;
    font-weight: 700;
    font-size: 13px;
}

/* 命中数量（0命中） */
.lw-count-zero {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

