/* ==========================================
   来打我呀 - 游戏样式表
   从 index.html 提取，路径已更新
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'KaiTi', '楷体', serif;
    background: url('../../assets/img/beijing.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 0;
}

/* 居中包裹层 */
.phone-wrapper {
    position: relative;
    z-index: 1;
    width: 414px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-container {
    width: 414px;
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border-radius: 0;
    border-left: 3px solid #4a5568;
    border-right: 3px solid #4a5568;
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(192, 192, 192, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 银龙纹理叠加层 */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(192, 192, 192, 0.02) 10px,
            rgba(192, 192, 192, 0.02) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(192, 192, 192, 0.02) 10px,
            rgba(192, 192, 192, 0.02) 20px
        ),
        radial-gradient(ellipse at 30% 20%, rgba(192, 192, 192, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(192, 192, 192, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 龙纹边框装饰 */
.game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #a0a0a0 20%, 
        #d4d4d4 50%, 
        #a0a0a0 80%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.game-content {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 10px;
    padding-bottom: 5px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 主界面顶部战斗信息区域 */
.main-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 12px 10px 10px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
    border-radius: 12px;
    border: 2px solid #4a5568;
    position: relative;
    overflow: hidden;
}

/* 银龙纹理边框 */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(192, 192, 192, 0.03) 15px,
            rgba(192, 192, 192, 0.03) 30px
        );
    pointer-events: none;
}

/* 游戏标题包装器 */
.main-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

/* 标题背景纹理 */
.main-title-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.1) 0%, 
        rgba(192, 192, 192, 0.2) 25%, 
        rgba(75, 0, 130, 0.15) 50%, 
        rgba(192, 192, 192, 0.2) 75%, 
        rgba(255, 69, 0, 0.1) 100%);
    border-radius: 8px;
    z-index: -1;
    filter: blur(5px);
}

.main-title {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: 'STXingkai', 'Xingkai SC', 'Xingkai', '行楷', sans-serif;
    color: #050505;
    margin: 0;
    letter-spacing: 5px;
    position: relative;
    text-shadow: 
        0 0 2px rgba(255,255,255,0.9),
        0 0 5px rgba(255,255,255,0.7),
        0 0 10px rgba(255,200,150,0.5),
        0 0 20px rgba(255,150,100,0.4),
        0 0 40px rgba(255,100,50,0.3),
        0 0 60px rgba(255,50,0,0.2),
        0 2px 0 #000,
        0 3px 0 #111,
        0 4px 0 #222;
    animation: titleGlow 1.5s ease-in-out infinite;
}

.player-name-display {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1rem;
    color: #b8a060;
    letter-spacing: 3px;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(200, 180, 120, 0.5);
    min-height: 1.2em;
}

/* 霓虹火焰层 */
.main-title::before {
    content: '来打我呀';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #ff6b6b 0%, 
        #ff4757 20%, 
        #ff3838 40%, 
        #ee5a24 60%, 
        #c0392b 80%, 
        #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(6px);
    opacity: 0.7;
    z-index: -1;
    animation: titleFire 1.5s ease-in-out infinite;
}

/* 外发光轮廓 */
.main-title::after {
    content: '来打我呀';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255,200,100,0.6);
    border-radius: 8px;
    box-shadow: 
        0 0 15px rgba(255,150,50,0.6),
        0 0 30px rgba(255,100,50,0.4),
        0 0 45px rgba(255,50,0,0.3),
        inset 0 0 15px rgba(255,200,100,0.2);
    z-index: -1;
    animation: titleOutline 1.5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 2px rgba(255,255,255,0.9),
            0 0 5px rgba(255,255,255,0.7),
            0 0 10px rgba(255,200,150,0.5),
            0 0 20px rgba(255,150,100,0.4),
            0 0 40px rgba(255,100,50,0.3),
            0 0 60px rgba(255,50,0,0.2),
            0 2px 0 #000,
            0 3px 0 #111,
            0 4px 0 #222;
    }
    50% { 
        text-shadow: 
            0 0 4px rgba(255,255,255,1),
            0 0 10px rgba(255,255,255,0.9),
            0 0 20px rgba(255,220,150,0.7),
            0 0 35px rgba(255,180,100,0.5),
            0 0 55px rgba(255,120,50,0.4),
            0 0 80px rgba(255,80,0,0.3),
            0 0 100px rgba(255,50,0,0.2),
            0 2px 0 #000,
            0 3px 0 #111,
            0 4px 0 #222;
    }
}

@keyframes titleFire {
    0%, 100% { 
        opacity: 0.5;
        filter: blur(6px);
        transform: translateY(-1px);
    }
    50% { 
        opacity: 0.9;
        filter: blur(4px);
        transform: translateY(-2px);
    }
}

@keyframes titleOutline {
    0%, 100% { 
        border-color: rgba(255,200,100,0.5);
        box-shadow: 
            0 0 10px rgba(255,150,50,0.5),
            0 0 25px rgba(255,100,50,0.3),
            inset 0 0 10px rgba(255,200,100,0.1);
    }
    50% { 
        border-color: rgba(255,220,150,0.9);
        box-shadow: 
            0 0 20px rgba(255,180,80,0.8),
            0 0 40px rgba(255,120,50,0.5),
            0 0 60px rgba(255,80,0,0.3),
            inset 0 0 20px rgba(255,220,150,0.3);
    }
}

/* 标题装饰 */
.main-title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: -8px;
    margin-bottom: 10px;
}

.main-title-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.9) 20%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0.9) 80%, 
        transparent 100%);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.main-title-diamond {
    display: none;
}

.main-title-skull {
    font-size: 1.4rem;
    text-shadow: 
        0 0 10px rgba(255, 100, 100, 0.9),
        0 0 20px rgba(255, 50, 50, 0.7);
    animation: skullPulse 1.5s ease-in-out infinite;
}

@keyframes skullPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(255, 100, 100, 0.9),
            0 0 20px rgba(255, 50, 50, 0.7);
    }
    50% { 
        transform: scale(1.15);
        text-shadow: 
            0 0 15px rgba(255, 120, 120, 1),
            0 0 30px rgba(255, 80, 80, 0.9);
    }
}

.main-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.main-stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    position: relative;
}

.main-stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.5), transparent);
}

.main-stat-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 3px;
}

.main-stat-value {
    font-size: 1.0rem;
    font-weight: bold;
    color: #c0c0c0;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
}

.level-title {
    font-size: 1.5rem;
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
    margin-bottom: 8px;
    position: relative;
}

.level-title.level-flash {
    animation: levelTitleFlash 0.6s ease-out;
}

@keyframes levelTitleFlash {
    0% {
        color: #ffffff;
        text-shadow: 
            0 0 20px #ffffff,
            0 0 40px #ffffff,
            0 0 60px #ffd700,
            0 0 80px #ffd700;
        transform: scale(1.2);
    }
    30% {
        color: #ffd700;
        text-shadow: 
            0 0 15px #ffd700,
            0 0 30px #ff8c00,
            0 0 45px #ff4500;
        transform: scale(1.1);
    }
    100% {
        color: #c0c0c0;
        text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
        transform: scale(1);
    }
}

