/* ===== 最强异世界 - 官网样式 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Sans:wght@400;500;700;900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brown-dark: #3d2b1f;
    --brown-mid: #5a3e2b;
    --brown-light: #8b6f47;
    --gold: #d4af37;
    --gold-light: #f5d76e;
    --cream: #f5ede1;
    --cream-dark: #e8dcc8;
    --blue-btn: #1e4d8c;
    --red: #e63946;
    --text-dark: #4a3a2e;
    --design-root: 100;
    --bp-mobile: 960px;
    --nav-height: 0.72rem;
    --header-height: 0.56rem;
    --max-width: 4.8rem;
    --design-width: 480;
    /* a8.png: 2.09rem total height, ~1.66rem is the left flat area height */
    --nav-flat-ratio: 0.7943;
    /* 166 / 209 */
    --nav-flat-height: calc(var(--nav-height) * var(--nav-flat-ratio));
    --nav-bump-height: calc(var(--nav-height) - var(--nav-flat-height));
}

html {
    font-size: min(20.833vw, 100px);
    scroll-behavior: smooth;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--brown-dark);
    color: var(--text-dark);
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 0.16rem;
    -webkit-text-size-adjust: 100%;
}

.pc-only {
    display: block;
}

.pc-inline-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

.app {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    background: var(--brown-dark);
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.12rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/home/a1.png') no-repeat left center / auto 100%;
    opacity: 0.9;
    z-index: -1;
}

.header-logo img {
    height: 0.44rem;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.08rem;
}

.header-avatar {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 0.06rem;
    overflow: hidden;
    cursor: pointer;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-menu {
    position: relative;
    width: 0.36rem;
    height: 0.36rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.06rem;
}

.header-menu img {
    width: 0.2rem;
    height: auto;
}

.header-menu .badge {
    position: absolute;
    top: -0.02rem;
    right: -0.02rem;
    width: 0.16rem;
    height: 0.16rem;
    background: var(--red);
    border-radius: 50%;
    font-size: 0.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Page Background ===== */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(0);
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.page-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 0.32rem);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height);
    background: url('../assets/home/a8.png') no-repeat center / 100% 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 0.04rem;
    z-index: 100;
    border-top: 0.01rem solid rgba(212, 175, 55, 0.3);
}

.bottom-nav::before {
    content: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.02rem;
    text-decoration: none;
    color: var(--gold-light);
    font-size: 0.11rem;
    padding: 0.04rem 0.08rem 0.08rem;
    border-radius: 0.08rem;
    transition: all 0.2s;
    position: relative;
    flex: 1;
    height: 100%;
}

.nav-item img {
    width: 0.28rem;
    height: 0.28rem;
    object-fit: contain;
}

