/* 新闻详情图文模板综合样式
   用法：下面所有模板都沿用新闻详情页已有的 .block-* 结构。 */

/* CMS 图文模板轻量外壳：只提供左右留白和正文宽度，不提供上下间距。 */
.news-template-block {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.news-template-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 通用文字与标题 */
.block-text {
  margin-bottom: 0;
}

.block-title {
  color: #051243;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  margin: 0 0 8px;
  text-align: center;
}

.block-desc + .block-title {
  margin-top: 0;
}

.block-text-title {
  background: #0068B6;
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  margin-bottom: 0;
}

.block-desc {
  margin: 0;
}

.block-desc p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #4A4D56;
  margin-bottom: 24px;
}

.block-desc p:last-child {
  margin-bottom: 0;
}

/* 列表内容 */
.block-list {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style-type: disc;
}

.block-list li {
  color: #4A4D56;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 8px;
}

.block-list li:last-child {
  margin-bottom: 0;
}

.block-term-label {
  font-weight: bold;
}

.block-desc p:has(> span.block-term-label:first-child) {
  display: list-item;
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 20px;
  margin-bottom: 16px;
  padding-left: 0;
}

.block-desc p:has(> span.block-term-label:first-child)::marker {
  color: #4A4D56;
}

/* 附录、补充说明 */
.block-notes {
  background: #F2F7FB;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.news-template-block .block-appendix-note .block-notes-title,
.news-template-block .block-appendix-note .block-file-list {
  margin-bottom: 8px;
}

.block-notes-title {
  color: #051243;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-notes-title::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #0068B6;
}

.block-notes-content {
  color: #4A4D56;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.block-notes-content p {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 8px;
}

.block-notes-list {
  padding-left: 20px;
  list-style-type: disc;
}

.block-notes-list li {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 8px;
}

.block-notes-list li:last-child {
  margin-bottom: 0;
}

.block-notes-content a {
  color: #0032D6;
  text-decoration: underline;
}

.block-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0032D6;
  text-decoration: underline;
  word-break: break-all;
}

.block-file-link::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #0068B6;
}

.block-file-name {
  min-width: 0;
}

/* 富文本与表格 */
.block-richtext {
  margin-bottom: 0;
  width: 100%;
  overflow-x: auto;
}

.block-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.block-richtext table td,
.block-richtext table th {
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  color: #051243;
}

.block-richtext table td p,
.block-richtext table th p {
  margin-bottom: 0;
  font-size: 14px;
}

.table-vertical,
.table-horizontal {
  border: 5px solid #0068B6;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.table-vertical td,
.table-horizontal th,
.table-horizontal td {
  border: 1px solid #0068B6 !important;
  color: #051243;
}

.table-vertical td {
  padding: 8px 16px;
  text-align: left;
}

.table-vertical td.label {
  background-color: #F2F7FB;
  white-space: nowrap;
  width: 1%;
}

.table-horizontal th,
.table-horizontal td {
  padding: 8px 16px;
}

.table-horizontal th {
  background-color: #F2F7FB;
}

/* 图片通用 */
.block-pic,
.block-pic-wrap img {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

/* 上图下文 */
.block-pic-top {
  margin-bottom: 0;
}

.block-pic-top .block-pic-wrap {
  text-align: center;
}

.block-pic-top .block-pic,
.block-pic-top .block-pic-wrap img {
  max-width: 720px;
  margin: 0 auto;
}

/* 上文下图 */
.block-pic-bottom {
  margin-bottom: 0;
}

.block-pic-bottom .block-pic-wrap {
  text-align: center;
}

.block-pic-bottom .block-pic,
.block-pic-bottom .block-pic-wrap img {
  max-width: 720px;
  margin: 0 auto;
}

/* 左右图文通用容器 */
.block-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* 左图右文 */
.block-pic-left {
  margin-bottom: 0;
}

.block-pic-left .block-pic-wrap {
  flex-shrink: 0;
  width: 40%;
  max-width: 320px;
}

.block-pic-left .block-desc {
  flex: 1;
  min-width: 0;
}

/* 左文右图 */
.block-pic-right {
  margin-bottom: 0;
}

.news-template-block .block-pic-left,
.news-template-block .block-pic-right {
  margin-bottom: 16px !important;
}

.block-pic-right .block-pic-wrap {
  flex-shrink: 0;
  width: 40%;
  max-width: 320px;
  order: 2;
}

.block-pic-right .block-desc {
  flex: 1;
  min-width: 0;
  order: 1;
}

.news-template-block .block-inner {
  align-items: center;
}

.news-template-block:not(.news-template-page) .block-desc {
  margin: 0 !important;
}

/* 图片轮播 */
.block-swiper {
  margin-bottom: 0;
  width: 100%;
}

.swiper-container-wrap {
  position: relative;
  max-width: 864px;
  margin: 0 auto;
  padding: 0 72px;
}

.detail-swiper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #FFF;
  overflow: hidden;
  border-radius: 0;
}

.detail-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.swiper-container-wrap .detail-prev,
.swiper-container-wrap .detail-next {
  width: 48px !important;
  height: 48px !important;
  margin-top: -24px;
  transition: all 0.3s;
  object-fit: contain;
}

.detail-prev::after,
.detail-next::after {
  display: none;
}

.detail-prev {
  left: 0;
}

.detail-next {
  right: 0;
}

.detail-prev:hover,
.detail-next:hover {
  opacity: 0.7;
}

.detail-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.detail-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 8px;
  border-radius: 0;
  background: #F2F7FB;
  opacity: 1;
  margin: 0 !important;
  transition: all 0.3s;
}

