/* ========== 新闻门户全局样式 ========== */

/* 顶部信息栏 */
.top-bar {
    background: #1a1a2e;
    color: #bbb;
    font-size: 13px;
    line-height: 36px;
    border-bottom: 1px solid #2a2a4e;
}
.top-bar a { color: #ccc; margin-left: 12px; }
.top-bar a:hover { color: #e74c3c; text-decoration: none; }
.top-welcome { margin-left: 8px; color: #888; }

/* 主导航 */
.main-navbar {
    background: #fff;
    border: none;
    /* border-bottom: 3px solid #c00; */
    margin-bottom: 0;
    border-radius: 0;
}
.main-navbar .navbar-brand {
    font-size: 22px;
    font-weight: bold;
    color: #c00 !important;
    padding: 0 15px 8px;
    height: 50px;
    display: inline-flex;
    float: left;
    align-items: flex-end;
}
.main-navbar .navbar-brand .brand-logo {
    height: 36px;
    margin-right: 10px;
}
.main-navbar .navbar-brand .brand-text {
    display: inline;
}
.main-navbar .navbar-nav > li > a {
    font-size: 15px;
    padding: 20px 18px 8px;
    color: #333;
    font-weight: 500;
}
.main-navbar .navbar-nav > li > a:hover,
.main-navbar .navbar-nav > li.active > a {
    color: #c00;
    background: #fafafa;
}
.main-navbar .search-box { width: 240px; }

/* Hero区 - 焦点新闻轮播 */
.hero-section {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}
.hero-slide { position: relative; border-radius: 4px; overflow: hidden; }
.hero-slide img { width: 100%; height: 380px; object-fit: cover; }
.hero-slide .slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; padding: 30px 20px 15px;
}
.hero-slide .slide-caption h3 { margin: 0 0 5px; font-size: 20px; }
.hero-slide .slide-caption h3 a { color: #fff; }
.hero-slide .slide-caption p { margin: 0; font-size: 13px; opacity: 0.85; }

/* 新闻快讯条 */
.flash-news {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;
    padding: 8px 15px; margin-bottom: 15px; overflow: hidden;
}
.flash-news .flash-label {
    background: #c00; color: #fff; padding: 3px 10px;
    border-radius: 3px; margin-right: 10px; font-size: 13px; float: left;
}
.flash-news .flash-list { overflow: hidden; height: 28px; }
.flash-news .flash-list a {
    color: #333; font-size: 14px; line-height: 28px;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flash-news .flash-list a:hover { color: #c00; text-decoration: none; }

/* 区块标题 */
.section-title {
    border-bottom: 2px solid #c00; margin-bottom: 15px; position: relative;
}
.section-title h2 {
    font-size: 20px; font-weight: bold; color: #333; margin: 0; padding: 8px 0;
    display: inline-block; border-bottom: 2px solid #c00;
    margin-bottom: -2px;
}
.section-title .more-link {
    float: right; font-size: 13px; color: #999; line-height: 40px;
}
.section-title .more-link:hover { color: #c00; text-decoration: none; }

/* 新闻网格卡片 */
.news-grid { margin-bottom: 20px; }
.news-card {
    background: #fff; border: 1px solid #eee; border-radius: 4px;
    overflow: hidden; transition: box-shadow 0.3s; margin-bottom: 15px;
}
.news-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.news-card .card-img { position: relative; overflow: hidden; }
.news-card .card-img img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-img .card-category {
    position: absolute; top: 10px; left: 10px;
    background: rgba(204,0,0,0.85); color: #fff; padding: 2px 10px;
    border-radius: 3px; font-size: 12px;
}
.news-card .card-body { padding: 12px; }
.news-card .card-body h4 {
    font-size: 15px; margin: 0 0 8px; line-height: 1.4;
    height: 42px; overflow: hidden;
}
.news-card .card-body h4 a { color: #333; }
.news-card .card-body h4 a:hover { color: #c00; text-decoration: none; }
.news-card .card-body .card-meta {
    color: #999; font-size: 12px;
}
.news-card .card-body .card-meta span { margin-right: 10px; }

/* 热搜列表 */
.hot-news-list { list-style: none; padding: 0; margin: 0; }
.hot-news-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.hot-news-list li:last-child { border-bottom: none; }
.hot-news-list .rank {
    display: inline-block; width: 20px; height: 20px; line-height: 20px;
    text-align: center; background: #eee; color: #999; font-size: 12px;
    margin-right: 8px; border-radius: 3px;
}
.hot-news-list li:nth-child(1) .rank,
.hot-news-list li:nth-child(2) .rank,
.hot-news-list li:nth-child(3) .rank { background: #c00; color: #fff; }
.hot-news-list a { color: #333; font-size: 14px; }
.hot-news-list a:hover { color: #c00; text-decoration: none; }

/* 文章详情页 */
.article-detail { background: #fff; padding: 25px; border: 1px solid #eee; border-radius: 4px; }
.article-detail h1 { font-size: 26px; color: #222; margin: 0 0 15px; line-height: 1.4; }
.article-info {
    color: #888; font-size: 13px; padding-bottom: 15px;
    border-bottom: 1px solid #eee; margin-bottom: 20px;
}
.article-info span { margin-right: 15px; }
.article-content {
    font-size: 16px; line-height: 1.8; color: #333;
    word-wrap: break-word;
}
.article-content img { max-width: 100%; height: auto !important; }
.article-content p { margin-bottom: 15px; }
.article-source {
    margin-top: 20px; padding: 10px 15px; background: #f9f9f9;
    border-left: 3px solid #c00; font-size: 13px; color: #666;
}
.article-tags { margin-top: 15px; }
.article-tags a {
    display: inline-block; padding: 3px 12px; margin: 0 5px 5px 0;
    background: #f0f0f0; color: #666; border-radius: 3px; font-size: 12px;
}
.article-tags a:hover { background: #c00; color: #fff; text-decoration: none; }

/* 推荐阅读 */
.recommend-reading {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.recommend-reading .section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.recommend-reading .section-title span {
    border-left: 3px solid #c00;
    padding-left: 10px;
}
.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.recommend-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
    transition: all 0.3s;
    align-items: center;
}
.recommend-item:hover {
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(204,0,0,0.08);
}
.recommend-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 65px;
    border-radius: 3px;
    overflow: hidden;
}
.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 24px;
}
.recommend-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recommend-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-title:hover {
    color: #c00;
    text-decoration: none;
}
.recommend-date {
    font-size: 12px;
    color: #999;
}
@media (max-width: 767px) {
    .recommend-list {
        grid-template-columns: 1fr;
    }
    .recommend-thumb {
        width: 80px;
        height: 55px;
    }
}

/* 侧边栏 */
.sidebar-widget {
    background: #fff; border: 1px solid #eee; border-radius: 4px;
    padding: 15px; margin-bottom: 20px;
}
.sidebar-widget .widget-title {
    font-size: 17px; font-weight: bold; color: #333;
    padding-bottom: 10px; border-bottom: 1px solid #eee; margin-bottom: 12px;
}
.sidebar-widget .widget-title span { border-left: 3px solid #c00; padding-left: 8px; }

/* 标签云 */
.tag-cloud a {
    display: inline-block; padding: 4px 12px; margin: 0 5px 8px 0;
    background: #f5f5f5; color: #555; border-radius: 3px; font-size: 13px;
}
.tag-cloud a:hover { background: #c00; color: #fff; text-decoration: none; }

/* 分页 */
.pagination-wrap { text-align: center; margin: 20px 0; }
.pagination-wrap .pagination {
    display: inline-flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.pagination-wrap .pagination li {
    margin: 0 4px;
}
.pagination-wrap .pagination li a,
.pagination-wrap .pagination li span {
    display: block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #337ab7;
    background: #fff;
    font-size: 14px;
    line-height: 1.42857143;
}
.pagination-wrap .pagination li a:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}
.pagination-wrap .pagination li.active span,
.pagination-wrap .pagination li.disabled span {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: default;
}
.pagination-wrap .pagination li.active span {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* 列表页 */
.news-list { }
.news-list-item {
    padding: 15px 0; border-bottom: 1px dashed #eee;
    display: flex; gap: 15px;
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item .list-img { flex-shrink: 0; width: 200px; }
.news-list-item .list-img img {
    width: 100%; height: 130px; object-fit: cover; border-radius: 4px;
}
.news-list-item .list-content { flex: 1; }
.news-list-item .list-content h3 {
    font-size: 18px; margin: 0 0 8px; line-height: 1.4;
}
.news-list-item .list-content h3 a { color: #222; }
.news-list-item .list-content h3 a:hover { color: #c00; text-decoration: none; }
.news-list-item .list-content .list-desc {
    font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list-item .list-meta { color: #999; font-size: 12px; }
.news-list-item .list-meta span { margin-right: 12px; }

/* 面包屑 */
.breadcrumb-bar {
    background: #f9f9f9; border-bottom: 1px solid #eee; padding: 10px 0; margin-bottom: 20px;
}
.breadcrumb-bar .breadcrumb { margin: 0; padding: 0; background: none; }
.breadcrumb-bar .breadcrumb a { color: #666; }
.breadcrumb-bar .breadcrumb .active { color: #c00; }

/* 搜索页 */
.search-header {
    background: #fff; padding: 15px 20px; border: 1px solid #eee;
    border-radius: 4px; margin-bottom: 20px;
}
.search-header .search-keyword { color: #c00; font-weight: bold; }

/* 页脚 */
.site-footer {
    background: #1a1a2e; color: #aaa; padding: 30px 0 15px; margin-top: 30px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #e74c3c; text-decoration: none; }
.site-footer .footer-links { list-style: none; padding: 0; }
.site-footer .footer-links li { padding: 4px 0; }
.site-footer .friend-links a { margin-right: 15px; line-height: 2; }
.site-footer .copyright { font-size: 13px; margin: 0; }
.site-footer .copyright a { margin: 0 5px; }
.site-footer hr { border-color: #2a2a4e; }

/* 响应式 */
@media (max-width: 767px) {
    .hero-slide img { height: 200px; }
    .hero-slide .slide-caption h3 { font-size: 16px; }
    .news-list-item { flex-direction: column; }
    .news-list-item .list-img { width: 100%; }
    .news-list-item .list-img img { height: 180px; }
    .top-bar .text-right { text-align: left !important; margin-top: 5px; }
    .main-navbar .search-box { width: 100%; }
}
