/* ============================================================
 * 佳维企业数据开放平台 - 自定义样式
 * 中国企业网(jiawei.net) openapi.jiawei.net
 *
 * 主题色: #2563eb (蓝色)
 * 字体: 'PingFang SC', 'Microsoft YaHei', sans-serif
 * 配合 Bootstrap 5 + Bootstrap Icons 使用
 * ============================================================ */

:root {
    --oa-primary: #2563eb;
    --oa-primary-dark: #1d4ed8;
    --oa-primary-light: #dbeafe;
    --oa-secondary: #64748b;
    --oa-success: #16a34a;
    --oa-warning: #f59e0b;
    --oa-danger: #dc2626;
    --oa-bg: #f8fafc;
    --oa-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --oa-radius: 10px;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--oa-bg);
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--oa-primary); text-decoration: none; }
a:hover { color: var(--oa-primary-dark); text-decoration: underline; }

.text-primary { color: var(--oa-primary) !important; }
.bg-primary { background-color: var(--oa-primary) !important; }
.bg-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}
.bg-soft-primary { background-color: var(--oa-primary-light) !important; }
.bg-soft-info { background-color: #e0f2fe !important; }
.bg-soft-success { background-color: #dcfce7 !important; }
.bg-soft-warning { background-color: #fef3c7 !important; }
.bg-soft-danger { background-color: #fee2e2 !important; }
.bg-soft-secondary { background-color: #f1f5f9 !important; }

/* ============================================================
 * 顶部导航
 * ============================================================ */
.navbar-oa {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    padding: .65rem 0;
    border-bottom: 1px solid #eef2f7;
}
.navbar-oa .navbar-brand {
    font-weight: 700;
    color: var(--oa-primary);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-oa .navbar-brand .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.navbar-oa .nav-link {
    color: #475569;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 6px;
    transition: all .15s;
}
.navbar-oa .nav-link:hover { color: var(--oa-primary); background: var(--oa-primary-light); }
.navbar-oa .nav-link.active {
    color: var(--oa-primary);
    background: var(--oa-primary-light);
    font-weight: 600;
}

/* ============================================================
 * Hero 区域
 * ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.5px;
}
.hero-section p.lead {
    font-size: 1.15rem;
    opacity: .92;
    margin-bottom: 1.8rem;
}
.hero-section .btn-cta {
    background: #fff;
    color: var(--oa-primary);
    font-weight: 600;
    padding: .75rem 2rem;
    border-radius: 8px;
    border: none;
    transition: all .2s;
}
.hero-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    color: var(--oa-primary-dark);
}

/* ============================================================
 * 卡片
 * ============================================================ */
.card {
    border: 1px solid #eef2f7;
    border-radius: var(--oa-radius);
    box-shadow: var(--oa-card-shadow);
    background: #fff;
}
.card-header {
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
    padding: .85rem 1.2rem;
}
.card-body { padding: 1.25rem; }

/* 数据卡片 */
.stat-card {
    background: #fff;
    border-radius: var(--oa-radius);
    padding: 1.4rem;
    border: 1px solid #eef2f7;
    box-shadow: var(--oa-card-shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: .8rem;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.stat-card .stat-label {
    color: #64748b;
    font-size: .85rem;
    margin-top: .25rem;
}
.stat-card .stat-trend {
    font-size: .8rem;
    margin-top: .5rem;
}

/* ============================================================
 * 按钮
 * ============================================================ */
.btn { border-radius: 6px; font-weight: 500; padding: .5rem 1.1rem; }
.btn-primary { background: var(--oa-primary); border-color: var(--oa-primary); }
.btn-primary:hover { background: var(--oa-primary-dark); border-color: var(--oa-primary-dark); }
.btn-outline-primary { color: var(--oa-primary); border-color: var(--oa-primary); }
.btn-outline-primary:hover { background: var(--oa-primary); border-color: var(--oa-primary); }
.btn-soft-primary {
    background: var(--oa-primary-light);
    color: var(--oa-primary-dark);
    border: none;
}
.btn-soft-primary:hover { background: #bfdbfe; color: var(--oa-primary-dark); }

/* ============================================================
 * 表格
 * ============================================================ */
.table {
    color: #1e293b;
    margin-bottom: 0;
}
.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .8rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: .8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.table tbody tr:hover { background: #f8fafc; }
.table-card { border-radius: var(--oa-radius); overflow: hidden; }

/* ============================================================
 * 表单
 * ============================================================ */
.form-label { font-weight: 500; color: #334155; margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 6px;
    border-color: #e2e8f0;
    padding: .55rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--oa-primary);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

/* ============================================================
 * 侧边菜单(开发者/管理后台)
 * ============================================================ */
.sidebar {
    background: #fff;
    border-right: 1px solid #eef2f7;
    min-height: calc(100vh - 60px);
    padding: 1.2rem 0;
}
.sidebar .nav-link {
    color: #475569;
    padding: .65rem 1.2rem;
    border-radius: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}
.sidebar .nav-link i { font-size: 1.05rem; opacity: .8; }
.sidebar .nav-link:hover {
    background: #f8fafc;
    color: var(--oa-primary);
}
.sidebar .nav-link.active {
    background: var(--oa-primary-light);
    color: var(--oa-primary);
    border-left-color: var(--oa-primary);
    font-weight: 600;
}
.sidebar .sidebar-title {
    color: #94a3b8;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1rem 1.2rem .4rem;
    font-weight: 600;
}

.main-content {
    padding: 1.5rem;
    min-height: calc(100vh - 60px);
}
.page-header {
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.page-header h1, .page-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}
.page-header .breadcrumb { margin: 0; font-size: .85rem; }

/* ============================================================
 * 套餐卡片
 * ============================================================ */
.plan-card {
    border: 1px solid #eef2f7;
    border-radius: var(--oa-radius);
    padding: 1.6rem 1.3rem;
    text-align: center;
    background: #fff;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.plan-card.featured {
    border-color: var(--oa-primary);
    border-width: 2px;
}
.plan-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--oa-primary);
    color: #fff;
    padding: 2px 14px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}
.plan-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .6rem;
}
.plan-card .plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--oa-primary);
    margin: .8rem 0;
}
.plan-card .plan-price small {
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
}
.plan-card .plan-features {
    text-align: left;
    margin: 1.2rem 0;
    padding: 0;
    list-style: none;
}
.plan-card .plan-features li {
    padding: .4rem 0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.plan-card .plan-features li i {
    color: var(--oa-success);
    margin-top: 2px;
}

/* ============================================================
 * 接口分类卡片
 * ============================================================ */
.category-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--oa-radius);
    padding: 1.3rem;
    text-align: center;
    transition: all .2s;
    height: 100%;
    color: #334155;
}
.category-card:hover {
    background: var(--oa-primary-light);
    border-color: var(--oa-primary);
    color: var(--oa-primary);
    transform: translateY(-3px);
    text-decoration: none;
}
.category-card i {
    font-size: 2rem;
    margin-bottom: .6rem;
    color: var(--oa-primary);
}
.category-card .cat-title {
    font-weight: 600;
    margin-bottom: .25rem;
}
.category-card .cat-desc {
    font-size: .8rem;
    color: #64748b;
}

/* ============================================================
 * 徽章/标签
 * ============================================================ */
.badge {
    font-weight: 500;
    padding: .35em .7em;
    border-radius: 5px;
}

/* ============================================================
 * 页脚
 * ============================================================ */
.footer-oa {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-oa a { color: #cbd5e1; }
.footer-oa a:hover { color: #fff; }
.footer-oa .footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-oa .footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.2rem;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: #94a3b8;
}

/* ============================================================
 * 工具样式
 * ============================================================ */
.cursor-pointer { cursor: pointer; }
.text-muted-2 { color: #94a3b8 !important; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace; }
.divider { height: 1px; background: #e2e8f0; margin: 1.2rem 0; border: 0; }
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: .5;
}
.code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: .85rem;
    line-height: 1.6;
}
.code-block .token-keyword { color: #c084fc; }
.code-block .token-string { color: #86efac; }
.code-block .token-comment { color: #64748b; }
.code-block .token-function { color: #93c5fd; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 0 4rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p.lead { font-size: 1rem; }
    .sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
    }
    .main-content { padding: 1rem; }
    .page-header h1, .page-header h2 { font-size: 1.2rem; }
    .stat-card .stat-value { font-size: 1.4rem; }
}

/* ============================================================
 * 滚动条美化
 * ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: #f1f5f9; }

/* ============================================================
 * 数据 API 市场(/market) - 仿企查查 dataApi 风格
 * ============================================================ */

/* 顶部 Banner */
.market-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.market-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 50%);
    pointer-events: none;
}
.market-banner h1 {
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: .5rem;
    position: relative;
}
.market-banner .lead {
    font-size: 1rem;
    opacity: .92;
    position: relative;
}
.market-search-form .input-group-text {
    border-radius: 8px 0 0 8px;
    color: #94a3b8;
    padding-left: 1rem;
}
.market-search-form .form-control {
    border-radius: 0;
    padding: .8rem .5rem;
    font-size: 1rem;
}
.market-search-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}
.market-search-form .btn-cta {
    border-radius: 0 8px 8px 0;
    padding: 0 1.5rem;
    font-weight: 600;
}
.market-hot-tags {
    position: relative;
    font-size: .82rem;
}
.market-hot-tags .hot-tag {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 4px 4px 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all .15s;
}
.market-hot-tags .hot-tag:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    text-decoration: none;
}
.market-stat-box {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: inline-block;
    position: relative;
}
.market-stat-box .stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
}
.market-stat-box .stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.market-stat-box .stat-lbl {
    font-size: .8rem;
    opacity: .85;
}

/* 市场主体 */
.market-body {
    background: var(--oa-bg);
    min-height: calc(100vh - 320px);
}

/* 左侧分类导航 */
.market-sidebar {
    background: #fff;
    border-right: 1px solid #eef2f7;
}
.market-sidebar .sidebar-inner {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}
.market-sidebar .sidebar-title {
    padding: 1rem 1.2rem .5rem;
    font-weight: 600;
    color: #475569;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.market-sidebar .sidebar-divider {
    height: 1px;
    background: #eef2f7;
    margin: .5rem 0;
}
.market-sidebar .category-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.2rem;
    color: #475569;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.market-sidebar .category-nav .nav-link:hover {
    background: var(--oa-primary-light);
    color: var(--oa-primary);
    text-decoration: none;
}
.market-sidebar .category-nav .nav-link.active {
    background: var(--oa-primary-light);
    color: var(--oa-primary);
    border-left-color: var(--oa-primary);
    font-weight: 600;
}
.market-sidebar .category-nav .nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}
.market-sidebar .category-nav .nav-link .badge {
    font-size: .7rem;
    padding: 2px 6px;
}

/* 右侧主区域 */
.market-main {
    padding: 1.5rem 1.8rem;
}
.market-toolbar {
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #eef2f7;
}
.market-current-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.market-toolbar .btn-group .btn {
    font-size: .82rem;
    padding: .25rem .8rem;
}

/* API 卡片网格 */
.api-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.api-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    transition: all .18s;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.api-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--oa-primary);
    opacity: 0;
    transition: opacity .15s;
}
.api-card:hover {
    border-color: var(--oa-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.api-card:hover::before {
    opacity: 1;
}
.api-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.api-cat-tag {
    display: inline-block;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.tag-primary { background: #dbeafe; color: #1d4ed8; }
.tag-info { background: #e0f2fe; color: #0369a1; }
.tag-success { background: #dcfce7; color: #15803d; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-warning { background: #fef3c7; color: #b45309; }
.tag-dark { background: #e2e8f0; color: #334155; }
.tag-secondary { background: #f1f5f9; color: #475569; }

.api-hot-badge {
    font-size: .68rem;
    padding: 2px 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .04em;
}
.api-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .3rem;
    line-height: 1.35;
}
.api-card-code {
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.api-card-code code {
    color: var(--oa-primary);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}
.api-card-desc {
    font-size: .82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: .6rem;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.api-card-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: .6rem;
    min-height: 1.5em;
}
.field-chip {
    display: inline-block;
    font-size: .7rem;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.api-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    border-top: 1px dashed #eef2f7;
}
.api-card-price {
    color: var(--oa-danger);
    font-weight: 700;
}
.api-card-price .price-cur { font-size: .8rem; }
.api-card-price .price-num { font-size: 1.1rem; }
.api-card-price .price-unit { font-size: .72rem; color: #94a3b8; }
.api-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    color: #94a3b8;
}
.api-card-meta .meta-item i { margin-right: 2px; }
.api-card-meta .view-detail {
    color: var(--oa-primary);
    font-weight: 600;
}

/* 空状态 */
.market-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}
.market-empty i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .4;
}
.market-empty h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    color: #475569;
}

/* ============================================================
 * API 详情页(/market/detail)
 * ============================================================ */
.market-detail-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: .8rem 0;
}
.market-detail-breadcrumb .breadcrumb-item a {
    color: var(--oa-primary);
    text-decoration: none;
}
.market-detail-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.market-detail-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #eef2f7;
}
.market-detail-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .4rem;
}
.api-code-block {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .85rem;
}
.api-code-block code {
    color: var(--oa-primary);
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 600;
}
.api-code-block .btn-link {
    padding: 0 .25rem;
    color: #94a3b8;
    text-decoration: none;
}
.api-code-block .btn-link:hover { color: var(--oa-primary); }

.api-price-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    text-align: center;
}
.api-price-card .price-label {
    color: #64748b;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.api-price-card .price-big {
    color: var(--oa-danger);
    font-weight: 700;
    line-height: 1;
    margin-bottom: .5rem;
}
.api-price-card .price-big .price-cur { font-size: 1.4rem; }
.api-price-card .price-big .price-num { font-size: 2.4rem; }
.api-price-card .price-big .price-unit { font-size: .85rem; color: #94a3b8; }
.api-price-card .price-tips {
    color: #94a3b8;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.market-detail-body {
    padding: 2rem 0;
}

.detail-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    overflow: hidden;
}
.detail-card-head {
    padding: .8rem 1.2rem;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.detail-card-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.detail-card-head h3 i { color: var(--oa-primary); }
.detail-card-body { padding: 1.2rem; }

.nav-pills-sm .nav-link {
    font-size: .78rem;
    padding: .2rem .6rem;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    border: 0;
    background: transparent;
}
.nav-pills-sm .nav-link.active {
    background: var(--oa-primary);
    color: #fff;
}

.param-table {
    margin-bottom: 0;
    font-size: .85rem;
}
.param-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.field-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.field-chip-lg {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .8rem;
}
.field-chip-lg code {
    color: var(--oa-primary);
    font-weight: 600;
}
.field-chip-lg small {
    color: #94a3b8;
    font-size: .75rem;
}

/* 上游平台列表 */
.provider-list, .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.provider-item {
    padding: .6rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
}
.provider-item:last-child { border-bottom: 0; }
.provider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.provider-dot.online { background: var(--oa-success); box-shadow: 0 0 0 2px #dcfce7; }
.provider-dot.offline { background: #cbd5e1; }

.related-list li {
    border-bottom: 1px solid #f1f5f9;
}
.related-list li:last-child { border-bottom: 0; }
.related-list a {
    display: block;
    padding: .6rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.related-list a:hover {
    background: var(--oa-primary-light);
    text-decoration: none;
}
.related-name {
    font-size: .88rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}
.related-meta {
    font-size: .75rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

/* 详情页响应式 */
@media (max-width: 768px) {
    .market-banner h1 { font-size: 1.4rem; }
    .market-banner .lead { font-size: .9rem; }
    .market-main { padding: 1rem; }
    .api-card-grid { grid-template-columns: 1fr; }
    .market-sidebar .sidebar-inner { position: static; max-height: none; }
    .market-detail-header h1 { font-size: 1.3rem; }
    .api-price-card { margin-top: 1rem; }
}
