/* DakeMusic 官网 · 设计系统
   规范来源：landing-page-design（字体/字号/间距/圆角/动效均为固定刻度） */

/* ---------- 字体（自托管，避免 CDN 与系统默认字体） ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/manrope-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/manrope-700.woff2') format('woff2');
}

/* ---------- 令牌 ---------- */
:root {
  /* 颜色：只用规定的暗色背景 */
  --bg: #000000;
  --surface-1: #131209;
  --surface-2: #181818;
  --surface-3: #1f1f1f;
  --surface-4: #272727;
  --surface-5: #313131;
  --text: #ffffff;
  --text-muted: #9b9b9b;
  --text-dim: #6e6e6e;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #272727;

  /* 间距刻度 */
  --s-0: 0px;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* 圆角（Tailwind 刻度） */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-short: 300ms;

  /* 内容宽度 */
  --measure: 680px;
  --page: 1120px;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Manrope',
    'PingFang SC',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--accent);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--s-200);
  top: var(--s-200);
  transform: translateY(-200%);
  background: var(--text);
  color: #000000;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  font-weight: 600;
  z-index: 100;
  transition: transform var(--dur-short) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 文字样式（命名，不散落字号） ---------- */
.heading-1 {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.heading-2 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.heading-3 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.heading-5 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin: 0;
}
.title-2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  margin: 0;
}
.body-2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
.body-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.body-5 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  margin: 0;
}
.body-6 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.caption-2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  margin: 0;
}
.caption-4 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  margin: 0;
}
.muted {
  color: var(--text-muted);
}
.dim {
  color: var(--text-dim);
}

/* ---------- 布局 ---------- */
.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s-300);
}

.section {
  padding: var(--s-900) 0;
}

.section-head {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  margin-bottom: var(--s-600);
}

/* ---------- 导航（悬浮、半透明、模糊） ---------- */
.nav-wrap {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  padding: 0 var(--s-200);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

.nav-logo img {
  width: 24px;
  height: 24px;
  border-radius: var(--r-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-25);
  margin-left: var(--s-100);
}

.nav-link {
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    color var(--dur-short) var(--ease),
    background-color var(--dur-short) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, #ffffff 8%, transparent);
}

.nav-link[aria-current='page'] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  transition: transform var(--dur) var(--ease);
}

.nav-toggle[aria-expanded='true'] svg {
  transform: rotate(90deg);
}

/* 移动端菜单：全高面板 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-300);
  padding: var(--s-700) var(--s-300);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.mobile-menu[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity var(--dur-short) var(--ease),
    transform var(--dur-short) var(--ease);
}

.mobile-menu[data-open='true'] a {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: none;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--dur-short) var(--ease),
    background-color var(--dur-short) var(--ease),
    opacity var(--dur-short) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-ghost {
  background: color-mix(in srgb, #ffffff 10%, transparent);
  color: var(--text);
}

.btn-ghost:hover {
  background: color-mix(in srgb, #ffffff 16%, transparent);
}

.btn-lg {
  padding: var(--s-100) var(--s-300);
  font-size: 18px;
  line-height: 28px;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-900) 0 var(--s-400);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s-800);
  align-items: center;
  min-height: clamp(600px, 88vh, 840px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
}

.hero-title {
  /* 唯一的渐变：标题文字 */
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: var(--measure);
}

.hero-sub {
  max-width: var(--measure);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  flex-wrap: wrap;
  margin-top: var(--s-100);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  flex-wrap: wrap;
  margin-top: var(--s-200);
  color: var(--text-dim);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--surface-5);
}

.hero-visual {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #ffffff 8%, transparent);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.hero-visual img {
  width: 100%;
  display: block;
}

/* ---------- 标语逐字显现 ---------- */
.tagline {
  padding: var(--s-700) 0;
  max-width: 900px;
  margin: 0 auto;
}

.tagline-text {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tagline-text .word {
  display: inline-block;
  color: var(--text);
  opacity: 0.3;
  transition: opacity 600ms var(--ease);
}

.tagline-text .word.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tagline-text .word {
    opacity: 1;
    transition: none;
  }
}

