/* API测试工具 - 主题响应式样式 */

:root {
    /* 浅色主题变量 */
    --light-bg-primary: #f5f5f5;
    --light-bg-secondary: #ffffff;
    --light-bg-tertiary: #f8f9fa;
    --light-bg-hover: #e9ecef;
    --light-border-color: #dee2e6;
    --light-border-light: #f1f3f4;
    --light-text-primary: #333333;
    --light-text-secondary: #666666;
    --light-text-muted: #999999;
    --light-accent-primary: #007bff;
    --light-accent-success: #28a745;
    --light-accent-warning: #ffc107;
    --light-accent-danger: #dc3545;
    --light-accent-info: #17a2b8;
    
    /* 深色主题变量 */
    --dark-bg-primary: #0d1117;
    --dark-bg-secondary: #161b22;
    --dark-bg-tertiary: #21262d;
    --dark-bg-hover: #30363d;
    --dark-border-color: #30363d;
    --dark-border-light: #21262d;
    --dark-text-primary: #c9d1d9;
    --dark-text-secondary: #8b949e;
    --dark-text-muted: #6e7681;
    --dark-accent-primary: #58a6ff;
    --dark-accent-success: #238636;
    --dark-accent-warning: #d29922;
    --dark-accent-danger: #da3633;
    --dark-accent-info: #1f6feb;
    
    /* 通用变量 */
    --method-get: #238636;
    --method-post: #1f6feb;
    --method-put: #d29922;
    --method-delete: #da3633;
    --method-patch: #8957e5;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--light-text-primary);
    background-color: var(--light-bg-primary);
}

