/* Labyrinthia AI - 游戏样式表 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans CJK SC', sans-serif;
    /* 使用可无限拼接的背景瓦片 */
    background-color: #4a3a6b;
    background-image: url('/static/assets/bg-tile-dungeon.png');
    background-repeat: repeat;
    background-size: 256px 256px; /* 调整瓦片大小以获得最佳视觉效果 */
    background-attachment: fixed; /* 固定背景，滚动时不移动 */
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Material Design 阴影 */
.elevation-1 { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.elevation-2 { box-shadow: 0 4px 8px rgba(0,0,0,0.12); }
.elevation-3 { box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.elevation-4 { box-shadow: 0 12px 24px rgba(0,0,0,0.18); }

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    /* 使用带怪物剪影的黑暗地牢背景 */
    background-color: transparent;
    background-image: url('/static/assets/bg-header-monsters_1.png');
    background-repeat: no-repeat;
    background-size: 1024px 500px;
    background-position: center bottom;
    padding: 20px 0;
    margin-bottom: -150px; /* 进一步减少与下方内容的间距 */
    position: relative;
    animation: pulse-jump 5s ease-in-out infinite;
    border: none;
    box-shadow: none;
    min-height: 350px; /* 调整容器高度以适应新的间距 */
}

@keyframes pulse-jump {
    0%, 100% {
        background-size: 1024px 500px;
        background-position: center bottom;
    }
    50% {
        background-size: 1050px 512px; /* 略微放大 */
        background-position: center calc(bottom + 10px); /* 略微上移 */
    }
}

/* 标题栏发光效果 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(138, 43, 226, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.header h1 {
    text-align: center;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    /* 多层文字阴影增强可读性 */
    text-shadow:
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(138, 43, 226, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    /* 文字描边效果 */
    -webkit-text-stroke: 1px rgba(138, 43, 226, 0.5);
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.7));
}

.header .subtitle {
    text-align: center;
    color: #e0d0ff;
    font-size: 1.2rem;
    margin-top: 8px;
    font-weight: 500;
    /* 增强副标题可读性 */
    text-shadow:
        0 0 8px rgba(138, 43, 226, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* 游戏界面布局 */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    min-height: calc(100vh - 140px);
    height: auto; /* 允许高度自动调整 */
}

/* 主游戏区域 */
.game-main {
    /* 半透明背景 + 微妙纹理 */
    background-color: rgba(255, 255, 255, 0.88);
    background-image: url('/static/assets/bg-panel-texture.png');
    background-repeat: repeat;
    background-size: 128px 128px;
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0; /* 允许flex子项收缩 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 任务面板特殊样式 */
.quest-panel {
    flex: 0 0 auto; /* 不收缩，不扩展，自动高度 */
    margin-bottom: 15px;
    padding: 20px;
    max-height: none; /* 移除高度限制 */
    /* 半透明背景效果 */
    background-color: rgba(94, 53, 177, 0.08);
    background-image: url('/static/assets/bg-panel-texture.png');
    background-repeat: repeat;
    background-size: 128px 128px;
    border-radius: 8px;
    border: 1px solid rgba(94, 53, 177, 0.2);
}

/* 地图容器 */
.map-container {
    flex: 1 1 auto; /* 可以扩展和收缩，占用剩余空间 */
    background: #2c3e50;
    border-radius: 8px;
    padding: 10px;
    overflow: hidden; /* 隐藏溢出，由内部容器处理滚动 */
    position: relative;
    min-height: 300px; /* 最小高度确保地图可见 */
    /* 优化滚动和缩放 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    overscroll-behavior: contain; /* 防止滚动链 */
    touch-action: none; /* 由MapZoomManager处理所有触摸事件 */
}

/* 地图容器滚动条样式 */
.map-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.map-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.map-container::-webkit-scrollbar-thumb {
    background: rgba(94, 53, 177, 0.6);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.map-container::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 53, 177, 0.8);
}

.map-container::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.2);
}

.map-grid {
    display: grid;
    gap: 1px;
    background: #34495e;
    padding: 5px;
    border-radius: 4px;
    min-width: fit-content;
    /* 缩放相关样式由MapZoomManager动态设置 */
}

