/* ===== Let's Music 音乐工坊 · 主题样式 ===== */

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Brush Script MT', cursive;

  --maxw: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --soundhole: #14100a;
}

/* 深色模式（默认） */
:root,
[data-theme='dark'] {
  --bg: #1a1816;
  --bg-soft: #232020;
  --bg-card: #211e1c;
  --surface: #2a2624;
  --text: #ece6dd;
  --text-dim: #a59c8f;
  --text-faint: #6f675d;
  --line: rgba(255, 245, 230, .08);
  --line-strong: rgba(255, 245, 230, .16);
  --accent: #e0a851;       /* 琥珀铜 · 录音室暖光 */
  --accent-soft: #c98a3a;
  --accent-contrast: #1a1410;
  --glow: rgba(224, 168, 81, .14);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
}

/* 浅灰模式 */
[data-theme='light'] {
  --bg: #ecebe8;
  --bg-soft: #f4f3f0;
  --bg-card: #fbfaf7;
  --surface: #ffffff;
  --text: #2b2723;
  --text-dim: #6b6359;
  --text-faint: #9a9189;
  --line: rgba(40, 30, 20, .1);
  --line-strong: rgba(40, 30, 20, .2);
  --accent: #b9772f;
  --accent-soft: #9a6422;
  --accent-contrast: #fff8ec;
  --glow: rgba(185, 119, 47, .16);
  --shadow: 0 18px 50px -24px rgba(60, 45, 25, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

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

/* 背景纹理与光晕 */
.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-glow {
  position: fixed; top: -20%; right: -10%; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(20px);
}

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
}
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-text {
  font-family: var(--font-hand);
  font-size: 30px; font-weight: 700;
  line-height: 1; letter-spacing: .5px;
  color: var(--text);
}
.logo-text.small { font-size: 26px; }

.nav-links {
  margin-left: auto;
  display: flex; gap: 28px;
  font-size: 14.5px; color: var(--text-dim);
}
.nav-links a { position: relative; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme='light'] .icon-sun { display: block; }
[data-theme='light'] .icon-moon { display: none; }

/* Hero */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 110px) clamp(20px, 5vw, 56px) 80px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  min-height: 78vh;
}
.hero-inner { position: relative; z-index: 2; }
.kicker {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; font-weight: 500;
}
.hero-title { display: flex; flex-direction: column; gap: 10px; }
.handwrite {
  font-family: var(--font-hand);
  font-size: clamp(60px, 11vw, 132px);
  font-weight: 700; line-height: .95;
  color: var(--text);
  letter-spacing: 1px;
}
.hero-sub {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300; color: var(--text-dim);
  line-height: 1.35;
}
.hero-lead {
  margin-top: 26px; max-width: 460px;
  color: var(--text-dim); font-size: 16px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer; transition: all .28s var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 10px 26px -10px var(--glow);
}
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line-strong); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 吉他插画 */
.hero-visual {
  width: 100%; max-width: 300px; justify-self: end;
  color: var(--accent);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.28)) drop-shadow(0 0 40px var(--glow));
  animation: sway 8s ease-in-out infinite;
  transform-origin: 50% 12%;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(1.5deg); }
}
.note { transform-box: view-box; }
.note-1 { animation: floaty1 6s ease-in-out infinite; }
.note-2 { animation: floaty2 7.5s ease-in-out infinite; }
@keyframes floaty1 {
  0%, 100% { transform: translate(224px, 64px) rotate(-8deg); }
  50% { transform: translate(232px, 54px) rotate(6deg); }
}
@keyframes floaty2 {
  0%, 100% { transform: translate(204px, 128px) rotate(10deg); }
  50% { transform: translate(197px, 118px) rotate(-5deg); }
}

/* 声波 */
.waveform {
  position: absolute; left: clamp(20px, 5vw, 56px); bottom: 30px;
  display: flex; align-items: flex-end; gap: 5px;
  height: 44px; opacity: .55;
}
.waveform span {
  width: 4px; background: var(--accent); border-radius: 2px;
  animation: pulse 1.4s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: .1s; }
