/* public/style.css - 太空主题 3.0 全局优化 + 亮度提升版 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #00f2fe; /* 电光蓝 */
    --bg-color: #0f172a;     /* 调亮：深黑 -> 深蓝 */
    --card-bg: rgba(30, 41, 59, 0.6); /* 调亮：增加不透明度 */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
}

/* 繁星动态背景 - 增加光晕亮度 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(0, 242, 254, 0.2) 0%, transparent 40%);
    z-index: -1;
}

.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow-x: hidden;
}

.hide { display: none !important; }

/* 下拉刷新样式 */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
    font-size: 0.8rem;
    font-weight: 900;
    z-index: 9999;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), transparent);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.pull-to-refresh.active {
    transform: translateY(0);
}

.pull-to-refresh i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.pull-to-refresh.ready i {
    transform: rotate(180deg);
}

.pull-to-refresh.refreshing i {
    animation: ptr-spin 0.8s infinite linear;
}

@keyframes ptr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.screen.scrollable {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    padding-bottom: 120px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* 微信环境限制提示强制隐藏 */
.wechat-restricted { display: none !important; }

/* 落地页 - 太空风格亮度提升 */
#landing-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    pointer-events: auto;
    transition: opacity 0.5s ease; /* 添加过渡效果 */
}

#landing-screen.hide {
    display: none !important;
    pointer-events: none;
}

