/* 官网沿用预约页的 rem、轮播及公共控件样式。 */
.home-page #section-1 {
    background-image:url('../../imgs/pc/index/1/background.jpg')
}

.home-page #section-2 {
    background-image:url('../../imgs/pc/index/2/background.jpg')
}

#section-features {
    background-image:url('../../imgs/pc/index/4/background.jpg')
}

.home-stage {
    position:absolute;
    width:19.2rem;
    height:10.8rem;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%)
}

.home-art {
    position:absolute;
    display:block;
    object-fit:contain
}

.home-button {
    border:0;
    background:none;
    padding:0;
    cursor:pointer;
    transition:transform .2s
}

.home-button>img {
    width:100%;
    height:100%;
    object-fit:contain
}

.home-button:hover {
    transform:scale(1.04)
}

.home-page .shadow-light {
    inset:0
}

.download-panel {
    position:absolute;
    border:1px solid #ffedb9;
    border-radius:.3rem;
    background:#81482180
}

.gift-code {
    position:absolute;
    text-align:center;
    color:white;
    font-size:.24rem;
    font-weight:bold;
    white-space:nowrap;
    text-shadow:0 .02rem .02rem #503119
}

.home-claim {
    position:absolute;
    z-index:5;
    border:0;
    background:url('../../imgs/pc/index/2/claim.png') center/100% 100%;
    color:white;
    font-size:.28rem;
    font-weight:bold;
    cursor:pointer
}

.gift-tooltip {
    display:none;
    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%);
    min-width:2.4rem;
    padding:.16rem;
    background:#fff7dfeb;
    border:.02rem solid #c28b42;
    border-radius:.15rem;
    color:#663a18;
    font-size:.2rem;
    line-height:1.5;
    pointer-events:none;
    z-index:5
}



#home-features {
    position:absolute;
    overflow:hidden;
    border-radius:.3rem
}

#home-features img {
    width:100%;
    height:100%;
    object-fit:contain
}

#section-features .home-art {
    pointer-events:none
}

/* 外框的角饰和分页托板必须盖在轮播图片上方。 */
#section-features .feature-frame {
    z-index:2;
}

.feature-prev,.feature-next {
    position:absolute;
    background:none;
    border:0;
    font-size:.8rem;
    line-height:.6rem;
    color:#ffb82b;
    -webkit-text-stroke:.02rem white;
    cursor:pointer
}

.feature-pagination {
    position:absolute;
    left:0;
    width:100%;
    text-align:center;
    z-index:3
}

.feature-pagination .swiper-pagination-bullet {
    background:white;
    opacity:1;
    width:.12rem;
    height:.12rem;
    margin:0 .2rem
}

.feature-pagination .swiper-pagination-bullet-active {
    width:.56rem;
    border-radius:.1rem
}

.home-footer-wrap {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:4;
    background:#613310;
    color:#e5cba5
}

.home-footer-wrap .section-5-content,.home-footer-wrap .footer-content {
    height:auto;
    padding:.2rem;
    min-height:0
}

.home-footer-wrap .section-5-content {
    width:100%;
    font-size:.16rem
}

.home-footer-wrap .section-5-info>img {
    width:2rem
}

.home-social {
    position:fixed;
    right:.5rem;
    top:35%;
    display:flex;
    flex-direction:column;
    gap:.2rem;
    z-index:10
}

.home-social button {
    width:.48rem;
    height:.48rem;
    border:0;
    background:none;
    cursor:pointer
}

.home-social img {
    width:100%;
    height:100%
}

.home-dock {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.4rem;
    background:linear-gradient(90deg,#44240f,#a1682e,#44240f);
    z-index:20;
    color:#fff0a9;
    transform:translateY(150%);
    transition:transform .3s
}

.home-dock.is-visible {
    transform:translateY(0)
}

.home-dock button {
    position:relative;
    border:0;
    background:none;
    color:inherit;
    cursor:pointer;
    font-weight:bold
}

.home-dock .dock-logo {
    width:3.4rem;
    position:relative;
    top:-.14rem
}

.dock-store {
    height:100%;
    display:flex;
    align-items:center;
    gap:.16rem;
    padding:0 .3rem!important;
    font-size:0.4rem
}

.home-dock .dock-store > img {
    display: block;
    width: 3.07rem;
    height: .71rem;
    object-fit: contain;
}



#home-video {
    display:none;
    width:min(90vw,16rem);
    aspect-ratio:16/9;
    background:#000
}

