/* 应用样式：作用于 .app-page，按组件基础样式及响应式断点组织。 */

/* 01. 应用级布局变量 */

.app-page {
    --quick-button-height: 80px;
    --quick-padding-block: 9.6px;
    --quick-bottom: 20px;
    --quick-item-count: 3;
}

.app-page.has-back-to-top {
    --quick-item-count: 4;
}


/* 02. 横幅 */

.app-page .carousel-caption {
    top: 180px;
    bottom: 0px;
    text-align: left;
}

.app-page .carousel-indicators {
    position: absolute;
    right: 0px;
    top: 460px;
    left: unset;
}

.app-page .carousel-fade .carousel-item.active,
.app-page .carousel-fade .carousel-item-next.carousel-item-left,
.app-page .carousel-fade .carousel-item-prev.carousel-item-right {
    z-index: 0;
}

.app-page .home-benefit-grid > .col-3 {
    padding: 8px;
}

/* 03. 游戏卡片与福利面板 */

.app-page .card-img-body {
    background: rgba(185, 21, 57, 0.7);
    height: 184px;
    padding: 20px 15px 10px;
    color: rgb(255, 255, 255);
    margin-top: -184px;
    transition: 0.3s linear;
    opacity: 0;
}

.app-page .card-img-body .row .col-4 {
    padding: 0px 8px;
}