.landing-content {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2e1065 0%, #0f172a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.planet { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: 0.3; }
.planet-1 { width: 250px; height: 250px; background: linear-gradient(45deg, #818cf8, #c084fc); top: -80px; right: -80px; box-shadow: 0 0 100px rgba(129, 140, 248, 0.6); }
.planet-2 { width: 150px; height: 150px; background: linear-gradient(-45deg, #f472b6, #a78bfa); bottom: 15%; left: -50px; }

.landing-main-title { text-align: center; margin-bottom: 80px; z-index: 10; }
.title-top { font-size: 1.1rem; color: var(--accent-color); letter-spacing: 12px; margin-bottom: 15px; font-weight: 300; text-transform: uppercase; }
.title-big { font-size: 3.8rem; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 0 40px rgba(0, 242, 254, 0.8); }

/* 进度条 */
.loading-wrapper { width: 80%; max-width: 320px; text-align: center; z-index: 10; }
.progress-bar-container { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; margin-bottom: 15px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #6366f1, #00f2fe); box-shadow: 0 0 20px #00f2fe; transition: width 0.1s linear; }
.loading-text { color: #f8fafc; font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* 首页组件 - 提升对比度与亮度 */
.modern-notice { 
    margin: 5px 20px 10px; /* 顶部距离缩小到 5px，让位置更高 */
    min-height: 46px; /* 【核心修复】强制最小高度，防止 Swiper 初始化后坍塌 */
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 50px; 
    padding: 0 18px; /* 左右内边距，取消上下 padding 靠居中对齐 */
    display: flex; 
    align-items: center; /* 确保所有子元素垂直居中 */
    gap: 12px; 
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}
.notice-tag { 
    background: var(--accent-color); 
    color: #020617; 
    font-size: 0.65rem; 
    font-weight: 900; 
    height: 22px; /* 固定标签高度 */
    line-height: 22px;
    padding: 0 10px; 
    border-radius: 20px; 
    flex-shrink: 0;
    white-space: nowrap; 
}
.notice-swiper { 
    flex: 1; 
    height: 46px !important; /* 高度与容器对齐 */
    overflow: hidden; 
}
.notice-swiper .swiper-slide {
    height: 46px !important;
    display: flex;
    align-items: center; /* 垂直居中文字 */
    font-size: 0.85rem; 
    color: #fff; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 背景音乐开关 - 回归之前的简约亮化风格 */
.music-control {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.music-control i {
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.music-control.off {
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.1);
}

.music-control.off .music-waves { display: none; }

.music-control.small {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    pointer-events: auto;
}

.music-control.small .music-waves {
    bottom: 1px;
}

.music-waves {
    position: absolute;
    bottom: -2px;
    display: flex;
    gap: 2px;
    height: 10px;
    align-items: flex-end;
}

.music-waves span {
    width: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    animation: wave 1s infinite alternate;
}

.music-waves span:nth-child(2) { animation-delay: 0.2s; height: 8px; }
.music-waves span:nth-child(3) { animation-delay: 0.4s; height: 6px; }

@keyframes wave {
    0% { height: 3px; }
    100% { height: 12px; }
}

.bgm-btn.pulse {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.bgm-btn.off .music-waves {
    display: none;
}

/* 提示文字 */
.toast-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 242, 254, 0.3);
    pointer-events: none;
    white-space: nowrap;
}

.toast-msg.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-msg.error {
    border-color: rgba(244, 63, 94, 0.5);
    color: #fda4af;
}

/* 轮播图整体区域 - 打造星际视窗外壳 */
.banner-area {
    margin: 15px 15px; /* 统一边距 */
    position: relative;
    padding: 2px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 242, 254, 0.05);
    z-index: 50;
}

/* 独立科技角 - 增强动态锁定效果 */
.tech-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--accent-color);
    z-index: 100;
    filter: drop-shadow(0 0 10px var(--accent-color));
    animation: tech-lock-move 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-corner.tl { top: -6px; left: -6px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.tech-corner.tr { top: -6px; right: -6px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.tech-corner.bl { bottom: -6px; left: -6px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.tech-corner.br { bottom: -6px; right: -6px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

@keyframes tech-lock-move {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; filter: drop-shadow(0 0 12px var(--accent-color)); }
    50% { transform: translate(var(--mx, 0), var(--my, 0)) scale(0.9); opacity: 0.6; filter: drop-shadow(0 0 5px var(--accent-color)); }
}

.tech-corner.tl { --mx: 4px; --my: 4px; }
.tech-corner.tr { --mx: -4px; --my: 4px; }
.tech-corner.bl { --mx: 4px; --my: -4px; }
.tech-corner.br { --mx: -4px; --my: -4px; }

.banner-swiper-modern { 
    width: 100%; 
    height: 180px; 
    border-radius: 22px;
    overflow: hidden !important;
}

/* 分页指示器美化 */
.banner-swiper-modern .swiper-pagination {
    position: absolute !important;
    bottom: 8px !important;
    z-index: 70;
}

.swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.banner-glass-card.pure-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.full-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：确保图片铺满整个容器 */
    filter: brightness(0.9) contrast(1.1);
}

/* 隐藏 swiper 的默认 card 阴影，因为我们自己写了 */
.swiper-slide {
    background: transparent !important;
}

/* 美化分页指示器 */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    width: 18px !important;
    border-radius: 4px !important;
}

.wallet-card-modern { 
    margin: 20px 15px; 
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 28px; 
    padding: 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
}
.wallet-info .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}
.wallet-info h3 { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: #fff; 
    text-shadow: 0 0 20px rgba(255,255,255,0.1); 
}
.wallet-info .unit {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-left: 5px;
    font-weight: 700;
}
.btn-recharge-modern { 
    background: linear-gradient(135deg, #6366f1, #a855f7); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 20px; 
    font-weight: 900; 
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); 
    transition: 0.3s;
}
.btn-recharge-modern:active { transform: scale(0.95); }

/* 奖池展示区 */
.prize-section { margin: 25px 15px; }

.section-header {
    display: flex;
    justify-content: flex-start; /* 改为 flex-start，方便排列 */
    align-items: center;
    margin-bottom: 18px;
    gap: 10px; /* 增加间距 */
    flex-wrap: wrap; /* 允许换行 */
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.5px;
    position: relative;
    padding-left: 14px;
    flex-shrink: 0;
    margin-right: auto;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.rules-btn {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 5px 10px; /* 稍微减小内边距 */
    border-radius: 50px;
    font-size: 0.65rem; /* 稍微减小字号 */
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.prize-grid-modern { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; /* 缩小间隙 */
    width: 100%;
}

.prize-item-modern { 
    background: rgba(30, 41, 59, 0.7); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12); 
    border-radius: 24px; /* 稍微缩小圆角 */
    padding: 10px; /* 缩小内边距 */
    display: flex; 
    flex-direction: column; 
    position: relative; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0; /* 防止内容撑破 grid */
}

.prize-item-modern:active {
    transform: scale(0.97);
}

.players-tag { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: rgba(15, 23, 42, 0.8); 
    color: var(--accent-color); 
    font-size: 0.55rem; 
    padding: 3px 10px; 
    border-radius: 20px; 
    z-index: 5; 
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.thumb-box { 
    width: 100%; 
    height: 120px; /* 降低高度，原本 150px */
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%); 
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 8px; /* 缩小间距 */
    flex-shrink: 0; 
    overflow: visible; 
    position: relative;
}

/* 全息投影底座效果 */
.thumb-box::after {
    content: '';
    position: absolute;
    bottom: 20px;
    width: 65%;
    height: 12px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 242, 254, 0.4) 0%, transparent 100%);
    filter: blur(6px);
    border-radius: 50%;
    z-index: 1;
    animation: base-pulse 3s infinite ease-in-out;
}

@keyframes base-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.prize-thumb-modern { 
    max-width: 85%; 
    max-height: 85%; 
    object-fit: contain; 
    z-index: 2;
    /* 核心美化：增加深度阴影，扣图后会非常漂亮 */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: prize-float 4s infinite ease-in-out;
}

@keyframes prize-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.prize-item-modern:hover .prize-thumb-modern {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.4));
}

.prize-item-modern:hover .prize-thumb-modern {
    transform: scale(1.1);
}

/* 关卡过渡界面 */
#level-transition-screen {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.transition-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.warp-tunnel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(50px);
    animation: warp-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes warp-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
}

.transition-main {
    position: relative;
    z-index: 10;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: fadeInDown 0.5s both;
}

#transition-level-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    margin-bottom: 20px;
    font-style: italic;
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.2s;
}

.tech-line {
    width: 100px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    box-shadow: 0 0 10px var(--accent-color);
}

#transition-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tech-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.tech-loader-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: tech-loading 1.5s infinite linear;
}