.waveform span:nth-child(3) { height: 90%; animation-delay: .2s; }
.waveform span:nth-child(4) { height: 45%; animation-delay: .3s; }
.waveform span:nth-child(5) { height: 75%; animation-delay: .15s; }
.waveform span:nth-child(6) { height: 35%; animation-delay: .35s; }
.waveform span:nth-child(7) { height: 80%; animation-delay: .05s; }
.waveform span:nth-child(8) { height: 55%; animation-delay: .25s; }
.waveform span:nth-child(9) { height: 95%; animation-delay: .1s; }
.waveform span:nth-child(10) { height: 40%; animation-delay: .3s; }
.waveform span:nth-child(11) { height: 70%; animation-delay: .2s; }
.waveform span:nth-child(12) { height: 50%; animation-delay: 0s; }
.waveform span:nth-child(13) { height: 85%; animation-delay: .15s; }
.waveform span:nth-child(14) { height: 35%; animation-delay: .35s; }
@keyframes pulse {
  0%, 100% { transform: scaleY(.5); }
  50% { transform: scaleY(1); }
}

/* 通用 section */
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px);
}
.section-alt {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head-left { margin-bottom: 0; }
.section-no {
  font-family: var(--font-hand);
  font-size: 28px; color: var(--accent);
  display: block; margin-bottom: 4px;
}
.section-head h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600; letter-spacing: -.5px;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-dim); font-size: 16px; }

/* 关于卡片 */
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.about-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.about-ico {
  font-size: 30px; color: var(--accent);
  font-family: var(--font-hand); font-weight: 700;
  margin-bottom: 14px;
}
.about-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.about-card p { color: var(--text-dim); font-size: 15px; }

/* 手艺卡片 */
.craft-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.craft-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.craft-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.craft-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.craft-card:hover::before { transform: scaleY(1); }
.craft-tag {
  font-size: 12.5px; letter-spacing: .04em;
  color: var(--accent); font-weight: 500;
  margin-bottom: 10px;
}
.craft-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.craft-card > p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.craft-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.craft-list li {
  font-size: 14px; color: var(--text-dim);
  padding-left: 20px; position: relative;
}
.craft-list li::before {
  content: '♪'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 13px;
}

/* 声音展厅 */
.sounds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sound-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .35s var(--ease), border-color .35s;
}
.sound-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.sound-cover {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.cover-a { background: linear-gradient(135deg, #c47b3a, #7a4a1c); }
.cover-b { background: linear-gradient(135deg, #5a6b7a, #2c3640); }
.cover-c { background: linear-gradient(135deg, #8a5a5a, #4a2a2a); }
.sound-meta { flex: 1; min-width: 0; }
.sound-meta h4 { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.sound-meta p { font-size: 13px; color: var(--text-faint); }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--accent);
  cursor: pointer; font-size: 13px;
  transition: all .25s;
  flex-shrink: 0;
}
.play-btn:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

/* 联系 */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit; font-size: 15px; font-weight: 300;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .25s, background .25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { color: var(--accent); font-size: 14px; font-family: var(--font-hand); font-size: 20px; }

/* 页脚 */
.footer {
  position: relative; z-index: 1;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 5vw, 56px) 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 {
  font-size: 13px; font-weight: 500; color: var(--text);
  margin-bottom: 14px; letter-spacing: .04em;
}
.footer-cols a, .footer-cols span {
  display: block; font-size: 14px; color: var(--text-dim);
  margin-bottom: 8px; transition: color .25s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-base {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-faint); text-align: center;
}

/* 响应式 */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 220px; justify-self: center; order: -1; }
  .waveform { display: none; }
  .about-grid, .craft-grid, .sounds-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-actions .btn { flex: 1; }
}

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
