/* ==================== 细胞纪元：觉醒 - 主样式表 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #00d4ff; --secondary: #ff6b9d; --accent: #ffd93d;
    --dark: #0a0e27; --darker: #050818; --light: #e0e6ed;
    --success: #00e676; --danger: #ff1744; --warning: #ff9100;
    --purple: #b388ff; --teal: #1de9b6;
    --glass: rgba(10, 14, 39, 0.85); --glass-border: rgba(0, 212, 255, 0.2);
    --glass-hover: rgba(0, 212, 255, 0.15);
    --font: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
}

/* ==================== 动画 ==================== */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.02); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); } 50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes particle { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes successPulse { 0% { box-shadow: 0 0 0 0 rgba(0,230,118,0.4); } 70% { box-shadow: 0 0 0 15px rgba(0,230,118,0); } 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); } }
@keyframes wrongShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ==================== 基础 ==================== */
body {
    font-family: var(--font);
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ==================== 粒子背景 ==================== */
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; opacity: 0.6; animation: particle linear infinite; }

/* ==================== 伤害特效 ==================== */
.damage-effect { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,23,68,0.2); pointer-events: none; z-index: 500; opacity: 0; transition: opacity 0.3s; }
.damage-effect.active { opacity: 1; }

/* ==================== 开始画面 ==================== */
#start-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--darker); z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px;
}
.game-title {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px; animation: float 3s ease-in-out infinite;
}
.game-subtitle { font-size: 18px; color: rgba(224,230,237,0.7); margin-bottom: 10px; }
.game-version { font-size: 12px; color: rgba(224,230,237,0.3); margin-bottom: 40px; }
.start-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark); border: none; padding: 15px 50px; font-size: 20px;
    border-radius: 30px; cursor: pointer; font-weight: bold;
    transition: all 0.3s ease; animation: glow 2s ease-in-out infinite;
    font-family: var(--font);
}
.start-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0,212,255,0.4); }
.start-btn:disabled { opacity: 0.5; pointer-events: none; animation: none; }
.name-input {
    background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border);
    color: var(--light); padding: 12px 20px; border-radius: 10px;
    font-size: 16px; margin-bottom: 20px; width: 280px; text-align: center;
    font-family: var(--font);
}
.name-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(0,212,255,0.2); }

/* 快捷键提示 */
.shortcut-hints { margin-top: 30px; font-size: 13px; color: rgba(224,230,237,0.4); line-height: 2; }

/* 底部版权 */
.footer-bottom { margin-top: 40px; font-size: 12px; color: rgba(224,230,237,0.25); line-height: 1.8; }
.footer-bottom a { color: rgba(224,230,237,0.25); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* 公众号二维码悬停 */
.qr-trigger { color: rgba(0,212,255,0.7); cursor: default; position: relative; display: inline-block; }
.qr-trigger:hover { color: var(--secondary); }
.qr-tooltip {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: rgba(10,20,40,0.97); border: 1px solid var(--primary);
    border-radius: 10px; padding: 10px; text-align: center; white-space: nowrap;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.qr-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 8px solid transparent; border-top-color: var(--primary);
}
.qr-tooltip img { display: block; border-radius: 6px; }
.qr-tooltip span { display: block; margin-top: 6px; font-size: 12px; color: rgba(224,230,237,0.8); }
.qr-trigger:hover .qr-tooltip { opacity: 1; visibility: visible; }

/* 操作说明按钮 */
.guide-btn {
    background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
    color: var(--light); padding: 12px 36px; font-size: 16px;
    border-radius: 25px; cursor: pointer; margin-top: 12px;
    transition: all 0.3s; font-family: var(--font);
}
.guide-btn:hover {
    background: rgba(0,212,255,0.15); border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==================== 游戏容器 ==================== */
#game-container {
    position: relative; z-index: 1; max-width: 960px; margin: 0 auto;
    padding: 20px; min-height: 100vh;
}

/* ==================== 顶部状态栏 ==================== */
#status-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 15px 20px; margin-bottom: 20px;
    backdrop-filter: blur(10px); animation: fadeIn 0.5s ease;
    flex-wrap: wrap; gap: 10px;
}
.status-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.status-icon { font-size: 20px; }
.hp-bar, .atp-bar, .xp-bar {
    width: 80px; height: 8px; background: rgba(255,255,255,0.1);
    border-radius: 4px; overflow: hidden;
}
.hp-fill { height: 100%; background: linear-gradient(90deg, var(--danger), var(--secondary)); border-radius: 4px; transition: width 0.5s ease; }
.atp-fill { height: 100%; background: linear-gradient(90deg, var(--warning), var(--accent)); border-radius: 4px; transition: width 0.5s ease; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 4px; transition: width 0.5s ease; }

