/* ==========================================================================
   carousel.css
   首页第二屏四业务轮播的补充样式。
   控制区域：.hero-slide--illustration、.hero-carousel__info/desc/side/toggle。
   修改注意：轮播骨架与箭头主样式在 layout.css / responsive.css；
             本文件只补充示意图适配、说明文字、暂停按钮和手机触控尺寸。
   ========================================================================== */

/* 工程示意图使用 contain 绘制，不裁切、不拉伸 */
.hero-slide--illustration {
  padding: 30px 30px 96px;
}

.hero-slide--illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 轮播说明：经确认的简短业务描述 */
.hero-carousel__desc {
  max-width: 30em;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-carousel__info strong {
  font-size: 20px;
}

/* 右侧控制区：暂停/播放 + 当前序号 */
.hero-carousel__side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.hero-carousel__toggle {
  display: inline-flex;
  min-width: 56px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(69, 213, 201, 0.5);
  border-radius: 999px;
  background: rgba(10, 127, 123, 0.42);
  color: #d8f4f0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-carousel__toggle:hover {
  border-color: var(--brand-400);
  background: rgba(10, 127, 123, 0.85);
}

.hero-carousel__toggle:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

.hero-carousel__toggle[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .hero-slide--illustration {
    padding: 18px 18px 82px;
  }

  .hero-carousel__info strong {
    font-size: 17px;
  }

  .hero-carousel__desc {
    display: -webkit-box;
    overflow: hidden;
    max-width: 26em;
    font-size: 11.5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-carousel__toggle {
    height: 40px;
    min-width: 54px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .hero-carousel__arrow {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transition: none;
  }

  .hero-carousel__toggle {
    transition: none;
  }
}