/* 过渡页面装饰 */
.transition-main::before, .transition-main::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    opacity: 0.3;
}
.transition-main::before { top: -20px; left: -20px; border-right: 0; border-bottom: 0; }
.transition-main::after { bottom: -20px; right: -20px; border-left: 0; border-top: 0; }

@keyframes tech-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 游戏内倒计时覆盖层 */
.game-countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.3);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.count-num {
    font-size: 8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-color);
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.count-num.go {
    color: var(--accent-color);
    text-shadow: 0 0 40px #fff, 0 0 80px var(--accent-color);
}

.prize-title-modern { 
    font-size: 0.85rem; 
    font-weight: 800; 
    margin-bottom: 8px; /* 缩小间距，原本 12px */
    text-align: left; 
    color: #fff; 
    height: 2.4rem; 
    line-height: 1.2rem; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    padding: 0 4px;
}
.prize-meta { 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    gap: 5px; /* 减小间隙 */
    width: 100%; 
    margin-top: auto; 
    padding-top: 5px;
    min-width: 0;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0; /* 允许压缩 */
}

.price-val { 
    color: var(--accent-color); 
    font-weight: 900; 
    font-size: 1rem; /* 稍微减小字号，原 1.1rem */
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4); 
    line-height: 1;
    white-space: nowrap;
}

.cost-bubble-btn { 
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
    color: white; 
    border: none; 
    padding: 8px 4px; /* 减小内边距 */
    border-radius: 10px; 
    font-size: 0.65rem; /* 减小字号，原 0.75rem */
    font-weight: 900; 
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); 
    white-space: nowrap; 
    transition: transform 0.2s;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis; /* 文字过长时显示省略号 */
}

.cost-bubble-btn:active {
    transform: scale(0.96);
}

/* 底部导航 - 提升亮度 */
.modern-nav {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: 65px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
    z-index: 1000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); transition: all 0.3s ease; height: 100%; }
.nav-item.active { color: var(--accent-color); text-shadow: 0 0 15px rgba(0, 242, 254, 0.5); }
.nav-item .icon { font-size: 1.2rem; margin-bottom: 2px; }
.nav-item span { font-size: 0.65rem; font-weight: 600; }

.center-btn {
    width: 62px !important;
    height: 62px !important;
    background: linear-gradient(135deg, #6366f1, #00f2fe) !important;
    border-radius: 50% !important;
    margin-top: -45px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5) !important;
    border: 5px solid #0f172a !important;
    flex: none !important;
    animation: nav-bounce 2s infinite ease-in-out;
}

@keyframes nav-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.center-icon { font-size: 1.6rem !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); margin-top: -10px; }

.practice-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* 游戏界面 HUD 增强 */
#game-screen {
    background: #020617;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.game-hud {
    position: absolute;
    top: 40px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.hud-item {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 0 10px rgba(0, 242, 254, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    height: 75px;
}

.music-hud {
    padding: 0 !important;
    width: 75px;
    min-width: 75px !important;
}

.music-control.small {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--accent-color);
}

.hud-label {
    font-size: 0.55rem;
    color: #00f2fe;
    display: block;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.9;
}

#game-score, #game-level, #game-timer {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.target-requirement {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: 4px;
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* 排行榜系统样式 */
#leaderboard-screen {
    background: radial-gradient(circle at top, #1e1b4b 0%, #020617 100%);
}

