/* ==================== 搜索和筛选区域 ==================== */
.http-search-filter-area {
    margin-bottom: 24px;
}

.http-search-box {
    position: relative;
    margin-bottom: 16px;
}

.http-search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.http-search-box input:focus {
    outline: none;
    border-color: #2196F3;
}

.http-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

.http-filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.http-filter-tag {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.http-filter-tag:hover {
    border-color: #2196F3;
    color: #2196F3;
}

.http-filter-tag.active {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
}

/* ==================== 状态码卡片网格 ==================== */
.http-status-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.http-status-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.http-status-card:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.http-status-card.expanded {
    grid-column: 1 / -1;
}

.http-status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.http-status-code {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.http-status-code.code-1xx { color: #17a2b8; }
.http-status-code.code-2xx { color: #28a745; }
.http-status-code.code-3xx { color: #ffc107; }
.http-status-code.code-4xx { color: #fd7e14; }
.http-status-code.code-5xx { color: #dc3545; }

.http-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: color 0.3s;
}

.http-copy-btn:hover {
    color: #2196F3;
}

.http-status-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.http-status-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.http-status-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.http-status-card.expanded .http-status-details {
    display: block;
}

.http-detail-section {
    margin-bottom: 12px;
}

.http-detail-section:last-child {
    margin-bottom: 0;
}

.http-detail-section h4 {
    font-size: 14px;
    color: #2196F3;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.http-detail-section p,
.http-detail-section ul {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.http-detail-section ul {
    margin-left: 20px;
    margin-top: 6px;
}

.http-detail-section li {
    margin-bottom: 4px;
}

/* ==================== 无结果提示 ==================== */
.http-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.http-no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.http-no-results p {
    font-size: 16px;
}

/* ==================== 工具说明区域 ==================== */
.http-tool-intro,
.http-tool-usage,
.http-tool-caution {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.http-tool-intro h4,
.http-tool-usage h4,
.http-tool-caution h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.http-tool-intro h4 i,
.http-tool-usage h4 i,
.http-tool-caution h4 i {
    color: #2196F3;
    font-size: 20px;
}

.http-tool-intro ul,
.http-tool-usage ol,
.http-tool-caution ol {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .http-status-codes-grid {
        grid-template-columns: 1fr;
    }

    .http-filter-tags {
        gap: 8px;
    }

    .http-filter-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    .http-status-code {
        font-size: 28px;
    }
}