/* ============================================
   Hero / KV Section - 精确还原 Figma 设计
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg-dark);
  overflow: hidden;
}

/* --- 背景图 --- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-standard);
}

.hero__bg-img.is-active {
  opacity: 1;
}

/* --- 渐变遮罩 (从上黑到下透明, opacity 0.35) --- */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(102, 102, 102, 0) 100%
  );
}

/* --- 内容区域 --- */
.hero__content {
  position: absolute;
  top: 50%;
  left: 213px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1053px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-standard);
}

.hero__content.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__since {
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 400;
  line-height: 30px;
  color: var(--color-white);
  letter-spacing: normal;
  margin: 0;
  opacity: 0;
  animation: fade-in var(--duration-slow) var(--ease-decelerate) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: min(5vw, 96px);
  font-weight: 800;
  line-height: 110px;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0;
  opacity: 0;
  animation: slide-up var(--duration-xl) var(--ease-decelerate) 0.4s forwards;
}

/* --- CTA 按钮 (精确 SVG 药丸形 + 白色描边) --- */
.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 182px;
  height: 58px;
  text-decoration: none;
  opacity: 0;
  animation: slide-up var(--duration-slow) var(--ease-decelerate) 0.6s forwards;
  transition: transform var(--duration-micro) var(--ease-emphasized);
}

.hero__cta-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__cta-shape path {
  transition: fill var(--duration-base) var(--ease-standard);
}

.hero__cta-text {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  white-space: nowrap;
}

.hero__cta:hover .hero__cta-shape path {
  fill: var(--color-primary-dark);
}

.hero__cta:active {
  transform: scale(0.96);
}

/* --- 蓝色装饰块 (左上角斜切曲线) --- */
.hero__blue-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 61%;
  height: 110px;
  z-index: 3;
  pointer-events: none;
}

.hero__blue-block svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- 底部控件栏 (在蓝色块上) --- */
.hero__bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
    padding: 0 40px 0 calc(39% + 70px);
  overflow: hidden;
}

/* --- 右侧: 标题 + 轮播 (紧挨着) --- */
.hero__bottom-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Scroll Down 提示 --- */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.hero__scroll-text {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero__scroll-arrow {
  width: 8px;
  height: 26px;
  order: -1;
  animation: bounce-down 2s var(--ease-standard) infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- 图片标题 --- */
.hero__caption {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  color: var(--color-white);
  white-space: nowrap;
  display: none;
}

.hero__caption.is-active {
  display: block;
}

/* --- 轮播控件 (左箭头 + 六边形 + 右箭头) --- */
.hero__carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__carousel-dots {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- 六边形切换按钮 --- */
.hero__carousel-dot {
  width: 22px;
  height: 19px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.3;
  position: relative;
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-micro) var(--ease-standard);
}

/* 触控目标扩展至 ≥44px */
.hero__carousel-dot::before {
  content: "";
  position: absolute;
  inset: -15px;
}

.hero__carousel-dot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__carousel-dot svg path {
  fill: var(--color-white);
  transition: fill var(--duration-base) var(--ease-standard);
}

.hero__carousel-dot:hover {
  opacity: 0.6;
}

.hero__carousel-dot.is-active {
  opacity: 1;
}

.hero__carousel-dot:active {
  transform: scale(0.9);
}

.hero__carousel-arrow {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--duration-base) var(--ease-standard);
}

.hero__carousel-arrow::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.hero__carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero__carousel-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Responsive Hero
   ============================================ */

@media (max-width: 1400px) {
  .hero__content {
    left: 120px;
  }



  .hero__bottom-bar {
  padding: 0 40px 0 calc(39% + 70px);
  }
}

@media (max-width: 1200px) {
  .hero__content {
    left: 80px;
    gap: 28px;
  }



  .hero__blue-block {
    width: 70%;
    height: 90px;
  }

  .hero__bottom-bar {
    padding: 0 40px 0 calc(30% + 70px);
    height: 90px;
  }

  .hero__caption {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 560px;
  }

  .hero__content {
    left: 24px;
    right: 24px;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .hero__since {
    font-size: 20px;
  }

  .hero__title {
    font-size: 44px;
    line-height: 54px;
  }

  .hero__cta {
    width: 160px;
    height: 50px;
  }

  .hero__cta-text {
    font-size: 16px;
  }

  .hero__blue-block {
    width: 100%;
    height: 80px;
  }

  .hero__bottom-bar {
    padding: 0 24px;
    bottom: 0;
    height: 80px;
    justify-content: center;
    align-items: center;
  }

  .hero__scroll {
    display: none;
  }

  .hero__caption {
    display: none;
  }

  .hero__carousel {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 480px;
  }

  .hero__content {
    left: 20px;
    right: 20px;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .hero__since {
    font-size: 16px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero__cta {
    width: 140px;
    height: 44px;
  }

  .hero__cta-text {
    font-size: 14px;
  }

  .hero__blue-block {
    height: 64px;
  }

  .hero__bottom-bar {
    height: 64px;
  }

  .hero__carousel-dots {
    gap: 8px;
  }

  .hero__carousel-dot {
    width: 16px;
    height: 14px;
  }

  .hero__carousel-arrow {
    width: 28px;
    height: 28px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero__carousel-track { transition: none; }
  .hero__bg-img { transition: none; }
  .hero__content { transition: none; }
}
