html {
    font-size: calc(100 / 1920 * 100vw);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

a:hover {
    -webkit-filter: brightness(120%);
    -ms-filter: brightness(120%);
    -o-filter: brightness(120%);
    -moz-filter: brightness(120%);
    opacity: 0.85\0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

a.geted {
    pointer-events: none;
}

a.dc {
    pointer-events: none;
}

body {
    background-color: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

input,
select,
button {
    outline: 0;
}

textarea,
input {
    word-wrap: break-word;
    word-break: break-all;
    border: none;
}

@font-face {
    font-family: "DreamFont";
    src: url("../../../../../images/pc/activity/precharge/font/DreamFont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.indexPage {
    width: 100%;
    display: block;
    height: 10.80rem;
    background: url(../../../../../images/pc/activity/precharge/index.jpg)top center no-repeat;
    background-size: 100% 100%;
    position: relative;
}

.indexPage .header {
    width: 18.5rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: .2rem 0rem 0 0rem;
    position: relative;
    z-index: 11;
}

.header a {
    display: inline-block;
    width: 2.8rem;
    height: 1.16rem;
    background: url(../../../../../images/pc/activity/precharge/logo.png) no-repeat;
    background-size: 100% 100%;
}

.header-btn {
    width: 2.19rem;
    display: flex;
    justify-content: space-between;
}

.header .header-btn a {
    width: 2.19rem;
    height: .73rem;
    background: url(../../../../../images/pc/activity/precharge/btn-gz.png) no-repeat;
    background-size: 100% 100%;
}

.active-time {
    width: 6.15rem;
    text-align: center;
    color: #361f0e;
    font-size: .2rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 1.65rem;
}

.login-title {
    color: #361f0e;
    font-size: .2rem;
    font-weight: 700;
    position: absolute;
    right: 5%;
    top: 1.65rem;
}

.login-title>a {
    display: inline-block;
    color: #ff4e39;
}

.card3 {
    background: url(../../../../../images/pc/activity/precharge/card3.png);
    background-size: 100% 100%;
    width: 16.18rem;
    height: 9.76rem;
    margin: auto;
    margin-top: -1rem;
    display: flex;
    padding-top: 3.55rem;
    padding-left: 0.65rem;
    position: relative;
}

.card3>img {
    position: absolute;
    bottom: -0.58rem;
    right: -0.84rem;
}

.card3-left {
    width: 7.29rem;
}

.card3-flex {
    width: 7.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .02rem;
    margin-top: .05rem;
}

.card3-flex span {
    color: #361f0e;
    font-size: .22rem;
    font-family: "DreamFont", sans-serif;
}

.btn-bd {
    display: inline-block;
    background: url(../../../../../images/pc/activity/precharge/btn-bd.png);
    background-size: 100% 100%;
    width: 1.26rem;
    height: .48rem;
}

.card3-flex .input-yq {
    width: 2.03rem;
    height: .24rem;
    border-radius: .24rem;
    background: #905d38;
    color: #fff8e0;
    font-size: .16rem;
    text-align: center;
}

.card3-flex .input-bd {
    width: 2.44rem;
    height: .24rem;
    border-radius: .24rem;
    background: #905d38;
    color: #fff8e0;
    font-size: .16rem;
    text-align: center;
}

.card3-flex input::placeholder {
  color: #fff8e0;
}

.card3-cy {
    color: #ffffff;
    font-size: .22rem;
    text-align: center;
    background: url(../../../../../images/pc/activity/precharge/nav.png);
    background-size: 100% 100%;
    width: 4.9rem;
    height: .28rem;
    line-height: .28rem;
    margin: auto;
}

.card3-cy span {
    color: #fffc85;
}

.card3-view {
    width: 6.55rem;
    height: 3.1rem;
    margin: auto;
    position: relative;
}

.card3-box:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0rem;
    left: 50%;
    transform: translate(-50%);
}

.card3-box:nth-child(1) .card3-img {
    background: url(../../../../../images/pc/activity/precharge/header-bg.png);
    background-size: 100% 100%;
    width: 1.41rem;
    height: 1.31rem;
    padding: .08rem 0 0 .14rem;
}

.card3-box:nth-child(1) .card3-img>img {
    width: 1.08rem;
    height: 1.07rem;
}

.card3-box:nth-child(1) p {
    background: url(../../../../../images/pc/activity/precharge/card3-nav-b.png);
    background-size: 100% 100%;
    width: 2.16rem;
    height: .35rem;
    line-height: .35rem;
    text-align: center;
    color: #fff4ed;
    font-size: .16rem;
}



.card3-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
}

.card3-box .card3-img {
    background: url(../../../../../images/pc/activity/precharge/header-bg2.png);
    background-size: 100% 100%;
    width: .98rem;
    height: .98rem;
    padding: .06rem 0 0 0;
    text-align: center;
    object-fit: cover;
}

.card3-box .card3-img>img {
    width: .8rem;
    height: .76rem;
    border-radius: 50%;
}

.card3-box p {
    background: url(../../../../../images/pc/activity/precharge/card3-nav-s.png);
    background-size: 100% 100%;
    width: 1.65rem;
    height: .26rem;
    line-height: .26rem;
    text-align: center;
    color: #fff4ed;
    font-size: .12rem;
}

.card3-box:nth-child(2) {
    top: .5rem;
    left: 0rem;
}

.card3-box:nth-child(3) {
    top: .5rem;
    right: 0rem;
}

.card3-box:nth-child(4) {
    top: 1.75rem;
    left: 1.18rem;
}

.card3-box:nth-child(5) {
    top: 1.75rem;
    right: 1.18rem;
}

.card3-bottom {
    background: url(../../../../../images/pc/activity/precharge/card-nav.png);
    background-size: 100% 100%;
    width: 7.29rem;
    height: .84rem;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: .18rem;
}

.card3-bottom>a {
    display: inline-block;
    background: url(../../../../../images/pc/activity/precharge/btn-lq.png);
    background-size: 100% 100%;
    width: 1.74rem;
    height: .59rem;
}

.card3-cz {
    text-align: center;
}

.card3-cz>a {
    display: inline-block;
    background: url(../../../../../images/pc/activity/precharge/btn-cz.png);
    background-size: 100% 100%;
    width: 2.19rem;
    height: .73rem;
    margin: auto;
    margin-top: .1rem;
}

.card3-bottom>a.geted {
    background: url(../../../../../images/pc/activity/precharge/btn-lq-geted.png);
    background-size: 100% 100%;
}

.card3-right {
    width: 6.7rem;
    text-align: center;
    margin-top: 0rem;
    margin-left: 0.32rem;
}

.card3-right>a {
    display: inline-block;
    background: url(../../../../../images/pc/activity/precharge/btn-lq.png);
    background-size: 100% 100%;
    width: 2.19rem;
    height: .73rem;
    background-size: 100% 100%;
    margin-top: 4.62rem;
}

.card3-right>a.geted {
    background: url(../../../../../images/pc/activity/precharge/btn-lq-geted.png);
    background-size: 100% 100%;
}

.banner1 {
    position: absolute;
    width: 2.17rem;
    height: 2.16rem;
    top: 1.7rem;
    left: .1rem;
    z-index: 11;
}

.banner2 {
    position: absolute;
    width: 2.86rem;
    height: 3.33rem;
    bottom: 0rem;
    left: 0rem;
    z-index: 11;
}

.banner3 {
    position: absolute;
    width: 3.2rem;
    height: 4.59rem;
    bottom: 0rem;
    right: 0rem;
    z-index: 11;
}



.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.popup-detail {
    background: url(../../../../../images/pc/activity/precharge/popup.png);
    background-size: 100% 100%;
    width: 15.70rem;
    height: 8.95rem;
    padding-top: 1.65rem;
    padding-left: 1.12rem;
}

.detail-close {
    position: absolute;
    right: 0.45rem;
    top: 0.88rem;
    font-size: .48rem;
    opacity: 0;
}

.popup-detail>p {
    color: #361f0e;
    font-size: .20rem;
    font-weight: 700;
    width: 13.88rem;
}


/* 充值选择及确认弹框 */
.popup-prepayment {
    width: 15.3rem;
    height: 7.97rem;
    background: url(../../../../../images/pc/activity/precharge/prepayment/amount-bg.png) center / 100% 100% no-repeat;
    color: #402a18;
    font-size: .24rem;
}
.payment-close {
    position: absolute;
    top: .15rem;
    right: .2rem;
    width: .77rem;
    height: .77rem;
    background: url(../../../../../images/pc/activity/precharge/prepayment/close.png) center / contain no-repeat;
}
.payment-logo {
    position: absolute;
    top: 0.8rem;
    left: .85rem;
    width: 2.46rem;
}
.payment-title {
    position: absolute;
    top: 0.7rem;
    left: 5.3rem;
    width: 4.63rem;
}
.payment-wegame {
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    width: 2.42rem;
}
.payment-account {
    position: absolute;
    top: 2.1rem;
    left: 1.25rem;
    color:  #5e4631;
    font-size: .24rem;
}
.payment-subtitle {
    position: absolute;
    top: 2.1rem;
    left: 6.28rem;
    width: 2.73rem;
}
.payment-role-box {
    position: absolute;
    top: 2.6rem;
    left: 5.5rem;
    width: 4.3rem;
    padding: .08rem;
    border: .02rem solid #eadcbb;
    border-radius: .12rem;
    background: #baa887;
    text-align: center;
    z-index: 1;
}
.payment-role-box select,
.payment-total {
    width: 100%;
    height: .4rem;
    border: .01rem solid #eadcbb;
    border-radius: .08rem;
    background: #a58e6b;
    color: #402a18;
    font-size: .23rem;
}
/* 角色选择框与累计金额框之间保留少量间距 */
.payment-total {
    margin-top: .06rem;
}
/* 在金额框下沿与内容底边之间，均分三段垂直留白 */
.payment-amounts {
    position: absolute;
    top: 3.66rem;
    bottom: .52rem;
    left: 1.95rem;
    right: 1.95rem;
    display: grid;
    grid-template-columns: repeat(3, 2.73rem);
    grid-template-rows: repeat(2, 1.7rem);
    justify-content: space-between;
    align-content: space-evenly;
}
.payment-amounts button {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: .16rem;
    overflow: hidden;
}
.payment-amounts img {
    display: block;
    width: 100%;
}
.payment-pet {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    width: 1.35rem;
    pointer-events: none;
}
.payment-confirm-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1001;
}
.popup-payment-confirm {
    width: 4.65rem;
    height: 6rem;
    background: url(../../../../../images/pc/activity/precharge/prepayment/confirm-bg.png) center / 100% 100% no-repeat;
    z-index: 1002;
    color: #402a18;
    font-size: .18rem;
}
.payment-confirm-close {
    position: absolute;
    top: .35rem;
    right: .3rem;
    width: .45rem;
    height: .45rem;
    background: url(../../../../../images/pc/activity/precharge/prepayment/mini-close.png) center / contain no-repeat;
}
.payment-mini-logo {
    position: absolute;
    top: .8rem;
    left: .6rem;
    width: 1.7rem;
}
.payment-product {
    position: absolute;
    top: .68rem;
    right: .8rem;
    text-align: center;
    color: #5e4631;
}
.payment-mini-title {
    position: absolute;
    top: 1.8rem;
    left: 1.1rem;
    width: 2.42rem;
}
.payment-info {
    position: absolute;
    top: 2.36rem;
    left: .55rem;
    right: .55rem;
    padding: .06rem;
    border: .01rem solid #eee0be;
    border-radius: .12rem;
    background: #baa887;
}
.payment-info p {
    height: .3rem;
    padding: 0 .2rem;
    border: .01rem solid #eadcbb;
    border-radius: .1rem;
    background: #a58e6b;
    color: #5e4631;
    line-height: .28rem;
    font-size: .2rem;
}
.payment-info span {
    float: right;
}
.payment-quantity {
    /* 图片与数量输入框在同一行垂直居中 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 3.36rem;
    left: .6rem;
    right: .6rem;
    font-size: .24rem;
    font-weight: bold;
    line-height: .34rem;
}
.payment-quantity input {
    width: 2.25rem;
    height: .34rem;
    padding: 0 .12rem;
    border: none;
    border-radius: .18rem;
    background: #a58e6b;
    color: #fff;
    text-align: center;
    font-size: .2rem;
    line-height: .34rem;
}
.payment-price {
    /* 左侧展示计价明细，右侧展示应付总额 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .1rem;
    position: absolute;
    top: 3.94rem;
    left: .55rem;
    right: .55rem;
    height: .84rem;
    padding: .1rem .15rem;
    border: .01rem solid #eadcbb;
    border-radius: .12rem;
    background: #baa887;
    font-size: .2rem;
    line-height: .3rem;
    color: #5e4631;
}
.payment-price strong {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: .62rem;
    border: .01rem solid #eadcbb;
    border-radius: .1rem;
    background: #a58e6b;
    font-weight: normal;
}
.payment-submit {
    position: absolute;
    bottom: .5rem;
    left: 1.43rem;
    width: 1.78rem;
    height: .53rem;
    border: none;
    background: url(../../../../../images/pc/activity/precharge/prepayment/btn-payment.png) center / contain no-repeat;
    cursor: pointer;
}
/* 金额图片覆盖在卡片底部，避免额外占用一行高度 */
.payment-amounts button img:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.payment-logout {
    position: absolute;
    top: 1.8rem;
    right: 1rem;
    width: 1.78rem;
    height: .53rem;
    background: url(../../../../../images/pc/activity/precharge/prepayment/logout.png) center / 100% 100% no-repeat;
}
.payment-product strong {
    display: block;
    font-size: .3rem;
    line-height: .34rem;
}

.payment-product p:first-of-type {
    /* 商品标签上下留白，与金额和游戏名称分隔 */
    margin-top: .04rem;
    margin-bottom: .04rem;
    padding: 0 .16rem;
    border-radius: .16rem;
    background: #a58e6b;
    color: #fff8e8;
    line-height: .28rem;
    font-size: .2rem;
}

.payment-product p:last-child {
    font-size: .18rem;
    font-weight: bold;
    line-height: .26rem;
    font-size: .2rem;
}

.payment-info p + p {
    margin-top: .08rem;
}

/* 角色选择文字居中，使用独立箭头统一浏览器显示效果 */
#payment-role {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 .4rem;
    font-size: .24rem;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
}

/* 圆角角色面板与选择按钮保持统一配色 */
.payment-role-picker {
    position: relative;
}
.payment-role-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: .4rem;
    padding: 0 .4rem;
    border: .01rem solid #eadcbb;
    border-radius: .08rem;
    background: #a58e6b;
    color: #5e4631;
    font-size: .24rem;
    text-align: center;
    cursor: pointer;
}
.payment-role-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: .18rem;
    width: .11rem;
    height: .11rem;
    border-right: .03rem solid #402a18;
    border-bottom: .03rem solid #402a18;
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}
.payment-role-options {
    position: absolute;
    top: calc(100% + .06rem);
    left: 0;
    width: 100%;
    padding: .05rem;
    border: .01rem solid #eadcbb;
    border-radius: .12rem;
    background: #baa887;
    box-shadow: 0 .06rem .15rem rgba(64, 42, 24, .25);
    overflow: hidden;
    z-index: 2;
}
.payment-role-options button {
    display: block;
    width: 100%;
    padding: .08rem .15rem;
    border: none;
    border-radius: .08rem;
    background: transparent;
    color: #5e4631;
    font-size: .24rem;
    text-align: center;
    cursor: pointer;
}
.payment-role-options button:hover,
.payment-role-options button:focus-visible,
.payment-role-options button.selected {
    background: #905d38;
    color: #fff8e0;
}
/* 数量步进按钮沿用输入框底色，避免原生白色控件突兀 */
.payment-quantity input {
    appearance: textfield;
    -moz-appearance: textfield;
    padding: 0 .3rem;
}
.payment-quantity input::-webkit-inner-spin-button,
.payment-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.payment-stepper {
    position: absolute;
    top: .02rem;
    right: .1rem;
    display: flex;
    flex-direction: column;
    width: .25rem;
    height: .3rem;
}
.payment-stepper button {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: .04rem;
    background: transparent;
    cursor: pointer;
}
.payment-stepper button::after {
    content: "";
    width: 0;
    height: 0;
    border-right: .055rem solid transparent;
    border-left: .055rem solid transparent;
    border-bottom: .055rem solid #eadcbb;
}
.payment-stepper button:last-child::after {
    transform: rotate(180deg);
}
.payment-stepper button:hover {
    background: rgba(64, 42, 24, .15);
}
/* 仅为账号数字添加下划线 */
.payment-account-number {
    text-decoration: underline;
    text-underline-offset: .02rem;
}

/* 购买数量使用设计素材，按原图比例显示 */
.payment-quantity-title {
    width: 1.15rem;
    height: .27rem;
    vertical-align: middle;
}

/* sweetalert2 尺寸适配：本活动页 html 根字号被 rem 缩放方案放大（1920 宽下 1rem≈100px），
   swal2 弹窗宽度(--swal2-width:32em)与文字(font-size:1rem)按根字号计算会失控成巨幅弹窗。
   固定弹窗自身字号后，宽度与内部 em 排版即恢复常规大小（登录成功提示/正在获取角色信息等共用）。 */
.swal2-popup {
  font-size: 16px;
}