/* 状态栏按钮区 */
.status-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn {
    background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border);
    color: var(--light); padding: 8px 16px; border-radius: 8px;
    cursor: pointer; font-size: 13px; font-family: var(--font);
    transition: all 0.3s; white-space: nowrap;
}
.menu-btn:hover { background: rgba(0,212,255,0.2); border-color: var(--primary); }
.menu-btn.active { background: rgba(0,212,255,0.3); border-color: var(--primary); }
.menu-btn.muted { background: rgba(255,100,100,0.15); border-color: rgba(255,100,100,0.4); color: rgba(255,100,100,0.8); }

/* ==================== 场景区 ==================== */
#scene {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 30px; margin-bottom: 20px;
    min-height: 260px; backdrop-filter: blur(10px); animation: fadeIn 0.6s ease;
}
.scene-title { font-size: 22px; color: var(--primary); margin-bottom: 15px; text-shadow: 0 0 10px rgba(0,212,255,0.3); display: flex; align-items: center; gap: 10px; }
.scene-image {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,107,157,0.1));
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 70px; margin-bottom: 20px;
    border: 1px solid var(--glass-border); animation: float 3s ease-in-out infinite;
}
.scene-image img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 12px;
}

/* ==================== 对话系统 ==================== */
.dialogue-box {
    background: rgba(0,0,0,0.3); border-left: 3px solid var(--primary);
    padding: 15px 20px; margin: 12px 0; border-radius: 0 10px 10px 0;
    position: relative; animation: slideIn 0.4s ease;
}
.dialogue-box.system { border-left-color: var(--teal); }
.dialogue-box.boss { border-left-color: var(--danger); }
.dialogue-box.npc { border-left-color: var(--accent); }
.question-box {
    border-left-color: var(--accent);
    background: rgba(255,215,0,0.08);
}
.dialogue-box.hidden { border-left-color: var(--purple); }
.speaker { color: var(--accent); font-weight: bold; margin-bottom: 5px; font-size: 14px; }
.speaker.system { color: var(--teal); }
.speaker.boss { color: var(--danger); }
.dialogue-text { line-height: 1.8; font-size: 15px; }
.typing-cursor { display: inline-block; width: 2px; height: 18px; background: var(--primary); margin-left: 2px; animation: blink 0.8s infinite; vertical-align: middle; }

/* ==================== 选项区 ==================== */
#choices { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.choice-btn {
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,212,255,0.05));
    border: 1px solid var(--glass-border); color: var(--light);
    padding: 15px 20px; border-radius: 12px; cursor: pointer;
    font-size: 15px; text-align: left; transition: all 0.3s ease;
    position: relative; overflow: hidden; font-family: var(--font);
}
.choice-btn:hover { background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.1)); border-color: var(--primary); transform: translateX(5px); box-shadow: 0 0 15px rgba(0,212,255,0.2); }
.choice-btn.correct { background: linear-gradient(135deg, rgba(0,230,118,0.2), rgba(0,230,118,0.1)); border-color: var(--success); animation: successPulse 0.6s ease; }
.choice-btn.wrong { background: linear-gradient(135deg, rgba(255,23,68,0.2), rgba(255,23,68,0.1)); border-color: var(--danger); animation: wrongShake 0.5s ease; }
.choice-btn.disabled { opacity: 0.5; pointer-events: none; }
.choice-label { display: inline-block; width: 28px; height: 28px; background: var(--primary); color: var(--dark); border-radius: 50%; text-align: center; line-height: 28px; font-weight: bold; margin-right: 10px; font-size: 14px; flex-shrink: 0; }

/* ==================== 题目解析面板 ==================== */
.explanation-panel {
    background: rgba(255,217,61,0.08); border: 1px solid rgba(255,217,61,0.3);
    border-radius: 12px; padding: 15px; margin-top: 15px;
    animation: fadeIn 0.3s ease; display: none;
}
.explanation-panel.show { display: block; }
.explanation-title { color: var(--accent); font-weight: bold; margin-bottom: 8px; font-size: 14px; }
.explanation-text { line-height: 1.7; font-size: 14px; color: rgba(224,230,237,0.85); }