.detail-pagination .swiper-pagination-bullet-active {
  width: 80px;
  background: #0068B6;
}

/* 模板10：新闻详情整页模板外壳样式（面包屑 + 文章头 + 工具类） */
.news-template-page {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  color: #051243;
}

.news-template-page .detail-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px 60px;
  box-sizing: border-box;
}

.news-template-page .d-flex {
  display: flex;
}

.news-template-page .align-center {
  align-items: center;
}

.news-template-page .gap-8 {
  gap: 8px;
}

.news-template-page .text-decoration-none {
  text-decoration: none;
}

.news-template-page .section-max {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  box-sizing: border-box;
}

.news-template-page .pt-60 {
  padding-top: 60px;
}

.news-template-page .breadcrumb {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 24px;
  color: #051243;
}

.news-template-page .breadcrumb a {
  color: #051243;
  opacity: 0.4;
}

.news-template-page .breadcrumb img {
  width: 14px;
  height: auto;
  display: block;
}

.news-template-page .article-header {
  width: 100%;
  margin-bottom: 40px;
}

.news-template-page .article-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.news-template-page .article-date,
.news-template-page .article-company {
  color: #4A4D56;
  font-size: 16px;
  line-height: 24px;
}

.news-template-page .article-title {
  margin: 24px 0 0;
  color: #051243;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

.news-template-page .article-subtitle {
  margin: 12px 0 0;
  color: #051243;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

/* 整页模板内的块间距恢复为详情页标准值（内容块模板里统一为 0） */
.news-template-page .block-pic-top,
.news-template-page .block-richtext {
  margin-bottom: 40px;
}

.news-template-page .block-text,
.news-template-page .block-notes {
  margin-bottom: 24px;
}

.news-template-page .block-desc {
  margin-top: 24px;
}

.news-template-page .block-title {
  font-weight: 700;
}

.news-template-page .block-text-title {
  margin-bottom: 24px;
  font-weight: 700;
}

.news-template-page .table-vertical td {
  line-height: 24px;
}

.news-template-page .table-vertical td p {
  margin: 0;
  line-height: 24px;
}

@media screen and (max-width: 768px) {
  .block-title {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 16px;
  }

  .block-desc + .block-title {
    margin-top: 0;
  }

  .block-text-title {
    font-size: 16px;
    padding: 6px 10px;
    margin-bottom: 0;
  }

  .block-desc p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 16px;
  }

  .block-list li,
  .block-term-label {
    font-size: 14px;
    line-height: 24px;
  }

  .block-pic-top,
  .block-pic-bottom,
  .block-pic-left,
  .block-pic-right,
  .block-text,
  .block-notes,
  .block-richtext,
  .block-swiper {
    margin-bottom: 0;
  }

  .block-inner {
    flex-direction: column;
    gap: 16px;
  }

  .block-pic-left .block-pic-wrap,
  .block-pic-right .block-pic-wrap {
    width: 100%;
    max-width: 100%;
    order: unset;
  }

  .block-notes {
    padding: 12px 16px;
  }

  .block-notes-title,
  .block-notes-content p,
  .block-notes-list li {
    font-size: 14px;
    line-height: 24px;
  }

  .block-richtext table td,
  .block-richtext table th {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 20px;
  }

  .block-richtext table td p,
  .block-richtext table th p {
    font-size: 12px;
  }

  .swiper-container-wrap {
    padding: 0;
  }

  .swiper-container-wrap .detail-prev,
  .swiper-container-wrap .detail-next {
    width: 32px !important;
    height: 32px !important;
    margin-top: -16px;
  }

  .detail-pagination {
    margin-top: 16px;
  }

  .detail-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 4px;
  }

  .detail-pagination .swiper-pagination-bullet-active {
    width: 40px;
  }

  .news-template-page .detail-main {
    padding-left: 8px;
    padding-right: 8px;
  }

  .news-template-page .article-header {
    margin-bottom: 32px;
  }

  .news-template-page .article-title {
    font-size: 20px;
    line-height: 28px;
  }

  .news-template-page .article-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .news-template-page .block-pic-top,
  .news-template-page .block-richtext,
  .news-template-page .block-text,
  .news-template-page .block-notes {
    margin-bottom: 12px;
  }

  .news-template-page .block-desc {
    margin-top: 16px;
  }

  .news-template-page .block-text-title {
    margin-bottom: 16px;
  }

  .news-template-page .table-vertical td,
  .news-template-page .table-vertical td p {
    line-height: 20px;
  }
}
