/* Intelligence shared theme (与 trends / monitor 同一天蓝色系) */
:root.intelligence-index,
:root.intelligence-marketplace,
:root.intelligence-registrations {
    --primary: #0284C7;
    --primary-dark: #075985;
    --primary-light: #38BDF8;
    --accent: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
    --accent-hover: #075985;
    --gradient-main: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
    --gradient-2: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-dark: #1f2937;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
    --primary-bg-1: rgba(2, 132, 199, 0.03);
    --primary-bg-2: rgba(56, 189, 248, 0.03);
    --hero-filter: drop-shadow(0 4px 20px rgba(2, 132, 199, 0.2));
    --focus-shadow: 0 25px 50px rgba(2, 132, 199, 0.12), inset 0 0 0 2px rgba(2, 132, 199, 0.08);
    --hero-padding: 24px 20px;
    --hero-title-size: 2.5rem;
}

/* hero 副标题默认 50px 底距是高度大头, intelligence 页收紧 (h1 或 p 载体均适用) */
.hero-section h1.hero-subtitle,
.hero-section p.hero-subtitle {
    margin-bottom: 12px;
}

.hero-section p.hero-subtitle {
    margin-top: 20px;
}

/* ===== 搜索出口 CTA (FAQ 上方) ===== */
.market-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.market-cta-btn {
    background: var(--gradient-main);
    color: #fff;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.market-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    color: #fff;
}

.hero-content .share-icons {
    justify-content: center;
    margin-top: 4px;
}

.hero-content .market-meta {
    justify-content: center;
    margin: 14px 0 0;
}

/* ===== Section scaffolding ===== */
.market-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.market-header {
    margin-bottom: 18px;
}

.market-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--dark);
}

.market-subtitle {
    margin-top: 4px;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--gray);
    font-size: var(--font-size-sm);
    margin-bottom: 14px;
}

.market-date {
    font-weight: 600;
    color: var(--dark);
}

.market-sep {
    opacity: .5;
}

.market-empty {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 80px 20px;
    text-align: center;
    color: var(--gray);
    font-size: var(--font-size-lg);
}

.section-divider {
    max-width: 1100px;
    margin: 10px auto;
    height: 1px;
    background: var(--border-light);
}

/* ===== KPI cards ===== */
.market-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.market-kpi-value.kpi-date {
    font-size: var(--font-size-2xl);
    line-height: 1.4;
}

.market-kpi {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.market-kpi-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.market-kpi-label {
    color: var(--gray);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.market-kpi-sub {
    color: var(--gray);
    font-size: var(--font-size-xs);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.market-kpi-window {
    color: var(--gray);
    font-size: var(--font-size-xs);
}

.market-kpi-spark {
    height: 44px;
    display: flex;
    align-items: center;
}

.market-kpi-spark .spark {
    width: 100%;
    height: 40px;
}

/* ===== Sparkline ===== */
.spark {
    width: 120px;
    height: 32px;
    color: var(--primary);
    display: block;
}

.spark-empty {
    color: var(--gray);
    font-size: var(--font-size-xs);
}

/* ===== Delta (胶囊徽章) ===== */
.delta {
    display: inline-block;
    font-weight: 700;
    font-size: var(--font-size-xs);
    white-space: nowrap;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.4;
}

.delta.up {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.delta.down {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.10);
}

.delta.muted {
    color: var(--gray);
    background: var(--light-gray);
    font-weight: 500;
}

.delta-window {
    color: var(--gray);
    font-size: var(--font-size-xs);
}

/* ===== Method note ===== */
.content-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.content-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 30px;
}

.content-container h2 {
    font-size: var(--font-size-xl);
    color: var(--dark);
    margin-bottom: 10px;
}

.content-container p {
    color: var(--gray);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .market-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .market-kpi-grid {
        grid-template-columns: 1fr;
    }

    .market-title {
        font-size: var(--font-size-xl);
    }
}
