﻿/* news.css - 新闻页面专用样式 */

/* 基于 public.css 的布局容器 */
.news-container {
    display: flex;
    gap: 20px;
    max-width: 1560px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.news-sidebar {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-content {
    flex: 1;
    max-width: 900px;
}

/* 新闻分类列表 - 复用公共样式 */
.news-categories {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    display: block;
    padding: 8px 12px;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    @extend .bg-gray-light; /* 如果使用SASS，否则手动定义 */
}

.category-item:hover {
    background-color: #ed4040;
    color: white;
}

/* 新闻列表项 */
.news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-thumb {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    position: relative;
}

.news-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.news-thumb img:hover {
    transform: scale(1.05);
}

.news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 新闻标题 - 复用公共样式 */
.news-title a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    @extend a; /* 继承基础链接样式 */
}

.news-title a:hover {
    color: #ed4040;
    @extend a:hover; /* 继承基础链接悬停样式 */
}

/* 新闻摘要 - 复用公共样式 */
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 5px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 显示3行后添加省略号 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-all;
}

/* 新闻元信息 */
.news-meta {
    font-size: 12px;
    color: #999;
}

.news-meta i {
    margin-right: 3px;
    @extend .iconfont; /* 复用图标字体样式 */
}

/* 促销区域 - 复用公共样式 */
.news-promo {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    @extend .bg-gray-lighter;
}

.news-promo p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* 按钮样式 - 复用公共样式 */
.btn-register, .btn-wechat {
    display: block;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    @extend a;
}

.btn-register {
    background-color: #ed4040;
    color: white;
    @extend .bg-red-primary;
}

.btn-wechat {
    color: #35c020;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* VIP列表区域 - 复用公共样式 */
.news-vip {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    @extend .bg-gray-lighter;
}

.vip-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.vip-list li {
    padding: 3px 0;
    font-size: 14px;
}

.vip-list a {
    color: #666;
    text-decoration: none;
    @extend a;
}

.vip-list a:hover {
    color: #ed4040;
}

/* 分页区域 */
.news-pagination {
    text-align: center;
    padding: 20px 0;
}

/* 链接区域 - 复用公共样式 */
.links-section {
    width: 1560px;
    margin: 30px auto 20px;
    border: 1px solid #cecece;
    background-color: #fffafa;
    @extend .border-dashed-gray;
}

.links-section-header {
    display: flex;
    justify-content: space-between;
}

.links-section-tab {
    border-right: 1px #cecece solid;
    border-bottom: 1px #cecece solid;
    text-align: center;
    height: 40px;
    line-height: 40px;
    padding: 0px 20px;
    white-space: nowrap;
}

.links-section-tab.active {
    border-bottom: 1px #fffafa solid;
    cursor: pointer;
}

.links-section-title-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px #cecece solid;
    height: 40px;
    line-height: 40px;
}

.links-section-title-row a {
    margin: 0px 20px;
}

.links-section-content { }

.links-section-content-item {
    display: none;
    margin: 15px auto;
    height: 60px;
    overflow-y: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.links-section-content-item.active {
    display: flex;
}

.links-section-content-item a {
    height: 18px;
    line-height: 18px;
    margin: 0px 3px 0px 3px;
    font-size: 12px;
}

.links-section-content-item a:hover {
    color: #000000;
}

/* ====================== 新闻详情页专用样式 ====================== */
.news-breadcrumb {
    display: flex;
    justify-content: space-between;
    border-top: 3px #f0f0f0 solid;
}

.news-industry-wrap {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 0;
}
.industry-title {
    width: 80px;
    height: 80px;
    background-color: #007abd;
    color: #fff;
    line-height: 80px;
    text-align: center;
    font-size: 20px;
}
.fenlei {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 1100px;
    background-color: #fcefef;
    padding-left: 10px;
    padding-top: 3px;
}
.fenlei a {
    line-height: 25px;
    padding: 0 10px;
    display: inline-block;
}
.fenlei a:hover {
    background-color: #ff6a00;
    color: #fff;
}

/* 顶部广告 */
.news-ad-top {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.ad-main {
    width: 930px;
    height: 90px;
    background-color: #f2f2f2;
}
.ad-side {
    width: 240px;
    height: 90px;
    position: relative;
}
.ad-side img {
    width: 240px;
    height: 90px;
}

/* 详情主体布局 */
.news-detail-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.news-detail-main {
    width: 930px;
}
.news-detail-side {
    width: 240px;
}

/* 标题 */
.news-detail-title {
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    margin: 0 auto;
}

/* 信息栏 */
.news-detail-meta {
    border-bottom: 1px #cecece dashed;
    line-height: 40px;
    display: flex;
    justify-content: space-around;
    margin: 10px auto;
}
.news-detail-meta span,
.news-detail-meta a {
    color: #7b7b7b;
}

/* 内容区 */
.news-detail-content {
    margin: 10px auto;
    width: 930px;
    min-height: 400px;
    overflow: hidden;
}
.news-detail-content img {
    max-width: 100%;
}
.news-detail-content p {
    font-size: 14px;
}
.news-detail-img {
    max-width: 710px;
    text-align: center;
    margin: 10px;
}

/* 上一篇下一篇 */
.news-prev-next {
    margin: 20px auto;
}
.un {
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
}

/* 声明 */
.news-declare {
    background-color: #f0f0f0;
    border: 1px #cecece dashed;
}
.declare-inner {
    margin: 10px;
    line-height: 25px;
}

/* 热门资讯 */
.news-hot {
    margin-top: 20px;
}
.hot-title {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}
.hot-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hot-item {
    width: 450px;
    height: 30px;
    overflow: hidden;
    line-height: 30px;
    text-indent: 5px;
    display: flex;
    justify-content: space-between;
}
.hot-item:hover {
    background-color: #f0f0f0;
}
.hot-item span {
    width: 35px;
}
.hot-link {
    text-align: left;
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 右侧登录 */
.side-login {
    border: 1px #cecece solid;
}
#login_k {
    text-align: center;
    margin-top: 0;
}
#login_k a {
    display: inline-block;
    width: 210px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 8px auto 5px;
    color: #fff;
}
.login_btn {
    background-color: #ff0000;
}
.login_reg {
    background-color: #ff7e00;
}
.reg_tip {
    background-color: #f1f1f1;
    height: 28px;
    line-height: 28px;
    width: 210px;
    text-align: center;
    margin-top: 8px;
    display: inline-block;
}
.side-benefit {
    width: 210px;
    padding: 10px 0;
    margin: 15px auto;
    border: 1px #cecece dashed;
    text-align: center;
    line-height: 25px;
    background-color: #fcfcfc;
}

/* 右侧广告 */
.side-ad {
    display: flex;
    justify-content: space-between;
    width: 240px;
    margin-top: 20px;
}

.news-categories a.active {
    background: #d11120 !important;
    color: #fff !important;
    font-weight:bold;
}
.news-categories a.back-item {
    background:#f5f5f5;
    color:#333;
    margin-bottom:5px;
}




/* 广告区域 */
._0xi0msstpglq {
    margin: 20px 0;
    text-align: center;
}

/* 响应式媒体查询 */
@media (max-width: 1599px) {
    .news-container, .links-section {
        width: 1190px;
    }
}

@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .news-sidebar {
        width: 100%;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-thumb {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
    
    .news-text {
        min-height: auto;
    }
    
    .links-section {
        width: 100%;
        margin: 20px 0;
    }
    
    .links-section-header {
        flex-direction: column;
    }
    
    .links-section-title-row {
        justify-content: center;
    }
}



