
/* Modern High-Performance Dual-Image Hero Carousel (Zero-CLS, Instant LCP) */
.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0B1120;
  min-height: calc(100vh - var(--header-height, 136px));
  min-height: calc(100dvh - var(--header-height, 136px));
  display: flex;
  align-items: center;
  contain: layout style;
}
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}
.hero-slide-item:first-child,
.hero-slide-item.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.hero-slide-item:not(.is-active):first-child {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}
.hero-slide-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7, 13, 26, 0.72) 0%,
      rgba(7, 13, 26, 0.52) 45%,
      rgba(7, 13, 26, 0.18) 72%,
      rgba(7, 13, 26, 0.02) 100%
    );
}
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg,
      rgba(7, 13, 26, 0.72) 0%,
      rgba(7, 13, 26, 0.52) 45%,
      rgba(7, 13, 26, 0.18) 72%,
      rgba(7, 13, 26, 0.02) 100%
    );
}
/* Mobile Native Stories Progress Indicator (Instagram / iOS Style) */
.hero-mobile-dash-nav {
  display: none !important;
}

/* --- CINEMATIC HERO TIMELINE & NAVIGATION CONTROLS --- */
.hero-carousel-controls {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.55rem 1rem 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-carousel-controls:hover {
  background: rgba(11, 17, 32, 0.75);
  border-color: rgba(255, 255, 255, 0.28);
}
[dir="rtl"] .hero-carousel-controls {
  right: auto;
  left: 3rem;
  padding: 0.55rem 1.25rem 0.55rem 1rem;
}
.hero-timeline-counter {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif);
  font-feature-settings: "tnum" 1, "cv05" 1;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-timeline-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  min-width: 1.4rem;
  display: inline-block;
  text-align: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.hero-timeline-divider {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 1px;
}
.hero-timeline-total {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.hero-timeline-track {
  width: 72px;
  height: 3px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.hero-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 9999px;
  background: linear-gradient(90deg, #38BDF8 0%, #0284C7 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  transition: transform 0.1s linear;
}
[dir="rtl"] .hero-timeline-progress {
  left: auto;
  right: 0;
  transform-origin: right center;
}
.hero-timeline-arrows {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-nav-btn:hover {
  background: #0284C7;
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.6);
}
.hero-nav-btn:active {
  transform: scale(0.92);
}
.hero-nav-btn svg {
  display: block;
  transition: transform 0.2s ease;
}
.hero-nav-prev:hover svg {
  transform: translateX(-1px);
}
.hero-nav-next:hover svg {
  transform: translateX(1px);
}
[dir="rtl"] .hero-nav-prev svg {
  transform: scaleX(-1);
}
[dir="rtl"] .hero-nav-next svg {
  transform: scaleX(-1);
}
[dir="rtl"] .hero-nav-prev:hover svg {
  transform: scaleX(-1) translateX(-1px);
}
[dir="rtl"] .hero-nav-next:hover svg {
  transform: scaleX(-1) translateX(1px);
}
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.hero-content {
  max-width: 820px;
}
.hero-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.35rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  text-wrap: balance;
}
.hero-desc {
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.98);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  max-width: 720px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.85rem 2.25rem;
  min-height: 52px;
  letter-spacing: -0.01em;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s ease,
              border-color 0.22s ease;
}
.hero-actions .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 4px 18px rgba(2, 132, 199, 0.42);
}
.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- MOBILE ADAPTATION (CLEAN LIGHT SHEET & SMOOTH ZERO-DIP TRANSITION) --- */
@media (max-width: 768px) {
  /* 1. 主容器：浅色底托，与下方指标区无缝融合 */
  .hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
    background: #F8FAFC !important;
    margin-bottom: 0 !important;
  }

  /* 2. 上部纯净工厂图片视窗 (240px 黄金高度，浅中性底消除切换黑隙) */
  .hero-media-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    background: #E2E8F0 !important;
    flex-shrink: 0 !important;
  }
  .hero-slide-item {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1 !important;
  }
  .hero-slide-item.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
  }
  .hero-slide-item picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  .hero-bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  /* 彻底消除切换黑影：移除大黑渐变，仅底部留极微弱阴影托起横条 */
  .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.22) 100%) !important;
  }

  /* 3. 左右滑动提示：半透明微翻页圆钮 (两侧垂直居中) */
  .hero-mob-nav-btn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .hero-mob-nav-btn:active {
    transform: translateY(-50%) scale(0.92) !important;
  }
  .hero-mob-nav-prev {
    left: 10px !important;
  }
  .hero-mob-nav-next {
    right: 10px !important;
  }
  [dir="rtl"] .hero-mob-nav-prev {
    left: auto !important;
    right: 10px !important;
    transform: translateY(-50%) scaleX(-1) !important;
  }
  [dir="rtl"] .hero-mob-nav-next {
    right: auto !important;
    left: 10px !important;
    transform: translateY(-50%) scaleX(-1) !important;
  }

  /* 4. 底部极简横条指示器 (置于图片底部，在圆角上方清爽悬浮) */
  .hero-carousel-controls {
    display: none !important;
  }
  .hero-mobile-dash-nav {
    display: flex !important;
    position: absolute !important;
    bottom: 0.85rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    pointer-events: auto !important;
  }
  .hero-mob-dash {
    width: 22px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .hero-mob-dash.is-active {
    width: 40px !important;
    background: #0284C7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.9) !important;
  }

  /* 5. 下部现代高雅白底微圆角卡片 (消除死黑，与下方白底指标 100% 浑然天成) */
  .hero-section .hero-container {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1.35rem 1.15rem 1.75rem 1.15rem !important;
    background: #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-title {
    font-size: clamp(1.22rem, 5.2vw, 1.45rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    color: #0F172A !important;
    margin-bottom: 0.5rem !important;
    text-shadow: none !important;
    text-align: left !important;
  }
  [dir="rtl"] .hero-title {
    text-align: right !important;
  }
  .hero-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    margin-bottom: 1.1rem !important;
    text-shadow: none !important;
    text-align: left !important;
  }
  [dir="rtl"] .hero-desc {
    text-align: right !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }
  .hero-actions .btn-primary {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    color: #FFFFFF !important;
  }
  #hero-section .hero-actions .btn-outline {
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (min-width: 769px) {
  .hero-mob-nav-btn {
    display: none !important;
  }
}