.map-tile {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.map-tile:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 地图瓦片工具提示 */
.tile-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tile-tooltip.show {
    opacity: 1;
}

.tile-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* 地形类型样式 */
.terrain-floor {
    background: rgba(236, 240, 241, 0.8); /* 轻微半透明背景，让地板纹理图层更明显 */
}
.terrain-wall { background: #34495e; }
.terrain-door {
    background: #8b4513 url('/static/assets/terrain/door_icon.png') center center no-repeat;
    background-size: 80%;
    position: relative;
}
/* 陷阱样式 - 根据状态显示不同效果 */
.terrain-trap {
    background: #e74c3c url('/static/assets/terrain/trap_icon.png') center center no-repeat !important;
    background-size: 80% !important;
    position: relative;
}


/* 已发现的陷阱（高亮警告，脉冲动画） */
.terrain-trap.trap-detected {
    background: #e74c3c url('/static/assets/terrain/trap_icon.png') center center no-repeat !important;
    background-size: 80% !important;
    animation: trap-pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
}

/* 已触发的陷阱（显示图标但不脉冲，表示已经触发过） */
.terrain-trap.trap-triggered {
    background: #c0392b url('/static/assets/terrain/trap_icon.png') center center no-repeat !important;
    background-size: 80% !important;
    animation: none;
    box-shadow: none;
    opacity: 0.7;
}

/* 已解除的陷阱（灰色，半透明） */
.terrain-trap.trap-disarmed {
    background: #95a5a6 !important;
    background-image: none !important;
    opacity: 0.5;
    animation: none;
    box-shadow: none;
}


/* 已触发陷阱角标徽记（保持基础地形，右下角显示“已触发”） */
.map-tile.trap-triggered {
    position: relative;
}
.map-tile.trap-triggered::after {
    content: '已触发';
    position: absolute;
    right: 2px;
    bottom: 2px;
    font-size: 10px;
    line-height: 1;
    padding: 2px 4px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.35);
    opacity: 0.9;
    pointer-events: none;
}

/* 陷阱脉冲动画 */
@keyframes trap-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 1);
        transform: scale(1.05);
    }
}
.terrain-treasure {
    background: #f1c40f url('/static/assets/terrain/treasure_chest.png') center center no-repeat;
    background-size: 80%;
    position: relative;
}
.terrain-stairs_up {
    background: #ecf0f1 url('/static/assets/terrain/stairs_up.png') center center no-repeat;
    background-size: 80%;
    position: relative;
    box-shadow: inset 0 0 8px rgba(52, 152, 219, 0.3);
}
.terrain-stairs_down {
    background: #ecf0f1 url('/static/assets/terrain/stairs_down.png') center center no-repeat;
    background-size: 80%;
    position: relative;
    box-shadow: inset 0 0 8px rgba(155, 89, 182, 0.3);
}
.terrain-water { background: #3498db; }
.terrain-lava { background: #e67e22; }

/* 楼梯发光效果 */
.terrain-stairs_up::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    animation: stairs-glow-up 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.terrain-stairs_down::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.2) 0%, transparent 70%);
    animation: stairs-glow-down 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* 楼梯发光动画 */
