/* ===========================================================
   cover.css · 封面
   =========================================================== */

.view-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 24px 4vh;
  position: relative;
}

.cover-stamp {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-accent);
  width: min(220px, 60vw);
  opacity: 0.85;
}

/* 漂浮云朵 */
.clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  display: block;
  width: 80px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  filter: blur(0.4px);
  box-shadow:
    28px 4px 0 -6px rgba(255, 255, 255, 0.9),
    -22px 4px 0 -8px rgba(255, 255, 255, 0.9),
    0 6px 20px rgba(165, 106, 60, 0.08);
  opacity: 0.85;
  animation: float 14s ease-in-out infinite;
}
.cloud::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 18px;
  width: 28px;
  height: 28px;
  background: inherit;
  border-radius: 50%;
}
.cloud::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  width: 22px;
  height: 22px;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 { top: 14%; left: 8%;   transform: scale(0.9); animation-delay: 0s; }
.cloud-2 { top: 22%; right: 10%;transform: scale(1.1); animation-delay: -3s; background: #FBE9E9; }
.cloud-3 { top: 38%; left: 14%;  transform: scale(0.7); animation-delay: -6s; background: #FFF6D6; }
.cloud-4 { top: 60%; right: 16%; transform: scale(1.0); animation-delay: -2s; background: #E8F1E1; }
.cloud-5 { top: 70%; left: 6%;   transform: scale(0.8); animation-delay: -8s; background: #E2EAF3; }
.cloud-6 { top: 8%;  left: 44%;  transform: scale(0.6); animation-delay: -10s; background: #F1E5F2; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(var(--s, 1)); }
  50%      { transform: translate(18px, -10px) scale(var(--s, 1)); }
}
.cloud-1 { --s: 0.9; }
.cloud-2 { --s: 1.1; }
.cloud-3 { --s: 0.7; }
.cloud-4 { --s: 1.0; }
.cloud-5 { --s: 0.8; }
.cloud-6 { --s: 0.6; }

/* 主体内容 */
.cover-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 760px;
  padding: 0 16px;
}

.cover-eyebrow {
  font-family: var(--ff-num);
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--c-accent);
  margin: 0 0 18px;
  opacity: 0.8;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.1s;
}

.cover-title {
  margin: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.3s;
}
.title-cn {
  font-family: var(--ff-hand-cn);
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-shadow: 0 2px 0 rgba(165, 106, 60, 0.06);
  position: relative;
}
.title-cn::before,
.title-cn::after {
  content: "✦";
  position: absolute;
  top: 18%;
  font-size: 0.4em;
  color: var(--c-accent);
  opacity: 0.6;
}
.title-cn::before { left: -0.6em; }
.title-cn::after  { right: -0.6em; }

.title-en {
  font-family: var(--ff-hand-en);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--c-accent);
  letter-spacing: 0.06em;
  font-weight: 500;
  font-style: italic;
  margin-top: 4px;
}

.cover-sub {
  font-family: var(--ff-hand-cn);
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--c-text-soft);
  margin: 18px 0 6px;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.5s;
}
.cover-blurb {
  font-family: var(--ff-body);
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--c-text-soft);
  margin: 0 0 36px;
  line-height: 1.9;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.65s;
}

/* 主按钮 */
.enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid var(--c-line);
  box-shadow: 0 10px 30px -10px rgba(165, 106, 60, 0.3);
  font-family: var(--ff-hand-cn);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  overflow: visible;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.85s;
  z-index: 3;
}
.enter-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: radial-gradient(60% 80% at 50% 60%, rgba(244, 231, 184, 0.6), transparent 70%);
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.enter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #FFFCF3;
  box-shadow: 0 18px 40px -10px rgba(165, 106, 60, 0.4);
}
.enter-btn:hover::before {
  opacity: 1;
}
.enter-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-cloud {
  width: 38px;
  height: 24px;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  animation: cloudSpin 8s linear infinite;
}
@keyframes cloudSpin {
  from { transform: rotate(-2deg); }
  to   { transform: rotate(2deg); }
}
.enter-btn:hover .btn-cloud {
  animation: cloudBounce 1.4s var(--ease) infinite;
}
@keyframes cloudBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.05); }
}
.btn-cloud svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--c-accent);
  transition: transform .35s var(--ease);
}
.enter-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* 按钮碎片化状态（被云雾吞掉时） */
.enter-btn.is-exploding {
  pointer-events: none;
  transition: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  animation: none;
}
.enter-btn.is-exploding::before {
  opacity: 0;
}
.enter-btn.is-exploding .btn-cloud,
.enter-btn.is-exploding .btn-text,
.enter-btn.is-exploding .btn-arrow {
  /* 由 JS 拆分的子块继承 transform */
  animation: none;
}

/* 底部地平线 */
.cover-horizon {
  position: absolute;
  bottom: 6vh;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  opacity: 0.6;
  pointer-events: none;
}
.cover-horizon svg {
  width: 100%;
  height: 100%;
}

/* 响应式 */
@media (max-width: 640px) {
  .cloud-3, .cloud-5 { display: none; }
  .cover-content { padding: 0 8px; }
  .enter-btn { padding: 12px 24px 12px 18px; }
  .cover-horizon { bottom: 4vh; }
}
