/* 仅供屏幕阅读器 */
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   HERO  —  首页首屏（HTML 文案 + 响应式底图，替代原站的整图轮播）
   对应 ACF：hero_slides 循环
     ├ hero_image_desktop  (image)
     ├ hero_image_mobile   (image)
     ├ hero_eyebrow        (text)
     ├ hero_title          (text)
     ├ hero_text           (textarea)
     ├ hero_bullets        (repeater: text)
     └ hero_cta            (link)
   ========================================================================== */

.hero {
  position: relative;
  background: #0b0f0d;
  color: #fff;
  overflow: hidden;
}

.hero__swiper {
  position: relative;
  height: clamp(560px, 76vh, 860px);
}

.hero__slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---------- 底图 ---------- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none !important;   /* 覆盖全局 a:hover img 放大 */
}

/* ---------- 压暗层：保证文字在任意照片上可读 ---------- */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(6, 20, 10, .88) 0%,
      rgba(6, 20, 10, .62) 38%,
      rgba(6, 20, 10, .16) 68%,
      rgba(6, 20, 10, 0) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, .55) 0%,
      rgba(0, 0, 0, 0) 24%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 660px;
  padding: 24px 0;
}

/* ---------- 文字层级 ---------- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfe3c8;
}

.hero__eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: #0a7a00;
  flex: 0 0 auto;
}

.hero__title {
  margin: 18px 0 0;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: clamp(30px, 3.3vw, 54px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
}

.hero__text {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(255, 255, 255, .84);
}

.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero__bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a7a00;
}

/* ---------- 按钮 ---------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}

.hero__btn--primary {
  background: #086200;
  color: #fff;
}

.hero__btn--primary:hover {
  background: #0a7a00;
  color: #fff;
}

.hero__btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}

.hero__btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #086200;
}

/* ---------- 控件 ---------- */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}

.hero__nav:hover,
.hero__nav:focus-visible {
  background: #086200;
  border-color: #086200;
  color: #fff;
  outline: none;
}

.hero__nav--prev { left: 30px; }
.hero__nav--next { right: 30px; }

.hero__fraction {
  position: absolute;
  right: max(24px, calc((100% - 1400px) / 2));
  bottom: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .62);
}

.hero__fraction b {
  color: #fff;
  font-weight: 600;
}

.hero__bar {
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}

.hero__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #0a7a00;
  transition: width .2s linear;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: none;
  gap: 8px;
}

.hero__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(255, 255, 255, .45);
  opacity: 1;
}

.hero__dots .swiper-pagination-bullet-active {
  background: #0a7a00;
  width: 22px;
  border-radius: 4px;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1359px) {
  .hero__nav--prev { left: 16px; }
  .hero__nav--next { right: 16px; }
}

@media screen and (max-width: 999px) {
  .hero__swiper { height: max(540px, 76svh); }
  .hero__nav { display: none; }
  .hero__dots { display: flex; }
  .hero__fraction { display: none; }

  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(4, 14, 8, .34) 0%,
        rgba(4, 14, 8, .56) 48%,
        rgba(4, 14, 8, .88) 100%);
  }

  .hero__content { max-width: 100%; padding: 80px 0 56px; }
  .hero__title { font-size: clamp(26px, 7.2vw, 38px); }
  .hero__text { font-size: 15px; line-height: 1.72; }
  .hero__actions { margin-top: 28px; }
  .hero__btn { height: 48px; padding: 0 22px; font-size: 13px; }
}

@media screen and (max-width: 399px) {
  .hero__bullets { gap: 8px 18px; }
  .hero__bullets li { font-size: 13px; }
}

/* 动画降级 */
@media (prefers-reduced-motion: reduce) {
  .hero__bar span { transition: none; }
}

/* ---------- 无文案状态 ----------
   后台不填标题/正文时，前端不输出 .hero__content，
   给 slide 加 .hero__slide--bare：蒙版减弱，画面完整露出 */
.hero__slide--bare .hero__scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .06) 42%, rgba(0, 0, 0, .30) 100%);
}

.hero__slide--bare .hero__inner { display: none; }

@media screen and (max-width: 767px) {
  .hero__slide--bare .hero__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .10) 50%, rgba(0, 0, 0, .40) 100%);
  }
}
