﻿/* ============================================================
   新闻中心专属样式 (news.css)
   适用范围：新闻列表页、新闻详情页
   ============================================================ */

/* ---------- 1. 新闻列表页 ---------- */
.news-list-page { padding-bottom: max(1.18rem, var(--space)); overflow: hidden; }
.news-panel-swiper { margin-top: max(0.62rem, 35px); }
.news-panel-swiper .news-swiper .swiper-slide { position: relative; border-radius: 10px; overflow: hidden; }
.news-panel-swiper .news-swiper .swiper-slide:hover .pic img { transform: scale(1.05); }
.news-panel-swiper .news-swiper .swiper-slide:hover .slide-text .slide-title { color: var(--theme); }
.news-panel-swiper .news-swiper .pic img { display: block; width: 100%; height: auto; transition: var(--duration); }
.news-panel-swiper .news-swiper .pic::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(../images/news-list-liner.png) no-repeat left bottom / cover; mix-blend-mode: multiply; pointer-events: none; }
.news-panel-swiper .news-swiper .slide-text { position: absolute; left: max(0.3rem, 20px); bottom: max(0.3rem, 20px); z-index: 2; width: 86%; }
.news-panel-swiper .news-swiper .slide-text .time-line { display: flex; align-items: center; margin-bottom: max(0.21rem, 10px); }
.news-panel-swiper .news-swiper .slide-text .time-line .time-icon { width: 15px; margin-right: 6px; filter: brightness(0) invert(1); }
.news-panel-swiper .news-swiper .slide-text .time-line .time-text { font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font14); color: #ffffff; }
.news-panel-swiper .news-swiper .slide-text .tag-list { display: flex; align-items: center; flex-wrap: wrap; }
.news-panel-swiper .news-swiper .slide-text .tag-list .tag-item { font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font14); color: #ffffff; line-height: 1; padding: 4px 12px; border-radius: 12px; border: 1px solid #ccc; margin-right: 10px; margin-bottom: 10px; }
.news-panel-swiper .news-swiper .slide-text .tag-list .tag-item:last-child { margin-right: 0; }
.news-panel-swiper .news-swiper .slide-text .slide-title { font-weight: 400; font-size: var(--font26); color: #ffffff; line-height: 1.23076923; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; margin-bottom: max(0.15rem, 10px); transition: var(--duration); }
.news-panel-swiper .news-swiper .slide-text .slide-desc { font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font16); color: rgba(255, 255, 255, 0.5); line-height: 1.625; margin-bottom: max(0.14rem, 10px); width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; }
.news-panel-swiper .news-swiper .slide-text .slide-more { display: flex; align-items: center; justify-content: center; user-select: none; cursor: pointer; width: 130px; height: 32px; background: linear-gradient(90deg, #d71418, #e60012, #ff3131); border-radius: 16px; }
.news-panel-swiper .news-swiper .slide-text .slide-more:hover .more-text { margin-right: 6px; }
.news-panel-swiper .news-swiper .slide-text .slide-more .more-text { font-weight: 300; font-size: 12px; color: #fff; line-height: 1; margin-right: 11px; transition: var(--duration); }
.news-panel-swiper .news-swiper .slide-text .slide-more .more-icon { height: 10px; object-fit: contain; filter: brightness(0) invert(1); transition: var(--duration); }

.news-section { display: flex; justify-content: space-between; align-items: flex-start; margin-top: max(0.6rem, 30px); padding-bottom: max(0.6rem, 30px); border-bottom: 1px solid rgba(204, 204, 204, 0.5); }
.news-section .section-left { width: 52.08333333%; flex-shrink: 0; position: relative; z-index: 2; border-radius: 6px; overflow: hidden; }
.news-section .section-left:hover .pic img { transform: scale(1.05); }
.news-section .section-left:hover .text .text-title { color: var(--theme); }
.news-section .section-left .pic { display: block; width: 100%; position: relative; }
.news-section .section-left .pic::after { content: ""; display: block; padding-bottom: 72.875%; }
.news-section .section-left .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--duration, 0.45s); }
.news-section .section-left::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent); }
.news-section .section-left .text { position: absolute; left: max(0.3rem, 20px); bottom: max(0.3rem, 20px); right: max(20px, 0.43rem); z-index: 2; }
.news-section .section-left .text .time-line { display: flex; align-items: center; margin-bottom: max(0.2rem, 10px); }
.news-section .section-left .text .time-line .time-icon { filter: brightness(0) invert(1); margin-right: 6px; width: 15px; }
.news-section .section-left .text .time-line .time-text { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font14); color: #ffffff; }
.news-section .section-left .text .tag-list { display: flex; align-items: center; flex-wrap: wrap; }
.news-section .section-left .text .tag-list .tag-item { font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font14); color: #ffffff; line-height: 1; margin-right: 10px; margin-bottom: 10px; padding: 4px 11px; border: 1px solid #ccc; border-radius: 12px; }
.news-section .section-left .text .text-title { font-weight: 400; font-size: var(--font26); color: #ffffff; line-height: 1.23076923; margin-bottom: max(0.15rem, 10px); width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; transition: var(--duration); }
.news-section .section-left .text .text-desc { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font16); color: rgba(255, 255, 255, 0.5); line-height: 1.625; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; }
.news-section .section-right { width: 43.1640625%; flex-shrink: 0; }

