/* 页面助手样式 - 使用说明和反馈按钮 */

/* 浮动按钮容器 */
.page-helper-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-helper-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.page-helper-btn:active {
    transform: scale(0.95);
}

/* 使用说明按钮位置（右下角） */
.page-helper-help {
    bottom: 100px;
    right: 20px;
}

/* 反馈按钮位置（右下角，在使用说明按钮上方） */
.page-helper-feedback {
    bottom: 160px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.page-helper-feedback:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

/* 手机端调整 */
@media (max-width: 768px) {
    .page-helper-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .page-helper-help {
        bottom: 80px;
        right: 15px;
    }
    
    .page-helper-feedback {
        bottom: 135px;
        right: 15px;
    }
}

/* 模态框样式 */
.page-helper-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-helper-modal-content {
    background: #1f2937;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-helper-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-helper-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.page-helper-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-helper-close:hover {
    background: #374151;
    color: white;
}

.page-helper-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #d1d5db;
    line-height: 1.6;
}

.page-helper-modal-body h1 {
    color: white;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.page-helper-modal-body h2 {
    color: white;
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.page-helper-modal-body h3 {
    color: #e5e7eb;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-helper-modal-body p {
    margin-bottom: 12px;
}

.page-helper-modal-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.page-helper-modal-body li {
    margin-bottom: 8px;
}

.page-helper-modal-body code {
    background: #111827;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #60a5fa;
}

.page-helper-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.page-helper-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.page-helper-error {
    text-align: center;
    padding: 40px;
    color: #ef4444;
}

/* 表单样式 */
.page-helper-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-helper-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-helper-form-group label {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 14px;
}

.page-helper-form-group input,
.page-helper-form-group select,
.page-helper-form-group textarea {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 10px 12px;
    color: #d1d5db;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.page-helper-form-group input:focus,
.page-helper-form-group select:focus,
.page-helper-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.page-helper-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.page-helper-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.page-helper-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.page-helper-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-helper-btn-secondary {
    background: #374151;
    color: #d1d5db;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.page-helper-btn-secondary:hover {
    background: #4b5563;
    color: white;
}

/* 手机端模态框调整 */
@media (max-width: 768px) {
    .page-helper-modal {
        padding: 10px;
    }
    
    .page-helper-modal-content {
        max-height: 95vh;
    }
    
    .page-helper-modal-header {
        padding: 16px;
    }
    
    .page-helper-modal-header h2 {
        font-size: 20px;
    }
    
    .page-helper-modal-body {
        padding: 16px;
    }
    
    .page-helper-form-actions {
        flex-direction: column;
    }
    
    .page-helper-btn-primary,
    .page-helper-btn-secondary {
        width: 100%;
    }
}