.level-progress {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #5a4a20;
}

.level-progress-bar {
    height: 100%;
    background: linear-gradient(180deg, 
        #fff8dc 0%, 
        #ffd700 20%, 
        #ffcc00 40%, 
        #ffb800 60%, 
        #ff9500 100%);
    transition: width 0.3s ease-out;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 200, 0, 0.6);
    animation: progressPulse 1.5s ease-in-out infinite;
}

/* 进度条光泽效果 */
.level-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 5px 5px 0 0;
}

/* 进度条动感纹理 */
.level-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 8px,
            rgba(255, 255, 255, 0.15) 8px,
            rgba(255, 255, 255, 0.15) 12px
        );
    border-radius: 5px;
    animation: progressStripes 0.8s linear infinite;
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 
            inset 0 2px 4px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 200, 0, 0.6);
    }
    50% {
        box-shadow: 
            inset 0 2px 4px rgba(255, 255, 255, 0.5),
            0 0 18px rgba(255, 220, 0, 0.9),
            0 0 30px rgba(255, 180, 0, 0.5);
    }
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 12px 0;
    }
}

.battle-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 150px;
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.8) 0%, rgba(30, 30, 50, 0.8) 100%);
    border-radius: 10px;
    padding: 8px;
    position: relative;
    border: 1px solid #4a5568;
    overflow: hidden;
}

.battle-animation {
    width: 100%;
    max-width: 280px;
    height: 140px;
    background: url('../../assets/img/battle.gif') no-repeat center center;
    background-size: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
    border: 1px solid rgba(192, 192, 192, 0.2);
    overflow: hidden;
    transform-origin: center center;
    transition: border-width 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* 商店技能生效时 - 暴怒/爆发特效边框 */
.battle-animation.shop-active {
    border-width: 3px !important;
    border-color: #8b0000 !important;
    border-style: solid !important;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6),
                0 0 40px rgba(139, 0, 0, 0.3),
                inset 0 0 20px rgba(139, 0, 0, 0.2);
    animation: shopActivePulse 1.5s ease-in-out infinite;
}

@keyframes shopActivePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.6),
                    0 0 40px rgba(139, 0, 0, 0.3),
                    inset 0 0 20px rgba(139, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 0, 0, 0.8),
                    0 0 60px rgba(139, 0, 0, 0.5),
                    inset 0 0 30px rgba(139, 0, 0, 0.3);
    }
}

/* Buff 状态文字区域（战斗框体下方、血条上方） */
.battle-buff-status {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 4px 0;
    min-height: 0;
    flex-wrap: wrap;
}

.buff-status-item {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
    animation: buffStatusPulse 1.5s ease-in-out infinite;
    white-space: nowrap;
}

/* 暴怒状态：红色主题 */
.buff-status-rage {
    color: #ff6b6b;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, rgba(200, 30, 30, 0.3) 100%);
    border: 1px solid rgba(255, 80, 80, 0.5);
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.8);
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.3);
}

/* 爆发状态：橙色/金色主题 */
.buff-status-burst {
    color: #ffb347;
    background: linear-gradient(135deg, rgba(180, 100, 0, 0.4) 0%, rgba(200, 150, 30, 0.3) 100%);
    border: 1px solid rgba(255, 180, 70, 0.5);
    text-shadow: 0 0 8px rgba(255, 180, 70, 0.8);
    box-shadow: 0 0 8px rgba(255, 160, 40, 0.3);
}

@keyframes buffStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.health-bars-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    gap: 15px;
}

.health-bar-wrapper {
    flex: 1;
    text-align: center;
}

.health-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #c0c0c0;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
}

/* 龙头血条容器 */
.health-bar-container {
    width: 100%;
    height: 28px;
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.95) 0%, rgba(10, 10, 20, 0.95) 100%);
    border-radius: 14px;
    border: 2px solid #4a5568;
    overflow: visible;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
}

/* 龙头装饰 - 左侧 */
.health-bar-container::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 24px;
    background: linear-gradient(135deg, #9ca3af 0%, #9ca3af 50%, #9ca3af 100%);
    clip-path: polygon(100% 20%, 60% 35%, 80% 50%, 60% 65%, 100% 80%, 50% 50%);
    z-index: 5;
    filter: drop-shadow(0 0 3px rgba(192, 192, 192, 0.3));
}

/* 龙头装饰 - 右侧（血条末端） */
.health-bar-container::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 20px;
    background: linear-gradient(135deg, #9ca3af 0%, #4a5568 100%);
    clip-path: polygon(0% 25%, 50% 40%, 0% 55%, 30% 50%, 0% 75%, 50% 60%, 0% 100%, 100% 100%, 100% 0%, 0% 0%);
    z-index: 5;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* 血条内部装饰 */
.health-bar-inner {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

/* 血条填充 */
.health-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 玩家血条 - 银色渐变 */
.hero-health-bar {
    background: linear-gradient(180deg, 
        #a0a0a0 0%, 
        #c0c0c0 30%, 
        #9ca3af 50%, 
        #9ca3af 70%, 
        #4a5568 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(192, 192, 192, 0.3);
}

/* 玩家血条光泽效果 */
.hero-health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
}



/* 怪物血条 - 红色渐变 */
.monster-health-bar {
    background: linear-gradient(180deg, 
        #ff6b6b 0%, 
        #ef4444 20%, 
        #dc2626 40%, 
        #b91c1c 60%, 
        #991b1b 100%);
    box-shadow: 
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(239, 68, 68, 0.6),
        0 0 30px rgba(220, 38, 38, 0.3);
    transition: width 0.3s ease-out;
    animation: healthPulse 2s ease-in-out infinite;
}

/* 怪物血条光泽效果 */
.monster-health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 200, 200, 0.15) 50%, transparent 100%);
    border-radius: 10px 10px 0 0;
}

/* 血条动感纹理 */
.health-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 6px,
            rgba(255, 255, 255, 0.12) 6px,
            rgba(255, 255, 255, 0.12) 8px
        ),
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 0, 0, 0.05) 4px,
            rgba(0, 0, 0, 0.05) 8px
        );
    border-radius: 10px;
    animation: healthStripes 0.5s linear infinite;
}

@keyframes healthPulse {
    0%, 100% {
        box-shadow: 
            inset 0 2px 6px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2),
            0 0 15px rgba(239, 68, 68, 0.6),
            0 0 30px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 
            inset 0 2px 6px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2),
            0 0 22px rgba(255, 80, 80, 0.8),
            0 0 40px rgba(239, 68, 68, 0.5);
    }
}

@keyframes healthStripes {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 8px 0, 0 8px;
    }
}

.health-text {
    font-size: 0.75rem;
    margin-top: 8px;
    color: #9ca3af;
    font-weight: bold;
}

.damage-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #c0c0c0;
    text-shadow: 0 0 5px #000, 0 0 10px rgba(192, 192, 192, 0.5);
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    background: linear-gradient(135deg, #4a5568, #9ca3af);
    border: 1px solid #9ca3af;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
    background: linear-gradient(135deg, #9ca3af, #9ca3af);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-log {
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.95) 0%, rgba(15, 15, 30, 0.95) 100%);
    border-radius: 10px;
    padding: 8px 10px;
    height: auto;
    max-height: 128px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 130, 0.4);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.game-log::-webkit-scrollbar {
    width: 5px;
}

