/* ============================================================
   v2 数字出版内页样式（v2-publish.css）
   ------------------------------------------------------------
   期刊/图书/品牌活动 列表页 + 详情页 正文区元素
   照搬原版样式，px 化（1920px 设计稿基准）
   依赖 v2-base.css（版心/头部/页脚）+ v2-about.css（侧边栏/主内容区）
   ============================================================ */

/* ===== 搜索框（照搬原版） ===== */
.v2-search-box {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.v2-search-input {
    width: 260px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.v2-search-input:focus {
    border-color: #1a5fb4;
}

.v2-search-btn {
    width: 44px;
    height: 42px;
    background: #1a5fb4;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 17px;
}

.v2-search-btn:hover {
    background: #154a8c;
}

/* 内容标题栏带搜索框的布局 */
.v2-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* ===== 期刊/图书网格（照搬原版 4 列 20% 宽） ===== */
.v2-item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
    margin-bottom: 48px;
}

/* 期刊/图书卡片（照搬原版） */
.v2-item-card {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.v2-item-card:hover {
    transform: translateY(-5px);
}

.v2-item-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f0f4f8;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-item-title {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    text-align: center;
    padding: 14px 0;
}

/* ===== 品牌活动网格（照搬原版 brand-activity.css，px 化：2 列 + 16/10 横版封面） ===== */
.v2-item-grid.v2-activity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.v2-activity-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.v2-activity-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #1a5fb4;
}

.v2-activity-card .v2-item-cover {
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    background: #f5f5f5;
}

.v2-activity-card .v2-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    padding: 16px 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 分页容器（照搬原版） ===== */
.v2-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 18px;
}

/* 覆盖 LayUI 分页样式 */
.v2-pagination .layui-laypage {
    margin: 0;
}

.v2-pagination .layui-laypage a,
.v2-pagination .layui-laypage span {
    border-radius: 0;
    margin: 0 6px;
    padding: 0 18px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    border: 1px solid #e8ecf1;
    background: #fff;
    color: #666;
}

