/* 导入emoji字体 */
@font-face {
    font-family: 'Segoe';
    src: url('font/seguiemj.ttf') format('truetype');
    font-display: swap;
    /* 扩展Unicode范围，覆盖游戏中所有使用的emoji */
    unicode-range: 
        U+1F300-1F5FF,  /* 符号和象形文字 */
        U+1F600-1F64F,  /* 表情符号 */
        U+1F680-1F6FF,  /* 交通和地图符号 */
        U+1F700-1F77F,  /* 炼金术符号 */
        U+1F780-1F7FF,  /* 几何形状扩展 */
        U+1F800-1F8FF,  /* 补充箭头C */
        U+1F900-1F9FF,  /* 补充符号和象形文字 */
        U+1FA00-1FA6F,  /* 扩展A */
        U+1FA70-1FAFF,  /* 符号和象形文字扩展A */
        U+2600-26FF,    /* 杂项符号 */
        U+2700-27BF,    /* 装饰符号 */
        U+FE00-FE0F,    /* 变体选择器 */
        U+1F004,        /* 麻将牌 */
        U+1F0CF,        /* 扑克牌 */
        U+1F18E,        /* 负方形拉丁文大写字母AB */
        U+3030,         /* 波浪线 */
        U+00A9,         /* 版权符号 */
        U+00AE;         /* 注册商标符号 */
}

/* ==================== Loading 界面样式 ==================== */
#loadingPage {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #2d3a4a 50%, #1a2332 75%, #0f1419 100%);
    position: relative;
    overflow: hidden;
}

#loadingPage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 0 20px;
}

.loading-logo {
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.5));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #40e0d0, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.loading-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    letter-spacing: 1px;
}

.loading-indicator {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top: 2px solid #40e0d0;
    border-right: 2px solid #40e0d0;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-bottom: 2px solid #00ffff;
    border-left: 2px solid #00ffff;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    animation-duration: 1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #87ceeb, #add8e6, #87ceeb);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    margin-top: 8px;
}

.loading-text {
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    margin-top: 5px;
}

.loading-status {
    font-size: 14px;
    color: rgba(64, 224, 208, 0.9);
    font-weight: bold;
    min-height: 20px;
    opacity: 0.8;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Loading 界面淡出动画 */
#loadingPage.loading-complete {
    animation: loadingFadeOut 1s ease-in-out forwards;
}

@keyframes loadingFadeOut {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    100% { 
        opacity: 0; 
        transform: scale(1.05);
        pointer-events: none;
    }
}

/* 确保字体立即应用 */
.font-loaded {
    font-family: 'Segoe', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe Symbol', 'Symbola', sans-serif;
}

/* 为Edge浏览器添加更好的emoji字体fallback */
body, * {
    font-family: 'Segoe', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', sans-serif;
}

/* 只保留深色主题 */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --accent-primary: #64ffda;
    --accent-secondary: #536dfe;
    --accent-tertiary: #ff6b6b;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁止文本选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 字体渲染优化 */
* {
    font-variant-ligatures: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 字体加载状态样式 */


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 页面容器 */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 1;
}

.page.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* 胜利页面和游戏结束页面需要更高的z-index以显示在技能UI上方 */
#victoryPage.active {
    z-index: 300;
}

/* 星空背景容器 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 起始页面样式 */
.content-center {
    text-align: center;
    z-index: 2;
    position: relative;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.sub-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: slideInUp 1s ease 0.5s both;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px var(--accent-primary)); }
    to { filter: drop-shadow(0 0 20px var(--accent-secondary)); }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 按钮样式 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* 设置页面样式 */
.settings-container,
.tutorial-container,
.victory-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 500px;
    width: 90%;
    animation: slideInUp 0.5s ease;
}

.settings-container h2,
.tutorial-container h2,
.victory-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: none;
}

/* 操作说明页面样式 */
.tutorial-content {
    margin-bottom: 2rem;
}

.tutorial-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.tutorial-section h3 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.tutorial-section p {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

/* 游戏页面样式 */
#gamePage {
    flex-direction: column;
    padding: 0;
}

.game-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.ui-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.player-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-bar,
.exp-bar {
    width: 100px;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    transition: width 0.3s ease;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.current-tech {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.tech-name {
    font-weight: bold;
    color: var(--accent-primary);
}

.game-controls {
    display: flex;
    gap: 0.5rem;
}

#gameCanvas {
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #001122, #000011);
    cursor: crosshair;
}

/* 升级面板样式 */
.upgrade-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 200;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.upgrade-panel.hidden {
    display: none;
    visibility: hidden;
}

.upgrade-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.upgrade-option {
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 修复升级选择面板鼠标悬浮背景色 */
.upgrade-option:hover {
    border-color: var(--accent-primary);
    background: #2a2a2a; /* 深色背景 */
    color: white;
    transform: scale(1.02);
}

/* 基础升级选项样式 */
.upgrade-option.basic {
    border-left: 4px solid #4f46e5; /* 蓝色左边框 */
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
}

.upgrade-option.basic:hover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.1));
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* 高级升级选项样式 */
.upgrade-option.advanced {
    border-left: 4px solid #f59e0b; /* 金色左边框 */
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    position: relative;
}

