* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #000428, #004e92);
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 更新公告样式 */
.update-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.update-content {
    background: linear-gradient(135deg, #006400, #00FF00);
    border-radius: 15px;
    padding: 25px;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.update-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 24px;
}

.update-text {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.update-text ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.update-text li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

.update-text li:before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 10px;
}

.close-btn {
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.close-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.close-btn:active {
    transform: translateY(0);
}

/* 更新公告响应式设计 */
@media (max-width: 768px) {
    .update-content {
        padding: 20px;
        width: 95%;
    }
    
    .update-content h3 {
        font-size: 20px;
    }
    
    .update-text {
        padding: 15px;
        max-height: 250px;
    }
    
    .update-text li {
        font-size: 14px;
    }
    
    .close-btn {
        padding: 10px;
        font-size: 16px;
    }
}

/* 登录容器 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(0, 10, 40, 0.95) 0%,
        rgba(0, 30, 60, 0.95) 100%);
    z-index: 1000;
}

.login-panel {
    background: linear-gradient(135deg, 
        rgba(0, 20, 40, 0.95) 0%,
        rgba(0, 40, 80, 0.95) 100%);
    border: 3px solid;
    border-image: linear-gradient(45deg, #00FFFF, #00FF00, #FFFF00, #FF00FF, #00FFFF) 1;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.5),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
    text-align: center;
    min-width: 300px;
    animation: loginPanelGlow 3s ease-in-out infinite alternate;
}

@keyframes loginPanelGlow {
    from {
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.5),
            inset 0 0 40px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 60px rgba(0, 255, 255, 0.7),
            inset 0 0 60px rgba(0, 255, 255, 0.2);
    }
}

.login-panel h2 {
    color: #00FF00;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.login-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #00FF00;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.login-form input:focus {
    outline: none;
    box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.5);
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #006400, #00FF00);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
}

.login-form button:active {
    transform: translateY(0);
}

/* 背景气泡效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* 背景气泡动画容器 */
.background-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 背景气泡样式 */
.background-bubble {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    animation: backgroundBubbleFloat linear infinite;
    opacity: 0;
}

/* 背景气泡动画 */
@keyframes backgroundBubbleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* 游戏容器 */
.game-container {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 10, 40, 0.95) 0%,
        rgba(0, 30, 60, 0.95) 25%,
        rgba(0, 50, 80, 0.95) 50%,
        rgba(0, 30, 60, 0.95) 75%,
        rgba(0, 10, 40, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 60px rgba(0, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.8);
    border: 3px solid;
    border-image: linear-gradient(45deg, #00FFFF, #00FF00, #FFFF00, #FF00FF, #00FFFF) 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: containerGlow 3s ease-in-out infinite alternate;
 } 

@keyframes containerGlow {
    from {
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.4),
            inset 0 0 60px rgba(0, 255, 255, 0.1),
            0 8px 32px rgba(0, 0, 0, 0.8);
    }
    to {
        box-shadow: 
            0 0 60px rgba(0, 255, 255, 0.6),
            inset 0 0 80px rgba(0, 255, 255, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.8);
    }
}

/* 游戏容器内部装饰 */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent);
    animation: containerScan 4s linear infinite;
    z-index: -1;
}

@keyframes containerScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 游戏标题样式 */
.game-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.game-title h1 {
    font-size: 48px;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 
        0 0 10px rgba(0, 255, 0, 0.8),
        0 0 20px rgba(0, 255, 0, 0.6),
        0 0 30px rgba(0, 255, 0, 0.4),
        0 0 40px rgba(0, 255, 0, 0.2);
    margin: 0;
    padding: 10px 0;
    position: relative;
    animation: titlePulse 2s ease-in-out infinite alternate;
    letter-spacing: 5px;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
}

@keyframes titlePulse {
    from {
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(0, 255, 0, 0.8),
            0 0 20px rgba(0, 255, 0, 0.6),
            0 0 30px rgba(0, 255, 0, 0.4),
            0 0 40px rgba(0, 255, 0, 0.2);
    }
    to {
        transform: scale(1.05);
        text-shadow: 
            0 0 15px rgba(0, 255, 0, 1),
            0 0 30px rgba(0, 255, 0, 0.8),
            0 0 45px rgba(0, 255, 0, 0.6),
            0 0 60px rgba(0, 255, 0, 0.4);
    }
}

/* 标题背景效果 */
.game-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.8), transparent);
    animation: titleScan 3s ease-in-out infinite;
}

@keyframes titleScan {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 游戏头部 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(0, 20, 40, 0.95) 0%,
        rgba(0, 40, 80, 0.95) 100%);
    border: 2px solid #00FFFF;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    from {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.4),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.6),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.label {
    color: #666;
}

