/* ============================================================
 * 新闻资讯模块样式（news.html 列表页 / news_detail.html 详情页）
 * 主色沿用站点橙色 #ff5b00，圆角与阴影与现有卡片风格保持一致
 * ============================================================ */

.news-page {
  padding: 50px 0 70px;
  box-sizing: border-box;
}

/* ---------- 页面头部 ---------- */
.news-hero {
  text-align: center;
  margin-bottom: 34px;
}

.news-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.3;
}

.news-hero p {
  color: #888;
  font-size: 15px;
  margin: 0;
}

.news-hero .news-hero-line {
  width: 60px;
  height: 4px;
  background: #ff5b00;
  border-radius: 2px;
  margin: 18px auto 0;
}

/* ---------- 页面标题横幅（与 service_support.html 保持一致） ---------- */
.bgc_service {
  background-color: #ff5300;
  color: #fff;
}

.service_box {
  display: flex;
  justify-content: space-between;
}

/* 横幅图片限宽，避免大图在桌面端撑破布局产生横向溢出 */
.service_box img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text_contet {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 768px) {
  .service_box {
    display: block;
    position: relative;
  }

  .service_box img {
    width: 100%;
  }

  .text_contet {
    position: absolute;
    top: 27%;
  }
}

/* ---------- 筛选 / 搜索栏 ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: Left;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 34px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}

.news-filter input,
.news-filter select {
  height: 42px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #444;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}

.news-filter input:focus,
.news-filter select:focus {
  border-color: #ff5b00;
}

.news-search {
  flex: 1 1 50x;
  min-width: 200px;
  max-width: 380px;
}

.news-filter select {
  min-width: 130px;
  cursor: pointer;
}

.news-btn {
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: #ff5b00;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}

.news-btn:hover {
  background: #e04f00;
}

.news-btn.news-btn-reset {
  background: #f2f3f5;
  color: #666;
}

.news-btn.news-btn-reset:hover {
  background: #e6e8eb;
}

/* ---------- 结果统计 ---------- */
.news-result-tip {
  color: #999;
  font-size: 14px;
  margin: 0 0 18px;
}

/* ---------- 新闻卡片网格 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

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

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

.news-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.news-tag {
  background: #fff3ec;
  color: #ff5b00;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.news-date {
  color: #aaa;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin: 0 0 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-card:hover .news-card-title {
  color: #ff5b00;
}

.news-card-summary {
  color: #777;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 新闻列表文字左对齐（覆盖全局 a 的默认 text-align:center） */
a.news-card {
  text-align: left;
}

.news-card-more {
  margin-top: auto;
  color: #ff5b00;
  font-size: 14px;
  font-weight: 600;
}

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

.news-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e3e3e3;
  background: #fff;
  border-radius: 10px;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

.news-page-btn:hover:not(:disabled) {
  border-color: #ff5b00;
  color: #ff5b00;
}

.news-page-btn.active {
  background: #ff5b00;
  border-color: #ff5b00;
  color: #fff;
}

.news-page-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 分页省略号 */
.news-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #999;
  font-size: 14px;
  user-select: none;
}

/* ---------- 空状态 ---------- */
.news-empty {
  text-align: center;
  padding: 70px 20px;
  color: #aaa;
  font-size: 15px;
}

.news-empty-icon {
  font-size: 46px;
  display: block;
  margin-bottom: 14px;
  color: #ddd;
}

/* ---------- 详情页 ---------- */
.news-detail {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  box-sizing: border-box;
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff5b00;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 22px;
}

.news-back:hover {
  text-decoration: underline;
}

.news-detail-title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #aaa;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.news-detail-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 26px 0;
  display: block;
}

.news-detail-content p {
  font-size: 16px;
  line-height: 1.95;
  color: #444;
  margin: 0 0 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 详情页内嵌图片：防止大图溢出/被裁剪，自适应容器宽度 */
.news-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 12px;
}

.news-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid #f0f0f0;
}

.news-detail-nav a {
  max-width: 48%;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
}

.news-detail-nav a:hover {
  color: #ff5b00;
}

.news-detail-nav .nav-label {
  display: block;
  color: #bbb;
  font-size: 12px;
  margin-bottom: 4px;
}

/* ============================================================
 * 响应式适配
 * ============================================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .news-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .news-page {
    padding: 20px 0 50px;
  }

  .news-hero h1 {
    font-size: 27px;
  }

  .news-hero p {
    font-size: 13px;
  }

  .news-filter {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .news-search {
    max-width: 100%;
  }

  .news-filter select,
  .news-btn {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-card-title {
    font-size: 17px;
  }

  .news-detail {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .news-detail-title {
    font-size: 23px;
  }

  .news-detail-content p {
    font-size: 15px;
  }

  .news-detail-nav {
    flex-direction: column;
  }

  .news-detail-nav a {
    max-width: 100%;
  }
}
