/* ========================================
   银川数据要素服务中心 2.0 - Hero首屏
   视频背景 + 毛玻璃卡片
   ======================================== */

/* Hero区域 */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040d1a;
  /* 多色渐变流动背景 */
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(11,95,169,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0,200,212,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(11,95,169,0.2) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: heroGradientFlow 12s ease-in-out infinite;
  -webkit-animation: heroGradientFlow 12s ease-in-out infinite;
  overflow: hidden;
  padding-top: 80px;
  padding-top: calc(80px + env(safe-area-inset-top, 0px));
}

@keyframes heroGradientFlow {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

@-webkit-keyframes heroGradientFlow {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

/* 视频背景 */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 背景遮罩 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,13,26,0.55) 0%, rgba(4,13,26,0.65) 40%, rgba(4,13,26,0.7) 100%);
}

/* 内容区 */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

  /* 毛玻璃卡片 - 增强科技感 */
  .hero-glass {
    background: rgba(10, 22, 40, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,200,212,0.12);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 40px rgba(0,200,212,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
  }

/* 标签 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(0, 200, 212, 0.12);
  border: 1px solid rgba(0, 200, 212, 0.2);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.5;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,212,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0,200,212,0); }
}

/* 超大标题 */
.hero-title {
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-title.desktop-only {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.hero-title.mobile-only {
  display: none;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.gradient-text {
  color: var(--color-accent);
  font-weight: 800;
}

/* 副标题 */
.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 36px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* CTA按钮组 */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 主按钮 */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(11,95,169,0.3);
}

.btn-hero-primary:hover {
  box-shadow: 0 8px 32px rgba(11,95,169,0.5);
  transform: translateY(-2px);
}

/* 视频按钮 */
.btn-hero-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-hero-video:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* 数据指标 */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat-chip {
  text-align: center;
  padding: 0 32px;
}

.hero-stat-num {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-lbl {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: var(--font-size-xs);
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 底部渐变过渡 */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--light-bg-primary));
  z-index: 3;
  pointer-events: none;
}

/* ===== 桌面端/移动端标题切换 ===== */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ========================================
   科技感装饰元素（桌面+移动端共用）
   ======================================== */

/* 网格覆盖层 - 增加数据科技感 */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

/* 浮动数据节点 */
.hero-data-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,200,212,0.6);
  animation: nodePulse 3s ease-in-out infinite;
}

.hero-data-node:nth-child(2) {
  animation-delay: 0.5s;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(11,95,169,0.6);
}

.hero-data-node:nth-child(3) {
  animation-delay: 1s;
}

.hero-data-node:nth-child(4) {
  animation-delay: 1.5s;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(11,95,169,0.6);
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* 光晕效果 */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11,95,169,0.4), transparent 70%);
  top: 10%;
  left: -5%;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,200,212,0.3), transparent 70%);
  bottom: 15%;
  right: -5%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(11,95,169,0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -20px); }
  50% { transform: translate(-10px, 15px); }
  75% { transform: translate(15px, 10px); }
}

/* 数据流动画线条 */
.hero-data-flow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

.hero-data-flow-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1;
  stroke-dasharray: 8 4;
  animation: dataFlow 20s linear infinite;
}

@keyframes dataFlow {
  to { stroke-dashoffset: -120; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }

  .hero-content {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .hero-glass {
    padding: 24px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .hero-badge {
    font-size: var(--font-size-xs);
    padding: 5px 12px;
    margin-bottom: 16px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
  }

  /* 桌面端标题隐藏，移动端标题显示 */
  .hero-title.desktop-only {
    display: none !important;
  }

  .hero-title.mobile-only {
    display: block !important;
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-hero-primary,
  .btn-hero-video {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: var(--font-size-base);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-stat-chip {
    padding: 0 12px;
  }

  .hero-stat-num {
    font-size: var(--font-size-xl);
  }

  .hero-stat-divider {
    display: none;
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 12px;
  }

  .hero-glass {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .hero-title.mobile-only {
    font-size: clamp(1.3rem, 5vw, 2rem);
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    margin-bottom: 16px;
  }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .scroll-indicator {
    display: none;
  }
}
