@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --pink: #ff74a4;
  --violet: #9f6ea3;
  --lightblack: #515C6F;
  --white: #ffffff;
  --darkwhite: #cecaca;
  --pinkshadow: #ffcbdd;
  --lightbshadow: rgba(0,0,0,0.15);
  --dark-overlay: rgba(0,0,0,0.3);
}

/* 脉冲动画 */
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 加载界面 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: var(--white);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading-screen p {
  font-size: 16px;
  font-weight: 300;
}

/* 主滑动容器 */
.swiper-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* 滑动页面 */
.swipe-page {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  transition: transform 0.3s ease-out;
}

/* 背景图片 */
.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.3;
  z-index: 1;
}

/* 内容区域 */
.page-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 30px 120px;
  color: var(--white);
}

/* 用户信息区域 */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid rgba(255,255,255,0.5);
  object-fit: cover;
}

.user-details h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.user-details p {
  font-size: 14px;
  opacity: 0.8;
}

/* 歌曲信息区域 */
.song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 20px 0;
}

.song-cover {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  margin: 0 auto 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
}

.song-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.song-artist {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* 歌词区域 */
/* 歌词区域 */
.lyrics-container {
  max-height: 120px;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

.lyrics-scroll {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
  /* 自定义滚动条 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lyrics-scroll::-webkit-scrollbar {
  width: 4px;
}

.lyrics-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.lyrics-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.lyrics-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lyrics-line {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 8px;
  padding: 2px 0;
}

.lyrics {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  animation: scrollLyrics 15s linear infinite;
}

@keyframes scrollLyrics {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* 音频信息 */
.audio-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

.like-count {
  display: flex;
  align-items: center;
}

.like-count i {
  margin-right: 5px;
  color: #ff4757;
}

/* 浮动播放控制 */
.floating-controls {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
}

.play-pause-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-pause-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.play-pause-btn i {
  font-size: 24px;
  color: var(--white);
}

/* 滑动提示 */
.swipe-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  color: var(--white);
  text-align: center;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hint-arrow {
  font-size: 24px;
  margin-bottom: 5px;
}

.swipe-hint p {
  font-size: 12px;
  font-weight: 300;
}

/* 进度条 */
.progress-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width 0.1s linear;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .page-content {
    padding: 40px 20px 100px;
  }
  
  .song-cover {
    width: 160px;
    height: 160px;
  }
  
  .song-title {
    font-size: 20px;
  }
  
  .song-artist {
    font-size: 16px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
  }
  
  .user-details h3 {
    font-size: 16px;
  }
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 无障碍性 - 键盘焦点样式 */
.swipe-page:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: -3px;
}

.play-pause-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  transform: scale(1.1);
}

/* 跳过链接用于屏幕阅读器 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 滑动动画 */
.slide-up {
  transform: translateY(-100%);
}

.slide-down {
  transform: translateY(100%);
}

.slide-current {
  transform: translateY(0);
}