:root {
    --site4-quick-nav-bg: #b83b3b;
}

* {
            box-sizing: border-box;
        }

        


        .container {
            width: 100%;
            max-width: 480px;
            margin: auto;
            padding: 10px;
        }


        /* 顶部公告 */
        .top-notice {
            background: #1c1c1c;
            /* border-radius: 12px; */
            padding: 12px;
            /* margin-bottom: 12px; */
            box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
            color: #00df31;
            font-size: 14px;
        }


        /* 通用卡片 */
        .card {
            background: #fff;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
        }


        /* 标题 */
        .section-title {
            font-size: 18px;
            font-weight: bold;
            color: #222;
            padding-bottom: 10px;
            margin-bottom: 12px;
            border-bottom: 1px solid #eee;
        }




        .current-time {
            text-align: center;
            font-size: 13px;
            line-height: 18px;
            color: #888;
            margin: 2px 0;
        }

        /* 开奖区域 */

        


        .lottery-title {
            font-size: 20px;
            font-weight: bold;
        }





        .ball-list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            margin: 15px 0;
        }





        .red {
            background: #e53935;
        }

        .blue {
            background: #1976d2;
        }

        .green {
            background: #43a047;
        }


        /* 快捷入口 */

        .quick-menu {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }


        .quick-item {
            background: #fff;
            border-radius: 14px;
            padding: 15px 5px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
        }


        .quick-item img {
            width: 30px;
        }


        .quick-name {
            margin-top: 8px;
            font-size: 13px;
        }



        /* 内幕卡片 */

        .insider-card {
            /* background: #fff; */
            /* border-radius: 8px; */
            padding: 5px;
            overflow: hidden;
            /* margin-bottom: 15px; */
            text-align: center;
            color: #252525;
            /* border-left: 4px solid #e53935; */
            /* box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08); */
        
            margin-bottom: 5px;
        }

        .insider-item {
            display: flex;
            font-size: var(--insider-random-font-size);
            font-weight: var(--insider-random-font-weight);
            align-items: center;
            justify-content: center;
            border: 1px solid #ddd;
            padding: 8px 5px;
            /* margin-bottom: 5px; */
            box-sizing: border-box;
            border-bottom: 1px solid #eee;

        }




        .insider-title {
            font-size: var(--insider-card-nav-font-size);
            font-weight: var(--insider-card-nav-font-weight);
            line-height: 40px;
            color: #ffffff;
            background: #9900a7;
            height: 40px;
            /* 标题背景 */
        
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 0;
            padding: 0 8px;
            box-sizing: border-box;
            text-align: center;
        }

        /* 卡片内容颜色 */
        .insider-content {
            /* border-right: 1px solid #ddd; */
            width: 50%;
            text-align: center;
            color: #333333;
            /* 深灰色 */
            
        }

        /* 八码、12码、24码、36码：每行固定显示6个号码 */
.insider-number-lines {
    width: 100%;
    text-align: center;
}

.insider-number-row {
    display: block;
    width: 100%;
    color: #333;
    line-height: 22px;
    text-align: center;
    white-space: nowrap;
}

