/* ============================================================
   手绘乐谱 Hero（第一版设计，2026-08-07）
   谱面符号全手绘 SVG + pathLength 纯 CSS 描画动画（从无到有）
   独立命名空间（hand- 前缀），避免与 site.css 冲突
   ============================================================ */

.hand-hero {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 76px 48px 84px;
}

/* 漂浮音符装饰（手绘风 SVG） */
.hand-float-note {
  position: absolute;
  color: #2E7D32;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  animation: heroIn 1s ease-out both;
}
.hand-float-note svg { display: block; width: 100%; height: auto; }
.hand-float-note.n1 { top: 8%;   left: -1%;  width: 120px; transform: rotate(-14deg); animation-delay: 0.4s; }
.hand-float-note.n2 { bottom: 6%; left: 5%;   width: 96px;  transform: rotate(10deg);  animation-delay: 0.6s; }
.hand-float-note.n3 { top: 2%;   right: 0%;  width: 60px;  transform: rotate(18deg);  animation-delay: 0.5s; }
.hand-float-note.n4 { bottom: 12%; right: 9%; width: 62px;  transform: rotate(-8deg);  animation-delay: 0.7s; }

.hand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
}

/* 左列：手绘谱面 */
.hand-staff {
  flex: 1.2;
  min-width: 0;
  width: 100%;
  height: auto;
}

/* 右列：大标题 */
.hand-text { flex: 1; min-width: 0; text-align: left; }
.hand-title {
  font-family: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1.15;
  background: linear-gradient(120deg, #1A1A1A 20%, #2E7D32 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroIn 0.9s 0.3s ease-out both;
}
.hand-subtitle {
  margin-top: 16px;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #2E7D32;
  letter-spacing: 8px;
  animation: heroIn 0.9s 0.45s ease-out both;
}
.hand-desc {
  margin-top: 18px;
  color: #616161;
  font-size: 17px;
  max-width: 460px;
  animation: heroIn 0.9s 0.6s ease-out both;
}
.hand-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroIn 0.9s 0.75s ease-out both;
}

/* 按钮（第一版风格） */
.hand-btn {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.hand-btn-primary {
  background: linear-gradient(120deg, #1B5E20, #2E7D32);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}
.hand-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 125, 50, 0.4); }
.hand-btn-outline {
  border: 2px solid #2E7D32;
  color: #2E7D32;
  background: transparent;
}
.hand-btn-outline:hover { background: #E8F5E9; transform: translateY(-2px); }

/* 谱面手绘描画动画（pathLength 归一化 + 纯 CSS，从无到有） */
.hand-staff .draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: staffDraw var(--dur, 1.2s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes staffDraw {
  to { stroke-dashoffset: 0; }
}
.hand-staff .fade-path {
  opacity: 0;
  animation: staffFade 0.45s ease-out forwards;
  animation-delay: var(--d, 0s);
}
@keyframes staffFade {
  to { opacity: 1; }
}

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

@media (max-width: 820px) {
  .hand-hero { padding: 56px 20px 64px; }
  .hand-inner { flex-direction: column; gap: 26px; }
  .hand-text { text-align: center; }
  .hand-desc { margin-left: auto; margin-right: auto; }
  .hand-actions { justify-content: center; }
}
