/**
 * 上下文帮助系统样式
 */

.context-help-icon {
    color: #007bff;
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.9em;
    transition: color 0.2s;
}

.context-help-icon:hover {
    color: #0056b3;
}

.context-help-tooltip {
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    animation: slideDown 0.2s ease-out;
}

.context-help-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.context-help-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.context-help-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.context-help-close:hover {
    color: #212529;
}

.context-help-content {
    padding: 15px;
}

.context-help-content p {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.context-help-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e83e8c;
}

.context-help-examples {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.context-help-examples strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #495057;
}

.context-help-examples ul {
    margin: 0;
    padding-left: 20px;
}

.context-help-examples li {
    margin: 5px 0;
    font-size: 13px;
    color: #6c757d;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .context-help-tooltip {
        max-width: 90%;
        min-width: auto;
        left: 5% !important;
        right: 5%;
    }
}

