/* ========== 单页 / 列表页 左右分栏布局 ========== */
/* 依赖 CSS 变量（--scimea-blue 等已在 style.css 中定义） */

/* ===== Banner 区域 ===== */
.gp-banner-wrap {
    width: 100%;
    overflow: hidden;
    max-height: 380px;
    background: #E3F2FD;
    animation: gpFadeIn 1.4s ease-out both;
}
.gp-group-banner {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: cover;
    animation: gpFadeIn 1.7s .3s ease-out both;
}

/* ===== 主容器 ===== */
.gp-page-wrapper {
    width: 99%;
    margin: 0 auto;
    padding: 16px 0 20px;
}

/* ===== 双栏布局 ===== */
.gp-two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* ===== 左侧导航 ===== */
.gp-left-nav {
    width: 275px;
    min-width: 275px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    overflow: hidden;
    position: sticky;
    top: 100px;
    animation: gpFadeIn 1.1s .5s ease-out both;
}
.gp-nav-group-title {
    background: linear-gradient(135deg, var(--scimea-blue), var(--scimea-blue-light));
    color: #fff;
    font-size: 1.1vw;
    font-weight: 700;
    padding: 16px 20px;
    letter-spacing: .5px;
}
.gp-nav-scroll {
    padding: 6px 0;
}
.gp-nav-item {
    display: block;
    padding: 11px 20px;
    font-size: 0.9vw;
    color: var(--text-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s ease;
}
.gp-nav-item:hover {
    color: var(--scimea-blue);
    background: #E3F2FD;
    border-left-color: var(--scimea-blue);
}
.gp-nav-item.active {
    color: var(--scimea-blue);
    background: #E3F2FD;
    border-left-color: var(--scimea-blue);
    font-weight: 600;
}


/* ===== Supplier：标题右侧招商入口 ===== */
.gp-content-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.gp-content-title-row .gp-content-title {
    margin-bottom: 0;
}
.gp-title-extra-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78vw;
    color: var(--scimea-blue);
    text-decoration: none;
    padding: 4px 16px;
    border: 1px solid var(--scimea-blue);
    border-radius: 20px;
    transition: all .25s ease;
    white-space: nowrap;
}
.gp-title-extra-link:hover {
    color: #fff;
    background: var(--scimea-blue);
}
.gp-title-extra-link i {
    font-size: 0.85vw;
    transition: transform .25s ease;
}
.gp-title-extra-link:hover i {
    transform: translateX(3px);
}

/* ===== 右侧内容 ===== */
.gp-right-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    padding: 32px 36px;
    animation: gpFadeIn 1.2s .8s ease-out both;
}
.gp-content-title {
    font-size: 1.1vw;
    font-weight: 700;
    color: var(--scimea-blue, #0F4C81);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #E3F2FD;
}
.gp-content-body {
    font-size: 0.9vw;
    line-height: 1.85;
    color: var(--text-dark);
}
.gp-content-body img {
    max-width: 100%;
    height: auto;
}
.gp-content-body p {
    margin-bottom: 14px;
}

/* ===== 统一淡入动画 ===== */
@keyframes gpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== 减弱动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    .gp-banner-wrap,
    .gp-group-banner,
    .gp-left-nav,
    .gp-right-content {
        animation: none;
    }
}

