@charset "utf-8";
/* ==========================================================================
   HONZ V4.0 — 新闻中心列表与详情页样式 (news_hj.css)
   现代数字能源 · 资讯卡片 + 沉浸式阅读排版
   ========================================================================== */

/* 1. 内页 Banner 小动画：已统一到 ty_banner.css（2026-11-10 重新设计） */

/* 2. 新闻中心主体容器 */
.news_zb_box {
  width: 100%;
  background-color: #f4f7fb;
  padding: 48px 24px 96px;
}

.news_zb_box_con {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.news_section {
  display: block;
  width: 100%;
}

.news_container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 3. 头部与分类切换标签 (.news_header) */
.news_header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  gap: 20px;
}

.news_title-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news_subhead {
  font-size: 0.9375rem;
  color: #64748b;
}

.news_category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news_tab-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  padding: 10px 22px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  text-decoration: none;
}

.news_tab-item:hover {
  color: #0454dc;
  border-color: rgba(4, 84, 220, 0.35);
  background: #f0f6ff;
}

.news_tab-item_active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0454dc 0%, #0ea5e9 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(4, 84, 220, 0.24);
}

/* 4. 顶部 3 列焦点新闻网格 (.news_hot-grid) */
.news_hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news_card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news_card:hover {
  transform: translateY(-6px);
  border-color: rgba(4, 84, 220, 0.35);
  box-shadow: 0 20px 36px -12px rgba(4, 84, 220, 0.14);
}

.news_card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #07142b 0%, #0d2856 100%);
  overflow: hidden;
}

/* 移除旧版闪电 Emoji 占位符 */
.news_card-media::after {
  display: none !important;
  content: none !important;
}

.news_card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* 针对黑白扫描公文图片（202830027005957.png）优化展示，避免刺眼突兀 */
.news_card-img[src*="202830027005957"] {
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(135deg, #091936 0%, #102a56 100%);
  filter: contrast(1.05) brightness(0.96);
}

.news_card:hover .news_card-img {
  transform: scale(1.04);
}

.news_card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news_card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(4, 84, 220, 0.08);
  color: #0454dc;
  margin-bottom: 14px;
  border: 1px solid rgba(4, 84, 220, 0.16);
}

.news_card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.news_card:hover .news_card-title {
  color: #0454dc;
}

.news_card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news_card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
  margin-top: auto;
}

.news_card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.news_card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f6ff;
  color: #0454dc;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  transition: all 0.25s ease;
}

.news_card:hover .news_card-arrow {
  background: #0454dc;
  color: #ffffff;
}

/* 5. 最新资讯列表区 (.news_list-section) */
.news_list-section {
  width: 100%;
}

.news_list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.news_more-link {
  display: none;
}

.news_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news_list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.news_list-item:hover {
  border-color: rgba(4, 84, 220, 0.35);
  box-shadow: 0 12px 24px -8px rgba(4, 84, 220, 0.1);
  transform: translateX(4px);
}

.news_item-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.news_item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.news_list-item:hover .news_item-title {
  color: #0454dc;
}

.news_item-desc_p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_item-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.news_item-tag {
  background: #f0f6ff;
  color: #0454dc;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.news_item-date {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0454dc;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 6. 新闻详情页 (.news_qx_detail_wrap) */
.news_qx_detail_wrap {
  width: 100%;
}

.news_qx_content_row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.news_qx_main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  min-width: 0;
}

.news_qx_title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 16px;
}

.news_qx_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.news_qx_meta_item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news_qx_meta_icon {
  color: #0454dc;
}

.news_qx_featured_img_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #0f172a;
}

.news_qx_featured_img_wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.news_qx_img_loaded .news_qx_img_fallback {
  display: none;
}

.news_qx_img_fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.9375rem;
  z-index: 0;
}

.news_qx_body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 36px;
}

.news_qx_body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.news_qx_body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #0454dc;
  text-indent: 0;
}

.news_qx_tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.news_qx_tags_label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.news_qx_tag {
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0454dc;
  background: #f0f6ff;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news_qx_tag:hover {
  background: #0454dc;
  color: #ffffff;
}

.news_qx_share_row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.news_qx_share_label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.news_qx_share_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news_qx_share_btn:hover {
  background: #0454dc;
  color: #ffffff;
}

.news_qx_prev_next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.news_qx_prev_next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 0;
}

.news_qx_prev_next a:hover {
  border-color: #0454dc;
  background: #f0f6ff;
  color: #0454dc;
}

.news_qx_pn_text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧相关推荐栏 */
.news_qx_sidebar {
  position: sticky;
  top: 104px;
}

.news_qx_sidebar_inner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.news_qx_sidebar_title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #0454dc;
}

.news_qx_related_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news_qx_related_item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.news_qx_related_item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news_qx_related_thumb {
  flex-shrink: 0;
  width: 92px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

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

.news_qx_related_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news_qx_related_title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_qx_related_item:hover .news_qx_related_title {
  color: #0454dc;
}

.news_qx_related_date {
  font-size: 0.75rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.news_qx_sidebar_more {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0454dc;
  border: 1px solid rgba(4, 84, 220, 0.3);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news_qx_sidebar_more:hover {
  background: #0454dc;
  color: #ffffff;
}

/* 7. 响应式适配 */
@media (max-width: 1024px) {
  .news_hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news_qx_content_row {
    grid-template-columns: 1fr;
  }
  .news_qx_sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .news_zb_box {
    padding: 28px 16px 64px;
  }
  /* 手机端分类标签固定每行 3 个（flex 自动换行时按钮按文字宽度排，窄屏一行只放得下 2 个） */
  .news_category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .news_tab-item {
    padding: 10px 4px;
    text-align: center;
    white-space: nowrap;
  }
  .news_hot-grid,
  .news_qx_prev_next {
    grid-template-columns: 1fr;
  }
  .news_list-item {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  .news_item-title {
    white-space: normal;
  }
  .news_item-date {
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 0.8125rem;
  }
  .news_qx_main {
    padding: 24px 16px;
  }
}