#home-video iframe {
    width:100%;
    height:100%;
    border:0
}

.video-close {
    position:absolute;
    right:0;
    top:-.5rem;
    font-size:.5rem;
    color:white;
    background:none;
    border:0;
    cursor:pointer
}

@media(prefers-reduced-motion:reduce) {
    .home-button,.home-dock {
        transition:none
    }
    .home-page .effect {
        animation:none
    }
}

.feature-prev,.feature-next {
    width:.52rem;
    height:.57rem;
    font-size:0;
    filter:drop-shadow(0 0 .02rem #fff)
}





/* 特色轮播尺寸独立于角色整屏轮播。 */
#home-features .swiper-wrapper,
#home-features .swiper-slide {
    height: 100%;
    width: 100%;
}
#home-features img {
    display: block;
}

/* 官网 PSD 切图坐标。 */
.home-position-1 {
    left:10.9rem;
    top:1.02rem;
    width:4.2rem;
    height:1.83rem;
}

.home-position-2 {
    left:7.57rem;
    top:1.41rem;
    width:11.27rem;
    height:4.8rem;
}

.home-position-3 {
    left:17.39rem;
    top:1.13rem;
    width:1.3rem;
    height:1.3rem;
}

.home-position-4 {
    left:5.65rem;
    top:7.81rem;
    width:7.88rem;
    height:1.53rem;
}

.home-position-5 {
    left:5.87rem;
    top:7.93rem;
    width:2.39rem;
    height:1.27rem;
}

.home-position-6 {
    left:8.33rem;
    top:7.99rem;
    width:1.81rem;
    height:0.54rem;
}

.home-position-7 {
    left:10.19rem;
    top:7.99rem;
    width:1.81rem;
    height:0.54rem;
}

.home-position-8 {
    left:8.33rem;
    top:8.59rem;
    width:1.81rem;
    height:0.54rem;
}

.home-position-9 {
    left:10.19rem;
    top:8.59rem;
    width:1.81rem;
    height:0.54rem;
}

.home-emulator-toggle {
    position:relative;
    display:block;
    width:100%;
    height:100%;
    --shine-mask:url('../../imgs/pc/index/1/emulator.png');
}

.home-emulator-options {
    position:absolute;
    left:calc(100% + .08rem);
    bottom:0;
    z-index:5;
    width:2.03rem;
    padding:.08rem;
    border:1px solid #ffedb9;
    border-radius:.12rem;
    background:#57321e;
    box-shadow:0 .04rem .18rem #0008;
}

.home-emulator-options .home-button {
    display:block;
    width:100%;
}

.home-emulator-options .home-button + .home-button {
    margin-top:.06rem;
}

.home-position-10 {
    left:11.99rem;
    top:7.81rem;
    width:1.41rem;
    height:1.48rem;
}

.home-position-11 {
    left:7.37rem;
    top:0.75rem;
    width:4.46rem;
    height:1.34rem;
}

.home-position-12 {
    left:3.38rem;
    top:2.4rem;
    width:3.11rem;
    height:2.7rem;
}

.home-position-13 {
    left:4.42rem;
    top:4.34rem;
    width:1.02rem;
    height:0.23rem;
}

.home-position-14 {
    left:3.99rem;
    top:4.72rem;
    width:1.83rem;
    height:0.66rem;
}

.home-position-15 {
    left:2.58rem;
    top:5.16rem;
    width:3.11rem;
    height:2.7rem;
}

.home-position-16 {
    left:3.61rem;
    top:7.2rem;
    width:1.03rem;
    height:0.23rem;
}

.home-position-17 {
    left:3.2rem;
    top:7.62rem;
    width:1.83rem;
    height:0.66rem;
}

.home-position-18 {
    left:12.4rem;
    top:2.53rem;
    width:3.11rem;
    height:2.7rem;
}

.home-position-19 {
    left:13.43rem;
    top:4.67rem;
    width:1.03rem;
    height:0.23rem;
}

