/* 有偿资讯 / 平台研究院列表页 — 专业知识门户风格 */

.research-hub-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

.research-hub {
    margin-top: 8px;
}

.research-hub-hero {
    text-align: center;
    padding: 36px 24px 32px;
    margin-bottom: 8px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 42%, #1e1b4b 100%);
    color: #f1f5f9;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.research-hub-kicker {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 182, 193, 0.95);
    margin: 0 0 12px;
    font-weight: 600;
}

.research-hub-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.research-hub-desc {
    margin: 0 auto;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.88);
}

/* 研究院导航 — 卡片栅格 */
.research-hub-nav {
    margin: 24px 0 8px;
}

.research-hub-nav-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.research-hub-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    padding: 14px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    color: #334155;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.research-hub-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(233, 30, 140, 0.12);
    border-color: rgba(233, 30, 140, 0.25);
    color: #0f172a;
}

.research-hub-nav-card.is-active {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
    border-color: rgba(233, 30, 140, 0.45);
    color: #9d174d;
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.15);
}

.research-hub-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
}

.research-hub-nav-card.is-active .research-hub-nav-icon {
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e8c 100%);
    color: #fff;
}

.research-hub-nav-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: block;
}

/* 栏目内检索 */
.research-hub-search {
    margin: 20px 0 0;
    padding: 18px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.research-hub-search__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.research-hub-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.research-hub-search__input {
    flex: 1;
    min-width: 200px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.research-hub-search__input::placeholder {
    color: #94a3b8;
}

.research-hub-search__input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.research-hub-search__input:focus {
    outline: none;
    border-color: rgba(233, 30, 140, 0.45);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
    background: #fff;
}

.research-hub-search__btn {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e8c 100%);
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.research-hub-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(233, 30, 140, 0.4);
}

.research-hub-search__hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.research-hub-search__hint.muted {
    color: #94a3b8;
}

.research-hub-search__hint a {
    color: #e91e8c;
    font-weight: 600;
    text-decoration: none;
}

.research-hub-search__hint a:hover {
    text-decoration: underline;
}

/* 文章列表 */
.research-hub-articles {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.research-empty {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    color: #64748b;
}

.research-empty .fa-inbox {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.research-empty__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #475569;
}

.research-empty__hint {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.research-article-card {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.research-article-card:hover {
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(233, 30, 140, 0.12);
}

.research-article-card__body {
    flex: 1;
    min-width: 0;
}

.research-article-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.45;
}

.research-article-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-article-card__meta {
    font-size: 13px;
    color: #94a3b8;
}

.research-article-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.research-article-card__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.research-hub-btn {
    min-width: 120px;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.research-hub-btn--free {
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e8c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.35);
}

.research-hub-btn--free:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.45);
}

.research-hub-btn--paid {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.25);
}

.research-hub-btn--paid:hover {
    transform: translateY(-1px);
}

/* 分页 */
.research-hub-pagination {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.research-hub-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.research-hub-pagination a:hover {
    border-color: #e91e8c;
    color: #e91e8c;
}

.research-hub-pagination a.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e8c 100%);
    border-color: transparent;
    color: #fff;
}

/* 详情：面包屑 */
.research-detail-breadcrumb {
    margin: 0 0 16px;
}

.research-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.research-detail-back:hover {
    color: #e91e8c;
    border-color: rgba(233, 30, 140, 0.3);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.1);
}

/* 详情页在阅读容器内 */
.research-detail-sheet {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 32px 28px 40px;
    margin-top: 0;
}

.research-detail-titleblock {
    margin-top: 0 !important;
    text-align: left !important;
}

.research-detail-category {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #e91e8c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-detail-sheet .new-title h1 {
    font-size: 26px;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.35;
}

.research-detail-subtitle {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 0 20px !important;
}

.research-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    font-size: 14px;
    color: #94a3b8;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.research-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.research-detail-share {
    margin-left: auto;
    float: none !important;
}

.research-detail-sheet .new-data {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 28px !important;
}

/* 支付二维码弹窗 */
#qrcode-container.show-qrcode {
    background: #fff;
    padding: 28px 24px 20px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

#qrcode-container .close-qrcode {
    top: 12px;
    right: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.research-hub-page .mask {
    backdrop-filter: blur(3px);
}

@media (max-width: 768px) {
    .research-hub-title {
        font-size: 22px;
    }

    .research-hub-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-article-card {
        flex-direction: column;
        padding: 18px;
    }

    .research-article-card__action {
        width: 100%;
    }

    .research-hub-btn {
        width: 100%;
    }

    .research-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .research-detail-share {
        margin-left: 0;
    }

    .research-detail-sheet {
        padding: 22px 16px 32px;
    }

    .research-detail-sheet .new-title h1 {
        font-size: 21px;
    }
}

/* 覆盖旧 book 布局宽度，避免双栏挤压 */
.book .research-hub-page .book-data-all,
.research-hub-page .book-data-all {
    width: 100% !important;
    max-width: 100%;
}

.research-hub-page .hot-recommend,
.research-hub-page .hot-recommend-data {
    width: 100% !important;
    max-width: 100%;
}

.research-hub-page .hot-recommend-data-channel- {
    position: relative !important;
    width: 100% !important;
}

.research-hub-page .Article-details {
    margin-top: 0 !important;
}