/* 横杠采用原来的普通文字样式，不使用绝对定位 */
.insider-number-separator {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}


        /* 期号颜色 */
        .insider-issue {
            /* border-right: 1px solid #ddd; */
            width: 25%;
            font-size: inherit;
            font-weight: inherit;
            text-align: center;
            color: #333333;
            /* 蓝色 */
        }


        /* 开奖结果颜色 */
        .insider-result {
            width: 20%;
            font-size: inherit;
            font-weight: inherit;
            text-align: center;
            /* color: #e53935; */
        }

        .insider-result.result-correct {
            color: #27db54 !important;
            font-weight: inherit;
        }

        .insider-result.result-wrong {
            color: #ff0000 !important;
            font-weight: inherit;
        }

        .insider-result.result-unknown {
            color: #999 !important;
            font-weight: inherit;
        }



        .insider-item b,
        .insider-item strong,
        .insider-item em {
            font-size: inherit;
            font-weight: inherit;
        }

        /* 图片推荐 */

        .gallery-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }


        


        


        .gallery-name {
            padding: 10px;
            font-weight: bold;
        }

        /* 图库论坛推荐 */

        


        .gallery-title {

            font-size: 18px;

            font-weight: bold;

            text-align: center;

            padding-bottom: 12px;

            margin-bottom: 12px;

            border-bottom: 1px solid #eee;

        }


        


        .gallery-item:last-child {

            border-bottom: none;

        }


        /* 左侧图片固定 */

        .gallery-item-left {

            width: 55px;

            height: 55px;

            flex-shrink: 0;

            margin-right: 12px;

        }


        .gallery-icon {

            width: 55px !important;

            height: 55px !important;

            border-radius: 12px;

            object-fit: cover;

            display: block;

        }


        /* 没图片时 */

        .gallery-icon-placeholder {

            width: 55px;

            height: 55px;

            display: flex;

            align-items: center;

            justify-content: center;

            background: #f5f5f5;

            border-radius: 12px;

            font-size: 25px;

        }



        /* 右侧文字 */

        .gallery-item-right {

            flex: 1;

            min-width: 0;

        }


        .gallery-item-name {

            font-size: 16px;

            font-weight: bold;

            color: #222;

            margin-bottom: 2px;

            line-height: 22px;

        }


        .gallery-item-title {

            font-size: 14px;

            color: #e53935;

            font-weight: bold;

            line-height: 20px;

        }

        .gallery-card .gallery-item {

            margin: 0 !important;

            padding: 6px 5px !important;

            min-height: 55px !important;

            height: 80px !important;

        }


        .gallery-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px !important;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}


        .gallery-card .gallery-item-left {

            height: 45px !important;

        }


        .gallery-card .gallery-icon {

            width: 45px !important;

            height: 45px !important;

        }


        /* 箭头 */

        .gallery-arrow {

            font-size: 28px;

            color: #ccc;

            margin-left: 10px;

        }



        /* =========================
   首页系统弹窗
========================= */

        .site-modal {
            position: fixed;
            z-index: 99999;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;

            display: none;
            align-items: center;
            justify-content: center;

            padding: 20px;
            box-sizing: border-box;

            background: rgba(0, 0, 0, 0.58);
            overflow-y: auto;
        }

        .site-modal.show {
            display: flex;
        }

        .site-modal-content {
            position: relative;
            width: 100%;
            max-width: 390px;
            max-height: calc(100vh - 40px);

            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);

            animation: siteModalOpen 0.22s ease-out;
        }

        @keyframes siteModalOpen {
            from {
                opacity: 0;
                transform: translateY(15px) scale(0.96);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .site-modal-close {
            position: absolute;
            z-index: 3;
            top: 8px;
            right: 8px;

            display: flex;
            align-items: center;
            justify-content: center;

            width: 30px;
            height: 30px;

            color: #fff;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;

            font-size: 23px;
            line-height: 1;
            cursor: pointer;
        }

        .site-modal-img {
            display: block;
            width: 100%;
            max-height: 300px;
            height: auto;
            object-fit: contain;
            background: #f5f5f5;
        }

        .site-modal-text {
            padding: 18px 20px 14px;
            overflow-y: auto;
            max-height: 45vh;
            box-sizing: border-box;
        }

        .site-modal-title {
            margin-bottom: 12px;
            padding: 0 28px;

            color: #222;
            font-size: 19px;
            font-weight: bold;
            line-height: 1.5;
            text-align: center;
        }

        .site-modal-body {
            color: #555;
            font-size: 15px;
            line-height: 1.8;
            text-align: left;
            word-break: break-word;
        }

        .site-modal-btn {
            margin: 0 20px 18px;
            padding: 11px 10px;

            color: #fff;
            background: #5030df;
            border-radius: 8px;

            font-size: 16px;
            font-weight: bold;
            text-align: center;
            cursor: pointer;
        }

        .site-modal-btn:active {
            opacity: 0.85;
        }

        body.site-modal-open {
            overflow: hidden;
        }

        @media (max-width: 480px) {
            .site-modal {
                padding: 15px;
            }

            .site-modal-content {
                max-width: 360px;
                max-height: calc(100vh - 30px);
                border-radius: 14px;
            }

            .site-modal-img {
                max-height: 260px;
            }

            .site-modal-text {
                padding: 16px 18px 12px;
            }

            .site-modal-title {
                font-size: 18px;
            }

            .site-modal-body {
                font-size: 14px;
            }
        }



        /* 底部导航 */

        .bottom-nav {

            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;

            max-width: 480px;

            left: 50%;
            transform: translateX(-50%);

            height: 60px;

            background: #fff;

            display: flex;
            justify-content: space-around;
            align-items: center;

            box-shadow: 0 -3px 15px rgba(0, 0, 0, .08);

            z-index: 999;

        }


        .bottom-nav a {

            text-decoration: none;

            color: #666;

            font-size: 13px;

        }


        body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333;
    font-family: -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                "Microsoft YaHei",
                sans-serif;
    padding-bottom: 70px;
}



        @media(max-width:480px) {

            .container {
                padding: 8px;
            }

        }

        /* 所有图片统一限制 */

        img {
            max-width: 100%;
            height: auto;
        }


        /* 轮播图 */
        .banner {
            position: relative;
            width: 100%;
            overflow: hidden;
            /* background: #1c1c1c; */
            /* border-radius: 8px 8px 0 0; */
            margin-bottom: 0;
            /* padding-bottom: 24px; */
        }

        .swiper-wrapper {
            display: flex;
            width: 100%;
            transition: transform 0.45s ease;
            will-change: transform;
        }

        .swiper-slide {
            flex: 0 0 100%;
            width: 100%;
            min-width: 100%;
        }

        /* 图片按自身比例自适应 */
        .swiper-slide img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        /* 左右按钮 */
        .swiper-prev,
        .swiper-next {
            position: absolute;
            top: 50%;
            z-index: 5;
            width: 30px;
            height: 42px;
            padding: 0;
            border: 0;
            border-radius: 4px;
            color: #fff;
            background: rgba(0, 0, 0, 0.28);
            font-size: 28px;
            line-height: 42px;
            text-align: center;
            transform: translateY(-50%);
            cursor: pointer;
        }

        .swiper-prev {
            left: 6px;
        }

        .swiper-next {
            right: 6px;
        }

        /* 轮播圆点 */
        .swiper-dots {
            position: absolute;
            right: 0;
            bottom: 8px;
            left: 0;
            z-index: 5;
            display: flex;
            justify-content: center;
            gap: 7px;
        }

        .swiper-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.55);
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
            cursor: pointer;
        }

        .swiper-dot.active {
            width: 16px;
            border-radius: 8px;
            background: #fff;
        }

        @media (max-width: 768px) {
            .banner {
                border-radius: 5px;
            }

            .swiper-prev,
            .swiper-next {
                width: 26px;
                height: 38px;
                font-size: 24px;
                line-height: 38px;
            }
        }

        /* 首页快捷跳转导航 */
        .quick-nav {
            position: sticky;
            top: 0;
            z-index: 9990;

            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 8px 6px;

            padding: 10px 8px;
            margin-bottom: 4px;

            background: #ffffff;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        }

        .quick-nav-item {
            display: block;
            min-width: 0;

            color: #111;
            text-decoration: none;

            -webkit-tap-highlight-color: transparent;
        }

        .quick-nav-name {
            display: flex;
            align-items: center;
            justify-content: center;

            width: 100%;
            height: 36px;
            padding: 0 2px;

            color: #ffffff;
            background: var(--site4-quick-nav-bg);
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(70, 98, 140, 0.10);

            font-family:
                "Microsoft YaHei",
                "微软雅黑",
                sans-serif;

            font-size: 13px;
            font-weight: 700;
            font-style: normal;
            line-height: 36px;
            letter-spacing: 0.3px;
            text-align: center;
            white-space: nowrap;

            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: geometricPrecision;

            box-sizing: border-box;
            overflow: hidden;
        }

        .quick-nav-item:active .quick-nav-name {
            opacity: 0.65;
        }

        .home-anchor {
            scroll-margin-top: 100px;
        }

        @media (max-width: 380px) {
            .quick-nav {
                gap: 7px 4px;
                padding-right: 5px;
                padding-left: 5px;
            }

            .quick-nav-name {
                height: 34px;
                padding-right: 1px;
                padding-left: 1px;

                font-size: 12px;
                line-height: 34px;
                letter-spacing: 0;
            }
        }

        /* 广告图片 */

        .ad-box {
            width: 100%;
            height: 100px;
            overflow: hidden;
            border-radius: 14px;
            margin-bottom: 15px;
        }


        .ad-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


        /* 普通内容图片 */

        .content-img {
            width: 100%;
            height: 160px;
            overflow: hidden;
            border-radius: 14px;
        }


        .content-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


        /* 图库图片 */

        .gallery-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px;
    margin: 0;
    min-height: 65px;
    border-bottom: 1px solid #eee;
    height: 180px;
}


        .gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}


        /* ===================
   开奖区域重新优化
=================== */

        .lottery-box {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
}


        /* 开奖类型按钮 */

        .lottery-tabs {

            display: flex;

            gap: 8px;

            overflow-x: auto;

            margin-bottom: 15px;

        }


        .lottery-tabs button {

            flex-shrink: 0;

            border: none;

            background: #f5f5f5;

            color: #555;

            padding: 8px 15px;

            border-radius: 20px;

            font-size: 14px;

        }


        .lottery-tabs button.active {

            background: #e53935;

            color: #fff;

        }










        /* 开奖整体 */

        .lottery-card {
            background: #fff;
            border-radius: 16px;
            padding: 10px;
            margin-bottom: 3px;
        }



        /* 彩种按钮：四等分、长名称自适应，并兼容旧版 WebView。 */

        .tabs {
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            width: auto;
            margin-left: -1px;
            margin-right: -1px;
            margin-bottom: 15px;
            overflow: hidden;
        }


        .tab {
            display: block;
            -webkit-box-flex: 1;
            -webkit-flex: 1 1 0%;
            flex: 1 1 0%;
            width: 25%;
            min-width: 0;
            box-sizing: border-box;
            margin-left: 1px;
            margin-right: 1px;
            text-align: center;
            white-space: nowrap;
            padding: 8px 1px;
            border-radius: 20px;
            background: #f3f3f3;
            color: #666;
            font-size: 12px;
            line-height: 20px;
        }

        /* 支持 clamp() 的新浏览器连续自适应；旧浏览器继续使用上面的12px。 */
        @supports (font-size: clamp(11px, 3vw, 13px)) {
            .tab {
                font-size: clamp(11px, 3.05vw, 13px);
            }
        }

        @media (max-width: 360px) {
            .tab {
                font-size: 11px;
                padding-left: 0;
                padding-right: 0;
            }
        }


        .tab.active {

            background: #26b918;

            color: #fff;

        }