.home-position-20 {
    left:13.01rem;
    top:5.09rem;
    width:1.83rem;
    height:0.66rem;
}

.home-position-21 {
    left:13.49rem;
    top:5.51rem;
    width:3.11rem;
    height:2.7rem;
}

.home-position-22 {
    left:14.53rem;
    top:7.73rem;
    width:1.03rem;
    height:0.23rem;
}

.home-position-23 {
    left:14.15rem;
    top:8.19rem;
    width:1.83rem;
    height:0.66rem;
}

.home-position-24 {
    left:6.74rem;
    top:0.77rem;
    width:5.72rem;
    height:1.39rem;
}

.home-position-25 {
    left:5.28rem;
    top:2.51rem;
    width:8.64rem;
    height:4.86rem;
}

.home-position-26 {
    left:4.98rem;
    top:2.29rem;
    width:9.24rem;
    height:5.46rem;
}

.home-position-27 {
    left:4.35rem;
    top:4.71rem;
}

.home-position-28 {
    left:14.27rem;
    top:4.71rem;
}

.home-position-29 {
    top:7.24rem;
}

/* 扫光使用原按钮 PNG 的 alpha 通道，与透明留白及圆角一致。 */
.home-button .shadow-light,
.home-claim .shadow-light {
    -webkit-mask: var(--shine-mask) center / 100% 100% no-repeat;
    mask: var(--shine-mask) center / 100% 100% no-repeat;
    border-radius: 0;
}
.home-claim { --shine-mask: url('../../imgs/pc/index/2/claim.png'); }
.gift-reward {
    padding: 0;
    border: 0;
    background: none;
    color: #663a18;
    cursor: help;
}
.gift-reward > img { display: block; width: 100%; height: 100%; }
.gift-code { pointer-events: none; }
.gift-reward:hover, .gift-reward:focus-visible { z-index: 4; }
.gift-reward .gift-tooltip {
    top: .5rem;
    bottom: auto;
    width: 1.8rem;
    min-width: 0;
    min-height: 1.68rem;
    padding: .12rem .06rem;
    font-size: .18rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.gift-reward:hover .gift-tooltip,
.gift-reward:focus-visible .gift-tooltip { display: flex; flex-direction: column; }
.home-dock .dock-store { text-align: left; }
/* 分页固定在原稿橙色托板内，覆盖 Swiper 通用 bottom 与行高。 */
.feature-pagination.swiper-pagination-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 2.98rem;
    height: .12rem;
    bottom: auto;
    left: 8.11rem;
    top: 7.24rem;
    line-height: 0;
}
.feature-pagination.swiper-pagination-horizontal .swiper-pagination-bullet {
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    height: .12rem;
    width: .12rem;
    background: #fff;
    opacity: 1;
}
.feature-pagination.swiper-pagination-horizontal .swiper-pagination-bullet-active {
    width: .56rem;
    height: .1rem;
}
.feature-prev, .feature-next {
    padding: 0;
    font-size: 0;
    filter: none;
    -webkit-text-stroke: 0;
    background: center / contain no-repeat;
}

.home-position-3 { --shine-mask: url('../../imgs/pc/index/1/play.png'); }

.home-position-5 { --shine-mask: url('../../imgs/pc/index/1/topup.png'); }

.home-position-6 { --shine-mask: url('../../imgs/pc/index/1/ios.png'); }

.home-position-7 { --shine-mask: url('../../imgs/pc/index/1/google.png'); }

.home-position-8 { --shine-mask: url('../../imgs/pc/index/1/huawei.png'); }

.home-position-10 { --shine-mask: url('../../imgs/pc/index/1/apk.png'); }

.home-dock .dock-store { isolation: isolate; }

/* PSD 原生轮播箭头，保留描边和投影。 */
.feature-prev {
    left: 4.36rem;
    top: 4.72rem;
    width: 0.5rem;
    height: 0.55rem;
    background-image: url('../../imgs/pc/index/4/prev.png');
}

.feature-next {
    left: 14.28rem;
    top: 4.72rem;
    width: 0.5rem;
    height: 0.55rem;
    background-image: url('../../imgs/pc/index/4/next.png');
}

.home-dock .dock-download {
    display: block;
    flex-shrink: 0;
    width: 6.55rem;
    height: auto;
}