.game-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.game-log::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 130, 0.5);
    border-radius: 3px;
}

.game-log::-webkit-scrollbar-thumb:hover {
    background: rgba(130, 130, 160, 0.6);
}

/* 版本号 */
.game-version {
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #ff4444;
    letter-spacing: 1px;
}

/* 底部信息条（贴在导航栏正上方） */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 15px;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

/* 版本号条 */
.footer-version {
    color: #ff4444;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 版本号默认隐藏，仅在战斗页签显示 */
.footer-version {
    display: none;
}

.footer-version.visible {
    display: flex;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    word-break: break-all;
    overflow-wrap: break-word;
    font-size: 0.85rem;
    line-height: 1.3;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .log-time {
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 55px;
}

.log-entry .log-text {
    flex: 1;
    line-height: 1.4;
}

.log-entry .log-time {
    color: #6b7280;
    font-size: 0.7rem;
    flex-shrink: 0;
    min-width: 55px;
}

.log-entry .log-text {
    color: #9ca3af;
}

/* 不同类型日志文字颜色 */
.log-entry.log-damage .log-text {
    color: #f87171;
}

.log-entry.log-critical .log-text {
    color: #ef4444;
    font-weight: bold;
}

.log-entry.log-info .log-text {
    color: #9ca3af;
}

.log-entry.log-success .log-text {
    color: #4ade80;
}

.log-damage {
    color: #9ca3af;
}

.log-critical {
    color: #ef4444;
    font-weight: bold;
}

.log-info {
    color: #9ca3af;
}

.log-success {
    color: #9ca3af;
}

/* ---- 特效粒子 ---- */
.star-effect {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #c0c0c0, #808080, transparent);
    border-radius: 50%;
    animation: starBurst 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes starBurst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.critical-hit {
    animation: criticalShake 0.3s ease;
}

@keyframes criticalShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.monster-death {
    animation: monsterDeath 0.5s ease forwards;
}

@keyframes monsterDeath {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* ---- BOSS 警告弹窗 ---- */
.boss-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 340px;
    z-index: 1000;
}

.boss-dialog {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1a1a2e 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #4a5568, #9ca3af, #4a5568) 1;
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(74, 85, 104, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: bossDialogAppear 0.5s ease-out;
}

.boss-dialog-title {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 50%, #2d2d44 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 2px solid #4a5568;
    position: relative;
}

.boss-dialog-title::before,
.boss-dialog-title::after {
    content: '';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #9ca3af, #9ca3af, #9ca3af);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.5L19 8l-7 3.5L5 8l7-3.5zM4 9.5l7 3.5v7l-7-3.5v-7zm16 0v7l-7 3.5v-7l7-3.5z'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.5L19 8l-7 3.5L5 8l7-3.5zM4 9.5l7 3.5v7l-7-3.5v-7zm16 0v7l-7 3.5v-7l7-3.5z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

.boss-dialog-title::before {
    animation: dragonGlow 2s infinite;
}

.boss-dialog-title::after {
    animation: dragonGlow 2s infinite reverse;
}

@keyframes dragonGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; filter: brightness(1.3); }
}

.boss-dialog-title h3 {
    color: #ef4444;
    font-size: 1.4rem;
    text-shadow: 0 0 10px #ef4444, 0 0 20px #ff0000;
    font-family: '楷体', 'KaiTi', serif;
    margin: 0;
    animation: bossTextShake 0.3s infinite;
}

.boss-dialog-content {
    padding: 25px 20px;
    text-align: center;
}

.boss-skull {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #374151, #1f2937, #374151);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4b5563;
    box-shadow: 
        0 0 15px rgba(239, 68, 68, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.boss-skull::before {
    content: '💀';
    font-size: 3rem;
    filter: drop-shadow(0 0 5px #ef4444);
}

.boss-dialog-content p {
    color: #c0c0c0;
    font-size: 1.1rem;
    margin: 10px 0;
    font-family: '楷体', 'KaiTi', serif;
    line-height: 1.6;
}

.boss-level {
    color: #ffd700 !important;
    font-size: 1.3rem !important;
    font-weight: bold;
    text-shadow: 0 0 5px #ffd700;
}

@keyframes bossDialogAppear {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bossTextShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ---- 游戏结束 ---- */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.game-over-title {
    font-size: 4rem;
    color: #9ca3af;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
    margin-bottom: 20px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.game-over-stats {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

/* ---- 强化页签 ---- */
/* ---- 强化页签：标题区域 ---- */
.upg-header {
    text-align: center;
    margin-bottom: 10px;
    padding-top: 5px;
}

.upg-section-title {
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', cursive;
    font-size: 1.4rem;
    color: #c0c0c0;
    margin: 0 0 10px 0;
    letter-spacing: 4px;
}

/* ---- 强化页签：角色属性条 ---- */
/* ---- 强化页签：属性区域（按列排序） ---- */
.upg-attrs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px;
    background: 
        linear-gradient(135deg, rgba(30, 30, 60, 0.6) 0%, rgba(20, 20, 40, 0.7) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(100, 100, 150, 0.05) 10px,
            rgba(100, 100, 150, 0.05) 20px
        );
    border-radius: 12px;
    border: 1px solid rgba(100, 100, 150, 0.3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.upg-attr-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #4a5568;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.upg-attr-item:hover {
    border-color: #9ca3af;
    background: rgba(30, 30, 50, 0.6);
}

.upg-attr-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.upg-attr-name {
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', cursive;
    font-size: 0.95rem;
    color: #d8d8e8;
    flex: 1;
}

.upg-attr-val {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 16px rgba(255, 215, 0, 0.3);
    min-width: 55px;
    text-align: right;
}

/* ---- 强化页签：强化区域（按列排序） ---- */
.upg-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: 
        linear-gradient(135deg, rgba(80, 20, 20, 0.7) 0%, rgba(50, 10, 10, 0.8) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(180, 50, 50, 0.05) 10px,
            rgba(180, 50, 50, 0.05) 20px
        );
    border-radius: 12px;
    border: 1px solid rgba(150, 50, 50, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.upg-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #4a5568;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.upg-item-row:hover {
    border-color: #9ca3af;
    background: rgba(30, 30, 50, 0.6);
}

.upg-item-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.upg-item-name {
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', cursive;
    font-size: 0.95rem;
    color: #d8d8e8;
    flex: 1;
    min-width: 70px;
}

.upg-item-plus {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.0rem;
    font-weight: bold;
    color: #6ee7b7;
    text-shadow: 0 0 6px rgba(110, 231, 183, 0.6);
}

.upg-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 42px;
    padding: 0;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #22c55e;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
    box-shadow: 0 0 8px rgba(110, 231, 183, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    margin-left: 8px;
}

/* 按钮光泽层 */
.upg-arrow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.upg-arrow-btn:hover::before {
    left: 120%;
}

/* 按钮呼吸光晕 */
.upg-arrow-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(110, 231, 183, 0.35), rgba(16, 185, 129, 0.35));
    opacity: 0;
    filter: blur(4px);
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: upgBtnGlow 2.5s ease-in-out infinite;
}

@keyframes upgBtnGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.upg-arrow-btn:hover {
    color: #16a34a;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px) scale(1.1);
}

.upg-arrow-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0 6px rgba(110, 231, 183, 0.2);
}

/* 金币不足时按钮变灰 */
.upg-arrow-btn.disabled,
.upg-arrow-btn:disabled {
    border-color: rgba(100, 100, 100, 0.3) !important;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.15) 0%, rgba(40, 40, 40, 0.1) 100%) !important;
    color: #555 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.upg-arrow-btn.disabled::after,
.upg-arrow-btn:disabled::after {
    display: none;
}

.upg-arrow-btn.disabled:hover,
.upg-arrow-btn:disabled:hover {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.15) 0%, rgba(40, 40, 40, 0.1) 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.upg-arrow-btn.disabled::before,
.upg-arrow-btn:disabled::before {
    display: none;
}

.upg-item-cost {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.85rem;
    color: #ffd700;
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
    margin-left: auto;
    flex-shrink: 0;
}

/* ---- 特效元素 ---- */
.gold-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: goldDrop 1s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

.gold-drop {
    position: relative;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #fff7a0 0%, #ffd700 25%, #daa520 50%, #b8860b 75%, #8b6914 100%);
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.9),
        0 0 20px rgba(255, 180, 0, 0.6),
        0 0 30px rgba(255, 150, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 235, 150, 0.6);
}

/* 金币内部装饰线条 */
.gold-drop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #8b6914;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    box-sizing: border-box;
}

/* 金币内部 "$" 符号 */
.gold-drop::after {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5c3d1e;
    font-weight: bold;
    font-size: 1.0rem;
    font-family: Georgia, serif;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5), -1px -1px 0 rgba(0,0,0,0.2);
}

/* 金币数量文字 */
.gold-text {
    color: #ffd700;
    font-size: 1.0rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.9),
        1px 1px 0 #b8860b,
        0 1px 0 #daa520;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* 吸血特效 */
.vampire-heal {
    position: absolute;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #22c55e, 0 0 10px #16a34a;
    animation: vampireFloat 1s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes vampireFloat {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-60px) scale(1);
        opacity: 0;
    }
}

@keyframes goldDrop {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(50px);
        opacity: 0;
    }
}

