/**
 * news.html — 行业动态页布局与视觉
 */
body.news-page {
  padding-top: 55px;
  background: #f4f6f8;
  color: #1d2129;
}

body.news-page #navbar nav > a,
body.news-page #navbar nav .dropbtn.nav-link {
  color: #1d2129;
  font-weight: 500;
}

body.news-page #navbar nav > a:hover,
body.news-page #navbar nav .dropbtn.nav-link:hover {
  color: #10b981;
}

/* Hero */
.news-hero {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #134e4a 100%);
  color: #fff;
  padding: 2rem 0 1.75rem;
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.15), transparent 40%);
  pointer-events: none;
}

/* 5 屏导读轮播 */
.news-hero-carousel {
  position: relative;
  min-height: 280px;
}

.news-hero-carousel__stage {
  position: relative;
  min-height: 280px;
}

.news-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s;
  pointer-events: none;
  padding: 1.25rem 1rem 0.5rem;
  background-size: cover;
  background-position: center;
  border-radius: 0.75rem;
  overflow: hidden;
}

.news-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 118, 110, 0.82) 42%, rgba(19, 78, 74, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.news-hero-slide > * {
  position: relative;
  z-index: 1;
}

.news-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.news-hero-slide[data-slide="0"] {
  background-image: url("../images/1/pexels-sora-shimazaki-5926382.jpg");
}

.news-hero-slide[data-slide="1"] {
  background-image: url("../images/1/pexels-anete-lusina-5240548.jpg");
}

.news-hero-slide[data-slide="2"] {
  background-image: url("../images/1/pexels-cottonbro-4705628.jpg");
}

.news-hero-slide[data-slide="3"] {
  background-image: url("../images/1/pexels-tima-miroshnichenko-6755089.jpg");
}

.news-hero-slide[data-slide="4"] {
  background-image: url("../images/1/pexels-alex-qian-1180283-2325884.jpg");
}

.news-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  color: #065f46;
}

.news-hero__cta--outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.news-hero__cta--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.news-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.news-hero-carousel__ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  position: relative;
  z-index: 3;
}

.news-hero-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.news-hero-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.news-hero-counter {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  min-width: 2.5rem;
  text-align: center;
}

.news-hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.news-hero-dot.is-active {
  width: 22px;
  background: #fff;
}

@media (max-width: 991px) {
  .news-hero-carousel,
  .news-hero-carousel__stage {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-hero-slide {
    transition: none;
  }
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .news-hero__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .news-hero__inner {
    padding: 0 2rem;
  }
}

.news-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 992px) {
  .news-hero__grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 2.5rem;
  }
}

.news-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 0.75rem;
}

.news-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.news-hero__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
}

.news-hero__subscribe {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #0f172a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-hero__subscribe-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-subscribe-row {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.news-subscribe-row img {
  width: 72px;
  height: 72px;
  border-radius: 0.5rem;
  border: 1px solid #d1fae5;
  object-fit: contain;
  flex-shrink: 0;
}

.news-subscribe-row__text {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.news-rss-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid #e2e8f0;
}

.news-rss-row code {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  padding: 0.45rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-rss-row button {
  flex-shrink: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.news-rss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.news-rss-links a {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #ecfdf5;
  color: #047857;
  text-decoration: none;
  border: 1px solid #a7f3d0;
}

.news-rss-links a:hover {
  background: #d1fae5;
}

/* Main content */
.news-body {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

@media (min-width: 768px) {
  .news-body {
    padding: 2rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .news-body {
    padding: 2rem 2rem 4rem;
  }
}

.news-toolbar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#news-stats {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.875rem;
  text-align: left;
}

#news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
}

.news-filter-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-filter-btn:hover {
  border-color: #10b981;
  color: #047857;
}

.news-filter-btn.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* Article grid */
#articles-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  #articles-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  #articles-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.35);
}

.news-card.is-featured {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.news-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.news-card__tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.625rem;
  flex: 1;
}

.news-card__title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a:hover {
  color: #10b981;
}

.news-card__desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-card__foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.news-card__compare {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

.news-card__compare:hover {
  color: #047857 !important;
}

.news-card__foot a {
  color: #10b981;
  font-weight: 600;
  text-decoration: none;
}

.news-card__foot a:hover {
  text-decoration: underline;
}

.news-load-more {
  text-align: center;
  margin-top: 2.5rem;
}

.news-load-more button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#load-more-btn {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

#load-more-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

#show-less-btn {
  background: #64748b;
  color: #fff;
  margin-left: 0.75rem;
}

/* 微信悬浮咨询 — 图标 + 点击放大二维码 */
.wx-float__btn {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(7, 193, 96, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-float__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(7, 193, 96, 0.5);
}

.wx-float__btn:active {
  transform: scale(0.94);
}

.wx-float__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wx-float__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.wx-float__panel {
  position: relative;
  width: min(320px, 100%);
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s ease;
}

.wx-float__overlay.is-open .wx-float__panel {
  transform: scale(1) translateY(0);
}

.wx-float__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-float__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.wx-float__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.wx-float__qr {
  width: min(220px, 72vw);
  height: auto;
  margin: 0 auto 14px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.wx-float__phone {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.wx-float__hint {
  margin: 4px 0 16px;
  font-size: 0.8125rem;
  color: #64748b;
}

.wx-float__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.wx-float__call:hover {
  color: #fff;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .wx-float__btn {
    top: 50%;
    bottom: auto;
    right: 20px;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 1.55rem;
  }

  .wx-float__btn:hover {
    transform: translateY(-50%) scale(1.06);
  }

  .wx-float__btn:active {
    transform: translateY(-50%) scale(0.94);
  }
}

@media (max-width: 767px) {
  .wx-float__overlay {
    align-items: flex-end;
    padding: 0;
  }

  .wx-float__panel {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .wx-float__qr {
    width: min(240px, 68vw);
  }

  /* 避免与底部「显示更多」按钮重叠 */
  .wx-float__btn {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