/* 开奖框上排 */
.lottery-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;

    width: 100%;
    margin-bottom: 8px;
}

        /* 左上：彩种和当前期号 */
.lottery-top-row .issue {
    min-width: 0;
    font-size: var(--lottery-head-font-size);
    font-weight: var(--lottery-head-font-weight);
    margin: 0;

    color: #333;
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

        /* 顶部中间：倒计时 */
.lottery-countdown {
    justify-self: end;
    font-size: var(--lottery-head-font-size);
    font-weight: var(--lottery-head-font-weight);
    padding: 0;


            color: #111;
            line-height: 24px;
            text-align: center;
            white-space: nowrap;
        }

        /* 右上：历史记录 */
        .history-link {
            justify-self: end;
            font-size: var(--lottery-head-font-size);
            font-weight: var(--lottery-head-font-weight);

            display: inline-flex;
            align-items: center;
            justify-content: flex-end;

            height: 24px;
            padding: 0;
            margin: 0;

            border: 0;
            background: transparent;

            color: #f44336;
            font-family: inherit;
            line-height: 24px;
            white-space: nowrap;

            cursor: pointer;
        }

        /* 开奖框下排 */
        .lottery-bottom-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;

            width: 100%;
            margin-top: 8px;
        }

        /* 左下：下期开奖期号和时间 */
        .lottery-next-info {
            min-width: 0;
            font-size: var(--lottery-sub-font-size);
            font-weight: var(--lottery-sub-font-weight);

            color: #333;
            line-height: 22px;
            text-align: left;
            white-space: nowrap;
        }

        /* 右下：刷新按钮 */
        .lottery-refresh-btn {
            justify-self: end;
            font-size: var(--lottery-sub-font-size);
            font-weight: var(--lottery-sub-font-weight);

            min-width: 42px;
            height: 24px;
            padding: 0 7px;
            margin: 0;

            border: 0;
            border-radius: 4px;

            background: #ff9800;
            color: #fff;

            font-family: inherit;
            line-height: 24px;
            text-align: center;

            cursor: pointer;
        }

        .lottery-refresh-btn:active {
            opacity: 0.7;
        }

        .lottery-refresh-btn:disabled {
            opacity: 0.65;
            cursor: default;
        }
