/* ============================================
   BLOOM LANDING - 酷炫开场动画
   ============================================ */
.bloom-wrapper {
  position: relative;
  z-index: 100;
  /* 不影响外层布局，自身内部绝对定位 */
}

.bloom-wrapper *,
.bloom-wrapper *::before,
.bloom-wrapper *::after {
  box-sizing: border-box;
}

/* 滚动占位（380vh 驱动整个动画，更快到达主页） */
.bloom-wrapper .bloom-scroll-spacer {
  height: 380vh;
  width: 100%;
  pointer-events: none;
}

/* 固定舞台（全屏） */
.bloom-wrapper .bloom-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background: #000;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

/* 视频画布 */
.bloom-wrapper .bloom-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 静态首帧海报（视频未就绪时显示，z-index 高于 canvas） */
.bloom-wrapper .bloom-posters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bloom-wrapper .bloom-posters.fading {
  opacity: 0;
}
.bloom-wrapper .bloom-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bloom-wrapper .bloom-poster.active {
  opacity: 1;
}

/* ============================================
   LOADING SCREEN · 粒子特效加载层
   ============================================ */
.bloom-wrapper .bloom-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.bloom-wrapper .bloom-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
.bloom-wrapper .bloom-loading.transitioning {
  /* 触发过渡时，让中央文字提前淡出 */
}

/* 粒子画布：覆盖全屏，位于内容下层 */
.bloom-wrapper .bloom-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* 加载中央内容 */
.bloom-wrapper .bloom-loading-content {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.bloom-wrapper .bloom-loading-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, #cb8dff 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 12px;
  animation: bloom-logo-shine 3.6s linear infinite;
  text-shadow: 0 0 60px rgba(203, 141, 255, 0.25);
}

@keyframes bloom-logo-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.bloom-wrapper .bloom-loading-tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.bloom-wrapper .bloom-loading-progress {
  width: min(420px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bloom-wrapper .bloom-loading-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  overflow: hidden;
}

.bloom-wrapper .bloom-loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cb8dff 0%, #ffffff 100%);
  border-radius: 1px;
  transition: width 0.25s ease;
  box-shadow: 0 0 12px rgba(203, 141, 255, 0.6);
}

.bloom-wrapper .bloom-loading-bar-fill::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #cb8dff, 0 0 24px rgba(203, 141, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bloom-wrapper .bloom-loading-bar-fill.active::after {
  opacity: 1;
}

.bloom-wrapper .bloom-loading-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.bloom-wrapper .bloom-loading-status {
  text-transform: uppercase;
}

.bloom-wrapper .bloom-loading-percent {
  font-variant-numeric: tabular-nums;
  color: #cb8dff;
  font-weight: 600;
}

.bloom-wrapper .bloom-loading-skip-hint {
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  user-select: none;
  animation: bloom-skip-hint-fade 4s ease-in-out infinite;
}

@keyframes bloom-skip-hint-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* 过渡阶段：中央内容淡出 */
.bloom-wrapper .bloom-loading.transitioning .bloom-loading-content {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ERROR SCREEN
   ============================================ */
.bloom-wrapper .bloom-error {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.bloom-wrapper .bloom-error.visible { display: flex; }
.bloom-wrapper .bloom-error-title {
  color: #fff;
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
}
.bloom-wrapper .bloom-error-desc {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  max-width: 400px;
  line-height: 1.6;
}

/* ============================================
   BRAND LOGO
   ============================================ */
.bloom-wrapper .bloom-brand {
  position: absolute;
  top: 32px;
  left: 36px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}
.bloom-wrapper .bloom-brand svg {
  width: 32px;
  height: 32px;
}
.bloom-wrapper .bloom-brand-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ============================================
   HERO GLASS CARD
   ============================================ */
.bloom-wrapper .bloom-hero-card {
  position: absolute;
  bottom: 80px;
  left: 48px;
  width: calc(100vw - 48px);
  max-width: 600px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.bloom-wrapper .bloom-hero-title {
  font-family: 'Instrument Serif', 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: 0;
}
.bloom-wrapper .bloom-hero-title em {
  font-style: italic;
  color: #cb8dff;
}
.bloom-wrapper .bloom-hero-subtitle {
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin: 0 0 28px;
}
.bloom-wrapper .bloom-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 主按钮：进入官网 */
.bloom-wrapper .bloom-hero-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px 0 26px;
  background: #cb8dff;
  color: #000;
  border: 0;
  border-radius: 999px;
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(203, 141, 255, 0.35);
}
.bloom-wrapper .bloom-hero-enter:hover {
  background: #d9a8ff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(203, 141, 255, 0.55);
}
.bloom-wrapper .bloom-hero-enter svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* 次按钮：向下滚动 */
.bloom-wrapper .bloom-hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
  flex: 0 0 auto;
}
.bloom-wrapper .bloom-hero-arrow:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.24);
}
.bloom-wrapper .bloom-hero-arrow svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   SCROLL HINT (右下角)
   ============================================ */
