/* 使用本地字体文件，已在 index.html 中引入 assets/fonts/orbitron.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 无障碍访问跳转链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 3px;
    font-size: 14px;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* 自定义滚动条样式 - 解决Windows Chrome白色滚动条问题 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) rgba(0, 20, 40, 0.5);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.4), rgba(0, 150, 200, 0.6));
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.6), rgba(0, 180, 220, 0.8));
}

*::-webkit-scrollbar-corner {
    background: rgba(0, 20, 40, 0.5);
}

/* 主应用容器 - 三分栏布局 */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧个人成绩区 */
.stats-panel {
    width: 280px;
    background: linear-gradient(145deg, rgba(0, 50, 100, 0.2), rgba(0, 20, 50, 0.4));
    border-right: 2px solid rgba(0, 255, 255, 0.3);
    overflow-y: auto;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 中央游戏区 */
.game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* 右侧单词信息区 */
.word-panel {
    width: 300px;
    background: linear-gradient(145deg, rgba(0, 50, 100, 0.2), rgba(0, 20, 50, 0.4));
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    overflow-y: auto;
    color: white;
}

/* 面板通用样式 */
.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
}

.panel-header h3 {
    margin: 0;
    color: #00ffff;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stats-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.word-content {
    padding: 20px;
}

/* 分数显示 */
.score-display {
    margin-bottom: 25px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.score-item .label {
    font-size: 14px;
    color: #888;
}

.score-item .value {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* 击落/逃脱进度条样式 */
.progress-item {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 12px;
    padding: 8px 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.progress-labels .label {
    font-size: 12px;
    color: #00ffff;
}

/* 游戏面板进度条容器 */
.progress-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 30, 60, 0.8);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

.progress-bar {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.progress-hit {
    background: linear-gradient(90deg, #00dd00, #44ff44);
    transition: width 0.3s ease;
    height: 100%;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
    min-width: 0;
}

.progress-miss {
    background: linear-gradient(90deg, #ff4444, #dd0000);
    transition: width 0.3s ease;
    height: 100%;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    min-width: 0;
}

/* 词库选择器 */
.wordbank-selector {
    margin-bottom: 25px;
}

.wordbank-selector label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-size: 14px;
}

.wordbank-selector select {
    width: 100%;
    padding: 10px;
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.3), rgba(0, 50, 150, 0.5));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.wordbank-selector select:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* 字母库存 */
.letter-inventory h4 {
    margin-bottom: 15px;
    color: #00ffff;
    font-size: 14px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.letter-slot {
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.3), rgba(0, 50, 150, 0.5));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    font-size: 10px;
    color: white;
    transition: all 0.3s ease;
}

.letter-slot.low {
    border-color: rgba(255, 100, 0, 0.8);
    background: linear-gradient(145deg, rgba(255, 50, 0, 0.3), rgba(200, 0, 0, 0.5));
}

.letter-slot.empty {
    border-color: rgba(100, 100, 100, 0.3);
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.3), rgba(30, 30, 30, 0.5));
    color: #666;
}

/* 字母槽位收到弹药时的绿色闪烁效果 */
.letter-slot.ammo-received {
    background: radial-gradient(circle, rgba(0, 255, 0, 0.6) 0%, rgba(0, 200, 0, 0.4) 50%, rgba(0, 150, 0, 0.2) 100%) !important;
    border-color: rgba(0, 255, 0, 0.8) !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.3) !important;
    animation: ammo-pulse 1.2s ease-in-out;
}

@keyframes ammo-pulse {
    0% { 
        background: radial-gradient(circle, rgba(0, 255, 0, 0.8) 0%, rgba(0, 200, 0, 0.6) 50%, rgba(0, 150, 0, 0.4) 100%);
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8), inset 0 0 25px rgba(0, 255, 0, 0.5);
        transform: scale(1.1);
    }
    25% { 
        background: radial-gradient(circle, rgba(0, 255, 0, 0.6) 0%, rgba(0, 200, 0, 0.4) 50%, rgba(0, 150, 0, 0.2) 100%);
        transform: scale(1.05);
    }
    50% { 
        background: radial-gradient(circle, rgba(0, 255, 0, 0.8) 0%, rgba(0, 200, 0, 0.6) 50%, rgba(0, 150, 0, 0.4) 100%);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.9), inset 0 0 30px rgba(0, 255, 0, 0.6);
        transform: scale(1.1);
    }
    75% { 
        background: radial-gradient(circle, rgba(0, 255, 0, 0.4) 0%, rgba(0, 200, 0, 0.2) 50%, rgba(0, 150, 0, 0.1) 100%);
        transform: scale(1.02);
    }
    100% { 
        background: linear-gradient(145deg, rgba(0, 100, 200, 0.3), rgba(0, 50, 150, 0.5));
        box-shadow: none;
        transform: scale(1);
    }
}