/* ==================== 道具/背包面板 ==================== */
#inventory { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.item-tag {
    background: rgba(255,217,61,0.1); border: 1px solid rgba(255,217,61,0.3);
    padding: 8px 12px; border-radius: 8px; font-size: 13px;
    display: flex; align-items: center; gap: 5px; animation: slideIn 0.3s ease;
}

/* ==================== 五册教材Tab ==================== */
.book-tabs {
    display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto;
    border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border);
}
.book-tab {
    flex: 1; min-width: 80px; padding: 14px 10px; text-align: center;
    background: var(--glass); color: rgba(224,230,237,0.6); cursor: pointer;
    transition: all 0.3s; font-size: 13px; font-family: var(--font);
    border: none; border-right: 1px solid var(--glass-border);
    white-space: nowrap;
}
.book-tab:last-child { border-right: none; }
.book-tab:hover { background: rgba(0,212,255,0.15); color: var(--light); }
.book-tab.active { background: rgba(0,212,255,0.25); color: var(--primary); font-weight: bold; }
.book-tab .book-emoji { display: block; font-size: 24px; margin-bottom: 4px; }
.book-tab .book-emoji img { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }
.book-tab .book-name { font-size: 12px; }

/* ==================== 章节选择网格 ==================== */
.chapter-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.chapter-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 20px; cursor: pointer;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.chapter-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,212,255,0.2); }
.chapter-card.locked { opacity: 0.4; pointer-events: none; filter: grayscale(0.5); }
.chapter-card.completed { border-color: var(--success); }
.chapter-card.completed::after { content: '✅'; position: absolute; top: 10px; right: 10px; font-size: 18px; }
.chapter-number { font-size: 36px; color: var(--primary); font-weight: bold; opacity: 0.2; position: absolute; top: 10px; right: 15px; }
.chapter-title { font-size: 16px; color: var(--light); margin-bottom: 5px; }
.chapter-title img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 4px; }
.chapter-desc { font-size: 12px; color: rgba(224,230,237,0.6); }

/* 章节头部信息 */
.chapter-header { text-align: center; padding: 10px 0 20px; }
.chapter-header .book-subtitle { font-size: 14px; color: rgba(224,230,237,0.5); }

/* ==================== 存档弹窗 ==================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; display: none; }
.modal-overlay.active { display: block; }
.modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 30px; z-index: 1000;
    backdrop-filter: blur(20px); display: none; min-width: 320px;
    max-width: 90vw; max-height: 80vh; overflow-y: auto;
}
.modal.active { display: block; animation: fadeIn 0.3s ease; }
.modal h3 { color: var(--primary); margin-bottom: 15px; font-size: 18px; }

.save-slot {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 12px; margin-bottom: 10px;
    cursor: pointer; transition: all 0.3s;
}
.save-slot:hover { border-color: var(--primary); background: var(--glass-hover); }
.save-slot.empty { opacity: 0.5; font-style: italic; cursor: default; }
.save-slot.empty:hover { border-color: var(--glass-border); background: rgba(255,255,255,0.05); }
.modal-actions { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }

/* ==================== 成就通知 ==================== */
.achievement-toast {
    position: fixed; top: 20px; right: -350px;
    background: linear-gradient(135deg, rgba(255,217,61,0.2), rgba(255,217,61,0.1));
    border: 1px solid var(--accent); border-radius: 15px;
    padding: 15px 20px; z-index: 1500;
    transition: right 0.5s ease; max-width: 280px;
}
.achievement-toast.show { right: 20px; }
.achievement-toast .ach-title { color: var(--accent); font-weight: bold; margin-bottom: 5px; }
.achievement-toast .ach-text { font-size: 13px; color: rgba(224,230,237,0.8); }

/* ==================== 道具收集面板 ==================== */
.items-panel {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; margin-top: 15px;
}
.item-card {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 12px; text-align: center;
    transition: all 0.3s;
}
.item-card.owned { border-color: var(--accent); background: rgba(255,217,61,0.1); }
.item-card .item-emoji { font-size: 32px; margin-bottom: 5px; }
.item-card .item-name { font-size: 13px; color: var(--light); }
.item-card .item-status { font-size: 11px; color: rgba(224,230,237,0.4); }