.nav-item.active {
    /* Keep active state within a8 left flat area height */
    background-image: url('../assets/home/a9.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% var(--nav-flat-height);
}

.nav-item.center.active {
    background-image: url('../assets/home/a9.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% var(--nav-flat-height);
}

.nav-item.active span {
    color: #fff;
    font-weight: 700;
}

.nav-item.center {
    /* Keep layout stable; lift only the circle */
    margin-top: 0;
}

.nav-item.center img {
    /* Fit exactly to a8 bump (semi-circle): diameter = 2 * bump height */
    width: calc(var(--nav-bump-height) * 2);
    height: calc(var(--nav-bump-height) * 2);
    border-radius: 50%;
    background: none;
    padding: 0;
    position: relative;
    top: calc(-0.001 * var(--nav-bump-height));
    transform: scale(1.6);
    transform-origin: center bottom;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

/* ===== Home Page ===== */
.home-mode .page-content {
    padding-top: 0;
}
.home-hero {
    position: relative;
    width: 100%;
        line-height: 0;
    }
    
    .home-bg-img {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .home-hero-overlay {
        position: absolute;
        inset: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    }
    
    .home-hero-overlay>* {
        pointer-events: auto;
    }
    
    .home-main-logo {
        position: absolute;
        top: 7%;
        left: 50%;
        transform: translateX(-50%);
        width: 46%;
        max-width: 2rem;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 0.04rem 0.12rem rgba(0, 0, 0, 0.5));
        z-index: 2;
}

.home-hero-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
    padding: 0 0.12rem 0.14rem;
    box-sizing: border-box;
}

.home-slogan {
    width: 88%;
        max-width: 3.4rem;
        margin-bottom: 0;
    filter: drop-shadow(0 0.04rem 0.12rem rgba(0, 0, 0, 0.5));
}

.home-slogan img {
    width: 100%;
    height: auto;
}

.home-downloads {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.06rem;
    justify-content: center;
    align-items: center;
    padding: 0 0.08rem;
    width: 100%;
    box-sizing: border-box;
}

.home-downloads a {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 1.08rem;
    line-height: 0;
    transition: transform 0.2s;
}

.home-downloads a:hover {
    transform: scale(1.05);
}

.home-downloads img {
    display: block;
    width: 100%;
    height: 0.46rem;
    object-fit: contain;
    object-position: center;
}

/* ===== Tab Bar ===== */
.tab-bar {
    display: flex;
    gap: 0;
    padding: 0.08rem 0.16rem;
    margin-bottom: 0.08rem;
}

.tab-btn {
    flex: 1;
    padding: 0.12rem 0.16rem;
    border: 0.02rem solid var(--gold);
    background: linear-gradient(180deg, #6b4c35 0%, #4a3728 100%);
    color: var(--gold-light);
    font-size: 0.16rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn:first-child {
    border-radius: 0.12rem 0 0 0.12rem;
}

.tab-btn:last-child {
    border-radius: 0 0.12rem 0.12rem 0;
}

.tab-btn.active {
    background: linear-gradient(180deg, #c9a050 0%, #8b6f47 100%);
    color: #fff;
    box-shadow: inset 0 0.02rem 0.08rem rgba(255, 255, 255, 0.2);
}

.tab-btn:not(.active) {
    opacity: 0.8;
}

/* ===== Recharge Page ===== */
.recharge-bg {
    background-image: url('../assets/common/bg-recharge.jpg');
}

.recharge-page {
    padding-bottom: calc(var(--nav-height) + 0.88rem);
}

.recharge-tab-bar {
    padding: 0.06rem 0.12rem 0.1rem;
    margin-bottom: 0.04rem;
}

.recharge-tab-bar .tab-btn {
    position: relative;
    border: none;
    background: url('../assets/recharge/g33.png') no-repeat center / 100% 100%;
    color: #d4c4a8;
    font-size: 0.15rem;
    padding: 0.1rem 0.12rem;
    min-height: 0.44rem;
}

.recharge-tab-bar .tab-btn:first-child {
    border-radius: 0;
}

.recharge-tab-bar .tab-btn:last-child {
    border-radius: 0;
}

.recharge-tab-bar .tab-btn.active {
    background: url('../assets/recharge/g32.png') no-repeat center / 100% 100%;
    color: #fff;
    box-shadow: none;
    opacity: 1;
}

.recharge-tab-bar .tab-dot {
    position: absolute;
    top: 0.04rem;
    right: 0.1rem;
    width: 0.08rem;
    height: 0.08rem;
    border-radius: 50%;
    background: #e63946;
    border: 0.01rem solid #fff;
}

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.08rem;
    padding: 0 0.1rem 0.12rem;
}

.recharge-card {
    position: relative;
    min-width: 0;
    border-radius: 0.1rem;
    overflow: hidden;
    cursor: pointer;
    border: 0.02rem solid transparent;
    transition: all 0.2s;
    background: #1a1040;
}

.recharge-card.selected {
    border-color: #ff8c00;
    box-shadow: 0 0 0.12rem rgba(255, 140, 0, 0.55);
}

.recharge-card .card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.recharge-card .badge {
    position: absolute;
    top: -0.02rem;
    left: -0.02rem;
    width: 0.36rem;
    height: 0.36rem;
    z-index: 2;
}

.recharge-card .badge img {
    width: 100%;
    height: 100%;
}

.recharge-card .recharge-card-discount {
    top: 0;
    left: -0.06rem;
    z-index: 2;
}

.recharge-card .price-btn {
    position: absolute;
    bottom: 0.06rem;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    height: 0.26rem;
    background: url('../assets/recharge/g2.png') no-repeat center / 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.1rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
}

.recharge-card .card-info {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -35%);
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 100%;
    padding: 0 0.04rem;
    pointer-events: none;
}

.recharge-card .card-info .amount {
    font-size: 0.16rem;
    font-weight: 900;
    text-shadow: 0 0.02rem 0.04rem rgba(244, 231, 180, 0.733);
    line-height: 1.1;
}

.recharge-card .card-info .bonus {
    font-size: 0.09rem;
    color: #b8860b;
    margin-top: 0.02rem;
    line-height: 1.2;
}

.recharge-controls {
    padding: 0 0.12rem 0.16rem;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.recharge-control-label {
    color: #fff;
    font-size: 0.13rem;
    font-weight: 700;
    margin-bottom: 0.08rem;
}

.recharge-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('../assets/recharge/g16.png') repeat-x center / auto 100%;
    background-color: #2b2824;
    border-radius: 0.08rem;
    min-height: 0.4rem;
    padding: 0 0.08rem;
}

.qty-btn {
    width: 0.36rem;
    height: 0.36rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.22rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.qty-value {
    color: #fff;
    font-size: 0.18rem;
    font-weight: 700;
    min-width: 0.24rem;
    text-align: center;
}

.recharge-pay-methods-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.recharge-pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: url('../assets/recharge/g13.png') no-repeat center / 100% 100%;
    min-height: 0.64rem;
    padding: 0.06rem 0.04rem;
}

.pay-method {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.04rem;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.pay-method.active {
    opacity: 1;
}

.pay-method img {
    max-height: 0.4rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pay-method-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 0.06rem;
    background: #1677ff;
    color: #fff;
    font-size: 0.18rem;
    font-weight: 900;
}

/* 累充活动 */
.cumulative-event {
    position: relative;
    margin: 0 0.1rem 0.14rem;
}

.cumulative-frame {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.cumulative-inner {
    position: absolute;
    top: 11%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.cumulative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: -10%;
}

.cumulative-title {
    color: #fff;
    font-size: 0.17rem;
    font-weight: 900;
    text-shadow: 0 0.02rem 0 #8b4513, 0 0 0.08rem rgba(0, 0, 0, 0.3);
}

.cumulative-info {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.cumulative-info img {
    width: 0.22rem;
    height: 0.22rem;
}

.cumulative-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.08rem;
    margin-top: clamp(0.16rem, 6.5vw, 0.24rem);
    margin-bottom: 0.04rem;
    flex-shrink: 0;
    padding: 0 0.04rem;
}

.cumulative-progress,
.cumulative-timer {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    color: #5a3e2b;
    font-size: 0.12rem;
    font-weight: 700;
}

.cumulative-progress img {
    width: 0.28rem;
    height: auto;
}

.cumulative-timer {
    background: url('../assets/recharge/g23.png') no-repeat left center / auto 100%;
    padding: 0.04rem 0.1rem 0.04rem 0.28rem;
    color: #fff;
    font-size: 0.11rem;
    min-height: 0.26rem;
}

.cumulative-timer img {
    display: none;
}

.cumulative-path {
    position: relative;
    width: 100%;
    aspect-ratio: 953 / 798;
    flex: none;
    margin-top: auto;
    overflow: visible;
    padding-bottom: 0.12rem;
}

.cumulative-path-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
}

.cumulative-path-segments {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cumulative-path-seg {
    position: absolute;
    left: calc(var(--sl) * 1%);
    top: calc(var(--st) * 1%);
    width: calc(var(--sw) * 1%);
    height: calc(var(--sh) * 1%);
    overflow: hidden;
    opacity: 0;
}

.cumulative-path-seg.is-lit {
    opacity: 1;
}

.cumulative-path-seg img {
    position: absolute;
    width: calc(100% * 100 / var(--sw));
    height: auto;
    aspect-ratio: 953 / 798;
    max-width: none;
    left: calc(var(--sl) * -100 / var(--sw) * 1%);
    top: calc(var(--st) * -100 / var(--sh) * 1%);
    pointer-events: none;
}

.cumulative-nodes {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
    z-index: 3;
    pointer-events: none;
}

.cumulative-path .cumulative-row {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cumulative-node {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: auto;
}

/* 锚点对齐 g22 圆点（像素实测）：奖励框在上方、exp 在线下方 */
.cumulative-path .cumulative-row-0 .cumulative-node:nth-child(1) {
    left: 18.15%;
    top: 2.76%;
}

.cumulative-path .cumulative-row-0 .cumulative-node:nth-child(2) {
    left: 41.34%;
    top: 2.76%;
}

.cumulative-path .cumulative-row-0 .cumulative-node:nth-child(3) {
    left: 64.64%;
    top: 2.76%;
}

.cumulative-path .cumulative-row-0 .cumulative-node:nth-child(4) {
    left: 88.04%;
    top: 2.76%;
}

.cumulative-path .cumulative-row-1 .cumulative-node:nth-child(1) {
    left: 80.69%;
    top: 50%;
}

.cumulative-path .cumulative-row-1 .cumulative-node:nth-child(2) {
    left: 57.29%;
    top: 50%;
}

.cumulative-path .cumulative-row-1 .cumulative-node:nth-child(3) {
    left: 34%;
    top: 50%;
}

.cumulative-path .cumulative-row-1 .cumulative-node:nth-child(4) {
    left: 10.81%;
    top: 50%;
}

.cumulative-path .cumulative-row-2 .cumulative-node:nth-child(1) {
    left: 17.94%;
    top: 97.18%;
}

.cumulative-path .cumulative-row-2 .cumulative-node:nth-child(2) {
    left: 41.13%;
    top: 97.18%;
}

.cumulative-path .cumulative-row-2 .cumulative-node:nth-child(3) {
    left: 64.43%;
    top: 97.18%;
}

.cumulative-path .cumulative-row-2 .cumulative-node:nth-child(4) {
    left: 87.83%;
    top: 97.18%;
}

.cumulative-path .cumulative-node .node-slot {
    position: absolute;
    left: 50%;
    bottom: 0;
        transform: translate(-50%, calc(-100% + clamp(0.6rem, 10.0vw, 0.72rem)));
}

.cumulative-path .cumulative-node .node-threshold {
    position: absolute;
    left: 50%;
    top: clamp(0.1rem, 2.8vw, 0.15rem);
    transform: translateX(-50%);
    z-index: 10;
        white-space: nowrap;
        }
        
        .node-path-dot {
            position: absolute;
            left: 50%;
            top: 0;
            z-index: 2;
            transform: translate(-50%, -50%);
            width: clamp(0.14rem, 3.6vw, 0.18rem);
            height: auto;
            pointer-events: none;
        }
        
        .node-path-dot.is-hidden {
            display: none;
}

.node-slot {
    position: relative;
    width: clamp(0.62rem, 16.5vw, 0.76rem);
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    overflow: visible;
    isolation: isolate;
}

.node-slot-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.node-slot-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 116.6%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    display: block;
    pointer-events: none;
    animation: tc-claim-glow 1.6s ease-in-out infinite;
}

.node-slot-icon {
    position: absolute;
    left: 50%;
    top: 38%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 58%;
    height: auto;
    display: block;
    pointer-events: none;
}

.node-count {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    z-index: 5;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.11rem;
    font-weight: 700;
    text-shadow: 0 0.01rem 0.02rem rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    pointer-events: none;
}

.node-slot-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    width: 103.8%;
    height: auto;
    display: block;
    pointer-events: none;
}

.cumulative-node.is-claimable {
    cursor: pointer;
}

.cumulative-node.is-claimable .node-slot-icon {
    filter: none;
}

.cumulative-node.is-claimable .node-count,
.cumulative-node.is-claimable .node-threshold {
    text-shadow: 0 0 0.08rem rgba(255, 230, 120, 0.95), 0 0.01rem 0.02rem rgba(0, 0, 0, 0.6);
}

@keyframes tc-claim-glow {
    0%,
    100% {
        opacity: 0.88;
            filter: drop-shadow(0 0 0.04rem rgba(255, 206, 78, 0.45)) drop-shadow(0 0 0.1rem rgba(255, 178, 42, 0.24));
    }

    50% {
        opacity: 1;
            filter: drop-shadow(0 0 0.08rem rgba(255, 206, 78, 0.75)) drop-shadow(0 0 0.16rem rgba(255, 178, 42, 0.42));
    }
}

.cumulative-node.is-claimed {
    cursor: default;
}

.cumulative-node.is-claimed .node-slot-icon {
    filter: brightness(0.72) saturate(0.85);
}

.cumulative-node.is-claimed .node-count,
.cumulative-node.is-claimed .node-threshold {
    opacity: 0.88;
}

.node-threshold {
    color: #fff;
    font-size: clamp(0.09rem, 2.3vw, 0.11rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        -0.01rem -0.01rem 0 #4a3728,
        0.01rem -0.01rem 0 #4a3728,
        -0.01rem 0.01rem 0 #4a3728,
        0.01rem 0.01rem 0 #4a3728,
        0 0.02rem 0.03rem rgba(0, 0, 0, 0.45);
}

/* 福利页币种栏 */
.recharge-currency-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.08rem;
    padding: 0.08rem 0.12rem;
    margin-bottom: 0.1rem;
}

.currency-hint {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.1rem;
    line-height: 1.3;
    flex: 1;
}

.currency-select {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    color: #fff;
    font-size: 0.11rem;
    white-space: nowrap;
}

.currency-select-input,
.location-select,
.channel-select,
.currency-btn {
    border: 0.01rem solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 0.06rem;
    padding: 0.04rem 0.1rem;
    font-size: 0.11rem;
    cursor: pointer;
    font-family: inherit;
}

.currency-select-input,
.location-select,
.channel-select {
    appearance: none;
    padding-right: 0.24rem;
}

.currency-select-input:focus,
.location-select:focus,
.channel-select:focus,
.currency-btn:focus {
    outline: none;
    border-color: rgba(245, 215, 110, 0.85);
}

/* 首充卡片 */
.welfare-first-card {
    position: relative;
    margin: 0 0.1rem 0.12rem;
    border-radius: 0.12rem;
    overflow: hidden;
}

.welfare-first-bg {
    width: 100%;
    height: auto;
    display: block;
}

.welfare-first-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 0.08rem;
    padding: 0.1rem 0.12rem;
    z-index: 1;
}

.welfare-first-visual {
    position: relative;
    overflow: visible;
}

.welfare-first-liner {
    position: absolute;
    top: 50%;
    left: 0.14rem;
    transform: translateY(-50%);
    z-index: 0;
    width: 0.44rem;
    height: 0.44rem;
    object-fit: fill;
    display: block;
    pointer-events: none;
}

.welfare-first-icon {
    position: relative;
    z-index: 1;
}

.welfare-first-text {
    flex: 1;
    min-width: 0;
}

.welfare-first-text p {
    color: #5a3e2b;
    font-size: 0.12rem;
    font-weight: 700;
    margin-bottom: 0.04rem;
}

.welfare-first-rewards {
    display: flex;
    gap: 0.05rem;
    flex-wrap: wrap;
}

.welfare-first-reward {
    position: relative;
    width: 0.44rem;
    height: 0.44rem;
    flex-shrink: 0;
    overflow: visible;
}

.welfare-first-reward-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
}

.welfare-first-reward-icon {
    position: absolute;
    top: 0.04rem;
    left: 0.04rem;
    right: 0.04rem;
    bottom: 0.12rem;
    width: calc(100% - 0.08rem);
    height: calc(100% - 0.16rem);
    margin: 0 auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.welfare-first-reward span {
    position: absolute;
    right: 0.04rem;
    bottom: 0.02rem;
    color: #fff;
    font-size: 0.11rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.01rem #000;
    paint-order: stroke fill;
    text-shadow:
        -0.01rem 0 0 #000,
        0.01rem 0 0 #000,
        0 -0.01rem 0 #000,
        0 0.01rem 0 #000;
    pointer-events: none;
}

.welfare-first-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    width: 0.98rem;
    height: 0.36rem;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.welfare-first-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
}

.welfare-first-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.14rem;
    font-weight: 700;
}

/* 礼包列表 */
.welfare-pack-list {
    padding: 0 0.1rem 0.12rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.welfare-pack-card {
    border-radius: 0.12rem;
    overflow: hidden;
    cursor: pointer;
}

.welfare-pack-head {
    position: relative;
}

.welfare-pack-select-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.welfare-pack-select-badge {
    display: none;
}

.welfare-pack-select-badge img {
    width: 0.22rem;
    height: auto;
    display: block;
}

.welfare-pack-card.selected .welfare-pack-select-frame {
    opacity: 1;
}

.welfare-pack-head-bg {
    width: 100%;
    height: auto;
    display: block;
}

.welfare-pack-head-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 20%;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.1rem 0.12rem 0.04rem;
    z-index: 2;
}

.welfare-pack-visual {
    position: relative;
    width: 0.88rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welfare-pack-visual-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.welfare-pack-discount {
    position: absolute;
    top: 0.02rem;
    left: -0.06rem;
    z-index: 5;
}

.welfare-pack-discount img {
    width: 0.66rem;
    height: auto;
    display: block;
}

.welfare-pack-discount em {
    position: absolute;
    top: 38%;
    left: 34%;
    width: 78%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-style: normal;
    font-size: 0.1rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-33deg);
    transform-origin: center center;
}

.welfare-pack-chest {
    width: 0.72rem;
    height: auto;
    display: block;
}

.welfare-pack-timer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 0.72rem;
    z-index: 2;
    pointer-events: none;
}

