* {
            box-sizing: border-box;
        }

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


        .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-box {
            text-align: center;
        }


        .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); */
        }

        .insider-item {
            display: flex;
            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: 17px;
            font-weight: bold;
            line-height: 40px;
            color: #ffffff;
            background: #5030df;
            height: 40px;
            /* 标题背景 */
        }

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

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

.insider-number-row {
    display: block;
    width: 100%;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    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-weight: bold;
            text-align: center;
            color: #333333;
            /* 蓝色 */
        }


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

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

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

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



        /* 图片推荐 */

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


        .gallery-item {
            background: #fff;
            border-radius: 14px;
            overflow: hidden;
        }


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


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

        /* 图库论坛推荐 */

        .gallery-card {

            background: #fff;

            border-radius: 16px;

            padding: 10px;

            margin-bottom: 15px;

            box-shadow: 0 4px 12px rgba(0, 0, 0, .06);

        }


        .gallery-title {

            font-size: 18px;

            font-weight: bold;

            text-align: center;

            padding-bottom: 12px;

            margin-bottom: 12px;

            border-bottom: 1px solid #eee;

        }


        .gallery-item {

            display: flex;

            align-items: center;

            position: relative;

            padding: 5px;

            margin: 0;

            min-height: 65px;

            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 {

            padding: 8px !important;

        }


        .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 {
            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: #b83b3b;
            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 {
            height: 180px;
            overflow: hidden;
        }


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


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

        .lottery-box {

            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;

        }








        /* ===== 开奖模块优化（不要覆盖原ball） ===== */


        /* 开奖整体 */

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



        /* 彩种按钮 */

        .tabs {

            display: flex;

            gap: 8px;

            overflow-x: auto;

            margin-bottom: 15px;

        }


        .tab {

            flex: 1;

            min-width: 70px;

            text-align: center;

            padding: 8px 5px;

            border-radius: 20px;

            background: #f3f3f3;

            color: #666;

            font-size: 14px;

        }


        .tab.active {

            background: #26b918;

            color: #fff;

        }



        /* 号码横排 */

        .numbers {

            display: flex !important;

            flex-wrap: nowrap;

            justify-content: center;

            align-items: center;

            gap: 5px;

            width: 100%;

        }






        /* 开奖框上排 */
.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;
    margin: 0;

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

        /* 顶部中间：倒计时 */
.lottery-countdown {
    justify-self: end;
    padding: 0;


            color: #111;
            font-size: 16px;
            font-weight: bold;
            line-height: 24px;
            text-align: center;
            white-space: nowrap;
        }

        /* 右上：历史记录 */
        .history-link {
            justify-self: end;

            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;
            font-size: 16px;
            font-weight: normal;
            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;

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

        /* 右下：刷新按钮 */
        .lottery-refresh-btn {
            justify-self: end;

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

            border: 0;
            border-radius: 4px;

            background: #ff9800;
            color: #fff;

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

            cursor: pointer;
        }

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

        .lottery-refresh-btn:disabled {
            opacity: 0.65;
            cursor: default;
        }

        @media (max-width: 380px) {

            .lottery-top-row .issue,
            .lottery-countdown,
            .history-link {
                font-size: 13px;
            }

            .lottery-countdown {
                padding-right: 3px;
                padding-left: 3px;
            }

            .lottery-next-info {
                font-size: 12px;
            }

            .lottery-refresh-btn {
                min-width: 38px;
                padding-right: 5px;
                padding-left: 5px;
                font-size: 12px;
            }
        }

        /* 开奖波色 */

        .ball.ball-red {

            background: #e53935 !important;

            color: #fff;

        }


        .ball.ball-blue {

            background: #1976d2 !important;

            color: #fff;

        }


        .ball.ball-green {

            background: #43a047 !important;

            color: #fff;

        }

        /* ===================
   开奖号码球优化
=================== */

        .numbers .ball {

            width: 50px !important;

            height: 50px !important;

            flex: 0 0 50px !important;  

            border-radius: 50% !important;

            display: flex !important;

            flex-direction: column !important;

            justify-content: center !important;

            align-items: center !important;

            box-sizing: border-box;

        }


        /* 号码 */

        .numbers .ball-num {

            font-size: 23px !important;

            font-weight: bold;

            line-height: 25px;

            text-align: center;

        }


        /* 生肖/五行 */

        .numbers .ball-label {

            font-size: 13px !important;

            line-height: 14px;

            text-align: center;

            width: 100%;

            white-space: nowrap;

        }

        .plus {

            flex-shrink: 0;

            margin: 0 1px;

            font-size: 18px;

        }

        /* 逐个开奖时保留号码位置，但暂时隐藏内容 */
        .numbers .lottery-ball-waiting {
            visibility: visible !important;
        }
        .numbers .lottery-ball-waiting > .lottery-ball,
        .numbers .lottery-ball-waiting > .ball,
        .numbers .lottery-ball-waiting > .number-property,
        .numbers .lottery-ball-waiting > .ball-label,
        .numbers .lottery-ball-waiting > small {
            visibility: hidden !important;
        }

        /* 第7个特码出现前隐藏加号，但继续占据原位置 */
        .numbers .lottery-plus-waiting {
            visibility: hidden !important;
        }

/* 手机端开奖球：固定宽高，防止被压成椭圆 */
@media (max-width: 480px) and (min-width: 361px) {
    .numbers {
        gap: 3px !important;
    }

    .numbers .ball {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        border-radius: 50% !important;
    }

    .numbers .ball-num {
        font-size: 18px !important;
        line-height: 20px !important;
    }

    .numbers .ball-label {
        font-size: 10px !important;
        line-height: 11px !important;
    }

    .numbers .plus,
    .numbers + .plus,
    .plus {
        font-size: 16px;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    .numbers {
        gap: 2px !important;
    }

    .numbers .ball {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 50% !important;
    }

    .numbers .ball-num {
        font-size: 16px !important;
        line-height: 17px !important;
    }

    .numbers .ball-label {
        font-size: 9px !important;
        line-height: 10px !important;
    }

    .plus {
        margin-right: 0;
        margin-left: 0;
        font-size: 14px;
    }
}

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

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

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

        .compact-tip-row {
            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);
            font-size: 12px;
        }

        .compact-tip-name {
            color: #333;
            font-weight: 700;
            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, 1fr);
            gap: 1px;
            background: #ddd;
        }

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

        .trend-column-title {
            padding: 5px 2px;
            text-align: center;
            color: #e00000;
            font-weight: 700;
            border-bottom: 1px solid #eee;
            font-size: 12px;
        }

        .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 {
            min-height: 36px;
            padding: 7px 2px;

            color: #e00000;
            font-size: 15px;
            font-weight: bold;
            line-height: 22px;
            text-align: center;

            border-bottom: 1px solid #ddd;
        }

        .trend-row {
            display: block;
            width: 100%;
            height: auto;
            min-height: 64px;
            padding: 7px 2px;

            border-bottom: 1px dashed #ddd;
            background: #fff;

            font-size: 14px;
            line-height: 22px;
            white-space: normal;
            overflow: visible;
        }

        .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;
            font-weight: bold;
        }

        .trend-content {
            color: #15913c;
            font-size: 15px;
            font-weight: bold;
        }

        .trend-open {
            color: #0066ff;
            font-size: 13px;
            font-weight: bold;
        }

        .trend-result-line b {
            font-size: 15px;
            font-weight: bold;
        }

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

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

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

        @media (max-width: 380px) {
            .trend-column-title {
                font-size: 14px;
            }

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

            .trend-content {
                font-size: 14px;
            }

            .trend-open {
                font-size: 12px;
            }
        }

        .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;
        }

        .gallery-mixed-icon {
            width: 38px;
            height: 38px;
            border-radius: 6px;
            background: #f2f2f2;
            display: grid;
            place-items: center;
            overflow: hidden;
            color: #8f0d9e;
            font-weight: bold;
        }

        .gallery-mixed-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-mixed-text {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .gallery-mixed-text b {
            font-size: 13px;
            color: #333;
        }

        .gallery-mixed-text em {
            font-size: 11px;
            color: #e00000;
            font-style: normal;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .gallery-mixed-arrow {
            color: #aaa;
            font-size: 24px;
        }

        .pyramid-section {
            width: 100%;
            margin: 10px 0;
            background: #fff;
        }

        .pyramid-section,
        .pyramid-section .pyramid-card,
        .pyramid-section .pyramid-line {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
        }

        .pyramid-card {
            width: 100%;
            height: auto;
            min-height: 0;
            max-height: none;

            padding: 12px 8px;
            overflow: visible;

            border-right: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            border-left: 1px solid #ddd;

            text-align: center;
        }

        .pyramid-issue {
            margin-bottom: 8px;

            color: #e00000;
            font-size: 16px;
            font-weight: bold;
            line-height: 1.5;
        }

        .pyramid-line {
            width: 100%;
            height: auto;
            min-height: 0;
            max-height: none;

            margin: 5px auto;
            padding: 0 4px;

            overflow: visible;
            white-space: normal;
            word-break: break-word;

            color: #1f51bd;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.7;
        }

        .pyramid-line:nth-child(3n+1) {
            color: #e00000;
        }

        .pyramid-line:nth-child(3n+2) {
            color: #13913b;
        }

        .pyramid-line.number-mode {
            letter-spacing: 1px;
        }

        .pyramid-line:nth-child(3n+1) {
            color: #e00000;
        }

        .pyramid-line:nth-child(3n+2) {
            color: #13913b;
        }

        .pyramid-line.number-mode {
            letter-spacing: .5px;
        }

        .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;
        }

        .insider-card {
            margin-bottom: 5px !important;
        }

        .insider-title {
            background: #9900a7 !important;
            color: #fff !important;
            min-height: 27px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 380px) {
            .compact-tip-row {
                grid-template-columns: 70px 38px minmax(0, 1fr);
                font-size: 11px;
                padding-left: 4px;
                padding-right: 4px;
            }

            .trend-row {
                font-size: 9px;
            }
        }

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

        .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;
        }

        .history-numbers {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 4px;
        }

        .history-ball {
            flex: 0 0 42px;
            width: 42px;
            height: 42px;

            border-radius: 50%;

            color: #fff;

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

            font-weight: bold;
        }

        .history-ball-num {
            display: flex;
            align-items: center;
            justify-content: center;

            width: 34px;
            height: 34px;

            color: #fff;
            border-radius: 50%;
            font-size: 16px;
            font-weight: bold;
        }

        .history-ball-label {
            margin-top: 2px;
            color: #555;
            font-size: 9px;
            white-space: nowrap;
        }

        .history-plus {
            flex: 0 0 auto;
            margin: 0 1px;
            color: #666;
            font-size: 22px;
            font-weight: bold;
        }

        /* 兼容项目原有球色类 */
        .history-ball.red .history-ball-num,
        .history-ball.red-ball .history-ball-num {
            background: #e53935;
        }

        .history-ball.blue .history-ball-num,
        .history-ball.blue-ball .history-ball-num {
            background: #1687e8;
        }

        .history-ball.green .history-ball-num,
        .history-ball.green-ball .history-ball-num {
            background: #20a354;
        }

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

        @media (min-width: 481px) {
            .fullscreen-modal {
                left: 50%;
                width: 480px;
                transform: translateX(-50%);
                box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            }
        }

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

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

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

            .history-numbers {
                gap: 2px;
            }

            .history-ball {
                width: 35px;
            }

            .history-ball-num {
                width: 31px;
                height: 31px;
                font-size: 14px;
            }

            .history-ball-label {
                font-size: 8px;
            }
        }

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

        .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;
            align-items: center;
            justify-content: center;

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

            color: #fff;
            background: #9900a7;

            font-size: 18px;
            font-weight: bold;
            line-height: 26px;
        }

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

        .lb-tip-row {
            width: 100%;
            min-height: 58px;
            padding: 7px 6px 8px;

            border-bottom: 1px solid #e4e4e4;

            font-size: 15px;
            font-weight: bold;
            line-height: 25px;
            text-align: left;

            white-space: normal;
            word-break: break-word;
            overflow: visible;
        }

        /* 第一行：期号、名称、开奖号、对错 */
        .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 {
            font-size: 14px;
            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-size: 17px;
            font-weight: bold;
        }

        .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;
                font-size: 15px;
                line-height: 24px;
            }

            .lb-tip-name {
                font-size: 15px;
            }

            .lb-tip-result {
                font-size: 16px;
            }

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