/* ---- 伤害数字 ---- */
.damage-number {
    position: absolute;
    font-weight: 900;
    font-family: 'KaiTi', 'STKaiti', '楷体', '华文楷体', 'SimSun', serif;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 99;
    animation: damageFloat 1s ease-out forwards;
    text-shadow: 
        0 0 3px currentColor,
        0 0 6px currentColor,
        0 0 12px currentColor,
        2px 2px 4px rgba(0,0,0,0.9);
}

/* ---- 技能名字显示 ---- */
.skill-name-display {
    position: absolute;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    z-index: 101;
    animation: skillNameFloat 1.2s ease-out forwards;
    white-space: nowrap;
}

.skill-name-display.combo {
    color: #ff6b35;
    text-shadow: 
        0 0 8px #ff6b35,
        0 0 16px #ff4500,
        0 0 24px #ff0000,
        2px 2px 4px rgba(0,0,0,0.9);
}

.skill-name-display.kill {
    color: #dc2626;
    font-size: 1.4rem;
    text-shadow: 
        0 0 10px #dc2626,
        0 0 20px #b91c1c,
        0 0 30px #991b1b,
        3px 3px 6px rgba(0,0,0,0.9);
}

@keyframes skillNameFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translateY(-10px) scale(1.3);
    }
    30% {
        opacity: 1;
        transform: translateY(-20px) scale(1.1);
    }
    70% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) scale(0.9);
    }
}

.damage-number.critical {
    color: #ff4500;
    font-size: 1.75rem;
    animation: damageFloatCritical 0.7s ease-out forwards;
    letter-spacing: 2px;
    text-shadow: 
        0 0 5px #ff4500,
        0 0 12px #ff0000,
        2px 2px 4px rgba(0,0,0,0.9);
}

.damage-number.normal {
    color: #ffd700;
    font-size: 1.1rem;
    text-shadow: 
        0 0 3px #ffd700,
        0 0 6px #ff8c00,
        0 0 8px #ff4500,
        2px 2px 4px rgba(0,0,0,0.9);
}

.damage-number.player-damage {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-shadow: 
        0 0 3px #ff6b6b,
        0 0 5px #ff4444,
        2px 2px 4px rgba(0,0,0,0.9);
}

@keyframes damageFloat {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 1;
    }
    15% {
        transform: translateY(-15px) scale(1.3);
        opacity: 1;
    }
    30% {
        transform: translateY(-25px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(-90px) scale(0.9);
        opacity: 0;
    }
}

@keyframes damageFloatCritical {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 1;
    }
    20% {
        transform: translateY(-25px) scale(3.5);
        opacity: 1;
    }
    40% {
        transform: translateY(-45px) scale(2.5);
        opacity: 1;
    }
    60% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-85px) scale(1);
        opacity: 0;
    }
}

/* ---- 关卡切换特效 ---- */
@keyframes levelTransition {
    0% {
        filter: brightness(1);
        opacity: 1;
    }
    30% {
        filter: brightness(8) blur(2px);
        opacity: 0.3;
    }
    35% {
        filter: brightness(15) blur(0px);
        opacity: 1;
        box-shadow: 0 0 50px 20px rgba(255,255,255,0.9);
    }
    40% {
        filter: brightness(8) blur(2px);
        opacity: 0.3;
    }
    60% {
        filter: brightness(1.5);
        opacity: 1;
    }
    80% {
        filter: brightness(1.2);
        opacity: 1;
    }
    100% {
        filter: brightness(1);
        opacity: 1;
    }
}

.battle-animation.level-transition {
    animation: levelTransition 0.8s ease-in-out forwards;
}

.blood-splash {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #dc2626, #7f1d1d, transparent);
    border-radius: 50%;
    animation: bloodSplash 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 97;
}

@keyframes bloodSplash {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ---- 死亡 / 复活特效 CSS 版 ---- */
@keyframes deathFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes revivePulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ---- 底部导航栏 ---- */
.bottom-nav {
    width: 100%;
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.98) 0%, rgba(10, 10, 20, 0.98) 100%);
    border-top: 2px solid #4a5568;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
    flex-shrink: 0;
    position: relative;
}

/* 导航栏银龙纹理 */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(192, 192, 192, 0.02) 30px,
            rgba(192, 192, 192, 0.02) 60px
        );
    pointer-events: none;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
    border-right: 1px solid rgba(74, 85, 104, 0.5);
    position: relative;
    overflow: hidden;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    background: rgba(74, 85, 104, 0.2);
    color: #c0c0c0;
}

.nav-item.active {
    background: transparent;
    color: #ffd700;
    font-weight: bold;
}

/* 选中指示器：顶部金色发光条 */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, #ffaa00, #ffd700, transparent);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
}

.nav-item.active::after {
    display: none;
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 100%;
}