.welfare-pack-timer img {
    width: 100%;
    height: auto;
    display: block;
}

.welfare-pack-timer-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.22rem;
    color: #fff;
    font-size: 0.09rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.welfare-pack-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.welfare-pack-info h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.08rem;
    color: #fff;
    font-size: 0.15rem;
    font-weight: 900;
    margin-bottom: 0.08rem;
}

.welfare-pack-info h3 small {
    font-size: 0.12rem;
    font-weight: 700;
    opacity: 0.9;
    flex-shrink: 0;
}

.welfare-pack-rewards {
    display: flex;
    gap: 0.05rem;
    flex-wrap: nowrap;
    overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.06rem 0.02rem 0;
        margin: -0.03rem -0.02rem 0;
        width: 100%;
        max-width: 2.5rem;
        position: relative;
        z-index: 1;
        pointer-events: auto;
        touch-action: pan-x;
    }
    
    .welfare-pack-rewards::-webkit-scrollbar {
        display: none;
}

@media (hover: hover) and (pointer: fine) {
    .welfare-pack-rewards {
        cursor: grab;
    }

    .welfare-pack-rewards.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
}

.welfare-pack-reward-slot {
    position: relative;
    width: 0.52rem;
        height: 0.52rem;
    flex-shrink: 0;
    display: block;
    overflow: visible;
}

.welfare-pack-reward-frame {
    position: absolute;
    top: -0.06rem;
    left: 0;
    right: 0;
    bottom: 0.06rem;
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
    pointer-events: none;
}

.welfare-pack-reward-icon {
    position: absolute;
    top: -0.01rem;
    left: 0.05rem;
    right: 0.05rem;
    bottom: 0.2rem;
    width: calc(100% - 0.1rem);
    height: calc(100% - 0.19rem);
    margin: 0 auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.welfare-pack-reward-slot em {
    position: absolute;
    top: 0.14rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.28rem;
        height: 0.28rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 0.01rem 0.01rem 0;
    box-sizing: border-box;
    color: #fff;
    font-style: normal;
    font-size: 0.1rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.01rem #000;
    paint-order: stroke fill;
    text-shadow:
        -0.01rem 0 0 #000,
        0.01rem 0 0 #000,
        0 -0.01rem 0 #000,
        0 0.01rem 0 #000;
    pointer-events: none;
}

.welfare-pack-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.welfare-pack-foot span {
    color: #ffffff;
    font-size: 0.13rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    -webkit-text-stroke: 0.01rem #000;
    paint-order: stroke fill;
    text-shadow:
        -0.01rem 0 0 #000,
        0.01rem 0 0 #000,
        0 -0.01rem 0 #000,
        0 0.01rem 0 #000;
}

.recharge-footer {
    position: fixed;
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    padding: 0.08rem 0.12rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
    z-index: 50;
    border-top: 0.01rem solid rgba(212, 175, 55, 0.3);
}

.recharge-footer-info {
    flex: 1;
    min-width: 0;
}

.recharge-footer .product {
    color: #fff;
    font-size: 0.11rem;
    margin-bottom: 0.02rem;
    display: flex;
    align-items: center;
    gap: 0.04rem;
    flex-wrap: wrap;
}

.recharge-footer .product .coin-icon {
    width: 0.16rem;
    height: 0.16rem;
}

.recharge-footer .total {
    color: var(--gold-light);
    font-size: 0.12rem;
    font-weight: 700;
}

.pay-btn {
    background: url('../assets/recharge/g2.png') no-repeat center / 100% 100%;
    border: none;
    color: #fff;
    font-size: 0.15rem;
    font-weight: 700;
    padding: 0.08rem 0.28rem;
    cursor: pointer;
    font-family: inherit;
    min-width: 0.96rem;
    height: 0.4rem;
    flex-shrink: 0;
}

/* ===== News Page ===== */
.news-bg {
    background-image: url('../assets/common/bg-blur.jpg');
}

.section-title {
    text-align: center;
    padding: 0.16rem 0 0.12rem;
}

.section-title img {
    height: 0.4rem;
    width: auto;
}

.news-hero {
    margin: 0 0.16rem 0.2rem;
    border-radius: 0.12rem;
    overflow: hidden;
    border: 0.02rem solid rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    text-decoration: none;
}

.news-hero:hover {
    transform: scale(1.02);
}

.news-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.news-hero .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.12rem 0.16rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ff8c00;
    font-size: 0.14rem;
    font-weight: 700;
}

