/* Mini Peak - 美化版样式表 */

/* === 导入字体 === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* === CSS变量 === */
:root {
    --primary-color: #2d5a87;
    --primary-light: #4a7fb5;
    --primary-dark: #1a3d5c;
    --accent-color: #ff6b35;
    --accent-light: #ff8c5a;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #e53935;
    --text-color: #2c3e50;
    --text-light: #5d6d7e;
    --bg-gradient-start: #87CEEB;
    --bg-gradient-end: #e8f4f8;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* === 基础重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #fff 100%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === 背景装饰 - 云朵（多层真实感） === */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Cdefs%3E%3Cfilter id='blur1' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='2'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23blur1)'%3E%3Cellipse cx='80' cy='50' rx='60' ry='25' fill='white'/%3E%3Cellipse cx='130' cy='55' rx='50' ry='22' fill='white'/%3E%3Cellipse cx='100' cy='60' rx='45' ry='20' fill='white'/%3E%3Cellipse cx='60' cy='58' rx='35' ry='18' fill='white'/%3E%3Cellipse cx='300' cy='45' rx='55' ry='24' fill='white'/%3E%3Cellipse cx='340' cy='52' rx='45' ry='20' fill='white'/%3E%3Cellipse cx='280' cy='55' rx='40' ry='18' fill='white'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 500px 120px;
    background-position: 0 60px;
    background-repeat: repeat-x;
    animation: cloudFloat1 80s linear infinite;
    opacity: 0.85;
}

body::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 80'%3E%3Cdefs%3E%3Cfilter id='blur2' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23blur2)' opacity='0.7'%3E%3Cellipse cx='150' cy='40' rx='70' ry='28' fill='white'/%3E%3Cellipse cx='200' cy='45' rx='55' ry='24' fill='white'/%3E%3Cellipse cx='120' cy='48' rx='50' ry='22' fill='white'/%3E%3Cellipse cx='400' cy='35' rx='65' ry='26' fill='white'/%3E%3Cellipse cx='450' cy='42' rx='50' ry='22' fill='white'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 600px 100px;
    background-position: 200px 120px;
    background-repeat: repeat-x;
    animation: cloudFloat2 120s linear infinite;
    opacity: 0.6;
}

@keyframes cloudFloat1 {
    from { background-position: 0 60px; }
    to { background-position: 500px 60px; }
}

@keyframes cloudFloat2 {
    from { background-position: 200px 120px; }
    to { background-position: 800px 120px; }
}

/* === 游戏容器 === */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* === 游戏头部 === */
.game-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 10px;
    z-index: 1500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.game-header::before {
    content: '⛰️';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    opacity: 0.3;
}

.game-header::after {
    content: '🏔️';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    opacity: 0.3;
}

.game-header h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

/* === 状态栏 === */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.3em;
    font-weight: 700;
}

/* === 体力条 === */
.stamina-bar-container {
    position: relative;
    width: 220px;
    height: 24px;
    background: linear-gradient(180deg, #c0c0c0 0%, #e0e0e0 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stamina-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    transition: all 0.5s ease;
    z-index: 1;
    background: linear-gradient(180deg, #66bb6a 0%, #4caf50 100%);
    border-radius: 0 10px 10px 0;
}

.hunger-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    transition: all 0.5s ease;
    z-index: 2;
}

.injury-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, #ef5350 0%, #e53935 100%);
    transition: all 0.5s ease;
    z-index: 3;
}

.load-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, #ab47bc 0%, #9c27b0 100%);
    transition: all 0.5s ease;
    z-index: 4;
}

