/* ===== 详情页 ===== */

/* 面包屑 */
.breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 4px; }
.breadcrumb .sep { margin: 0 4px; }

/* 详情头部 */
.detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.detail-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.detail-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.detail-header-info { flex: 1; min-width: 0; }
.detail-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.detail-header-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.detail-header-meta-inline {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.detail-header-meta-inline code {
    background: var(--bg-subtle);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
}

/* 反馈按钮 — 详情页独立行动按钮 */
.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.feedback-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    opacity: 0;
    transition: opacity 0.25s;
}
.feedback-btn:hover::before { opacity: 1; }
.feedback-btn:hover {
    color: #fff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}
.feedback-btn:active { transform: translateY(0); box-shadow: none; }
.feedback-btn svg, .feedback-btn span { position: relative; z-index: 1; }

/* 暗色模式 */
:root.dark .feedback-btn {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    color: #fca5a5;
    border-color: #991b1b;
}
:root.dark .feedback-btn::before {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}
:root.dark .feedback-btn:hover {
    color: #fff;
    border-color: #dc2626;
}

/* 信息卡片 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.info-card {
    background: var(--bg-subtle);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.info-card-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.info-card-value { font-weight: 600; color: var(--text); word-break: break-all; font-size: 0.95rem; }
.info-card-value code { font-size: 0.88rem; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.status-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.status-ok { background: #dcfce7; color: #166534; }
.status-err { background: #fee2e2; color: #991b1b; }

/* Method badge */
.method-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    flex-shrink: 0;
}

/* 接口地址栏 */
.detail-url {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    overflow-x: auto;
    margin-bottom: 24px;
}

.detail-url .url-text { flex: 1; color: var(--text); word-break: break-all; }

.detail-url .copy-btn {
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
}
.detail-url .copy-btn:hover { color: var(--text); }

/* 详情分栏 */
.detail-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}
.detail-grid .detail-left { min-width: 0; }
.detail-grid .detail-right {
    position: sticky;
    top: 80px;
}

/* 参数表 */
.detail-section { margin-bottom: 28px; }

.detail-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.params-table th {
    text-align: left;
    background: var(--bg-subtle);
    padding: 10px 14px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.params-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.params-table tr:last-child td { border-bottom: none; }

.param-required { color: var(--red); font-size: 0.82rem; font-weight: 500; }
.param-optional { color: var(--text-light); font-size: 0.82rem; }
.param-name { font-family: var(--font-mono); font-weight: 500; }
.param-type { color: var(--text-muted); font-size: 0.85rem; }
.param-example {
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.82rem;
}
.no-params { color: var(--text-muted); font-size: 0.88rem; }
.required-star { color: var(--red); }

/* 返回示例 */
.response-block {
    background: var(--bg-code);
    color: #e2e8f0;
    padding: 18px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 500px;
    overflow-y: auto;
}

/* 调试卡片 */
.try-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.try-card-header {
    background: var(--bg-subtle);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
}
.try-card-body { padding: 18px; }

.try-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.try-row label {
    font-size: 0.88rem;
    font-family: var(--font-mono);
    min-width: 90px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.try-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: var(--font-mono);
    outline: none;
    background: var(--bg);
    color: var(--text);
}

.try-row input:focus { border-color: var(--primary); }

.try-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
}
.try-btn:hover { opacity: 0.9; }

.try-result {
    margin-top: 14px;
    background: var(--bg-code);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
﻿

/* ===== 反馈弹窗 ===== */
.feedback-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fbFadeIn 0.2s;
}
.feedback-modal {
    background: var(--bg);
    border-radius: 16px;
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fbSlideUp 0.3s;
}
.feedback-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px;
    background: #dc2626;
    color: #fff;
}
.feedback-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.feedback-close {
    background: rgba(255,255,255,0.2); border: none; font-size: 1.3rem;
    cursor: pointer; color: #fff; line-height: 1;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.feedback-close:hover { background: rgba(255,255,255,0.35); }

.feedback-api-tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: #fef2f2; color: #dc2626; font-size: 0.85rem;
    margin-bottom: 20px; font-weight: 500;
    border: 1px solid #fecaca;
}
:root.dark .feedback-api-tag {
    background: #451a1a; color: #f87171; border-color: #7f1d1d;
}
.feedback-body { padding: 24px; }
.feedback-field { margin-bottom: 16px; }
.feedback-field label {
    display: block; margin-bottom: 6px; font-weight: 500;
    font-size: 0.9rem; color: var(--text-primary, #333);
}
.feedback-field input, .feedback-field textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px; font-size: 0.9rem; box-sizing: border-box;
    background: var(--bg-secondary, #fafafa); color: var(--text-primary, #333);
    transition: border-color 0.2s;
    font-family: inherit;
}
.feedback-field input:focus, .feedback-field textarea:focus {
    outline: none; border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.feedback-submit {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: #dc2626;
    color: #fff; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.04em;
}
.feedback-submit:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,38,38,0.35); }
.feedback-submit:active { transform: translateY(0); }
.feedback-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

:root.dark .feedback-submit { background: #dc2626; }
:root.dark .feedback-submit:hover { background: #ef4444; }

@keyframes fbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fbSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
