@charset "utf-8";

.official-site {
    background: #14111e;
    color: #fff;
    font-family: Arial, sans-serif;
}

.official-site.pc {
    overflow: clip !important;
}

.official-site * {
    box-sizing: border-box;
}

.official-site button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
}

.official-site button:focus-visible, .official-site a:focus-visible, .character-box > img:focus-visible {
    outline: 3px solid #fff394;
    outline-offset: 4px;
}

.official-site [hidden] {
    display: none !important;
}

.home-section, .gifts-section {
    position: relative;
    background-color: #14111e;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.art-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 19.2rem;
    height: 10.8rem;
    transform: translate(-50%, -50%);
    background-size: 100% 100%;
}

.home-section {
    background-image: url(../../imgs/pc/index/hero-bg.jpg);
}

.gifts-section {
    background-image: url(../../imgs/pc/index/gift-bg.jpg);
}

/* 首页切图布局 */
.pc .hero-stage .hero-logo {
    left: 0.76rem;
    top: 1.16rem;
    width: 3.75rem;
    height: 1.81rem;
}

.pc .hero-stage .hero-title {
    left: 2.81rem;
    top: 4.91rem;
    width: 15.36rem;
    height: 5.83rem;
}

.pc .hero-stage .play {
    left: 9.05rem;
    top: 4.39rem;
    width: 1.19rem;
    height: 1.19rem;
}

.pc .hero-stage .download-panel {
    left: 5.46rem;
    top: 7.69rem;
    width: 8.25rem;
    height: 1.94rem;
}

.pc .hero-stage .topup {
    left: 5.91rem;
    top: 7.98rem;
    width: 2.32rem;
    height: 1.32rem;
}

.pc .hero-stage .google {
    left: 10.1rem;
    top: 7.99rem;
    width: 1.97rem;
    height: 0.7rem;
}

.pc .hero-stage .ios {
    left: 8.24rem;
    top: 7.99rem;
    width: 1.97rem;
    height: 0.7rem;
}

.pc .hero-stage .huawei {
    left: 8.24rem;
    top: 8.59rem;
    width: 1.97rem;
    height: 0.7rem;
}

.pc .hero-stage .apk {
    left: 12.06rem;
    top: 7.96rem;
    width: 1.25rem;
    height: 1.32rem;
}

.pc .hero-stage .emulator {
    left: 10.1rem;
    top: 8.59rem;
    width: 1.97rem;
    height: 0.7rem;
}

/* 礼包切图布局 */
.pc .gift-stage .gift-title {
    left: 6.74rem;
    top: 1.09rem;
    width: 5.76rem;
    height: 0.66rem;
}

.pc .gift-stage .gift-1 {
    left: 2.19rem;
    top: 2.96rem;
    width: 4.84rem;
    height: 2.04rem;
}

.pc .gift-stage .claim-1 {
    left: 3.21rem;
    top: 4.92rem;
    width: 2.29rem;
    height: 0.69rem;
}

.pc .gift-stage .gift-2 {
    left: 6.48rem;
    top: 2.96rem;
    width: 4.84rem;
    height: 2.04rem;
}

.pc .gift-stage .claim-2 {
    left: 7.51rem;
    top: 4.92rem;
    width: 2.29rem;
    height: 0.69rem;
}

.pc .gift-stage .gift-3 {
    left: 2.19rem;
    top: 6.41rem;
    width: 4.84rem;
    height: 2.04rem;
}

.pc .gift-stage .claim-3 {
    left: 3.21rem;
    top: 8.37rem;
    width: 2.29rem;
    height: 0.69rem;
}

.pc .gift-stage .gift-4 {
    left: 6.48rem;
    top: 6.15rem;
    width: 4.84rem;
    height: 2.63rem;
}

.pc .gift-stage .claim-4 {
    left: 7.51rem;
    top: 8.37rem;
    width: 2.29rem;
    height: 0.69rem;
}

/* 礼包内容沿用预约页分行文字，放置在道具图左侧 */
.gift-stage .gift-content {
    position: absolute;
    left: 0.55rem;
    top: 0.65rem;
    width: 1.9rem;
    color: #fff;
    font-size: 0.16rem;
    line-height: 0.22rem;
    text-shadow: 0 1px 2px #000;
}

.gift-stage .gift-4 .gift-content {
    top: 0.91rem;
}

.gift-stage .gift-content .award-text {
    position: static;
    width: auto;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0.05rem;
    scale: 1;
}