.app-page .gonggao {
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.app-page .gonggao p {
    margin-bottom: 5px;
    margin-left: 10px;
    padding-left: 8px;
    font-size: 15px;
}

.app-page .home-host-panel .row .col .media {
    background-color: rgb(255, 255, 255);
}

.app-page .home-host-panel .row .col {
    padding: 0px 8px;
}

.app-page .home-host-panel .row .col .media img {
    box-shadow: rgba(66, 63, 105, 0.4) 1px 1px 5px;
}

.app-page .home-host-panel .row .col .media .media-body {
    padding-top: 20px;
}

.app-page .home-host-panel .row .col .media .btn-group {
    display: none;
    margin-top: -10px;
}

.app-page .home-host-panel .row .col .media:hover .btn-group {
    display: block;
}

.app-page .home-host-panel .row .col .media:hover .media-body {
    padding-top: 0px;
}

.app-page .jinganqu-block {
    display: none;
}

.app-page .cards {
    color: rgb(255, 255, 255);
    display: block;
    width: 100%;
    min-height: 140px;
    height: 140px;
    padding: 30px 15px 10px 35px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: rgb(255, 255, 255);
    z-index: -1;
    border-radius: 8px;
    transform: scale(1);
    transition: 0.3s ease-in-out;
}

.app-page .cards h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.app-page .cards button {
    width: 90px;
    border-radius: 25px;
}

.app-page .cards:hover {
    transform: scale(1.07);
}

/* 04. 会员卡与等级外观 */

.app-page .user-card {
    clear: both;
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 0px;
    height: 225px;
}

.app-page .user-card .user-growth-0 {
    background: url("/img/card/user.png");
    color: rgb(101, 57, 0);
}

.app-page .user-card .user-growth-1 {
    background: url("/img/card/user1.png");
    color: rgb(156, 65, 0);
}

.app-page .user-card .user-growth-2 {
    background: url("/img/card/user2.png");
    color: rgb(74, 84, 99);
}

.app-page .user-card .user-growth-3 {
    background: url("/img/card/user3.png");
    color: rgb(132, 34, 0);
}

.app-page .user-card .user-growth-4 {
    background: url("/img/card/user4.png");
    color: rgb(61, 78, 91);
}

.app-page .user-card .user-growth-5 {
    background: url("/img/card/user5.png");
    color: rgb(68, 26, 87);
}

.app-page .user-card .user-growth-6 {
    background: url("/img/card/user6.png");
    color: rgb(75, 92, 97);
}

.app-page .user-card .user-growth-7 {
    background: url("/img/card/user7.png");
    color: rgb(174, 61, 6);
}

.app-page .user-card .user-growth-8 {
    background: url("/img/card/user8.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-9 {
    background: url("/img/card/user9.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-10 {
    background: url("/img/card/user10s.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-11 {
    background: url("/img/card/user11s.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-12 {
    background: url("/img/card/user12.jpg");
    color: rgb(249, 228, 135);
}

.app-page .user-card .user-growth-13 {
    background: url("/img/card/user13.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-14 {
    background: url("/img/card/user14.png");
    color: rgb(166, 104, 50);
}

.app-page .user-card .user-growth-15 {
    background: url("/img/card/user15.png");
    color: rgb(166, 104, 50);
}

.app-page .typm_btn {
    color: rgb(249, 228, 135);
    border: 1px solid rgb(249, 228, 135);
    transition: 0.5s;
}

.app-page .typm_btn:hover {
    color: red;
    background: rgb(249, 228, 135);
    border: 1px solid rgb(249, 228, 135);
    transition: 0.5s;
}

.app-page .user-card .card-content {
    clear: both;
    padding: 20px 20px 20px 10px;
    width: 100%;
    height: 225px;
    border-radius: 10px;
}

.app-page .user-card .card-content hr {
    border-color: rgb(255, 255, 255);
}

.app-page .game-icon:hover {
    transform: scale(1.07);
}

.app-page .home-category-list button {
    min-width: 70px;
    border-radius: 25px;
    margin: 0px;
}

/* 05. 业务外观与静态修饰类 */

.app-page .home-promo-left {
    left: 5px;
    width: 150px;
    top: 300px;
    display: none;
}

.app-page .home-promo-right {
    left: calc(100% - 160px);
    width: 150px;
    top: 300px;
    display: none;
}

.app-page .home-caption-shadow {
    text-shadow: rgba(0, 0, 0, 0.65) 0px 2px 8px;
}

.app-page .home-banner-title {
    font-size: 54px;
}

.app-page .home-banner-description {
    font-size: 22px;
    font-weight: 600;
}

.app-page .home-action-highlight {
    color: chartreuse;
}

.app-page .home-seasonal-promo {
    position: fixed;
    right: 1%;
    top: 70%;
    z-index: 100;
    display: none;
}

.app-page .home-benefit-monthly {
    background-image: url("/static/images/1.png");
    background-color: unset;
}

.app-page .home-benefit-title {
    font-size: 24px;
}

.app-page .home-benefit-free {
    background-image: url("/static/images/31cq首页小图.png");
    background-color: unset;
}

.app-page .home-benefit-signin {
    background-image: url("/static/images/3.png");
    background-color: unset;
}

.app-page .home-benefit-download {
    background-image: url("/static/images/4.png");
    background-color: unset;
}

.app-page .home-login-overlay {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    margin: 0;
}

.app-page .home-login-action {
    min-height: 40px;
    padding: 8px 22px;
    border: 1px solid #ffe4ab;
    border-radius: 6px;
    background: #af1f06;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(102, 18, 5, .15);
}

.app-page .home-balance-offset {
    margin-left: 4rem;
}

.app-page .home-host-panel {
    padding-top: 7px;
}

.app-page .home-text-medium {
    font-size: 15px;
}

.app-page .home-text-small {
    font-size: 12px;
}

.app-page .home-transfer-offset {
    margin-left: 2rem;
}

.app-page .home-section-art {
    width: 90%;
    margin-top: -10px;
    margin-left: -17px;
}

.app-page .home-full-width {
    width: 100%;
}

.app-page .home-countdown {
    width: fit-content;
    display: none;
}

.app-page .home-opening-times {
    min-height: 115px;
    place-content: center;
    vertical-align: middle;
}

.app-page .home-text-detail {
    font-size: 14px;
}

.app-page .home-text-description {
    font-size: 13px;
}

.app-page .ribbon3.rib3-warning {
    font-size: 15px;
    bottom: 36.8%;
    position: absolute;
    background: rgb(255, 159, 67);
}

.app-page .col-99 {
    margin-top: auto;
    margin-left: auto;
}

.app-page .btn-lg-index {
    padding: 1.1rem;
    font-size: 1.55rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.app-page .game_icon {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 35%;
    z-index: 10;
    transform: none;
}

.app-page .flex_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-page .lumn_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    background-color: var(--site-accent);
    height: 49px;
}

.app-page .lumn_title {
    position: relative;
}

.app-page .lumn_tip {
    width: 800px;
    text-align: end;
    font-family: "Microsoft YaHei";
    font-weight: bold;
    font-size: 20px;
    color: rgb(254, 2, 2);
    background: linear-gradient(0deg, rgb(255, 248, 45) 0%, rgb(255, 232, 153) 100%) text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.6);
}

.app-page .lumn_img {
    width: 10%;
}

.app-page .lumn_text {
    position: absolute;
    top: 50%;
    left: 54px;
    transform: translateY(-50%);
    font-family: "Microsoft YaHei";
    font-weight: bold;
    font-size: 22px;
    color: rgb(255, 255, 255);
}

.app-page .game_content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* 06. 福利区与游戏列表布局 */

.app-page .home-benefits {
    position: relative;
    margin: -160px auto 0px;
}

.app-page .home-benefit-grid .cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.app-page .home-game-guide {
    position: absolute;
    left: 20px;
    top: 280px;
    z-index: 100;
}

.app-page .home-game-list .game_right {
    width: 100%;
    min-width: 0px;
}

.app-page .home-game-list .lumn_title {
    flex: 0 0 28%;
    min-width: 0px;
}

.app-page .home-game-list .flex_box {
    flex: 1 1 0%;
    min-width: 0px;
}

.app-page .home-game-list .lumn_tip {
    width: auto;
    flex: 1 1 0%;
    overflow-wrap: anywhere;
}

.app-page .home-game-list .lumn_img {
    width: 64px;
    flex-shrink: 0;
}

.app-page .home-game-list .lumn_text {
    left: 12%;
    white-space: nowrap;
}

.app-page .home-section-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-page .home-section-divider h3 {
    position: absolute;
    margin: 0px;
    color: var(--site-accent);
    font-size: clamp(18px, 2vw, 28px);
}

.app-page .home-game-grid > .col-3 {
    padding: 8px;
}

.app-page .home-game-grid .card {
    border: 0px;
}

.app-page .home-game-grid .card-body .col-99 {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding: 0px;
}

/* 07. 搜索与分类 */

.app-page .home-discovery {
    margin-top: 40px;
    margin-bottom: 36px;
}

.app-page .home-discovery-title {
    margin: 0px 0px 24px;
    color: var(--site-text);
    font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.app-page .home-search-form {
    position: relative;
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0px auto;
}

.app-page .home-search-form::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 18px;
    width: 14px;
    height: 14px;
    border: 2px solid rgb(150, 155, 165);
    border-radius: 50%;
    pointer-events: none;
}

.app-page .home-search-form::after {
    content: "";
    position: absolute;
    left: 32px;
    top: 31px;
    width: 7px;
    height: 2px;
    background: rgb(150, 155, 165);
    transform: rotate(45deg);
    pointer-events: none;
}

.app-page .home-search-input {
    width: 100%;
    max-width: 100%;
    height: 54px;
    padding: 12px 18px 12px 48px;
    border: 1px solid rgb(223, 226, 232);
    border-radius: 12px;
    background: rgb(255, 255, 255);
    color: var(--site-text);
    font-size: 15px;
    box-shadow: rgba(32, 38, 50, 0.04) 0px 3px 12px;
}

.app-page .home-search-input::placeholder {
    color: rgb(138, 144, 156);
}

.app-page .home-search-input:focus {
    border-color: var(--site-accent);
    box-shadow: rgba(178, 51, 22, 0.1) 0px 0px 0px 3px;
}

.app-page .home-category-wrap {
    margin-top: 22px;
}

.app-page .home-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* 悬停层独立定位，始终绘制在带定位的封面上方。 */
.app-page .home-game-grid .card-img-body {
    position: relative;
    z-index: 1;
    transition: opacity 0.18s ease;
}

.app-page .home-game-grid .card:hover .card-img-body,
.app-page .home-game-grid .card:focus-within .card-img-body {
    opacity: 1;
}

/* 08. 快捷服务、返回顶部与活动入口 */

.app-page .home-quick-actions {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--quick-bottom) + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: var(--quick-padding-block) 4.8px;
    border: 1px solid rgb(227, 229, 233);
    border-radius: 14.4px;
    background: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.18) 0px 6px 24px;
}

.app-page .home-quick-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.8px;
    width: 96px;
    min-height: var(--quick-button-height);
    padding: 0px 9.6px;
    border: 0px;
    background: transparent;
    color: rgb(51, 51, 51);
    font-size: 14.4px;
    line-height: 1.5;
    cursor: pointer;
}

/* hidden 必须覆盖工具栏按钮的 flex 显示规则。 */

.app-page .home-quick-actions button[hidden] {
    display: none;
}

.app-page .home-back-to-top-icon {
    padding: 6px;
    border: 1px solid #ecd6a6;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffaf0, #f9e6bc);
    color: #a36b1f;
}

.app-page .home-quick-actions .home-back-to-top:hover {
    color: #333;
}

.app-page .home-quick-actions button + button {
    border-top: 1px solid rgb(233, 234, 238);
}

.app-page .home-quick-actions img,
.app-page .home-back-to-top-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-page .home-quick-actions button:hover {
    color: var(--site-accent);
}

.app-page .home-quick-actions button:focus-visible {
    outline: var(--site-accent) solid 2px;
    outline-offset: -2px;
    border-radius: 6px;
}

.app-page .home-float-rail {
    --home-float-size: 112px;
    position: fixed;
    bottom: calc(var(--quick-bottom) + var(--quick-item-count) * var(--quick-button-height) + 2 * var(--quick-padding-block) + 18px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.app-page .home-float-right {
    right: max(12px, env(safe-area-inset-right, 0px));
}

.app-page .home-float-link,
.app-page .home-float-rail .home-topup-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--home-float-size);
    height: var(--home-float-size);
    padding: 0px;
    border: 0px;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}

.app-page .home-float-rail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-page .home-float-link:focus-visible {
    outline: rgb(40, 70, 167) solid 2px;
    outline-offset: 2px;
}

/* 09. 响应式：桌面、平板、手机，保持断点顺序 */

@media (min-width: 768px) {
    .app-page .home-carousel .home-hero > img {
        object-fit: cover;
        object-position: center center;
    }

    .app-page .home-carousel .home-hero-caption {
        inset: 160px 6% auto max(6%, 50% - 620px);
        padding: 0px;
    }

    .app-page .home-carousel .home-hero-caption h1 {
        line-height: 1.3;
        margin-bottom: 18px;
        letter-spacing: 1px;
        font-size: clamp(36px, 3.4vw, 54px);
    }

    .app-page .home-carousel .home-hero-caption h3 {
        line-height: 1.7;
        font-size: 20px;
        margin-bottom: 30px;
    }

    .app-page .home-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

    .app-page .home-carousel .home-hero-actions .btn {
        min-width: 136px;
        padding: 14px 24px;
        font-size: 21px;
        font-weight: 600;
        line-height: 1.5;
        border-radius: 6px;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 14px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .app-page .home-carousel .home-hero-actions .btn {
        min-width: 120px;
        padding: 12px 18px;
        font-size: 18px;
    }
}

@media (max-width: 1199.98px) {
    .app-page .lumn_tip {
        font-size: 16px;
    }

    .app-page .lumn_text {
        font-size: 18px;
    }

    .app-page .home-carousel .carousel-item > img {
        height: 460px;
        object-fit: cover;
    }

    .app-page .home-carousel .carousel-caption {
        top: 60px;
    }

    .app-page .home-carousel .carousel-caption h1 {
        font-size: 36px;
    }

    .app-page .home-carousel .carousel-caption h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .app-page .btn-lg-index {
        font-size: 18px;
        padding: 12px;
    }

    .app-page .home-benefits {
        margin-top: 0px;
        padding-top: 16px;
    }

    .app-page .home-benefit-grid > .col-3,
    .app-page .home-game-grid > .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .app-page .home-host-panel .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 16px;
    }

    .app-page .user-card,
    .app-page .user-card .card-content {
        height: auto;
        min-height: 225px;
    }

    .app-page .home-game-guide {
        top: 16px;
        left: auto;
        right: 12px;
    }

    .app-page .home-game-guide img {
        width: 40px;
    }

    .app-page .home-benefit-grid .cards {
        height: auto;
        min-height: 0px;
        aspect-ratio: 30 / 13;
        background-size: contain;
        border-radius: 0px;
        padding: 20px clamp(20px, 3vw, 36px);
    }

    .app-page .home-benefit-grid .cards h5 {
        line-height: 1.25;
        margin: 0px 0px 16px;
        text-shadow: rgba(0, 0, 0, 0.25) 0px 1px 3px;
        font-size: clamp(22px, 2.6vw, 30px);
    }

    .app-page .home-benefit-grid .cards button {
        width: auto;
        min-width: 104px;
        padding: 6px 18px;
        font-size: clamp(13px, 1.4vw, 16px);
        line-height: 1.5;
        flex-shrink: 0;
    }

    .app-page .home-float-rail {
        --home-float-size: 88px;
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .app-page .home-carousel .home-hero {
        min-height: 330px;
        isolation: isolate;
    }

    .app-page .home-carousel .home-hero > img {
        position: absolute;
        inset: 0px;
        height: 100%;
        object-fit: cover;
        object-position: 60% center;
        z-index: -2;
    }

    .app-page .home-carousel .home-hero::after {
        content: "";
        position: absolute;
        inset: 0px;
        background: linear-gradient(90deg, rgba(20, 9, 5, 0.8), rgba(20, 9, 5, 0.28));
        z-index: -1;
    }

    .app-page .home-carousel .home-hero-caption {
        position: relative;
        inset: auto;
        padding: 86px 20px 24px;
        text-align: left;
        display: block;
    }

    .app-page .home-carousel .home-hero-caption h1 {
        max-width: 20em;
        line-height: 1.3;
        margin-bottom: 12px;
        font-size: clamp(24px, 6.8vw, 36px);
    }

    .app-page .home-carousel .home-hero-caption h3 {
        line-height: 1.65;
        font-size: 15px;
        margin-bottom: 22px;
    }

    .app-page .home-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-page .home-carousel .home-hero-actions .btn {
        flex: 1 1 0px;
        min-width: 0px;
        padding: 10px 6px;
        font-size: 15px;
        line-height: 1.5;
        white-space: nowrap;
        border-radius: 6px;
    }

    .app-page .home-game-guide {
        top: 16px;
        left: 12px;
        right: auto;
    }

    .app-page .home-game-guide img {
        width: 48px;
    }

    .app-page .home-benefits {
        margin-top: 0px;
        padding: 12px 12px 0px;
    }

    .app-page .home-benefit-grid {
        margin: -6px;
    }

    .app-page .home-benefit-grid > .col-3 {
        padding: 6px;
    }

    .app-page .home-benefit-grid .cards {
        padding: 12px;
        background-position: center center;
        border-radius: 6px;
    }

    .app-page .home-benefits > .clearfix.mb-4 {
        margin-bottom: 12px;
    }

    .app-page .home-benefit-grid .cards h5 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .app-page .home-benefit-grid .cards:hover {
        transform: none;
    }

    .app-page .home-discovery {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .app-page .home-discovery-title {
        margin-bottom: 18px;
    }

    .app-page .home-search-input {
        font-size: 13px;
    }

    .app-page .home-game-list .lumn_box {
        height: auto;
        min-height: 49px;
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    .app-page .home-game-list .lumn_title {
        flex-basis: 100%;
    }

    .app-page .home-game-list .lumn_title > img {
        display: none;
    }

    .app-page .home-game-list .lumn_text {
        position: static;
        transform: none;
        white-space: normal;
    }

    .app-page .home-game-list .lumn_tip {
        text-align: left;
        font-size: 14px;
    }

    .app-page .home-game-list .lumn_img {
        width: 40px;
    }

    .app-page .home-game-list > .game_right > div > .container-xl {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 575.98px) {
    .app-page .home-benefit-grid .cards {
        padding: 8px 10px;
        border-radius: 0px;
        background-size: contain;
    }

    .app-page .home-benefit-grid .cards h5 {
        margin-bottom: 6px;
        line-height: 1.2;
        white-space: nowrap;
        font-size: clamp(12px, 3.5vw, 18px);
    }

    .app-page .home-benefit-grid .cards button {
        width: auto;
        min-width: 60px;
        padding: 2px 9px;
        font-size: 11px;
        line-height: 1.4;
    }

    .app-page .home-game-grid > .col-3,
    .app-page .home-host-panel .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .app-page .home-game-grid .card-body h6 {
        overflow-wrap: anywhere;
    }

    .app-page {
        --quick-button-height: 74px;
        --quick-padding-block: 7.2px;
        --quick-bottom: 12px;
    }

    .app-page .home-quick-actions {
        right: max(12px, env(safe-area-inset-right, 0px));
        padding: var(--quick-padding-block) 2.4px;
    }

    .app-page .home-quick-actions button {
        width: 91.2px;
        min-height: var(--quick-button-height);
    }

    .app-page .home-quick-actions img,
    .app-page .home-back-to-top-icon {
        width: 31.2px;
        height: 31.2px;
    }

    .app-page .home-float-rail {
        --home-float-size: 76px;
        gap: 6px;
    }

    .app-page .home-float-right {
        right: max(8px, env(safe-area-inset-right, 0px));
    }
}

/* 触屏直接显示紧凑操作栏，避免沿用桌面悬浮层的大块背景。 */

@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
    .app-page .home-game-grid .card {
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .app-page .home-game-grid .card-img-top {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .app-page .home-game-grid .card-img-body {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        height: auto;
        min-height: 0;
        margin-top: 0;
        padding: 12px;
        background: #fff;
        color: #495057;
        border-bottom: 1px solid #f1f2f4;
        opacity: 1 !important;
        transition: none;
    }

    .app-page .home-game-grid .card-img-body > .text-center > img {
        width: 48px;
        height: 48px;
        margin-top: 0 !important;
        object-fit: cover;
    }

    .app-page .home-game-grid .card-img-body > .row {
        margin: 0 !important;
        flex-wrap: nowrap;
    }

    .app-page .home-game-grid .card-img-body .row .col-4 {
        min-width: 0;
        padding: 0 3px;
        margin-bottom: 0 !important;
    }

    .app-page .home-game-grid .card-img-body .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-bottom: 0 !important;
        padding: 6px 2px;
        white-space: nowrap;
        font-size: 12px;
    }

    .app-page .home-game-grid .card-img-body:has(.home-opening-times) {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-page .home-game-grid .home-opening-times {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 10px;
        min-height: 0;
        margin-top: 0 !important;
    }

    .app-page .home-game-grid .home-opening-times h4 {
        margin-bottom: 0 !important;
        font-size: 12px;
        line-height: 1.5;
    }

    .app-page .home-game-grid .home-countdown {
        position: static;
        width: 100%;
        padding: 6px 8px;
        text-align: center;
        font-size: 12px;
    }

    .app-page .home-game-grid .card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin-top: 0 !important;
        padding: 14px 12px;
    }

    .app-page .home-game-grid .card-body:has(> .col-99 .btn) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .app-page .home-game-grid .card-body > .mt-1 {
        min-width: 0;
        margin-top: 0 !important;
    }

    .app-page .home-game-grid .card-body .col-99 {
        margin: 0;
    }

    .app-page .home-game-grid .card-body .col-99:not(:has(.btn)) {
        display: none;
    }

    .app-page .home-game-grid .card-body .col-99 > .text-right {
        margin-top: 0 !important;
    }

    .app-page .home-game-grid .card-body h6 {
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.5;
    }

    .app-page .home-game-grid .card-body .card-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: anywhere;
        margin-bottom: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .app-page .home-game-grid .card-body .col-99 .btn {
        min-height: 44px;
        padding: 10px 12px;
        white-space: nowrap;
        font-size: 13px;
    }
}

/* 首页列表加载时预留首排空间；慢请求才显示轻量提示。 */

.app-page .home-games-pending {
    min-height: 380px;
}

.app-page .home-game-status {
    display: none;
    padding: 48px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.app-page .home-games-pending .home-game-status {
    padding-top: 140px;
}

.app-page .home-game-status.is-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid #eee;
    border-top-color: #aaa;
    border-radius: 50%;
    animation: home-game-loading 0.8s linear infinite;
}

@keyframes home-game-loading {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-page .home-game-status.is-loading::before {
        animation: none;
    }
}

/* 返回顶部通过展开和渐显进入，避免工具栏高度突然跳变。 */

.app-page .home-quick-actions .home-back-to-top {
    height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top-width: 0;
    transform: translateY(-6px);
    transition: height .26s ease, min-height .26s ease, opacity .2s ease, transform .26s ease, border-top-width .26s ease;
}

.app-page .home-quick-actions .home-back-to-top.is-visible {
    height: var(--quick-button-height);
    min-height: var(--quick-button-height);
    opacity: 1;
    border-top-width: 1px;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .app-page .home-quick-actions .home-back-to-top {
        transition: none;
    }
}

/* 登录与说明共用一组比例，原图完整展示，避免文字裁切。 */

.app-page .home-benefit-panel {
    display: grid;
    grid-template-columns: minmax(0, 530fr) minmax(0, 807fr);
    align-items: start;
    gap: 24px;
    margin: 0;
}

.app-page .home-benefit-panel > .col-5,
.app-page .home-benefit-panel > .col-7 {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.app-page .home-login-card {
    position: relative;
    width: 100%;
    aspect-ratio: 530 / 225;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(84, 31, 13, .06);
}

.app-page .home-login-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-page .home-notice-image {
    display: block;
    width: 100%;
    height: auto;
}

.app-page .home-notice:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 3px;
}

.app-page .home-login-action:hover {
    background: #c22b10;
    border-color: #fff0ce;
    color: #fff;
}

@media (max-width: 991.98px) {
    .app-page .home-benefit-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .app-page .home-login-card {
        max-width: 530px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .app-page .home-login-overlay {
        bottom: 12px;
    }

    .app-page .home-login-action {
        min-height: 36px;
        padding: 6px 18px;
        font-size: 13px;
    }

    .app-page .home-notice::after {
        content: '点击查看完整说明';
        display: block;
        margin-top: 6px;
        color: #8a7765;
        font-size: 12px;
        text-align: right;
    }
}

.quick-service-notice {
    display: block;
    width: 100%;
    height: auto;
}

.quick-service-dialog {
    background: transparent !important;
    box-shadow: none !important;
}

/* 封面预留尺寸，慢网显示轻量骨架与转圈，加载失败可单独重试。 */

.app-page .home-game-cover {
    position: relative;
    height: 184px;
    overflow: hidden;
    background: #f0f1f4;
}

.app-page .home-game-cover > .card-img-top {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .24s ease;
}

.app-page .home-game-cover.is-loaded > .card-img-top {
    opacity: 1;
}

.app-page .home-image-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9298a3;
    font-size: 12px;
    background: linear-gradient(100deg, #eff0f3 25%, #f8f9fb 45%, #eff0f3 65%);
    background-size: 250% 100%;
    animation: cover-shimmer 1.6s ease-in-out infinite;
    pointer-events: none;
}

.app-page .home-image-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #dfe2e8;
    border-top-color: #b98b58;
    border-radius: 50%;
    animation: home-game-loading .8s linear infinite;
}

.app-page .home-game-cover:not(.is-loading) .home-image-status {
    display: none;
}

.app-page .home-image-retry {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    border: 0;
    background: #f4f5f7;
    color: #7c6a58;
    font-size: 12px;
    cursor: pointer;
}

.app-page .home-image-retry[hidden] {
    display: none;
}

@keyframes cover-shimmer {
    to {
        background-position: -150% 0;
    }
}

@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
    .app-page .home-game-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-page .home-image-status,
    .app-page .home-image-spinner {
        animation: none;
    }

    .app-page .home-game-cover > .card-img-top {
        transition: none;
    }
}

/* 会员说明页：正文卡片、可横向滚动的权益表和明确的操作区。 */

.membership-page .membership-hero img {
    display: block;
    width: 100%;
    height: clamp(160px, 16vw, 225px);
    object-fit: cover;
    object-position: center;
}

.membership-page .membership-hero-copy {
    display: none;
}

.membership-page .membership-content {
    max-width: 1200px;
    padding: 32px 20px 40px;
}

.membership-page .membership-section {
    padding: 24px;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(32, 38, 50, .025);
}

.membership-page .membership-section .system-title {
    margin: 0;
    padding-left: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.membership-page .membership-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.membership-page .membership-primary-action .btn {
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 6px;
}

.membership-page .membership-description {
    color: #4b5059;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.membership-page .membership-description h6 {
    margin-top: 16px;
    color: #292b34;
}

.membership-page .membership-description h6:first-child {
    margin-top: 0;
}

.membership-page .membership-warning {
    color: #bd3c2e;
}

.membership-page .membership-table-hint {
    display: none;
    margin: 12px 0 0;
    color: #8a909c;
    font-size: 12px;
}

.membership-page .membership-table-scroll {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid #edf0f3;
    border-radius: 8px;
}

.membership-page .membership-table {
    min-width: 1080px;
    margin: 0;
    font-size: 14px;
}

.membership-page .membership-table th,
.membership-page .membership-table td {
    padding: 14px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.membership-page .membership-table thead th {
    background: #faf6ef;
    color: #67503a;
}

.membership-page .membership-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 128px;
    background: #fff;
    text-align: left;
    box-shadow: inset -1px 0 #edf0f3;
}

.membership-page .membership-table thead tr > :first-child {
    z-index: 2;
    background: #faf6ef;
}

.membership-page .membership-table tbody tr:nth-child(even) > * {
    background: #fafbfc;
}

.membership-page .membership-note {
    margin-top: 18px;
    padding: 14px 18px;
    border-left: 3px solid #d5aa70;
    border-radius: 6px;
    background: #fff8ed;
    color: #85613c;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.membership-page .membership-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 0;
}

.membership-page .membership-actions .btn {
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 6px;
}

.membership-page .membership-actions .btn-warning {
    border-color: #dfe2e8;
    background: #fff;
    color: #4b5059;
}

.membership-page .membership-actions .btn-success {
    border-color: var(--site-accent);
    background: var(--site-accent);
}



@media (max-width: 1199.98px) {
    .membership-page .membership-table-hint {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .membership-page .membership-hero {
        padding: 30px 20px;
        background: linear-gradient(120deg, #7b251c, #ac532c);
    }

    .membership-page .membership-hero img {
        display: none;
    }

    .membership-page .membership-hero-copy {
        display: block;
        color: #fff;
    }

    .membership-page .membership-hero-copy h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 700;
    }

    .membership-page .membership-hero-copy p {
        margin: 0;
        color: #ffe8cb;
        font-size: 14px;
    }

    .membership-page .membership-content {
        padding: 20px 12px 28px;
    }

    .membership-page .membership-section {
        padding: 18px 14px;
    }

    .membership-page .membership-section .system-title {
        font-size: 17px;
    }

    .membership-page .membership-description {
        font-size: 14px;
    }

    .membership-page .membership-table {
        font-size: 13px;
    }

    .membership-page .membership-table th,
    .membership-page .membership-table td {
        padding: 12px 10px;
    }

    .membership-page .membership-note {
        padding: 12px;
        font-size: 13px;
    }

}

.membership-page .site-header--compact .navbar {
    max-width: 1200px;
    min-height: 64px;
    padding-right: 20px;
    padding-left: 20px;
}

/* 内容说明页：公共页头、正文容器、操作按钮及教程步骤。 */

.info-page .site-header--compact .navbar {
    max-width: 1200px;
    min-height: 64px;
    padding-right: 20px;
    padding-left: 20px;
}

.info-page .info-banner img {
    display: block;
    width: 100%;
    height: clamp(140px, 16vw, 225px);
    object-fit: cover;
    object-position: center;
    background: #69271a;
}

.info-page .info-main {
    padding: 28px 20px 48px;
}

.info-page .info-container {
    max-width: 1160px;
    margin: 0 auto;
}

.info-page .info-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #8a909b;
    font-size: 13px;
}

.info-page .info-breadcrumb a {
    color: #626976;
}

.info-page .info-heading {
    margin-bottom: 28px;
}

.info-page .info-heading h1 {
    margin: 0 0 10px;
    color: var(--site-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
}

.info-page .info-heading p {
    margin: 0;
    color: #737a87;
    font-size: 15px;
    line-height: 1.8;
}

.info-page .info-panel {
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(32, 38, 50, .025);
}

.info-page .info-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.info-page .info-button-primary,
.info-page .info-button-secondary {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
}

.info-page .info-button-primary {
    border-color: var(--site-accent);
    background: var(--site-accent);
    color: #fff;
}

.info-page .info-button-primary:hover {
    border-color: #92290f;
    background: #92290f;
    color: #fff;
}

.info-page .info-button-secondary {
    border-color: #dfe2e8;
    background: #fff;
    color: #4b5059;
}

.info-page .info-button-secondary:hover {
    border-color: #c8a37b;
    background: #fff9f0;
    color: #8a542f;
}

.info-page .info-breadcrumb a:focus-visible,
.info-page .info-actions a:focus-visible,
.info-page .tutorial-nav a:focus-visible,
.info-page .tutorial-method a:focus-visible {
    outline: 2px solid #bd8755;
    outline-offset: 4px;
}

.info-page .guide-empty {
    padding: 44px 24px 48px;
    text-align: center;
}

.info-page .guide-empty-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: #fff5e6;
    color: #b78346;
}

.info-page .guide-empty-icon svg {
    width: 42px;
    height: 42px;
}

.info-page .guide-status {
    color: #ad7d4b;
    font-size: 13px;
}

.info-page .guide-empty h2 {
    margin: 10px 0 12px;
    color: var(--site-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

.info-page .guide-empty > p {
    max-width: 480px;
    margin: 0 auto;
    color: #737a87;
    font-size: 15px;
    line-height: 1.8;
}

/* 游戏攻略列表：接口卡片、搜索与加载状态。 */
.guide-page .guide-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
    padding: 20px 24px;
}

.guide-page .guide-search {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 600px;
    margin: 0;
}

.guide-page .guide-count {
    color: #8a909b;
    font-size: 13px;
}

.guide-page .guide-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    color: #8a909b;
    font-size: 14px;
}

.guide-page [hidden] {
    display: none !important;
}

.guide-page .guide-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.guide-page .guide-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.guide-page .guide-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.guide-page .guide-game-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    background: #faf6ef;
    color: #b98b58;
    font-size: 24px;
}

.guide-page .guide-game-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-page .guide-game-icon svg {
    width: 32px;
    height: 32px;
}

.guide-page .guide-card-content {
    flex: 1;
    min-width: 0;
}

.guide-page .guide-card h2 {
    margin: 0 0 8px;
    color: #343944;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.guide-page .guide-card-hint {
    margin: 0;
    color: #8a909b;
    font-size: 13px;
    line-height: 1.8;
}

.guide-page a.guide-card-header:hover h2,
.guide-page a.guide-card-header:hover .guide-card-hint {
    color: var(--site-accent);
}

.guide-page .guide-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f4;
}

.guide-page .guide-card-date {
    margin-top: auto;
    padding-top: 18px;
    color: #8a909b;
    font-size: 12px;
    line-height: 1.6;
}

.guide-page .guide-card .guide-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 4px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.guide-page .guide-card-button:disabled {
    border-color: #e7e9ee;
    background: #f7f8fa;
    color: #a3a9b5;
    opacity: 1;
    cursor: default;
}

.guide-page .guide-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #fff;
}

.guide-page .guide-pagination-meta {
    color: #8a909b;
    font-size: 13px;
    line-height: 1.6;
}

.guide-page .guide-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.guide-page .guide-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #555d6c;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.guide-page .guide-page-button:hover:not(:disabled),
.guide-page .guide-page-button[aria-current="page"] {
    border-color: var(--site-accent);
    background: var(--site-accent);
    color: #fff;
}

.guide-page .guide-page-button[aria-current="page"] {
    font-weight: 600;
    box-shadow: 0 3px 8px rgb(178 51 22 / 14%);
}

.guide-page .guide-page-direction {
    border-color: #e3e6ed;
}

.guide-page .guide-page-arrow {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.guide-page .guide-page-button:disabled {
    background: #f7f8fa;
    color: #abb0ba;
    cursor: default;
}

.guide-page .guide-page-ellipsis {
    padding: 0 3px;
    color: #8a909b;
}

.guide-page .guide-list:empty {
    display: none;
}

.guide-page .guide-page-actions {
    gap: 10px;
    margin-top: 20px;
}

.guide-page .guide-page-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.guide-page .guide-page-actions svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.guide-page .guide-card a:focus-visible,
.guide-page .guide-page-button:focus-visible,
.guide-page .guide-toolbar:focus-visible {
    outline: 2px solid #bd8755;
    outline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .guide-page .guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .guide-page .guide-toolbar {
        gap: 12px;
        padding: 18px 14px;
    }

    .guide-page .guide-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .guide-page .guide-card h2 {
        font-size: 17px;
    }

    .guide-page .guide-pagination {
        flex-direction: column;
        gap: 12px;
        padding: 16px 12px;
    }

    .guide-page .guide-page-direction {
        min-width: 40px;
        padding: 8px;
    }

    .guide-page .guide-page-label {
        display: none;
    }
}

.info-page .tutorial-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.info-page .tutorial-sidebar {
    position: sticky;
    top: 24px;
}

.info-page .tutorial-nav {
    padding: 20px 12px 12px;
}

.info-page .tutorial-nav h2 {
    margin: 0 8px 12px;
    color: #737a87;
    font-size: 14px;
    font-weight: 600;
}

.info-page .tutorial-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px;
    border-radius: 6px;
    color: #414752;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.info-page .tutorial-nav a:hover {
    background: #fff6eb;
    color: var(--site-accent);
}

.info-page .tutorial-nav-number {
    color: #b98b58;
    font-size: 16px;
    font-weight: 600;
}

.info-page .tutorial-nav small {
    display: block;
    margin-top: 3px;
    color: #8a909b;
    font-size: 12px;
}

.info-page .tutorial-content {
    min-width: 0;
}

.info-page .tutorial-method {
    margin-bottom: 24px;
    padding: 28px;
    scroll-margin-top: 24px;
}

.info-page .tutorial-method-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #edf0f3;
}

.info-page .tutorial-method-label {
    color: #ad7d4b;
    font-size: 13px;
}

.info-page .tutorial-method h2 {
    margin: 6px 0 0;
    color: var(--site-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}

.info-page .tutorial-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: tutorial-step;
}

.info-page .tutorial-steps > li {
    position: relative;
    padding-left: 44px;
    counter-increment: tutorial-step;
}

.info-page .tutorial-steps > li + li {
    margin-top: 32px;
}

.info-page .tutorial-steps > li::before {
    content: counter(tutorial-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbf0e4;
    color: #a86b32;
    font-size: 14px;
    font-weight: 600;
}

.info-page .tutorial-steps h3 {
    margin: 0 0 8px;
    color: #343944;
    font-size: 17px;
    font-weight: 600;
    line-height: 28px;
}

.info-page .tutorial-steps p,
.info-page .tutorial-note p {
    margin: 0;
    color: #626976;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.info-page .tutorial-figure {
    margin: 16px 0 0;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #f8f9fb;
}

.info-page .tutorial-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background: #eef0f3;
}

.info-page .tutorial-image-link {
    display: block;
    cursor: zoom-in;
}

.info-page .tutorial-figure figcaption {
    margin-top: 10px;
    color: #8a909b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.info-page .tutorial-note {
    margin-top: 28px;
    padding: 16px 18px;
    border-left: 3px solid #d5aa70;
    border-radius: 6px;
    background: #fff8ed;
}

.info-page .tutorial-note strong {
    display: block;
    margin-bottom: 6px;
    color: #85613c;
    font-size: 14px;
}

.info-page .tutorial-note a {
    color: #a3592c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-page .tutorial-actions {
    margin-top: 0;
}






/* 中等屏幕为固定悬浮栏留出阅读空间。 */
@media (min-width: 768px) and (max-width: 1447.98px) {
    .info-page .info-main {
        padding-right: 144px;
    }

    .info-page .info-container {
        margin-right: 0;
    }
}

@media (max-width: 991.98px) {
    .info-page .tutorial-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .info-page .tutorial-sidebar {
        position: static;
    }

    .info-page .tutorial-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
        padding: 16px;
    }

    .info-page .tutorial-nav h2 {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }
}

@media (max-width: 767.98px) {
    .info-page .info-banner {
        display: none;
    }

    .info-page .info-main {
        padding: 20px 12px 32px;
    }

    .info-page .info-breadcrumb {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .info-page .info-heading {
        margin-bottom: 20px;
    }

    .info-page .info-heading h1 {
        font-size: 25px;
    }

    .info-page .info-heading p,
    .info-page .guide-empty > p {
        font-size: 14px;
    }

    .info-page .guide-empty {
        padding: 32px 20px;
    }

    .info-page .guide-empty h2 {
        font-size: 20px;
    }

    .info-page .tutorial-nav {
        gap: 4px;
        padding: 14px 8px;
    }

    .info-page .tutorial-nav a {
        align-items: flex-start;
        gap: 8px;
        padding: 10px 8px;
    }

    .info-page .tutorial-method {
        padding: 20px 16px;
        scroll-margin-top: 16px;
    }

    .info-page .tutorial-method-heading {
        gap: 14px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .info-page .tutorial-method-heading .btn {
        width: 100%;
    }

    .info-page .tutorial-method h2 {
        font-size: 20px;
    }

    .info-page .tutorial-steps > li {
        padding-left: 36px;
    }

    .info-page .tutorial-steps > li + li {
        margin-top: 28px;
    }

    .info-page .tutorial-steps h3 {
        font-size: 16px;
    }

    .info-page .tutorial-steps p,
    .info-page .tutorial-note p {
        font-size: 14px;
    }

    .info-page .tutorial-figure {
        margin-left: -36px;
        padding: 6px;
    }

    .info-page .tutorial-note {
        padding: 14px;
    }

}

/* 服务中心：联系信息与二维码分区，沿用内容页的容器和卡片。 */
.contact-page .contact-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: hidden;
}

.contact-page .contact-service-content {
    padding: 36px;
}

.contact-page .contact-service-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #31865d;
    font-size: 14px;
}

.contact-page .contact-service-label svg {
    width: 28px;
    height: 28px;
}

.contact-page .contact-service h2 {
    margin: 0 0 10px;
    color: var(--site-text);
    font-size: 26px;
    font-weight: 600;
}

.contact-page .contact-service-intro {
    margin: 0;
    color: #737a87;
    font-size: 15px;
}

.contact-page .contact-service-hours {
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 8px;
    background: #faf6ef;
}

.contact-page .contact-service-hours dt {
    margin-bottom: 6px;
    color: #8a765e;
    font-size: 13px;
    font-weight: 400;
}

.contact-page .contact-service-hours dd {
    margin: 0;
    color: #67503a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
}

.contact-page .contact-service-hours dd span {
    margin: 0 4px;
    font-size: 13px;
    font-weight: 400;
}

.contact-page .contact-instructions {
    margin: 0 0 18px;
    padding-left: 20px;
    color: #626976;
    font-size: 15px;
    line-height: 1.9;
}

.contact-page .contact-service-note {
    max-width: 36em;
    margin: 0;
    color: #8a909b;
    font-size: 13px;
    line-height: 1.8;
}

.contact-page .contact-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border-left: 1px solid #edf0f3;
    background: #fafbfc;
    text-align: center;
}