.value {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 游戏区域 */
.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, 
        rgba(0, 20, 60, 0.95) 0%,
        rgba(0, 40, 80, 0.95) 50%,
        rgba(0, 20, 40, 0.95) 100%);
    border: 2px solid #00FFFF;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 
        inset 0 0 50px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: gameAreaPulse 4s ease-in-out infinite alternate;
}

@keyframes gameAreaPulse {
    from {
        box-shadow: 
            inset 0 0 50px rgba(0, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.3);
    }
    to {
        box-shadow: 
            inset 0 0 70px rgba(0, 255, 255, 0.3),
            0 0 30px rgba(0, 255, 255, 0.5);
    }
}

/* 游戏区域内部装饰 */
.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: areaBackgroundMove 20s ease-in-out infinite;
}

@keyframes areaBackgroundMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, 20px) scale(0.9);
    }
}

/* 泡泡样式 */
.bubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    user-select: none;
    opacity: 1; /* 确保泡泡不透明 */
    will-change: transform, opacity; /* 提示浏览器优化动画 */
    transform: translateZ(0); /* 触发GPU加速 */
}

/* 手机端简化悬停效果 */
@media (max-width: 768px) {
    .bubble:hover {
        transform: scale(1.05); /* 简化悬停放大效果 */
    }
}

/* 彩虹泡泡 */
.rainbow-bubble {
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    opacity: 1; /* 确保彩虹泡泡不透明 */
}

/* 彩虹动画 - 仅在非移动端启用 */
@media (min-width: 769px) {
    .rainbow-bubble {
        animation: rainbow 1s linear infinite;
    }
    
    /* 彩虹动画 */
    @keyframes rainbow {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
}

/* 泡泡戳破动画 */
.bubble.popped {
    animation: pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.8);
        opacity: 0.8;
        filter: brightness(1.5);
    }
    70% {
        transform: scale(2.2);
        opacity: 0.4;
        filter: brightness(2);
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 水花效果 */
.splash {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(0, 255, 0, 0.7) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: splash 0.6s ease-out forwards;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@keyframes splash {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    50% {
        transform: scale(2.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 255, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    animation: particleFly 1s ease-out forwards;
}

@keyframes particleFly {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 彩虹粒子效果 */
.particle.rainbow {
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: rainbowParticleFly 1s ease-out forwards;
}

@keyframes rainbowParticleFly {
    0% {
        transform: scale(1);
        opacity: 1;
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: scale(0) translateY(-150px) rotate(720deg);
        opacity: 0;
        background-position: 0% 50%;
    }
}

/* 金币浮动效果增强 */
.coin-float {
    position: absolute;
    color: #FFD700;
    font-weight: bold;
    font-size: 20px;
    pointer-events: none;
    animation: coinFloat 1s ease-out forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 12;
}

@keyframes coinFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.8);
        opacity: 0.9;
        text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    }
    100% {
        transform: translateY(-70px) scale(2.5);
        opacity: 0;
    }
}

/* 金币浮动效果 */
.coin-float {
    position: absolute;
    color: #FFD700;
    font-weight: bold;
    font-size: 20px;
    pointer-events: none;
    animation: coinFloat 1s ease-out forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes coinFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* 自动点击指示器 */
.auto-click-indicator {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.3);
    border: 2px solid red;
    pointer-events: none;
    opacity: 0;
    animation: autoClick 0.5s ease-out;
}

@keyframes autoClick {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 闪电连接线样式 */
.lightning {
    position: absolute;
    pointer-events: none;
    z-index: 100;
    transform-origin: center;
}

.lightning-path {
    fill: none;
    stroke: #00FFFF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.8));
    animation: lightningFlash 0.3s ease-out forwards;
}

/* 闪电闪烁动画 */
@keyframes lightningFlash {
    0% {
        opacity: 0;
        stroke-width: 1;
    }
    25% {
        opacity: 1;
        stroke-width: 3;
        stroke: #00FFFF;
    }
    50% {
        opacity: 1;
        stroke-width: 2;
        stroke: #FFFF00;
    }
    75% {
        opacity: 1;
        stroke-width: 3;
        stroke: #00FFFF;
    }
    100% {
        opacity: 0;
        stroke-width: 1;
    }
}

/* 被连锁的泡泡高亮效果 */
.chain-target {
    animation: chainTargetGlow 0.5s ease-out forwards;
}

@keyframes chainTargetGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 1), 0 0 40px rgba(255, 255, 0, 0.8);
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
        transform: scale(1);
    }
}

/* 控制按钮 */
.game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.control-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #006400, #00FF00);
    color: #000;
    border: 2px solid #00FF00;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.control-btn:hover {
    background: linear-gradient(45deg, #004d00, #00cc00);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
    border-color: #ffffff;
}

.control-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.control-btn:active::before {
    width: 300px;
    height: 300px;
}

