/* score-page.css —— 谱库 SEO 落地页专属外观（2026-11-21 重做）
 * PC 两栏：左信息、右谱面（sticky）；窄屏变单列。
 * 正式 logo 用 assets/logo/zhuanpu-work.png；四个功能按钮浮在谱面淡出区，全部进工作台。
 */
* { box-sizing: border-box; }
::selection { background: rgba(31, 99, 200, .18); }
html { scroll-behavior: smooth; }
body.sp-landing {
  margin: 0; background: #f7f6f4; color: #1e1e18;
  font: 15px/1.75 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

.sp-top { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 0; font-size: 13px; color: #8b8880; }
.sp-top .brand { display: inline-flex; align-items: center; text-decoration: none; }
.sp-logo { width: 148px; height: auto; display: block; }
.sp-top .sp-top-link { color: #6f6a66; text-decoration: none; }
.sp-top .sp-top-link:hover { color: #1f63c8; }

.layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  grid-template-areas: "intro sheet" "body sheet";
  column-gap: 72px; row-gap: 0; margin-top: 64px; align-items: start;
}
.sp-intro { grid-area: intro; min-width: 0; }
.sp-body { grid-area: body; min-width: 0; }

h1.sp-title { font-family: "Songti SC", STSong, serif; font-size: 52px; line-height: 1.15; letter-spacing: -.025em; margin: 0; }
.sp-meta { color: #8b8880; font-size: 13px; margin: 16px 0 0; letter-spacing: .02em; }
.sp-lead { color: #3a3831; margin: 28px 0 0; max-width: 38ch; }

.sp-block { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(26, 22, 21, .11); }
.sp-block h2 { font-family: "Songti SC", STSong, serif; font-size: 21px; margin: 0 0 18px; letter-spacing: -.01em; }
.sp-q { margin-bottom: 18px; }
.sp-q b { font-size: 14px; color: #1e1e18; }
.sp-q p { margin: 5px 0 0; color: #6c6a63; font-size: 13px; }
.sp-rel a { color: #1f63c8; text-decoration: none; font-size: 13px; line-height: 2; }

.sheet { grid-area: sheet; align-self: start; min-width: 0; background: #fff; border: 1px solid rgba(26, 22, 21, .07); border-radius: 18px; padding: 28px 34px; box-shadow: 0 18px 50px rgba(26, 22, 21, .07); position: sticky; top: 28px; }
.sp-sheet-viewport { position: relative; max-height: 660px; overflow: hidden; }
.sp-sheet-viewport .score-page svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.sp-sheet-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(to bottom, transparent, #fff 76%); pointer-events: none; }
.sp-actions { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 14px; z-index: 2; flex-wrap: wrap; }
.sp-act {
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 76px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(31, 99, 200, .25);
  color: #1f63c8; text-decoration: none; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(31, 99, 200, .1);
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.sp-act svg { width: 22px; height: 22px; }
.sp-act:hover { background: #1f63c8; color: #fff; border-color: #1f63c8; transform: translateY(-2px); }
.sp-sheet-note { font-size: 12px; color: #9a968e; margin: 16px 0 0; text-align: center; }

/* 完整简谱页：保留新落地页的双栏与谱面卡片，同时把整张儿歌谱留在页面里。 */
.sp-legacy-score-page .sheet { position: static; }
.sp-legacy-score-page .sp-sheet-viewport { max-height: none; overflow: visible; }
.sp-legacy-score-page .sp-sheet-fade { display: none; }
.sp-legacy-score-page .sp-actions { position: static; margin-top: 18px; }
.sp-legacy-score-page .sp-act[type="button"] { font: inherit; cursor: pointer; }
.sp-tool-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 18px; border: 1px solid #1f63c8; border-radius: 12px;
  background: #1f63c8; color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .18s, transform .18s;
}
.sp-tool-link:hover { background: #1a56ae; transform: translateY(-1px); }

/* 页脚：与首页 .site-foot 同款（色值取自 styles.css 亮色主题） */
.site-foot { margin-top: 72px; border-top: 1px solid #e4e0dc; background: #f8f7f6; }
.site-foot-inner { max-width: 1180px; margin: 0 auto; padding: 60px 32px 28px; color: #6f6a66; font-size: 14px; line-height: 1.8; }
.site-foot-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.site-foot-about { max-width: 760px; }
.site-foot-wordmark { width: 164px; height: 22px; margin-bottom: 22px; object-fit: contain; object-position: left center; }
.site-foot h2 { margin: 0 0 10px; color: #1d1d1f; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.site-foot h3 { margin: 0 0 14px; color: #1d1d1f; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.site-foot p { margin: 0; }
.site-foot-about > p { max-width: 72ch; font-size: 14px; line-height: 1.9; }
.site-foot-help { min-height: 116px; padding-left: 32px; border-left: 1px solid #e4e0dc; }
.site-foot-help-link { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 10px; border-bottom: 1px solid #e4e0dc; font-size: 14px; font-weight: 650; text-decoration: none; color: #1d1d1f; }
.site-foot-help-link svg { flex: 0 0 16px; transition: transform .18s ease; }
.site-foot-help-link:hover svg { transform: translate(2px, -2px); }
.site-foot-meta { margin-top: 48px; padding-top: 17px; border-top: 1px solid #e4e0dc; font-size: 12px; line-height: 1.5; }
.site-foot a { color: #1f63c8; }
.site-foot a:hover { color: #1a56ae; }
@media (max-width: 980px) {
  .site-foot-main { grid-template-columns: 1fr; gap: 28px; }
  .site-foot-help { padding-left: 0; border-left: 0; border-top: 1px solid #e4e0dc; padding-top: 22px; min-height: 0; }
  .site-foot-inner { padding: 44px 24px 24px; }
}

@media (max-width: 980px) {
  .page { padding: 0 24px; }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "sheet" "body";
    gap: 36px 0; margin-top: 44px;
  }
  h1.sp-title { font-size: 40px; }
  .sp-lead { max-width: 60ch; }
  .sheet { position: static; padding: 20px; }
  .sp-sheet-viewport { max-height: 500px; }
  .sp-body > .sp-block:first-child { margin-top: 0; }
}
@media (max-width: 560px) {
  .page { padding: 0 18px; }
  h1.sp-title { font-size: 34px; }
  .sp-sheet-viewport { max-height: 380px; }
  .sp-actions { gap: 8px; bottom: 24px; }
  .sp-act { min-width: 64px; padding: 10px; font-size: 12px; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .sp-legacy-score-page .sp-top,
  .sp-legacy-score-page .info,
  .sp-legacy-score-page .sp-sheet-note,
  .sp-legacy-score-page .sp-sheet-fade,
  .sp-legacy-score-page .sp-actions,
  .sp-legacy-score-page .site-foot { display: none !important; }
  .sp-legacy-score-page .page { max-width: none; margin: 0; padding: 0; }
  .sp-legacy-score-page .layout { display: block; margin: 0; }
  .sp-legacy-score-page .sheet {
    position: static; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  }
  .sp-legacy-score-page .sp-sheet-viewport { max-height: none !important; overflow: visible !important; }
  .sp-legacy-score-page .sp-sheet-viewport .score-page svg { width: 100%; max-width: 100%; height: auto; }
}
