/* ==========================================================
   汽水音乐下载站 · style.css
   品牌色：墨绿黑底 + 青绿/黄绿渐变
   ========================================================== */

:root {
  --bg: #0b0f0c;
  --bg-soft: #111713;
  --bg-card: #161e19;
  --bg-card-2: #1c2620;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f7f3;
  --text-2: #a9b8ae;
  --text-3: #78887e;
  --green: #34e39a;
  --teal: #22d8c0;
  --lime: #c8f542;
  --grad: linear-gradient(135deg, #34e39a 0%, #22d8c0 55%, #c8f542 110%);
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; color: var(--lime); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #071009;
  box-shadow: 0 10px 30px rgba(52, 227, 154, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(52, 227, 154, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; letter-spacing: 0.5px; }
.brand-text small { font-size: 12px; color: var(--text-3); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta { color: #071009; padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -200px; right: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(52, 227, 154, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}
.hero-copy, .hero-visual { min-width: 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-desc { font-size: 17px; color: var(--text-2); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-meta {
  display: flex;
  gap: 36px;
  list-style: none;
  flex-wrap: wrap;
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: 24px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta span { font-size: 13px; color: var(--text-3); }

.hero-visual { position: relative; }
.hero-shot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-dark { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--text-2); font-size: 16px; }

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(52, 227, 154, 0.35); }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(52, 227, 154, 0.12);
  color: var(--green);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 15px; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.tag-cloud span {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- 下载卡片 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.dl-card {
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-top { display: flex; align-items: center; justify-content: space-between; }
.dl-os { font-size: 20px; font-weight: 700; }
.dl-badge {
  font-size: 12px;
  color: var(--green);
  background: rgba(52, 227, 154, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}
.dl-req { font-size: 13px; color: var(--text-3); }
.dl-desc { font-size: 14px; color: var(--text-2); flex: 1; }
.dl-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 28px; }

/* ---------- 界面预览 ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.preview-shot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.preview-shot.wide { grid-column: span 3; }
.preview-shot img { width: 100%; height: 100%; object-fit: cover; }
.preview-shot.phone { max-width: 320px; margin: 0 auto; width: 100%; }
.preview-shot figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin-bottom: 56px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  color: #071009;
  background: var(--grad);
  border-radius: 10px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

.changelog {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.changelog h3 { margin-bottom: 16px; font-size: 18px; }
.changelog ul { list-style: none; display: grid; gap: 12px; }
.changelog li { color: var(--text-2); font-size: 15px; padding-left: 20px; position: relative; }
.changelog li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.changelog strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 16px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--green);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; position: relative; overflow: hidden; }
.cta-inner {
  text-align: center;
  background: var(--grad);
  border-radius: 28px;
  padding: 60px 32px;
  color: #071009;
}
.cta-inner h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }
.cta-inner .btn-primary { background: #071009; color: var(--lime); box-shadow: none; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--text-2); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 返回顶部 / Toast ---------- */
.back-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card-2);
  color: var(--green);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 120;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-shot.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 15, 12, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .section { padding: 64px 0; }
  .hero { padding: 50px 0; }
}

@media (max-width: 560px) {
  .feature-grid, .steps, .download-grid, .preview-grid, .footer-grid { grid-template-columns: 1fr; }
  .preview-shot.wide { grid-column: span 1; }
  .hero-meta { gap: 22px; }
  .cta-inner { padding: 44px 22px; }
}
