html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    -webkit-tap-highlight-color: transparent;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-size: 24px;
    font-display: swap;
    word-break: break-all;
    color: #fff;
    /* 兜底底色取 bg2 主色调（#212a3b 边缘 / #242c3f 顶部），与背景图衔接更自然 */
    background: #232c3f;
}

.page-container *,
.page-container {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 750px;
    height: 100vh;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

/* @font-face {
    font-family: "hanyidasong";
    src: url(//www.changyou.com/font/tlbbgl/hanyidasong.TTF);
} */

/* #region 通用类 */
.hide {
    display: none !important;
}

.font-hide {
    text-indent: -999em;
    overflow: hidden;
    font-size: 0;
}

.font-custom {
    font-family: "hanyidasong" !important;
}

.font-simsun {
    font-family: "simsun" !important;
}

.flex-center {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.main-pages ::-webkit-scrollbar {
    width: 10px;
    overflow: hidden;
    background: #dcddec;
    border-radius: 8px;
}

.main-pages ::-webkit-scrollbar-thumb {
    background: #565c77;
    border-radius: 8px;
}

/* .gray {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
} */

.pages {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.logo {
    display: block;
    width: 159px;
    height: 112px;
    position: absolute;
    top: 6.8%;
    left: 30px;
    background: url(../img/logo.png) no-repeat;
    background-size: contain;
    z-index: 2;
}

/* #endregion 工具类 */
.share-pages {
    z-index: 9;
}

.main-pages {
    z-index: 10;
}

.rank-pages {
    z-index: 20;
}

.entry-pages {
    z-index: 30;
}

.entry-pages {
    /* 入口页兜底底色取 bg1 边缘均色，避免背景图加载完成瞬间出现明显色差 */
    background: #5d606a;
}

.entry-box,
.center-box {
    width: max-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.entry-pages h2 {
    width: 750px;
    height: 430px;
    margin-top: 90%;
    background: url(../img/slogan.png) no-repeat;
    background-size: contain;
}


.login-btn {
    background: url(../img/button/login.png) no-repeat;
    background-size: contain;
    width: 375px;
    height: 103px;
    display: block;
    margin: -20px auto 30px;
}

.rules-btn {
    background: url(../img/button/rules.png) no-repeat;
    background-size: contain;
    width: 135px;
    height: 27px;
    display: block;
    margin: 0 auto;
}

.btn-breath {
    -webkit-animation: btn-breath 1.8s ease-in-out infinite;
    animation: btn-breath 1.8s ease-in-out infinite;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    will-change: transform, filter;
}

@-webkit-keyframes btn-breath {

    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: brightness(100%);
        filter: brightness(100%);
    }

    50% {
        -webkit-transform: scale(1.04);
        transform: scale(1.04);
        -webkit-filter: brightness(115%);
        filter: brightness(115%);
    }
}

@keyframes btn-breath {

    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: brightness(100%);
        filter: brightness(100%);
    }

    50% {
        -webkit-transform: scale(1.04);
        transform: scale(1.04);
        -webkit-filter: brightness(115%);
        filter: brightness(115%);
    }
}

.entry-box2 .center-box {
    top: 70%;
}

.entry-box2 .logout-btn {
    position: absolute;
    top: 9%;
    right: 8%;
}

.entry-box2 .rules-btn {
    margin-top: 40px;
}

.create-btn {
    background: url(../img/button/create.png) no-repeat;
    background-size: contain;
    width: 465px;
    height: 103px;
    display: block;
    margin: 40px auto 0;
}

.join-btn {
    background: url(../img/button/join.png) no-repeat;
    background-size: contain;
    width: 465px;
    height: 103px;
    display: block;
    margin: 40px auto 0;
}

.main-pages {
    overflow: hidden;
}

/* 背景图层：铺满页面容器（cover + 顶部对齐），不参与 JS scale，与参照活动 .wrap 背景表现一致 */
.page-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: 0;
}

.page-bg.bg1 {
    background-image: url(../img/bg1.jpg);
}

.page-bg.bg2 {
    background-image: url(../img/bg2.jpg);
}

/* 内容层：固定 750×1424，参与 JS scale */
.scale-box {
    width: 750px;
    height: 1424px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    z-index: 1;
}

.btn-box {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 689px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-box .left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logout-btn {
    background: url(../img/button/logout.png) no-repeat;
    background-size: contain;
    width: 154px;
    height: 46px;
}

.btn-box .center-btn {
    background: url(../img/button/cneter.png) no-repeat;
    background-size: contain;
    width: 154px;
    height: 46px;
}

.btn-box .rules-btn {
    background: url(../img/button/rules2.png) no-repeat;
    background-size: contain;
    width: 154px;
    height: 46px;
}

.content1 {
    width: 689px;
    height: 342px;
    margin: 184px auto 0;
    padding: 20px 30px;
    background: url(../img/content1.png) no-repeat;
    background-size: 100% 100%;
    font-size: 20px;
    color: #fde5bd;
}

.content1 .card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.content1 .card-title {
    font-size: 22px;
    color: #ff5512;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 10px;
}

.content1 .card-info {
    font-size: 22px;
    color: #202c49;
    text-align: center;
    margin-bottom: 20px;
}

.content1 .card-info span {
    color: #c5443e;
}

.content1 .line {
    width: 100%;
    display: grid;
    grid-template-columns: 120px 270px 110px;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 12px;
}

/* QQ群行同时显示复制和修改按钮时（会长且有群号），切4列；仅显示其中一个按钮时保持3列居中 */
/* 四列布局时所有行左对齐，保证第二行（3元素）与第一行（4元素）左侧对齐 */
.content1.cols-4 .line {
    justify-content: start;
}

.content1 .line.four-cols {
    grid-template-columns: 120px 270px 110px 110px;
    justify-content: start;
}

.content1 .line>p {
    text-align: right;
    color: #202c49;
    font-size: 24px;
    white-space: nowrap;
}

.content1 .line input {
    width: 100%;
    height: 42px;
    line-height: 44px;
    border: 1px solid #d7c7ab;
    border-radius: 4px;
    background: rgba(255, 255, 255, .85);
    color: #454545;
    font-size: 24px;
    padding: 0 10px;
    outline: none;
    text-align: center;
}

.content1 .line input[readonly] {
    cursor: default;
}

.content1 .line .btn-copy,
.content1 .line .btn-edit {
    display: block;
    width: 110px;
    height: 39px;
    background: url(../img/button/copy.png) no-repeat;
    background-size: contain;
    text-indent: -999em;
    overflow: hidden;
}

.content1 .line .btn-edit {
    background-image: url(../img/button/edit.png);
}

.detail-btn {
    display: block;
    width: 239px;
    height: 56px;
    background: url(../img/button/details.png) no-repeat;
    background-size: 100% 100%;
    text-indent: -999em;
    overflow: hidden;
}

.content1-tip {
    font-size: 20px;
    color: #ffff;
    text-align: center;
    margin: 14px auto 10px;
}

.invite-btn {
    display: block;
    width: 375px;
    height: 103px;
    margin: 0 auto;
    background: url(../img/button/invite.png) no-repeat;
    background-size: contain;
    text-indent: -999em;
    overflow: hidden;
}

.content2 {
    font-size: 20px;
    color: #fff;
    text-align: center;
    position: relative;
}

.content2>p {
    margin-bottom: 6px;
}

.content2 #rankStat span {
    color: #ffe492;
}

.content2 h3 {
    width: 621px;
    height: 126px;
    background: url(../img/title2.png) no-repeat;
    background-size: contain;
    margin: 0 auto;
}

.content2 .card {
    width: 697px;
    height: 468px;
    background: url(../img/content2.png) no-repeat;
    background-size: contain;
    margin: 20px auto 0;
    padding: 50px 58px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content2 .rank-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.content2 .rank1-btn {
    display: block;
    width: 286px;
    height: 57px;
    background: url(../img/button/rank1.png) no-repeat;
    background-size: contain;
}

.content2 .rank1-btn.on {
    background-image: url(../img/button/rank1-on.png);
}

.content2 .rank2-btn {
    display: block;
    width: 286px;
    height: 57px;
    background: url(../img/button/rank2.png) no-repeat;
    background-size: contain;
}

.content2 .rank2-btn.on {
    background-image: url(../img/button/rank2-on.png);
}

.content2 .table {
    width: 634px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    font-size: 22px;
    color: #202149;
}

.content2 .table-header {
    width: 634px;
    height: 40px;
    background: url(../img/table-header.png) no-repeat;
    background-size: contain;
    font-size: 24px;
    color: #404a58;
    font-family: "FangSong";
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.content2 .table-body {
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.content2 .table-header span,
.content2 .table-body li span {
    flex: 1;
    text-align: center;
}

.content2 .table-body li {
    display: flex;
    align-items: center;
    height: 50px;
}

.side-btn {
    display: block;
    width: 44px;
    height: 405px;
    margin: 0 auto;
    background: url(../img/button/side.png) no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transform-origin: right center;
    z-index: 2;
}

/* rank-pages 成员详情页 */
.rank-pages {
    overflow: hidden;
}

.rank-pages ::-webkit-scrollbar {
    width: 10px;
    overflow: hidden;
    background: #dcddec;
    border-radius: 8px;
}

.rank-pages ::-webkit-scrollbar-thumb {
    background: #565c77;
    border-radius: 8px;
}

.rank-pages .back-btn {
    display: block;
    width: 154px;
    height: 46px;
    background: url(../img/back.png) no-repeat;
    background-size: contain;
    position: absolute;
    top: 90px;
    left: 30px;
}

.rank-pages>.scale-box>p {
    font-size: 22px;
    color: #fff;
    text-align: center;
    margin: 172px auto 20px;
    line-height: 1.5;
}

.rank-pages>.scale-box>p span {
    color: #c92211;
}

.rank-pages .card {
    width: 698px;
    height: 1103px;
    margin: 0 auto;
    background: url(../img/rank.png) no-repeat;
    background-size: 100% 100%;
    padding: 70px 58px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-pages .rank-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rank-pages .rank1-btn {
    display: block;
    width: 286px;
    height: 57px;
    background: url(../img/button/rank1.png) no-repeat;
    background-size: contain;
}

.rank-pages .rank1-btn.on {
    background-image: url(../img/button/rank1-on.png);
}

.rank-pages .rank2-btn {
    display: block;
    width: 286px;
    height: 57px;
    background: url(../img/button/rank2.png) no-repeat;
    background-size: contain;
}

.rank-pages .rank2-btn.on {
    background-image: url(../img/button/rank2-on.png);
}

.rank-pages .table {
    width: 634px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    font-size: 22px;
    color: #202149;
}

.rank-pages .table-header {
    width: 634px;
    height: 40px;
    background: url(../img/table-header.png) no-repeat;
    background-size: contain;
    font-size: 24px;
    color: #404a58;
    font-family: "FangSong";
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.rank-pages .table-body {
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.rank-pages .table-header span,
.rank-pages .table-body li span {
    text-align: center;
}

.rank-pages .table-header span:nth-child(1),
.rank-pages .table-body li span:nth-child(1) {
    flex: 1;
}

.rank-pages .table-header span:nth-child(2),
.rank-pages .table-body li span:nth-child(2) {
    flex: 1;
}

.rank-pages .table-header span:nth-child(3),
.rank-pages .table-body li span:nth-child(3) {
    flex: .8;
}

.rank-pages .table-body {
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.rank-pages .table-body li {
    display: flex;
    align-items: center;
    height: 40px;
}

.rank-pages .card>p {
    font-size: 19px;
    color: #202149;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.invite-join-btn {
    display: block;
    width: 465px;
    height: 103px;
    background: url(../img/button/invite-join.png?1) no-repeat;
    background-size: contain;
    margin: 0 auto;
}

.share-pages {
    text-align: center;
}

.share-pages p {
    margin-bottom: 100px;
}

.share-pages .query-guild-name {
    color: #c92211;
    font-weight: bold;
}

.share-pages .rules-btn {
    position: absolute;
    top: 760px;
    left: 0;
    right: 0;
}

.share-pages .logout-btn {
    position: absolute;
    top: 9%;
    right: 8%;
}