.hr-header { margin-bottom: 24px; }
.hr-title { font-size: 28px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.hr-desc { font-size: 15px; color: #6b7280; margin: 0; }

/* 请求区域 */
.hr-request { margin-bottom: 20px; padding: 24px; }
.hr-url-row { display: flex; gap: 8px; margin-bottom: 12px; }
.hr-method { padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-weight: 600; background: white; cursor: pointer; }
.hr-method:focus { outline: none; border-color: #3b82f6; }
.hr-method option[value="GET"] { color: #10b981; }
.hr-method option[value="POST"] { color: #f59e0b; }
.hr-method option[value="PUT"] { color: #3b82f6; }
.hr-method option[value="DELETE"] { color: #ef4444; }
.hr-method option[value="PATCH"] { color: #8b5cf6; }
.hr-url-input { flex: 1; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: 'SF Mono', monospace; }
.hr-url-input:focus { outline: none; border-color: #3b82f6; }
.hr-send-btn { padding: 12px 24px; background: #3b82f6; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.hr-send-btn:hover { background: #2563eb; }
.hr-send-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.hr-hint { font-size: 13px; color: #9ca3af; margin: 0; }

/* Response */
.hr-response { margin-bottom: 20px; padding: 24px; }
.hr-res-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hr-res-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.hr-res-meta { display: flex; gap: 12px; align-items: center; }
.hr-status { padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.hr-status.success { background: #d1fae5; color: #059669; }
.hr-status.error { background: #fee2e2; color: #dc2626; }
.hr-status.warning { background: #fef3c7; color: #d97706; }
.hr-time { font-size: 13px; color: #6b7280; }

.hr-res-tabs { display: flex; gap: 4px; border-bottom: 2px solid #f3f4f6; margin-bottom: 16px; }
.hr-res-tab { padding: 8px 16px; border: none; background: transparent; font-size: 14px; color: #6b7280; cursor: pointer; position: relative; }
.hr-res-tab.active { color: #3b82f6; }
.hr-res-toolbar { display: flex; gap: 8px; margin-bottom: 8px; }
.hr-format-btn, .hr-copy-btn { padding: 6px 12px; border: 1px solid #e5e7eb; background: white; border-radius: 6px; font-size: 12px; cursor: pointer; }
.hr-format-btn:hover, .hr-copy-btn:hover { background: #f3f4f6; }

.hr-res-body { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; font-family: 'SF Mono', monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-height: 400px; overflow-y: auto; margin: 0; }

.hr-res-headers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hr-res-headers-table th { background: #f9fafb; padding: 10px; text-align: left; border-bottom: 2px solid #e5e7eb; }
.hr-res-headers-table td { padding: 10px; border-bottom: 1px solid #f3f4f6; }
.hr-res-headers-table td:first-child { font-family: 'SF Mono', monospace; color: #6b7280; width: 30%; }

/* Guide */
.hr-guide { padding: 20px; }
.hr-guide h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.hr-guide-content { font-size: 14px; line-height: 1.8; color: #374151; }
.hr-guide-content h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
.hr-guide-content ul { padding-left: 20px; }
.hr-guide-content li { margin: 4px 0; }
.hr-guide-content code { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; }

@media (max-width: 640px) {
    .hr-url-row { flex-wrap: wrap; }
    .hr-url-input { order: 3; width: 100%; }
    .hr-header-row { flex-wrap: wrap; }
    .hr-h-key, .hr-h-value { width: calc(50% - 18px); }
}

@media (prefers-color-scheme: dark) {
    .hr-method, .hr-url-input, .hr-h-key, .hr-h-value, .hr-body-input { background: #1f2937; border-color: #374151; color: #f9fafb; }
    .hr-res-body { background: #1f2937; border-color: #374151; }
    .hr-history-item { background: #1f2937; border-color: #374151; }
    .hr-history-item:hover { background: #374151; }
}
