/* ==================== CSS 变量 ==================== */
:root {
  /* 颜色 */
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --bg-dark: #0F0F0F;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #E5E5E5;
  --border-light: #F0F0F0;
  --accent: #E85D04;
  --accent-light: #FF8C42;
  --accent-dark: #C04D00;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* 字体 */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* 容器 */
  --container: 1200px;
}

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== 通用容器 ==================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==================== 通用按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-full {
  width: 100%;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  padding: var(--space-md) 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--text);
}

.logo-mark {
  display: flex;
  align-items: center;
  color: inherit;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text small {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== 首屏 Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 93, 4, 0.15) 0%, transparent 60%);
}

/* 声波动画 */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60%;
  opacity: 0.5;
}

.hero-wave span {
  display: block;
  width: 6px;
  background: linear-gradient(to top, rgba(232, 93, 4, 0.6), rgba(232, 93, 4, 0.05));
  border-radius: 3px 3px 0 0;
  animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* 生成不同动画延迟 */
.hero-wave span:nth-child(1) { animation-delay: 0.0s; }
.hero-wave span:nth-child(2) { animation-delay: 0.1s; }
.hero-wave span:nth-child(3) { animation-delay: 0.2s; }
.hero-wave span:nth-child(4) { animation-delay: 0.3s; }
.hero-wave span:nth-child(5) { animation-delay: 0.4s; }
.hero-wave span:nth-child(6) { animation-delay: 0.5s; }
.hero-wave span:nth-child(7) { animation-delay: 0.15s; }
.hero-wave span:nth-child(8) { animation-delay: 0.25s; }
.hero-wave span:nth-child(9) { animation-delay: 0.35s; }
.hero-wave span:nth-child(10) { animation-delay: 0.45s; }
.hero-wave span:nth-child(11) { animation-delay: 0.05s; }
.hero-wave span:nth-child(12) { animation-delay: 0.55s; }
.hero-wave span:nth-child(13) { animation-delay: 0.2s; }
.hero-wave span:nth-child(14) { animation-delay: 0.3s; }
.hero-wave span:nth-child(15) { animation-delay: 0.4s; }
.hero-wave span:nth-child(16) { animation-delay: 0.1s; }
.hero-wave span:nth-child(17) { animation-delay: 0.5s; }
.hero-wave span:nth-child(18) { animation-delay: 0.15s; }
.hero-wave span:nth-child(19) { animation-delay: 0.25s; }
.hero-wave span:nth-child(20) { animation-delay: 0.35s; }
.hero-wave span:nth-child(21) { animation-delay: 0.0s; }
.hero-wave span:nth-child(22) { animation-delay: 0.45s; }
.hero-wave span:nth-child(23) { animation-delay: 0.55s; }
.hero-wave span:nth-child(24) { animation-delay: 0.05s; }
.hero-wave span:nth-child(25) { animation-delay: 0.2s; }
.hero-wave span:nth-child(26) { animation-delay: 0.3s; }
.hero-wave span:nth-child(27) { animation-delay: 0.4s; }
.hero-wave span:nth-child(28) { animation-delay: 0.5s; }
.hero-wave span:nth-child(29) { animation-delay: 0.15s; }
.hero-wave span:nth-child(30) { animation-delay: 0.25s; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-lg);
  max-width: 800px;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-md);
}

.title-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* ==================== 通用区块标题 ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* ==================== 关于我们 ==================== */
.about {
  padding: var(--space-2xl) 0;
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-md) 0;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* ==================== 音乐作品 ==================== */
.collection {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.album-card {
  cursor: pointer;
  transition: transform var(--transition);
}

.album-card:hover {
  transform: translateY(-6px);
}

.album-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-light);
  margin-bottom: var(--space-sm);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.album-card:hover .album-cover img {
  transform: scale(1.08);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform var(--transition);
}

.album-card:hover .play-btn {
  transform: scale(1);
}

.play-btn:hover {
  background: var(--accent-dark);
}

.album-info {
  padding: 0 4px;
}

.album-genre {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.album-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
}

.album-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ==================== 播放器面板 ==================== */
.player-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 20px;
  z-index: 999;
  animation: playerSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes playerSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.player-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.player-info {
  flex-shrink: 0;
  min-width: 100px;
}

.player-status {
  font-size: 0.625rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.ctrl-btn:hover {
  background: var(--border-light);
  color: var(--text);
}

.ctrl-play {
  background: var(--accent);
  color: #fff;
}

.ctrl-play:hover {
  background: var(--accent-dark);
  color: #fff;
}

.player-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.player-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition);
}

.player-close:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ==================== 联系我们 ==================== */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  padding-right: var(--space-lg);
}

.contact-info .section-label,
.contact-info .section-title {
  text-align: left;
}

.contact-desc {
  color: var(--text-secondary);
  margin: var(--space-md) 0 var(--space-xl);
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-list small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-link {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* 联系表单 */
.contact-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.9375rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  margin-top: var(--space-md);
  padding: 12px 16px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==================== 页脚 ==================== */
.footer {
  background: var(--bg-dark);
  padding: var(--space-xl) 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-copy {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-rights {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ==================== 返回顶部 ==================== */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ==================== 滚动动画 ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 64px;
    --space-xl: 40px;
    --space-lg: 24px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--text) !important;
    font-size: 1.125rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-subtitle br {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  .player-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .player-info {
    min-width: 80px;
  }

  .player-progress {
    order: 3;
    width: 100%;
  }

  .player-close {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}