.v2-pagination .layui-laypage a:hover {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

.v2-pagination .layui-laypage .layui-laypage-curr {
    background: #1a5fb4;
    border-color: #1a5fb4;
}

.v2-pagination .layui-laypage .layui-laypage-curr em {
    color: #fff;
}

.v2-pagination .layui-laypage .layui-laypage-skip {
    height: 44px;
    line-height: 44px;
    border: none;
    background: transparent;
}

.v2-pagination .layui-laypage .layui-laypage-skip input {
    border-radius: 0;
    height: 44px;
    line-height: 44px;
    border: 1px solid #e8ecf1;
    padding: 0 10px;
    width: 60px;
    text-align: center;
}

.v2-pagination .layui-laypage .layui-laypage-skip button {
    border-radius: 0;
    height: 44px;
    line-height: 44px;
    border: 1px solid #e8ecf1;
    background: #fff;
    margin-left: 10px;
    padding: 0 18px;
    cursor: pointer;
}

.v2-pagination .layui-laypage .layui-laypage-skip button:hover {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

.v2-pagination .layui-laypage .layui-laypage-count {
    color: #999;
    border: none;
    background: transparent;
    margin-right: 12px;
}

/* ===== 空状态 ===== */
.v2-grid-empty {
    grid-column: 1 / -1;
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
}

/* ===== 专家卡片（照搬原版 experts.css，px 化） ===== */
.v2-expert-card {
    background: transparent;
    border-radius: 0;
    padding: 24px;
    text-align: center;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.v2-expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

/* 专家头像（大方形，非圆形） */
.v2-expert-avatar-lg {
    width: 120px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #a1caf6;
}

.v2-expert-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 专家姓名 */
.v2-expert-card .v2-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #0054d0;
    margin-bottom: 8px;
    padding: 0;
}

/* 专家简介 */
.v2-expert-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    border-top: 1px solid #e8ecf1;
    padding-top: 10px;
    margin-top: 8px;
}

/* ===== 学术平台手风琴面板（照搬原版 academic-platform.css，px 化） ===== */
.v2-platform-panel {
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.v2-platform-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.v2-platform-panel:last-child {
    margin-bottom: 0;
}

.v2-platform-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s;
}

.v2-platform-panel-header:hover {
    background: #f0f2f5;
}

.v2-platform-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.v2-platform-panel-arrow {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s;
}

.v2-platform-panel.active .v2-platform-panel-header {
    background: url('../images/panel-header-bg.jpg') center/cover no-repeat;
}

.v2-platform-panel.active .v2-platform-panel-title {
    color: #fff;
}

.v2-platform-panel.active .v2-platform-panel-arrow {
    color: #fff;
    transform: rotate(180deg);
}

.v2-platform-panel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.v2-platform-panel.active .v2-platform-panel-body {
    max-height: 800px;
    padding: 20px;
    background: #d2e6ff;
}

.v2-platform-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.v2-platform-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* ===== 图书/期刊详情页（照搬原版 book-detail.css，px 化） ===== */
.v2-detail-header {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.v2-detail-cover {
    flex-shrink: 0;
    width: 240px;
}

/* 我要投稿按钮（详情封面下方，依后台“显示投稿按钮/投稿链接”控制，参照设计图灰色圆角胶囊） */
.v2-submit-btn {
    display: block;
    margin: 14px auto 0;
    padding: 5px 0;
    width: 62%;
    box-sizing: border-box;
    text-align: center;
    background: #bfbfbf;
    color: #333;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity .3s ease;
}

.v2-submit-btn:hover {
    opacity: .85;
    color: #333;
}

.v2-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.v2-detail-meta {
    flex: 1;
    min-width: 0;
}

.v2-detail-title {
    font-size: 23px;
    font-weight: 700;
    color: #333;
    margin-bottom: 22px;
    line-height: 1.4;
}

.v2-detail-meta-list {
    margin-bottom: 22px;
}

.v2-meta-item {
    font-size: 16px;
    line-height: 2.8;
    color: #333;
}

.v2-meta-label {
    color: #666;
}

/* 简介区域 */
.v2-detail-intro-section {
    margin-top: 36px;
}

.v2-intro-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 3px solid #1a5fb4;
    line-height: 1.8;
}

.v2-detail-intro {
    padding: 12px 0;
}

.v2-detail-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ===== 频道首页（publish/index）多 section ===== */
.v2-pub-section {
    display: block;
    margin-bottom: 50px;
}

.v2-pub-section:last-child {
    margin-bottom: 0;
}

/* "全部列表"按钮（参考原版 btn-red 背景） */
.v2-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #e01b24;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.v2-view-all-btn:hover {
    opacity: 0.85;
}

/* 其他板块网格（3 列） */
.v2-other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v2-other-card {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.v2-other-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #1a5fb4;
}

.v2-other-card img {
    width: 100%;
    display: block;
}

.v2-other-title {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 0;
    text-align: center;
    color: #333;
    background: #fff;
}

/* ===== 人才招聘面板（照搬原版 recruitment.css，px 化） ===== */
/* 面板基础样式复用 .v2-platform-panel，此处只加招聘专用样式 */
.v2-recruit-count {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 16px;
    font-weight: 700;
}

/* 招聘有效期（面板标题右侧） */
.v2-recruit-date {
    margin-left: auto;
    margin-right: 12px;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}


.v2-platform-panel.active .v2-recruit-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 招聘区块（两列布局） */
.v2-recruit-section {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.v2-recruit-section:last-child {
    margin-bottom: 0;
}

.v2-recruit-section-title {
    width: 15%;
    flex-shrink: 0;
    margin-bottom: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    padding-left: 12px;
}

.v2-recruit-section-content {
    flex: 1;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

/* 招聘下载条 */
.v2-recruit-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: url('../images/download-bg.jpg') center/cover no-repeat;
    margin-top: 12px;
    width: 100%;
}

.v2-download-filename {
    font-size: 14px;
    color: #fff;
}

.v2-download-icon {
    width: 28px;
    height: auto;
    filter: invert(1) brightness(2);
}

/* 招聘空状态 */
.v2-recruit-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* "招聘岗位"按钮（content-divider 内，参考原版） */
.v2-recruit-btn {
    background: #ed1b24;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}