/* ---------- 功能卡 ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-300);
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  padding: var(--s-400);
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.benefit:hover {
  transform: translateY(-2px);
  border-color: var(--surface-5);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: #7ec0ff;
}

.benefit-shot {
  margin-top: var(--s-100);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- 三步 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-300);
}

.step {
  padding: var(--s-400);
  border-radius: var(--r-3xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--surface-4);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- 截图墙 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-300);
}

.shot {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform var(--dur) var(--ease);
  margin: 0;
}

.shot:hover {
  transform: translateY(-2px);
}

.shot img {\n  width: 100%;\n  aspect-ratio: 3 / 2;\n  object-fit: cover;\n}\n\n.shot figcaption {
  padding: var(--s-100) var(--s-200);
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  max-width: 860px;
}

.faq-item {
  border-radius: var(--r-2xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-h {
  margin: 0;
  font: inherit;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease);
}

.faq-q:hover {
  background: color-mix(in srgb, #ffffff 4%, transparent);
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform var(--dur-short) var(--ease);
  color: var(--text-muted);
}

.faq-q[aria-expanded='true'] svg {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.faq-item[data-open='true'] .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 var(--s-300) var(--s-300);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 结尾 CTA ---------- */
.final-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-900) 0;
}

.final-cta .heading-2 {
  max-width: var(--measure);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-600) 0 var(--s-400);
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--s-400);
  flex-wrap: wrap;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s-300);
}

.footer-meta {
  max-width: var(--page);
  margin: var(--s-300) auto 0;
  padding: var(--s-300) var(--s-300) 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-dim);
}

.footer-meta a {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--s-200);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--dur-short) var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-600);
    min-height: auto;
    padding-top: var(--s-800);
  }
  .benefits,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .heading-1 {
    font-size: 36px;
    line-height: 40px;
  }
  .heading-2,
  .tagline-text {
    font-size: 30px;
    line-height: 36px;
  }
  .heading-3 {
    font-size: 24px;
    line-height: 32px;
  }
  .section {
    padding: var(--s-700) 0;
  }
  .benefits,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
  .nav {
    padding: var(--s-50) var(--s-50) var(--s-50) var(--s-200);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .page {
    padding: 0 var(--s-200);
  }
  .benefit,
  .step {
    padding: var(--s-300);
  }
  .hero-visual {
    border-radius: var(--r-2xl);
  }
}
/* ---------- 浅色主题（跟随系统设置） ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface-1: #f7f7f8;
    --surface-2: #ffffff;
    --surface-3: #f5f5f6;
    --surface-4: #ededef;
    --surface-5: #e2e2e5;
    --text: #000000;
    --text-muted: #5f5f63;
    --text-dim: #8a8a8f;
    --border: #e6e6e8;
    --accent: #0071e3;
    --accent-hover: #0077ed;
  }

  .nav {
    background: color-mix(in srgb, #ffffff 84%, transparent);
    border-color: color-mix(in srgb, #000000 8%, transparent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .nav-link:hover {
    background: color-mix(in srgb, #000000 6%, transparent);
  }

  .btn-ghost {
    background: color-mix(in srgb, #000000 6%, transparent);
  }

  .btn-ghost:hover {
    background: color-mix(in srgb, #000000 10%, transparent);
  }

  /* 浅色主题的标题渐变：黑 → 灰（规范里给了两套） */
  .hero-title {
    background-image: linear-gradient(90deg, #000000 0%, #666666 100%);
  }

  .hero-visual {
    border-color: color-mix(in srgb, #000000 8%, transparent);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
  }

  .benefit,
  .faq-item,
  .shot {
    background: #ffffff;
  }

  .faq-q:hover {
    background: color-mix(in srgb, #000000 4%, transparent);
  }

  .mobile-menu {
    background: color-mix(in srgb, #ffffff 92%, transparent);
  }

  .benefit-icon {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: #0071e3;
  }

  .skip-link {
    background: #000000;
    color: #ffffff;
  }

  .footer {
    border-top-color: var(--border);
  }
}