/* 当前单词信息 */
.current-word-info {
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 100, 200, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.word-display {
    text-align: center;
    margin-bottom: 10px;
}

.word-text {
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

.word-definition {
    font-size: 12px;
    line-height: 1.4;
    color: #ccc;
    text-align: center;
}

/* 单词历史 */
.word-history h4 {
    margin-bottom: 15px;
    color: #00ffff;
    font-size: 14px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(0, 50, 100, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
}

.history-item.correct {
    border-color: rgba(0, 255, 0, 0.4);
    background: rgba(0, 100, 0, 0.2);
}

.history-item.missed {
    border-color: rgba(255, 100, 0, 0.4);
    background: rgba(100, 50, 0, 0.2);
}

/* 功能按钮区 */
.function-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.function-button {
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.3), rgba(0, 50, 150, 0.5));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    flex: 1;
    height: 40px;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.function-button:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.3), rgba(0, 150, 255, 0.5));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.user-center-button {
    border-color: rgba(255, 165, 0, 0.6);
    color: #ffaa00;
}

.user-center-button:hover {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.3), rgba(255, 140, 0, 0.5));
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.button-text {
    font-size: 10px;
}

/* 弹性分隔符 - 推送底部内容到底部 */
.panel-spacer {
    flex: 1;
}

/* 分割线 */
.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    margin: 15px 20px;
}

/* 游戏控制按钮样式 */
.game-control-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

/* 用户功能按钮区（底部） */
.user-function-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0 20px;
}

/* 面板底部版权信息 */
.panel-footer {
    padding: 10px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 10px;
}

.copyright-info {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.copyright-info .version {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 2px;
}

.copyright-info .company {
    margin-bottom: 1px;
}

.copyright-info .website {
    color: rgba(0, 255, 255, 0.8);
    font-size: 9px;
}

.copyright-info .website a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.copyright-info .website a:hover {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.control-button {
    background: linear-gradient(145deg, rgba(0, 30, 60, 0.8), rgba(0, 50, 100, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    text-align: center;
}

.control-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.control-button.pause-button:hover {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.7), rgba(255, 140, 0, 0.7));
    border-color: rgba(255, 165, 0, 0.7);
}

.control-button.stop-button:hover {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.7), rgba(255, 0, 0, 0.7));
    border-color: rgba(220, 20, 60, 0.7);
}

.control-button.restart-button:hover {
    background: linear-gradient(145deg, rgba(0, 128, 0, 0.7), rgba(34, 139, 34, 0.7));
    border-color: rgba(0, 128, 0, 0.7);
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.control-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(145deg, rgba(0, 30, 60, 0.8), rgba(0, 50, 100, 0.8));
    border-color: rgba(0, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .function-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .function-button {
        width: 100px;
        height: 35px;
    }
    
    .game-control-buttons {
        flex-direction: row;
        gap: 5px;
    }
    
    .control-button {
        padding: 4px 6px;
        min-height: 32px;
    }
    
    .control-button .button-text {
        font-size: 9px;
    }
}

/* 帮助模态框 */
.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.help-content {
    background: linear-gradient(145deg, rgba(0, 20, 50, 0.9), rgba(10, 30, 60, 0.9));
    margin: 3% auto;
    padding: 30px;
    border: 2px solid #00ffff;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

/* 帮助页面标签栏样式 */
.help-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    flex-wrap: wrap;
}

.help-tab-button {
    background: rgba(0, 50, 100, 0.3);
    border: none;
    color: #ccc;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 80px;
}

.help-tab-button:hover {
    background: rgba(0, 100, 200, 0.4);
    color: #ffffff;
}

.help-tab-button.active {
    background: rgba(0, 150, 255, 0.2);
    color: #00ffff;
    border-bottom: 3px solid #00ffff;
}

.help-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.help-tab-content.active {
    display: block;
}

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

/* 词库网格样式 */
.wordbank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wordbank-item {
    background: rgba(0, 100, 200, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease;
}

.wordbank-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 100, 200, 0.2);
}