.contact-page .contact-qr-frame {
    position: relative;
    width: 240px;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fff;
}

.contact-page .contact-qr-link,
.contact-page .contact-qr-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-page .contact-qr-link {
    cursor: zoom-in;
}

.contact-page .contact-qr-link img {
    object-fit: contain;
}

.contact-page .contact-qr-status {
    position: absolute;
    inset: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #fff;
    color: #737a87;
    font-size: 13px;
}

.contact-page .contact-qr-status[hidden],
.contact-page [data-contact-qr-retry][hidden],
.contact-page .contact-quick-toggle[hidden] {
    display: none;
}

.contact-page .contact-qr-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid #e4e7eb;
    border-top-color: #b98b58;
    border-radius: 50%;
    animation: home-game-loading .8s linear infinite;
}

.contact-page .is-error .contact-qr-spinner {
    display: none;
}

.contact-page .is-loading .contact-qr-link img,
.contact-page .is-error .contact-qr-link img {
    opacity: 0;
}

.contact-page .contact-qr-caption {
    margin: 18px 0 10px;
    color: #414752;
    font-size: 15px;
}

.contact-page .contact-qr-original {
    padding: 6px;
    color: #a3592c;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-page .contact-qr-hint {
    margin: 8px 0 0;
    color: #8a909b;
    font-size: 12px;
    line-height: 1.8;
}