.news-list {
    padding: 0 0.16rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.news-item {
    display: flex;
    gap: 0.12rem;
    background: var(--cream);
    border-radius: 0.12rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateX(0.04rem);
}

.news-item img {
    width: 1rem;
    height: 0.8rem;
    object-fit: cover;
    flex-shrink: 0;
}

.news-item .news-text {
    padding: 0.12rem 0.12rem 0.12rem 0;
    display: flex;
    align-items: center;
    font-size: 0.14rem;
    font-weight: 600;
    color: #c45c00;
}

.news-item:nth-child(2) .news-text {
    color: var(--text-dark);
}

.notice-hero-wrap {
    margin: 0 0.16rem 0.2rem;
}

.news-hero-placeholder {
    width: 100%;
    min-height: 1.6rem;
    background: linear-gradient(180deg, #3d2b1f 0%, #2a1f16 100%);
}

.news-empty {
    margin: 0 0.16rem 0.2rem;
    padding: 0.24rem 0.16rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.14rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.12rem;
}

#news-list .news-empty {
    margin: 0;
}

.news-loading {
    padding: 0.12rem 0.16rem 0.24rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.13rem;
}

/* ===== News Detail Page ===== */
.news-open-page {
    padding-bottom: calc(var(--nav-height) + 0.56rem);
}

.news-open-article {
    margin: 0.12rem 0.24rem 0;
}

.news-open-hero {
    margin: 0;
    border-radius: 0.12rem 0.12rem 0 0;
    overflow: hidden;
    border: 0.02rem solid rgba(126, 92, 53, 0.25);
    border-bottom: none;
}

.news-open-hero img {
    width: 100%;
    height: auto;
    max-height: 2rem;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.news-open-body {
    background: linear-gradient(180deg, #f8e5bf 0%, #ecd7ac 50%, #dfc797 100%);
    padding: 0.1rem 0.1rem 0.32rem;
    border-radius: 0 0 0.12rem 0.12rem;
    border: 0.02rem solid rgba(126, 92, 53, 0.25);
    border-top: none;
}

.news-open-title {
    font-size: 0.2rem;
    font-weight: 900;
    color: #3d2b1f;
    margin-bottom: 0.16rem;
    line-height: 1.4;
}

.news-open-meta {
    font-size: 0.12rem;
    color: rgba(61, 43, 31, 0.6);
    margin: -0.08rem 0 0.12rem;
}

.news-open-content {
    font-size: 0.14rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.news-open-content p {
    margin-bottom: 0.12rem;
}

.news-open-content p:last-child {
    margin-bottom: 0;
}

.news-back-btn {
    position: fixed;
    left: 0;
    bottom: calc(var(--nav-height) + 0.08rem);
    z-index: 101;
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}

.news-back-btn:hover {
    transform: translateX(-0.02rem);
}

.news-back-btn img {
    height: 0.44rem;
    width: auto;
    display: block;
}

/* ===== Profile Page ===== */
.profile-bg {
    background-image: url('../assets/common/bg-blur.jpg');
}

.profile-hero {
    text-align: center;
    padding: 0.24rem 0.16rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.profile-avatar {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 0.03rem solid #fff;
    margin: 0 auto 0.12rem;
    overflow: hidden;
    box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    color: #fff;
    font-size: 0.22rem;
    font-weight: 700;
    margin-bottom: 0.04rem;
}

.profile-id {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.14rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.12rem;
    padding: 0.16rem 0.12rem;
    margin: 0;
    background: transparent;
}

.stat-card {
    position: relative;
    background: transparent;
    padding: 0;
    text-align: center;
}

.stat-card.full {
    grid-column: 1 / -1;
    max-width: 2rem;
    margin: 0 auto;
}

.stat-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.stat-card__text {
    position: absolute;
    left: 12%;
    right: 12%;
    top: calc(305 / 425 * 100%);
    bottom: calc(71 / 425 * 100%);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-card .label,
.stat-card .value {
    font-size: 0.14rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.stat-card .label {
    color: #7a5a42;
    margin-bottom: 0.04rem;
}

.stat-card .value {
    color: #4a2f22;
}

/* ===== Info Page ===== */
.info-page {
    padding-bottom: calc(var(--nav-height) + 0.16rem);
}

.info-section {
    position: relative;
    padding: 0.16rem 0 0.32rem;
    overflow: hidden;
}

.info-section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.info-section-bg::after {
    content: none;
}

.info-section-inner {
    position: relative;
    z-index: 1;
    padding: 0 0.16rem;
}

.info-title {
    text-align: center;
    margin-bottom: 0.16rem;
}

.info-title img {
    height: 0.48rem;
    width: auto;
}

/* World */
.info-section.info-world {
    min-height: calc(100vh - var(--header-height) - var(--nav-height) - 0.16rem);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.info-world .info-section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0.08rem 0.16rem 0.04rem;
}

.info-world .info-title {
    margin-bottom: 0.12rem;
}

.info-world-visual {
    position: relative;
    width: 94%;
    max-width: 4.4rem;
    margin: 0 auto;
    padding-bottom: 0.72rem;
    overflow: visible;
}

.info-world-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.info-world-text {
    position: absolute;
    z-index: 2;
    left: 20%;
    right: -0.2rem;
    bottom: -0.18rem;
    background: url('../images/info/e2.png') no-repeat center / 100% 100%;
    aspect-ratio: 804 / 336;
    padding: 0.22rem 0.28rem 0.16rem 0.2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.info-world-text-inner {
    font-size: 0.12rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.info-world .info-scroll {
    margin-top: auto;
    padding: 0 0 0.06rem;
}

.info-scroll {
    text-align: center;
    padding: 0.4rem 0 0.08rem;
    animation: bounce 2s infinite;
}

.info-scroll img {
    width: 0.36rem;
    height: auto;
    display: inline-block;
}

/* Character */
.char-showcase {
    width: 100%;
    max-width: 3.8rem;
    margin: 0 auto;
}

.char-card {
    width: 100%;
}

.info-section.info-character {
    min-height: calc(100vh - var(--header-height) - var(--nav-height) - 0.16rem);
    padding: 0.24rem 0 0.48rem;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.info-character .info-section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.16rem 0.24rem;
}

.info-character .info-title {
    margin-bottom: 0.24rem;
}

.info-character .info-title img {
    height: 0.56rem;
}

.char-art-wrap {
    position: relative;
    overflow: visible;
}

.char-art {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.char-panel {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
}

.char-panel-bg {
    width: 100%;
    height: auto;
    display: block;
}

.char-chibi {
    position: absolute;
    top: 18%;
    right: 0.1rem;
    width: 0.5rem;
    height: auto;
    z-index: 3;
    pointer-events: none;
    transform: translateY(-100%);
}

.char-panel-body {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 8%;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    min-height: 0;
        overflow: hidden;
}

.char-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    margin-bottom: 0.14rem;
    padding-right: 0.48rem;
    flex-shrink: 0;
}

.char-diamond {
    width: 0.1rem;
    height: auto;
    flex-shrink: 0;
}

.char-name {
    font-size: 0.18rem;
    font-weight: 900;
    color: var(--brown-dark);
    letter-spacing: 0.02rem;
}

.char-stats {
    flex: 1;
    min-height: 0;
        display: flex;
        flex-direction: column;
    font-size: 0.12rem;
    line-height: 1.7;
    color: var(--text-dark);
    padding-right: 0;
}

.char-stats p {
    margin-bottom: 0.02rem;
}

.char-stats p:not(.char-bio) {
    flex-shrink: 0;
}
.char-bio {
    flex: 1;
        min-height: 0;
    margin-top: 0.04rem;
    overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    font-size: 0.11rem;
    line-height: 1.65;
}

.char-thumbs {
    display: flex;
    justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.12rem;
    margin-top: 0.16rem;
    flex-wrap: nowrap;
    align-items: flex-end;
}
.char-thumbs::-webkit-scrollbar {
    display: none;
}
.char-thumb {
    height: 0.72rem;
    width: auto;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    font-size: 0;
}

.char-thumb img {
    height: 0.72rem;
    width: auto;
    display: block;
}

.char-thumb.active {
    transform: none;
}

/* Facility */
.info-section.info-facility {
    min-height: calc(100vh - var(--header-height) - var(--nav-height) - 0.16rem);
    padding: 0.24rem 0 0.48rem;
    display: flex;
    flex-direction: column;
}

.info-facility .info-section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.16rem 0.24rem;
}

.info-facility .info-title {
    margin-bottom: 0.24rem;
}

.info-facility .info-title img {
    height: 0.56rem;
}

.facility-selector {
    position: relative;
    width: 3.5rem;
    max-width: 100%;
    margin: 0 auto 0.08rem;
}

.facility-diamonds {
    display: grid;
    grid-template-columns: repeat(5, 0.7rem);
    grid-template-rows: repeat(3, auto);
    justify-content: center;
    justify-items: center;
    align-items: center;
}

/* 1-2-3 布局，5列递进使左右斜边成直线 */
.facility-diamond:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.facility-diamond:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    margin-top: -0.38rem;
}

.facility-diamond:nth-child(3) {
    grid-column: 4;
    grid-row: 2;
    margin-top: -0.38rem;
}

.facility-diamond:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    margin-top: -0.38rem;
}

.facility-diamond:nth-child(5) {
    grid-column: 3;
    grid-row: 3;
    margin-top: -0.38rem;
}

.facility-diamond:nth-child(6) {
    grid-column: 5;
    grid-row: 3;
    margin-top: -0.38rem;
}

.facility-diamond {
    position: relative;
    width: 0.96rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, opacity 0.2s;
    z-index: 1;
    transform-origin: center center;
}

.facility-diamond img {
    width: 100%;
    height: auto;
    display: block;
}

.facility-diamond:not(.active) {
    opacity: 0.82;
}

.facility-diamond.active {
    z-index: 2;
    transform: scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 0 0.1rem rgba(255, 200, 50, 0.95)) drop-shadow(0 0 0.03rem rgba(255, 160, 0, 0.7));
}

.facility-detail {
    position: relative;
    max-width: 3.8rem;
    margin: 0.16rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.facility-image-wrap {
    position: relative;
    width: 44%;
    margin: 0 auto;
    z-index: 3;
    margin-bottom: -0.18rem;
}

.facility-frame-bg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.facility-image-inner {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 10%;
    bottom: 10%;
    z-index: 3;
    overflow: hidden;
    border-radius: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.facility-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 1;
}

.facility-text {
    position: relative;
    z-index: 2;
    width: 100%;
    background: url('../images/info/e18.png') no-repeat center / 100% 100%;
    padding: 0.36rem 0.24rem 0.24rem;
    min-height: 1.1rem;
    box-sizing: border-box;
}

.facility-text-inner {
    font-size: 0.14rem;
    line-height: 1.85;
    color: var(--text-dark);
    text-align: center;
}

/* Media */
.info-section.info-media {
    min-height: calc(100vh - var(--header-height) - var(--nav-height) - 0.16rem);
    padding: 0.24rem 0 0.48rem;
    display: flex;
    flex-direction: column;
}

.info-media .info-section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.16rem 0.24rem;
}

.info-media .info-title {
    margin-bottom: 0.24rem;
}

.info-media .info-title img {
    height: 0.56rem;
}

.media-frame {
    position: relative;
    width: 100%;
    max-width: 4rem;
    margin: 0 auto 0.16rem;
}

.media-frame-bg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.media-frame-inner {
    position: absolute;
    left: calc(27 / 1014 * 100%);
        right: calc(22 / 1014 * 100%);
        top: calc(59 / 670 * 100%);
        bottom: calc(25 / 670 * 100%);
        z-index: 1;
    overflow: hidden;
}

.media-content {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.media-poster,
.media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.media-video:not(.hidden) {
    cursor: pointer;
}

.media-play {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.media-play img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.media-tabs {
    display: flex;
    justify-content: center;
    gap: 0.12rem;
    width: 100%;
    max-width: 4rem;
    margin: 0 auto;
    overflow: visible;
}

.media-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 367 / 77;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-tab img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-tab span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.15rem;
    font-weight: 700;
    font-family: inherit;
    text-shadow: 0 0.01rem 0.03rem rgba(0, 0, 0, 0.4);
}

.media-tab.active {
    opacity: 1;
    transform: scale(1.04);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0.08rem);
    }
}

/* ===== Welfare Page ===== */
.welfare-bg {
    background-image: url('../assets/common/bg-recharge.jpg');
}

.welfare-tab-bar {
    padding: 0.06rem 0.12rem 0.1rem;
    margin-bottom: 0.04rem;
}

.welfare-tab-bar .tab-btn {
    position: relative;
    border: none;
    background: url('../assets/welfare/f11.png') no-repeat center / 100% 100%;
    color: #d4c4a8;
    font-size: 0.15rem;
    padding: 0.1rem 0.12rem;
    min-height: 0.44rem;
}

.welfare-tab-bar .tab-btn:first-child,
.welfare-tab-bar .tab-btn:last-child {
    border-radius: 0;
}

.welfare-tab-bar .tab-btn.active {
    background: url('../assets/welfare/f10.png') no-repeat center / 100% 100%;
    color: #fff;
    box-shadow: none;
    opacity: 1;
}

.welfare-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.08rem;
    padding: 0.08rem 0.16rem;
}

.welfare-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
}

.welfare-title-img {
    height: 0.4rem;
    width: auto;
    display: block;
}

.welfare-timer {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.06rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.04rem 0.12rem;
    border-radius: 0.2rem;
    color: #fff;
    font-size: 0.12rem;
}

.checkin-list {
    padding: 0 0.12rem;
    display: flex;
    flex-direction: column;
    gap: 0.03rem;
}

.checkin-item {
    position: relative;
    display: grid;
    grid-template-columns: 0.6rem minmax(0, 1fr) 0.56rem 0.84rem;
    align-items: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border-radius: 0.12rem;
    overflow: hidden;
    min-height: 0.8rem;
}

.checkin-item.locked {
    opacity: 0.7;
}

.checkin-day {
    grid-column: 1;
    width: 0.6rem;
    background: transparent;
    color: transparent;
    text-align: center;
    padding: 0.12rem 0.04rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkin-day .day-label {
    font-size: 0.1rem;
    font-weight: 700;
}

.checkin-day .day-num {
    font-size: 0.28rem;
    font-weight: 900;
    line-height: 1;
}

.checkin-rewards {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 0.04rem;
    padding: 0.04rem 0.02rem;
    min-width: 0;
    overflow: hidden;
}

.reward-icon {
    width: 0.44rem;
    height: 0.44rem;
    background: #fff;
    border-radius: 0.08rem;
    border: 0.02rem solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.2rem;
}

.reward-icon .count {
    position: absolute;
    bottom: -0.02rem;
    right: -0.02rem;
    background: var(--brown-dark);
    color: #fff;
    font-size: 0.09rem;
    padding: 0.01rem 0.04rem;
    border-radius: 0.04rem;
}

.checkin-divider {
    display: none;
}

.checkin-action {
    grid-column: 4;
    display: flex;
    justify-content: flex-end;
    padding: 0.04rem 0.08rem 0.04rem 0;
}

.checkin-btn {
    padding: 0.08rem 0.16rem;
    border: none;
    border-radius: 0.08rem;
    font-size: 0.13rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    min-width: 0.64rem;
}

.checkin-btn.primary {
    background: linear-gradient(180deg, #4a90d9 0%, #2c5aa0 100%);
    color: #fff;
}

.checkin-btn.gold {
    background: linear-gradient(180deg, #f5d76e 0%, #d4af37 100%);
    color: var(--text-dark);
}

.checkin-btn.disabled {
    background: #aaa;
    color: #fff;
    cursor: not-allowed;
}

.checkin-item-today {
    box-shadow: none;
}

.checkin-reward-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 0.52rem;
    min-width: 0;
    background: none;
    border: none;
    width: auto;
    height: auto;
}

.checkin-reward-slot__frame {
    position: relative;
    width: 0.52rem;
    height: 0.52rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.checkin-reward-slot__frame > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.checkin-reward-slot__icon {
    position: absolute;
    top: 0.05rem;
    left: 0.05rem;
    right: 0.05rem;
    bottom: 0.14rem;
    width: calc(100% - 0.1rem);
    height: calc(100% - 0.19rem);
    object-fit: contain;
    pointer-events: none;
}

.checkin-reward-slot .count,
.checkin-bonus span {
    color: #fff;
    font-size: 0.11rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    -webkit-text-stroke: 0.01rem #000;
    paint-order: stroke fill;
    text-shadow:
        -0.01rem 0 0 #000,
        0.01rem 0 0 #000,
        0 -0.01rem 0 #000,
        0 0.01rem 0 #000;
}

.checkin-reward-slot .count {
    position: absolute;
    left: 50%;
    bottom: 0.02rem;
    transform: translateX(-50%);
    z-index: 1;
    padding: 0;
    border-radius: 0;
    background: none;
}

.checkin-bonus {
    grid-column: 3;
    position: relative;
    right: auto;
    top: auto;
    min-width: 0;
    padding-top: 0.28rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.checkin-bonus span {
    position: relative;
    z-index: 1;
}

.checkin-btn.tile {
    width: 0.84rem;
    height: 0.34rem;
    min-width: 0.84rem;
    border: none;
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    font-size: 0.12rem;
    font-weight: 700;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 0;
}

.checkin-btn.tile.primary {
    background: url('../assets/welfare/f20.png') center / 100% 100% no-repeat;
}

.checkin-btn.tile.gold {
    background: url('../assets/welfare/f21.png') center / 100% 100% no-repeat;
}

.checkin-btn.tile.claimed,
.checkin-btn.tile.disabled {
    background: url('../assets/welfare/f22.png') center / 100% 100% no-repeat;
}

/* ===== Notice / Info dialogs (rem, scales with page) ===== */
.notice-dialog,
.info-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-dialog {
    z-index: 9999;
}

.info-dialog {
    z-index: 9998;
}

.notice-dialog[hidden],
.info-dialog[hidden] {
    display: none !important;
}

.notice-dialog__mask,
.info-dialog__mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 24, .38);
    backdrop-filter: blur(0.02rem);
}

.notice-dialog__panel {
    position: relative;
    width: min(86vw, 3.4rem);
    overflow: hidden;
    transform-origin: center;
}

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

.notice-dialog__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.notice-dialog__header {
    position: relative;
    flex-shrink: 0;
    height: 17%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14%;
    box-sizing: border-box;
}

.notice-dialog__title {
    font-size: 0.16rem;
    font-weight: 800;
    letter-spacing: 0.005rem;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, .35);
}

.notice-dialog__close,
.info-dialog__close {
    appearance: none;
    border: 0;
    background: transparent;
    line-height: 0;
    padding: 0;
    cursor: pointer;
}

.notice-dialog__content {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10%;
    padding: 0.04rem 0;
    font-size: 0.13rem;
    line-height: 1.65;
    color: #5a3e2b;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

.notice-dialog__actions {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 0 0 8%;
    box-sizing: border-box;
}

.notice-dialog__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52%;
    min-height: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.notice-dialog__btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.notice-dialog__btn span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.15rem;
    font-weight: 700;
    letter-spacing: 0.02rem;
}

.notice-dialog__btn:active {
    transform: scale(0.98);
}

.notice-dialog.is-error .notice-dialog__content {
    color: #c0392b;
}

.notice-dialog.is-success .notice-dialog__content {
    color: #2e7d32;
}

.info-dialog__panel {
    position: relative;
    width: min(88vw, 3.8rem);
    min-height: 3.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.3rem 0.3rem;
    background: url('../assets/profile/f32.png') center / 100% 100% no-repeat;
    box-shadow: 0 0.18rem 0.48rem rgba(0, 0, 0, .52), inset 0 0 0 0.01rem rgba(255, 255, 255, .08);
    border-radius: 0.2rem;
    transform-origin: center;
}

.info-dialog--checkin .info-dialog__panel {
    width: calc(100vw - 0.24rem);
    max-width: calc(100vw - 0.24rem);
    height: min(66vh, calc((100vh - var(--header-height) - var(--nav-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0)) * 0.66));
    min-height: 0;
    padding: 0.34rem 0.26rem 0.24rem;
}

.info-dialog__close {
    position: absolute;
    right: 0.12rem;
    top: 0.12rem;
    font-size: 0.28rem;
    padding: 0 0.04rem;
    z-index: 1;
    color: rgba(90, 62, 43, .88);
}

.info-dialog__title {
    font-size: 0.18rem;
    font-weight: 800;
    letter-spacing: 0.005rem;
    text-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, .35);
    margin-bottom: 0.16rem;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.info-dialog__content {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    font-size: 0.14rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, .92);
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
    padding: 0 0.06rem 0.02rem;
    box-sizing: border-box;
}

.info-dialog__content::-webkit-scrollbar {
    width: 0.06rem;
}

.info-dialog__content::-webkit-scrollbar-thumb {
    background: rgba(90, 62, 43, .28);
    border-radius: 999px;
}

.welfare-task-empty,
.welfare-task-loading {
    padding: 0.18rem 0.1rem;
    color: #fff;
    text-align: center;
    font-size: 0.12rem;
    opacity: .85;
}

/* ===== Welfare task dialog ===== */
.welfare-task-dialog {
    position: fixed;
    top: var(--header-height);
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0));
        left: 0;
        right: 0;
    z-index: 10020;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.5rem;
        box-sizing: border-box;
}

