/* 酷狗音乐官网 — 全站样式（移动优先，min-width 向后增强） */

:root {
  --brand: #6D28D9;
  --brand-dark: #5B21B6;
  --ink: #09090B;
  --text: #1F2937;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --surface: #F7F6F3;
  --accent: #F59E0B;
  --success: #10B981;
  --border: rgba(9, 9, 11, .08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .04);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, .1), 0 16px 32px rgba(0, 0, 0, .06);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 64px;
  --section-py: 48px;
  --container-max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0 0 var(--space-3); line-height: 1.25; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 24px; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
p { margin: 0 0 var(--space-3); }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(109, 40, 217, .35); }
.btn-ghost:hover { background: rgba(109, 40, 217, .08); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #F5F3FF; color: var(--brand-dark); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark { border-radius: var(--radius-sm); flex: none; }
.brand-name { font-size: 17px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-actions .btn-sm { display: none; }
.link-quiet { color: var(--muted); font-size: 14px; }
.link-quiet:hover { color: var(--brand); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  display: none; flex-direction: column; justify-content: space-between;
  padding: var(--space-4) 20px var(--space-6);
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
body.nav-open .nav { display: flex; }
body.nav-open { overflow: hidden; }
.nav-list li + li { border-top: 1px solid var(--border); }
.nav-list a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--text); }
.nav-list a:hover { color: var(--brand); }
.nav-foot { padding-top: var(--space-4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-6) 0;
  background: linear-gradient(160deg, #F5F3FF 0%, #FFFFFF 55%, #F7F6F3 100%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before, .hero-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5;
}
.hero-glow::before { width: 300px; height: 300px; top: -90px; right: -80px; background: rgba(109, 40, 217, .28); }
.hero-glow::after { width: 240px; height: 240px; bottom: -100px; left: -70px; background: rgba(245, 158, 11, .22); }
.hero-inner { position: relative; display: grid; gap: var(--space-5); }
.hero-copy { max-width: 640px; }
.tag {
  display: inline-block; margin-bottom: var(--space-3);
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(109, 40, 217, .1); color: var(--brand); font-size: 13px; font-weight: 500;
}
.hero-sub { font-size: 16px; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.hero-meta { font-size: 13px; color: var(--muted); margin: 0; }
.hero-media { display: flex; justify-content: center; }
.hero-media img { width: 100%; max-width: 560px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ---------- 区块通用 ---------- */
.section { padding: var(--section-py) 0; }
.section-surface { background: var(--surface); }
.section-title { font-size: 24px; }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-sub { color: var(--muted); margin: 0; }

/* ---------- 信任条 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.trust-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: var(--space-2);
  border-radius: var(--radius-sm); background: rgba(109, 40, 217, .1); color: var(--brand); font-size: 17px;
}
.trust-num { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.trust-num .unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.trust-name { font-size: 16px; font-weight: 700; margin: 0 0 var(--space-1); }
.trust-desc { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- 核心功能 ---------- */
.feature-row { display: grid; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-copy h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-2); }
.feature-copy p { color: var(--text); margin-bottom: var(--space-3); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: var(--space-3);
  border-radius: var(--radius-md); background: rgba(109, 40, 217, .1); color: var(--brand); font-size: 20px;
}
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(109, 40, 217, .08); color: var(--brand); font-size: 13px; font-weight: 500;
}
.feature-media { margin: 0; }
.feature-media img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.feature-media figcaption { margin-top: var(--space-2); font-size: 12px; color: var(--muted); }

/* ---------- 场景 ---------- */
.scene-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.scene-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.scene-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: var(--space-2);
  border-radius: var(--radius-sm); background: rgba(245, 158, 11, .16); color: #B45309; font-size: 16px;
}
.scene-card h3 { margin-bottom: var(--space-1); font-weight: 700; }
.scene-card p { font-size: 13px; color: var(--muted); flex: 1 1 auto; }
.scene-link { font-size: 14px; font-weight: 500; }

.playlist-strip { margin-top: var(--space-5); }
.strip-title { font-size: 17px; margin-bottom: var(--space-3); }
.strip-track {
  display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2);
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.strip-card {
  flex: 0 0 210px; scroll-snap-align: start;
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--ink);
}
.strip-card span { display: block; color: var(--brand); font-size: 18px; margin-bottom: var(--space-2); }