.nav-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.battle-icon {
    width: 60px;
    height: 60px;
    background: url('../../assets/img/zhandou.jpeg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    margin: 0 auto;
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    transition: filter 0.3s ease;
}

.upgrade-icon {
    width: 60px;
    height: 60px;
    background: url('../../assets/img/qinaghua.jpeg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    margin: 0 auto;
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    transition: filter 0.3s ease;
}

.rank-icon {
    width: 60px;
    height: 60px;
    background: url('../../assets/img/paihang.jpeg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    margin: 0 auto;
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    transition: filter 0.3s ease;
}

/* 导航栏技能图标（使用背景图片） */
.bottom-nav .nav-item[data-tab="skill-tab"] .nav-icon {
    width: 60px;
    height: 60px;
    background: url('../../assets/img/jineng.jpg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    margin: 0 auto;
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    transition: filter 0.3s ease;
}

/* 选中时图标金色发光 */
.nav-item.active .battle-icon,
.nav-item.active .upgrade-icon,
.nav-item.active .rank-icon,
.nav-item.active[data-tab="skill-tab"] .nav-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 15px rgba(255, 170, 0, 0.5));
}

.nav-label {
    font-size: 1.1rem;
    margin-top: 2px;
    font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', cursive;
    text-align: center;
    letter-spacing: 1px;
    color: #c8c8d8;
    text-shadow: 
        0 0 5px rgba(200, 200, 216, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-item.active .nav-label {
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 180, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ---- 分页内容 ---- */
.tab-content {
    display: none !important;
    position: relative;
    min-height: 0;
}

.tab-content.active {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
}

.restart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4a5568, #9ca3af);
    color: white;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'KaiTi', '楷体', serif;
}

.restart-btn:hover {
    background: linear-gradient(135deg, #9ca3af, #9ca3af);
}

/* ---- 排行榜样式（荣耀版） ---- */
.rank-crown-area {
    display: flex;
    justify-content: center;
    padding: 8px 0 3px;
}

.rank-crown {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 180, 0, 0.4);
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.rank-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px 10px;
    position: relative;
}

.rank-title-wrapper {
    text-align: center;
}

.rank-title {
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', cursive;
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7),
                 0 0 25px rgba(255, 180, 0, 0.4),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    letter-spacing: 5px;
}

.rank-subtitle {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.5);
    margin-top: 4px;
    letter-spacing: 3px;
}

.rank-refresh-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    background: rgba(30, 30, 50, 0.8);
    color: #ffd700;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.rank-refresh-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transform: translateY(-50%) rotate(180deg);
}

.rank-refresh-btn.refreshing {
    animation: btnSpin 0.5s linear;
}

@keyframes btnSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.rank-list {
    padding: 5px 15px 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: rgba(35, 35, 55, 0.92);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(60, 60, 90, 0.08) 3px,
            rgba(60, 60, 90, 0.08) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(60, 60, 90, 0.06) 3px,
            rgba(60, 60, 90, 0.06) 4px
        );
    border: 1px solid rgba(80, 80, 120, 0.5);
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(100, 100, 140, 0.5);
    transition: all 0.25s ease;
}

.rank-item:hover {
    background-color: rgba(45, 45, 70, 0.95);
    transform: translateX(4px);
}

.rank-item:hover::before {
    background: rgba(200, 200, 255, 0.6);
}

.rank-item:hover {
    background: linear-gradient(135deg, rgba(55, 55, 85, 0.9), rgba(35, 35, 60, 0.9));
    transform: translateX(4px);
}

.rank-item:hover::before {
    background: rgba(200, 200, 255, 0.5);
}

/* 前三名独立样式 */
.rank-item.top-1 {
    background-color: rgba(55, 40, 10, 0.92);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(80, 60, 20, 0.1) 3px,
            rgba(80, 60, 20, 0.1) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(80, 60, 20, 0.08) 3px,
            rgba(80, 60, 20, 0.08) 4px
        );
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 200, 50, 0.15), inset 0 0 20px rgba(255, 200, 50, 0.05);
}

.rank-item.top-1::before {
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.rank-item.top-2 {
    background-color: rgba(30, 30, 50, 0.92);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(100, 100, 130, 0.1) 3px,
            rgba(100, 100, 130, 0.1) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(100, 100, 130, 0.08) 3px,
            rgba(100, 100, 130, 0.08) 4px
        );
    border: 1px solid rgba(200, 200, 220, 0.35);
    box-shadow: 0 0 10px rgba(200, 200, 220, 0.08);
}

.rank-item.top-2::before {
    background: linear-gradient(to bottom, #e8e8e8, #a8a8a8);
}

.rank-item.top-3 {
    background-color: rgba(45, 25, 15, 0.92);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(110, 60, 20, 0.1) 3px,
            rgba(110, 60, 20, 0.1) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(110, 60, 20, 0.08) 3px,
            rgba(110, 60, 20, 0.08) 4px
        );
    border: 1px solid rgba(220, 150, 80, 0.4);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.1);
}

