/* 全局样式定义 (Global Style Definitions) */
:root {
    --primary-color: #0B3D91;
    --secondary-color: #1E88E5;
    --accent-color: #00BFFF;
    --dark-color: #1A1A2E;
    --neon-glow: 0 0 5px rgba(0, 191, 255, 0.5), 0 0 20px rgba(0, 191, 255, 0.3);
}

/* 整体页面布局 (Overall Page Layout) */
body {
    background-color: var(--dark-color);
    color: white;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><rect width="100" height="100" fill="none" stroke="%231E88E5" stroke-width="0.5" stroke-dasharray="5,5" /></svg>');
}

/* 赛博朋克霓虹元素 (Cyberpunk Neon Elements) */
.neon-text {
    text-shadow: var(--neon-glow);
}

.neon-border {
    box-shadow: var(--neon-glow);
    border: 1px solid var(--accent-color);
}

/* 语言切换样式 (Language Toggle Styles) */
/* 修改：默认显示英文内容，隐藏其他语言内容 */
.lang-zh, .lang-ja, .lang-ko, .lang-es {
    display: none;
}

.lang-en {
    display: block;
}

.hidden {
    display: none !important;
}

/* 自定义动画效果 (Custom Animation Effects) */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 191, 255, 0.9), 0 0 30px rgba(0, 191, 255, 0.7);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
    }
}

h1, h2 {
    animation: glow 3s infinite;
}

/* 响应式设计调整 (Responsive Design Adjustments) */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .game-container {
        height: 60vh;
    }
}

/* 游戏区域样式 (Game Area Styles) */
#game-frame {
    transition: all 0.3s ease;
}

/* 全屏模式样式 (Fullscreen Mode Styles) */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000;
}

/* 按钮悬停效果 (Button Hover Effects) */
button, .btn {
    transition: all 0.2s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

/* 特殊样式组件 (Special Style Components) */
.cyberpunk-card {
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.9), rgba(26, 26, 46, 0.95));
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.cyberpunk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.7), 0 0 30px rgba(0, 191, 255, 0.4);
}

/* 进度条样式 (Progress Bar Styles) */
progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
}

progress::-webkit-progress-bar {
    background-color: var(--dark-color);
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 5px;
} 