/* ========================================
   新闻列表页面样式 - news_list.html专用
   ======================================== */

/* 新闻页面Banner微调 */
.news-banner .banner-title {
    font-size: 38px;
}

/* 新闻列表区域 */
.news-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 350px);
}

/* 新闻分类标签 */
.news-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-tab {
    padding: 12px 30px;
    background: #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}
.news-tab a{
  text-decoration: none;
  color: #333;
}

.news-tab:hover {
    color: #4169E1;
    border-color: #4169E1;
    transform: translateY(-2px);
}

.news-tab.active {
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(65,105,225,0.3);
}

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 新闻项 */
.news-item {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* 新闻图片 */
.news-image {
    flex-shrink: 0;
    width: 380px;
    height: 275px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 15px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4169E1;
}

.news-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    color: #999;
}

.news-date,
.news-views {
    display: flex;
    align-items: center;
    gap: 6px;
}


.news-more {
    margin-left: auto;
    color: #4169E1;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-more:hover {
    color: #5A7FE8;
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-btn:hover,
.page-num:hover {
    background: #4169E1;
    color: #fff;
    transform: translateY(-2px);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-num.active {
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    color: #fff;
}

.page-ellipsis {
    color: #999;
    padding: 0 10px;
}

/* ========================================
   页脚样式
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px 0 1px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 5fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

/* 业务范围网格样式 */
.footer-services-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    flex: 1;
}

.service-column {
    text-align: center;
}

.service-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.service-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-column li {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.service-column li:hover {
    color: #FFD700;
    padding-left: 5px;
}

.service-column li:last-child {
    border-bottom: none;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact strong {
    color: #fff;
    font-weight: 500;
}

/* 白色分隔线 - 100%宽度 */
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0;
}

/* 版权信息区块 */
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    background: inherit;
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ========================================
   移动端适配
   ======================================== */
@media (max-width: 1024px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 40px 0;
    }
    
    .news-tabs {
        gap: 10px;
        padding: 0 20px;
    }
    
    .news-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .news-item {
        margin: 0 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .news-summary {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 13px;
    }
    
    .news-more {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .pagination {
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .page-btn,
    .page-num {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* 移动端页脚 */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .service-column li {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .footer-copyright {
        padding: 15px 0;
    }
    
    .footer-copyright p {
        font-size: 13px;
    }
}

/* ========================================
   文章详情页样式
   ======================================== */

/* 文章详情页整体布局 */
.article-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 文章主体 */
.article-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #4169E1 0%, #5a7fe8 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: #888;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    width: 16px;
    height: 16px;
    background-size: contain;
}

/* 文章封面图 */
.article-cover {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章内容 */
.article-content {
    padding: 40px 50px;
}

.article-lead {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    padding: 25px 30px;
    border-left: 4px solid #4169E1;
    border-radius: 0 8px 8px 0;
    margin-bottom: 35px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 35px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 25px 25px;
    padding-left: 20px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 10px;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* 文章标签 */
.article-tags {
    padding: 25px 50px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 14px;
    color: #888;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #4169E1;
    color: #fff;
}

/* 分享按钮 */
.article-share {
    padding: 20px 50px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 14px;
    color: #888;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.wechat {
    background: #07c160;
    color: #fff;
}

.share-btn.weibo {
    background: #e6162d;
    color: #fff;
}

.share-btn.qq {
    background: #12b7f5;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 上一篇/下一篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f0f0f0;
    border-top: 1px solid #f0f0f0;
}

.nav-prev,
.nav-next {
    padding: 25px 30px;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background: #f8f9ff;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
    color: #4169E1;
}

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

/* 作者信息 */
.author-widget {
    text-align: center;
    padding-bottom: 25px;
}

.author-info {
    padding: 25px;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #4169E1;
    padding: 3px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.author-title {
    font-size: 13px;
    color: #4169E1;
    margin-bottom: 15px;
}

.author-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 热门文章 */
.hot-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.hot-list li {
    margin-bottom: 12px;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.hot-list a:hover .hot-title {
    color: #4169E1;
}

.hot-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-list li:nth-child(1) .hot-num {
    background: #ff4757;
    color: #fff;
}

.hot-list li:nth-child(2) .hot-num {
    background: #ffa502;
    color: #fff;
}

.hot-list li:nth-child(3) .hot-num {
    background: #2ed573;
    color: #fff;
}

.hot-title {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 相关推荐 */
.related-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.related-list li {
    margin-bottom: 15px;
}

.related-list li:last-child {
    margin-bottom: 0;
}

.related-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover .related-title {
    color: #4169E1;
}

.related-thumb {
    width: 90px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-title {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* 联系方式 */
.contact-list {
    padding: 20px 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #555;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-phone::before {
    content: "??";
}

.icon-qq::before {
    content: "??";
}

.icon-wechat::before {
    content: "??";
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .article-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    .article-header,
    .article-content,
    .article-tags,
    .article-share {
        padding-left: 35px;
        padding-right: 35px;
    }
    
    .article-title {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
    }
    
    .article-main {
        order: 1;
    }
    
    .article-cover {
        height: 300px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .article-page {
        padding: 20px 0 40px;
    }
    
    .article-header {
        padding: 25px 20px 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .article-cover {
        height: 220px;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-lead {
        font-size: 15px;
        padding: 18px 20px;
    }
    
    .article-tags,
    .article-share {
        padding: 20px;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-prev,
    .nav-next {
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-next {
        border-bottom: none;
    }
}