.rank-item.top-3::before {
    background: linear-gradient(to bottom, #cd7f32, #8b4513);
}

.rank-item.is-me {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.rank-item.is-me::after {
    content: '⭐';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.rank-position {
    font-size: 1.3rem;
    font-weight: bold;
    width: 40px;
    text-align: center;
    color: #7a7a8a;
    flex-shrink: 0;
}

.rank-item.top-1 .rank-position {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    font-size: 1.5rem;
}

.rank-item.top-2 .rank-position {
    color: #d0d0d0;
    text-shadow: 0 0 8px rgba(200, 200, 200, 0.6);
}

.rank-item.top-3 .rank-position {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.7);
}

.rank-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rank-name {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1.05rem;
    color: #d8d8e8;
    flex: 1;
}

.rank-item.top-1 .rank-name {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.rank-level {
    font-size: 0.82rem;
    color: #7a7a8a;
    white-space: nowrap;
}

.rank-item.top-1 .rank-level {
    color: rgba(255, 215, 0, 0.6);
}

/* 我的排名条 - 贴在导航栏正上方，与游戏标题风格一致 */
.rank-my-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 20px 8px;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.rank-my-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.7) 15%,
        rgba(255, 215, 0, 1) 50%,
        rgba(255, 215, 0, 0.7) 85%,
        transparent 100%);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rank-my-center {
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', cursive;
    font-size: 1.0rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 0 20px rgba(255, 180, 0, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    letter-spacing: 2px;
}

/* 我的排名默认隐藏，仅在排行页签显示 */
.rank-my-bar {
    display: none;
}
.rank-my-bar.visible {
    display: flex;
}

/* 我的排名仅在排行页签显示 */
.rank-my-bar {
    display: none;
}

.rank-my-bar.visible {
    display: flex;
}

/* 旧样式保留（兼容JS引用） */
.rank-my-info {
    display: none; /* 已迁移到 .rank-my-bar */
}

.rank-my-title {
    display: none;
}

.rank-my-position {
    display: none;
}

.rank-empty {
    text-align: center;
    padding: 50px 20px;
    color: #5a5a6a;
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.rank-footer {
    padding: 3px 15px 8px;
    text-align: center;
}

.rank-footer-tip {
    font-size: 0.7rem;
    color: rgba(100, 100, 120, 0.6);
    letter-spacing: 1px;
}

/* 排行榜加载状态 */
.rank-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 12px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(192, 192, 192, 0.2);
    border-top-color: #c0c0c0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* loading-spinner animation (保留，排行榜加载时使用) */
@keyframes spin {
    to { transform: rotate(360deg); }
}


.loading-text {
    color: #6a6a7a;
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 0.9rem;
}

/* ---- 沉浸式字幕遮罩 ---- */
#intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 30%,
        rgba(20, 10, 30, 0.98) 70%,
        rgba(40, 20, 60, 0.95) 100%);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
}

.intro-content {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1.4rem;
    color: #d0d0d0;
    text-align: left;
    line-height: 2.4;
    letter-spacing: 4px;
    max-width: 340px;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
}

.intro-content .char {
    display: inline-block;
    opacity: 0;
    animation: charGlow 0.8s ease forwards;
}

@keyframes charGlow {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
        text-shadow: 0 0 30px rgba(255, 220, 180, 0.8),
                     0 0 60px rgba(255, 180, 120, 0.6),
                     0 0 90px rgba(255, 150, 100, 0.4);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 0 20px rgba(255, 220, 180, 0.6),
                     0 0 40px rgba(255, 180, 120, 0.4),
                     0 0 60px rgba(255, 150, 100, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
    }
}

.intro-signature {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1.3rem;
    color: #9a9a9a;
    text-align: right;
    width: 100%;
    max-width: 340px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    text-shadow: 0 0 15px rgba(150, 150, 150, 0.4);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.intro-name-prompt {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.intro-prompt-text {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 1.2rem;
    color: #b0b0b0;
    letter-spacing: 2px;
}

.intro-name-input {
    width: 200px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    background: rgba(30, 30, 50, 0.9);
    border: 2px solid #4a5568;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.intro-name-input:focus {
    border-color: #a0a0a0;
}

.intro-name-input::placeholder {
    color: #666;
}

.intro-name-btn {
    padding: 10px 40px;
    font-size: 1.1rem;
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    background: linear-gradient(135deg, #3a3a5a, #4a4a6a);
    border: 2px solid #6a6a8a;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.intro-name-btn:hover {
    background: linear-gradient(135deg, #4a4a6a, #5a5a7a);
    border-color: #8a8aaa;
}

/* ---- 闪电特效 ---- */
/* 全屏闪电遮罩层 - 最高层级，覆盖整个屏幕 */
.lightning-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* 闪电闪光层 - 瞬间照亮整个屏幕效果 */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    animation: lightningFlash 0.15s ease-out forwards;
}

/* 超级闪白效果 - 更强烈的照亮 */
.lightning-super-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.98) 0%, rgba(200,220,255,0.9) 30%, rgba(100,150,255,0.7) 60%, transparent 100%);
    opacity: 0;
    animation: lightningSuperFlash 0.2s ease-out forwards;
    z-index: 99998 !important;
}

@keyframes lightningFlash {
    0% { opacity: 0; }
    10% { opacity: 0.95; }
    20% { opacity: 0.1; }
    30% { opacity: 0.8; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes lightningSuperFlash {
    0% { opacity: 0; transform: scale(1); }
    15% { opacity: 1; transform: scale(1.02); }
    30% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

/* 闪电SVG容器 */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 闪电主路径 - 更粗更亮 */
.lightning-bolt {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
    filter: drop-shadow(0 0 10px #fff) 
            drop-shadow(0 0 20px #87ceeb)
            drop-shadow(0 0 40px #4169e1)
            drop-shadow(0 0 60px #0000ff)
            drop-shadow(0 0 80px #000080);
}

/* 闪电主核心 - 最亮的白色 */
.lightning-core {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 6;
    filter: drop-shadow(0 0 5px #fff)
            drop-shadow(0 0 10px #fff);
}

/* 闪电光晕 - 贯穿整屏的蓝色光柱 */
.lightning-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(135, 206, 235, 0.8) 0%, 
        rgba(65, 105, 225, 0.6) 30%, 
        rgba(30, 60, 180, 0.4) 60%, 
        rgba(0, 0, 139, 0.3) 100%);
    pointer-events: none;
    filter: blur(30px);
    opacity: 0.9;
    transform: translateX(-50%);
    animation: glowPulse 0.2s ease-out forwards;
}

@keyframes glowPulse {
    0% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scaleX(1.3); }
    100% { opacity: 0; transform: translateX(-50%) scaleX(0.5); }
}

/* 闪电环境光 - 把整个屏幕照成蓝色 */
.lightning-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at var(--lightning-x, 50%) 0%, 
        rgba(200, 230, 255, 0.4) 0%, 
        rgba(100, 150, 255, 0.2) 30%, 
        transparent 60%);
    opacity: 0;
    animation: ambientFlash 0.3s ease-out forwards;
    pointer-events: none;
    z-index: 99997 !important;
}

@keyframes ambientFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    40% { opacity: 0.6; }
    60% { opacity: 0.3; }
    100% { opacity: 0; }
}

/* 闪电闪烁类 */
.lightning-flash-active {
    animation: screenFlash 0.3s ease-out forwards;
}

@keyframes screenFlash {
    0% { filter: brightness(1); }
    15% { filter: brightness(5) saturate(1.5); }
    25% { filter: brightness(1.5); }
    35% { filter: brightness(4) saturate(1.3); }
    50% { filter: brightness(1); }
    100% { filter: brightness(1); }
}

/* 屏幕震动效果 */
.screen-shake {
    animation: screenShake 0.4s ease-out forwards;
}

@keyframes screenShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-8px, 5px); }
    20% { transform: translate(8px, -5px); }
    30% { transform: translate(-6px, 4px); }
    40% { transform: translate(6px, -4px); }
    50% { transform: translate(-4px, 3px); }
    60% { transform: translate(4px, -3px); }
    70% { transform: translate(-3px, 2px); }
    80% { transform: translate(3px, -2px); }
    90% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}

/* 全屏强制白光照亮 - 闪电专用 */
.lightning-full-white {
    animation: lightningFullWhite 0.5s ease-out forwards !important;
}

@keyframes lightningFullWhite {
    0% { filter: brightness(1) !important; }
    15% { filter: brightness(8) saturate(0) contrast(1.2) !important; }
    30% { filter: brightness(3) !important; }
    50% { filter: brightness(6) saturate(0) !important; }
    70% { filter: brightness(2) !important; }
    100% { filter: brightness(1) !important; }
}

/* 闪电白盒 - 直接覆盖整个屏幕 */
.lightning-flash-box {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100001 !important;
    pointer-events: none !important;
    background: radial-gradient(ellipse at 50% 0%, 
        rgba(255,255,255,1) 0%, 
        rgba(220,240,255,0.98) 20%, 
        rgba(180,210,255,0.95) 35%,
        rgba(120,160,255,0.9) 50%,
        rgba(80,120,220,0.85) 65%,
        rgba(40,80,180,0.8) 80%,
        rgba(20,40,120,0.7) 100%);
    animation: lightningFlashBox 0.35s ease-out forwards !important;
}

@keyframes lightningFlashBox {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0.6; }
    35% { opacity: 0.95; }
    50% { opacity: 0.4; }
    70% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* 闪电音效提示（震动反馈） */
.lightning-vibrate {
    animation: deviceVibrate 0.5s ease-out;
}

@keyframes deviceVibrate {
    0%, 100% { transform: translate(0, 0); }
    5% { transform: translate(-8px, 5px); }
    10% { transform: translate(8px, -5px); }
    15% { transform: translate(-6px, 4px); }
    20% { transform: translate(6px, -4px); }
    25% { transform: translate(-5px, 3px); }
    30% { transform: translate(5px, -3px); }
    35% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    45% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -1px); }
    55% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 0); }
}

