

:root {
    --ss: #4292ef;
    --qs: #72c3ff;
    --qs2: #e7f1fc;
    --wzs: #ffff00;
}

/* 
   【0】全局重置 & 基础样式
 /* ============================================================
   tb.css - 全局CSS变量
   ============================================================ */


*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    max-width: 380px;
    background: #ededed;
    text-align: center;
    font-family: "HongLeiXingShu", "KaiTi", cursive;
}




/* 
     【1】动态模块容器（所有图片板块 + 预测表格板块）
    */

#mokuaiContainer .list {
    margin-top:5px;
    width: 100%;
    display: none;
}



/* 
    箭头图片（旋转90度）
    */


.jt {
    width: 30px;
    height: auto;
    transform: rotate(90deg);
}




.list1 {
    margin-top:5px;
    width: 100%;
    display: none;
}



/*
   【1】头部 LOGO（板块：顶部 logo 区）
*/

.logo {
    width: 100%;
    padding: 5px 10px;
    background: ;
    text-align: center;
    overflow: hidden;
}

.logo-img {
    width: 50%;
    float: left;
}

.logo-span {
    font-size: 24px;
    font-weight: bold;
    float: left;
    color: #fff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(0, 0, 0, 0.15);
    align-items: flex-end;
    height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 1px;
    margin-top: 20px;
}




.xz-img {
    float: right;
    width: 40px;
    display: inline-block;
    animation: rotateClockwise 3s linear infinite;
}

@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/*
   【2】页面通用全宽容器式样
*/

/* ---- 全宽容器：div 全宽，内部内容居中 ---- */
.all {
    background: var(--ss); /* ========================深的背景颜色======================== */
    width: 100%;
    margin: 0 auto;
    padding: 10px 0px;
    border-radius: 4px;
    overflow: hidden;
    color: #ffff00;
    margin-top: 5px;
}





/* ---- 全宽容器：div 全宽，内部内容居中 ---- */
.all-qs {
    background: var(--qs); /* ========================深的背景颜色======================== */
    width: 100%;
    margin: 0 auto;
    padding: 10px 0px;
    border-radius: 4px;
    overflow: hidden;
    color: #ffff00;
    margin-top: 5px;
}



/* ---- 全宽容器：div 全宽，内部内容居中 ---- */
.all-qs2 {
    background: var(--qs2); /* ========================深的背景颜色======================== */
    width: 100%;
    margin: 0 auto;
    padding: 10px 0px;
    border-radius: 4px;
    overflow: hidden;
    color: #ffff00;
    margin-top: 5px;
}

/* ---- 全宽容器：div 全宽，内部内容居中 ---- */
.all-qs2-border {
    background: var(--qs2); /* ========================深的背景颜色======================== */
    width: 100%;
    margin: 0 auto;
    padding: 10px 0px;
    border-radius: 4px;
    overflow: hidden;
    color: #ffff00;
    margin-top: 5px;
    border: 1px solid var(--ss);
}






.all-img {
    width: 100%;
    overflow: hidden;
    margin-top: 5px;
}

/* ---- 内部行：放在 .all 里面，占满一行，文字居中 ---- */
.all-row {
    display: block;
    width: 100%;
    text-align: center;
    margin: 4px 0;
    font-size: 20px;
    color: #ffff00;
    overflow: hidden;
}


/*
   卡片式样5个卡片，一行排列
*/

/* ---- 容器：flex 横向排列 ---- */
.all-1-row {
    background: var(--qs2); /* ========================深的背景颜色======================== */
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 5px 5px;
    overflow-x: auto;
    border-radius: 8px;
}

/* 只要 span 的样式 */
.all-1-row-span {
    display: inline-block;
    font-size: 26px;
    font-weight: 900;
    color: #ffff00;
    letter-spacing: 4px;
    padding: 4px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* ---- 每个卡片：flex:1 等 ---- */
.card-item {
    flex: 1;
    min-width: 0;
    padding: 2px;
    background: var(--qs2);; /* ========================浅的背景颜色======================== */
    border-radius: 6px;
    text-align: center;
}

/* ---- 卡片中的图片：占满宽度 ---- */
.card-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 0px solid #9c0701;
}

/* ---- 卡片中的按钮：占父容器80%，居中 ---- */
.card-btn {
    display: block;
    width: 96%;
    margin: 6px auto 0;
    padding: 4px 0;
    background: var(--ss); /* ========================按钮颜色==================================== */
    color: #ffff00;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.card-btn:hover {
    opacity: 0.8;
}


/*
   按钮样式
*/

