/* 技能弹出菜单样式 */

/* 技能菜单容器 */
.skill-popup-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    min-width: 160px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.skill-popup-menu.show {
    display: block;
    animation: skillMenuSlideUp 0.2s ease;
}

@keyframes skillMenuSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 技能菜单项 */
.skill-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.skill-menu-item:hover {
    background: #f5f5f5;
}

.skill-menu-item.active {
    background: #e8f4fd;
}

.skill-menu-item-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-menu-item-text {
    flex: 1;
    min-width: 0;
}

.skill-menu-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.skill-menu-item-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    margin-left: 4px;
}

/* 技能切换按钮样式 - 与深度思考按钮一致 */
.skill-toggle-btn {
    background: #f0f7ff; /* 浅蓝色背景 */
    color: #3b82f6; /* 蓝色文字 */
    border: 1px solid #bfdbfe; /* 浅蓝色边框 */
    padding: 0 14px;
    gap: 6px;
    width: auto;
    min-width: 70px;
    height: 36px; /* 统一高度 */
    border-radius: 18px; /* 圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skill-toggle-btn:hover {
    background: #dbeafe; /* 悬浮背景 */
    border-color: #93c5fd; /* 悬浮边框 */
}

.skill-toggle-btn.active {
    background: #3b82f6; /* 激活背景 */
    color: white;
    border-color: #3b82f6; /* 激活边框 */
}

.skill-toggle-btn .icon {
    width: 18px;
    height: 18px;
}

.skill-toggle-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .skill-popup-menu {
        left: auto !important;
        right: 0 !important;
        min-width: 140px;
        transform: translateX(0) !important;
    }
    
    .skill-menu-item {
        padding: 10px;
        gap: 10px;
    }
    
    .skill-menu-item-icon {
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
    
    .skill-menu-item-name {
        font-size: 13px;
    }
    
    /* 移动端技能按钮只显示图标 */
    .skill-toggle-btn {
        min-width: 36px !important;
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .skill-toggle-btn span {
        display: none !important;
    }
    
    .skill-toggle-btn .icon {
        margin: 0 !important;
    }
}

/* 小屏幕优化 */
@media (max-width: 375px) {
    .skill-popup-menu {
        min-width: 130px;
    }
    
    .skill-menu-item {
        padding: 8px;
        gap: 8px;
    }
    
    .skill-menu-item-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .skill-menu-item-name {
        font-size: 12px;
    }
}