.insider-number-row {
    font-size: 14px;
    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: bold;
            line-height: 22px;
        }

        @media (max-width: 380px) {

            .trend-row,
            .trend-row span,
            .trend-row strong {
                font-size: 14px !important;
            }

            .gallery-mixed-text b {
                font-size: 16px !important;
            }

            .gallery-mixed-text em {
                font-size: 14px !important;
            }
        }

        /* 热门图库帖子列表：无图片、单行卡片 */
        .gallery-post-list {
            padding: 6px 8px 8px;
            background: #fff
        }

        .gallery-post-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 42px;
            margin: 7px 0;
            padding: 8px 10px;
            border: 1px solid #d5d5d5;
            border-radius: 11px;
            background: linear-gradient(#fff, #f4f4f4);
            box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
            color: #111;
            text-decoration: none
        }

        .gallery-post-main {
            flex: 1;
            min-width: 0;
            font-size: 15px;
            font-weight: bold;
            line-height: 1.45;
            white-space: normal;
            word-break: break-word
        }

        .gallery-post-main b {
            color: #000
        }

        .gallery-post-main strong {
            margin: 0 4px;
            color: #111
        }

        .gallery-post-main em {
            color: #e000d8;
            font-style: normal
        }

        .gallery-post-row:nth-child(3n+2) .gallery-post-main em {
            color: #0a9b32
        }

        .gallery-post-row:nth-child(3n) .gallery-post-main em {
            color: #ff5a00
        }

        .gallery-post-arrow {
            flex: 0 0 auto;
            margin-left: 8px;
            color: #b9d9eb;
            font-size: 24px;
            font-weight: normal
        }

        .gallery-reference-list {
            background: #fff
        }

        .gallery-reference-row {
            display: flex;
            align-items: center;
            min-height: 41px;
            padding: 5px 7px;
            border-bottom: 1px solid #e6e6e6;
            text-decoration: none;
            white-space: nowrap;
            font-size: 14px
        }

        .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;
            font-weight: bold;
            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;
            font-size: 17px !important;
            box-sizing: border-box !important;
        }

        .trend-column-title {
            height: 42px !important;
            min-height: 42px !important;
            padding: 0 3px !important;
            line-height: 42px !important;
            font-size: 15px !important;
        }

        .trend-row {
            min-height: 42px !important;
            padding: 5px 3px !important;
            gap: 2px !important;
            font-size: 14px !important;
            line-height: 20px !important;
            box-sizing: border-box !important;
        }

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

        .gallery-reference-row {
            min-height: 42px !important;
            padding: 5px 6px !important;
            font-size: 14px !important;
            line-height: 30px !important;
            box-sizing: border-box !important;
        }

        .lb-tip-row {
            min-height: 42px !important;
            padding: 7px 6px !important;
            font-size: 15px !important;
            line-height: 26px !important;
            overflow: hidden !important;
            box-sizing: border-box !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;
        }

        /*
 * 第一排文字视觉补偿：
 * 第1至第5个导航字号增加1px
 */
        .quick-nav .quick-nav-item:nth-child(-n + 5) .quick-nav-name {
            font-size: 13px !important;
        }

        /*
 * 第二排保持原字号
 */
        .quick-nav .quick-nav-item:nth-child(n + 6) .quick-nav-name {
            font-size: 13px !important;
        }

