/* ========================================
   丹江大观苑 - Hero首屏
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 820px;
  height: 100vh;
  max-height: 900px;
  /* 视频加载前/失败时的静态背景兜底 */
  background: #0F2A3D url('../images/hero-aerial1.jpg') center/cover no-repeat;
  color: var(--color-text-on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 88px;
}

/* 背景视频：动态全景 */
.hero__bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* 内容区蒙版：保证文字可读，但视频清晰可见 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 底部渐暗（与下一段过渡 + CTA 按钮区可读） */
    linear-gradient(180deg,
      rgba(15, 42, 61, 0.45) 0%,
      rgba(15, 42, 61, 0.15) 30%,
      rgba(15, 42, 61, 0.15) 60%,
      rgba(15, 42, 61, 0.6) 100%),
    /* 中心微暗（文字区域背后，不完全遮挡视频） */
    radial-gradient(ellipse 55% 45% at 50% 50%,
      rgba(15, 42, 61, 0.35) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-6);
  animation: fadeInUp 1.2s ease;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-cream);
  background-color: rgba(245, 241, 232, 0.08);
  border: 1px solid rgba(184, 149, 74, 0.4);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(8px);
}

.hero__tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-7xl);
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
  /* 强投影 + 微描边，确保与动态视频始终强对比 */
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 2px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-8);
  /* 金色字加深色阴影，避免与湖面蓝/视频高光重叠 */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(15, 42, 61, 0.9);
}

.hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-on-dark);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-secondary);
  letter-spacing: var(--tracking-wide);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

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

  /* 移动端关闭视频，回退到海报静态图，节省流量 */
  .hero__bg-video {
    display: none;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }

  .hero__cta {
    flex-direction: column;
  }
}