* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  height: 100vh;
}

/* 背景图层 */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: url("../../data/images/page/cover/cover1.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 1;
}
.bg-layer.active {
  opacity: 1;
}

/* 背景缓慢缩放动效（Ken Burns） */
@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(1.5%, -1%);
  }
}

/* 渐变遮罩：艳丽二次元配色，从粉紫到蓝的渐变叠加 */
.bg-mask {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.25) 0%,
    rgba(186, 85, 211, 0.25) 50%,
    rgba(65, 105, 225, 0.25) 100%
  );
  z-index: 2;
}

/* 樱花飘落容器 */
.sakura-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.sakura-item {
  position: absolute;
  top: -50px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='40%25' r='60%25'%3E%3Cstop offset='0%25' stop-color='%23ffd9e6'/%3E%3Cstop offset='100%25' stop-color='%23ff9ec4'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M50 10c-4 17-21 23-33 19 14 11 12 31 4 43 14-5 29 5 35 17 6-12 21-22 35-17-8-12-10-32 4-43-12 4-29-2-33-19z'/%3E%3Ccircle cx='50' cy='50' r='7' fill='%23fff3'/%3E%3C/svg%3E");
  background-size: contain;
  animation: sakuraFall linear infinite;
  opacity: 0.8;
}

/* 主内容居中 */
.cover-content {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  animation: contentFadeIn 1.5s ease-out;
}

/* 标题样式：渐变发光二次元字体 */
.cover-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.title-line {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #fff 0%, #ffd1ff 50%, #b6d8ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 182, 193, 0.6);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
  animation: titleShimmer 8s linear infinite, titleGlow 4s ease-in-out infinite;
}
.title-sub {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  opacity: 0.9;
}

/* 副标题 */
.cover-desc {
  font-size: 18px;
  margin-bottom: 48px;
  opacity: 0.85;
  letter-spacing: 2px;
}

/* 进入按钮（登录 + 进入主页并排居中） */
.cover-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.enter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.enter-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(196, 77, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-arrow {
  transition: transform 0.3s ease;
}
.enter-btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* 登录按钮：半透明幽灵样式，与进入按钮同尺寸并排 */
.enter-btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.enter-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* 标题流光与呼吸光晕 */
@keyframes titleShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 4px 20px rgba(255, 182, 193, 0.35));
  }
  50% {
    filter: drop-shadow(0 4px 32px rgba(196, 77, 255, 0.55));
  }
}

/* 动画关键帧 */
@keyframes sakuraFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .title-line {
    font-size: 48px;
    letter-spacing: 4px;
  }
  .title-sub {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .cover-desc {
    font-size: 15px;
    margin-bottom: 36px;
  }
  .enter-btn {
    padding: 14px 36px;
    font-size: 16px;
  }
  .cover-actions {
    flex-direction: column;
    gap: 14px;
  }
}