.contact-page .contact-help-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-page .contact-help-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    color: #414752;
    text-decoration: none;
}

.contact-page .contact-help-links a:hover {
    border-color: #d6b78e;
    background: #fffcf7;
}

.contact-page .contact-help-links strong,
.contact-page .contact-help-links small {
    display: block;
}

.contact-page .contact-help-links strong {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}

.contact-page .contact-help-links small {
    color: #8a909b;
    font-size: 13px;
}

.contact-page .contact-help-arrow {
    color: #b98b58;
    font-size: 22px;
}

.contact-page .contact-service a:focus-visible,
.contact-page .contact-help-links a:focus-visible,
.contact-page .contact-quick-toggle:focus-visible {
    outline: 2px solid #bd8755;
    outline-offset: 4px;
}

@media (max-width: 991.98px) {
    .contact-page .contact-service {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .contact-qr-panel {
        border-top: 1px solid #edf0f3;
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .contact-page .contact-service-content {
        padding: 24px 20px;
    }

    .contact-page .contact-service h2 {
        font-size: 23px;
    }

    .contact-page .contact-service-hours {
        padding: 14px 16px;
    }

    .contact-page .contact-service-intro,
    .contact-page .contact-instructions {
        font-size: 14px;
    }

    .contact-page .contact-help-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .contact-page .contact-help-links a {
        padding: 18px 20px;
    }

    .contact-page .home-quick-actions {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .contact-page.contact-quick-ready:not(.contact-quick-open) .home-quick-actions {
        visibility: hidden;
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
    }

    .contact-page .contact-quick-toggle {
        position: fixed;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 101;
        min-width: 98px;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid #e4e7eb;
        border-radius: 24px;
        background: #fff;
        color: #67503a;
        box-shadow: 0 4px 16px rgba(32, 38, 50, .12);
        font-size: 13px;
    }

    .contact-page.contact-qr-visible:not(.contact-quick-open) .contact-quick-toggle {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page .contact-qr-spinner {
        animation: none;
    }

    .contact-page .home-quick-actions {
        transition: none;
    }
}

/* 游戏中心与分类页：复用首页搜索、分类按钮和游戏卡片。 */
.catalog-page .catalog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 240px;
    padding: 44px 20px;
    background: #4f241b;
    color: #fff;
}

.catalog-page .catalog-hero > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.catalog-page .catalog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(25, 12, 7, .85), rgba(25, 12, 7, .3) 65%, rgba(25, 12, 7, .05));
}

.catalog-page .catalog-hero-inner {
    margin: 0 auto;
}

.catalog-page .catalog-eyebrow {
    margin: 0 0 12px;
    color: #f1cf9a;
    font-size: 14px;
    letter-spacing: 2px;
}

.catalog-page .catalog-hero h1 {
    margin: 0 0 14px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.catalog-page .catalog-hero p:last-child {
    max-width: 40em;
    margin: 0;
    color: #f1e4d9;
    font-size: 15px;
    line-height: 1.8;
}

.catalog-page .catalog-filters {
    padding: 20px 24px;
}

.catalog-page .catalog-filter-toolbar {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f3;
}

.catalog-page .catalog-filter-label {
    margin: 0;
    color: #8a909b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

.catalog-page .catalog-search {
    max-width: 640px;
    margin: 0;
}

.catalog-page .catalog-search .home-search-input {
    height: 46px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
}

.catalog-page .catalog-search::before {
    top: 15px;
}

.catalog-page .catalog-search::after {
    top: 28px;
}

.catalog-page .catalog-category-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.catalog-page .catalog-category-row > .catalog-filter-label {
    padding-top: 6px;
}

.catalog-page .catalog-filters .home-category-list {
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.catalog-page .catalog-filters [data-catalog-category] {
    max-width: 100%;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.catalog-page .catalog-filters .btn-outline-dark {
    border-color: #edf0f3;
    background: #f7f8fa;
    color: #626976;
}

.catalog-page .catalog-filters .btn-outline-dark:hover {
    border-color: #dfb990;
    background: #fff8ed;
    color: #8a542f;
}

.catalog-page .catalog-filters .btn-danger {
    border-color: var(--site-accent);
    background: var(--site-accent);
    color: #fff;
}

.catalog-page .catalog-filters .catalog-availability-btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.catalog-page .catalog-availability-btn span {
    margin-left: 6px;
}

.catalog-page .catalog-category-status {
    align-self: center;
    color: #8a909b;
    font-size: 13px;
}

.catalog-page .catalog-detail-status {
    margin-bottom: 16px;
    color: #8a765e;
    font-size: 13px;
    line-height: 1.8;
}

.catalog-page .catalog-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 12px;
}

.catalog-page .catalog-results-heading h2 {
    margin: 0;
    color: #343944;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.catalog-page [data-catalog-count] {
    color: #8a909b;
    font-size: 13px;
}

.catalog-page .catalog-status {
    padding: 32px 12px;
    color: #737a87;
    font-size: 14px;
    text-align: center;
}

.catalog-page .catalog-retry {
    display: block;
    margin: 0 auto 24px;
}

.catalog-page [hidden] {
    display: none !important;
}

.catalog-page .catalog-game-grid > .col-3 {
    display: flex;
}

.catalog-page .catalog-game-grid {
    margin-right: -8px;
    margin-left: -8px;
}

.catalog-page .catalog-game-grid .card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.catalog-page .catalog-game-grid .home-game-cover {
    height: auto;
    aspect-ratio: 16 / 9;
}

.catalog-page .catalog-game-grid .card-img-body {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 16px 12px 10px;
}

.catalog-page .catalog-game-grid .card:hover .card-img-body,
.catalog-page .catalog-game-grid .card:focus-within .card-img-body {
    opacity: 1;
}

.catalog-page .catalog-game-grid .card-img-body > .text-center > img {
    width: 48px;
    height: 48px;
    margin-top: 0 !important;
}

.catalog-page .catalog-game-grid .home-opening-times {
    min-height: 0;
}

.catalog-page .catalog-game-grid .home-opening-times h4 {
    margin-bottom: 4px !important;
    font-size: 12px;
}

.catalog-page .catalog-game-grid .card-img-body > .row {
    margin-top: 8px !important;
}

.catalog-page .catalog-game-grid .card-img-body .btn {
    font-size: 12px;
}

.catalog-page .catalog-game-grid .card-body {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    padding: 14px;
}

.catalog-page .catalog-game-grid .card-body h6 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.catalog-page .catalog-game-grid .col-99 {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    padding: 0;
}

.catalog-page .catalog-under-time {
    margin: 8px 0 0;
    color: #9c6c38;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.catalog-page .catalog-empty {
    padding: 40px 20px;
    text-align: center;
}

.catalog-page .catalog-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #bd996b;
}

.catalog-page .catalog-empty h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.catalog-page .catalog-empty p {
    margin: 0 0 24px;
    color: #8a909b;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
    .catalog-page .catalog-game-grid .card-img-body {
        position: static;
        display: grid;
        justify-content: normal;
        height: auto;
        aspect-ratio: auto;
        padding: 12px;
    }

    .catalog-page .catalog-game-grid .card-img-body > .row {
        margin-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .catalog-page .catalog-hero {
        min-height: 190px;
        padding: 28px 20px;
    }

    .catalog-page .catalog-hero h1 {
        font-size: 28px;
    }

    .catalog-page .catalog-hero p:last-child {
        font-size: 14px;
    }

    .catalog-page .catalog-filters {
        padding: 16px 14px;
    }

    .catalog-page .catalog-filter-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 14px;
    }

    .catalog-page .catalog-filter-toolbar > .catalog-filter-label {
        display: none;
    }

    .catalog-page .catalog-filters .catalog-availability-btn {
        justify-self: start;
        min-height: 34px;
    }

    .catalog-page .catalog-category-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .catalog-page .catalog-category-row > .catalog-filter-label {
        padding-top: 0;
    }

    .catalog-page .catalog-filters .home-category-list {
        gap: 8px;
    }

    .catalog-page .catalog-search {
        max-width: none;
    }

    .catalog-page .catalog-results-heading h2 {
        font-size: 18px;
    }
}