#mute-btn {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    color: #000;
    border-color: #ffffff;
    width: 45px;
    height: 45px;
    font-size: 22px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

#mute-btn:hover {
    background: linear-gradient(45deg, #000000, #333333);
    color: #ffffff;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

#mute-btn:active::before {
    width: 100px;
    height: 100px;
}

/* 登录按钮样式增强 */
.login-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #006400, #00FF00);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    background: linear-gradient(45deg, #004d00, #00cc00);
}

.login-form button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.login-form button:active::before {
    width: 300px;
    height: 300px;
}

/* 关闭按钮样式增强 */
.close-btn {
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.close-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.close-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.close-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 升级面板（效果商城）- 弹出窗口样式 */
.upgrade-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

.upgrade-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.upgrade-panel > .upgrade-content {
    background: linear-gradient(135deg, rgba(0, 30, 0, 0.95), rgba(0, 50, 0, 0.95));
    border: 2px solid #00FF00;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), inset 0 0 50px rgba(0, 255, 0, 0.05);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.upgrade-panel h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #00FF00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 1);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    flex-shrink: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-panel h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #00FF00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 1);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.upgrade-panel h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00FF00, transparent);
    margin: 10px auto 0;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.close-upgrade {
    background: none;
    border: none;
    color: #00FF00;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);
}

.close-upgrade:hover {
    color: #ffffff;
    background-color: rgba(0, 255, 0, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.upgrade-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
}

/* 滚动条样式 */
.upgrade-items::-webkit-scrollbar {
    width: 8px;
}

.upgrade-items::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
}

.upgrade-items::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.6);
    border-radius: 4px;
}

.upgrade-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.8);
}

/* 响应式布局 */
@media (min-width: 768px) {
    .upgrade-items {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .upgrade-panel {
        padding: 25px;
    }
}

.upgrade-item {
    background: linear-gradient(145deg, rgba(0, 30, 0, 0.9), rgba(0, 50, 0, 0.9));
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.upgrade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.upgrade-item:hover::before {
    left: 100%;
}

.upgrade-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    border-color: #00FF00;
}

.upgrade-info h4 {
    margin-bottom: 10px;
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-info h4::before {
    content: "💎";
    font-size: 20px;
}

.upgrade-info p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
    line-height: 1.4;
}

.upgrade-level {
    font-weight: bold;
    color: #FFD700 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upgrade-level::before {
    content: "⭐";
    font-size: 12px;
}

.upgrade-effect {
    color: #00FF00 !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upgrade-effect::before {
    content: "✨";
    font-size: 12px;
}

.upgrade-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #006400, #00FF00);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.upgrade-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.upgrade-btn:active::after {
    width: 300px;
    height: 300px;
}

