/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 10px;
}

/* 背景图片 */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  filter: brightness(0.7);
  z-index: -1;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 玻璃质感效果 */
.glass-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  contain: layout style paint;
}

.glass-container:hover {
  transform: translateY(-2px);
}

/* 顶部容器 */
.top-container {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.top-left {
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 网络状态 */
.network-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
  animation: pulse 2s infinite;
}

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

/* 用户信息容器 */
.user-container {
  margin-top: 3px;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-section {
  position: relative;
  width: 80px;
  height: 80px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.avatar-frame {
  position: absolute;
  top: -25px;
  left: -25px;
  width: 125px;
  height: 125px;
  z-index: 2;
}

.user-info {
  flex: 1;
}

.username {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.qq-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.qq-icon {
  width: 16px;
  height: 16px;
}

.qq-number {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* 徽章区域 */
.badges {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.badge {
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

/* 随机一言 */
.random-quote {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.5s ease;
}

/* 按钮容器 */
.buttons-container {
  margin-top: 5px;
}

.button-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.button-row:last-child {
  margin-bottom: 0;
}

.glass-button {
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.glass-button:active {
  transform: translateY(0);
}

.glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.glass-button:hover::before {
  left: 100%;
}

/* 音乐播放器 */
.music-container {
  margin-top: 5px;
}

.music-player {
  display: flex;
  align-items: center;
  gap: 30px;
}

.vinyl-section {
  position: relative;
  width: 140px;
  height: 140px;
}

.vinyl {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.album-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-cover.playing {
  animation: rotateCover 20s linear infinite;
}

.album-cover.paused {
  animation-play-state: paused;
}

@keyframes rotateCover {
  to { transform: rotate(360deg); }
}

/* 唱片效果 */
.vinyl-edge {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 0, transparent 70%, rgba(20, 20, 20, 0.9) 70%, rgba(20, 20, 20, 0.9) 100%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.vinyl-grooves {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0, transparent 1px, rgba(255, 255, 255, 0.03) 1px, rgba(255, 255, 255, 0.03) 2px);
  z-index: 1;
  animation: rotateGrooves 10s linear infinite reverse;
  opacity: 0.8;
}

@keyframes rotateGrooves {
  to { transform: rotate(360deg); }
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ff6b6b, #c44569);
  box-shadow: 
    0 0 10px rgba(255, 107, 107, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  font-weight: bold;
}

.vinyl-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 0 5px rgba(0, 0, 0, 0.8),
    inset 0 0 3px rgba(255, 255, 255, 0.3);
  z-index: 4;
}

/* 音乐控制 */
.music-controls {
  flex: 1;
}

.song-title {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.control-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  touch-action: manipulation;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn i {
  font-size: 18px;
}

/* 音量控制 */
.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-icon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.volume-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid #4CAF50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid #4CAF50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 底部容器 */
.footer-container {
  margin-top: 5px;
  font-size: 10px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.record-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-icon {
  width: 16px;
  height: 16px;
}

.site-stats {
  color: rgba(255, 255, 255, 0.8);
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  color: #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  touch-action: manipulation;
}

.close-btn:hover {
  color: #333;
}

.payment-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  touch-action: manipulation;
}

.tab-btn.active {
  background: #4CAF50;
  color: white;
}

.qr-code {
  text-align: center;
  display: none;
}

.qr-code.active {
  display: block;
}

.qr-code img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.modal-actions {
  margin-top: 20px;
  text-align: center;
}

.save-btn {
  padding: 12px 24px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
}

.save-btn:hover {
  background: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .top-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .music-player {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .glass-button {
    width: 100%;
  }
  
  .username {
    font-size: 16px;
  }
  
  .song-title {
    font-size: 14px;
  }
  
  .control-buttons {
    justify-content: center;
  }
  
  .random-quote {
    font-size: 11px;
    padding: 12px;
  }
  
  .vinyl-section {
    width: 120px;
    height: 120px;
  }
  
  .vinyl-edge {
    width: 144px;
    height: 144px;
    top: -12px;
    left: -12px;
  }
  
  .vinyl-grooves {
    width: 136px;
    height: 136px;
    top: -8px;
    left: -8px;
  }
  
  .control-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .glass-container {
    padding: 15px;
  }
  
  .username {
    font-size: 14px;
  }
  
  .song-title {
    font-size: 12px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
  }
  
  .vinyl-section {
    width: 100px;
    height: 100px;
  }
  
  .vinyl-edge {
    width: 124px;
    height: 124px;
    top: -12px;
    left: -12px;
  }
  
  .vinyl-grooves {
    width: 116px;
    height: 116px;
    top: -8px;
    left: -8px;
  }
  
  .vinyl-label {
    width: 30px;
    height: 30px;
    font-size: 7px;
  }
  
  .control-btn i {
    font-size: 16px;
  }
}