/* 普通新闻列表 */
.common-news-list .item { display: flex; align-items: flex-start; padding-bottom: max(0.31rem, 20px); padding-top: max(0.3rem, 20px); border-bottom: 1px solid rgba(204, 204, 204, 0.5); }
.common-news-list .item:first-child { padding-top: 0; }
.common-news-list .item:last-child { padding-bottom: 0; border-bottom: 0; }
.common-news-list .item .pic { width: 234px; position: relative; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.common-news-list .item .pic::after { content: ""; display: block; padding-bottom: 61.96581197%; }
.common-news-list .item .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--duration, 0.45s); }
.common-news-list .item .text { margin-left: max(0.21rem, 15px); flex: 1; min-width: 0; }
.common-news-list .item .text .title { font-weight: 400; font-size: var(--font22); color: #333333; line-height: 1.45454545; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; transition: var(--duration); }
.common-news-list .item .text .time-line { display: flex; align-items: center; margin-top: 5px; }
.common-news-list .item .text .time-line .time-icon { width: 15px; }
.common-news-list .item .text .time-line .time-text { margin-left: 6px; font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font14); color: #999999; line-height: 1; }
.common-news-list .item .text .tag-list { display: flex; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.common-news-list .item .text .tag-list .tag-item { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font14); color: #666666; line-height: 1; white-space: nowrap; padding: 4px 11px; border: 1px solid #ccc; border-radius: 12px; margin-right: 10px; margin-bottom: 12px; }
.common-news-list .item .text .desc { font-family: SourceHanSansCN-Light, sans-serif; font-size: var(--font14); color: #666666; line-height: 1.57142857; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; }
.common-news-list .item:hover .pic img { transform: scale(1.05); }
.common-news-list .item:hover .text .title { color: var(--theme); }

.news-list-panel { padding-top: max(0.6rem, 30px); }
.news-list-panel .common-news-list { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgba(204, 204, 204, 0.5); margin-bottom: max(0.6rem, 30px); }
.news-list-panel .common-news-list .item { width: 48.6328125%; border-bottom: none; padding-top: 0; padding-bottom: 0; margin-bottom: max(0.6rem, 30px); }
.news-list-panel .common-news-list .item .text { margin-left: max(0.22rem, 15px); }
.news-list-panel .common-news-list .item .text .title { font-size: var(--font18); line-height: 1.4; }
.news-list-panel .common-news-list .item .text .time-line { margin-top: 10px; }


/* ---------- 2. 新闻详情页 ---------- */
.news-detail-page { margin-top: var(--header-height); background: url(../images/news-detail-bg.png) no-repeat right top / contain; background-color: #fff; padding-bottom: max(1.19rem, var(--space)); }
.news-detail-page .detail-content { padding-top: max(0.64rem, 30px); }
.news-detail-page .detail-content .article-title { font-weight: 500; font-size: var(--font46); color: #333333; line-height: 1.2173913; text-align: center; margin-bottom: max(20px, 0.26rem); overflow-wrap: break-word; }
.news-detail-page .detail-content .tag-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 20px; }
.news-detail-page .detail-content .tag-list .tag-item { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font16); color: #666666; line-height: 1; padding: 10px max(0.42rem, 10px); border: 1px solid #cccccc; border-radius: 19px; margin-right: max(0.2rem, 10px); margin-bottom: 10px; }
.news-detail-page .detail-content .tag-list .tag-item:last-child { margin-right: 0; }
.news-detail-page .detail-content .article-info { display: flex; align-items: center; justify-content: center; border-top: 1px solid rgba(204, 204, 204, 0.5); border-bottom: 1px solid rgba(204, 204, 204, 0.5); padding-top: max(15px, 0.26rem); padding-bottom: max(15px, 0.26rem); margin-bottom: max(0.6rem, 30px); }
.news-detail-page .detail-content .article-info .info-item { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font16); color: #999999; padding-left: max(0.3rem, 10px); padding-right: max(0.3rem, 10px); border-right: 1px solid rgba(204, 204, 204, 0.5); }
.news-detail-page .detail-content .article-info .info-item:first-child { padding-left: 0; }
.news-detail-page .detail-content .article-info .info-item:last-child { padding-right: 0; border-right: none; }
.news-detail-page .article-content { padding-bottom: 20px; }
.news-detail-page .article-content p, .news-detail-page .article-content span, .news-detail-page .article-content a, .news-detail-page .article-content div, .news-detail-page .article-content * { max-width: 100%; overflow-wrap: break-word; }
.news-detail-page .article-content img, .news-detail-page .article-content video { vertical-align: top; max-width: 100%; height: auto; }
.news-detail-page .article-content .table-wrap { max-width: 100%; overflow-x: auto; }
.news-detail-page .current-article { display: flex; align-items: center; padding-left: max(0.32rem, 15px); padding-right: max(0.31rem, 15px); padding-top: max(0.41rem, 12px); padding-bottom: 12px; background-image: url(../images/detail-source-liner.png); background-repeat: no-repeat; background-size: 100% auto; background-position: center top; margin-bottom: max(0.43rem, 20px); }
.news-detail-page .current-article .left { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font16); color: #666666; }
.news-detail-page .current-article .right { display: flex; align-items: center; margin-left: auto; }
.news-detail-page .current-article .right .current-point { display: flex; align-items: center; }
.news-detail-page .current-article .right .current-point::after { content: ""; width: 1px; height: 14px; background-color: #ccc; margin-left: max(0.3rem, 10px); }
.news-detail-page .current-article .right .current-point span { font-weight: 400; font-size: var(--font16); color: #666666; margin-left: 10px; }
.news-detail-page .current-article .right .current-share { display: flex; align-items: center; padding-left: max(0.3rem, 10px); }
.news-detail-page .current-article .right .current-share .share-text { font-weight: 400; font-size: var(--font16); color: #666666; margin-right: max(0.21rem, 10px); }
.news-detail-page .current-article .right .current-share .icon-list { display: flex; align-items: center; }
.news-detail-page .current-article .right .current-share .icon-list .icon-item { margin-right: max(0.2rem, 10px); }
.news-detail-page .current-article .right .current-share .icon-list .icon-item:last-child { margin-right: 0; }
.news-detail-page .current-article .right .current-share .icon-list .icon-item:hover .default { display: none; }
.news-detail-page .current-article .right .current-share .icon-list .icon-item:hover .hover { display: block; }
.news-detail-page .current-article .right .current-share .icon-list .icon-item .default { display: block; }
.news-detail-page .current-article .right .current-share .icon-list .icon-item .hover { display: none; }
.news-detail-page .recommend-article { padding-top: max(0.22rem, 15px); border-top: 1px solid rgba(204, 204, 204, 0.5); padding-bottom: max(15px, 1.1rem); border-bottom: 1px solid rgba(204, 204, 204, 0.5); margin-bottom: max(0.87rem, 30px); }
.news-detail-page .recommend-article .recommend-link { display: block; font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font16); color: #999999; transition: var(--duration); margin-bottom: max(0.16rem, 10px); max-width: 86%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; }
.news-detail-page .recommend-article .recommend-link:last-child { margin-bottom: 0; }
.news-detail-page .recommend-article .recommend-link:hover { color: var(--theme); }

/* 共用新闻推荐区域 */
.common-recommend-news-area .hot-news-title { font-weight: 500; font-size: var(--font36); color: #333333; line-height: 1; margin-bottom: max(0.6rem, 30px); }
.common-recommend-news-area .hot-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: max(0.3rem, 15px); }
.common-recommend-news-area .hot-list .hot-item { overflow: hidden; }
.common-recommend-news-area .hot-list .hot-item .pic { display: block; width: 100%; border-radius: 6px; overflow: hidden; position: relative; }
.common-recommend-news-area .hot-list .hot-item .pic::after { content: ""; display: block; padding-bottom: 62.06896552%; }
.common-recommend-news-area .hot-list .hot-item .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--duration, 0.45s); }
.common-recommend-news-area .hot-list .hot-item .text .title { font-size: var(--font22); color: #333333; line-height: 1.45454545; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; margin-top: max(0.25rem, 15px); transition: var(--duration); }
.common-recommend-news-area .hot-list .hot-item .text .time-line { margin-top: max(0.2rem, 10px); display: flex; align-items: center; }
.common-recommend-news-area .hot-list .hot-item .text .time-line .time-icon { width: 15px; margin-right: 6px; }
.common-recommend-news-area .hot-list .hot-item .text .time-line .time-text { line-height: 1; font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font14); color: #999999; }
.common-recommend-news-area .hot-list .hot-item .text .desc { font-family: SourceHanSansCN-Light, sans-serif; font-weight: 300; font-size: var(--font14); color: #999999; line-height: 1.85714286; margin-top: max(0.25rem, 15px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; overflow-wrap: break-word; height: calc((26 / 14) * var(--font14) * 2); }
.common-recommend-news-area .hot-list .hot-item .text .more-btn { display: flex; align-items: center; justify-content: center; user-select: none; cursor: pointer; width: 130px; height: 32px; border-radius: 16px; border: 1px solid rgba(204, 204, 204, 0.5); position: relative; z-index: 2; overflow: hidden; margin-top: max(0.23rem, 15px); }
.common-recommend-news-area .hot-list .hot-item .text .more-btn::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 0; height: 400%; background-color: var(--theme); z-index: -1; pointer-events: none; transition: 0.5s ease; }
.common-recommend-news-area .hot-list .hot-item .text .more-btn .more-text { font-weight: 300; font-size: 12px; color: #666666; line-height: 1; transition: var(--duration); }
.common-recommend-news-area .hot-list .hot-item .text .more-btn .more-icon { height: 10px; margin-left: 11px; transition: var(--duration); }
.common-recommend-news-area .hot-list .hot-item .text .more-btn:hover::after { width: 150%; }
.common-recommend-news-area .hot-list .hot-item .text .more-btn:hover .more-text { color: #fff; }
.common-recommend-news-area .hot-list .hot-item .text .more-btn:hover .more-icon { filter: brightness(0) invert(1); }
.common-recommend-news-area .hot-list .hot-item:hover .pic img { transform: scale(1.05); }
.common-recommend-news-area .hot-list .hot-item:hover .text .title { color: var(--theme); }

/* ---------- 3. 新闻详情页 - 文章正文与目录 (TOC) 样式 ---------- */
/* H1 SEO 样式复原 */
h1.article-title { font-size: 28px; line-height: 1.4; color: #333; margin-bottom: 20px; font-weight: bold; }

/* TOC 容器样式 */
.article-toc { background-color: #F7F7F7; border-left: 4px solid #2E3192; padding: 20px 25px; margin: 30px 0; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.toc-header { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; display: flex; align-items: baseline; }
.toc-title { font-size: 18px; font-weight: bold; color: #2E3192; margin-right: 10px; }
.toc-subtitle { font-size: 12px; color: #808080; letter-spacing: 1px; font-family: Arial, sans-serif; }
#toc-list { padding: 0; margin: 0; list-style: none; }
#toc-list li { margin-bottom: 8px; line-height: 1.6; }

/* 一级目录 */
.toc-h2 { font-weight: 600; }
.toc-h2 a { display: flex; align-items: center; }
.toc-h2 a::before { content: ""; display: inline-block; width: 6px; height: 12px; background-color: #2E3192; margin-right: 8px; border-radius: 1px; }
.toc-h2 a:hover::before { background-color: #E60012; }

/* 二级目录 */
.toc-h3 { padding-left: 20px; font-size: 0.95em; position: relative; }
.toc-h3::before { content: ""; position: absolute; left: 5px; top: 10px; width: 4px; height: 4px; background-color: #808080; border-radius: 50%; }

/* 链接与悬停交互 */
#toc-list a { text-decoration: none; color: #333333; transition: all 0.3s ease; display: inline-block; }
#toc-list a:hover { color: #E60012; transform: translateX(5px); }

/* ============================================================
   移动端响应式 (新闻中心)
   ============================================================ */

/* ---------- 992px 以下 ---------- */
@media (max-width: 992px) {
  .news-section { flex-wrap: wrap; }
  .news-section .section-left { width: 100%; margin-bottom: 30px; }
  .news-section .section-right { width: 100%; }
  .news-list-panel .common-news-list { flex-wrap: wrap; }
  .news-list-panel .common-news-list .item { width: 100%; }
  .news-panel-swiper .news-swiper .pic img { min-height: 300px; object-fit: cover; object-position: center; }
}

/* ---------- 768px 以下 ---------- */
@media (max-width: 768px) {
  .news-section .section-left .pic::after { padding-bottom: 60%; }
  
  .news-detail-page .current-article { flex-wrap: wrap; margin-bottom: 0; }
  .news-detail-page .current-article .left { width: 100%; margin-bottom: 10px; }
  .news-detail-page .current-article .right { width: 100%; margin-left: 0; }
  .news-detail-page .recommend-article .recommend-link { max-width: 100%; }
  .news-detail-page .recommend-article { padding-bottom: 10px; }
  
  /* 移动端隐藏 TOC 目录 */
  .article-toc { display: none !important; }
}

/* ---------- 576px 以下 ---------- */
@media (max-width: 576px) {
  .news-panel-swiper .news-swiper .slide-text .slide-title,
  .news-section .section-left .text .text-title { font-size: 16px; }
  .news-panel-swiper .news-swiper .slide-text .tag-list,
  .news-section .section-left .text .tag-list { display: none; }
  .news-panel-swiper .news-swiper .slide-text .slide-more { display: none; }
  
  .common-news-list .item { align-items: stretch; }
  .common-news-list .item .pic { width: 110px; }
  .common-news-list .item .pic img { position: initial; }
  .common-news-list .item .pic::after { display: none; }
  .common-news-list .item .text .time-line { display: none; }
  .common-news-list .item .text .tag-list { display: none; }
  .common-news-list .item .text { margin-left: 10px; align-self: center; }
  
  .news-detail-page .detail-content .article-title { font-size: 22px; overflow-wrap: break-word; }
  .news-detail-page .detail-content .tag-list { display: none; }
  .news-detail-page .detail-content .article-info { flex-wrap: wrap; align-content: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .news-detail-page .detail-content .article-info .info-item { width: 50%; text-align: center; border-right: none; font-size: 12px; overflow-wrap: break-word; flex-shrink: 0; margin-bottom: 6px; }
  
  .news-detail-page .current-article .right { flex-wrap: wrap; }
  .news-detail-page .current-article .right .current-point { width: 100%; margin-bottom: 10px; }
  .news-detail-page .current-article .right .current-point::after { display: none; }
  .news-detail-page .current-article .right .current-share { margin-left: auto; }
  
  .common-recommend-news-area .hot-news-title { font-size: 20px; line-height: 1; }
  .common-recommend-news-area .hot-list { grid-template-columns: repeat(1, 1fr); row-gap: 20px; }
  .common-recommend-news-area .hot-list .hot-item .text .time-line { display: none; }
  .common-recommend-news-area .hot-list .hot-item .text .more-btn { display: none; }
  .common-recommend-news-area .hot-list .hot-item .text .desc { margin-top: 10px; }
}
