/* =========================================================
   index2 专属样式 — Swiper 轮播 + 左右新闻
   ========================================================= */

.section--adv {
  background: #eef3f9;
  padding: 0 0 80px !important;
  position: relative;
}

/* ---- Swiper 容器 ---- */
.adv-hero.swiper {
  position: relative;
  width: 65%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

.swiper-slide.adv-hero-slide {
  height: 460px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.swiper-slide.adv-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.swiper-slide.adv-hero-slide:hover img {
  transform: scale(1.05);
}

/* ---- 底部渐变 ---- */
.adv-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,30,65,.88) 0%, rgba(8,30,65,.45) 30%, transparent 55%);
  pointer-events: none;
}

.adv-hero-slide .adv-hero-content {
  position: absolute; left: 0; right: 0; bottom: 48px;
  z-index: 2; text-align: center; color: #fff; padding: 0 20px;
}
.adv-hero-slide .adv-hero-content h3 {
  font-size: 32px; font-weight: 700; margin: 0 0 6px;
  font-family: var(--font-title);
}
.adv-hero-slide .adv-hero-content p {
  font-size: 16px; color: rgba(255,255,255,.9);
  margin: 0 auto 14px; max-width: 600px; line-height: 1.5;
}

/* ---- 纯文字详情按钮 ---- */
.adv-btn-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.adv-btn-link:hover { opacity: .75; }
.adv-btn-link .ico { width: 16px; height: 16px; }

/* ---- 箭头 ---- */
.adv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  border: none; cursor: pointer;
  opacity: 0; transition: opacity .25s, transform .2s;
}
.section--adv:hover .adv-arrow { opacity: 1; }
.adv-arrow:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.adv-arrow.prev { left: 16px; }
.adv-arrow.next { right: 16px; }
.adv-arrow svg { width: 24px; height: 24px; }

/* ---- 非活跃 80% 透明度 ---- */
.swiper-slide:not(.swiper-slide-active) { opacity: .8; }

/* ---- 圆点 ---- */
.swiper-pagination.adv-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 5; text-align: center;
}
.swiper-pagination.adv-hero-dots .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.55);
  margin: 0 4px; opacity: 1;
}
.swiper-pagination.adv-hero-dots .swiper-pagination-bullet-active {
  background: #00a73c; width: 38px;
}

/* ================= 新闻 左右结构 ================= */
.news-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左侧大图 */
.news-feature {
  position: relative;          /* ✦ 必须——背景图/overlay/文字都用它定位 */
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
  min-height: 480px;
}
.news-feature-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -1;
}
.news-feature-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,30,65,.88) 0%, rgba(8,30,65,.55) 28%, transparent 60%);
}
.news-feature-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px; color: #fff;
}
.news-feature-body .news-cat {
  display: inline-block;
  font-size: 12px; color: #fff; background: rgba(255,255,255,.2);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.news-feature-body .news-title {
  font-size: 28px; font-weight: 700; margin: 0 0 12px;
  font-family: var(--font-title); line-height: 1.3;
}
.news-feature-body .news-desc {
  font-size: 15px; color: rgba(255,255,255,.85);
  margin: 0 0 18px; line-height: 1.6; max-width: 600px;
}
.news-feature-body .adv-btn-link { color: #fff; }

/* 右侧两小 */
.news-side {
  display: flex; flex-direction: column; gap: 24px;
}
.news-row {
  display: flex; gap: 20px;
  background: #fff; border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  flex: 1;
  transition: box-shadow .25s, transform .25s;
}
.news-row:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px);
}
.news-row-pic {
  flex: 0 0 38%; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
}
.news-row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-row-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.news-row-body .news-date {
  font-size: 12px; color: var(--text-light); margin-right: 8px;
}
.news-row-body .news-cat {
  font-size: 12px; color: var(--blue);
  background: var(--blue-light); padding: 3px 8px; border-radius: 4px;
  font-weight: 600; display: inline-block;
}
.news-row-body .news-title {
  font-size: 18px; font-weight: 600; margin: 8px 0;
  font-family: var(--font-title); line-height: 1.3;
  color: var(--text);
}
.news-row-body .news-desc {
  font-size: 13px; color: var(--text-light);
  line-height: 1.5; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 响应式 ---- */
@media (max-width:1024px){
  .adv-hero.swiper{width:80%}
  .swiper-slide.adv-hero-slide{height:380px}
  .news-split{grid-template-columns:1fr;gap:20px}
  .news-feature{min-height:380px}
}
@media (max-width:560px){
  .adv-hero.swiper{width:92%}
  .swiper-slide.adv-hero-slide{height:280px}
  .adv-hero-slide .adv-hero-content{bottom:32px}
  .adv-hero-slide .adv-hero-content h3{font-size:22px}
  .adv-hero-slide .adv-hero-content p{font-size:13px}
  .news-feature{min-height:300px}
  .news-feature-body{padding:24px}
  .news-feature-body .news-title{font-size:22px}
  .news-row{flex-direction:column;padding:14px;gap:14px}
  .news-row-pic{flex:0 0 auto;aspect-ratio:16/9}
}

/* 核心优势区块移动端顶部间距（覆盖 base 的 !important padding） */
@media (max-width:768px){
  .section--adv{padding-top:48px !important}
}
