.tool-section {
    padding: 2rem 0 5rem;
    background: #fff;
}

/* ========== 查询卡片 ========== */
.http-search-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.http-search-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

/* 请求方法按钮 - 分段式按钮组 */
.http-method-btns {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.http-method-btn {
    padding: 0.55rem 1rem;
    border: none;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.http-method-btn + .http-method-btn {
    border-left: 1px solid #e2e8f0;
}
.http-method-btn:hover {
    background: #f1f5f9;
    color: #334155;
}
.http-method-btn.active {
    background: #6366f1;
    color: #fff;
}

/* 快速 URL 标签 */
.http-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.http-tag:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    color: #4f46e5;
}

/* ========== 结果卡片 ========== */
.http-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.http-result-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.2rem;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    word-break: break-all;
}
.http-result-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

/* 状态码圆圈 */
.http-status-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.http-status-circle span {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    color: #fff;
}
.http-status-circle.status-2xx { background: #22c55e; }
.http-status-circle.status-3xx { background: #f59e0b; }
.http-status-circle.status-4xx { background: #ef4444; }
.http-status-circle.status-5xx { background: #dc2626; }
.http-status-circle.status-unknown { background: #94a3b8; }

.http-time {
    font-size: 0.82rem;
    color: #94a3b8;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}

/* ========== 区块标题 ========== */
.http-section-title {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.85rem;
}
.http-count {
    font-size: 0.78rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 0.5rem;
}

/* ========== 重定向链 ========== */
.http-redirect-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.http-redirect-step {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}
.http-redirect-step .step-code {
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.7rem;
}
.http-redirect-step .step-code.code-3xx {
    background: #fef3c7;
    color: #d97706;
}
.http-redirect-step .step-code.code-2xx {
    background: #dcfce7;
    color: #16a34a;
}
.http-redirect-step .step-url {
    color: #475569;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.http-redirect-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ========== 响应头表格 ========== */
.http-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.http-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.http-table th {
    background: #f8fafc;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.http-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    vertical-align: middle;
}
.http-table tr:last-child td { border-bottom: none; }
.http-table tbody tr:hover { background: #f8fafc; }
.http-table td.mono {
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    font-size: 0.8rem;
    word-break: break-all;
}
.http-table .header-name-cell {
    font-weight: 600;
    color: #475569;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    white-space: nowrap;
}

/* 复制值按钮 */
.http-copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
    margin-left: 0.35rem;
}
.http-copy-btn:hover { color: #6f42c1; background: #f3f0ff; }

/* 空状态 */
.http-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}
.http-empty svg { margin-bottom: 0.5rem; }
.http-empty p { margin: 0; font-size: 0.85rem; }

@media (max-width: 767px) {
    .tool-section { padding: 1.5rem 0 3rem; }
    .http-redirect-step .step-url { max-width: 100px; }
}
