/* 暗黑寻宝 - 主样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-dark: #0d0d0d; --bg-panel: #1a1a1a; --bg-card: #252525; --border-color: #3a3a3a; --text-primary: #e0e0e0; --text-secondary: #888; --accent-gold: #c9a227; --accent-red: #a52a2a; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }
.game-container { max-width: 800px; margin: 0 auto; padding: 20px; min-height: 100vh; }
.game-header { text-align: center; padding: 20px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 20px; }
.game-header h1 { color: var(--accent-gold); font-size: 28px; margin-bottom: 10px; text-shadow: 0 0 10px rgba(201, 162, 39, 0.3); }
.player-stats { display: flex; justify-content: center; gap: 30px; font-size: 14px; color: var(--text-secondary); }
.player-stats span { padding: 5px 15px; background: var(--bg-card); border-radius: 4px; }
.game-main { display: flex; flex-direction: column; gap: 20px; }
.battle-area { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; text-align: center; }
.monster-container { min-height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.monster { transition: all 0.3s ease; }
.monster.idle { animation: float 2s ease-in-out infinite; }
.monster.hit { animation: shake 0.3s ease-in-out; opacity: 0.5; }
.monster.dying { animation: death 0.5s ease-out forwards; }
.monster-sprite { font-size: 80px; margin-bottom: 10px; }
.monster-name { font-size: 18px; color: var(--accent-red); margin-bottom: 5px; }
.monster-hp { font-size: 20px; }
.attack-btn { background: linear-gradient(135deg, #8b0000, #5c0000); color: #fff; border: 2px solid #c9a227; padding: 15px 40px; font-size: 18px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.attack-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(201, 162, 39, 0.4); }
.attack-btn:active { transform: scale(0.95); }
.attack-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.loot-display { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.loot-placeholder { color: var(--text-secondary); font-size: 16px; }
.loot-card { text-align: center; padding: 20px; background: var(--bg-card); border-radius: 8px; max-width: 400px; margin: 0 auto; }
.loot-card-header { font-size: 24px; margin-bottom: 15px; }
.loot-card pre { text-align: left; white-space: pre-wrap; font-family: inherit; }
.loot-history { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; }
.loot-history h3 { color: var(--accent-gold); margin-bottom: 15px; font-size: 16px; }
.loot-list { max-height: 200px; overflow-y: auto; }
.empty-history { color: var(--text-secondary); text-align: center; padding: 20px; }
.history-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-card); border-radius: 4px; margin-bottom: 8px; font-size: 14px; }
.history-item-name { flex: 1; }
.history-item-time { color: var(--text-secondary); font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
@keyframes death { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } 100% { transform: scale(0); opacity: 0; } }
@keyframes dropIn { 0% { transform: translateY(-100px) rotate(-10deg); opacity: 0; } 60% { transform: translateY(10px) rotate(5deg); opacity: 1; } 80% { transform: translateY(-5px) rotate(-2deg); } 100% { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
.drop-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.drop-overlay.hidden { display: none; }
.drop-item { font-size: 120px; animation: dropIn 0.6s ease-out forwards; }
.drop-particles { position: absolute; width: 200px; height: 200px; border-radius: 50%; animation: glow 1s ease-in-out infinite; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
@media (max-width: 600px) { .game-header h1 { font-size: 22px; } .monster-sprite { font-size: 60px; } .attack-btn { padding: 12px 30px; font-size: 16px; } }