.bloom-wrapper .bloom-scroll-hint {
  position: absolute;
  right: 48px;
  bottom: 32px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.bloom-wrapper .bloom-scroll-hint svg {
  width: 24px;
  height: 24px;
  animation: bloom-bounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}
@keyframes bloom-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   FEATURE CARDS (中央)
   ============================================ */
.bloom-wrapper .bloom-features {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}
.bloom-wrapper .bloom-features-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.bloom-wrapper .bloom-feature-card {
  width: 280px;
  height: 440px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.bloom-wrapper .bloom-feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}
.bloom-wrapper .bloom-feature-icon svg {
  width: 100%;
  height: 100%;
}
.bloom-wrapper .bloom-feature-card h3 {
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0 0 12px;
}
.bloom-wrapper .bloom-feature-card p {
  font-family: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================
   MISSION TEXTS
   ============================================ */
.bloom-wrapper .bloom-mission {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  padding: 48px 24px;
  pointer-events: none;
}
.bloom-wrapper .bloom-mission-text {
  font-family: 'Instrument Serif', 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.35;
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 0;
}
.bloom-wrapper .bloom-mission-text .bloom-pill {
  display: inline;
  background: #cb8dff;
  color: #000;
  padding: 2px 14px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 400;
}

/* ============================================
   SUBSCRIPTION CARD
   ============================================ */
.bloom-wrapper .bloom-subscription {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}
.bloom-wrapper .bloom-sub-inner {
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 48px 40px;
  text-align: center;
}
.bloom-wrapper .bloom-sub-icon {
  margin-bottom: 20px;
}
.bloom-wrapper .bloom-sub-icon svg {
  width: 36px;
  height: 36px;
}
.bloom-wrapper .bloom-sub-title {
  font-family: 'Instrument Serif', 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: 32px;
  color: #fff;
  margin: 0 0 8px;
}
.bloom-wrapper .bloom-sub-subtitle {
  font-family: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
  line-height: 1.6;
}
.bloom-wrapper .bloom-sub-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.bloom-wrapper .bloom-sub-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.bloom-wrapper .bloom-sub-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.bloom-wrapper .bloom-sub-input:focus {
  border-color: #cb8dff;
}
.bloom-wrapper .bloom-sub-button {
  padding: 12px 24px;
  background: #cb8dff;
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.bloom-wrapper .bloom-sub-button:hover {
  background: #d9a8ff;
}
.bloom-wrapper .bloom-sub-button.submitted {
  background: #059669;
  cursor: default;
}
.bloom-wrapper .bloom-sub-success {
  font-size: 13px;
  color: #059669;
  opacity: 0;
  transition: opacity 0.4s ease;
  line-height: 1.5;
}
.bloom-wrapper .bloom-sub-success.visible {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bloom-wrapper .bloom-hero-title { font-size: 44px; }
}

@media (max-width: 768px) {
  .bloom-wrapper .bloom-brand {
    top: 20px;
    left: 20px;
  }
  .bloom-wrapper .bloom-brand svg {
    width: 26px;
    height: 26px;
  }
  .bloom-wrapper .bloom-brand-text {
    font-size: 15px;
  }
  .bloom-wrapper .bloom-hero-card {
    bottom: 96px;
    left: 20px;
    width: calc(100vw - 40px);
    padding: 26px 22px;
  }
  .bloom-wrapper .bloom-hero-title {
    font-size: 30px;
    line-height: 1.18;
  }
  .bloom-wrapper .bloom-hero-subtitle {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .bloom-wrapper .bloom-hero-enter {
    height: 44px;
    padding: 0 18px 0 20px;
    font-size: 13px;
  }
  .bloom-wrapper .bloom-hero-arrow {
    width: 44px;
    height: 44px;
  }
  .bloom-wrapper .bloom-scroll-hint {
    right: 20px;
    bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .bloom-wrapper .bloom-scroll-hint svg {
    width: 20px;
    height: 20px;
  }
  .bloom-wrapper .bloom-features-row {
    flex-direction: column;
    align-items: center;
  }
  .bloom-wrapper .bloom-feature-card {
    width: calc(100vw - 48px);
    max-width: 320px;
    height: auto;
    min-height: 180px;
    padding: 22px 20px;
  }
  .bloom-wrapper .bloom-mission-text {
    font-size: 26px;
    line-height: 1.4;
  }
  .bloom-wrapper .bloom-sub-inner {
    padding: 32px 24px;
  }
  .bloom-wrapper .bloom-sub-title {
    font-size: 24px;
  }
  .bloom-wrapper .bloom-sub-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .bloom-wrapper .bloom-hero-title { font-size: 26px; }
  .bloom-wrapper .bloom-mission-text { font-size: 22px; }
}