.gift-stage .gift-content .award-text:nth-child(2) {
    margin-left: -0.06rem;
}

.gift-stage .gift-content .award-text:nth-child(3) {
    margin-left: -0.12rem;
}

.slice {
    position: absolute;
    display: block;
}

.slice img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

button.slice {
    transition: filter 0.2s, transform 0.2s;
}

button.slice:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.hero-logo, .hero-title, .download-panel, .gift-title, .gift-1, .gift-2, .gift-3, .gift-4 {
    pointer-events: none;
}

/* 礼包和领取按钮整体上移，矮屏为底部下载浮条预留间距 */
.pc .gift-stage > .slice:not(.gift-title) {
    margin-top: calc(-1 * max(0.6rem, calc(4.96rem - 50vh)));
}

.social-rail {
    position: fixed;
    right: 0.22rem;
    top: 34%;
    width: 1.78rem;
    z-index: 15;
    display: none;
    flex-direction: column;
    gap: 0.02rem;
}

.show-social .social-rail {
    display: flex;
}

.social-rail button img {
    display: block;
    width: 100%;
}

.social-rail button:hover {
    filter: brightness(1.15);
}

#emulator-menu {
    display: none;
    position: absolute;
    left: 12.14rem;
    top: 8.59rem;
    z-index: 25;
    width: 1.97rem;
    padding: 0.07rem;
    background: #191225;
    border: 1px solid #e6b8ff;
    border-radius: 0.07rem;
    box-shadow: 0 0.04rem 0.2rem #0008;
    font-size: 0.15rem;
}

#emulator-menu button {
    display: block;
    width: 100%;
}

#emulator-menu button + button {
    margin-top: 0.06rem;
}

#emulator-menu button img {
    display: block;
    width: 100%;
    height: auto;
}

#emulator-menu button:hover, #emulator-menu button:focus {
    filter: brightness(1.15);
}

.next-page {
    position: absolute;
    bottom: 0.08rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    font-size: 0.4rem;
    text-shadow: 0 2px 8px #000;
}

.download-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1rem;
    background: url(../../imgs/pc/index/dock-bg.jpg?v=2) center/100% 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-around;
    transform: translateY(calc(100% + 0.4rem));
    transition: transform 0.3s;
}

.show-dock .download-dock {
    transform: translateY(0);
}

.download-dock .dock-logo {
    width: 2.98rem;
    height: 1.34rem;
    object-fit: contain;
    align-self: flex-end;
}

.dock-title {
    width: 7.36rem;
    display: block;
}

.dock-title img {
    display: block;
    width: 100%;
}

.download-dock button img {
    display: block;
    width: 3.2rem;
    max-height: 0.85rem;
    object-fit: contain;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 90vw;
    padding: 14px 22px;
    border: 1px solid #e7b4ff;
    border-radius: 8px;
    background: #24172ff2;
    color: #fff;
    font: 16px/1.5 Arial, sans-serif;
    box-shadow: 0 4px 25px #0008;
    text-align: center;
}

.official-site dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: 1px solid #aa7ec4;
    border-radius: 10px;
    background: #160f23;
    color: #fff;
    padding: 35px 24px 24px;
    width: min(900px, 92vw);
    max-height: 90vh;
    font: 16px/1.6 Arial, sans-serif;
    z-index: 10001;
}

.official-site dialog::backdrop {
    background: #000d;
}

.official-site .dialog-close {
    position: absolute;
    right: 8px;
    top: 0;
    width: 36px;
    height: 36px;
    font-size: 30px;
}

#pop-youtube {
    display: none;
    width: min(900px, 92vw);
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

#pop-youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#code-dialog {
    width: min(440px, 90vw);
    text-align: center;
}

#code-dialog input {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #dbb4ed;
    background: #0c0813;
    color: #fff094;
    text-align: center;
    font: bold 24px Arial, sans-serif;
}

/* 礼包码兼容复制输入框 */
.official-site .clipboard-input {
    position: fixed;
    left: -9999px;
    top: 0;
}

/* 角色名称宽度测量 */
.official-site .character-label-ruler {
    position: absolute;
    visibility: hidden;
    width: max-content;
    white-space: nowrap;
    letter-spacing: 0;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 10002;
    padding: 12px;
    background: #21152d;
    color: white;
    font: 16px Arial, sans-serif;
}

.skip-link:focus {
    top: 12px;
}

.official-site #section-5 {
    height: auto;
    min-height: 2.86rem;
}

.official-site #section-5 .section-5-content {
    padding-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .official-site * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
