/* 技能选择器样式 */

.skill-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.skill-selector::-webkit-scrollbar {
    display: none;
}

.skill-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: #f0f7ff; /* 与深度思考按钮一致的浅蓝色背景 */
    border: 1px solid #bfdbfe; /* 与深度思考按钮一致的边框 */
    border-radius: 18px; /* 与深度思考按钮一致的圆角 */
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
    color: #3b82f6; /* 与深度思考按钮一致的蓝色文字 */
    height: 36px; /* 与深度思考按钮一致的高度 */
    flex-shrink: 0;
}

.skill-btn:hover {
    background: #dbeafe; /* 与深度思考按钮一致的悬浮背景 */
    border-color: #93c5fd; /* 与深度思考按钮一致的悬浮边框 */
}

.skill-btn.active {
    background: #3b82f6; /* 与深度思考按钮一致的激活背景 */
    border-color: #3b82f6; /* 与深度思考按钮一致的激活边框 */
    color: white;
}

.skill-btn .skill-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.skill-btn .skill-name {
    font-weight: 500;
}

.skill-btn .skill-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.15); /* 调整徽章背景 */
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.skill-btn.active .skill-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* 技能描述提示 */
.skill-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: var(--radius-md);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.skill-btn:hover .skill-tooltip {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .skill-selector {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .skill-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .skill-btn .skill-icon {
        width: 16px;
        height: 16px;
    }
    
    .skill-btn .skill-name {
        display: none;
    }
    
    .skill-btn.active .skill-name {
        display: inline;
    }
}

/* 暗色模式 */
.dark-theme .skill-btn {
    background: var(--bg-tertiary);
}

.dark-theme .skill-btn:hover {
    background: var(--bg-secondary);
}