.welfare-task-dialog[hidden] {
    display: none !important;
}

.welfare-task-dialog__mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 20, .25);
        backdrop-filter: blur(0.02rem);
}

.welfare-task-dialog__panel {
    position: relative;
    width: min(94vw, 4.6rem);
    height: 85%;
    max-width: calc(100vw - 0.16rem);
    max-height: 85%;
    padding: clamp(0.1rem, 1.8vw, 0.16rem) clamp(0.1rem, 1.6vw, 0.14rem) clamp(0.08rem, 1.2vw, 0.1rem);
    overflow: hidden;
    background: url('../assets/welfare/f3.png') center / 100% 100% no-repeat;
    box-shadow: 0 0.24rem 0.56rem rgba(0, 0, 0, .58);
    display: flex;
    flex-direction: column;
}

.welfare-task-dialog__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .06);
}

.welfare-task-dialog__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0 clamp(0.24rem, 4vw, 0.34rem) clamp(0.06rem, 1.2vw, 0.08rem) 0.04rem;
}

.welfare-task-dialog__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.06rem, 1.4vw, 0.08rem);
    min-height: 0.34rem;
    width: 100%;
}

.welfare-task-dialog__titleIcon {
    width: clamp(0.28rem, 5vw, 0.34rem);
    height: clamp(0.28rem, 5vw, 0.34rem);
    flex: 0 0 clamp(0.28rem, 5vw, 0.34rem);
    background: url('../assets/welfare/f31.png') center / 100% 100% no-repeat;
}

