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;
    color: #333333;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    border: 4px solid #dd3d15;
    border-top: none;
    border-bottom: none;
}

.tupian {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tupian img {
    width: 100%;
    height: auto;
    display: block;
}

.\31 tu {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.\31 tu img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.gif-hk-overlay {
    position: relative;
}

.gif-hk-overlay .gif-hk-overlay-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 64px;
    height: 64px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 600px) {
    html {
        font-size: 18px;
        overflow-y: auto;
        overflow-x: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    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,
    .main-content::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .main-content {
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        box-sizing: border-box;
        border-left-width: 2px;
        border-right-width: 2px;
        overflow: hidden;
    }

    .tupian {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .tupian img {
        width: 100%;
        height: auto;
        display: block;
    }

    .\31 tu {
        padding: 0;
    }

    .\31 tu img {
        width: 100%;
        height: auto;
        display: block;
    }

    .gif-hk-overlay .gif-hk-overlay-icon {
        right: 8px;
        bottom: 8px;
        width: 48px;
        height: 48px;
    }
}


/****************下面是开奖区的css  手机适配也放到下面 ***************************/

.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;
}

#xianggang-wuye {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 4px;
}

#xianggang-wuye .flag-icon {
    margin-right: 0;
}

.mingcheng button+button {
    margin-left: 10px;
}

.flag-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.15em;
    margin-right: 4px;
}

.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;
    box-sizing: border-box;
}

.gongyong_kaijiangquyu iframe {
    display: block;
    width: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .mingcheng {
        font-size: 16px;
    }

    .mingcheng button {
        font-size: 16px;
    }

    #xianggang-wuye {
        gap: 1px;
        padding: 4px 2px;
    }

    .mingcheng button+button {
        margin-left: 4px;
    }

    .flag-icon {
        width: 1em;
        height: 1em;
        margin-right: 2px;
    }

    .gongyong_kaijiangquyu {
        height: 160px;
    }
}


/*************************文字模板区样式*************************************/
.wenzi_moban {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background-color: #ebee21f5;
}

.wenzi_moban h1 {
    font-weight: bold;
    margin: 0;
    color: #1c1c1de7;
}

.wenzi_moban_1 {
    gap: 6px;
    font-size: 25px;
    display: flex;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    font-weight: 700;
    justify-content: center;
    align-items: center;
}

.wenzi_moban_1_A {
    font-size: 36px;
    color: #811cd3;
    font-weight: bold;
}

.wenzi_moban_2 {
    display: flex;
    width: 100%;
    font-size: 35px;
    max-width: 600px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.wenzi_moban_2_A {
    color: #e53e3e;
    font-size: 40px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .wenzi_moban {
        gap: 8px;
        padding: 10px 12px;
    }

    .wenzi_moban h1 {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.3;
    }

    .wenzi_moban_1 {
        width: 100%;
        max-width: 100%;
        gap: 4px;
        font-size: 18px;
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.4;
    }

    .wenzi_moban_1_A {
        font-size: 28px;
    }

    .wenzi_moban_2 {
        width: 100%;
        max-width: 100%;
        gap: 4px;
        font-size: 24px;
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.3;
    }

    .wenzi_moban_2_A {
        font-size: 30px;
    }
}



/*************10组后端拉取的上传的图片的样式***********************/

[class^="zu"] {
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

[class^="zu"].has-image {
    display: flex;
}

[class^="zu"] img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

@media (max-width: 600px) {
    [class^="zu"] {
        padding: 0;
    }

    [class^="zu"] img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/*新加的  港彩午夜彩文字的 单独样式*/

.gif-text-overlay {
    position: relative;
}

@keyframes gifOverlayBlink {

    0%,
    100% {
        color: #ffd76a;
        text-shadow: 0 2px 4px rgba(88, 18, 10, 0.55), 0 0 0 rgba(255, 228, 120, 0);
    }

    50% {
        color: #fff3a8;
        text-shadow: 0 2px 4px rgba(88, 18, 10, 0.55), 0 0 10px rgba(255, 228, 120, 0.85);
    }
}

.gif-overlay-text {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: #ffd76a;
    background-color: rgba(166, 28, 22, 0.92);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px 0 0 0;
    text-shadow: 0 2px 4px rgba(88, 18, 10, 0.55), 0 0 0 rgba(255, 228, 120, 0);
    box-shadow: 0 4px 10px rgba(92, 16, 12, 0.28);
    pointer-events: none;
    animation: gifOverlayBlink 1.15s ease-in-out infinite;
}

@media (max-width: 600px) {
    .gif-overlay-text {
        right: 0;
        bottom: 0;
        font-size: 16px;
        padding: 4px 8px;
        border-radius: 4px 0 0 0;
    }
}