.leaderboard-header {
    padding: 40px 20px 20px;
    text-align: center;
}

.leaderboard-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.leaderboard-header .header-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.leaderboard-container {
    padding: 10px 20px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.5s both;
}

.leaderboard-item.top-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.top-1 .rank-badge { color: #fbbf24; font-size: 1.4rem; text-shadow: 0 0 10px #fbbf24; }
.top-2 .rank-badge { color: #94a3b8; }
.top-3 .rank-badge { color: #b45309; }

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-score {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.loading-state {
    text-align: center;
    padding: 50px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* 记录页面样式 */
#records-screen {
    background: radial-gradient(circle at bottom, #1e1b4b 0%, #020617 100%);
}

.records-header {
    padding: 40px 20px 20px;
    text-align: center;
}

.records-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.records-header .header-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.records-container {
    padding: 10px 20px;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 15px;
    display: flex;
    gap: 15px;
    position: relative;
    animation: fadeInUp 0.5s both;
}

.record-prize-thumb {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.record-prize-thumb img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.record-prize-name {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.record-prize-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

.record-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.record-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
}

.record-btn.claim {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #020617;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.record-btn.claim.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.record-view-tracking {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.record-view-tracking:active {
    transform: scale(0.9);
}

.record-btn.delete {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.record-btn:active {
    transform: scale(0.95);
}

/* 个人中心 (我的) 样式 */
#my-screen {
    background: radial-gradient(circle at top left, #1e1b4b 0%, #020617 100%);
}

.my-profile-header {
    padding: 50px 25px 30px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    position: relative;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.avatar-box {
    position: relative;
    width: 80px;
    height: 80px;
}

.user-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    object-fit: cover;
}

.level-tag {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #020617;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.4);
}

.user-meta h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.user-meta .uid {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    opacity: 0.7;
}

.stats-row {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.stat-item .lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.my-menu-container {
    padding: 0 20px 40px;
}

.menu-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 15px;
    transition: all 0.3s ease;
}

.menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.menu-icon {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.menu-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.menu-value {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0.8;
}

.menu-item .arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* 排行榜样式 */
.leaderboard-list-mini {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leader-item .rank {
    width: 25px;
    font-weight: 900;
    color: var(--accent-color);
}

.leader-item .name {
    flex: 1;
    text-align: left;
    padding-left: 10px;
    color: #fff;
}

.leader-item .score {
    font-weight: bold;
    color: #818cf8;
}

/* 弹窗太空化 */
.modern-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modern-modal-content { background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; width: 85%; padding: 35px; text-align: center; box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); }
#modal-title { color: #fff; margin-bottom: 15px; font-size: 1.4rem; text-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
#modal-msg { color: #cbd5e1; line-height: 1.6; margin-bottom: 25px; }

/* 能量核验加载 UI */
.modal-verify-box {
    padding: 10px 0;
    text-align: center;
}
.verify-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.verify-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #00f2fe);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    transition: width 0.1s linear;
}
.verify-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

.modal-btn { width: 100%; padding: 15px; border: none; border-radius: 50px; font-weight: 900; margin-bottom: 12px; transition: 0.2s; }
.modal-btn.primary { background: var(--accent-color); color: #020617; box-shadow: 0 5px 20px rgba(0, 242, 254, 0.5); }
.modal-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* 充值中心弹窗专属样式 */
.recharge-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.1);
    max-width: 90%;
    width: 340px;
    padding: 30px 20px !important;
}

.recharge-header {
    text-align: center;
    margin-bottom: 25px;
}

.recharge-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    margin-bottom: 5px;
}

.recharge-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.recharge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.recharge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.recharge-item:active {
    transform: scale(0.95);
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
}

.recharge-item.featured {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.05);
}

.recharge-item .coins {
    font-size: 1.4rem;
    font-weight: 900;
    color: #00f2fe;
    display: block;
    margin-bottom: 2px;
}

.recharge-item .unit {
    font-size: 0.7rem;
    color: rgba(0, 242, 254, 0.8);
    font-weight: 700;
    text-transform: uppercase;
}

.recharge-item .price {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.recharge-item .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #00f2fe;
    color: #0f172a;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-bottom-left-radius: 10px;
}

.recharge-footer {
    display: flex;
    justify-content: center;
}


/* 全部奖品页面专属样式 */
#all-prizes-screen {
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 100%);
}

.prize-all-container {
    padding: 10px 20px 100px;
}

.back-btn-box {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}

.back-btn-box:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* 奖池头部功能按钮 */
.header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}

.header-action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-action-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}