/* 闪电照亮动画 - 短暂变暗 */
@keyframes darkFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 闪电照亮动画 - 瞬间闪白 */
@keyframes brightFlash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---- 战斗力显示样式 - 金属浮雕效果 ---- */
.combat-power-bar {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 15px 4px 15px;
    flex-shrink: 0;
}

.combat-power-bar.visible {
    display: flex;
}

/* 仅在战斗页签激活时显示战斗力栏 */
#battle-tab.active ~ .combat-power-bar {
    display: flex !important;
}

.combat-power-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
    position: relative;
}

.combat-power-wrapper::before,
.combat-power-wrapper::after {
    content: '✦';
    font-size: 0.8rem;
    color: #b8860b;
    text-shadow: 0 0 6px rgba(184, 134, 11, 0.6);
    position: relative;
    top: -2px;
}

/* 战斗力主体容器 */
.combat-power-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    position: relative;
}

/* 战斗力标签 - 金属浮雕效果 */
.combat-power-label {
    font-family: 'STXingkai', 'Xingkai SC', 'Xingkai', '行楷', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 5px;
    margin: 0;
    position: relative;
    text-shadow: 
        0 -1px 0 #b8860b,
        0 1px 0 #5c4a00,
        0 2px 3px rgba(0, 0, 0, 0.5);
}

/* 战斗力数值 - 金属浮雕效果，数字长度自适应 */
.combat-power-value {
    font-family: 'STXingkai', 'Xingkai SC', 'Xingkai', '行楷', sans-serif;
    font-size: clamp(0.9rem, 5vw, 1.6rem);
    font-weight: bold;
    color: #fffacd;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 
        0 -1px 0 #b8860b,
        0 1px 0 #5c4a00,
        0 2px 3px rgba(0, 0, 0, 0.5);
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
}




/* ---- 技能页签样式 ---- */
#skill-tab {
    padding: 15px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 技能页签：击杀数显示栏（紧贴底部导航栏） */
.skill-kill-bar {
    display: none;
    align-items: center;
    padding: 6px 10px 0 10px;
    flex-shrink: 0;
}

.skill-kill-bar.visible {
    display: flex;
}

/* 仅在技能页签激活时显示技能击杀数栏 */
#skill-tab.active ~ .skill-kill-bar {
    display: flex !important;
}

.skill-kill-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.skill-kill-center {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.95rem;
    color: #ffd700;
    padding: 0 15px;
    white-space: nowrap;
}

.skill-header {
    text-align: center;
    margin-bottom: 10px;
}

.skill-section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.6rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 0;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

.skill-card {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.95) 0%, rgba(25, 25, 45, 0.95) 100%);
    border: 2px solid rgba(100, 100, 150, 0.4);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skill-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.skill-icon {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
    min-width: 150px;
}

.skill-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 4px;
}

.skill-desc {
    font-size: 0.8rem;
    color: #8a8a9a;
    margin-bottom: 6px;
}

.skill-level {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 2px;
}

/* 技能效果行：当前效果 + 下级效果 */
.skill-effect-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.skill-effect {
    font-size: 0.85rem;
    color: #6ee7b7;
    font-weight: bold;
}

/* 下级效果（箭头右侧） */
.skill-next-effect {
    font-size: 0.75rem;
    color: #a0a0b0;
}

.skill-next-effect span {
    color: #60d9a0;
    font-weight: bold;
}

.skill-max-hint {
    font-size: 0.7rem;
    color: #f97316;
    margin-top: 2px;
}

.skill-upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #6ee7b7;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.skill-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.35) 0%, rgba(16, 185, 129, 0.35) 100%);
    box-shadow: 0 0 15px rgba(110, 231, 183, 0.4);
    transform: translateY(-1px);
}

.skill-upgrade-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.skill-upgrade-btn:disabled {
    border-color: #555;
    background: rgba(80, 80, 80, 0.1);
    color: #555;
    cursor: not-allowed;
}

.skill-cost {
    font-size: 0.85rem;
    color: #ffd700;
    min-width: 60px;
    text-align: center;
}

/* 技能按钮组：垂直排列按钮和消耗 */
.skill-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* 技能卡片布局调整：按钮组靠右 */
.skill-card {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.95) 0%, rgba(25, 25, 45, 0.95) 100%);
    border: 2px solid rgba(100, 100, 150, 0.4);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 技能列表默认隐藏，仅在技能页签显示 */
.skill-list,
.skill-header {
    display: none !important;
}

/* 仅在技能页签激活时显示技能列表 */
#skill-tab.active .skill-list,
#skill-tab.active .skill-header {
    display: flex !important;
}

#skill-tab.active .skill-header {
    display: block !important;
}

/* ---- 商店页签样式 ---- */
#shop-tab {
    padding: 10px;
    overflow-y: auto;
    height: 100%;
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.9) 0%, rgba(10, 10, 30, 0.95) 100%);
}

#shop-tab.active {
    display: flex;
}

/* 默认隐藏商店内容 */
#shop-tab .shop-header,
#shop-tab .shop-section,
#shop-tab .shop-footer {
    display: none;
}

/* 只在商店页签激活时显示 */
#shop-tab.active .shop-header,
#shop-tab.active .shop-section,
#shop-tab.active .shop-footer {
    display: block;
}

#shop-tab.active .shop-section {
    display: block;
}

/* 商店顶部 */
.shop-header {
    margin-bottom: 8px;
}

.shop-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(60, 40, 100, 0.6) 0%, rgba(40, 30, 80, 0.6) 100%);
    border: 1px solid rgba(200, 150, 255, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 3px 15px rgba(150, 100, 200, 0.2);
}

.shop-section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 150, 255, 0.8);
    margin: 0;
    letter-spacing: 1px;
}

.shop-gem-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 150, 200, 0.4) 0%, rgba(0, 100, 150, 0.5) 100%);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.gem-icon {
    font-size: 1.1rem;
    animation: gemShine 2s ease-in-out infinite;
}

@keyframes gemShine {
    0%, 100% { filter: brightness(1); transform: scale(1); }
    50% { filter: brightness(1.3); transform: scale(1.1); }
}

.gem-count {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1rem;
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    min-width: 25px;
}

/* 商店分区 */
.shop-section {
    margin-bottom: 10px;
}

.shop-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.shop-section-icon {
    font-size: 1rem;
}

.shop-section-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.95rem;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.shop-section-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    text-shadow: none;
    animation: tagPulse 1.5s ease-in-out infinite;
}

