/* ========================================
   技能选择界面样式
   ======================================== */

.skill-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.skill-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.skill-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.skill-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.skill-options {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.skill-card {
    width: 200px;
    height: 280px;
    background: rgba(20, 24, 30, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px);
}

.skill-overlay.visible .skill-card {
    opacity: 1;
    transform: translateY(0);
}

.skill-overlay.visible .skill-card:nth-child(1) {
    transition-delay: 0.1s;
}

.skill-overlay.visible .skill-card:nth-child(2) {
    transition-delay: 0.2s;
}

.skill-overlay.visible .skill-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* 稀有度边框颜色 */
.skill-card.common {
    border-color: #95a5a6;
}

.skill-card.rare {
    border-color: #3498db;
}

.skill-card.epic {
    border-color: #9b59b6;
}

.skill-card.legendary {
    border-color: #f39c12;
}

.skill-card:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.08);
}

.skill-card.common:hover {
    box-shadow: 0 0 30px rgba(149, 165, 166, 0.4);
    border-color: #bdc3c7;
}

.skill-card.rare:hover {
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
    border-color: #5dade2;
}

.skill-card.epic:hover {
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
    border-color: #bb8fce;
}

.skill-card.legendary:hover {
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.6);
    border-color: #f5b041;
}

.skill-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 60px;
    height: 60px;
}

.skill-rarity {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 3px;
}

.skill-rarity.common {
    color: #95a5a6;
    background: rgba(149, 165, 166, 0.2);
}

.skill-rarity.rare {
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

.skill-rarity.epic {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.2);
}

.skill-rarity.legendary {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
}

.skill-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.skill-desc {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .skill-options {
        flex-direction: column;
        gap: 20px;
    }
    
    .skill-card {
        width: 180px;
        height: 240px;
    }
    
    .skill-title {
        font-size: 1.5rem;
    }
}


/* ========================================
   技能栏样式（天赋栏下方）
   ======================================== */

.skill-bar {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0;
    margin-top: 8px;
}

.skill-bar-header {
    padding: 4px 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-bar-header.player-header {
    color: var(--primary-color);
    border-bottom-color: rgba(0, 242, 255, 0.3);
}

.skill-bar-header.npc-header {
    color: var(--enemy-color);
    border-bottom-color: rgba(255, 46, 77, 0.3);
}

.skill-bar-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    padding: 4px;
    min-width: 260px;
    min-height: 42px;
}

.skill-bar-icon {
    position: relative;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    background: linear-gradient(135deg,
            rgba(20, 30, 40, 0.9) 0%,
            rgba(10, 15, 25, 0.95) 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
}

.skill-bar-icon:hover {
    transform: scale(1.2);
    z-index: 100;
}

/* 稀有度边框颜色 */
.skill-bar-icon.common {
    border: 1px solid #95a5a6;
    color: #95a5a6;
    box-shadow: 0 0 4px rgba(149, 165, 166, 0.2);
}

.skill-bar-icon.common:hover {
    box-shadow: 0 0 10px rgba(149, 165, 166, 0.4);
}

.skill-bar-icon.rare {
    border: 1px solid #3498db;
    color: #3498db;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.3);
}

.skill-bar-icon.rare:hover {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.skill-bar-icon.epic {
    border: 1px solid #9b59b6;
    color: #9b59b6;
    box-shadow: 0 0 4px rgba(155, 89, 182, 0.3);
}

.skill-bar-icon.epic:hover {
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.skill-bar-icon.legendary {
    border: 1px solid #f39c12;
    color: #f39c12;
    box-shadow: 0 0 4px rgba(243, 156, 18, 0.3);
}

.skill-bar-icon.legendary:hover {
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}


