/**
 * Research area detail page — Theme B
 * Layout: hero intro → pillars → overview → topic nav → antibody list
 */

body.site-theme-b .site-page--research {
    padding-top: 10px;
}

body.site-theme-b .ra-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* Hero */
body.site-theme-b .ra-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 75% 55% at 8% 20%, rgba(8, 145, 178, 0.14), transparent 55%),
        radial-gradient(ellipse 65% 50% at 96% 85%, rgba(124, 58, 237, 0.12), transparent 50%),
        linear-gradient(165deg, rgba(8, 145, 178, 0.06) 0%, var(--hb-surface) 48%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid var(--hb-border);
    border-radius: 16px;
    padding: 48px 36px 40px;
    text-align: center;
    margin-bottom: 28px;
    animation: ra-hero-in 0.7s ease-out both;
}
body.site-theme-b .ra-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% 40%;
    height: 70%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.08), transparent 70%);
    pointer-events: none;
    animation: ra-glow-drift 8s ease-in-out infinite alternate;
}
@keyframes ra-hero-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ra-glow-drift {
    from { transform: translateX(0); opacity: 0.7; }
    to { transform: translateX(-8%); opacity: 1; }
}
body.site-theme-b .ra-hero-brand {
    position: relative;
    z-index: 1;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hb-cyan);
    margin: 0 0 12px;
}
body.site-theme-b .ra-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--hb-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
body.site-theme-b .ra-hero-alt {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    font-size: 1rem;
    color: var(--hb-muted);
    font-weight: 500;
}
body.site-theme-b .ra-hero-lead {
    position: relative;
    z-index: 1;
    margin: 0 auto 26px;
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hb-muted);
}
body.site-theme-b .ra-hero-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}
body.site-theme-b .ra-btn {
    min-width: 140px;
    padding: 10px 20px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.site-theme-b .ra-btn:hover {
    transform: translateY(-2px);
}
body.site-theme-b .ra-hero-meta {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.92rem;
    color: var(--hb-muted);
}
body.site-theme-b .ra-hero-count {
    font-weight: 700;
    color: var(--hb-heading);
}

/* Pillars */
body.site-theme-b .ra-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
body.site-theme-b .ra-pillar {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: ra-hero-in 0.7s ease-out both;
}
body.site-theme-b .ra-pillar:nth-child(2) { animation-delay: 0.08s; }
body.site-theme-b .ra-pillar:nth-child(3) { animation-delay: 0.16s; }
body.site-theme-b .ra-pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
body.site-theme-b .ra-pillar-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hb-cyan);
    margin-bottom: 8px;
}
body.site-theme-b .ra-pillar-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hb-heading);
    margin-bottom: 8px;
    line-height: 1.35;
}
body.site-theme-b .ra-pillar-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--hb-muted);
}

/* Sections */
body.site-theme-b .ra-section {
    margin-bottom: 40px;
}
body.site-theme-b .ra-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hb-heading);
    margin: 0 0 8px;
}
body.site-theme-b .ra-section-desc {
    margin: 0 0 20px;
    color: var(--hb-muted);
    font-size: 0.98rem;
}
body.site-theme-b .ra-prose {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 14px;
    padding: 24px 26px;
}
body.site-theme-b .ra-prose p {
    margin: 0 0 14px;
    color: var(--hb-muted);
    line-height: 1.85;
    font-size: 1rem;
}
body.site-theme-b .ra-prose p:last-child {
    margin-bottom: 0;
}

/* Topic nav — interactive destinations (not decorative cards) */
body.site-theme-b .ra-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
body.site-theme-b .ra-topic {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
body.site-theme-b .ra-topic:hover,
body.site-theme-b .ra-topic:focus {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.04);
    transform: translateY(-2px);
    text-decoration: none;
}
body.site-theme-b .ra-topic-en {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hb-heading);
    line-height: 1.4;
}
body.site-theme-b .ra-topic:hover .ra-topic-en {
    color: var(--hb-purple);
}
body.site-theme-b .ra-topic-ch {
    font-size: 0.86rem;
    color: var(--hb-muted);
    line-height: 1.4;
}

/* Products */
body.site-theme-b .ra-section--products {
    scroll-margin-top: 88px;
}
body.site-theme-b #research-topics {
    scroll-margin-top: 88px;
}
body.site-theme-b .ra-products-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hb-border);
}
body.site-theme-b .ra-products-head .ra-section-desc {
    margin-bottom: 0;
}
body.site-theme-b .ra-products-count {
    margin: 0;
    color: var(--hb-muted);
    font-size: 0.95rem;
}
body.site-theme-b .ra-products-count strong {
    color: var(--hb-heading);
    font-size: 1.15rem;
}
body.site-theme-b .ra-product-list {
    margin-top: 20px;
}
body.site-theme-b .ra-paging {
    margin-top: 24px;
}

@media (max-width: 991px) {
    body.site-theme-b .ra-pillars,
    body.site-theme-b .ra-topics {
        grid-template-columns: 1fr;
    }
    body.site-theme-b .ra-hero {
        padding: 36px 22px 32px;
    }
    body.site-theme-b .ra-hero h1 {
        font-size: 1.7rem;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    body.site-theme-b .ra-pillars,
    body.site-theme-b .ra-topics {
        grid-template-columns: repeat(2, 1fr);
    }
}