/* ===== 静态列表行（行业新闻/医促会要闻/跨界要闻等） ===== */
.gp-news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 12px;
    border-bottom: 1px solid #EEF2F7;
    text-decoration: none;
    color: var(--text-dark);
    transition: background .2s, color .2s, padding-left .2s;
    border-left: 3px solid transparent;
}
.gp-news-row:hover {
    background: #F5F8FC;
    color: var(--scimea-blue, #1565C0);
    border-left-color: var(--scimea-blue, #1565C0);
    padding-left: 16px;
}
.gp-news-title {
    flex: 1;
    min-width: 0;
    font-size: 0.9vw;
    line-height: 1.6;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gp-news-date {
    flex-shrink: 0;
    font-size: 0.68vw;
    color: #999;
    font-variant-numeric: tabular-nums;
}
.gp-news-row:hover .gp-news-date {
    color: var(--scimea-blue-soft, #1A6DB8);
}

/* 列表行内布局：标题+来源 纵向排列 */
.gp-news-row-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gp-news-source {
    font-size: 0.65vw;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gp-ext-link {
    display: inline-block;
    padding: 0 6px;
    background: #E8F4F6;
    color: #0C5E6E;
    border-radius: 3px;
    font-size: 0.6vw;
    font-weight: 600;
    width: fit-content;
}
.gp-news-row:hover .gp-news-source {
    color: var(--scimea-blue-soft, #1A6DB8);
}

/* ===== 列表页：加载更多按钮 ===== */
.gp-load-more-btn {
    padding: 10px 32px;
    background: #fff;
    color: var(--scimea-blue, #1565C0);
    border: 1px solid var(--scimea-blue, #1565C0);
    cursor: pointer;
    font-size: 0.78vw;
    transition: all .2s;
}
.gp-load-more-btn:hover {
    background: #E3F2FD;
    border-color: var(--scimea-blue-soft, #1A6DB8);
    color: var(--scimea-blue-soft, #1A6DB8);
}

/* ===== 列表项样式（由 list_page.js 动态填充） ===== */
.gp-news-card {
    border-bottom: 1px solid #EEF2F7;
    padding: 16px 0;
}
.gp-news-card:first-child {
    padding-top: 0;
}
.gp-news-card-title {
    font-size: 0.85vw;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
}
.gp-news-card-title:hover {
    color: var(--scimea-blue-soft);
}
.gp-news-card-date {
    font-size: 0.68vw;
    color: #999;
}
.gp-news-card-desc {
    font-size: 0.78vw;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 图文卡片网格（学术活动、知识萃取等展示类页面） ===== */
.gp-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gp-grid-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.gp-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    color: var(--text-dark);
}
.gp-grid-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.gp-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gp-grid-card:hover .gp-grid-img img {
    transform: scale(1.06);
}
.gp-grid-title {
    padding: 12px 10px;
    font-size: 0.78vw;
    line-height: 1.55;
    color: var(--text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-grid-card:hover .gp-grid-title {
    color: var(--scimea-blue, #1565C0);
}

/* ===== 响应式：移动端 ===== */
/* 移动端布局：栏目标题 + 子栏目列表 + 内容区域 全部可见 */
@media (max-width: 768px) {
    .gp-page-wrapper {
        padding: 16px 0 14px;
    }
    .gp-two-col {
        flex-direction: column;
        gap: 0;
    }
    .gp-left-nav {
        width: 100%;
        min-width: auto;
        position: static;
        animation: none;
    }
    /* 栏目标题更突出 */
    .gp-nav-group-title {
        font-size: 17px;
        padding: 14px 16px;
    }
    /* 子栏目导航：横向排列，始终可见 */
    .gp-nav-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px 14px;
    }
    .gp-nav-item {
        display: inline-flex;
        padding: 6px 14px;
        font-size: 13px;
        border-left: none;
        border-radius: 6px;
        background: #F0F4F8;
        margin: 0;
    }
    .gp-nav-item.active {
        border-left: none;
        background: #E3F2FD;
        color: var(--scimea-blue, #1565C0);
        font-weight: 600;
    }
    /* 隐藏重复的右侧标题（左导航已显示栏目名） */
    .gp-right-content > h2.gp-content-title {
        display: none;
    }
    .gp-right-content {
        padding: 12px 14px 20px;
        animation: none;
    }
    .gp-content-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .gp-content-body {
        font-size: 15px;
    }
    .gp-grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gp-grid-card {
        width: 100%;
    }
    .gp-grid-title {
        padding: 8px 6px;
        font-size: 12px;
    }
    /* 新闻列表：手机端隐藏日期、缩小标题 */
    .gp-news-date {
        display: none;
    }
    .gp-news-row {
        padding: 12px 8px;
        gap: 0;
    }
    .gp-news-title {
        font-size: 14px;
        max-width: 24em;
    }
    .gp-news-source {
        font-size: 11px;
    }
}