/* ---------- AI 区块 ---------- */
.ai-inner { display: grid; gap: var(--space-5); align-items: start; }
.ai-copy p { color: var(--text); }
.bullet-list li { position: relative; padding-left: 22px; margin-bottom: var(--space-2); font-size: 14px; }
.bullet-list li::before {
  content: "♪"; position: absolute; left: 0; top: 0; color: var(--brand); font-size: 13px;
}
.ai-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-card);
}
.ai-card-title { font-size: 14px; color: var(--muted); margin-bottom: var(--space-3); }
.ai-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.ai-tag { padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(109, 40, 217, .1); color: var(--brand); font-size: 12px; }
.ai-song { display: flex; align-items: center; gap: var(--space-3); padding: 10px 0; border-top: 1px solid var(--border); }
.ai-song-cover { width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, #DDD6FE, #F5F3FF); }
.ai-song-meta { flex: 1 1 auto; font-size: 14px; color: var(--ink); }
.ai-song-meta em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.ai-song-time { font-size: 12px; color: var(--muted); }

/* ---------- 多端下载 ---------- */
.download-inner { text-align: center; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3); box-shadow: var(--shadow-card);
}
.platform-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: var(--space-2);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); font-size: 18px;
}
.platform-card h3 { margin-bottom: var(--space-1); font-weight: 700; }
.platform-card p { font-size: 12px; color: var(--muted); margin: 0; }
.download-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- 数据与口碑 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.stat-card { text-align: center; padding: var(--space-4) var(--space-2); background: var(--surface); border-radius: var(--radius-lg); }
.stat-num { font-size: 26px; font-weight: 700; color: var(--brand); margin: 0; }
.stat-num .unit { font-size: 13px; color: var(--muted); margin-left: 4px; }
.stat-label { font-size: 12px; color: var(--muted); margin: 0; }

.quote-grid { display: grid; gap: var(--space-3); }
.quote-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); }
.quote-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #C4B5FD, #EDE9FE); }
.quote-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.quote-text { font-size: 14px; margin-bottom: var(--space-2); }
.quote-star { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 1080px; }
.faq-grid { display: grid; gap: var(--space-3); }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 16px; font-weight: 700; margin: 0; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--brand); font-weight: 700; font-size: 18px; line-height: 1.2;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: var(--space-3) 0 0; font-size: 14px; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  padding: var(--space-6) 0;
  background: linear-gradient(135deg, var(--brand) 0%, #4C1D95 60%, #312E81 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: rgba(255, 255, 255, .86); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-4); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0B0B0F; color: #D1D5DB; padding: var(--space-6) 0 var(--space-4); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: var(--space-3); }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: #9CA3AF; }
.footer-col a:hover { color: #fff; }
.social-list a { display: inline-flex; align-items: center; gap: var(--space-2); }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .1); font-size: 12px;
}
.footer-bottom {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
  font-size: 13px; color: #9CA3AF;
}
.footer-bottom p { margin: 0; }
.footer-links a { color: #9CA3AF; }
.footer-links a:hover { color: #fff; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--brand); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow-card); transition: transform .2s ease;
}
.to-top:hover { transform: translateY(-3px); }

/* ---------- 二级页面 ---------- */
.page-hero { padding: var(--space-6) 0 var(--space-5); background: linear-gradient(160deg, #F5F3FF, #FFFFFF 70%); }
.page-hero h1 { font-size: 28px; margin-bottom: var(--space-2); }
.page-hero p { color: var(--muted); margin: 0; max-width: 720px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: var(--space-3); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-body { padding: var(--section-py) 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin-top: var(--space-5); }
.prose p, .prose li { font-size: 14px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose ul li { margin-bottom: var(--space-2); }
.card-grid { display: grid; gap: var(--space-3); }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); }
.info-card h2, .info-card h3 { font-size: 17px; }
.info-card p { font-size: 13px; color: var(--muted); margin: 0; }
.table-simple { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.table-simple th, .table-simple td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.table-simple th { background: var(--surface); font-weight: 700; }
.note-box { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 14px; }
.timeline { border-left: 2px solid var(--border); padding-left: var(--space-4); }
.timeline li { margin-bottom: var(--space-4); }
.timeline time { display: block; font-size: 12px; color: var(--muted); }
.form-grid { display: grid; gap: var(--space-3); max-width: 640px; }
.form-grid label { display: block; font-size: 13px; font-weight: 500; margin-bottom: var(--space-1); color: var(--ink); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
.form-grid .hint { font-size: 12px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (min-width: 576px) {
  h1 { font-size: 34px; }
  h2, .section-title { font-size: 26px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .header-actions .btn-sm { display: inline-flex; }
  .link-quiet { display: inline; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: block; padding: 0; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible;
  }
  body.nav-open { overflow: auto; }
  .nav-list { display: flex; align-items: center; gap: var(--space-4); }
  .nav-list li + li { border-top: 0; }
  .nav-list a { padding: 6px 2px; font-size: 15px; }
  .nav-foot { display: none; }
  .hero { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .stat-grid { gap: var(--space-4); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

@media (min-width: 992px) {
  h1 { font-size: 44px; }
  h2, .section-title { font-size: 30px; }
  .section { padding: 96px 0; }
  .hero { min-height: 560px; display: flex; align-items: center; padding: 96px 0; }
  .section-title { font-size: 32px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-6); }
  .feature-row-reverse .feature-copy { order: 2; }
  .feature-row-reverse .feature-media { order: 1; }
  .ai-inner { grid-template-columns: 1.05fr .95fr; gap: var(--space-6); }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 80px 0; }
  .faq-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .container { padding: 0 24px; }
  h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
