html {
    font-size: 16px;
}

body {
    margin: auto;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    cursor: default;
    width: auto;
    box-sizing: border-box;
    background-color: #f4f5f7;
}

/*主体内容*/
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
}

/*************************** 顶部卡片区域 */
.kapian {
    position: relative;
    background-color: #276749;
    color: #fff;
    text-align: center;
    padding: 30px 20px 50px;
    overflow: hidden;
}

.kapianA {
    display: flex;
    flex-direction: row;
    /* 图标和文字一行显示 */
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.kapianA .icon {
    width: 72px;
    height: 72px;
}

.kapian_text {
    font-size: 32px;
    font-weight: bold;
}

.wangzhan_yuming {
    margin: 18px auto 0;
    display: inline-block;
    padding: 10px 48px;
    background-color: #3b8f45;
    /* 绿色底 */
    border-radius: 999px;
    /* 胶囊圆角 */
    color: #ffffff;
    /* 白色文字 */
    font-size: 28px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.wangzhan_wenzi {
    margin-top: 12px;
    font-size: 26px;
    color: #333333;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

/***************************三开彩区域 */
.sankaijiangquyu {
    display: flex;
    flex-direction: column;
}

.mingcheng {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
}

.mingcheng button {
    flex: 1;
    border: none;
    background-color: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.mingcheng button+button {
    margin-left: 10px;
    /* 按钮之间留一点间距 */
}

/* 按钮里的小旗帜图标 */
.flag-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.15em;
    margin-right: 4px;
}

/* 按钮激活状态颜色：绿 / 红 / 蓝
   提高选择器优先级，覆盖上面的 .mingcheng button 背景色 */
.mingcheng button.btn-xgwy-active {
    background-color: #2f855a;
    color: #fff;
}

.mingcheng button.btn-am-active {
    background-color: #e53e3e;
    color: #fff;
}

.mingcheng button.btn-xglh-active {
    background-color: #3182ce;
    color: #fff;
}


.gongyong_kaijiangquyu {
    width: 100%;
    height: 170px;
}


/**********开奖区域的下方导航栏****************/
.daohang_tu {
    background-color: #cc5b86;
    /* 整条绿色背景 */
    color: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.daohang_tuA {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
}

/* 左侧黄色竖条 */
.daohang_tuA::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 36px;
    background-color: #ffe800;
    margin-right: 10px;
}

.wenzi_A {
    color: #f6e05e;
}

.daohang_tuB a {
    color: #fff;
    font-size: 32px;
    text-decoration: none;
}

.daohang_tuB a:hover {
    text-decoration: underline;
}

/***********************4个网页的进入区域*/
.tupian_wangzhiquyu {
    display: flex;
    justify-content: space-between;
    padding: 10px 40px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.tupian_item {
    width: 220px;
    height: 120px;
    /* 根据你图片大小可调 */
    text-align: center;
}

.tupian_item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.tupian_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.tupian_text {
    margin-top: 8px;
    font-size: 30px;
    font-weight: bold;
    color: #333333;
}

/*********文字入口****************/
.beiyong_zhaozu {
    margin-top: 20px;
    background-color: #f7fafc;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 10px 20px;
    /* 行间 / 列间间距 */
}

.beiyong_zhaozu span {
    flex: 0 0 calc(25% - 20px);
    /* 一行 4 个，平均分配 */
    background-color: #ffffff;
    border-radius: 6px;
    padding: 12px 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

/* ================= 通知公告弹窗 ================= */
.notice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.notice-dialog {
    width: 480px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 10px;
    border: 4px solid #ff4b4b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.notice-header {
    position: relative;
    background-color: #ff4b4b;
    color: #ffffff;
    text-align: center;
    padding: 8px 40px;
    font-size: 20px;
    font-weight: bold;
}

.notice-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.notice-body {
    padding: 14px 16px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

.notice-body p {
    margin: 4px 0;
}

/* 弹窗内部排版（仿截图） */
.nb-strong {
    font-weight: bold;
    text-align: center;
}

.nb-main-logo {
    margin: 10px auto 8px;
    text-align: center;
}

.nb-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #0059d6;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 6px;
}

.nb-logo-text {
    font-weight: bold;
    font-size: 30px;
}

.nb-logo-main {
    color: #ff0000;
}

.nb-logo-dot,
.nb-logo-com {
    color: #0059d6;
}

.nb-main-btn {
    display: block;
    width: 100%;
    margin: 8px auto 10px;
    padding: 8px 0;
    background: #ffd800;
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.nb-main-btn:hover {
    filter: brightness(1.05);
}

.nb-table {
    margin: 6px auto 8px;
}

.nb-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.nb-table th,
.nb-table td {
    border: 1px solid #d0d0d0;
    text-align: center;
    padding: 4px 2px;
}

.nb-table th {
    background: #f5f5f5;
}

.nb-red-text {
    color: #ff0000;
    text-decoration: none;
}

.nb-red-text:hover {
    text-decoration: underline;
}

.nb-footer {
    margin-top: 4px;
    text-align: center;
    font-weight: bold;
}

/* ================= 手机端整体布局与各区域适配 ================= */
@media (max-width: 600px) {

    /* 整体字体稍微放大，提升阅读性（参考 2hao.css） */
    html {
        font-size: 18px;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    /* 主体内容：PC 为 800px 居中，手机端改为 100% 宽度 */
    .main-content {
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        box-sizing: border-box;
    }

    /******** 顶部卡片区域（kapian） ********/
    .kapian {
        padding: 20px 12px 30px;
    }

    .kapianA {
        gap: 10px;
    }

    .kapianA .icon {
        width: 48px;
        height: 48px;
    }

    .kapian_text {
        font-size: 22px;
    }

    .wangzhan_yuming {
        margin-top: 14px;
        padding: 8px 28px;
        font-size: 20px;
    }

    .wangzhan_wenzi {
        margin-top: 8px;
        font-size: 18px;
    }

    /******** 三开彩区域（标题按钮 + 开奖内容高度） ********/
    .mingcheng {
        font-size: 16px;
    }

    .mingcheng button {
        font-size: 16px;
    }

    .mingcheng button+button {
        margin-left: 6px;
    }

    .gongyong_kaijiangquyu {
        height: auto;
    }

    /******** 开奖区域下方导航条 ********/
    .daohang_tu {
        height: 60px;
        padding: 0 12px;
    }

    .daohang_tuA {
        font-size: 20px;
    }

    .daohang_tuA::before {
        width: 4px;
        height: 26px;
        margin-right: 6px;
    }

    .daohang_tuB a {
        font-size: 20px;
    }

    /******** 四个网页入口图片区 ********/
    .tupian_wangzhiquyu {
        flex-direction: column;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
    }

    .tupian_item {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .tupian_text {
        font-size: 20px;
    }

    /******** 文字入口区（备用导航块） ********/
    .beiyong_zhaozu {
        padding: 10px 12px;
        gap: 8px 10px;
    }

    .beiyong_zhaozu span {
        flex: 0 0 calc(50% - 10px);
        padding: 10px 0;
        font-size: 16px;
    }

    /* 弹窗手机端适配 */
    .notice-dialog {
        width: 90%;
        border-width: 3px;
    }

    .notice-header {
        padding: 8px 32px;
        font-size: 18px;
    }

    .notice-body {
        padding: 10px 12px 14px;
        font-size: 13px;
    }
}