/* SECTION: Hero full screen */
#home.sec {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景图层淡入 */
#home.sec .backdrop {
  position: absolute;
  inset: 0;
  background-image: url("./out_images/image3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: brightness(0.7);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* 内容容器 */
#home.sec .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

/* Hero 卡片：整体滑入 + 淡入 */
#home .hero-card.glass {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.5s;
}
#home .hero-card.glass:hover {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* 文字内容逐个淡入 */
#home .hero-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 0.8s;
}

#home .hero-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1s;
}
#home .hero-card h2:hover {
  color: #bbdefb;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

#home .hero-card .subtitle {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: #eee;
  opacity: 0;
}

/* 分别延迟每一行 subtitle */
#home .hero-card .subtitle:nth-of-type(1) {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.2s;
}
#home .hero-card .subtitle:nth-of-type(2) {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.4s;
}
#home .hero-card .subtitle:nth-of-type(3) {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.6s;
}
#home .hero-card .subtitle:nth-of-type(4) {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.8s;
}

/* CTA 按钮区 */
#home .hero-cta {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 2s;
}

/* 按钮基础样式 */
#home .hero-cta .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* 主按钮颜色 */
#home .hero-cta .btn.primary {
  background: #1e88e5;
  color: white;
}

/* Hover 效果 */
#home .hero-cta .btn:hover {
  background: #1565c0;
  transform: scale(1.05);
  color: white;
}

/* 动画定义 */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