.header-action-btn.highlighted {
    background: linear-gradient(90deg, #00f2fe 0%, #0ea5e9 100%);
    color: #0f172a;
    border: none;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    animation: pulse-glow 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 25px rgba(0, 242, 254, 0.8); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.4); transform: scale(1); }
}

.header-action-btn.highlighted:active {
    transform: scale(0.9);
    filter: brightness(1.2);
}


/* 奖池底部更多好物按钮 - 深度高亮与响应式优化 */
.prize-footer-more {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding-bottom: 40px; /* 留出底部空间，防止被导航栏完全遮挡 */
    width: 100%;
    clear: both;
}

.btn-more-prizes-bottom {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    border: none;
    padding: 14px 0;
    width: 100%; /* 全宽显示更加大气 */
    max-width: 320px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-more-prizes-bottom i {
    font-size: 0.8rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.btn-more-prizes-bottom:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

/* 响应式补充 - 针对超小屏幕手机 (如 iPhone SE) */
@media screen and (max-width: 360px) {
    .prize-section { margin: 20px 10px; }
    .prize-grid-modern { gap: 8px; }
    .prize-item-modern { padding: 8px; border-radius: 20px; }
    .price-val { font-size: 0.9rem; }
    .cost-bubble-btn { font-size: 0.6rem; padding: 6px 2px; }
    .rules-btn { padding: 4px 8px; font-size: 0.6rem; }
    .section-header h3 { font-size: 1rem; }
    .wallet-card-modern { margin: 15px 10px; padding: 20px; }
    .wallet-info h3 { font-size: 1.8rem; }
    .banner-area { margin: 10px 10px; }
}

/* CSGO风格开箱动画 - 3D 增强版 */
.lootbox-container {
    width: 100%;
    height: 200px; /* 增加高度 */
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    border: 2px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 0 20px rgba(0, 242, 254, 0.1);
    perspective: 1000px;
}

.lootbox-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    z-index: 100;
    box-shadow: 0 0 15px var(--accent-color);
}

.lootbox-pointer::before, .lootbox-pointer::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.lootbox-pointer::before {
    top: -2px;
    border-top: 18px solid var(--accent-color);
}

.lootbox-pointer::after {
    bottom: -2px;
    border-bottom: 18px solid var(--accent-color);
}

/* 扫描线效果 */
.lootbox-pointer-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.05), transparent);
    animation: scan-move 2s infinite linear;
    pointer-events: none;
}

@keyframes scan-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.lootbox-rail {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 50%;
    transition: transform 15s cubic-bezier(0.05, 0, 0.03, 1); /* 时长增至15s，更极致的平滑减速 */
    will-change: transform;
    transform-style: preserve-3d;
}

.loot-item {
    flex-shrink: 0;
    width: 160px; /* 增加宽度 */
    height: 160px; /* 增加高度 */
    margin: 0 8px; /* 间距 */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0; 
    position: relative;
    transition: all 0.3s;
    transform: translateZ(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    overflow: hidden; 
}

/* 奖品光效 */
.loot-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: shine 3s infinite;
    pointer-events: none;
    border-radius: inherit;
    z-index: 3;
}

@keyframes shine {
    0% { background-position: -100% -100%; }
    100% { background-position: 100% 100%; }
}

.loot-item img {
    width: 100%; 
    height: 100%;
    object-fit: contain; /* 比例缩放 */
    padding: 10px; /* 增加留白 */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    z-index: 1;
}

.loot-item .name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    font-size: 0.6rem;
    color: #fff;
    text-align: center;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    z-index: 2;
}

/* 稀有度加强效果 */
.loot-item.rare { border-bottom: 4px solid #4b69ff; background: linear-gradient(to bottom, rgba(75, 105, 255, 0.05), rgba(75, 105, 255, 0.1)); }
.loot-item.epic { border-bottom: 4px solid #8847ff; background: linear-gradient(to bottom, rgba(136, 71, 255, 0.05), rgba(136, 71, 255, 0.1)); }
.loot-item.legendary { border-bottom: 4px solid #d32ce6; background: linear-gradient(to bottom, rgba(211, 44, 230, 0.05), rgba(211, 44, 230, 0.1)); }
.loot-item.ancient { border-bottom: 4px solid #eb4b4b; background: linear-gradient(to bottom, rgba(235, 75, 75, 0.05), rgba(235, 75, 75, 0.1)); }

/* 运动中的模糊效果 */
.lootbox-rail.moving .loot-item {
    filter: blur(1px);
}

