/* ==================== DC 空闲入场特效 ==================== */

/* 特效全屏容器 */
#dc-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #1a1408 0%, #0a0800 60%, #000 100%);
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#dc-intro.fade-out {
  opacity: 0;
}

/* Three.js Canvas */
#dc-intro canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 文案层 */
.dc-intro-text {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-out, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  /* 金色渐变字 */
  background: linear-gradient(
    160deg,
    #fef3c7 0%,
    #fbbf24 20%,
    #f59e0b 45%,
    #fcd34d 65%,
    #fef3c7 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 多层金色辉光 */
  filter:
    drop-shadow(0 0 12px rgba(251, 191, 36, 0.6))
    drop-shadow(0 0 30px rgba(245, 158, 11, 0.35))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.dc-intro-text.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 文案底部装饰线 */
.dc-intro-text::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.dc-intro-text.show::after {
  transform: translateX(-50%) scaleX(1);
}

/* 移动端适配 */
@media (max-width: 640px) {
  .dc-intro-text {
    font-size: 1.2rem;
    bottom: 10%;
    padding: 0 1rem;
    letter-spacing: 0.1em;
  }
  .dc-intro-text::after {
    bottom: -14px;
  }
}
