/* ============================================================
 * home.css —— 仅 index.html 引入。
 * 把主页 body 升级为带 radial 高光的深空背景 + 全屏居中 hero + 滚动提示动画。
 * 参照 index-cankao.html 的 hero 设计。
 * ============================================================ */

body.home-page {
  /* 双层 radial gradient 模拟氛围光 + 现有 dark.png 背景图 */
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 123, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(120, 0, 255, 0.16), transparent 50%),
    url('../images/background/dark.png') no-repeat center / cover,
    #0a2540;
  /* 主页不需要 body 的 96px 顶部留白 —— hero 自带 height: 100vh */
  padding-top: 0;
}

.home-main {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.home-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 0 24px;
}

.home-hero-content {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.home-hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 123, 255, 0.18);
  line-height: 1.1;
}

.home-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.08em;
}

.home-hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55), transparent);
  margin: 28px auto;
  border: 0;
}

.home-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-hero-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.home-hero-cta-arrow {
  transition: transform 0.3s ease;
}

.home-hero-cta:hover .home-hero-cta-arrow {
  transform: translateX(4px);
}

/* 滚动提示 */
#home-scroll-hint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#home-scroll-hint.is-hidden {
  opacity: 0;
}

#home-scroll-hint > span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.home-scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  animation: home-bounce-down 1.9s ease infinite;
}

@keyframes home-bounce-down {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; }
  50%      { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* Light theme on home page */
body.home-page[data-theme="light"] {
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 123, 255, 0.10), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(120, 0, 255, 0.08), transparent 50%),
    url('../images/background/light.png') no-repeat center / cover,
    #f0f2f5;
}

body.home-page[data-theme="light"] .home-hero-title {
  color: #1a1a2e;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.7);
}

body.home-page[data-theme="light"] .home-hero-subtitle {
  color: rgba(0, 0, 0, 0.65);
  text-shadow: none;
}

body.home-page[data-theme="light"] #home-scroll-hint > span {
  color: rgba(0, 0, 0, 0.45);
}

body.home-page[data-theme="light"] .home-scroll-arrow {
  border-color: rgba(0, 0, 0, 0.45);
}

body.home-page[data-theme="light"] .home-hero-cta {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.18);
  color: #1a1a2e;
}

body.home-page[data-theme="light"] .home-hero-cta:hover {
  background: rgba(0, 0, 0, 0.10);
}

/* 移动端 */
@media (max-width: 768px) {
  .home-hero-title { font-size: clamp(2rem, 12vw, 3.6rem); }
  .home-hero-subtitle { font-size: clamp(0.95rem, 3.5vw, 1.2rem); }
}