.wordbank-item h4 {
    margin: 0 0 10px 0;
    color: #00ffff;
    font-size: 16px;
}

.wordbank-item p {
    margin: 0;
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

/* 功能列表样式 */
.function-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.function-item {
    background: rgba(0, 150, 100, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.function-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 150, 100, 0.2);
}

.function-item h4 {
    margin: 0 0 10px 0;
    color: #00ff80;
    font-size: 16px;
}

.function-item p {
    margin: 0;
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

/* 技巧网格样式 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tip-item {
    background: rgba(255, 150, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 150, 0, 0.2);
}

.tip-item h4 {
    margin: 0 0 10px 0;
    color: #ffcc00;
    font-size: 15px;
}

.tip-item p {
    margin: 0;
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

/* 关于页面样式 */
.about-game {
    background: rgba(100, 50, 200, 0.1);
    border: 1px solid rgba(150, 100, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.developer-info {
    background: rgba(0, 200, 150, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.acknowledgments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.ack-item {
    background: rgba(200, 100, 0, 0.1);
    border: 1px solid rgba(255, 150, 50, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.ack-item h4 {
    margin: 0 0 10px 0;
    color: #ffaa00;
    font-size: 16px;
}

.ack-item p {
    margin: 5px 0;
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.ack-item a {
    color: #00ffff;
    text-decoration: none;
    border-bottom: 1px dotted #00ffff;
    transition: all 0.2s ease;
}

.ack-item a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.contact-item {
    background: rgba(0, 100, 150, 0.1);
    border: 1px solid rgba(0, 150, 200, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 10px 0;
    color: #00ccff;
    font-size: 15px;
}

.contact-item a {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #00ffff;
    transition: all 0.2s ease;
}

.contact-item a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateY(-1px);
}

.version-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.version-text {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-style: italic;
}

.help-content h2 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.help-content h3 {
    color: #00ff00;
    margin-top: 20px;
    margin-bottom: 10px;
}

.help-content h4 {
    color: #ffaa00;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 16px;
}

.help-content p, .help-content li {
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-content ul {
    margin-left: 20px;
}

/* 双栏布局 */
.help-columns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.help-left-column, .help-right-column {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

.help-left-column {
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    padding-right: 20px;
}

.help-right-column {
    padding-left: 10px;
}

/* 连击救援功能特殊样式 */
.rescue-feature {
    background: linear-gradient(145deg, rgba(0, 100, 0, 0.2), rgba(0, 50, 100, 0.2));
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.rescue-feature p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 康复功能特殊样式 */
.recovery-feature {
    background: linear-gradient(145deg, rgba(0, 150, 50, 0.2), rgba(50, 200, 100, 0.2));
    border: 1px solid rgba(0, 255, 100, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.recovery-feature p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 响应式设计：小屏幕时改为单栏 */
@media (max-width: 768px) {
    .help-columns {
        flex-direction: column;
    }
    
    .help-left-column {
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .help-right-column {
        padding-left: 0;
    }
    
    .help-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
    }
}

.close-help {
    color: #ff4444;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-help:hover {
    color: #ff8888;
}

/* 用户中心模态框 */
.user-center-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.user-center-content {
    background: linear-gradient(145deg, rgba(0, 20, 50, 0.95), rgba(10, 30, 60, 0.95));
    margin: 2% auto;
    padding: 25px;
    border: 2px solid #ffaa00;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 50px rgba(255, 165, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.user-center-content h2 {
    color: #ffaa00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.close-user-center {
    color: #ff4444;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-user-center:hover {
    color: #ff8888;
}

/* 标签页导航 */
.user-center-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    margin-bottom: 20px;
    gap: 5px;
}

.tab-button {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #ffaa00;
    border-bottom-color: #ffaa00;
}

.tab-button:hover {
    color: #ffaa00;
}

/* 标签页内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #00ff00;
    margin: 20px 0 15px 0;
    font-size: 18px;
}

.tab-content h4 {
    color: #00aaff;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

/* 学习进度样式 */
.wordbank-progress-list {
    margin-bottom: 25px;
}

.wordbank-progress-item {
    background: linear-gradient(145deg, rgba(0, 50, 100, 0.3), rgba(0, 30, 80, 0.5));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.wordbank-name {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
}

.progress-bar-container {
    margin: 10px 0;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    position: relative;
}

.progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-segment.mastered {
    background: linear-gradient(90deg, #00ff00, #00cc00);
}

.progress-segment.weak {
    background: linear-gradient(90deg, #ff4444, #cc0000);
}

.progress-segment.encountered {
    background: linear-gradient(90deg, #ffaa00, #cc8800);
}

.progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    color: #ccc;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-color.mastered {
    background: linear-gradient(90deg, #00ff00, #00cc00);
}

.legend-color.weak {
    background: linear-gradient(90deg, #ff4444, #cc0000);
}

.legend-color.encountered {
    background: linear-gradient(90deg, #ffaa00, #cc8800);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

/* 总体统计样式 */
.overall-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: linear-gradient(145deg, rgba(0, 100, 0, 0.2), rgba(0, 50, 100, 0.2));
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #00ff00;
}

/* 词汇管理样式 */
.vocabulary-list {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    /* 滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.6) rgba(0, 0, 0, 0.2);
}

/* 自定义滚动条样式 (Webkit) */
.vocabulary-list::-webkit-scrollbar {
    width: 6px;
}

.vocabulary-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

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

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

/* 词汇信息提示样式 */
.vocabulary-info {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 100, 200, 0.2);
    border-radius: 5px;
    border-left: 3px solid #00ffff;
}

.info-text {
    margin: 0;
    font-size: 13px;
    color: #00ffff;
    font-weight: 500;
}

.vocabulary-item {
    background: rgba(0, 50, 100, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.word-info {
    flex: 1;
}

.vocabulary-item .word-text {
    font-weight: bold;
    color: #00ffff;
    font-size: 16px;
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: 120px;
}

.vocabulary-item .word-definition {
    font-size: 12px;
    color: #ccc;
    flex: 1;
    margin-bottom: 0;
}

.word-actions button {
    background: #ff4444;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.word-actions button:hover {
    background: #cc3333;
}

/* 错词康复系统样式 */
.word-recovery {
    margin: 5px 0;
    font-size: 12px;
    font-weight: bold;
}

.recovery-progress {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.recovery-complete {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    animation: pulse 2s infinite;
}

.recovery-none {
    color: #888;
    font-style: italic;
}

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

/* 错词本表格样式 */
.weak-words-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.weak-words-table th {
    background: rgba(0, 100, 200, 0.3);
    color: #00ffff;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.weak-words-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    vertical-align: middle;
}

.weak-words-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.word-cell {
    min-width: 100px;
}

.word-cell strong {
    color: #00ffff;
    font-size: 15px;
}

.wordbank-cell {
    color: #ccc;
    font-size: 12px;
    min-width: 80px;
}

.count-cell, .error-cell {
    text-align: center;
    width: 80px;
    font-weight: bold;
}

.count-cell {
    color: #ffaa00;
}

.error-cell {
    color: #ff6666;
}

.progress-cell {
    text-align: center;
    width: 90px;
    font-weight: bold;
    color: #00ff00;
}

.status-cell {
    min-width: 120px;
}

.action-cell {
    text-align: center;
    width: 80px;
}

.remove-btn {
    background: #ff4444;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #cc3333;
}

/* 响应式调整 */
@media (max-width: 800px) {
    .weak-words-table {
        font-size: 12px;
    }
    
    .weak-words-table th,
    .weak-words-table td {
        padding: 8px 4px;
    }
    
    .status-cell {
        min-width: 80px;
    }
    
    .status-cell span {
        font-size: 10px;
    }
}

.add-word-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-word-form input {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.add-word-form button {
    background: #00aa00;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

/* 设置样式 */
.settings-group {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 50, 100, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.settings-group label {
    display: block;
    margin-bottom: 10px;
    color: #00ffff;
    font-size: 14px;
}

.settings-group select {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.settings-group select option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 8px;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 14px !important;
}

/* 确保option在不同浏览器中的兼容性 */
.settings-group select:focus option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
}

.settings-group input[type="checkbox"] {
    margin-right: 8px;
}

.settings-save {
    margin: 20px 0;
    text-align: center;
}

.save-status {
    margin-left: 10px;
    font-size: 14px;
}

.save-status.success {
    color: #00ff00;
}

.save-status.error {
    color: #ff4444;
}

.data-management {
    margin-top: 25px;
    padding: 20px;
    background: rgba(50, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.action-btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #0066cc;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.action-btn.danger {
    background: #cc0000;
}

.action-btn:hover {
    opacity: 0.8;
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* 游戏统计样式 */
.chart-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.game-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.game-record {
    background: rgba(0, 50, 100, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-content {
        width: 98%;
        margin: 1% auto;
        padding: 15px;
    }
    
    .user-center-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 100px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .overall-stats {
        grid-template-columns: 1fr;
    }
    
    .add-word-form {
        flex-direction: column;
    }
}

/* 首次设置引导模态框 */
.setup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 20, 0.95);
    backdrop-filter: blur(10px);
}

.setup-content {
    background: linear-gradient(145deg, rgba(0, 30, 60, 0.98), rgba(10, 40, 80, 0.98));
    margin: 3% auto;
    padding: 30px;
    border: 3px solid #ffaa00;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 50px rgba(255, 165, 0, 0.4);
    text-align: center;
}

.setup-content h2 {
    color: #ffaa00;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

.setup-intro {
    font-size: 18px;
    color: #00ffff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.wordbank-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wordbank-option {
    background: linear-gradient(145deg, rgba(0, 50, 100, 0.4), rgba(0, 30, 80, 0.6));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
}

.wordbank-option:hover {
    border-color: #ffaa00;
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.3));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
}

.wordbank-option.selected {
    border-color: #00ff00;
    background: linear-gradient(145deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.3));
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.option-icon {
    font-size: 48px;
    margin-right: 20px;
    min-width: 60px;
}

.option-info h3 {
    color: #00ffff;
    font-size: 20px;
    margin-bottom: 8px;
}

.option-info p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
}

.setup-actions {
    margin-top: 30px;
}

.setup-btn {
    background: linear-gradient(145deg, #00aa00, #008800);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 170, 0, 0.3);
}

.setup-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #00cc00, #00aa00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 170, 0, 0.4);
}

.setup-btn:disabled {
    background: linear-gradient(145deg, #666, #444);
    cursor: not-allowed;
    opacity: 0.6;
}

.setup-note {
    color: #888;
    font-size: 12px;
    margin-top: 15px;
    font-style: italic;
}

@media (max-width: 768px) {
    .setup-content {
        width: 95%;
        padding: 20px;
    }
    
    .wordbank-options {
        grid-template-columns: 1fr;
    }
    
    .wordbank-option {
        padding: 15px;
    }
    
    .option-icon {
        font-size: 36px;
        margin-right: 15px;
    }
}

#game-container {
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1e 70%, #000000 100%);
    overflow: hidden;
    box-shadow: 
        inset 0 0 100px rgba(0, 255, 255, 0.1);
    position: relative;
}

#game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6), transparent);
    background-size: 200px 200px, 300px 300px, 100px 100px;
    animation: twinkle 20s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 太空主题的HUD界面样式 */
.hud-panel {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 100, 200, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.ammo-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 8px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(0, 50, 100, 0.2), rgba(0, 20, 50, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.ammo-slot {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.3), rgba(0, 50, 150, 0.5));
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.2),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.ammo-slot:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        inset 0 0 25px rgba(0, 255, 255, 0.2);
}

.ammo-slot.low-ammo {
    border-color: rgba(255, 100, 0, 0.8);
    background: linear-gradient(145deg, rgba(255, 50, 0, 0.3), rgba(200, 0, 0, 0.5));
    box-shadow: 
        0 0 15px rgba(255, 100, 0, 0.3),
        inset 0 0 15px rgba(255, 100, 0, 0.1);
}

.ammo-slot.empty {
    border-color: rgba(100, 100, 100, 0.5);
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.3), rgba(30, 30, 30, 0.5));
    box-shadow: none;
}

/* 粒子效果动画 */
@keyframes particle-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    animation: particle-float 3s infinite;
    pointer-events: none;
}

/* 激光充能效果 */
@keyframes laser-charge {
    0% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 50px rgba(0, 255, 255, 0.4); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
}

.charging {
    animation: laser-charge 0.5s ease-in-out;
}

/* 游戏统计增强样式 */
.session-stats {
    background: rgba(0, 30, 60, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.session-stats h4 {
    margin: 0 0 15px 0;
    color: #00ffff;
    font-size: 18px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.stat-card {
    background: rgba(0, 50, 100, 0.5);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 50, 100, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.stat-card .stat-label {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

/* 图表容器增强样式 */
.chart-container {
    background: rgba(0, 30, 60, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* 得分趋势图样式 */
#score-chart {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}

/* 游戏记录列表增强样式 */
.game-history-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px 0;
}

.game-record {
    background: rgba(0, 50, 100, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.game-record:hover {
    background: rgba(0, 50, 100, 0.7);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

.game-record strong {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

.game-record small {
    color: #ffaa00;
}

