/*
 * 研究洞察列表 + 文章页（page-insights / archive / single）
 */

.page-hero {
    background: var(--qq-grad-hero, radial-gradient(1200px 600px at 15% -10%, rgba(132,204,22,.20), transparent 60%), linear-gradient(180deg, #0a0e17 0%, #070b12 100%));
    color: var(--qq-text-inv, #e8edf5);
    padding: 64px 0 44px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px),
        linear-gradient(90deg, var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(800px 400px at 70% 0, #000, transparent 70%);
    opacity: .5;
}
.page-hero .qq-wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
.page-hero p { color: var(--qq-text-inv-2, #93a2ba); font-size: 18px; margin-top: 14px; max-width: 620px; }

.insights-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.insights-side .qq-side { display: grid; gap: 22px; }

.featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--qq-border, #e3e8ef);
    background: #fff;
    margin-bottom: 36px;
    text-decoration: none;
    color: inherit;
}
.featured .cover { background: var(--qq-grad-hero, #0a0e17); position: relative; min-height: 280px; overflow: hidden; }
.featured .cover img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.featured .cover .grid-bg { position: absolute; inset: 0; }
.featured .cover .badge { position: absolute; top: 22px; left: 22px; }
.featured .info { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.featured .info h2 { font-size: 27px; line-height: 1.25; margin: 14px 0; color: var(--qq-text, #0b1220); }
.featured .info p { color: var(--qq-text-2, #47536b); font-size: 15px; }
.featured-meta { display: flex; gap: 10px; align-items: center; color: var(--qq-text-3, #8a97ab); font-size: 13px; margin-top: 24px; flex-wrap: wrap; }
.featured-more { margin-left: auto; font-weight: 700; color: var(--qq-lime-700, #4d7c0f); }

.filters-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--qq-text-2, #47536b);
    background: var(--qq-bg-soft, #f6f8fa);
    text-decoration: none;
}
.filter-pill.is-active { background: var(--qq-ink-900, #0a0e17); color: #fff; }

.post {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--qq-border, #e3e8ef);
    text-decoration: none;
    color: inherit;
}
.post:hover h3 { color: var(--qq-lime-700, #4d7c0f); }
.post .thumb {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #111a2b, #0d1420);
    min-height: 130px;
    position: relative;
}
.post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 130px; }
.post .thumb .grid-bg { position: absolute; inset: 0; }
.post .thumb .lbl { position: absolute; top: 12px; left: 12px; }
.post .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--qq-text-3, #8a97ab); }
.post h3 { font-size: 21px; color: var(--qq-text, #0b1220); }
.post p { color: var(--qq-text-2, #47536b); font-size: 15px; margin-top: 10px; }
.post .tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

.insights-pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.insights-pager a, .insights-pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--qq-border, #e3e8ef); color: var(--qq-text-2, #47536b); text-decoration: none;
}
.insights-pager .current { background: var(--qq-ink-900, #0a0e17); color: #fff; border-color: var(--qq-ink-900, #0a0e17); }
.insights-empty { text-align: center; padding: 64px 16px; color: var(--qq-text-3, #8a97ab); }
.insights-empty h3 { color: var(--qq-text, #0b1220); margin-bottom: 8px; }

.side-card { background: #fff; border: 1px solid var(--qq-border, #e3e8ef); border-radius: 16px; padding: 22px; margin-bottom: 22px; }
.side-card h4 { font-size: 16px; margin-bottom: 16px; }

/* ===== 文章页 ===== */
.art-hero {
    background: var(--qq-grad-hero, linear-gradient(180deg, #0a0e17 0%, #070b12 100%));
    color: var(--qq-text-inv, #e8edf5);
    padding: 52px 0 40px;
    position: relative;
    overflow: hidden;
}
.art-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px),
        linear-gradient(90deg, var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(800px 400px at 70% 0, #000, transparent 70%);
    opacity: .5;
}
.art-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.crumb { font-size: 13px; color: var(--qq-text-inv-2, #93a2ba); margin-bottom: 18px; }
.crumb a { color: inherit; }
.crumb a:hover { color: var(--qq-lime-400, #a3e635); }
.art-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 14px 0; }
.art-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--qq-text-inv-2, #93a2ba); font-size: 14px; margin-top: 20px; }
.art-author { display: flex; align-items: center; gap: 10px; }
.art-author .ava {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--qq-grad-lime, linear-gradient(135deg, #a3e635, #22c55e));
    display: grid; place-items: center; color: #0a2c05; font-weight: 800;
}

.art-shell { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 48px 0 72px; }

.prose { font-size: 17px; line-height: 1.85; color: #24303f; max-width: none; }
.prose h2 { font-size: 26px; margin: 44px 0 18px; }
.prose h2::before {
    content: "";
    display: inline-block;
    width: 6px; height: 22px;
    background: var(--qq-grad-lime, linear-gradient(135deg, #a3e635, #22c55e));
    border-radius: 3px;
    margin-right: 12px;
    vertical-align: -3px;
}
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose p { margin: 16px 0; }
.prose ul, .prose ol { margin: 16px 0 16px 22px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote {
    border-left: 3px solid var(--qq-lime-500, #84cc16);
    background: var(--qq-lime-50, #f7fee7);
    padding: 16px 22px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
}
.art-cover { margin: 0 0 28px; }
.art-cover img { width: 100%; height: auto; border-radius: 16px; display: block; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.inline-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(120deg, var(--qq-lime-50, #f7fee7), #fff);
    border: 1px solid var(--qq-lime-300, #bef264);
    border-radius: 16px;
    padding: 22px 26px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.inline-cta .txt { flex: 1; min-width: 220px; }
.inline-cta h4 { font-size: 17px; }
.inline-cta p { font-size: 14px; color: var(--qq-text-2, #47536b); margin-top: 4px; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.art-nav a { display: block; padding: 16px; border: 1px solid var(--qq-border, #e3e8ef); border-radius: 14px; text-decoration: none; }
.art-nav span { display: block; font-size: 12px; color: var(--qq-text-3, #8a97ab); margin-bottom: 6px; }
.art-nav b { color: var(--qq-text, #0b1220); font-size: 15px; }
.art-nav .nav-next { text-align: right; }
.art-main { min-width: 0; }
.art-comments { margin-top: 40px; }

@media (max-width: 960px) {
    .insights-layout, .featured, .post, .art-layout, .art-nav { grid-template-columns: 1fr; }
}

.qq-header { background: rgba(7, 11, 18, .92); }
.page-hero h1, .art-hero h1 { color: #fff; }
.page-hero p { color: var(--qq-text-inv-2, #93a2ba); }
.art-hero .tag { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.qq-footer h5 { color: #fff; }
.qq-footer p { color: var(--qq-text-inv-2, #93a2ba); }