/* 浅色主题 */
body {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --bg-tertiary: var(--light-bg-tertiary);
    --bg-hover: var(--light-bg-hover);
    --border-color: var(--light-border-color);
    --border-light: var(--light-border-light);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --text-muted: var(--light-text-muted);
    --accent-primary: var(--light-accent-primary);
    --accent-success: var(--light-accent-success);
    --accent-warning: var(--light-accent-warning);
    --accent-danger: var(--light-accent-danger);
    --accent-info: var(--light-accent-info);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), #0056b3);
    --gradient-success: linear-gradient(135deg, var(--accent-success), #218838);
    --gradient-warning: linear-gradient(135deg, var(--accent-warning), #e0a800);
    --gradient-danger: linear-gradient(135deg, var(--accent-danger), #c82333);
}

/* 深色主题 */
body.dark-theme {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --bg-hover: var(--dark-bg-hover);
    --border-color: var(--dark-border-color);
    --border-light: var(--dark-border-light);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-muted: var(--dark-text-muted);
    --accent-primary: var(--dark-accent-primary);
    --accent-success: var(--dark-accent-success);
    --accent-warning: var(--dark-accent-warning);
    --accent-danger: var(--dark-accent-danger);
    --accent-info: var(--dark-accent-info);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), #1f6feb);
    --gradient-success: linear-gradient(135deg, var(--accent-success), #2ea043);
    --gradient-warning: linear-gradient(135deg, var(--accent-warning), #f0c14b);
    --gradient-danger: linear-gradient(135deg, var(--accent-danger), #f85149);
}

.api-tester-section {
    padding: 24px 0;
    min-height: calc(100vh - 60px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 页面头部 */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-title i {
    color: var(--accent-primary);
    font-size: 32px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 主工作区 */
.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .workspace {
        grid-template-columns: 1fr;
    }
}

/* 面板通用样式 */
.request-panel,
.response-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* URL栏 */
.url-bar {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.method-selector {
    position: relative;
}

.method-select {
    appearance: none;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    min-width: 110px;
    transition: var(--transition);
}

.method-select:hover {
    border-color: var(--accent-primary);
}

.method-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.method-selector::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* 请求方法颜色 */
.method-select option.method-get { color: var(--method-get); }
.method-select option.method-post { color: var(--method-post); }
.method-select option.method-put { color: var(--method-put); }
.method-select option.method-delete { color: var(--method-delete); }
.method-select option.method-patch { color: var(--method-patch); }

.url-input-wrapper {
    flex: 1;
}

.url-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 14px;
    transition: var(--transition);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.url-input:hover {
    border-color: var(--bg-hover);
}

.url-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
    position: relative;
    overflow: hidden;
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.send-btn:hover::before {
    left: 100%;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 超时设置 */
.timeout-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeout-setting label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timeout-input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 12px;
    width: 80px;
    text-align: center;
    transition: var(--transition);
}

.timeout-input:hover {
    border-color: var(--bg-hover);
}

.timeout-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* 标签页导航 */
.tabs-nav {
    display: flex;
    gap: 4px;
    padding: 8px 16px 0;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform: translateY(-1px);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
}

.tab-btn .badge {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.tab-btn.active .badge {
    background-color: var(--accent-primary);
    color: white;
}

/* 标签页内容 */
.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 按钮样式 */
.add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.add-btn:hover::before {
    left: 100%;
}

.add-btn:hover {
    background-color: var(--border-color);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.delete-btn:hover {
    background-color: rgba(218, 54, 51, 0.1);
    color: var(--accent-danger);
}

/* Headers列表 */
.headers-list,
.form-data-list,
.url-encoded-list,
.params-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-item,
.form-data-item,
.url-encoded-item,
.param-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.header-item:hover,
.form-data-item:hover,
.url-encoded-item:hover,
.param-item:hover {
    border-color: var(--bg-hover);
}

.item-checkbox,
.header-checkbox {
    display: flex;
    align-items: center;
}

.item-checkbox input,
.header-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.header-key,
.header-value,
.item-key,
.item-value {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 12px;
    transition: var(--transition);
}

.header-key:focus,
.header-value:focus,
.item-key:focus,
.item-value:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.header-key::placeholder,
.header-value::placeholder,
.item-key::placeholder,
.item-value::placeholder {
    color: var(--text-muted);
}

.item-type {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
}

.file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.file-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.file-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Body类型选择器 */
.body-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.radio-label:hover {
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* Raw内容区 */
.raw-type-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.raw-type-bar select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
}

.format-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.format-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.raw-textarea,
.response-textarea,
.response-code {
    width: 100%;
    min-height: 300px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Consolas', 'Monaco', 'SF Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 16px;
    resize: vertical;
    transition: var(--transition);
}

.raw-textarea:focus,
.response-textarea:focus,
.response-code:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.response-code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.raw-textarea::placeholder,
.response-textarea::placeholder {
    color: var(--text-muted);
}

/* Binary上传区 */
.binary-upload {
    padding: 20px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--text-muted);
}

.upload-area p {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-area span {
    font-size: 13px;
    color: var(--text-muted);
}

.file-info {
    margin-top: 16px;
    padding: 12px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

/* 响应结果区 */
.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.response-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.response-title i {
    color: var(--accent-primary);
}

.response-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

/* 请求进度条 */
.progress-bar-container {
    height: 4px;
    background-color: var(--bg-tertiary);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 自动补全建议 */
.auto-complete {
    position: absolute;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.auto-complete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 13px;
}

.auto-complete-item:hover {
    background-color: var(--accent-primary);
    color: white;
}

/* 响应元信息 */
.response-meta {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

#response-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

#response-status.success {
    background-color: rgba(35, 134, 54, 0.2);
    color: #3fb950;
}

#response-status.error {
    background-color: rgba(218, 54, 51, 0.2);
    color: #f85149;
}

/* 响应标签页 */
.response-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 16px 0;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.resp-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.resp-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.resp-tab-btn:hover::before {
    left: 100%;
}

.resp-tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform: translateY(-1px);
}

.resp-tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.resp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
}

.resp-tab-content {
    display: none;
    padding: 16px;
}

.resp-tab-content.active {
    display: block;
}

/* 响应头列表 */
.response-headers-list {
    max-height: 400px;
    overflow-y: auto;
}

.resp-header-item {
    display: flex;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.resp-header-item:last-child {
    border-bottom: none;
}

.resp-header-key {
    color: var(--accent-primary);
    font-weight: 500;
    min-width: 200px;
}

.resp-header-value {
    color: var(--text-primary);
    word-break: break-all;
}

/* 快捷功能区 */
.quick-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.action-group {
    display: flex;
    gap: 12px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

/* 历史面板 */
.history-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-header h3 i {
    color: var(--accent-primary);
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--accent-danger);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.clear-history-btn:hover {
    color: #f85149;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    background-color: var(--bg-tertiary);
}

.history-method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-method.get { background-color: rgba(35, 134, 54, 0.2); color: #3fb950; }
.history-method.post { background-color: rgba(31, 111, 235, 0.2); color: #58a6ff; }
.history-method.put { background-color: rgba(210, 153, 34, 0.2); color: #d29922; }
.history-method.delete { background-color: rgba(218, 54, 51, 0.2); color: #f85149; }
.history-method.patch { background-color: rgba(137, 87, 229, 0.2); color: #8957e5; }

.history-url {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--bg-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .url-bar {
        flex-wrap: wrap;
    }
    
    .url-input-wrapper {
        width: 100%;
        order: 3;
    }
    
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .response-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .quick-actions-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-group {
        width: 100%;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    animation: fadeIn 0.2s ease;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--accent-success);
}

.toast.error {
    border-left: 4px solid var(--accent-danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}