/* 开奖球样式统一由 assets/css/lottery-balls.css 管理。 */

        /* 重新组合首页：各类资料穿插显示 */
        .mixed-section {
            margin: 8px 0;
            background: #fff;
            border: 1px solid #e5e5e5;
            overflow: hidden;
        }

        .mixed-heading {
            height: 30px;
            font-size: var(--insider-card-nav-font-size);
            font-weight: var(--insider-card-nav-font-weight);
            line-height: 30px;
            text-align: center;
            color: #fff;
            background: linear-gradient(90deg, #8d079d, #b400bd, #8d079d);
        }

        .compact-tip-list {
            padding: 3px 5px 6px;
        }

        .compact-tip-row {
            font-size: var(--insider-random-font-size);
            font-weight: var(--insider-random-font-weight);
            display: grid;
            grid-template-columns: 78px 42px minmax(0, 1fr);
            align-items: center;
            min-height: 30px;
            margin-top: 4px;
            padding: 2px 6px;
            border: 1px solid #e7e7e7;
            border-radius: 6px;
            background: linear-gradient(#fff, #f4f4f4);
        }

        .compact-tip-name {
            color: #333;
            font-weight: inherit;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .compact-tip-issue {
            color: #e60012;
            text-align: center;
        }

        .compact-tip-content {
            color: #148b32;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
.trend-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1px;
            background: #ddd;
        }

        .trend-column {
            min-width: 0;
            background: #fff;
        }

        .trend-column-title {
    height: 42px;
    min-height: 42px;
    padding: 0 3px;
    color: #e00000;
    line-height: 42px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

        .trend-row {
            font-size: var(--insider-random-font-size);
            font-weight: var(--insider-random-font-weight);
    display: block;
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 5px 3px;
    gap: 2px;
    border-bottom: 1px dashed #ddd;
    background: #fff;
    line-height: 20px;
    white-space: normal;
    overflow: visible;
    box-sizing: border-box;
}

        .trend-main-line,
        .trend-result-line {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;

            width: 100%;
            min-height: 23px;
            text-align: center;
        }

        .trend-issue {
            color: #555;
        }

        .trend-content {
            color: #15913c;
        }

        .trend-open {
            color: #0066ff;
        }

        .trend-row span,
        .trend-row b,
        .trend-row strong,
        .trend-row em {
            font-size: inherit;
            font-weight: inherit;
        }

        .trend-result-line b {
            color: inherit;
        }

        .trend-result-correct {
            color: #16a13a;
        }

        .trend-result-wrong {
            color: #f00000;
        }

        .trend-result-wait {
            color: #999;
        }

        @media (max-width: 380px) {
            

            .trend-row {
                padding-left: 1px;
                padding-right: 1px;
            }

            

            
        }

        .gallery-mixed-row {
            width: 100%;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) 18px;
            align-items: center;
            gap: 7px;
            padding: 7px 8px;
            border: 0;
            border-bottom: 1px solid #eee;
            background: #fff;
            text-align: left;
        }

        .content-divider {
            margin: 8px 0 5px;
            padding: 5px;
            text-align: center;
            color: #0b5fbf;
            font-size: 15px;
            border-top: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            background: #fff;
        }
@media (max-width: 380px) {
            .compact-tip-row {
                grid-template-columns: 70px 38px minmax(0, 1fr);
                padding-left: 4px;
                padding-right: 4px;
            }

            
        }

        /* =========================
   历史开奖记录弹窗
========================= */

        .fullscreen-modal {
            position: fixed;
            z-index: 99998;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;

            display: none;
            flex-direction: column;

            width: 100%;
            height: 100vh;

            background: #f5f5f5;
            overflow: hidden;
        }

        .fullscreen-modal .modal-header {
            position: relative;
            flex: 0 0 auto;

            display: flex;
            align-items: center;
            justify-content: center;

            min-height: 52px;
            padding: 0 50px;

            color: #fff;
            background: linear-gradient(90deg, #7b0791, #a600b6);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .fullscreen-modal .modal-header h3 {
            margin: 0;
            padding: 0;

            color: #fff;
            font-size: 17px;
            line-height: 1.4;
            text-align: center;
        }

        .fullscreen-modal .close-modal {
            position: absolute;
            top: 50%;
            right: 15px;

            display: flex;
            align-items: center;
            justify-content: center;

            width: 34px;
            height: 34px;

            color: #fff;
            font-size: 30px;
            font-weight: normal;
            line-height: 1;

            transform: translateY(-50%);
            cursor: pointer;
        }

        .fullscreen-modal .history-list {
            flex: 1;
            padding: 10px;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .fullscreen-modal .loading {
            padding: 30px 10px;
            color: #888;
            font-size: 14px;
            text-align: center;
        }

        /* 单期历史记录 */
        .history-item {
            margin-bottom: 10px;
            padding: 10px;

            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
        }

        .history-item-header {
            display: flex;
            align-items: center;
            justify-content: space-between;

            margin-bottom: 10px;
            padding-bottom: 7px;

            border-bottom: 1px solid #eee;
        }

        .history-issue {
            color: #d60000;
            font-size: 14px;
            font-weight: bold;
        }

        .history-draw-time {
            color: #888;
            font-size: 12px;
        }

        

        body.history-modal-open {
            overflow: hidden;
        }

        @media (min-width: 481px) {
            /* 非 site6 保持原 480px，不改变其他站点。 */
            body:not(.site6-page) .fullscreen-modal {
                left: 50%;
                width: 480px;
                transform: translateX(-50%);
                box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            }

            /* site6 电脑端与 800px 主体同宽；与上面的规则互斥，不再靠后置 !important 覆盖。 */
            body.site6-page .fullscreen-modal {
                left: 50%;
                right: auto;
                width: 100%;
                max-width: 800px;
                -webkit-transform: translateX(-50%);
                transform: translateX(-50%);
                box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            }
        }

        /* site6 历史记录手机端：7球 + 加号按可用宽度自适应均匀排开并整体居中。
           仅作用于历史记录弹窗，不影响首页开奖框/子页面开奖框。 */
        @media (max-width: 560px) {
            body.site6-page .fullscreen-modal .history-numbers {
                --lottery-ball-size: clamp(36px, 10.8vw, 46px);
                --lottery-first-six-shift: 0px;
                --lottery-plus-shift-x: 0px;
                --lottery-plus-shift-y: 0px;

                width: 100% !important;
                max-width: 440px;
                margin-left: auto !important;
                margin-right: auto !important;
                -webkit-box-pack: center;
                -ms-flex-pack: distribute;
                justify-content: space-around !important;
                gap: 0 !important;
            }

            body.site6-page .fullscreen-modal .history-numbers .ball-wrap {
                -ms-flex: 0 0 var(--lottery-ball-size) !important;
                flex: 0 0 var(--lottery-ball-size) !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
        }

        @media (max-width: 390px) {
            .fullscreen-modal .modal-header h3 {
                font-size: 15px;
            }

            .fullscreen-modal .history-list {
                padding: 7px;
            }

            .history-item {
                padding: 7px 4px;
            }

            
        }

        /* =========================
   首页广告位
========================= */

        .ad-section {
            width: 100%;
            margin: 2px 0;
            overflow: hidden;

            background: #fff;
            border: 1px solid #ececec;
            border-radius: 8px;
        }

        .ad-title {
            display: none;
        }

        .ad-list {
            width: 100%;
        }

        .ad-item {
            width: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .ad-item+.ad-item {
            margin-top: 2px;
        }

        .ad-item img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        /* =========================
   刘伯温玄肖、玄学横版资料
========================= */

        .lb-tip-section {
            width: 100%;
            margin: 8px 0;
            background: #fff;
            border: 1px solid #ddd;
            overflow: visible;
        }

        .lb-tip-title {
            display: flex;
            font-size: var(--insider-card-nav-font-size);
            font-weight: var(--insider-card-nav-font-weight);
            align-items: center;
            justify-content: center;

            min-height: 38px;
            padding: 6px 8px;

            color: #fff;
            background: #9900a7;

            
            line-height: 26px;
        }

        .lb-tip-list {
            width: 100%;
        }

        .lb-tip-row {
            width: 100%;
            font-size: var(--insider-random-font-size);
            font-weight: var(--insider-random-font-weight);
    min-height: 42px;
    padding: 7px 6px;
    border-bottom: 1px solid #e4e4e4;
    line-height: 26px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    box-sizing: border-box;
}

        /* 第一行：期号、名称、开奖号、对错 */
        .lb-tip-meta {
            display: flex;
            align-items: center;
 justify-content: center;
            flex-wrap: nowrap;
            width: 100%;
            white-space: nowrap;
        }

        .lb-tip-row:last-child {
            border-bottom: 0;
        }

        .lb-tip-issue {
            margin-right: 4px;
            color: #333;
        }

        .lb-tip-name {
            color: #0759d4;
        }

        /* 第二行：随机预测内容 */
        .lb-tip-content {
            display: block;
            width: 100%;
            margin-top: 1px;
            color: #e60012;
            line-height: 25px;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .lb-tip-zodiac-content .lb-prediction-item,
        .lb-tip-number-content .lb-prediction-item {
            padding: 0;
        }

        .lb-tip-zodiac-content {
            letter-spacing: 1px;
        }

        .lb-tip-number-content {
            letter-spacing: 0;
        }

        .lb-ending {
            color: #e60012;
        }

        .lb-prediction-item {
            display: inline-block;
            padding: 0 2px;
            color: #e60012;
            border-radius: 3px;
        }

        /* 预测正确时，只给对应的生肖或号码加黄色背景 */
        .lb-prediction-item.lb-item-hit {
            color: #e60012;
            background: #ffeb3b;
            box-shadow: 0 0 0 1px #e4ca00;
        }

        .lb-separator {
            color: #e60012;
        }

        .lb-tip-open {
            margin-left: 4px;
            color: #15913c;
        }

        .lb-tip-result {
            margin-left: 1px;
            font-weight: inherit;
        }

        .lb-result-correct {
            color: #16a13a;
        }

        .lb-result-wrong {
            color: #f00000;
        }

        .lb-result-wait {
            color: #999;
        }

        @media (max-width: 380px) {
            .lb-tip-row {
                padding: 7px 4px;
                line-height: 24px;
            }

            

            .lb-tip-number-content {
                line-height: 23px;
            }

.insider-number-row {
    line-height: 21px;
}
        }

        .insider-highlight {
            display: inline-block;
            padding: 0 3px;
            margin: 0 1px;

            color: #e60012 !important;
            background: #ffeb3b !important;
            border-radius: 3px;
            box-shadow: 0 0 0 1px #e4ca00;

            font-weight: inherit;
            line-height: 22px;
        }
        .gallery-reference-list {
            background: #fff
        ;}

        .gallery-reference-row {
            display: flex;
            font-size: var(--insider-random-font-size);
            font-weight: var(--insider-random-font-weight);
    align-items: center;
    min-height: 42px;
    padding: 5px 6px;
    border-bottom: 1px solid #e6e6e6;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 30px;
    box-sizing: border-box;
}

        .gallery-reference-row b,
        .gallery-reference-row strong,
        .gallery-reference-row em {
            font-size: inherit;
            font-weight: inherit;
        }

        .gallery-badge {
            background: #9d0000;
            color: #fff;
            border-radius: 4px;
            padding: 1px 4px;
            font-size: 12px;
            line-height: 18px;
            font-weight: bold;
            margin-right: 3px;
        }

        .gallery-ref-issue {
            color: #1700a8;
            margin-right: 2px
        ;}

        .gallery-ref-title {
            color: #f00000
        ;}

        .gallery-ref-open {
            color: #1700a8;
            margin-left: 4px
        ;}

        .gallery-ref-name {
            margin-left: auto;
            color: #999;
            padding-left: 8px;
            overflow: hidden;
            text-overflow: ellipsis
        ;}

        /* 仅统一以下资料板块与普通内幕卡片的左右宽度和行高 */
        .container>.trend-section,
        .container>.gallery-mixed-section,
        .container>.lb-tip-section {
            width: auto !important;
            margin: 8px 5px !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }

        .trend-section .mixed-heading,
        .gallery-mixed-section .mixed-heading,
        .lb-tip-section .lb-tip-title {
            height: 40px !important;
            min-height: 40px !important;
            padding: 0 8px !important;
            line-height: 40px !important;
            
            box-sizing: border-box !important;
        }

        

        

        .trend-row span,
        .trend-row strong {
            
            line-height: 20px !important;
        }

        

        

        /* 首页返回顶部按钮 */
        .back-to-top {
            position: fixed;
            right: 14px;
            bottom: 75px;
            z-index: 9999;

            display: none;
            width: 42px;
            height: 42px;
            padding: 0;

            border: 0;
            border-radius: 50%;
            background: rgba(218, 38, 38, 0.9);
            color: #fff;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);

            font-size: 23px;
            font-weight: bold;
            line-height: 42px;
            text-align: center;
            cursor: pointer;
        }

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

        .back-to-top:active {
            transform: scale(0.92);
        }

        /* 强制快捷导航两排文字完全一致 */
        .quick-nav .quick-nav-item .quick-nav-name {
            width: 100% !important;
            height: 36px !important;
            min-height: 36px !important;

            padding: 0 2px !important;

            font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            font-style: normal !important;
            line-height: 36px !important;
            letter-spacing: 0 !important;

            text-align: center !important;
            white-space: nowrap !important;

            transform: none !important;
            zoom: 1 !important;
        }


/* ===== 2026-08 双彩资料独立显示 ===== */
.material-panel[hidden] {
    display: none !important;
}

/* 新彩下半场使用另一套标题色，尺寸和布局保持不变。 */
.half-time-materials .mixed-heading,
.half-time-materials .insider-title,
.half-time-materials .lb-tip-title {
    background: linear-gradient(90deg, #153cbe, #2c58e6, #153cbe) !important;
    color: #fff !important;
}

/* 精准走势的“开奖结果+准/错”整行按判断着色，与内幕卡片一致。 */
.trend-result-line.trend-result-correct,
.trend-result-line.trend-result-correct .trend-open,
.trend-result-line.trend-result-correct b {
    color: #27db54 !important;
}

.trend-result-line.trend-result-wrong,
.trend-result-line.trend-result-wrong .trend-open,
.trend-result-line.trend-result-wrong b {
    color: #ff0000 !important;
}

.trend-result-line.trend-result-wait,
.trend-result-line.trend-result-wait .trend-open,
.trend-result-line.trend-result-wait b {
    color: #999 !important;
}

/* 网站4：所有内幕资料随机内容统一黑色，期数统一红色。 */
.insider-content,
.insider-content.material-tone-1,
.insider-content.material-tone-2,
.insider-content.material-tone-3,
.insider-content.material-tone-4,
.insider-content.material-tone-5,
.insider-content.material-tone-6,
.insider-content .insider-number-row,
.insider-content .insider-number-separator,
.insider-content span:not(.insider-highlight) {
    color: #111 !important;
}

/* 命中号码/生肖仍保留黄色底和红字，便于识别开奖结果。 */
.insider-content .insider-highlight {
    color: #d90000 !important;
}

.insider-issue {
    color: #e60012 !important;
}

/* 澳门新彩各资料板块标题与顶部快捷导航文字框使用同一背景色。 */
.macau-materials .gallery-mixed-section .mixed-heading,
.macau-materials .trend-section .mixed-heading,
.macau-materials .insider-title,
.macau-materials .lb-tip-title {
    background: var(--site4-quick-nav-bg) !important;
    color: #fff !important;
}

/* 网站4公告弹窗：先使用传统宽度写法保证旧浏览器可用，再由现代浏览器自然响应。 */
.site-modal.show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.site4-official-popup {
    width: 92%;
    max-width: 430px;
    max-height: 90%;
    max-height: calc(100vh - 40px);
    padding: 22px 16px 16px;
    box-sizing: border-box;
}
.site4-official-popup .site-modal-title {
    margin-bottom: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #b51f1f;
}
.site-modal-lottery-section {
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid #e8c486;
    border-radius: 9px;
    background: #fffdf5;
}
.site-modal-lottery-heading {
    padding: 8px 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    background: #b83b3b;
}
.site-modal-lottery-issue {
    padding-top: 8px;
    text-align: center;
    font-weight: 700;
    color: #d40000;
}
.site-modal-lottery-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 6px;
    padding: 7px 10px;
    line-height: 1.65;
    color: #111;
}
.site-modal-lottery-row b {
    flex: 0 0 auto;
    color: #9c2525;
}
.site4-official-popup .site-modal-btn {
    display: block;
    width: auto;
    min-width: 0;
    margin: 14px auto 0;
    padding: 10px 20px;
    border: 0;
    cursor: pointer;
}

.site4-official-popup .site-modal-lottery-row span {
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.site4-official-popup .site-modal-lottery-row b {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

@supports (font-size: clamp(10px, 2vw, 20px)) {
    .site4-official-popup .site-modal-lottery-row span {
        font-size: clamp(14px, 3.7vw, 18px);
    }

    .site4-official-popup .site-modal-lottery-row b {
        font-size: clamp(13px, 3.5vw, 16px);
    }
}
/* =========================================================
   网站4资料字号与旧版浏览器兜底
   1. 不支持 CSS 变量的旧浏览器先使用固定 px。
   2. 支持 CSS 变量但不支持 clamp() 的浏览器读取 4f1d76.css 的分级 px。
   3. 支持 clamp() 的浏览器继续使用原来的连续自适应字号。
   ========================================================= */
.insider-item,
.compact-tip-row,
.trend-row,
.lb-tip-row,
.gallery-reference-row,
.gallery-mixed-row {
    font-size: 16px;
    font-size: var(--insider-random-font-size);
}

.insider-title,
.mixed-heading,
.lb-tip-title {
    font-size: 18px;
    font-size: var(--insider-card-nav-font-size);
}

.lottery-top-row .issue,
.lottery-countdown,
.history-link {
    font-size: 16px;
    font-size: var(--lottery-head-font-size);
}

.lottery-next-info,
.lottery-refresh-btn {
    font-size: 16px;
    font-size: var(--lottery-sub-font-size);
}

@media (max-width: 430px) {
    .insider-item,
    .compact-tip-row,
    .trend-row,
    .lb-tip-row,
    .gallery-reference-row,
    .gallery-mixed-row {
        font-size: 15px;
        font-size: var(--insider-random-font-size);
    }

    .insider-title,
    .mixed-heading,
    .lb-tip-title {
        font-size: 16px;
        font-size: var(--insider-card-nav-font-size);
    }

    .lottery-top-row .issue,
    .lottery-countdown,
    .history-link,
    .lottery-next-info,
    .lottery-refresh-btn {
        font-size: 15px;
    }

    .lottery-top-row .issue,
    .lottery-countdown,
    .history-link {
        font-size: var(--lottery-head-font-size);
    }

    .lottery-next-info,
    .lottery-refresh-btn {
        font-size: var(--lottery-sub-font-size);
    }
}

@media (max-width: 380px) {
    .insider-item,
    .compact-tip-row,
    .trend-row,
    .lb-tip-row,
    .gallery-reference-row,
    .gallery-mixed-row {
        font-size: 14px;
        font-size: var(--insider-random-font-size);
    }

    .insider-title,
    .mixed-heading,
    .lb-tip-title {
        font-size: 15px;
        font-size: var(--insider-card-nav-font-size);
    }

    .lottery-top-row .issue,
    .lottery-countdown,
    .history-link,
    .lottery-next-info,
    .lottery-refresh-btn {
        font-size: 14px;
    }

    .lottery-top-row .issue,
    .lottery-countdown,
    .history-link {
        font-size: var(--lottery-head-font-size);
    }

    .lottery-next-info,
    .lottery-refresh-btn {
        font-size: var(--lottery-sub-font-size);
    }
}

/* =========================================================
   网站4“单双各十码”最终四行布局
   单：5个号码
       5个号码
   双：5个号码
       5个号码
   不使用 Grid/Flex 排号码，旧版 WebView 也能保持四行严格对齐。
   ========================================================= */
.single-double-ten-item {
    display: block !important;
    min-height: 0 !important;
    padding: 8px 5px 10px !important;
    text-align: center !important;
}

.single-double-ten-head {
    display: block;
    width: 100%;
    padding-bottom: 5px;
    text-align: center;
    white-space: nowrap;
}

.single-double-ten-head .insider-issue,
.single-double-ten-head .insider-result {
    display: inline-block;
    width: auto !important;
    vertical-align: middle;
    text-align: center !important;
}

.single-double-ten-head .insider-result {
    margin-left: 12px;
}

.single-double-ten-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    overflow: visible !important;
}

.single-double-ten-content {
    display: table;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    white-space: nowrap;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.55;
}

.single-double-line {
    display: table-row;
}

.single-double-label,
.single-double-number-row {
    display: table-cell;
    vertical-align: middle;
}

.single-double-label {
    width: 2.7em;
    padding-right: 0.25em;
    text-align: right;
    white-space: nowrap;
}

.single-double-label-placeholder {
    visibility: hidden;
}

.single-double-number-row {
    width: 14.2em;
    text-align: left;
    white-space: nowrap;
}

.single-double-number,
.single-double-separator {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: center;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.single-double-number {
    width: 2.15em;
}

.single-double-separator {
    width: 0.7em;
    margin: 0 !important;
    padding: 0 !important;
}

.single-double-number.insider-highlight {
    margin: 0 !important;
    padding: 0 !important;
}

/* “双”组与“单”组稍微分开，同时保持四行号码列完全同宽。 */
.single-double-line:nth-child(3) .single-double-label,
.single-double-line:nth-child(3) .single-double-number-row {
    padding-top: 5px;
}