.welfare-task-dialog__titleText {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.welfare-task-dialog__titleMain {
    font-size: clamp(0.15rem, 2.6vw, 0.18rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.004rem;
    text-align: center;
}

.welfare-task-dialog__subtitle {
    display: none;
}

.welfare-task-dialog__close {
    position: absolute;
    right: 0.04rem;
    top: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .95);
    width: clamp(0.26rem, 4vw, 0.3rem);
    height: clamp(0.26rem, 4vw, 0.3rem);
    border-radius: 999px;
    font-size: clamp(0.22rem, 3.6vw, 0.24rem);
    line-height: 1;
    cursor: pointer;
}

.welfare-task-dialog__scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 clamp(0.02rem, 0.8vw, 0.04rem) 0;
    margin-bottom: -0.02rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.welfare-task-dialog__scroll::after {
    content: '';
    position: sticky;
    bottom: 0;
    display: block;
    height: clamp(0.56rem, 10vw, 0.74rem);
    margin-top: calc(-1 * clamp(0.56rem, 10vw, 0.74rem));
    background: transparent;
    pointer-events: none;
}

.welfare-task-dialog__scroll::-webkit-scrollbar {
    width: 0.06rem;
}

.welfare-task-dialog__scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
}

.welfare-task-dialog__scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 216, 125, .9), rgba(255, 160, 62, .9));
    border-radius: 999px;
}

.welfare-task-item {
    display: grid;
    grid-template-columns: minmax(0.4rem, 12vw) minmax(0, 1fr) clamp(0.58rem, 18vw, 0.72rem);
    align-items: center;
    gap: clamp(0.04rem, 1vw, 0.06rem);
    min-height: clamp(0.68rem, 11vw, 0.76rem);
    padding: clamp(0.05rem, 1vw, 0.06rem) clamp(0.07rem, 1.4vw, 0.09rem) clamp(0.05rem, 1vw, 0.06rem) clamp(0.06rem, 1.2vw, 0.07rem);
    margin-bottom: clamp(0.04rem, 0.9vw, 0.05rem);
    background: url('../assets/welfare/f4.png') center / 100% 100% no-repeat;
}

.welfare-task-item.is-claimed {
    background-image: url('../assets/welfare/f5.png');
}

.welfare-task-item__rank {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding-top: 0;
    background: transparent;
}

.welfare-task-item__rankReward {
    position: relative;
    width: clamp(0.32rem, 6vw, 0.4rem);
    height: clamp(0.32rem, 6vw, 0.4rem);
    flex-shrink: 0;
}

.welfare-task-item__rankReward img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.welfare-task-item__rankReward-value {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: clamp(0.09rem, 2.2vw, 0.11rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0.01rem 0.02rem rgba(0, 0, 0, .55);
    transform: translate(10%, 10%);
    white-space: nowrap;
}

.welfare-task-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.04rem;
    padding-top: 0;
}

.welfare-task-item__name {
    font-size: clamp(0.1rem, 2.8vw, 0.12rem);
    font-weight: 800;
    line-height: 1.08;
}

.welfare-task-item__desc {
    font-size: clamp(0.07rem, 2vw, 0.1rem);
    line-height: 1.12;
    color: rgba(255, 255, 255, .82);
    max-width: 100%;
}

.welfare-task-item__status-desc {
    margin-top: 0.02rem;
    font-size: clamp(0.09rem, 2.6vw, 0.12rem);
    line-height: 1.2;
}

.welfare-task-item__status-desc.is-pending {
    color: #ff4d4f;
}

.welfare-task-item__status-desc.is-done {
    color: #52c41a;
}

.welfare-task-item__check {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: clamp(0.58rem, 18vw, 0.72rem);
}

.welfare-task-item__check img {
    width: clamp(0.22rem, 4vw, 0.28rem);
    height: clamp(0.22rem, 4vw, 0.28rem);
    object-fit: contain;
    display: block;
}

.welfare-task-item__footer,
.welfare-task-item__reward {
    display: none;
}

.welfare-task-item__btn {
    width: clamp(0.58rem, 18vw, 0.72rem);
    height: clamp(0.24rem, 4.5vw, 0.26rem);
    border: 0;
    padding: 0;
    background: url('../assets/welfare/f20.png') center / 100% 100% no-repeat;
    color: #fff;
    font-size: clamp(0.09rem, 2vw, 0.1rem);
    font-weight: 900;
    cursor: pointer;
    text-shadow: 0 0.01rem 0.02rem rgba(0, 0, 0, .35);
    justify-self: end;
}

.welfare-task-item__btn.is-done {
    opacity: .95;
}

.welfare-task-item__btn.is-lock {
    opacity: .55;
    filter: grayscale(.12);
}

.welfare-task-dialog__footer {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: clamp(0.08rem, 1.5vw, 0.1rem) clamp(0.12rem, 2vw, 0.18rem) clamp(0.1rem, 1.8vw, 0.12rem);
    color: #2c2205;
    font-size: clamp(0.09rem, 2vw, 0.1rem);
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.08rem, 1.6vw, 0.12rem);
    min-height: clamp(0.42rem, 8vw, 0.48rem);
    text-align: center;
    background: url('../assets/welfare/f33.png') center / 100% 100% no-repeat;
    box-shadow: inset 0 0.01rem 0 rgba(255, 255, 255, .35);
}

.welfare-task-dialog__footer::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.02rem;
    width: clamp(0.64rem, 12vw, 0.82rem);
    height: clamp(0.64rem, 12vw, 0.82rem);
    pointer-events: none;
    background: url('../assets/welfare/f34.png') right bottom / 100% 100% no-repeat;
}

.welfare-task-dialog__footer span {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    display: block;
}

.welfare-task-dialog__footer strong {
    color: #5b4500;
    font-weight: 900;
}

@media (max-width: 480px) {
    .welfare-task-dialog__panel {
        width: calc(100vw - 0.12rem);
        height: 85%;
            max-height: 85%;
        padding: 0.1rem 0.08rem 0.08rem;
        border-radius: 0.16rem;
    }

    .welfare-task-dialog__header {
        padding-right: 0.28rem;
    }

    .welfare-task-dialog__titleIcon {
        width: 0.28rem;
        height: 0.28rem;
        flex-basis: 0.28rem;
    }

    .welfare-task-dialog__titleMain {
        font-size: 0.15rem;
    }

    .welfare-task-item {
        grid-template-columns: minmax(0.36rem, 10vw) minmax(0, 1fr) clamp(0.56rem, 20vw, 0.64rem);
        gap: 0.04rem;
        min-height: 0.64rem;
    }

    .welfare-task-item__rankReward {
        width: 0.34rem;
        height: 0.34rem;
    }

    .welfare-task-item__rankReward-value {
        font-size: 0.09rem;
    }

    .welfare-task-item__btn {
        width: clamp(0.56rem, 20vw, 0.64rem);
    }

    .welfare-task-dialog__footer {
        padding: 0.08rem 0.1rem 0.09rem;
    }

    .welfare-task-dialog__footer::after {
        width: 0.56rem;
        height: 0.56rem;
    }
}

/* Points Mall：福利_积分商城.jpg */
.points-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.08rem;
    padding: 0.04rem 0.1rem 0.1rem;
}

.mall-timer {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 1.8rem;
}

.mall-timer img {
    width: 100%;
    height: auto;
    display: block;
}

.mall-timer span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.28rem;
    color: #fff;
    font-size: 0.11rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.points-tools {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    flex-shrink: 0;
}

.mall-info-btn {
    border: none;
    background: transparent;
    padding: 0;
    width: 0.28rem;
    height: 0.28rem;
    cursor: pointer;
    flex-shrink: 0;
}

.mall-info-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.points-balance {
    position: relative;
    width: 1.18rem;
    height: auto;
    flex-shrink: 0;
}

.points-balance-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.points-value {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.14rem;
    font-weight: 900;
    line-height: 1;
}