.stamina-value {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* === 判定小游戏 === */
.minigame-container {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.minigame-track {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, #bdbdbd 0%, #e0e0e0 100%);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

.minigame-pass {
    position: absolute;
    left: 45%;
    width: 10%;
    height: 100%;
    background: linear-gradient(180deg, #81c784 0%, #4caf50 100%);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.minigame-pointer {
    position: absolute;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #ff5252 0%, #d32f2f 100%);
    left: 0;
    top: -5px;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.6);
    z-index: 2;
}

#minigame-button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
}

/* === 地图容器 === */
.map-container {
    background: var(--card-bg);
    padding: 30px 30px 30px 90px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    min-height: 450px;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 首页地图背景 - 山脉居中 */
.map-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(135, 206, 235, 0.15) 0%, rgba(255, 255, 255, 0) 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 280'%3E%3Cdefs%3E%3ClinearGradient id='farMtn' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffffff'/%3E%3Cstop offset='20%25' style='stop-color:%23e8f2f8'/%3E%3Cstop offset='35%25' style='stop-color:%23c8dcea'/%3E%3Cstop offset='100%25' style='stop-color:%23c8dcea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,280 L0,190 L50,180 L100,195 L150,165 L200,180 L250,155 L300,170 L350,130 L380,80 L400,40 L420,80 L450,130 L500,170 L550,155 L600,180 L650,165 L700,195 L750,180 L800,190 L800,280 Z' fill='url(%23farMtn)' opacity='0.65'/%3E%3Cpath d='M0,280 L0,210 L60,200 L120,218 L180,185 L240,205 L300,178 L350,195 L385,140 L400,95 L415,140 L450,195 L500,178 L560,205 L620,185 L680,218 L740,200 L800,210 L800,280 Z' fill='%23a8c4d8' opacity='0.8'/%3E%3Cpath d='M0,280 L0,235 L70,228 L140,242 L200,215 L260,232 L320,210 L370,225 L390,175 L400,145 L410,175 L430,225 L480,210 L540,232 L600,215 L660,242 L730,228 L800,235 L800,280 Z' fill='%238aafc5'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    z-index: 0;
    pointer-events: none;
}

/* 游戏中地图背景 - 山顶对齐节点 */
.map-container.game-active::before {
    background: 
        linear-gradient(180deg, rgba(135, 206, 235, 0.15) 0%, rgba(255, 255, 255, 0) 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='farMtn2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffffff'/%3E%3Cstop offset='15%25' style='stop-color:%23e8f2f8'/%3E%3Cstop offset='30%25' style='stop-color:%23c8dcea'/%3E%3Cstop offset='100%25' style='stop-color:%23c8dcea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,500 L0,320 L50,305 L100,325 L150,280 L200,305 L260,250 L320,285 L360,180 L390,100 L410,50 L430,100 L470,180 L530,285 L600,250 L670,305 L740,280 L800,300 L800,500 Z' fill='url(%23farMtn2)' opacity='0.65'/%3E%3Cpath d='M0,500 L0,360 L60,340 L120,365 L180,310 L240,345 L300,290 L360,330 L390,220 L410,140 L430,220 L480,330 L550,290 L630,345 L710,310 L800,340 L800,500 Z' fill='%23a8c4d8' opacity='0.8'/%3E%3Cpath d='M0,500 L0,400 L70,385 L140,410 L210,360 L280,395 L350,350 L390,380 L400,280 L410,220 L420,280 L450,380 L520,350 L600,395 L690,360 L800,390 L800,500 Z' fill='%238aafc5'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.map {
    position: relative;
    padding: 20px 0;
    z-index: 1;
}

.map-row {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
    position: relative;
    gap: 20px;
}

/* === 地图节点 === */
.map-node {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.1em;
    border: 3px solid transparent;
}

.map-node.normal {
    background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-color);
    border-color: #bdbdbd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-node.current {
    background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    transform: scale(1.25);
    border-color: white;
    box-shadow: 0 0 25px rgba(45, 90, 135, 0.5);
}

.map-node.visited {
    background: linear-gradient(145deg, #90caf9 0%, #64b5f6 100%);
    color: white;
    border-color: #42a5f5;
    box-shadow: 0 4px 10px rgba(66, 165, 245, 0.3);
}

.map-node.event {
    background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-color);
    border-color: #bdbdbd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 访问过的事件/Boss节点统一显示为蓝色 */
.map-node.event.visited,
.map-node.boss.visited {
    background: linear-gradient(145deg, #90caf9 0%, #64b5f6 100%);
    color: white;
    border-color: #42a5f5;
    box-shadow: 0 4px 10px rgba(66, 165, 245, 0.3);
    animation: none;
}

.map-node.boss {
    background: linear-gradient(145deg, #ff8a80 0%, var(--danger-color) 100%);
    color: white;
    border-color: #ff5252;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.5);
    animation: bossGlow 2s ease-in-out infinite;
}

@keyframes bossGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(229, 57, 53, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(229, 57, 53, 0.8); }
}

.map-node.disabled {
    background: linear-gradient(145deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #9e9e9e;
    cursor: not-allowed;
    border-color: #ccc;
    opacity: 0.6;
}

.map-node:hover:not(.disabled) {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.map-node.current:hover {
    transform: scale(1.3);
}

.map-node.disabled:hover {
    transform: none;
}

/* === 地图连接线 === */
.map-connection {
    position: absolute;
    background: linear-gradient(180deg, #90a4ae 0%, #b0bec5 100%);
    z-index: 1;
    border-radius: 2px;
}

.vertical-line {
    width: 3px;
    height: 45px;
    left: 50%;
    top: 65px;
    transform: translateX(-50%);
}

.horizontal-line {
    height: 3px;
    background: linear-gradient(90deg, #b0bec5 0%, #90a4ae 50%, #b0bec5 100%);
    position: absolute;
    top: 32px;
    z-index: 1;
    border-radius: 2px;
}

/* === 事件卡片 === */
.event-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.event-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-card h2::before {
    content: '📍';
    font-size: 0.9em;
}

.event-card p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-light);
    font-size: 1.05em;
}

.event-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* === 按钮样式 === */
.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-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;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 135, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ff8a80 0%, var(--danger-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.action-btn:disabled {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn:disabled::before {
    display: none;
}

/* === 事件弹窗 === */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.event-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 35px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6em;
}

.event-modal-content p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--text-light);
    font-size: 1.05em;
}

#modal-event-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#modal-event-result {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    animation: resultSlideIn 0.4s ease;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === 弹窗头部 === */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === 关闭按钮 === */
.close-btn {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: linear-gradient(135deg, #ff8a80 0%, var(--danger-color) 100%);
    color: white;
    transform: rotate(90deg);
}

/* === 背包图标 === */
.backpack-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    cursor: pointer;
    z-index: 2000;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.backpack-icon:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.backpack-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--primary-color);
}

.backpack-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff8a80 0%, var(--danger-color) 100%);
    border-radius: 50%;
    display: none;
    border: 2px solid white;
    animation: badgeBounce 1s ease infinite;
}

.backpack-badge.show {
    display: block;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* === 背包面板 === */
.equipment-panel {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2100;
    min-width: 320px;
    animation: panelSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.equipment-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-header h3::before {
    content: '🎒';
}

.equipment-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.equipment-slot {
    width: 85px;
    height: 85px;
    background: linear-gradient(145deg, #fafafa 0%, #f0f0f0 100%);
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-slot:hover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
    transform: scale(1.05);
}

.equipment-slot.has-item {
    border: 2px solid var(--success-color);
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    border-style: solid;
    flex-direction: column;
    gap: 4px;
}

/* 物品图标和名称 */
.item-icon {
    font-size: 24px;
    line-height: 1;
}

.item-name {
    font-size: 11px;
    line-height: 1.3;
    color: #333;
    white-space: pre-line;
    text-align: center;
}

/* === 背包标签 === */
.backpack-tabs {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}

.backpack-tabs .action-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9em;
}

/* === 装备选择界面 === */
.equipment-item {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.equipment-item .item-icon {
    font-size: 20px;
}

.equipment-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.equipment-item.selected {
    border-color: var(--success-color);
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
}

.backpack-slot {
    padding: 12px;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
}

.backpack-slot.has-item {
    border: 2px solid var(--success-color);
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    cursor: pointer;
    border-style: solid;
}

/* === 动画效果 === */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 90, 135, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(45, 90, 135, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 90, 135, 0);
    }
}

.map-node.current {
    animation: pulse 2s infinite;
}

/* === 提示信息 === */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(45, 90, 135, 0.95) 0%, rgba(26, 61, 92, 0.95) 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 12px;
    z-index: 10000;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    animation: toastPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* === 起点提示样式 === */
.start-hint {
    animation: hintBounce 1s ease infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header {
        padding: 15px;
        top: 5px;
    }
    
    .game-header::before,
    .game-header::after {
        display: none;
    }
    
    .game-header h1 {
        font-size: 1.6em;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 12px;
    }
    
    .stamina-bar-container {
        width: 100%;
        max-width: 200px;
    }
    
    .map-container {
        padding: 15px 15px 15px 55px;
    }
    
    .map-node {
        width: 50px;
        height: 50px;
        font-size: 0.95em;
    }
    
    .map-row {
        margin-bottom: 35px;
        gap: 15px;
    }
    
    .equipment-panel {
        left: 10px;
        right: 10px;
        bottom: 85px;
        min-width: auto;
    }
    
    .equipment-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .equipment-slot {
        width: 65px;
        height: 65px;
        font-size: 10px;
    }
    
    .event-modal-content {
        padding: 20px;
        width: 95%;
        border-radius: 12px;
    }
    
    #modal-event-actions {
        flex-direction: column;
    }
    
    #modal-event-actions .action-btn {
        width: 100%;
    }
    
    .backpack-icon {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* === 打印样式 === */
@media print {
    .backpack-icon,
    .equipment-panel,
    .event-modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    body::before {
        display: none;
    }
}