@keyframes stairs-glow-up {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes stairs-glow-down {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 房间类型特殊效果 */
.room-entrance {
    box-shadow: inset 0 0 8px rgba(46, 204, 113, 0.3);
}

.room-treasure {
    box-shadow: inset 0 0 8px rgba(241, 196, 15, 0.4);
}

.room-boss {
    box-shadow: inset 0 0 8px rgba(231, 76, 60, 0.4);
}

.room-special {
    box-shadow: inset 0 0 8px rgba(155, 89, 182, 0.3);
}

.room-normal {
    /* 普通房间无特殊效果 */
}

/* 门的特殊样式 */
.terrain-door.door-treasure {
    background: linear-gradient(45deg, #8b4513, #f1c40f);
    border: 1px solid #f39c12;
}

.terrain-door.door-boss {
    background: linear-gradient(45deg, #8b4513, #e74c3c);
    border: 1px solid #c0392b;
}

.terrain-door.door-special {
    background: linear-gradient(45deg, #8b4513, #9b59b6);
    border: 1px solid #8e44ad;
}

/* 角色和怪物 */
.character-player {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid #27ae60;
    z-index: 10;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 当使用精灵图时，移除圆形边框 */
.character-player[style*="background-image"] {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.character-monster {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #c0392b;
    z-index: 9;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 当使用精灵图时，移除圆形边框 */
.character-monster[style*="background-image"] {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tile-explored { opacity: 1; }
.tile-unexplored { opacity: 0.3; }
.tile-visible {
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel {
    /* 半透明背景 + 微妙纹理 */
    background-color: rgba(255, 255, 255, 0.88);
    background-image: url('/static/assets/bg-panel-texture.png');
    background-repeat: repeat;
    background-size: 128px 128px;
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.panel h3 {
    color: #5e35b1;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 角色状态 */
.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    background: rgba(94, 53, 177, 0.1);
    border-radius: 6px;
}

/* DND六维属性显示 - 紧凑型 */
.abilities-container {
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.05), rgba(156, 39, 176, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(94, 53, 177, 0.15);
}

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

.ability-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(94, 53, 177, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: help;
    transition: all 0.2s ease;
}

.ability-compact-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(94, 53, 177, 0.4);
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(94, 53, 177, 0.15);
}

.ability-compact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5e35b1;
    min-width: 20px;
}

.ability-compact-value {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
}

.ability-compact-mod {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    min-width: 30px;
    text-align: right;
}

.stat-label {
    font-weight: 500;
    color: #5e35b1;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-hp { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.progress-mp { background: linear-gradient(90deg, #3498db, #2980b9); }
.progress-exp { background: linear-gradient(90deg, #f1c40f, #f39c12); }

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c8ef5, #8a5bb8);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f5a4ff, #ff6b7f);
}

.btn-accent {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #6bbdff, #1ffbff);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9a56, #ffad56);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffaa6b, #ffbd6b);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 主菜单样式 */
.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.menu-panel {
    /* 半透明背景 + 微妙纹理 */
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url('/static/assets/bg-panel-texture.png');
    background-repeat: repeat;
    background-size: 128px 128px;
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.menu-panel h2 {
    color: #5e35b1;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-panel > p {
    color: #7e57c2;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

/* 主菜单按钮组 */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.menu-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
}

/* 存档管理按钮 */
.save-management-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.save-management-buttons .btn {
    width: 100%;
}

/* GitHub链接容器 */
.github-link-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(94, 53, 177, 0.2);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(36, 41, 46, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.github-link:hover {
    background: rgba(36, 41, 46, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.github-icon {
    flex-shrink: 0;
}

/* 存档列表 */
.saves-list {
    margin-top: 24px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.saves-list::-webkit-scrollbar {
    width: 8px;
}

.saves-list::-webkit-scrollbar-track {
    background: rgba(94, 53, 177, 0.1);
    border-radius: 4px;
}

.saves-list::-webkit-scrollbar-thumb {
    background: rgba(94, 53, 177, 0.3);
    border-radius: 4px;
}

.saves-list::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 53, 177, 0.5);
}

/* 存档项 */
.save-item {
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.08), rgba(126, 87, 194, 0.05));
    border: 1px solid rgba(94, 53, 177, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.save-item:hover {
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.12), rgba(126, 87, 194, 0.08));
    border-color: rgba(94, 53, 177, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(94, 53, 177, 0.15);
}

.save-item h4 {
    color: #5e35b1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.save-item p {
    color: #666;
    font-size: 0.85rem;
    margin: 4px 0;
    line-height: 1.4;
}

/* 存档项按钮容器 */
.save-item-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.save-item-buttons button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-item-buttons button .material-icons {
    font-size: 18px;
}

.save-item-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.save-item-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 加载按钮 */
.save-item-buttons button:nth-child(1) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.save-item-buttons button:nth-child(1):hover {
    background: linear-gradient(135deg, #7c8ef5, #8a5bb8);
}

/* 导出按钮 */
.save-item-buttons button:nth-child(2) {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.save-item-buttons button:nth-child(2):hover {
    background: linear-gradient(135deg, #6bbdff, #1ffbff);
}

/* 删除按钮 */
.save-item-buttons button:nth-child(3) {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.save-item-buttons button:nth-child(3):hover {
    background: linear-gradient(135deg, #ff85ab, #ffed5a);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #5e35b1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5e35b1;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 角色信息样式 */
.character-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(94, 53, 177, 0.1);
    border-radius: 8px;
}

.character-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.level {
    background: #5e35b1;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.character-class {
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

.character-position {
    color: #666;
    font-size: 0.9rem;
}

.character-floor {
    color: #666;
    font-size: 0.9rem;
}

.character-map {
    color: #666;
    font-size: 0.9rem;
}

/* 状态栏样式 */
.stat-bar {
    margin-bottom: 15px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #5e35b1;
}

.stat-label .material-icons {
    font-size: 18px;
}

.stat-value {
    text-align: right;
    font-weight: 500;
    margin-bottom: 5px;
}

/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dialog h3 {
    margin-top: 0;
    color: #5e35b1;
    text-align: center;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5e35b1;
    margin-bottom: 10px;
}

.item-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-usage {
    background: rgba(94, 53, 177, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #5e35b1;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dialog-buttons .btn {
    flex: 1;
    max-width: 100px;
}

/* 事件选择对话框样式 */
.event-choice-dialog {
    max-width: 600px;
    width: 95%;
    max-height: 80vh; /* 限制对话框最大高度为视口的80% */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 防止整个对话框溢出 */
}

/* 事件选择对话框内容容器 */
#event-choice-content {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 让子元素处理滚动 */
    flex: 1;
    min-height: 0; /* 允许flex子项收缩 */
}

.event-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #5e35b1;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 添加滚动条支持 */
    max-height: 30vh; /* 描述区域最大高度 */
    overflow-y: auto; /* 内容超出时显示滚动条 */
    overflow-x: hidden;
    flex-shrink: 0; /* 不收缩 */
}

/* 事件描述滚动条样式 - 增强可见性 */
.event-description::-webkit-scrollbar {
    width: 10px; /* 增加宽度从8px到10px */
}

.event-description::-webkit-scrollbar-track {
    background: rgba(94, 53, 177, 0.15); /* 增加不透明度从0.1到0.15 */
    border-radius: 5px;
    border: 1px solid rgba(94, 53, 177, 0.2); /* 添加边框增强可见性 */
}

.event-description::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加阴影增强立体感 */
}

.event-description::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a2c8f 0%, #6a47a0 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); /* 悬停时增强阴影 */
    transform: scaleX(1.1); /* 悬停时略微放大 */
}

/* Firefox滚动条样式 */
.event-description {
    scrollbar-width: thin;
    scrollbar-color: #5e35b1 rgba(94, 53, 177, 0.1);
}

.choice-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* 添加滚动条支持 */
    max-height: 40vh; /* 选项列表最大高度 */
    overflow-y: auto; /* 内容超出时显示滚动条 */
    overflow-x: hidden;
    padding-right: 8px; /* 为滚动条留出空间 */
    flex: 1; /* 占用剩余空间 */
    min-height: 0; /* 允许收缩 */
}

/* 选项列表滚动条样式 - 增强可见性 */
.choice-options::-webkit-scrollbar {
    width: 12px; /* 增加宽度从10px到12px */
}

.choice-options::-webkit-scrollbar-track {
    background: rgba(94, 53, 177, 0.15); /* 增加不透明度从0.1到0.15 */
    border-radius: 6px;
    border: 1px solid rgba(94, 53, 177, 0.2); /* 添加边框增强可见性 */
}

.choice-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1); /* 添加浅色边框 */
    background-clip: padding-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加阴影增强立体感 */
}

.choice-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a2c8f 0%, #6a47a0 100%);
    background-clip: padding-box;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); /* 悬停时增强阴影 */
    transform: scaleX(1.1); /* 悬停时略微放大 */
}

/* Firefox滚动条样式 */
.choice-options {
    scrollbar-width: thin;
    scrollbar-color: #5e35b1 rgba(94, 53, 177, 0.1);
}

.choice-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* 修复：允许内容完整显示，不裁剪描述和后果文本 */
}

.choice-option:hover {
    border-color: #5e35b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(94, 53, 177, 0.2);
}

.choice-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.choice-option.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
}

.choice-text {
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.choice-text::before {
    content: "▶";
    color: #5e35b1;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.choice-option:hover .choice-text::before {
    transform: translateX(4px);
}

.choice-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.choice-consequences {
    color: #495057;
    font-size: 13px;
    font-style: italic;
    padding: 8px 12px;
    background: rgba(94, 53, 177, 0.1);
    border-radius: 6px;
    border-left: 3px solid #5e35b1;
}

.choice-requirements {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.choice-option.disabled .choice-requirements {
    background: #dc3545;
    color: white;
}

/* 选择动画效果 */
.choice-option.selected {
    background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    color: white;
    border-color: #5e35b1;
    transform: scale(0.98);
}

.choice-option.selected .choice-text,
.choice-option.selected .choice-description,
.choice-option.selected .choice-consequences {
    color: white;
}

.choice-option.selected .choice-consequences {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
}

/* 控制面板 */
.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.control-btn {
    padding: 8px;
    font-size: 0.8rem;
    min-height: 36px;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
    color: #5e35b1;
    font-size: 0.9rem;
}

/* 方向控制 */
.direction-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    max-width: 180px;
    margin: 10px auto;
    padding: 5px;
}

.dir-btn {
    padding: 12px;
    font-size: 1.2rem;
    min-height: 48px;
    min-width: 48px;
    border-radius: 12px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-btn .material-icons {
    font-size: 1.5rem;
}

/* 方向按钮位置 */
.dir-nw { grid-area: 1 / 1; }
.dir-n { grid-area: 1 / 2; }
.dir-ne { grid-area: 1 / 3; }
.dir-w { grid-area: 2 / 1; }
.dir-center { grid-area: 2 / 2; background: transparent; border: none; }
.dir-e { grid-area: 2 / 3; }
.dir-sw { grid-area: 3 / 1; }
.dir-s { grid-area: 3 / 2; }
.dir-se { grid-area: 3 / 3; }

/* 方向按钮状态样式 */
/* 可移动状态 - 蓝色渐变 */
.dir-btn.dir-move {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dir-btn.dir-move:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c8ef5, #8a5bb8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dir-btn.dir-move:active {
    transform: scale(0.95);
}

/* 攻击状态 - 红色渐变 + 剑图标 */
.dir-btn.dir-attack {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse-attack 1.5s ease-in-out infinite;
}

.dir-btn.dir-attack:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b9d, #ff4757);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.6);
}

.dir-btn.dir-attack:active {
    transform: scale(0.95);
    animation: none;
}

/* 攻击按钮脉冲动画 */
@keyframes pulse-attack {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(245, 87, 108, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(245, 87, 108, 0.6), 0 0 20px rgba(245, 87, 108, 0.4);
    }
}

/* 阻挡状态 - 灰色 */
.dir-btn.dir-blocked {
    background: linear-gradient(135deg, #757575, #616161);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 禁用状态 - 深灰色 */
.dir-btn.dir-disabled,
.dir-btn:disabled {
    background: linear-gradient(135deg, #424242, #303030);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* 触摸激活效果 */
.dir-btn.touch-active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

/* 涟漪效果容器 */
.dir-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dir-btn:active::before {
    width: 100px;
    height: 100px;
}

/* 消息日志 */
.message-log {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    padding: 10px;
    /* 优化移动端滚动 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    overscroll-behavior: contain; /* 防止滚动链 */
    /* 确保可以滚动 */
    touch-action: pan-y; /* 允许垂直滚动 */
}

/* 自定义滚动条样式 - 桌面端 */
.message-log::-webkit-scrollbar {
    width: 8px;
}

.message-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.message-log::-webkit-scrollbar-thumb {
    background: rgba(94, 53, 177, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.message-log::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 53, 177, 0.7);
}

/* Firefox滚动条样式 */
.message-log {
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 53, 177, 0.5) rgba(0, 0, 0, 0.1);
}

.message {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.message:last-child {
    border-bottom: none;
}

.message-system { color: #7f8c8d; }
.message-action { color: #2c3e50; }
.message-combat { color: #e74c3c; }
.message-success { color: #27ae60; }
.message-error { color: #e74c3c; font-weight: 600; }
.message-narrative {
    color: #5e35b1;
    font-style: italic;
    background: rgba(94, 53, 177, 0.1);
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #5e35b1;
    margin: 4px 0;
}
.message-info { color: #3498db; }
.message-warning { color: #f39c12; }

/* 物品栏 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.inventory-slot:hover {
    background: rgba(94, 53, 177, 0.2);
    transform: scale(1.05);
}

.inventory-slot.has-item {
    background: rgba(94, 53, 177, 0.1);
    border: 2px solid #5e35b1;
}

/* ========================================
   初始隐藏状态 - 通过 JavaScript 控制显示
   ======================================== */
#btn-quick-test,
#game-interface,
.loading-indicator,
#item-use-dialog,
#event-choice-dialog {
    display: none;
}

/* 消息日志面板间距 */
.message-log-panel {
    margin-top: 15px;
}

/* 进度条初始宽度 - 通过 JavaScript 动态更新 */
.progress-fill.progress-hp,
.progress-fill.progress-mp {
    width: 100%;
}

.progress-fill.progress-exp {
    width: 0%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px; /* 统一调整移动端内边距 */
    }

    .game-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .sidebar {
        display: grid;
        grid-auto-flow: column; /* 让网格项水平排列 */
        grid-auto-columns: minmax(280px, 1fr); /* 每个面板最小宽度280px，但可扩展 */
        gap: 15px;
        overflow-x: auto;
        padding: 10px 0; /* 为滚动区域添加垂直内边距 */
        /* 美化滚动条 */
        scrollbar-width: thin;
        scrollbar-color: #5e35b1 rgba(0,0,0,0.1);
    }

    .sidebar::-webkit-scrollbar {
        height: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
        border-radius: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background-color: #5e35b1;
        border-radius: 4px;
    }

    .panel {
        min-width: 0; /* 重置最小宽度，由Grid布局管理 */
    }

    .controls-panel {
        min-width: auto; /* 移除最小宽度限制，允许其自适应内容 */
    }

    .header {
        margin-bottom: 20px; /* 移除负边距，设置一个合适的正边距 */
        min-height: 250px; /* 调整高度以适应移动端 */
        background-size: cover; /* 让背景图片覆盖整个容器 */
        background-position: center top; /* 调整背景图片位置 */
    }

    .header h1 {
        font-size: 2rem;
    }

    /* 事件选择对话框响应式样式 */
    .event-choice-dialog {
        width: 98%;
        margin: 10px;
        max-height: 85vh; /* 移动端增加可用高度 */
    }

    .event-description {
        max-height: 25vh; /* 移动端调整描述区域高度 */
        font-size: 15px; /* 稍微减小字体 */
        padding: 16px;
    }

    .choice-options {
        max-height: 45vh; /* 移动端调整选项列表高度 */
        gap: 12px; /* 减小间距 */
    }

    .choice-option {
        padding: 16px;
    }

    .choice-text {
        font-size: 16px;
    }

    /* 移动端方向控制优化 */
    .direction-controls {
        max-width: 220px;
        gap: 10px;
        padding: 8px;
    }

    .dir-btn {
        min-height: 60px;
        min-width: 60px;
        padding: 14px;
        font-size: 1.4rem;
        border-radius: 16px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    }

    .dir-btn .material-icons {
        font-size: 1.8rem;
    }

    /* 移动端触摸优化 */
    .dir-btn:active {
        transform: scale(0.92);
    }

    .dir-btn.dir-move:hover:not(:disabled),
    .dir-btn.dir-attack:hover:not(:disabled) {
        transform: scale(1.02); /* 移动端减少悬停缩放 */
    }

    /* 控制按钮移动端优化 */
    .control-btn {
        padding: 12px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .controls {
        gap: 10px;
        grid-template-columns: repeat(3, auto); /* 使用auto代替1fr，使其自适应内容 */
        justify-content: center; /* 居中按钮 */
    }

    /* 地图容器移动端优化 */
    .map-container {
        min-height: 250px;
        padding: 8px;
    }

    .map-tile {
        width: 20px;
        height: 20px;
    }

    /* 消息日志移动端优化 */
    .message-log {
        max-height: 150px;
        font-size: 0.85rem;
    }

    /* 角色状态面板移动端优化 */
    .character-stats {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 6px;
    }
}

/* 超小屏幕优化 (手机竖屏) */
@media (max-width: 480px) {
    .direction-controls {
        max-width: 200px;
        gap: 8px;
    }

    .dir-btn {
        min-height: 55px;
        min-width: 55px;
        padding: 12px;
        font-size: 1.3rem;
    }

    .dir-btn .material-icons {
        font-size: 1.6rem;
    }

    /* 超小屏幕地图优化 */
    .map-tile {
        width: 18px;
        height: 18px;
    }

    /* 超小屏幕标题优化 */
    .header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    /* 超小屏幕面板优化 */
    .panel {
        padding: 12px;
        min-width: 200px;
    }

    .controls-panel {
        min-width: auto; /* 在超小屏幕上同样移除最小宽度限制 */
    }

    .panel h3 {
        font-size: 1rem;
    }

    /* 超小屏幕对话框优化 */
    .event-choice-dialog {
        width: 100%;
        margin: 5px;
        padding: 15px;
        max-height: 90vh; /* 超小屏幕最大化可用空间 */
    }

    .event-description {
        max-height: 20vh; /* 超小屏幕进一步压缩描述区域 */
        font-size: 14px;
        padding: 12px;
        line-height: 1.5;
    }

    .choice-options {
        max-height: 50vh; /* 超小屏幕优先显示选项 */
        gap: 10px;
    }

    .choice-option {
        padding: 12px;
    }

    .choice-text {
        font-size: 14px;
    }

    .choice-description {
        font-size: 13px;
    }

    .choice-consequences {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加所有可点击元素的触摸区域 */
    .dir-btn {
        min-height: 56px;
        min-width: 56px;
    }

    /* 移除悬停效果，使用触摸反馈 */
    .dir-btn:hover {
        transform: none;
    }

    .dir-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s;
    }

    /* 增强触摸反馈 */
    .dir-btn.touch-active {
        transform: scale(0.85);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(94, 53, 177, 0.3);
    border-radius: 50%;
    border-top-color: #5e35b1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 部分遮罩（只遮住地图区域） */
.partial-overlay {
    display: none;
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.partial-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 使用地牢怪物阴影背景 */
    background-color: rgba(20, 15, 35, 0.96);
    background-image: url('/static/assets/bg-overlay-dungeon.png');
    background-repeat: repeat;
    background-size: 200px 200px;
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    min-width: 300px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(138, 43, 226, 0.3);
    pointer-events: auto;
}

.partial-overlay .overlay-header h3 {
    color: #5e35b1;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.partial-overlay .overlay-header p {
    color: #b39ddb;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.partial-overlay .progress-container {
    margin-top: 20px;
}

.partial-overlay .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(94, 53, 177, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.partial-overlay .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5e35b1, #7e57c2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.partial-overlay .progress-text {
    color: #e1bee7;
    font-size: 0.9rem;
    margin: 0;
}

/* 任务列表样式 */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    overflow: visible; /* 确保内容可见 */
}

.quest-item {
    background: rgba(94, 53, 177, 0.05);
    border: 1px solid rgba(94, 53, 177, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.quest-item:hover {
    background: rgba(94, 53, 177, 0.1);
    border-color: rgba(94, 53, 177, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(94, 53, 177, 0.2);
}

.quest-item h4 {
    color: #5e35b1;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.quest-item p {
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.quest-objectives {
    margin-top: 10px;
}

.objective {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.objective.completed {
    color: #4caf50;
    text-decoration: line-through;
}

/* 任务进度条样式 */
.quest-progress {
    margin: 10px 0;
    padding: 8px;
    background: rgba(94, 53, 177, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(94, 53, 177, 0.3);
}

.progress-bar-small {
    width: 100%;
    height: 6px;
    background: rgba(94, 53, 177, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #5e35b1, #7e57c2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text-small {
    color: #b39ddb;
    font-size: 0.8rem;
    font-weight: bold;
}

.debug-info {
    border-left: 3px solid #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

/* 地图切换按钮 */
.transition-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.transition-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #66bb6a, #81c784);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.transition-btn:disabled {
    background: #424242;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.transition-btn i {
    font-size: 1.2rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* 全屏加载遮罩 - 优化版本 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 使用魔法能量流动背景 */
    background-color: rgba(20, 15, 35, 0.96);
    background-image: url('/static/assets/bg-loading-overlay.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    background-position: center;
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: 'Roboto', sans-serif;
    animation: overlayFadeIn 0.5s ease-out;
}

.fullscreen-overlay.show {
    display: flex;
}

.overlay-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    position: relative;
}

.overlay-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.overlay-icon .material-icons {
    font-size: inherit;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.overlay-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #e8eaf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.overlay-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, 0.6);
    animation: spinEnhanced 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 2rem;
    position: relative;
}

.overlay-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spinReverse 0.8s linear infinite;
}

.overlay-progress {
    width: 350px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem auto;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

.overlay-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, #e8eaf6, #fff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.overlay-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    border-radius: 0 10px 10px 0;
}

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

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

@keyframes spinEnhanced {
    0% {
        transform: rotate(0deg);
        border-top-color: #fff;
        border-right-color: rgba(255, 255, 255, 0.6);
    }
    25% {
        border-top-color: rgba(255, 255, 255, 0.8);
        border-right-color: #fff;
    }
    50% {
        border-top-color: rgba(255, 255, 255, 0.6);
        border-right-color: rgba(255, 255, 255, 0.8);
    }
    75% {
        border-top-color: #fff;
        border-right-color: rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: rotate(360deg);
        border-top-color: #fff;
        border-right-color: rgba(255, 255, 255, 0.6);
    }
}

@keyframes spinReverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes tipFade {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
}

.overlay-status {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.overlay-tips {
    margin-top: 2rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-tips p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    animation: tipFade 4s ease-in-out infinite;
}

/* 地图瓦片高亮效果 */
.map-tile.movable {
    background-color: rgba(76, 175, 80, 0.3) !important;
    border: 2px solid #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse-green 1.5s infinite;
}

.map-tile.attackable {
    background-color: rgba(244, 67, 54, 0.3) !important;
    border: 2px solid #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    animation: pulse-red 1.5s infinite;
}

.map-tile.path-highlight {
    background-color: rgba(255, 193, 7, 0.4) !important;
    border: 2px solid #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

/* 任务事件高亮样式 */
.map-tile.quest-event {
    background-color: rgba(156, 39, 176, 0.3) !important;
    border: 2px solid #9c27b0;
    box-shadow: 0 0 12px rgba(156, 39, 176, 0.7);
    animation: quest-pulse 2s infinite;
}

.map-tile.quest-event::after {
    content: "⭐";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #9c27b0;
    text-shadow: 0 0 3px rgba(156, 39, 176, 0.8);
}

/* 任务怪物高亮样式 */
.character-monster.quest-monster {
    background-color: #e91e63 !important;
    border: 2px solid #ad1457;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.8);
    animation: quest-monster-pulse 1.5s infinite;
}

.character-monster.quest-monster::after {
    content: "👑";
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 8px;
    text-shadow: 0 0 3px rgba(233, 30, 99, 0.9);
}

/* 任务Boss特殊样式 */
.character-monster.quest-boss {
    background-color: #f44336 !important;
    border: 3px solid #d32f2f;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.9);
    animation: boss-pulse 1s infinite;
    transform: scale(1.1);
}

.character-monster.quest-boss::after {
    content: "💀";
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 10px;
    text-shadow: 0 0 5px rgba(244, 67, 54, 1);
}

/* 动画效果 */
@keyframes quest-pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(156, 39, 176, 0.7);
        border-color: #9c27b0;
    }
    50% {
        box-shadow: 0 0 20px rgba(156, 39, 176, 0.9);
        border-color: #7b1fa2;
    }
}

@keyframes quest-monster-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(233, 30, 99, 0.8);
        border-color: #ad1457;
    }
    50% {
        box-shadow: 0 0 25px rgba(233, 30, 99, 1);
        border-color: #880e4f;
    }
}

@keyframes boss-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.9);
        border-color: #d32f2f;
        transform: scale(1.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(244, 67, 54, 1);
        border-color: #b71c1c;
        transform: scale(1.15);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
        transform: scale(1.05);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
        transform: scale(1.05);
    }
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* 任务完成特效 */
.quest-completion-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(94, 53, 177, 0.9), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: questCompletionFadeIn 0.8s ease-out;
}

.quest-completion-effect.fade-out {
    animation: questCompletionFadeOut 1s ease-in forwards;
}

.quest-completion-content {
    text-align: center;
    color: white;
    position: relative;
    animation: questCompletionBounce 1s ease-out;
}

.quest-completion-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: questCompletionIconSpin 2s ease-out;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.quest-completion-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: questCompletionGoldShimmer 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.quest-completion-quest-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e1bee7;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(225, 190, 231, 0.5);
}

.quest-completion-reward {
    font-size: 1.2rem;
    color: #81c784;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(129, 199, 132, 0.5);
}

/* 粒子效果 */
.quest-completion-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.quest-completion-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700, #ffed4e);
    border-radius: 50%;
    animation: questCompletionParticle 3s ease-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.quest-completion-particles .particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.quest-completion-particles .particle:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 0.2s;
}

.quest-completion-particles .particle:nth-child(3) {
    top: 80%;
    left: 10%;
    animation-delay: 0.4s;
}

.quest-completion-particles .particle:nth-child(4) {
    top: 70%;
    left: 90%;
    animation-delay: 0.6s;
}

.quest-completion-particles .particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 0.8s;
}

.quest-completion-particles .particle:nth-child(6) {
    top: 30%;
    left: 95%;
    animation-delay: 1s;
}

.quest-completion-particles .particle:nth-child(7) {
    top: 90%;
    left: 50%;
    animation-delay: 1.2s;
}

.quest-completion-particles .particle:nth-child(8) {
    top: 5%;
    left: 50%;
    animation-delay: 1.4s;
}

/* 动画关键帧 */
@keyframes questCompletionFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes questCompletionFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

@keyframes questCompletionBounce {
    0% {
        transform: scale(0.3) translateY(100px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes questCompletionIconSpin {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes questCompletionGoldShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes questCompletionParticle {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

/* FAB 浮动操作按钮 */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.fab.hidden {
    display: none;
}

/* 调试面板 */
.debug-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow-y: auto;
    display: none;
}

.debug-panel.show {
    display: block;
}

.debug-panel h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.debug-section {
    margin-bottom: 20px;
}

.debug-section h4 {
    margin: 0 0 10px 0;
    color: #9ca3af;
    font-size: 14px;
}

.debug-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

.debug-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debug-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 调试按钮样式 */
.debug-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.debug-button-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #667eea;
}

.debug-button-group h5 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.debug-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.debug-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.debug-btn .material-icons {
    font-size: 16px;
}

.debug-teleport-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.debug-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    max-width: 80px;
}

.debug-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.debug-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.debug-teleport-group .debug-btn {
    flex: 2;
    margin-bottom: 0;
}

/* 调试模式快速测试按钮样式 */
.debug-only {
    position: relative;
    overflow: hidden;
}

.debug-only::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.debug-only:hover::before {
    left: 100%;
}

.debug-only:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 154, 86, 0.5);
}

/* 确保按钮在调试模式下有特殊的视觉效果 */
#btn-quick-test {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: 2px solid rgba(255, 152, 0, 0.3);
    animation: debugPulse 2s infinite;
}

@keyframes debugPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.6);
    }
}