.a-btn {
    width: 30%;
    margin: 6px auto 0;
    padding: 5px 20px;
    background: var(--ss); /* ========================按钮背景======================== */
    color: #ffff00;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}


/*
   闪烁文字式样（动画）
*/

.sd {
    display: inline-block;
    font-weight: bold;
    padding: 4px 8px;
    animation: colorFlash 0.2s ease-in-out infinite;
}

@keyframes colorFlash {
    0% { color: #ff0000; }
    20% { color: #ff4500; }
    40% { color: #ffff00; }
    50% { color: #00ff00; }
    60% { color: #1e90ff; }
    80% { color: #8b00ff; }
    100% { color: #ff0000; }
}


/*
   【3】弹窗（板块：开奖弹窗）
*/

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #f5f0e8;
    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;
    border-bottom: 1px solid #e0d5c0;
    font-weight: bold;
    color: #8b5e3c;
    font-size: 18px;
    position: relative;
    background: #fff8f0;
}

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

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

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #8b5e3c;
    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: #8b5e3c;
}

.number-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 5px;
}

.number-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.number-item {
    background: #fff;
    color: #8b5e3c;
    font-size: 14px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    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 #e0d5c0;
}

.divider {
    height: 1px;
    background: #e0d5c0;
    margin: 8px 16px;
}

.hx-section {
    background: #fff8f0;
    border-radius: 12px;
    margin: 8px;
    padding: 8px;
    border: 1px solid #e0d5c0;
}

.hx-text {
    font-size: 24px;
    font-weight: bold;
    color: #c9863a;
    letter-spacing: 6px;
    margin: 8px 0;
}

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



/* 
   【2】公告滚动条（板块：公告）
    */

.notice-card {
    background: #fff;
    width: 100%;
    max-width: 380px;
    border: solid 1px #b8b8b8;
    border-radius: 6px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1px;
}

.notice-header .badge {
    background: #007d45;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 20px;
    margin-left: 10px;
    margin-top: 2px;
    border-radius: 40px;
}

.scroll-container {
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

.marquee-wrapper {
    display: inline-block;
    white-space: nowrap;
    animation: slideRightToLeft 20s linear infinite;
}

.notice-content {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: #007d45;
}

.notice-content::before {
    content: "📢 ";
    margin-right: 10px;
}

.notice-text {
    height: 28px;
    display: inline-block;
    line-height: 28px;
}

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

.scroll-container:hover .marquee-wrapper {
    animation-play-state: paused;
}


/* 
   【3】对照表区域（板块：底部所有对照表）
    */

.container {
    max-width: 380px;
    margin-top: 15px;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.tbl td {
    border: 1px solid #ccc;
    padding: 6px 3px;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}

.tbl .hd td {
    background-color: var(--ss);/*==========================改色主题深色==================================）*/
    color: var(--wzs); /*==========================文字颜色==================================）*/
    font-weight: bold;
    font-size: 14px;
    padding: 8px;
}

.tbl.two {
    table-layout: auto;
}

.tbl.two td {
    text-align: center;
}

/* ---- 对照表 - 号码文字颜色（波色） ---- */
.r { color: #e53935; font-weight: bold; }
.b { color: #1e88e5; font-weight: bold; }
.g { color: #43a047; font-weight: bold; }
.gold { color: #d4af37; font-weight: bold; }
.e { color: #8d6e63; font-weight: bold; }

/* ---- 对照表 - 单元格背景色 ---- */
.bg-r { background: #ffebee; }
.bg-b { background: #e3f2fd; }
.bg-g { background: #e8f5e9; }
.bg-y { background: #fff8e1; }
.bg-w { background: #f3e5f5; }
.bg-e { background: #e8f5e9; }

/* ---- 对照表 - 号码列表（左对齐，自动换行） ---- */
.nums {
    text-align: left;
    line-height: 1.5;
    word-break: break-word;
}

/* ---- 对照表 - Grid 布局（用于家野/日夜/阴阳等分类） ---- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 4px;
    padding: 2px 4px;
    background: #f0fff0;
}

.grid-container span {
    display: block;
    padding: 2px 4px;
    text-align: center;
    color: #008b45;
    font-size: 14px;
}

.grid-container-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 2px 4px;
    background: #f0fff0;
}

.grid-container-full span {
    display: block;
    padding: 2px 4px;
    text-align: center;
    color: #008b45;
    font-size: 14px;
}




/* 
   【4】底部声明区（板块：底部版权/免责声明）
    */

.all-list {
    width: 100%;
    padding: 20px 2px;
    color: #f0ffff;
    text-align: left;
}

.sm {
    color: #333;
    background: #ffffff;
    border-radius: 4px;
    padding: 10px;
    margin: 10px;
    text-align: left;
}


/* 
   【5】响应式微调（移动端适配）
    */

@media (max-width: 380px) {
    .tbl td {
        padding: 4px 2px;
        font-size: 11px;
    }
    .tbl .hd td {
        font-size: 12px;
        padding: 6px;
    }
    .mb-title {
        font-size: 18px;
    }
}
