/* 帮助按钮样式 */
.help-btn {
    margin-left: 10px;
    background-color: rgba(24, 144, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
}

.help-btn:hover {
    background-color: rgba(24, 144, 255, 0.2);
}

/* 帮助面板样式 */
.help-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999; /* 提高z-index确保在最上层 */
    display: none !important; /* 强制默认不显示 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none; /* 默认不接收鼠标事件 */
}

/* 当添加visible类时显示面板 */
.help-panel.visible {
    opacity: 1;
    visibility: visible;
    display: flex !important; /* 确保显示 */
    pointer-events: auto; /* 可以接收鼠标事件 */
}

.help-panel-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.help-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.help-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.help-panel-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.help-panel-header .close-btn:hover {
    color: #333;
}

.help-panel-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.help-content {
    color: #333;
    line-height: 1.6;
}

.help-content h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #1890ff;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.help-content h3 {
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.help-content p {
    margin-bottom: 15px;
}

.help-content ul, .help-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 5px;
}

.help-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.help-content th, .help-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.help-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.help-content code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .help-panel-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .help-panel-body {
        padding: 15px;
    }
} 