/* ============================================================
 * 企业资讯模块样式 - news.css
 * ============================================================ */

/* 面包屑 */
.breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; }
.breadcrumb .container { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #f26a1b; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .cur { color: #999; }

/* 主体布局 */
.main { padding: 20px 0 40px; background: #f4f6f9; min-height: 500px; }
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: table; clear: both; }

.news-main { float: left; width: 860px; }
.news-side { float: right; width: 320px; }

/* 区块标题 */
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e8ecf1; }
.section-head h2,
.section-head h3 { margin: 0; font-size: 18px; color: #222; font-weight: 700; }
.icon-line { display: inline-block; width: 4px; height: 18px; background: #f26a1b; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sub-title { font-size: 13px; color: #999; font-weight: normal; }

/* 分类导航 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 14px 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.cat-nav a { display: inline-block; padding: 5px 16px; border-radius: 20px; font-size: 13px; color: #666; background: #f5f6f8; transition: .2s; }
.cat-nav a:hover { color: #f26a1b; background: #fff0e6; }
.cat-nav a.on { color: #fff; background: #f26a1b; }

/* 空状态 */
.empty-box { padding: 60px 20px; text-align: center; color: #999; font-size: 14px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }

/* 资讯列表 */
.news-list { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.news-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #f0f2f5; }
.news-item:last-child { border-bottom: 0; }
.news-item:first-child { padding-top: 0; }

.news-thumb { flex: 0 0 180px; width: 180px; height: 120px; border-radius: 8px; overflow: hidden; background: #edf0f3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-info h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.news-info h3 a { color: #222; transition: color .2s; }
.news-info h3 a:hover { color: #f26a1b; }
.news-summary { margin: 0 0 12px; font-size: 14px; color: #666; line-height: 1.7; }

.news-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #999; flex-wrap: wrap; }
.news-meta .news-cat { color: #f26a1b; }
.news-info h3 .badge-top { padding: 1px 8px; background: #fff0e6; color: #f26a1b; border-radius: 3px; font-size: 12px; margin-left: 6px; }
.news-meta .badge-rec { padding: 1px 8px; background: #e6f7ff; color: #1890ff; border-radius: 3px; font-size: 12px; }

/* 资讯详情 */
.news-detail { background: #fff; border-radius: 10px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.detail-head { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #f0f2f5; }
.detail-title { margin: 0 0 14px; font-size: 26px; line-height: 1.4; color: #222; font-weight: 700; }
.detail-meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #999; flex-wrap: wrap; margin-bottom: 12px; }
.detail-tags { display: flex; gap: 8px; }
.detail-tags .tag { padding: 3px 12px; background: #fff0e6; color: #f26a1b; border-radius: 4px; font-size: 12px; }

.detail-cover { margin-bottom: 22px; border-radius: 10px; overflow: hidden; background: #edf0f3; }
.detail-cover img { width: 100%; height: auto; display: block; }

.detail-body { font-size: 16px; line-height: 1.9; color: #333; }
.detail-body p { margin: 0 0 16px; }
.detail-body h3 { margin: 24px 0 12px; font-size: 18px; color: #222; }
.detail-body img { max-width: 100%; height: auto; border-radius: 6px; }

/* 相关资讯 */
.related-news { margin-top: 20px; background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.related-list { margin: 0; padding: 0; list-style: none; }
.related-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { color: #333; font-size: 14px; transition: color .2s; }
.related-list a:hover { color: #f26a1b; }
.related-list span { font-size: 12px; color: #999; white-space: nowrap; margin-left: 12px; }

/* 侧边栏 */
.side-box { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.side-title { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid #f26a1b; }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #444; font-size: 14px; line-height: 1.5; display: block; transition: color .2s; }
.side-list a:hover { color: #f26a1b; }

.hot-list li { display: flex; gap: 10px; align-items: flex-start; }
.hot-list .rank { flex: 0 0 20px; width: 20px; height: 20px; line-height: 20px; text-align: center; background: #e8ecf1; color: #666; border-radius: 3px; font-size: 12px; margin-top: 2px; }
.hot-list .rank.top { background: #f26a1b; color: #fff; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; }
.pagination a,
.pagination span { display: inline-block; padding: 8px 14px; border-radius: 6px; font-size: 14px; background: #fff; color: #666; border: 1px solid #e8ecf1; }
.pagination a:hover { background: #f26a1b; color: #fff; border-color: #f26a1b; }
.pagination .cur-page { background: #f26a1b; color: #fff; border-color: #f26a1b; }
.pagination .disabled { color: #bbb; cursor: not-allowed; }
.pagination .page-info { border: 0; background: transparent; color: #999; }
.pagination .dots { border: 0; background: transparent; color: #999; padding: 8px 6px; }

/* 上下篇导航 */
.prev-next-nav {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.pn-item { flex: 1; min-width: 0; }
.pn-item.next { text-align: right; }
.pn-item a {
    display: block;
    padding: 14px 18px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    transition: .2s;
    text-decoration: none;
}
.pn-item a:hover {
    background: #fff5ee;
    border-color: #ffd6b0;
}
.pn-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.pn-label i { font-size: 14px; }
.pn-title {
    display: block;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-item a:hover .pn-title { color: #f26a1b; }
.pn-disabled {
    display: block;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.pn-disabled .pn-label { color: #ccc; }
.pn-disabled .pn-title { color: #ccc; }

/* 响应式 */
@media (max-width: 1220px) {
    .container { width: auto; margin: 0 15px; }
    .news-main { float: none; width: auto; }
    .news-side { float: none; width: auto; margin-top: 20px; }
}
@media (max-width: 768px) {
    .news-item { flex-direction: column; gap: 12px; }
    .news-thumb { width: 100%; height: auto; aspect-ratio: 16/10; }
    .detail-title { font-size: 20px; }
    .detail-meta { gap: 10px; }
    .prev-next-nav { flex-direction: column; gap: 10px; }
    .pn-item.next { text-align: left; }
}
