/* 愈*考拉 官网首页 —— 宫崎骏风格 · 温暖疗愈 · 极简单屏 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden; /* 单屏呈现，不做长滚动 */
  background-color: #faf8f5;
  color: #5c4a3a;
  font-family: "Yuanti SC", "YouYuan", "Kaiti SC", "KaiTi", "DFKai-SB", sans-serif;
  display: flex;
  flex-direction: column;
}

/* ---------- 全屏治愈场景背景 ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../images/bg-scene.jpg") center / cover no-repeat;
  animation: fade-in 1.5s ease-out both;
}

/* 中央文字区叠加极淡暖白晕染，保证标语可读性 */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 42%,
    rgba(250, 248, 245, 0.55),
    rgba(250, 248, 245, 0) 70%
  );
}

/* ---------- 站名（左上角，低调） ---------- */
.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 32px;
  animation: fade-in 1.2s ease-out both;
}

.brand-cn {
  font-size: 20px;
  letter-spacing: 2px;
  color: #7a6450;
}

.brand-en {
  font-size: 12px;
  letter-spacing: 1px;
  color: #a08c76;
}

/* ---------- 背景音乐开关（右上角旋转音符） ---------- */
.bgm-btn {
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.78);
  color: #7a6450;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(122, 100, 80, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fade-in 1.2s ease-out both;
}

.bgm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(122, 100, 80, 0.24);
}

.bgm-btn svg {
  animation: note-spin 3.2s linear infinite; /* 播放中：音符持续旋转 */
}

.bgm-btn.is-muted svg {
  animation-play-state: paused; /* 关闭后：音符停转、变淡 */
  opacity: 0.5;
}

@keyframes note-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 首屏主体 ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px 24px;
  animation: fade-in 1.4s ease-out both;
}

.slogan {
  text-align: center;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.55;
  letter-spacing: 3px;
  color: #5a4632;
  text-shadow: 0 1px 12px rgba(250, 248, 245, 0.85);
}

.slogan span {
  display: block; /* 长句拆两行居中 */
}

.koala {
  width: clamp(160px, 24vh, 260px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(122, 100, 80, 0.18);
}

/* ---------- 唯一入口按钮 ---------- */
.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 56px;
  padding: 0 56px;
  border-radius: 999px;
  background: #e8875a; /* 暖橙强调色，与背景强对比 */
  color: #fff8f2;
  font-size: 20px;
  letter-spacing: 6px;
  text-indent: 6px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(232, 135, 90, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(232, 135, 90, 0.5), 0 0 0 6px rgba(232, 135, 90, 0.12);
}

/* ---------- 页脚合规声明（一行小字，低调） ---------- */
.notice {
  position: relative;
  z-index: 1;
  padding: 12px 24px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(92, 74, 58, 0.62);
}

/* ---------- 移动端竖屏适配 ---------- */
@media (max-width: 768px) {
  .hero {
    gap: 20px;
  }

  .koala {
    width: clamp(140px, 30vw, 200px);
  }

  .enter {
    min-height: 48px; /* 触控区域不小于 48px */
    font-size: 18px;
    padding: 0 44px;
  }

  .notice {
    font-size: 11px;
    padding: 10px 16px 12px;
  }
}

/* ---------- 载入淡入（≤1.5s） ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .brand,
  .hero,
  .bgm-btn {
    animation: none;
  }

  .bgm-btn svg {
    animation: none;
  }
}
