/* 最新文章页中栏：轮播 + 瀑布流间距；SEO 隐藏 h1 */

.latest-posts-page {
  width: 100%;
  min-width: 0;
}

.latest-posts-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.latest-posts-page__main,
.latest-posts-page__main .main-content {
  min-width: 0;
}

.latest-posts-carousel {
  margin: 0 0 1.25rem;
}

.latest-posts-list {
  margin: 0;
}

/* —— g-home-swiper（对齐生产首页轮播） —— */
.g-home-swiper-root {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.g-home-swiper-root *,
.g-home-swiper-root *::before,
.g-home-swiper-root *::after {
  box-sizing: border-box;
}

.g-home-swiper {
  width: 100%;
  /* 固定 1280×720 */
  aspect-ratio: 1280 / 720;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  contain: paint;
  background: #2a2a2a;
}

.g-home-swiper .swiper-slide {
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.g-home-swiper .swiper-wrapper {
  align-items: stretch;
}

.g-home-swiper__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.g-home-swiper__bg {
  position: absolute;
  inset: 0;
  background: #2a2a2a;
}

.g-home-swiper__bg img,
.g-home-swiper__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-home-swiper__bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d3d3d 0%, #1a1a1a 100%);
}

.g-home-swiper__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 0.65rem 1rem;
  padding-right: 5.5rem;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.g-home-swiper__title-text {
  display: block;
  color: #fff;
  font-size: clamp(0.875rem, 2.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.g-home-swiper__nav {
  color: #fff;
  width: 40px;
  height: 40px;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.g-home-swiper__nav::after {
  font-size: 16px;
  font-weight: 700;
}

.g-home-swiper__nav:hover {
  background: rgba(0, 0, 0, 0.5);
}

.g-home-swiper__nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .g-home-swiper .g-home-swiper__nav {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .g-home-swiper .g-home-swiper__nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .g-home-swiper:hover .g-home-swiper__nav,
  .g-home-swiper:focus-within .g-home-swiper__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .g-home-swiper:hover .g-home-swiper__nav.swiper-button-disabled,
  .g-home-swiper:focus-within .g-home-swiper__nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
  }
}

.g-home-swiper .swiper-button-prev {
  left: 8px;
  right: auto;
}

.g-home-swiper .swiper-button-next {
  right: 8px;
  left: auto;
}

.g-home-swiper__pagination.swiper-pagination {
  position: absolute;
  bottom: 10px;
  right: 12px;
  left: auto;
  top: auto;
  width: auto;
  text-align: right;
  padding: 0 4px;
  z-index: 3;
}

.g-home-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 1;
  background: rgba(0, 0, 0, 0.67);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.g-home-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--theme-palette-color-2);
  box-shadow: none;
}

