html {
    font-size: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: default;
    box-sizing: border-box;
    background-color: #d7d9db;
    color: #333333;
    gap: 5px;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    body {
        width: 100%;
    }
}

/* ---------- 顶部：标志栏 / 最新开奖条（按 720 宽等比缩放） ---------- */
.zt-head {
    --u: calc(min(100vw, 800px) / 720);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #faf8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* 手机上整块导航放大（约 1.6 倍） */
@media (max-width: 600px) {
    .zt-head { --u: calc(100vw / 440); }
}

.zh-blank {
    flex: none;
    height: 86px;
    margin-bottom: -5px;
}

.zt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--u) * 40);
    padding: 0 calc(var(--u) * 4);
}

.zt-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 3);
    line-height: 1;
    text-decoration: none;
}

.zt-logo-n {
    color: #e71607;
    font-size: calc(var(--u) * 32);
    font-weight: 900;
    letter-spacing: 0;
}

.zt-logo-s {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--u) * 3);
}

.zt-logo-s i {
    padding: calc(var(--u) * 2) calc(var(--u) * 4);
    border-radius: calc(var(--u) * 3);
    background: #1fb61d;
    color: #fff;
    font-size: calc(var(--u) * 13);
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.zt-logo-s em {
    color: #222;
    font-size: calc(var(--u) * 17);
    font-style: normal;
    font-weight: 900;
}

.zt-home {
    display: flex;
    flex-direction: column;
    flex: none;
    text-decoration: none;
}

.zt-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--u) * 4);
    padding: 0 calc(var(--u) * 3);
    background: linear-gradient(180deg, #3cb83c, #158a15);
    line-height: 1;
}

.zt-home-top b {
    color: #fff;
    font-size: calc(var(--u) * 15);
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow: 0 1px 0 #0b5a0b, 0 0 2px #0b5a0b;
}

.zt-home-top em {
    padding: 0 calc(var(--u) * 3);
    border-radius: calc(var(--u) * 3);
    background: #0f7a14;
    color: #fff;
    font-style: normal;
    font-size: calc(var(--u) * 8);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}