.upgrade-option.advanced:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* 高级升级选项的特殊效果 */
.upgrade-option.advanced::before {
    content: "⭐";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 14px;
    color: #f59e0b;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes bounceIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
    }
    70% { 
        transform: translate(-50%, -50%) scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* 暂停菜单样式 */
.pause-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 200;
    text-align: center;
}

.pause-menu.hidden {
    display: none;
}

/* 修复暂停菜单间距 */
.pause-menu h3 {
    margin-bottom: 1.5rem; /* 增加底部间距 */
}

.pause-menu .button-group {
    margin-top: 1rem; /* 增加顶部间距 */
}

/* 胜利页面样式 */
.victory-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.victory-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.victory-stats {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.victory-stats p {
    margin-bottom: 0.5rem;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 新手引导模态框样式 */
.guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.guide-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.guide-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.3);
    overflow: hidden;
    animation: guideSlideIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes guideSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.guide-header {
    padding: 20px 30px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    text-align: center;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.guide-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.guide-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--bg-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.guide-body {
    padding: 30px;
    text-align: center;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* 指南模态框滚动条样式 */
.guide-body::-webkit-scrollbar {
    width: 8px;
}

.guide-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.guide-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.guide-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Firefox 滚动条样式 */
.guide-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.guide-page {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.guide-page.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.guide-icon {
    font-family: 'Segoe';
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.guide-page h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-weight: bold;
}

.guide-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.control-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.control-key {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-primary);
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent-primary);
}

.control-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guide-text {
    text-align: center;
}

.guide-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.evolution-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.timeline-item {
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.guide-enemies {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.enemy-type {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.enemy-type:hover {
    border-color: var(--accent-tertiary);
    transform: translateX(5px);
}

.enemy-icon {
    font-family: 'Segoe', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', sans-serif;
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.enemy-info {
    flex: 1;
    text-align: left;
}

.enemy-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.enemy-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guide-upgrades {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upgrade-category h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.upgrade-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.upgrade-item {
    padding: 10px 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

.guide-footer {
    padding: 20px 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.guide-footer .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Emoji 字符特殊样式 */
.emoji, .guide-icon, .enemy-icon, .control-key, .upgrade-icon, .tech-name, .stat-label,.upgrade-options ,.btn-small ,.currentTech {
    font-family: 'Segoe', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', 'EmojiOne Color', sans-serif;
    font-variant-emoji: emoji;
}

/* 确保所有按钮中的 emoji 正确显示 */
.btn, .control-desc, .enemy-name, .timeline-item ,.btn-primary {
    font-family: 'Segoe', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', sans-serif;
}

/* 游戏标题和文本中的 emoji */
.main-title, .sub-title, h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Microsoft YaHei', 'Segoe Symbol', 'Symbola', sans-serif;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .ui-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .player-stats {
        justify-content: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .guide-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .guide-header,
    .guide-body,
    .guide-footer {
        padding: 15px 20px;
    }
    
    .guide-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guide-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .guide-footer .btn {
        width: 100%;
    }
}

/* 游戏特效动画 */
@keyframes explosion {
    0% { 
        transform: scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: scale(2); 
        opacity: 0; 
    }
}

.explosion {
    animation: explosion 0.3s ease-out;
}

@keyframes damage {
    0%, 100% { 
        filter: none; 
    }
    50% { 
        filter: hue-rotate(180deg) brightness(1.5); 
    }
}

.damage-effect {
    animation: damage 0.2s ease;
}
/* 最佳记录样式 */
.best-record {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.best-record h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.best-record p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 胜利页面文本居中 */
.victory-container {
    text-align: center;
}

.victory-stats {
    text-align: center;
}

.victory-stats p {
    text-align: center;
}

.new-record {
    color: #ffd700;
    font-weight: bold;
    margin-top: 1rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 设置页面重置按钮样式 */
.reset-group {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.reset-button {
    width: 100%;
    margin: 0 auto;
}

/* 彩虹MAX指示器动画 */
@keyframes rainbow-pulse {
    0% {
        filter: hue-rotate(0deg) brightness(1.2) saturate(1.5);
        transform: scale(1);
    }
    100% {
        filter: hue-rotate(360deg) brightness(1.5) saturate(2);
        transform: scale(1.1);
    }
}

/* 平滑淡入动画 */
@keyframes fadeIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 平滑淡出动画 */
@keyframes fadeOut {
    0% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.95); 
    }
}

/* 技能升级面板专用动画 */
.skill-upgrade-panel {
    animation: skillPanelFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.skill-upgrade-panel.closing {
    animation: skillPanelFadeOut 0.25s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards !important;
}

@keyframes skillPanelFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes skillPanelFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