.points-add-btn {
    position: absolute;
    top: 50%;
    right: 0.02rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    width: 0.24rem;
    height: 0.24rem;
    cursor: pointer;
}

.points-add-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#panel-mall.has-mall-footer {
    padding-bottom: 0.72rem;
}

.mall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.08rem;
    padding: 0 0.1rem 0.16rem;
}

.mall-item {
    position: relative;
    border: 0.02rem solid transparent;
    border-radius: 0.12rem;
    overflow: hidden;
    padding: 0;
    background: transparent;
    font: inherit;
    text-align: inherit;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.mall-item.selected {
    border-color: #ff8c00;
    box-shadow: 0 0 0.12rem rgba(255, 140, 0, 0.55);
}

.mall-item.sold-out {
    opacity: 0.55;
    cursor: not-allowed;
}

.mall-item-check {
    position: absolute;
    top: 0.04rem;
    right: 0.04rem;
    z-index: 3;
    width: 0.22rem;
    height: 0.22rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.mall-item-check img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mall-item.selected .mall-item-check {
    opacity: 1;
    transform: scale(1);
}

.mall-item-bg {
    width: 100%;
    height: auto;
    display: block;
}

.mall-item-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6% 8% 24%;
    box-sizing: border-box;
}

.mall-discount {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    z-index: 2;
}

.mall-discount img {
    width: 100%;
    height: auto;
    display: block;
}

.mall-discount em {
    position: absolute;
    top: 18%;
    left: 8%;
    color: #fff;
    font-style: normal;
    font-size: 0.1rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-12deg);
}

.mall-item-visual {
    position: relative;
    flex: 1;
    width: 66.67%;
    max-width: 100%;
    min-height: 0;
    margin-top: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.03rem;
}

.mall-item-frame-wrap {
    position: relative;
    width: 100%;
}

.mall-item-frame {
    width: 100%;
    height: auto;
    display: block;
}

.mall-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58%;
    height: auto;
    transform: translate(-50%, -54%);
    object-fit: contain;
}

.mall-item-count {
    position: absolute;
    right: 8%;
    bottom: 8%;
    color: #fff;
    font-size: 0.11rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0.01rem 0.02rem rgba(0, 0, 0, 0.45);
}

.mall-item-limit {
    margin-top: 0.03rem;
    color: #8b7355;
    font-size: 0.1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.mall-item-price {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
}

.mall-item-coin {
    width: 0.18rem;
    height: auto;
    flex-shrink: 0;
}

.mall-item-price span {
    color: #c0392b;
    font-size: 0.14rem;
    font-weight: 900;
    line-height: 1;
}

.mall-footer {
    position: fixed;
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    padding: 0.08rem 0.12rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
    z-index: 50;
    border-top: 0.01rem solid rgba(212, 175, 55, 0.3);
}

.mall-footer[hidden] {
    display: none;
}

.mall-footer-info {
    flex: 1;
    min-width: 0;
}

.mall-footer-product {
    color: #fff;
    font-size: 0.11rem;
    margin-bottom: 0.02rem;
    display: flex;
    align-items: center;
    gap: 0.04rem;
    flex-wrap: wrap;
}

.mall-footer-product .mall-item-icon-sm {
    width: 0.18rem;
    height: auto;
}

.mall-footer-price {
    color: var(--gold-light);
    font-size: 0.12rem;
    font-weight: 700;
}

.mall-buy-btn {
    background: url('../assets/welfare/f21.png') no-repeat center / 100% 100%;
    border: none;
    color: #fff;
    font-size: 0.15rem;
    font-weight: 700;
    padding: 0.08rem 0.28rem;
    cursor: pointer;
    font-family: inherit;
    min-width: 0.96rem;
    height: 0.4rem;
    flex-shrink: 0;
}

.mall-buy-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

/* ===== Gift Code Page ===== */
.gift-bg {
    background-image: url('../assets/gift/c8.png');
    background-position: center top;
    background-size: cover;
}

.gift-page {
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 0.72rem);
}

.gift-page .page-content-inner {
    position: relative;
    padding-bottom: 0.16rem;
}

.gift-visual {
    position: relative;
    text-align: center;
    padding: 0.48rem 0.16rem 0;
    min-height: 3.2rem;
    overflow: visible;
}

.gift-title-img {
    position: relative;
    width: min(66%, 2.6rem);
    height: auto;
    margin: 0 auto 0.1rem;
    display: block;
    z-index: 20;
    opacity: 1;
    visibility: visible;
    filter: drop-shadow(0 0.02rem 0.08rem rgba(0, 0, 0, 0.45));
}

.gift-visual .gift-title-img {
    display: block !important;
}

.gift-character-wrap {
    position: relative;
    width: min(88%, 3.8rem);
    margin: 0 auto;
}

.gift-character {
    width: 100%;
    height: auto;
    margin: 0;
    display: block;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.gift-promo {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 0.24rem);
    max-width: 7.2rem;
    margin: 0;
    z-index: 3;
}

.gift-promo-bg {
    width: 100%;
    height: auto;
    display: block;
}

.gift-promo-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.08rem;
    padding: 0 0.9rem 0 0.2rem;
    box-sizing: border-box;
    z-index: 10;
}

.gift-promo-text-img {
    height: 0.42rem;
    width: auto;
    max-width: calc(100% - 0.08rem);
    object-fit: contain;
    margin-left: -0.06rem;
}

.gift-promo-text-fallback {
    font-size: 0.13rem;
    line-height: 1.4;
    color: #fff;
    text-align: left;
    padding: 0;
    filter: none;
    background: none;
    -webkit-text-fill-color: #fff;
}

.gift-promo-btn {
    position: absolute;
    top: 65%;
    right: calc(-1 * max(0px, (100vw - 100%) / 2 - 0.16rem));
    transform: translateY(-50%);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 1.08rem;
    height: 0.4rem;
    z-index: 6;
}

.gift-promo-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.gift-promo-btn span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.13rem;
    font-weight: 700;
    padding: 0 0.12rem;
}

.gift-form {
    position: relative;
    z-index: 1;
    margin: -1.2rem 0.12rem 0.24rem;
    padding: 0;
}

.gift-form-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.gift-form-deco {
    position: absolute;
    top: 9%;
    right: 0;
    width: 58%;
    height: 19%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 25%;
    box-sizing: border-box;
    z-index: 4;
    pointer-events: none;
}

.gift-chibi {
    width: auto;
    height: 92%;
    max-width: 100%;
    display: block;
    object-fit: contain;
    flex-shrink: 1;
}

.gift-form-body {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 33%;
    bottom: 3%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.1rem 0.1rem 0.08rem;
    box-sizing: border-box;
    overflow: visible;
    z-index: 2;
}

.gift-form .form-group {
    margin-bottom: 0.08rem;
}

.gift-form .form-group label {
    color: #5a3e2b;
    font-size: 0.13rem;
        margin-bottom: 0.04rem;
}

.gift-form .form-group input {
    border: 0.02rem solid #d8c9a8;
    background: #f8f1e4;
    border-radius: 0.2rem;
    padding: 0.09rem 0.14rem;
    color: #5a3e2b;
}

.gift-form .form-group .form-value {
    border: 0.02rem solid #d8c9a8;
    background: #f8f1e4;
    border-radius: 0.2rem;
    padding: 0.09rem 0.14rem;
    color: #5a3e2b;
    font-size: 0.13rem;
    font-weight: 700;
    line-height: 1.2;
}

.gift-form .form-group input::placeholder {
    color: #5a3e2b;
    opacity: 1;
}

.gift-form .form-hint {
    color: #5a3e2b;
    font-size: 0.1rem;
    margin-bottom: 0.02rem;
    line-height: 1.25;
    text-align: center;
}

.gift-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52%;
    margin: 0 auto;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    min-height: 0.4rem;
    font-family: inherit;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.gift-submit-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.gift-submit-btn span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.18rem;
    font-weight: 700;
    letter-spacing: 0.02rem;
}

.gift-submit-btn:hover {
    transform: scale(1.04);
}

.form-group {
    margin-bottom: 0.16rem;
}

.form-group label {
    display: block;
    font-size: 0.14rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.06rem;
}

.form-group input {
    width: 100%;
    padding: 0.12rem 0.16rem;
    border: 0.02rem solid var(--cream-dark);
    border-radius: 0.24rem;
    background: #fff;
    font-size: 0.14rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: #bbb;
}

.form-hint {
    font-size: 0.11rem;
    color: #999;
    margin-bottom: 0.16rem;
}

.submit-btn {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 0.12rem;
    background: linear-gradient(180deg, #8b2942 0%, #5c1a2a 100%);
    border: 0.02rem solid var(--gold);
    border-radius: 0.24rem;
    color: #fff;
    font-size: 0.16rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* ===== Tab Panels ===== */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== Side Menu ===== */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 3rem;
    height: 100%;
    background: linear-gradient(180deg, #3a2a1e 0%, #1e140c 100%);
    z-index: 200;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    padding: 0.56rem 0 0;
    box-shadow: -0.04rem 0 0.24rem rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-left: 0.01rem solid rgba(212, 175, 55, 0.25);
}

.side-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.side-menu:not(.open) {
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
}

#app-menu {
    position: absolute;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    overflow: hidden;
}

#app-menu .side-menu.open,
#app-menu .side-menu-overlay.open {
    pointer-events: auto;
}

