/* 新闻与政策页面专用样式 */

/* ==================== 新闻容器 ==================== */
.news-container {
    padding: 40px 0 60px;
    background: #f7fafd !important;
}

/* 新闻布局 */
.news-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ==================== 左侧分类边栏 ==================== */
.news-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.category-wrapper {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow:0 4px 16px rgba(20, 88, 174, 0.13);
    padding: 0 20px;
}

.sidebar-title {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-radius: 10px 10px 0 0;
    position: relative;
    background: none !important;
    border-bottom: 0 !important;
}
.sidebar-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--blue) 0%, #40a9ff 100%);
}
.sidebar-title::after {
    content: "";
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, rgba(7, 91, 216, .85) 0%, rgba(0, 114, 206, 0) 100%);
    border-radius: 1px;
    display: inline-block;
    margin-left: 10px;
    position: absolute;
    top:50%;
}
.category-list {
    list-style: none;
    padding: 0 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #edf4ff;
}
.category-item i{
    margin-right: 10px;
}
.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: block;
    padding: 12px 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-item a:hover {
    background:#e8f4ff;
    color: var(--blue);
    padding-left: 25px;
}

.category-item.active a {
    background: var(--blue);
    color: #fff;
}

/* 联系卡片 */
.contact-card {
    box-shadow: 0 4px 16px rgba(20, 88, 174, 0.13);
    border-radius: 10px;
    overflow: hidden;
    background: url('/skin/keliyue/img/wx-lx.png') top right no-repeat  #f5f7fe;
    background-size:50% auto ;
    margin-bottom: 20px;
}

/* 左侧最后一个元素 */
.news-sidebar > *:last-child {
    margin-bottom: 0;
}

.contact-card-header {
     padding: 15px 20px;
    border-bottom: 0;
    font-size: 16px;
}

.contact-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.contact-card-body {
    padding: 20px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-items {
   display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    background: #fff;
    padding:5px 5px;
    border-radius: 4px;
}

.contact-label {
    color: #666;
    font-weight: 500;
    min-width: 60px;
}
.contact-label i{
    width: 30px;
    height: 30px;
    background: #f0f5fd;
    border-radius: 30px;
    color:var(--blue) ;
    line-height: 30px;
    text-align: center;
    margin-right: 10px;
}

.contact-value {
    color: #333;
    font-weight: 500;
}

.contact-link {
    color: var(--blue);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.qrcode-section {
   text-align: center;
    padding-top: 15px;
    border-top: 0;
    position: relative;
    height: 180px;
}

.qrcode-img {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 10px;
    display: block;
    z-index: 9;
    position: absolute;
    top:10px;
    left: 35px;
}

.qrcode-text {
    position: absolute;
    margin: 0;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    width:140px;
    height: 40px;
    line-height: 40px;
    border-radius: 10px;
    background:linear-gradient(90deg,#69c0ff , var(--blue)) ;
    left:35px ;
    bottom:5px;
    z-index:0;
    padding-top:5px;
}

/* ==================== 中间文章列表 ==================== */
.news-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.news-page-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    margin-bottom: 40px;
}

/* 文章项 */
.news-page-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 88, 174, 0.13);
    transition: all 0.3s;
}

.news-page-item:hover {
    transform: translateY(-2px);
}

.news-page-item-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-page-item-image {
    position: relative;
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    padding:20px;
}

.news-page-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-page-item:hover .news-page-item-image img {
    transform: scale(1.05);
}

/* 图片上的标签和日期 - 参考首页样式 */
.news-page-item-meta-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.news-page-category {
    padding: 4px 12px;
    background: #fa8c16;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
}

.news-page-category.policy {
    background: #52c41a;
}

.news-page-category.tech {
    background: #722ed1;
}

.news-page-category.company {
    background: var(--blue);
}

.news-page-date-icon {
    position: absolute;
    padding:5px 0px;
    color: #ccc;
    font-size: 14px;
    bottom:10px;
}
.news-page-date-icon span{
     margin-right: 20px;
}
.news-page-date-icon i{
    font-size: 16px;
    margin-right: 10px;
}
.news-page-item-content {
    flex: 1;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-page-item-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-page-item:hover .news-page-item-title {
    color: var(--blue);
}

.news-page-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a[title="总数"] {
    display: none;
}

/* 所有分页按钮 */
.pagination a,
.pagination b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

/* hover */
.pagination a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* 当前页 */
.pagination b {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    font-weight: normal;
}

/* 去掉nbsp影响 */
.pagination {
    font-size: 0;
}
.pagination a,
.pagination b {
    font-size: 14px;
}

/* 空状态提示 */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow:0 4px 16px rgba(20, 88, 174, 0.13);
}

.empty-tip p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* ==================== 右侧边栏 ==================== */
.news-right-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding:10px 20px 20px 20px;
    margin-bottom:20px;
    box-shadow:0 4px 16px rgba(20, 88, 174, 0.13);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding:10px 20px 10px 20px;
    position: relative;
}
.sidebar-widget h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--blue) 0%, #40a9ff 100%);
}
.sidebar-widget h3::after {
    content: "";
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, rgba(7, 91, 216, .85) 0%, rgba(0, 114, 206, 0) 100%);
    border-radius: 1px;
    display: inline-block;
    margin-left: 10px;
    position: absolute;
    top:50%;
}