.zt-home-bot {
    padding: calc(var(--u) * 1) calc(var(--u) * 3);
    background: linear-gradient(180deg, #fff, #ddd);
    color: #333;
    font-size: calc(var(--u) * 14);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.zt-home-bot b {
    color: #e71607;
    font-weight: 900;
}

/* ---------- 小开奖区（紧挨导航栏） ---------- */
.zt-open {
    display: flex;
    height: calc(var(--u) * 50);
    background: #fff;
    text-align: center;
}

.zt-qs {
    flex: 122.7 1 0;
    min-width: 0;
    padding: calc(var(--u) * 2) 0;
    box-sizing: border-box;
    line-height: 1;
}

.zt-qs b {
    display: block;
    margin: calc(var(--u) * 2) 0 calc(var(--u) * 4);
    color: #000;
    font-size: calc(var(--u) * 16);
    font-weight: 800;
}

.zt-qs a {
    display: inline-block;
    background: #ff0;
    color: #f00;
    font-size: calc(var(--u) * 14);
    font-weight: 800;
    text-decoration: none;
}

.zt-ball {
    flex: 82 1 0;
    min-width: 0;
    border-left: 1px solid #fff;
    color: #333;
    font-size: calc(var(--u) * 18);
    font-weight: 700;
    line-height: calc(var(--u) * 25);
}

.zt-ball i {
    display: block;
    height: calc(var(--u) * 20);
    color: #fff;
    font-style: normal;
    font-size: calc(var(--u) * 20);
    line-height: calc(var(--u) * 20);
}

.zt-ball.red i { background: #e71607; }
.zt-ball.blue i { background: #2389e9; }
.zt-ball.green i { background: #1fb61d; }

.zt-reload {
    flex: 24 1 0;
    min-width: 0;
    background: #ff0;
    color: #f00;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: calc(var(--u) * 16);
    font-weight: 800;
    line-height: calc(var(--u) * 22);
}

.zt-btns {
    display: flex;
    gap: calc(var(--u) * 12);
    padding: calc(var(--u) * 8) calc(var(--u) * 5) calc(var(--u) * 3);
    background: #fff;
}

.zt-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 6);
    flex: 1;
    min-width: 0;
    height: calc(var(--u) * 45);
    border: 1px solid #67a4f5;
    border-radius: calc(var(--u) * 20);
    background: linear-gradient(to top, #fff, #eee, #fff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: calc(var(--u) * 29);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.zt-btns a img {
    flex: none;
    width: calc(var(--u) * 34);
    height: calc(var(--u) * 34);
}

.zt-btns a.is-blue { color: #00f; }
.zt-btns a.is-red { color: #f00; }

/* ---------- 导航下面的网址提示 ---------- */
.zt-notice {
    --u: calc(min(100vw, 800px) / 720);
    box-sizing: border-box;
    width: 100%;
    padding: calc(var(--u) * 12) calc(var(--u) * 8) calc(var(--u) * 10);
    border: 3px solid #ffd21f;
    border-radius: calc(var(--u) * 16);
    background: linear-gradient(180deg, #ffb3b8 0%, #ff6f7a 55%, #e8232f 100%);
    text-align: center;
    line-height: 1;
}

.zt-notice p {
    margin: 0;
}

.zt-notice-tag {
    display: inline-block;
    padding: calc(var(--u) * 8) calc(var(--u) * 26);
    border: 2px solid #fff6b0;
    border-radius: calc(var(--u) * 30);
    background: linear-gradient(180deg, #fff176, #ffc400);
    color: #c40000;
    font-size: calc(var(--u) * 24);
    font-weight: 900;
    white-space: nowrap;
}

.zt-notice-url {
    margin: calc(var(--u) * 14) 0 calc(var(--u) * 12);
    font-size: calc(var(--u) * 62);
    font-weight: 900;
    white-space: nowrap;
}

.zt-notice-lead {
    color: #fff;
    text-shadow: 0 2px 0 #c2185b, 0 0 6px rgba(194, 24, 91, 0.6);
}

.zt-notice-url b,
.zt-notice-url i {
    font-style: normal;
    text-shadow: 0 2px 0 #fff, 0 0 4px #fff;
}

.zt-notice-url b { color: #f00; }
.zt-notice-url i { color: #00f; }

.zt-notice-sub {
    color: #fff;
    font-size: calc(var(--u) * 22);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(194, 24, 91, 0.7);
}

/* ---------- 开奖区 ---------- */
.kaijiang_qu {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    overflow: hidden;
    background: #ffffff;
}

.kaijiang_qu_title {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 46px;
    padding: 0;
    box-sizing: border-box;
    background: #eeeeee;
}

.kaijiang_tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 4px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    border-right: 1px solid rgba(6, 193, 96, 0.18);
    background: #eafff3;
    color: #07964d;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.kaijiang_tab:last-child {
    border-right: 0;
}

.kaijiang_tab strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    line-height: 22px;
    white-space: normal;
    word-break: keep-all;
}

.kaijiang_tab.is-active {
    background: #06c160;
    border-right-color: #06c160;
    color: #ffffff;
}

.kaijiang_qu_content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 154px;
    color: #999999;
    font-size: 15px;
}

.kaijiang_qu_content p {
    margin: 0;
}

.kaijiang_iframe_wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.kaijiang_iframe_wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .kaijiang_qu_title,
    .kaijiang_tab {
        height: 44px;
    }

    .kaijiang_tab strong {
        font-size: 16px;
        line-height: 20px;
    }

    .kaijiang_qu_content {
        height: 156px;
    }
}

/* ---------- 资料区 / 6 个图位 / 玄机彩图 ---------- */
:root {
    --zh1: #e53935;
    --zh2: #8e0000;
    --zhac: #e53935;
}

.zl-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tu_slot {
    display: none;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.tu_slot.has-image {
    display: block;
}

.tu_slot img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.zl-xjct {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid var(--zhac);
    box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    line-height: 1.75;
}

.zl-xjct th {
    padding: 4px;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, var(--zh1), var(--zh2));
}

.zl-xjct td {
    padding: 0;
    text-align: center;
    border: 1px dashed #c0c0c0;
}

.zl-xjct td a {
    display: block;
    padding: 4px 2px;
    color: #1f62c9;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.zl-xjct td:nth-child(4n+2) a { color: #d32f2f; }
.zl-xjct td:nth-child(4n+3) a { color: #1b8f3a; }
.zl-xjct td:nth-child(4n) a { color: #1f62c9; }

.zl-xjct td a:hover {
    background: #ffe9e9;
}

/* ---------- 精华帖子（绿色标题，帖子红蓝绿轮换） ---------- */
.zl-bbs {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(#e8f8ec, #c9efd3);
    border-top: 1px solid #9bd8ad;
    border-bottom: 1px solid #9bd8ad;
}

.zl-bbs-in {
    padding: 10px 0;
    background: #fff;
    border: 1px solid #9bd8ad;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zl-bbs-h {
    margin: 0 10px 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 36px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: linear-gradient(to right, #1fb61d, #0e8a14);
    border-radius: 6px;
}

.zl-bbs ul {
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.zl-bbs li {
    padding: 2px 0;
}

.zl-bbs li a {
    display: block;
    height: 34px;
    overflow: hidden;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(to top, #fff, #f7fff9);
    border: 1px solid #b7e3c2;
    border-radius: 6px;
}

.zl-bbs li span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zl-bbs li i {
    font-style: normal;
}

.zl-bbs li:nth-child(3n+1) i { color: #d40000; }
.zl-bbs li:nth-child(3n+2) i { color: #0050e6; }
.zl-bbs li:nth-child(3n) i { color: #12921a; }

.zl-bbs li a:hover {
    background: linear-gradient(to top, #f0fff4, #dcf7e3);
}

.zl-art-p {
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #0e6a14;
}

/* ---------- 页脚说明 ---------- */
.zl-footer {
    padding: 4px;
    border: 2px solid #9bd8ad;
    border-radius: 5px;
    background: #fff;
    color: #555;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}

.zl-footer dl {
    padding: 0 10%;
    margin: 0;
}

.zl-footer dt {
    padding: 5px 0;
    font-weight: 700;
    color: #0050e6;
    border-bottom: solid 1px #738e9f;
}

.zl-footer dd {
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid #d9efe0;
}

.zl-footer dd:last-child {
    border-bottom: 0;
}

.zl-footer b {
    color: #d40000;
}

#zlLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    overflow: auto;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

#zlLightbox img {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .zl-xjct td a { font-size: 14px; }
    .zl-bbs li a { font-size: 14px; }
}

/* ---------- 底部图片 ---------- */
.zl-fixed {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.zl-fixed img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}