/* 内幕卡片标题：强制水平、垂直居中，避免重复旧样式造成视觉偏移 */
.insider-card .insider-title {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

        /* 网站1新增高手榜 / 精品区：参考帖子列表样式。 */
        .site-key-site1 .site1-added-post-block .gallery-badge {
            background: #e8750b;
            border-radius: 6px;
        }

        .site-key-site1 .site1-added-post-block .gallery-ref-open {
            color: #111;
            font-weight: 600;
        }

        .site-key-site1 .site1-added-post-block .site1-post-hand {
            flex: 0 0 auto;
            display: block;
            width: auto;
            height: 22px;
            margin-left: 4px;
            object-fit: contain;
        }

        .site-key-site1 .site1-added-post-block .site1-added-nav-banner {
            width: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            line-height: 0;
        }

        .site-key-site1 .site1-added-post-block .site1-added-nav-banner img {
            display: block;
            width: 100%;
            height: auto;
            margin: 0;
            padding: 0;
        }

        .site-key-site1 .site1-added-post-block .gallery-ref-name {
            color: #777;
        }

/* =========================================================
 * 网站1：新彩下半场子页面入口字体跟澳门新彩高手榜统一
 * 只改字体层级与颜色，不改变新彩下半场现有数据/链接。
 * ========================================================= */
.site-key-site1 .new-front-container .half-time-fortune-row {
    min-height: 42px !important;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 30px !important;
}

.site-key-site1 .new-front-container .half-time-fortune-row > * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.site-key-site1 .new-front-container .half-time-fortune-badge {
    color: #fff !important;
    background: #159447 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
}

.site-key-site1 .new-front-container .half-time-fortune-issue {
    color: #1700a8 !important;
    font-weight: 700 !important;
}

.site-key-site1 .new-front-container .half-time-fortune-name {
    color: #f00000 !important;
    font-weight: 700 !important;
}

.site-key-site1 .new-front-container .half-time-fortune-description {
    color: #111 !important;
    font-weight: 600 !important;
}

.site-key-site1 .new-front-container .half-time-fortune-author {
    color: #777 !important;
    font-weight: 400 !important;
}
