/**
 * JumpingMachine.net - 主样式文件
 */

/* 全局样式 */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #dc2626;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --light-gray: #f8fafc;
  --dark-gray: #475569;
  --gradient-start: #3b82f6;
  --gradient-end: #ef4444;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f1f5f9;
}

/* 头部导航 */
.navbar {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.2);
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover:after {
  width: 100%;
}

/* 语言切换器 */
.lang-switcher {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.lang-switcher:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.search-container {
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.recommended-search {
  cursor: pointer;
}

/* 按钮效果 */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.btn-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-hover-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hover-effect:hover::after {
  width: 300px;
  height: 300px;
}

/* 歌词卡片 */
.lyric-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.lyric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 特性卡片 */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.feature-icon {
  transition: transform 0.5s ease;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card:hover .feature-icon {
  transform: scale(1.3) rotate(5deg);
}

/* FAQ部分 */
.faq-question {
  transition: all 0.3s ease !important;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  cursor: pointer;
}

.faq-question:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(239, 68, 68, 0.95)) !important;
}

.faq-question.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(239, 68, 68, 0.9)) !important;
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

/* 针对不同颜色的FAQ问题使用特定选择器 */
.bg-gradient-to-r.from-blue-500.faq-question:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95)) !important;
}

.bg-gradient-to-r.from-red-500.faq-question:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95)) !important;
}

.bg-gradient-to-r.from-yellow-500.faq-question:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95)) !important;
}

.bg-gradient-to-r.from-green-500.faq-question:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95)) !important;
}

.bg-gradient-to-r.from-blue-500.faq-question.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.9)) !important;
}

.bg-gradient-to-r.from-red-500.faq-question.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9)) !important;
}

.bg-gradient-to-r.from-yellow-500.faq-question.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9)) !important;
}

.bg-gradient-to-r.from-green-500.faq-question.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9)) !important;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  transition: all 0.3s ease;
  border-radius: 0 0 12px 12px;
  background: rgba(248, 250, 252, 0.8);
}

.faq-answer.show {
  animation: fadeIn 0.4s ease-out;
}

/* 分页 */
.pagination .active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 8px;
}

.pagination a {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.pagination a:hover:not(.active) {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* 详情页 */
.song-details {
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(239, 68, 68, 0.05));
}

.lyrics-content {
  line-height: 1.8;
  padding: 2rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(10px);
}

.lyrics-content p {
  margin-bottom: 1.2rem;
}

.like-button {
  transition: all 0.3s ease;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.like-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.like-button.liked {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  animation: pulse 0.6s ease-in-out;
}

.footer {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #e2e8f0;
}

.footer-link {
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.footer-link:hover {
  color: var(--accent-color);
  background: rgba(245, 158, 11, 0.1);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

#search-results {
  animation: fadeIn 0.8s ease-out;
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.mobile-menu.open {
  animation: slideDown 0.3s ease-out;
}

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

.breadcrumb {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  color: var(--primary-color);
  margin: 0 0.5rem;
}

.tag {
  background: linear-gradient(45deg, 
    rgba(37, 99, 235, 0.1), 
    rgba(239, 68, 68, 0.1)
  );
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag:hover {
  background: linear-gradient(45deg, 
    rgba(37, 99, 235, 0.2), 
    rgba(239, 68, 68, 0.2)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.loading {
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* 音频播放按钮样式 */
#audio-play-btn {
  transition: all 0.3s ease;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 255, 255, 1) !important;
  color: white !important;
}

#audio-play-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#audio-play-btn.text-white {
  color: white !important;
}

#audio-play-btn.text-gray-300 {
  color: rgba(209, 213, 219, 1) !important;
}

#audio-play-btn.text-red-200 {
  color: rgba(254, 202, 202, 1) !important;
}

#audio-play-btn.text-gray-200:hover {
  color: rgba(229, 231, 235, 1) !important;
}

/* 音频按钮图标动画 */
#audio-play-btn i {
  transition: transform 0.2s ease;
}

#audio-play-btn:hover i:not(.fa-spinner) {
  transform: scale(1.1);
}

/* 加载动画优化 */
#audio-play-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

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