/* ============================================================
   v2 数字信息内页样式（v2-news.css）
   ------------------------------------------------------------
   新闻动态 / 通知公告 / 新闻详情 正文区元素
   照搬原版样式，px 化（1920px 设计稿基准）
   依赖 v2-base.css + v2-about.css
   ============================================================ */

/* ===== 新闻动态列表（照搬原版） ===== */
.v2-news-list-container {
    width: 100%;
}

.v2-news-list-item {
    display: flex;
    flex-direction: column;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.25s ease;
}

.v2-news-list-item:last-child {
    border-bottom: none;
}

.v2-news-list-item:hover {
    background: #fafbfc;
    padding-left: 12px;
}

/* 日期元信息行 */
.v2-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.v2-news-date {
    font-size: 15px;
    color: #999;
    white-space: nowrap;
}

.v2-news-divider {
    font-size: 15px;
    color: #ccc;
}

/* 新闻标题 */
.v2-news-title {
    font-size: 19px;
    font-weight: 700;
    color: #0054d0;
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.5;
    margin-bottom: 10px;
    display: block;
}

.v2-news-title:hover {
    color: #003d99;
}

/* 新闻摘要 */
.v2-news-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    text-indent: 2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 通知公告列表（照搬原版，横向 + 附件图标） ===== */
.v2-notice-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 60px 22px 28px;
    background: #f0f0f0;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.v2-notice-list-item:last-child {
    margin-bottom: 0;
}

.v2-notice-list-item:hover {
    background: #e8e8e8;
}

.v2-notice-title {
    font-size: 17px;
    color: #333;
    text-decoration: none;
    transition: color 0.25s ease;
    flex: 1;
    margin-right: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-notice-title:hover {
    color: #0054d0;
}

.v2-notice-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.v2-notice-date {
    font-size: 15px;
    color: #999;
    white-space: nowrap;
}

/* 附件下载图标 */
.v2-notice-download {
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: #f5f5f5;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.v2-notice-download-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    opacity: 0.6;
}

.v2-notice-download:hover {
    background: #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* ===== 分页容器 ===== */
.v2-news-pager {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

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

/* ===== 新闻详情页 ===== */
.v2-news-detail {
    width: 100%;
}

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

.v2-detail-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.v2-detail-meta-info {
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf1;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
}

.v2-detail-content {
    font-size: 17px;
    line-height: 2;
    color: #333;
}

.v2-detail-content p {
    margin-bottom: 18px;
    }

.v2-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* 附件下载区 */
.v2-detail-attachments {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf1;
}

.v2-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e8ecf1;
    color: #1a5fb4;
    text-decoration: none;
    font-size: 14px;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.v2-attachment-item:hover {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

/* 返回按钮 */
.v2-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 10px 24px;
    background: #1a5fb4;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease;
}

.v2-detail-back:hover {
    background: #154a8c;
}

/* ===== 搜索框（参考 journal.html / v2-publish.css） ===== */
/* 内容标题栏带搜索框：标题和搜索框同一行（覆盖 v2-about.css 的 block 布局） */
.v2-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.v2-search-box {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;   /* 搜索框不被压缩 */
}

.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;
}