/* ==================== DOCX导入面板 ==================== */
.import-panel {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 25px; margin-top: 20px;
}
.import-zone {
    border: 2px dashed var(--glass-border); border-radius: 15px;
    padding: 40px 20px; text-align: center; margin: 20px 0;
    transition: all 0.3s; cursor: pointer;
}
.import-zone:hover, .import-zone.drag-over {
    border-color: var(--primary); background: rgba(0,212,255,0.05);
}
.import-zone .import-icon { font-size: 48px; margin-bottom: 10px; }
.import-zone .import-text { color: rgba(224,230,237,0.6); font-size: 14px; }
.import-preview { margin-top: 20px; max-height: 300px; overflow-y: auto; }
.import-question-item {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 15px; margin-bottom: 10px;
}
.import-question-item .q-stem { font-weight: bold; margin-bottom: 8px; }
.import-question-item .q-options { color: rgba(224,230,237,0.7); font-size: 13px; margin-bottom: 8px; }
.import-question-item .q-answer { color: var(--success); font-size: 13px; }
.import-question-item .q-explain { color: rgba(224,230,237,0.5); font-size: 12px; margin-top: 5px; }
.import-stats { display: flex; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.import-stat { background: rgba(0,212,255,0.1); border: 1px solid var(--glass-border); border-radius: 8px; padding: 10px 15px; }
.import-stat .stat-num { font-size: 24px; color: var(--primary); font-weight: bold; }
.import-stat .stat-label { font-size: 12px; color: rgba(224,230,237,0.6); }

/* ==================== 自定义题库章节 ==================== */
.custom-chapter {
    border: 1px dashed var(--accent) !important;
    background: rgba(255,217,61,0.05) !important;
}

/* ==================== 逐题添加表单 ==================== */
.question-form {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.question-form .form-group { margin-bottom: 14px; }
.question-form .form-label {
    display: block; color: var(--primary); font-size: 13px;
    font-weight: bold; margin-bottom: 6px;
}
.question-form .form-input,
.question-form .form-textarea,
.question-form .form-select {
    width: 100%; padding: 10px 14px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--light); font-size: 14px;
    font-family: var(--font); transition: border-color 0.3s;
}
.question-form .form-input:focus,
.question-form .form-textarea:focus,
.question-form .form-select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0,212,255,0.15);
}
.question-form .form-textarea { min-height: 60px; resize: vertical; }
.question-form .form-select { cursor: pointer; }
.question-form .form-select option {
    background: var(--dark); color: var(--light);
}
.question-form .form-row {
    display: flex; gap: 12px; align-items: flex-end;
}
.question-form .form-row > * { flex: 1; }
.question-form .form-hint {
    font-size: 11px; color: rgba(224,230,237,0.4);
    margin-top: 4px;
}
.question-form .btn-row {
    display: flex; gap: 10px; margin-top: 16px;
}
.question-form .form-btn {
    padding: 10px 24px; border-radius: 8px; border: 1px solid var(--glass-border);
    font-size: 14px; cursor: pointer; font-family: var(--font);
    transition: all 0.3s;
}
.question-form .btn-add {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: var(--dark); font-weight: bold; border: none;
}
.question-form .btn-add:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,212,255,0.3); }
.question-form .btn-clear {
    background: transparent; color: rgba(224,230,237,0.6);
}
.question-form .btn-clear:hover { background: rgba(255,255,255,0.05); }

/* 题库列表 */
.question-bank-list { margin-top: 20px; }
.question-bank-section {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.question-bank-section .section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: rgba(0,212,255,0.08);
    cursor: pointer; transition: background 0.3s;
}
.question-bank-section .section-header:hover { background: rgba(0,212,255,0.12); }
.question-bank-section .section-header .sec-title {
    color: var(--accent); font-weight: bold; font-size: 14px;
}
.question-bank-section .section-header .sec-count {
    color: rgba(224,230,237,0.5); font-size: 12px;
}
.question-bank-section .section-body { padding: 10px 16px; }
.question-bank-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}
.question-bank-item:last-child { border-bottom: none; }
.question-bank-item .q-num {
    color: var(--primary); font-weight: bold; min-width: 28px;
    flex-shrink: 0;
}
.question-bank-item .q-body { flex: 1; min-width: 0; }
.question-bank-item .q-stem-text {
    color: var(--light); margin-bottom: 4px; word-break: break-all;
}
.question-bank-item .q-answer-badge {
    display: inline-block; background: rgba(0,230,118,0.15);
    color: var(--success); padding: 2px 8px; border-radius: 4px;
    font-size: 11px; margin-top: 3px;
}
.question-bank-item .q-delete {
    color: var(--danger); cursor: pointer; font-size: 16px;
    padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
    flex-shrink: 0; background: none; border: none;
    font-family: var(--font);
}
.question-bank-item .q-delete:hover { background: rgba(255,23,68,0.15); }

