/* 917WSF responsive enhancement. Load this file after index/v5/style/index.css. */
:root {
    --site-gold: #f0ca70;
    --site-gold-light: #fff0b7;
    --site-wine: #681b10;
    --site-wine-dark: #350900;
}

.topquicklink .Down_link {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.topquicklink .Down_link:hover,
.topquicklink .Down_link:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.46), 0 0 0 2px rgba(240, 202, 112, 0.72);
    transform: translateY(-4px);
}

.games {
    border-radius: 6px;
}

.games .photo {
    overflow: hidden;
    border-radius: 4px;
}

.games .photo img {
    transition: transform 240ms ease;
}

.games:hover .photo img {
    transform: scale(1.03);
}

.games .photo .open-countdown {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 16px);
    padding: 5px 9px;
    border: 1px solid rgba(255, 231, 151, 0.9);
    border-radius: 3px;
    background: rgba(116, 36, 8, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    color: #fff7d4;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.games .photo .countdown-label {
    color: #ffe89a;
    font-weight: 700;
}

.games .photo .countdown-value {
    color: #ffffff;
    font-family: Consolas, 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.games .photo .open-countdown[hidden] {
    display: none;
}

.btnbox a {
    display: block;
    border-radius: 4px;
}

.tab3Btn {
    border: 1px solid #6b3208;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 249, 189, 0.62), 0 2px 0 #4d1c04;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tab3Btn:hover,
.tab3Btn:focus-visible {
    background: linear-gradient(180deg, #ffe28d, #cf7d1d);
    border-color: #7b2b06;
    transform: translateY(-1px);
}

.tab3Btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 3px rgba(78, 26, 0, 0.36);
}

@media (max-width: 767px) {
    html,
    body {
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
        background: #360900;
        overflow-y: auto;
    }

    #topheader {
        height: auto;
        min-width: 0;
        padding: 8px 0 0;
    }

    #topheader .center,
    .center,
    .content,
    .md-content .GameVer,
    .Title div {
        width: 100%;
        max-width: none;
    }

    #logo {
        float: none;
        width: min(250px, 74vw);
        height: auto;
        margin: 0 auto 8px;
        text-align: center;
    }

    #logo img {
        width: 100%;
        height: auto;
    }

    #menu {
        float: none;
        width: 100%;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #menu ul,
    #menu ul li {
        margin: 0;
    }

    #menu ul {
        display: flex;
        float: none;
        width: max-content;
        min-width: 980px;
        padding: 0 6px;
    }

    #menu ul li {
        float: none;
    }

    #menu ul a {
        float: left;
        width: 140px;
        height: 54px;
        min-height: 0;
        margin: 0;
        padding: 0 6px;
        line-height: 54px;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
    }

    #Version,
    #Header,
    .bg-v .video {
        height: 310px;
    }

    #Header {
        width: 100%;
        margin: 0;
        left: 0;
    }

    #Header img {
        width: 100%;
        height: 310px;
        object-fit: cover;
        object-position: center top;
    }

    .bg-v {
        min-width: 0;
        height: 310px;
    }

    .bg-v .video {
        width: 100%;
        left: 0;
        transform: none;
    }

    .bg-v video {
        object-fit: cover;
    }

    .head-wrap .content {
        height: 100%;
    }

    .topquicklink {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: calc(100% - 24px);
        height: auto;
        top: auto;
        right: 12px;
        bottom: 14px;
        overflow: visible;
    }

    .topquicklink .Down_link {
        float: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1.48 / 1;
        margin: 0;
    }

    .topquicklink .Down_link img {
        object-fit: cover;
    }

    .md-content {
        padding: 26px 12px 54px;
        background-position: center top;
        background-size: auto 100%;
    }

    .Title {
        height: auto;
        min-height: 46px;
        margin: 0 0 14px;
        padding: 0 4px 8px;
        line-height: 1.35;
        text-align: center;
    }

    .Title div > div[style] {
        position: static !important;
        width: auto !important;
        margin: 0 0 6px !important;
        font-size: 13px !important;
    }

    .rainbow {
        font-size: 24px;
        line-height: 1.25;
    }

    .games {
        float: none;
        box-sizing: border-box;
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 0;
        margin: 0 auto 15px;
        padding: 18px;
        background-size: 100% 100%;
    }

    .games .photo,
    .games .photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.73 / 1;
    }

    .games .photo img {
        object-fit: cover;
    }

    .games .photo .open-countdown {
        right: 6px;
        bottom: 6px;
        justify-content: center;
        max-width: none;
        padding: 5px 6px;
        gap: 5px;
        font-size: 12px;
    }

    .games .list {
        margin: 15px 0 16px;
    }

    .games .list li {
        height: auto;
        min-height: 26px;
        padding-left: 26px;
        line-height: 1.65;
        font-size: 13px;
        white-space: normal;
        text-overflow: clip;
        background-position: 4px 8px;
    }

    .btnbox {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .btnbox a,
    .tab3Btn {
        width: 100%;
    }

    .tab3Btn {
        height: 38px;
    }

    .tab3Btn span {
        font-size: 14px;
    }

    #footer {
        box-sizing: border-box;
        min-width: 0;
        height: auto;
        padding: 24px 16px 30px;
    }

    .service_2 {
        float: none;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        margin: 0;
        text-align: center;
    }

    .service_2 span {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 28px;
        margin: 0;
        padding: 3px 0;
        line-height: 1.6;
        color: #d7c5b6;
    }

    .bg-bg,
    .mid-autumn,
    .mid-autumn1,
    .mid-autumn2,
    .lqzx {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .games {
        padding: 14px;
    }

    .tab3Btn span {
        font-size: 13px;
    }
}
