/* MilkDrop 车载可视化播放器 · 下载落地页（独立样式） */
:root {
  --bg: #0a0612;
  --bg-soft: #110a1c;
  --card: #181027;
  --card-2: #1f1535;
  --line: #2a1f44;
  --text: #f3eafe;
  --dim: #b8a3d8;
  --faint: #7a6890;
  --pink: #d946ef;
  --pink-2: #f0abfc;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --violet: #a855f7;
  --r: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1100px 520px at 85% -120px, rgba(217,70,239,.12), transparent 60%),
    radial-gradient(900px 480px at -10% -80px, rgba(34,211,238,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,6,18,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
nav { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand small { font-weight: 400; color: var(--faint); font-size: .72rem; letter-spacing: .06em; }
nav .spacer { flex: 1; }
nav .navlink { color: var(--dim); font-size: .9rem; padding: 6px 4px; transition: color .15s; }
nav .navlink:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #0a0612; font-weight: 700; font-size: .88rem;
  padding: 8px 16px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(217,70,239,.28);
}
.nav-cta:active { transform: scale(.97); }

/* ---------- 下载提示条 ---------- */
.inapp-tip {
  display: none; position: relative; z-index: 60;
  background: linear-gradient(90deg, #1a1030, #221540);
  border-bottom: 1px solid rgba(217,70,239,.35);
  color: var(--pink-2); font-size: .86rem; text-align: center; padding: 10px 44px 10px 16px;
}
.inapp-tip b { color: #fff; }
.inapp-tip.show { display: block; }
.inapp-tip .x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 1.1rem; padding: 4px 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.app-icon {
  width: 92px; height: 92px; border-radius: 24px; display: block;
  box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 40px rgba(217,70,239,.25);
}
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin: 18px 0 10px; letter-spacing: .01em; }
.hero h1 .hl { background: linear-gradient(135deg, var(--pink-2), var(--cyan-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { color: var(--dim); font-size: 1.08rem; max-width: 460px; }
.hero .meta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: .78rem; color: var(--dim); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.chip.pink { color: var(--pink-2); border-color: rgba(217,70,239,.4); }

.cta-row { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--cyan));
  background-size: 200% 100%; background-position: 0% 0%;
  color: #0a0612; font-weight: 800; font-size: 1.12rem;
  padding: 17px 34px; border-radius: 16px;
  box-shadow: 0 14px 36px rgba(217,70,239,.30);
  transition: transform .12s, box-shadow .12s, background-position .4s;
}
.btn-download:hover { background-position: 100% 0%; box-shadow: 0 18px 44px rgba(34,211,238,.35); }
.btn-download:active { transform: translateY(1px) scale(.99); }
.btn-download svg { width: 24px; height: 24px; }
.cta-note { color: var(--faint); font-size: .82rem; }
.cta-note a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: var(--pink-2); }

/* Hero 右侧：CSS 可视化器动画（无截图，纯 CSS 还原频谱跳动） */
.hero-visual { position: relative; display: flex; justify-content: center; }
.viz-card {
  width: 100%; max-width: 380px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(217,70,239,.25);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 80px rgba(168,85,247,.12);
  background: linear-gradient(180deg, #1a1030 0%, #0a0612 100%);
}
.viz-titlebar {
  height: 30px; background: #140d24; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.viz-dot { width: 11px; height: 11px; border-radius: 50%; }
.viz-dot.r { background: #ff5f57; }
.viz-dot.y { background: #febc2e; }
.viz-dot.g { background: #28c840; }
.viz-titlebar .tb-title { margin-left: 10px; font-size: .72rem; color: var(--faint); }
.viz-body { position: relative; padding: 26px 22px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
/* 频谱条 */
.viz-bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 150px; }
.viz-bar {
  width: 12px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--pink-2), var(--pink) 40%, var(--violet) 70%, var(--cyan));
  transform-origin: bottom;
  animation: vizPulse 1.1s ease-in-out infinite;
}
.viz-bar:nth-child(1) { animation-delay: 0s;    animation-duration: .9s; }
.viz-bar:nth-child(2) { animation-delay: .12s; animation-duration: 1.2s; }
.viz-bar:nth-child(3) { animation-delay: .24s; animation-duration: .8s; }
.viz-bar:nth-child(4) { animation-delay: .06s; animation-duration: 1.0s; }
.viz-bar:nth-child(5) { animation-delay: .30s; animation-duration: 1.3s; }
.viz-bar:nth-child(6) { animation-delay: .18s; animation-duration: .95s; }
.viz-bar:nth-child(7) { animation-delay: .09s; animation-duration: 1.15s; }
.viz-bar:nth-child(8) { animation-delay: .21s; animation-duration: .85s; }
.viz-bar:nth-child(9) { animation-delay: .15s; animation-duration: 1.05s; }
.viz-bar:nth-child(10){ animation-delay: .27s; animation-duration: 1.25s; }
.viz-bar:nth-child(11){ animation-delay: .03s; animation-duration: .9s; }
.viz-bar:nth-child(12){ animation-delay: .33s; animation-duration: 1.1s; }
@keyframes vizPulse {
  0%, 100% { height: 18%; opacity: .7; }
  50% { height: 95%; opacity: 1; filter: drop-shadow(0 0 8px rgba(217,70,239,.6)); }
}
/* 波形线 */
.viz-wave {
  position: absolute; left: 22px; right: 22px; bottom: 14px; height: 30px;
  background: radial-gradient(circle at 50% 100%, rgba(34,211,238,.25), transparent 70%);
}
.viz-wave svg { width: 100%; height: 100%; }
.viz-wave path { fill: none; stroke: var(--cyan-2); stroke-width: 2; opacity: .8;
  filter: drop-shadow(0 0 4px rgba(34,211,238,.6));
  animation: waveMove 3s linear infinite;
}
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.viz-badge {
  position: absolute; right: 16px; top: 16px;
  font-size: .68rem; color: var(--cyan-2); border: 1px solid rgba(34,211,238,.4);
  background: rgba(34,211,238,.08); border-radius: 999px; padding: 3px 10px;
}
.viz-np {
  position: absolute; left: 22px; top: 16px; font-size: .72rem; color: var(--dim);
  display: flex; align-items: center; gap: 6px;
}
.viz-np .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.viz-np .eq i { width: 2px; background: var(--pink-2); border-radius: 1px; animation: eq 0.8s ease-in-out infinite; }
.viz-np .eq i:nth-child(1){ height: 60%; animation-delay: 0s; }
.viz-np .eq i:nth-child(2){ height: 100%; animation-delay: .15s; }
.viz-np .eq i:nth-child(3){ height: 70%; animation-delay: .3s; }
.viz-np .eq i:nth-child(4){ height: 90%; animation-delay: .1s; }
@keyframes eq { 0%,100%{ transform: scaleY(.4); } 50%{ transform: scaleY(1); } }

/* ---------- 区块 ---------- */
section.block { padding: 58px 0 8px; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-size: 1.7rem; }
.sec-head p { color: var(--dim); margin-top: 8px; font-size: .98rem; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px;
  transition: transform .15s, border-color .15s;
}
.feat:hover { transform: translateY(-3px); border-color: rgba(217,70,239,.4); }
.feat .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217,70,239,.12); margin-bottom: 14px;
}
.feat .ic svg { width: 22px; height: 22px; stroke: var(--pink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 1.04rem; margin-bottom: 6px; }
.feat p { color: var(--dim); font-size: .88rem; }

/* ---------- 效果画廊 ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fx {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 10px; text-align: center; transition: border-color .15s, transform .15s;
}
.fx:hover { border-color: rgba(34,211,238,.4); transform: translateY(-2px); }
.fx .fx-ic { font-size: 1.4rem; margin-bottom: 6px; }
.fx h4 { font-size: .86rem; font-weight: 600; }
.fx p { font-size: .72rem; color: var(--faint); margin-top: 2px; }

/* ---------- 安装步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 22px 22px;
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #0a0612;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: .86rem; }
.step .kbd {
  display: inline-block; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 8px; font-size: .82rem; color: var(--pink-2);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 600; font-size: .96rem;
  display: flex; align-items: center; gap: 10px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--pink); font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 20px 18px; color: var(--dim); font-size: .9rem; }
.qa .a b, .qa .a strong { color: var(--text); }

/* ---------- 下载大卡 ---------- */
.cta-band {
  margin: 64px 0 0; border-radius: 26px; padding: 44px 34px; text-align: center;
  background:
    radial-gradient(600px 240px at 50% -60px, rgba(217,70,239,.16), transparent 70%),
    var(--card);
  border: 1px solid rgba(217,70,239,.25);
}
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: var(--dim); margin: 8px 0 24px; font-size: .95rem; }
.cta-band .btn-download { font-size: 1.05rem; padding: 15px 30px; }
.cta-band .alt { margin-top: 14px; font-size: .82rem; color: var(--faint); }

/* ---------- 微信二维码弹窗 ---------- */
.wx-link { color: var(--pink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wx-link:hover { color: var(--cyan-2); }
.wx-mask {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(5,3,8,.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.wx-mask.show { display: flex; }
.wx-box {
  position: relative; width: 100%; max-width: 330px; text-align: center;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px 24px; box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: wxPop .18s ease-out;
}
@keyframes wxPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wx-box h3 { font-size: 1.15rem; }
.wx-sub { color: var(--dim); font-size: .85rem; margin-top: 6px; }
.wx-box img {
  display: block; width: 224px; max-width: 78%; height: auto; margin: 18px auto 0;
  background: #fff; padding: 10px; border-radius: 14px;
}
.wx-tip { color: var(--faint); font-size: .78rem; margin-top: 14px; line-height: 1.6; }
.wx-close {
  position: absolute; right: 10px; top: 8px; width: 36px; height: 36px;
  background: none; border: 0; color: var(--dim); font-size: 1.5rem; line-height: 1;
  cursor: pointer; border-radius: 50%;
}
.wx-close:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ---------- 页脚 ---------- */
footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 30px 20px; text-align: center; color: var(--faint); font-size: .84rem; }
footer a { color: var(--dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 36px 0 10px; text-align: center; }
  .hero .sub { margin: 0 auto; }
  .hero .meta { justify-content: center; }
  .cta-row { align-items: center; }
  .btn-download { width: 100%; justify-content: center; }
  .hero-visual { order: -1; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .fx-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .viz-card { max-width: 100%; }
  .fx-grid { grid-template-columns: repeat(2, 1fr); }
  .brand small { display: none; }
}