.shop-section-tag-green {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

@keyframes tagPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 网格布局 */
.shop-grid限时,
.shop-grid永久 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 商店卡片基础样式 */
.shop-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.shop-card:hover:not(.used) {
    transform: translateY(-2px) scale(1.01);
}

/* 卡片背景 */
.shop-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(50, 40, 80, 0.95) 0%, rgba(30, 25, 60, 0.95) 100%);
    border: 1px solid rgba(200, 180, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* 限时卡片样式 */
.shop-card-限时 .shop-card-bg {
    background: linear-gradient(145deg, rgba(80, 50, 60, 0.95) 0%, rgba(50, 30, 45, 0.95) 100%);
    border-color: rgba(255, 150, 150, 0.3);
}

.shop-card-限时.available:hover .shop-card-bg {
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 0 0 20px rgba(255, 80, 80, 0.4);
}

/* 永久卡片样式 */
.shop-card-永久 .shop-card-bg {
    background: linear-gradient(145deg, rgba(40, 70, 60, 0.95) 0%, rgba(25, 50, 40, 0.95) 100%);
    border-color: rgba(150, 255, 180, 0.3);
}

.shop-card-永久.available:hover .shop-card-bg {
    border-color: rgba(100, 255, 150, 0.6);
    box-shadow: 0 0 20px rgba(80, 255, 120, 0.4);
}

/* 卡片内容 */
.shop-card-content {
    position: relative;
    z-index: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 卡片头部 */
.shop-card-header {
    position: relative;
    margin-bottom: 6px;
}

.shop-item-icon {
    font-size: 2.0rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shop-item-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.6rem;
    padding: 2px 5px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(255, 70, 90, 0.5);
    animation: badgeBounce 1s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* 商品名称 */
.shop-item-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 效果 */
.shop-item-effect {
    font-size: 0.85rem;
    color: #ffd700;
    margin-bottom: 3px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* 时间 */
.shop-item-time {
    font-size: 0.8rem;
    color: #ff9800;
    margin-bottom: 6px;
}

.shop-item-permanent {
    color: #4caf50;
    text-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* 卡片底部 */
.shop-card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-item-price {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.95rem;
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.shop-buy-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4) 0%, rgba(0, 150, 200, 0.4) 100%);
    border: 1px solid rgba(0, 212, 255, 0.6);
    border-radius: 10px;
    padding: 5px 12px;
    color: #fff;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shop-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.7) 0%, rgba(0, 150, 200, 0.7) 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

.shop-buy-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.shop-buy-btn:disabled {
    background: rgba(60, 60, 80, 0.4);
    border-color: rgba(100, 100, 120, 0.4);
    color: #666;
    cursor: not-allowed;
}

/* 已使用状态 */
.shop-card.used {
    opacity: 0.5;
}

.shop-card.used .shop-card-bg {
    filter: grayscale(0.7);
}

.shop-card.used .shop-item-icon {
    filter: grayscale(0.8);
}

/* Buff 生效中状态（限时物品购买后倒计时期间） */
.shop-card.buff-active {
    opacity: 1;
}

.shop-card.buff-active .shop-card-bg {
    filter: none;
    border-color: rgba(255, 120, 80, 0.8);
    box-shadow: 0 0 15px rgba(255, 80, 80, 0.4),
                0 0 30px rgba(255, 80, 80, 0.15),
                inset 0 0 15px rgba(255, 100, 80, 0.1);
    animation: buffCardGlow 2s ease-in-out infinite;
}

@keyframes buffCardGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 80, 80, 0.4),
                    0 0 30px rgba(255, 80, 80, 0.15),
                    inset 0 0 15px rgba(255, 100, 80, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 80, 80, 0.6),
                    0 0 40px rgba(255, 80, 80, 0.25),
                    inset 0 0 20px rgba(255, 100, 80, 0.2);
    }
}

/* 倒计时红色字体 */
.shop-item-time.buff-countdown {
    color: #ff4757;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 生效中按钮亮起 */
.shop-buy-btn.buff-active-btn {
    background: linear-gradient(135deg, rgba(255, 100, 80, 0.6) 0%, rgba(255, 160, 50, 0.6) 100%);
    border-color: rgba(255, 140, 60, 0.9);
    color: #fff;
    cursor: default;
    text-shadow: 0 0 8px rgba(255, 200, 100, 0.8);
    box-shadow: 0 0 12px rgba(255, 120, 60, 0.5);
    animation: buffBtnPulse 2s ease-in-out infinite;
}

@keyframes buffBtnPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 120, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 120, 60, 0.8),
                    0 0 30px rgba(255, 100, 40, 0.3);
    }
}

/* 圆形光圈进度环 */
.shop-buff-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 14px;
    z-index: 0;
    pointer-events: none;
    transition: background 1s linear;
    /* 内部通过 JS 设置 conic-gradient */
}

/* 光圈外层发光效果 */
.shop-card.buff-active .shop-buff-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    filter: blur(4px);
    opacity: 0.5;
    animation: ringGlowPulse 2s ease-in-out infinite;
}

@keyframes ringGlowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 计时器 */
.shop-item-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffa502);
    transition: width 1s linear;
    z-index: 2;
}

.shop-card.used .shop-item-timer {
    background: linear-gradient(90deg, #666, #888);
}

/* 商店页脚 */
.shop-footer {
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
}

.shop-footer-tip {
    font-size: 0.75rem;
    color: #aaa;
}

.shop-footer-tip .highlight {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

/* 商店图标 */
.shop-icon {
    width: 60px;
    height: 60px;
    background: url('../../assets/img/shenmi.jpeg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
}

/* 闪烁星星动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ---- 蓝宝石掉落特效 ---- */
.gem-drop-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: gemDrop 1.3s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

.gem-drop {
    position: relative;
    width: 26px;
    height: 26px;
    /* 菱形宝石造型 */
    transform: rotate(45deg);
    background: radial-gradient(circle at 35% 35%, #b3ecff 0%, #00d4ff 20%, #0099cc 50%, #005577 80%, #003344 100%);
    border-radius: 4px;
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.9),
        0 0 20px rgba(0, 180, 230, 0.6),
        0 0 35px rgba(0, 150, 200, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(150, 230, 255, 0.7);
}

/* 宝石内部切割面装饰 */
.gem-drop::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 100%);
    border-radius: 2px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 宝石内部光芒 */
.gem-drop::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(200, 240, 255, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    animation: gemSparkle 0.8s ease-in-out infinite alternate;
}

@keyframes gemSparkle {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* 宝石数量文字 */
.gem-text {
    color: #00d4ff;
    font-size: 1.0rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow:
        0 0 8px rgba(0, 212, 255, 0.9),
        0 0 15px rgba(0, 180, 230, 0.5),
        1px 1px 0 #005577;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* 宝石掉落动画 */
@keyframes gemDrop {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    30% {
        transform: scale(1.3) translateY(-25px);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateY(55px);
        opacity: 0;
    }
}

/* 宝石掉落时的粒子扩散效果 */
.gem-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gem-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.8);
    animation: gemParticleBurst 0.8s ease-out forwards;
}

@keyframes gemParticleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--px), var(--py)) scale(0);
    }
}