.bank-empty {
    text-align: center; color: rgba(224,230,237,0.4);
    padding: 30px 0; font-size: 14px;
}

/* 操作按钮行 */
.bank-actions {
    display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.bank-action-btn {
    padding: 8px 18px; border-radius: 8px; border: 1px solid var(--glass-border);
    font-size: 13px; cursor: pointer; font-family: var(--font);
    background: transparent; color: rgba(224,230,237,0.7);
    transition: all 0.3s;
}
.bank-action-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--primary); }
.bank-action-btn.danger { color: var(--danger); border-color: rgba(255,23,68,0.2); }
.bank-action-btn.danger:hover { background: rgba(255,23,68,0.1); }

/* ==================== 响应式 ==================== */
@media (max-width: 700px) {
    .game-title { font-size: 32px; }
    .chapter-select { grid-template-columns: 1fr; }
    .scene-image { height: 120px; font-size: 50px; }
    .scene-title { font-size: 18px; }
    .hp-bar, .atp-bar, .xp-bar { width: 60px; }
    .book-tab { min-width: 60px; padding: 10px 6px; font-size: 11px; }
    .book-tab .book-emoji { font-size: 20px; }
    .book-tab .book-emoji img { width: 24px; height: 24px; }
    .book-tab .book-name { font-size: 10px; }
    #status-bar { padding: 10px; }
    .modal { padding: 20px; min-width: auto; width: 90vw; }
}

/* ==================== 复活道具弹窗 ==================== */
#revive-modal {
    max-width: 420px; min-width: 320px;
}
#revive-modal h3 {
    text-align: center; color: var(--danger); font-size: 18px;
    margin-bottom: 12px;
}
#revive-item-list {
    max-height: 360px; overflow-y: auto;
}

/* ==================== 能量耗尽弹窗 ==================== */
#energy-modal {
    max-width: 420px; min-width: 320px;
}
#energy-modal h3 {
    text-align: center; color: var(--warning); font-size: 18px;
    margin-bottom: 12px;
}
#energy-item-list {
    max-height: 360px; overflow-y: auto;
}
.revive-item-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 15px; margin: 6px 0;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--glass-border); border-radius: 10px;
    color: var(--light); font-size: 14px; cursor: pointer;
    transition: all 0.2s; text-align: left;
}
.revive-item-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary); transform: translateX(4px);
}
.revive-item-btn:active { transform: scale(0.97); }

/* ==================== 操作说明弹窗 ==================== */
#guide-modal {
    max-width: 640px; min-width: 360px;
    max-height: 85vh; overflow-y: auto;
    z-index: 3000 !important;  /* 覆盖首页 z-index:2000 */
}
#guide-modal h3 {
    text-align: center; color: var(--primary); font-size: 20px;
    margin-bottom: 18px;
}
.guide-body { line-height: 1.7; }
.guide-section {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.guide-title {
    color: var(--accent); font-weight: bold; font-size: 15px;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guide-section p { font-size: 13px; color: rgba(224,230,237,0.8); margin-bottom: 6px; }
.guide-section b { color: var(--light); }

.guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.guide-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top; }
.guide-table td:first-child { white-space: nowrap; color: rgba(224,230,237,0.6); width: 1%; }
.guide-table .g-icon { font-size: 18px; text-align: center; }
.guide-table .g-key {
    display: inline-block; background: rgba(255,255,255,0.08);
    padding: 2px 8px; border-radius: 4px; font-size: 12px;
    font-family: 'Consolas','Courier New',monospace; color: var(--primary);
}

.guide-mechanic {
    background: rgba(0,212,255,0.04); border-left: 3px solid var(--primary);
    padding: 10px 14px; margin: 8px 0; border-radius: 0 8px 8px 0;
}
.gm-title { color: var(--primary); font-weight: bold; font-size: 13px; margin-bottom: 4px; }

.guide-tips { padding-left: 18px; font-size: 13px; color: rgba(224,230,237,0.75); }
.guide-tips li { margin-bottom: 5px; }
.guide-tips b { color: var(--accent); }

.guide-books td:nth-child(2) { color: var(--primary); font-weight: bold; white-space: nowrap; }
.guide-books td:nth-child(3) { color: rgba(224,230,237,0.6); font-size: 12px; }

