/* ====== 基础变量与重置 ====== */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #fd79a8;
  --accent: #ffeaa7;
  --bg-dark: #0c0c1d;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text-primary: #ffffff;
  --text-secondary: #b2b2d0;
  --text-muted: #6c6c8a;
  --border: #2a2a4a;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-2: linear-gradient(135deg, #fd79a8, #ffeaa7);
  --gradient-3: linear-gradient(135deg, #00b894, #55efc4);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== 导航栏 ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 12, 29, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 12, 29, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo i {
  color: var(--primary);
  font-size: 1.6rem;
  animation: rotateHourglass 3s ease-in-out infinite;
}

@keyframes rotateHourglass {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 25px;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== Hero区域 ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(108, 92, 231, 0.15) 0%,
      transparent 60%
    ),
    var(--bg-dark);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(108, 92, 231, 0.3);
}

.hero-title .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ====== 功能介绍 ====== */
.features {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(26, 26, 46, 0.5) 100%
  );
}

.section-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-2);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--gradient-3);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ====== 时间线 ====== */
.timeline-section {
  padding: 100px 0;
  min-height: 60vh;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--secondary),
    var(--primary-light)
  );
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  animation: fadeSlideIn 0.6s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  z-index: 1;
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.timeline-card .capsule-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.capsule-status.locked {
  background: rgba(253, 121, 168, 0.15);
  color: var(--secondary);
}

.capsule-status.unlocked {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-card .capsule-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.timeline-card .capsule-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-card .photo-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

.timeline-item:nth-child(odd) .photo-count {
  justify-content: flex-end;
}

/* ====== 空状态 ====== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ====== 关于 ====== */
.about-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.05));
}

.about-content {
  max-width: 800px;
  margin: 40px auto 0;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: center;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ====== 模态框 ====== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-view {
  max-width: 700px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title i {
  color: var(--primary);
}

/* ====== 表单 ====== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ====== 拖拽上传区 ====== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
}

.drop-zone i {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.drop-zone p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.browse-link {
  color: var(--primary-light);
  cursor: pointer;
  text-decoration: underline;
}

.drop-zone-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ====== 预览区 ====== */
.preview-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: var(--transition);
}

.preview-item:hover .remove-btn {
  opacity: 1;
}

/* ====== 查看模态框内容 ====== */
.view-header {
  text-align: center;
  margin-bottom: 30px;
}

.view-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.view-header .view-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.view-message {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  border-left: 3px solid var(--primary);
}

.view-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.view-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.view-photo:hover {
  transform: scale(1.05);
}

.view-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 倒计时 */
.countdown-container {
  text-align: center;
  padding: 40px 20px;
}

.countdown-container i {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.countdown-container h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.countdown-unit {
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ====== 页脚 ====== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo i {
  color: var(--primary);
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ====== 自定义滚动条 ====== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 29, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
  }

  .timeline-item:nth-child(odd) {
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
  }

  .timeline-item:nth-child(odd) .photo-count {
    justify-content: flex-start;
  }

  .section-title {
    font-size: 2rem;
  }

  .modal {
    padding: 24px;
    margin: 10px;
  }

  .about-stats {
    gap: 30px;
  }

  .countdown {
    gap: 12px;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .view-photos {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* ====== 淡入动画 ====== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Toast通知 ====== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.success i {
  color: var(--success);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

.toast.info i {
  color: var(--primary);
}

/* ====== 音乐播放器 ====== */
.music-player {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1500;
}

.music-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
  transition: var(--transition);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.7);
}

.music-toggle.playing .fa-music {
  display: none;
}

.music-wave {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.music-toggle.playing .music-wave {
  display: flex;
}

.music-wave span {
  display: block;
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: musicWave 0.8s ease-in-out infinite;
}

.music-wave span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.music-wave span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}
.music-wave span:nth-child(3) {
  height: 10px;
  animation-delay: 0.3s;
}
.music-wave span:nth-child(4) {
  height: 16px;
  animation-delay: 0.45s;
}

@keyframes musicWave {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

.music-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.music-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--primary-light);
}

.music-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.music-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.music-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.music-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
}

.music-progress:hover {
  height: 6px;
}

.music-progress-bar {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.music-progress-bar::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0;
  transition: opacity 0.2s;
}

.music-progress:hover .music-progress-bar::after {
  opacity: 1;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.music-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-ctrl-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.music-play-btn {
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  color: white;
  font-size: 1.1rem;
}

.music-play-btn:hover {
  transform: scale(1.1);
  color: white;
  background: var(--gradient-1);
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.music-volume i {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  width: 20px;
  text-align: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  border: none;
}

.music-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Noto Sans SC", sans-serif;
}

.music-upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.05);
}

@media (max-width: 768px) {
  .music-player {
    bottom: 20px;
    left: 20px;
  }

  .music-toggle {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .music-panel {
    width: 260px;
  }
}