/* 金币足够时的购买按钮样式 */
.upgrade-btn.affordable {
    background: linear-gradient(45deg, #FF8C00, #FFD700);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

.upgrade-btn.affordable:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
    transform: translateY(-2px);
}

.upgrade-btn:not(.affordable):hover:not(:disabled) {
    background: linear-gradient(45deg, #004d00, #00cc00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

.upgrade-btn:disabled {
    background: linear-gradient(45deg, #333, #555);
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

.upgrade-btn:disabled:hover {
    transform: none;
}

/* 响应式设计 - 针对安卓手机和移动设备优化 */
@media (max-width: 768px) {
    /* 整体容器优化 */
    .game-container {
        padding: 8px;
        margin: 5px;
        border-radius: 10px;
        min-width: auto;
    }
    
    /* 游戏标题优化 */
    .game-title h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    /* 游戏头部优化 */
    .game-header {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .stat {
        font-size: 14px;
        gap: 5px;
    }
    
    /* 游戏区域优化 */
    .game-area {
        height: 45vh;
        min-height: 250px;
        margin-bottom: 15px;
    }
    
    /* 控制按钮区域优化 */
    .game-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .control-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
        text-transform: none;
        letter-spacing: 0;
    }
    
    /* 升级面板优化 */
    .upgrade-panel > .upgrade-content {
        padding: 15px;
        max-height: 80vh;
    }
    
    .upgrade-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .upgrade-panel h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .upgrade-items {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 50vh;
    }
    
    .upgrade-item {
        padding: 12px;
    }
    
    .upgrade-info h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .upgrade-info p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .upgrade-btn {
        padding: 8px;
        font-size: 12px;
        margin-top: 10px;
        text-transform: none;
        letter-spacing: 0;
    }
    
    /* 静音按钮优化 */
    #mute-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* 移除不必要的装饰 */
    .game-container::before {
        animation: none;
        opacity: 0.3;
    }
    
    .game-area::before {
        animation: none;
        opacity: 0.3;
    }
}

/* 玩家意见箱样式 */
.feedback-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

.feedback-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.feedback-content {
    background: linear-gradient(135deg, rgba(0, 30, 0, 0.95), rgba(0, 50, 0, 0.95));
    border: 2px solid #00FF00;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), inset 0 0 50px rgba(0, 255, 0, 0.05);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.feedback-header h3 {
    text-align: center;
    margin-bottom: 0;
    color: #00FF00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 1);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    flex-shrink: 0;
}

.feedback-header h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00FF00, transparent);
    margin: 10px auto 0;
}

.close-feedback {
    background: none;
    border: none;
    color: #00FF00;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);
}

.close-feedback:hover {
    color: #ffffff;
    background-color: rgba(0, 255, 0, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.feedback-form {
    margin-bottom: 30px;
}

.feedback-form textarea {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, rgba(0, 30, 0, 0.9), rgba(0, 50, 0, 0.9));
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.2), 0 0 20px rgba(0, 255, 0, 0.3);
}

.send-feedback-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #006400, #00FF00);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.send-feedback-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.send-feedback-btn:active::after {
    width: 300px;
    height: 300px;
}

.send-feedback-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #004d00, #00cc00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

.feedback-messages {
    flex: 1;
    overflow-y: auto;
}

.feedback-messages h4 {
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-messages h4::before {
    content: "💬";
    font-size: 22px;
}

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

.feedback-item {
    background: linear-gradient(145deg, rgba(0, 30, 0, 0.9), rgba(0, 50, 0, 0.9));
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.feedback-item:hover::before {
    left: 100%;
}

.feedback-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    border-color: #00FF00;
}

.feedback-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feedback-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #006400, #00FF00);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    flex-shrink: 0;
}

.feedback-username {
    color: #00FF00;
    font-weight: bold;
    font-size: 16px;
}

.feedback-time {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

.feedback-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 删除留言按钮样式 */
.delete-feedback-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 4px 8px;
    background: linear-gradient(45deg, #8B0000, #FF4500);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

/* 鼠标悬停时显示删除按钮 */
.feedback-item:hover .delete-feedback-btn {
    opacity: 1;
    visibility: visible;
}

.delete-feedback-btn:hover {
    background: linear-gradient(45deg, #A52A2A, #FF6347);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    transform: translateY(-1px);
}

.delete-feedback-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(255, 69, 0, 0.3);
}

/* 确保留言项相对定位，以便删除按钮绝对定位 */
.feedback-item {
    position: relative;
}

/* 滚动条样式 */
.feedback-messages::-webkit-scrollbar,
.feedback-list::-webkit-scrollbar {
    width: 8px;
}

.feedback-messages::-webkit-scrollbar-track,
.feedback-list::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
}

.feedback-messages::-webkit-scrollbar-thumb,
.feedback-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.6);
    border-radius: 4px;
}

.feedback-messages::-webkit-scrollbar-thumb:hover,
.feedback-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.8);
}

/* 针对小屏幕手机的额外优化 */
@media (max-width: 480px) {
    .game-container {
        padding: 5px;
        margin: 3px;
    }
    
    .game-area {
        height: 40vh;
        min-height: 200px;
    }
    
    .game-header {
        gap: 5px;
        padding: 8px;
    }
    
    .stat {
        font-size: 12px;
    }
    
    .game-title h1 {
        font-size: 28px;
    }
    
    .game-controls {
        gap: 6px;
    }
    
    .control-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    #mute-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* 意见箱移动端优化 */
    .feedback-content {
        padding: 15px;
        margin: 10px;
    }
    
    .feedback-header h3 {
        font-size: 20px;
    }
    
    .feedback-form textarea {
        min-height: 120px;
        font-size: 14px;
        padding: 10px;
    }
    
    .send-feedback-btn {
        font-size: 16px;
        padding: 10px;
    }
}

/* 鼠标轨迹效果 */
.mouse-trails {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.mouse-trail {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 128, 255, 0.5) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    animation: trailFade 1s ease-out forwards;
    transform: translate(-50%, -50%);
}

.mouse-trail.rainbow {
    background: radial-gradient(circle, 
        rgba(255, 0, 0, 0.8) 0%,
        rgba(255, 255, 0, 0.8) 25%,
        rgba(0, 255, 0, 0.8) 50%,
        rgba(0, 255, 255, 0.8) 75%,
        rgba(0, 0, 255, 0.8) 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: rainbowTrailFade 1s ease-out forwards;
}

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

@keyframes rainbowTrailFade {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2) rotate(360deg);
        opacity: 0;
        background-position: 0% 50%;
    }
}

/* 鼠标指针样式 */
@media (min-width: 769px) {
    body {
        cursor: none;
    }
    
    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 128, 255, 0.5) 50%, transparent 100%);
        border: 2px solid rgba(0, 255, 255, 0.8);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease;
    }
    
    .custom-cursor.active {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 25px rgba(0, 255, 255, 1);
    }
}