﻿/* ====================================================================
   翰灵云 - 首页主视觉轮播
   ==================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  background: #0a1a2e;
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
}

/* 单张幻灯片 */
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.04);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* 渐变遮罩，让文字清晰 */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 102, 204, 0.55) 100%),
    radial-gradient(circle at 75% 40%, rgba(0, 161, 255, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.hero-carousel__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-carousel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 161, 255, 0.20);
  border: 1px solid rgba(0, 161, 255, 0.45);
  border-radius: 100px;
  font-size: 13px;
  color: #B3DFFF;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-carousel__badge::before {
  content: "";
  width: 6px; height: 6px;
  background: #00A1FF;
  border-radius: 50%;
  box-shadow: 0 0 8px #00A1FF;
}

.hero-carousel__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero-carousel__title .accent {
  background: linear-gradient(90deg, #66B3FF 0%, #00A1FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-carousel__subtitle {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
}

.hero-carousel__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin: 0 0 32px;
}

.hero-carousel__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-carousel__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 26px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}
.hero-carousel__btn--primary {
  background: linear-gradient(135deg, #00A1FF 0%, #0066CC 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}
.hero-carousel__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 204, 0.5);
}
.hero-carousel__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
}
.hero-carousel__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* 视觉装饰 */
.hero-carousel__visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel__ring {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  animation: spin 24s linear infinite;
  pointer-events: none;
}
.hero-carousel__ring--1 { width: 360px; height: 360px; }
.hero-carousel__ring--2 {
  width: 460px; height: 460px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  animation-direction: reverse;
  animation-duration: 36s;
}
.hero-carousel__core {
  position: relative;
  z-index: 2;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,161,255,0.5) 0%, rgba(0,161,255,0.0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 16px 36px rgba(0, 161, 255, 0.45));
  animation: floatY 6s ease-in-out infinite;
}
.hero-carousel__core-icon {
  font-size: 110px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c2e6ff 50%, #66b3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 指示器 */
.hero-carousel__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-carousel__dot {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.30);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.hero-carousel__dot.is-active {
  background: #fff;
  width: 48px;
}

/* 左右箭头 */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
}
.hero-carousel__arrow--prev { left: 20px; }
.hero-carousel__arrow--next { right: 20px; }

/* 响应式 */
@media (max-width: 960px) {
  .hero-carousel { height: auto; min-height: 600px; max-height: none; padding: 80px 0 60px; }
  .hero-carousel__inner { grid-template-columns: 1fr; gap: 30px; padding: 0 24px; }
  .hero-carousel__visual { height: 240px; }
  .hero-carousel__core { width: 180px; height: 180px; }
  .hero-carousel__core-icon { font-size: 70px; }
  .hero-carousel__ring--1 { width: 200px; height: 200px; }
  .hero-carousel__ring--2 { width: 260px; height: 260px; }
  .hero-carousel__arrow { display: none; }
}

@media (max-width: 600px) {
  .hero-carousel { min-height: 520px; }
  .hero-carousel__title { font-size: 30px; }
  .hero-carousel__subtitle { font-size: 16px; }
  .hero-carousel__actions .hero-carousel__btn { flex: 1; justify-content: center; }
}

/* 隐藏装饰元素（背景图为视觉中心） */
.hero-carousel__visual,
.hero-carousel__ring,
.hero-carousel__core,
.hero-carousel__core-icon { display: none !important; }

/* 只有 1 张幻灯片时隐藏左右箭头和指示器 */
.hero-carousel__arrow,
.hero-carousel__dots { display: none !important; }