.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.side-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-profile {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.16rem 0.2rem;
    text-decoration: none;
    border-bottom: 0.01rem solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.menu-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-profile-avatar {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    border: 0.02rem solid var(--gold);
    object-fit: cover;
}

.menu-profile-info {
    flex: 1;
}

.menu-profile-name {
    color: #fff;
    font-size: 0.16rem;
    font-weight: 700;
}

.menu-profile-hint {
    color: var(--gold-light);
    font-size: 0.12rem;
    margin-top: 0.02rem;
}

.menu-nav {
    flex: 1;
    padding: 0.08rem 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.14rem 0.2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.15rem;
    border-bottom: 0.01rem solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
}

.menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
}

.menu-icon {
    width: 0.24rem;
    text-align: center;
    font-size: 0.18rem;
    flex-shrink: 0;
}

.menu-chevron {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.18rem;
}

/* Language Picker */
.lang-picker-item {
    display: flex !important;
    align-items: center;
    gap: 0.12rem;
    width: 100%;
    padding: 0.14rem 0.2rem !important;
    color: #fff;
    text-decoration: none;
    border-bottom: 0.01rem solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
    background: transparent !important;
}

.lang-picker-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
}

.lang-picker-item .lang-select {
    flex: 1;
    min-width: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    color: inherit;
    font-size: 0.15rem;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    outline: none;
    line-height: 1.2;
}

.lang-picker-item .lang-select option {
    background: var(--brown-dark);
    color: #fff;
}

.lang-picker-item .menu-icon,
.lang-picker-item .menu-chevron {
    flex-shrink: 0;
}

.lang-select {
    width: 100%;
    padding: 0.12rem 0.16rem;
    background: rgba(0, 0, 0, 0.3);
    border: 0.01rem solid rgba(212, 175, 55, 0.3);
    border-radius: 0.06rem;
    color: #fff;
    font-size: 0.14rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.08rem center;
    background-size: 0.2rem;
    padding-right: 0.36rem;
}

.lang-select:hover {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.5);
}

.lang-select:focus {
    outline: none;
    border-color: var(--gold-light);
    background-color: rgba(0, 0, 0, 0.5);
}

.lang-select option {
    background: var(--brown-dark);
    color: #fff;
    padding: 0.08rem;
}

/* Section title text fallback for non-zh-TW */
.section-title-text {
    font-size: 0.2rem;
    font-weight: 900;
    text-align: center;
    padding: 0.16rem 0 0.12rem;
    background: linear-gradient(180deg, #ff8c00 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0.01rem 0.01rem 0 #8b0000);
}

.info-title-text {
    font-size: 0.36rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.16rem;
    background: linear-gradient(180deg, #ff8c00 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0.02rem 0.02rem 0 #8b4513);
}

.gift-title-text {
    font-size: 0.32rem;
    font-weight: 900;
    color: #ff8c00;
    text-shadow: 0.02rem 0.02rem 0 #fff, -0.01rem -0.01rem 0 #fff, 0.03rem 0.03rem 0 #8b4513;
    letter-spacing: 0.04rem;
    text-align: center;
}

/* ===== Utility ===== */
.hidden {
    display: none !important;
}

.text-gold {
    color: var(--gold-light);
}

/* ===== Responsive: rem + vw 流体缩放（480px 设计稿；桌面 ≥961px 整体放大，封顶 150px root） ===== */
@media (orientation: portrait) and (max-width: 960px) {
    html {
        font-size: 26.04vw;
    }

    body {
        touch-action: manipulation;
    }

    .pc-only,
    .pc-inline-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}

/* 手机/平板横屏：限制根字号，避免导航栏占满视口高度 */
@media (orientation: landscape) and (max-width: 960px) {
    html {
        font-size: min(11.85vw, 100px);
    }
}

/* 桌面宽屏：整体 rem 流体缩放，背景/顶栏/内容/底栏统一随视口放大 */
@media (min-width: 961px) {
    html {
        font-size: min(20.833vw, 150px);
    }

    body {
        background: var(--brown-dark);
    }

    .app {
        width: 100%;
        max-width: none;
        margin: 0;
        background: var(--brown-dark);
    }

    .page-bg {
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
    }

    .header,
    .bottom-nav,
    .recharge-footer,
    .mall-footer {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
    }

    .header::before {
        background-size: 100% 100%;
        background-position: center top;
    }

    .side-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 3rem;
        height: 100%;
    }

    .side-menu-overlay {
        position: fixed;
        inset: 0;
    }

    .login-overlay {
        position: fixed;
        top: var(--header-height);
        bottom: var(--nav-height);
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
    }

    .login-page .page-content {
        overflow: hidden;
    }

    .login-page.page-content,
    .profile-page.page-content,
    .gift-page.page-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .login-page .page-content-inner,
    .profile-page .page-content-inner,
    .gift-page .page-content-inner {
        width: 50.667%;
        max-width: 50.667vw;
        margin-left: auto;
        margin-right: auto;
    }

    .gift-page .gift-form {
        width: 80.263%;
        max-width: 40.667vw;
        margin: -1.2rem auto 0.16rem;
    }

    .gift-page .gift-promo-btn {
        right: calc(-1 * max(0px, (50.667vw - 100%) / 2 - 0.16rem));
    }

    .recharge-page.page-content,
    .welfare-page.page-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .recharge-page .recharge-body,
    .welfare-page .welfare-body {
        width: 50.667%;
        max-width: 50.667vw;
        margin-left: auto;
        margin-right: auto;
    }

    .recharge-tab-bar .tab-btn {
        background: url('../assets/common/f11_pc.png') no-repeat center / 100% 100%;
        opacity: 1;
    }

    .recharge-tab-bar .tab-btn.active {
        background: url('../assets/common/f10_pc.png') no-repeat center / 100% 100%;
    }

    .welfare-tab-bar .tab-btn {
        background: url('../assets/common/f11_pc.png') no-repeat center / 100% 100%;
        opacity: 1;
    }

    .welfare-tab-bar .tab-btn.active {
        background: url('../assets/common/f10_pc.png') no-repeat center / 100% 100%;
    }

                /* 七日签到桌面：标题/倒计时/列表同宽缩窄，列表锁定背景图宽高比（1019×222） */
                #panel-checkin .welfare-header,
                .checkin-list {
                    width: min(86%, 4.2rem);
                    margin-inline: auto;
                    padding-inline: 0;
                }
        
                #panel-checkin .welfare-header {
                    padding-block: 0.08rem;
                }
        
                .checkin-item {
                    aspect-ratio: 1019 / 222;
                    min-height: unset;
                    grid-template-columns: 17.2% 44.8% 7.5% 30.5%;
                    grid-template-areas: "day rewards score action";
                }
        
                .checkin-day {
                    grid-area: day;
                }
        
                .checkin-rewards {
                    grid-area: rewards;
                    justify-content: center;
                    padding-left: 0.04rem;
                    padding-right: 0.04rem;
                }
        
                .checkin-bonus {
                    grid-area: score;
                    grid-column: unset;
                    position: relative;
                    left: 0.10rem;
                    top: auto;
                    transform: none;
                    width: 100%;
                    max-width: none;
                    padding-top: 0.3rem;
                    align-self: center;
                    justify-content: center;
                    align-items: center;
                    z-index: 1;
                }
        
                .checkin-bonus span {
                    white-space: nowrap;
                    font-size: 0.1rem;
                }
        
                .checkin-action {
                    grid-area: action;
                    justify-content: center;
                    padding-left: 0.14rem;
                    padding-right: 0.04rem;
                }
    .app:has(.welfare-page.page-content) .mall-footer,
    .app:has(.recharge-page.page-content) .recharge-footer {
        width: 50.667%;
        max-width: 50.667vw;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .info-dialog--checkin .info-dialog__panel {
        width: min(86%, 4.2rem);
        max-width: 4.2rem;
    }

    .news-back-btn {
        left: 0;
    }

                                .home-bg-img {
                                    content: url('../assets/home/pc.jpg');
    }

    .home-main-logo {
        display: none;
    }

    .char-showcase .char-thumbs {
        justify-content: center;
        padding: 0;
        overflow-x: auto;
    }

    .info-section.info-media .info-section-inner {
        align-items: center;
    }

    .info-section.info-media .media-frame {
        flex-shrink: 0;
        align-self: center;
        width: min(52vw, 9.6rem);
        max-width: none;
    }

    .info-section.info-media .media-tabs {
        flex-shrink: 0;
        align-self: center;
        width: min(52vw, 9.6rem);
        max-width: none;
    }

    .info-section.info-media .media-play {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 960px) {
    .gift-page {
        padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 0.88rem);
    }

    .recharge-currency-bar {
        flex-wrap: wrap;
        row-gap: 0.08rem;
    }

    .currency-hint {
        flex: 1 1 100%;
    }

    .currency-select {
        flex: 1 1 auto;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats .stat-card.full {
        grid-column: 1 / -1;
    }

    .info-world-visual,
    .facility-detail {
        flex-direction: column;
    }

    .side-menu {
        width: min(85vw, 4.8rem);
        right: 0;
    }

    .login-overlay {
        padding: 0 0.12rem;
    }

    .login-panel,
    .login-field input {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .recharge-grid {
        gap: 0.06rem;
    }
}

.cdk-msg {
    margin-top: 0.16rem;
    min-height: 0.36rem;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    font-size: 0.1rem;
}

.cdk-msg.error {
    color: #ff6b6b;
    text-shadow: 0 0 0.08rem rgba(255, 107, 107, 0.35);
}

.cdk-msg.ok {
    color: #59d98e;
    text-shadow: 0 0 0.08rem rgba(89, 217, 142, 0.35);
}