/* intro.css - 华丽开场动画与加载屏幕 */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
  transition: visibility 1.2s ease-in-out;
}

/* 拟物化日式障子门 (Shoji Doors) */
.shoji-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: #FAF4F0; /* 退路颜色 */
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

.shoji-door.left {
  left: 0;
  border-right: 14px solid #4A342C; /* 樱桃木框 */
  background-image: 
    linear-gradient(90deg, transparent 48%, #4A342C 48%, #4A342C 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #4A342C 48%, #4A342C 52%, transparent 52%),
    linear-gradient(0deg, rgba(250, 244, 240, 0.25), rgba(250, 244, 240, 0.25)),
    url('../assets/bg/shinkai_bg.jpg');
  background-size: 80px 80px, 80px 80px, auto, 200% 100%;
  background-position: center, center, center, left center;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}

.shoji-door.right {
  right: 0;
  border-left: 14px solid #4A342C;
  background-image: 
    linear-gradient(90deg, transparent 48%, #4A342C 48%, #4A342C 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #4A342C 48%, #4A342C 52%, transparent 52%),
    linear-gradient(0deg, rgba(250, 244, 240, 0.25), rgba(250, 244, 240, 0.25)),
    url('../assets/bg/shinkai_bg.jpg');
  background-size: 80px 80px, 80px 80px, auto, 200% 100%;
  background-position: center, center, center, right center;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}

/* 门环/拟物拉手 */
.shoji-handle {
  width: 44px;
  height: 90px;
  background: #C5A059; /* 古典金黄铜 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  box-shadow: 
    3px 3px 6px rgba(0,0,0,0.3), 
    inset 1px 1px 2px rgba(255,255,255,0.4),
    inset -1px -1px 2px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shoji-door.left .shoji-handle {
  right: 10px;
  border-radius: 8px 0 0 8px;
}

.shoji-door.right .shoji-handle {
  left: 10px;
  border-radius: 0 8px 8px 0;
}

.shoji-handle::after {
  content: '';
  width: 12px;
  height: 50px;
  background: #33221B;
  border-radius: 6px;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.8);
}

/* 中心加载区域 */
.loader-content {
  position: relative;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 拟物化旋转樱花Logo */
.loader-logo-wrapper {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 3s infinite ease-in-out;
  border: var(--neumorphic-border);
}

.loader-logo {
  font-size: 3.5rem;
  line-height: 1;
  animation: sakuraSpin 6s infinite linear;
  cursor: pointer;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sakuraSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 拟物化加载条容器 */
.loader-track {
  width: 260px;
  height: 20px;
  background: var(--bg-container);
  border-radius: 10px;
  box-shadow: var(--shadow-sunken);
  padding: 3px;
  position: relative;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-pink-hover));
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 139, 164, 0.6);
  transition: width 0.2s ease-out;
}

.loader-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-pink-dark);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
}

/* 樱花动漫音乐专辑汇 / 拟物化海报墙样式 */
.album-gallery {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  animation: galleryFadeIn 1s ease-out forwards;
}

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

.cd-case {
  width: 105px;
  height: 135px;
  padding: 6px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  transition: var(--transition-bouncy);
}

.cd-case:hover {
  transform: translateY(-8px) rotate(4deg) scale(1.04);
  box-shadow: var(--shadow-hover);
}

.cd-cover-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 6px rgba(229, 194, 200, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cd-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 拟物CD盒子塑料反光高光 */
.cd-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
}

.cd-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 4px;
}

/* 激活“已加载”状态时的动效 */
.splash-screen.loaded {
  pointer-events: none;
  visibility: hidden;
}

.splash-screen.loaded .loader-content {
  opacity: 0;
  transform: scale(0.8);
}

.splash-screen.loaded .shoji-door.left {
  transform: translateX(-100%);
}

.splash-screen.loaded .shoji-door.right {
  transform: translateX(100%);
}
