/* ========================================
   HTTP 请求头查看工具样式
   ======================================== */

html, body { height: 100%; overflow: hidden; margin: 0; }
body { display: flex; align-items: center; justify-content: center; padding-top: 70px; }

.main-content {
    width: 100%; max-width: 900px; height: calc(100vh - 120px);
    display: flex; align-items: center; padding: 0 20px; padding-bottom: 50px; z-index: 10;
}
.container { width: 100%; height: 100%; }
.tool-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.panel-header {
    padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted);
    background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}

/* 工具栏 */
.headers-toolbar { padding: 12px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); display: flex; gap: 8px; flex-shrink: 0; }
.header-btn {
    padding: 6px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05); color: var(--text-secondary); cursor: pointer;
    font-size: 13px; display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.header-btn:hover { background: var(--primary-light); color: var(--primary-color); }

/* 内容区 */
.headers-content { flex: 1; overflow-y: auto; padding: 0; }
.headers-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; color: var(--text-muted); gap: 12px; }
.headers-loading i { font-size: 32px; }

.header-item {
    display: flex; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.15s; gap: 16px;
}
.header-item:hover { background: rgba(200,117,51,0.04); }
.header-key {
    min-width: 200px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    font-family: var(--font-mono); text-transform: capitalize; flex-shrink: 0;
}
.header-value { font-size: 13px; color: var(--text-secondary); word-break: break-all; font-family: var(--font-mono); }

@media (max-width: 768px) {
    .header-item { flex-direction: column; gap: 4px; }
    .header-key { min-width: auto; }
}