/* 最新发布 / 热门点击 */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-item {
    padding: 10px 5px;
    margin-bottom: 2px;
    border-bottom: 1px dashed #e0e0e0;
    overflow: hidden;
}
.widget-item-titles::before {
    content: '• ';
    margin-right: 5px;
    color: var(--blue);
}
.widget-item:last-child {
    border-bottom: none;
}

.widget-item a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.widget-item-title {
    overflow: hidden;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-item a:hover .widget-item-title {
    color: var(--blue);
}

.widget-item-date {
    font-size: 12px;
    color: #999;
}
.widget-item-date i{
    font-size: 14px;
    margin-right: 5px;
    color: #ccc;
}
/* 相关推荐（左侧边栏）- 单行显示 */
.news-sidebar .widget-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门点击排名 */
.hot-list .widget-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
}

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    flex-shrink: 0;
}

/* 正确！只写父级 li 的 nth-child，里面的 .hot-rank 变色 */
li:nth-child(1) .hot-rank {
    background: #f53f3f;
    color: #fff;
}
li:nth-child(2) .hot-rank {
    background: #ff7d00;
    color: #fff;
}
li:nth-child(3) .hot-rank {
     background: #ffb400;
    color: #fff;
}
/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #eaf3ff;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--blue);
    color: #fff;
}
/* 问答列表 */
.qalist-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

/* 问答项 */
.qalist-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 88, 174, 0.13);
    transition: all 0.25s ease;
}

.qalist-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.qalist-item-link {
    display: block;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
}

/* 问题行 */
.qalist-q {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

/* 问答图标 */
.qalist-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
}

.qalist-icon-q {
    background: var(--brand-primary, #0f62ce);
    color: #fff;
}

.qalist-icon-a {
    background: rgba(82, 196, 26, 0.15);
    color: #52c41a;
}

/* 问题标题 */
.qalist-question {
    flex: 1;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
    padding-top: 2px;
    transition: color 0.2s ease;
}

.qalist-item:hover .qalist-question {
    color: var(--brand-primary, #0f62ce);
}

/* 答案行 */
.qalist-a {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-left: 0;
}

/* 答案内容 */
.qalist-answer {
    flex: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    padding-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息 */
.qalist-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 42px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.qalist-meta-item .iconfont {
    font-size: 14px;
    color: #bbb;
}
.qalist-meta-item {
    display: flex;
    align-items: center;    /* 核心：垂直居中 */
    justify-content: flex-start;
    gap: 5px;
    font-size: 13px;
    color: #999;
    line-height: 1;        /* 统一行高，防止错位 */
}

/* 强制图标居中（关键！） */
.qalist-meta-item i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle; /* 兼容老浏览器 */
    line-height: 1;
}
/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1199px) */
@media (max-width: 1199px) {
    .news-layout {
        gap: 20px;
    }
    
    .news-sidebar {
        width: 200px;
    }
    
    .news-right-sidebar {
        width: 260px;
    }
    
    .news-page-item-image {
        width: 240px;
        height: 160px;
    }
}

/* 移动端 (<768px) */
@media (max-width: 767px) {
    .news-container {
        padding: 20px 0 40px;
    }
    
    .news-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-sidebar {
        width: 100%;
    }
    .sidebar-title{display:none;}
    .category-list{
       display: grid;
       grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .category-item i{
        display: none;
    }
    .category-item{
       border: 0;
       border-radius: 5px;
       background: #fff;
    }
    .category-item a{
        padding:8px 5px;
        font-size: 13px;
       border-radius: 5px;
       text-align: center;
    }
    .category-item.active a{
    color: #fff;
    background: linear-gradient(135deg, #086cf5, #0046c0);
}
    .category-wrapper{
        background: none;
        box-shadow: none;
        margin-bottom: 0;
       padding:0;
    }
    .news-right-sidebar {
        width: 100%;
    }
    
    .news-page-item-link {
        flex-direction: row;
    }
    
    .news-page-item-image {
        width: 140px;
        height: auto;
        padding: 10px;
    }
    .news-page-item-image img{
        width: 120px !important;
        height: 100px !important;
        object-fit: contain;
        display: block;
        border-radius: 8px;
        margin: 0;
        padding: 0;
        object-position: center;
        background: #f7fafd;
    }
   .news-page-item-meta-overlay {
    position: absolute;
    top: 84px;
    left: 58px;
    display: flex;
    height: 26px;
    gap: 8px;
    z-index: 2;
}
    .news-page-item-content {
        padding: 15px;
    }
    
    .news-page-item-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .news-page-item-desc {
        font-size: 13px;
        display: none;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    .contact-card{
        display: none;
    }
    .sidebar-widget{
         display: none;
    }
    .news-page-date-icon span{
        margin-right: 5px;
    }

}
