/* ================= 省心播 · 下载页 ================= */
:root {
  --bg: #0a0b10;
  --bg-2: #11131b;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f8;
  --text-2: #a5a9b8;
  --text-3: #6d7284;
  --red: #ef4136;
  --orange: #ff8a3d;
  --grad: linear-gradient(135deg, #ff5a4e 0%, #ef4136 45%, #ff8a3d 100%);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow-1 { width: 520px; height: 520px; background: #ef4136; top: -180px; right: -120px; opacity: 0.35; animation: float 14s ease-in-out infinite; }
.glow-2 { width: 420px; height: 420px; background: #ff8a3d; bottom: 10%; left: -160px; opacity: 0.18; animation: float 18s ease-in-out infinite reverse; }
.glow-3 { width: 360px; height: 360px; background: #5b4bff; top: 40%; right: 20%; opacity: 0.12; animation: float 20s ease-in-out infinite; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 40px); }
}

/* ---------- 顶部 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 11, 16, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: 1px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(239, 65, 54, 0.45); }
.nav-btn {
  font-size: 14px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); transition: all .2s;
}
.nav-btn:hover { background: #fff; color: #111; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #ffb4ad; padding: 6px 14px; border-radius: 999px;
  background: rgba(239, 65, 54, 0.12); border: 1px solid rgba(239, 65, 54, 0.3);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239,65,54,.7); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,65,54,.7); }
  70% { box-shadow: 0 0 0 9px rgba(239,65,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,65,54,0); }
}
.hero h1 { font-size: 56px; line-height: 1.18; font-weight: 800; letter-spacing: 1px; margin: 22px 0 18px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-2); max-width: 540px; }

.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px 14px 22px; border-radius: 16px;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(239, 65, 54, 0.75), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(239, 65, 54, 0.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-download:active { transform: translateY(0) scale(.98); }
.btn-download svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; }
.btn-text { display: flex; flex-direction: column; line-height: 1.3; }
.btn-text strong { font-size: 18px; letter-spacing: 1px; }
.btn-text em { font-style: normal; font-size: 12px; opacity: .85; margin-top: 2px; }
.btn-download.small { padding: 14px 40px; }
.btn-ghost {
  padding: 14px 22px; border-radius: 16px; font-size: 15px; color: var(--text);
  border: 1px solid var(--card-border); background: var(--card); transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.tip { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* ---------- 手机展示 ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: 270px; height: 550px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2d38, #15171f);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.04);
  transform: rotate(-4deg); animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 82px; height: 22px; margin-left: -41px; background: #0a0b10; border-radius: 12px; z-index: 2; }
.screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3b1a1f 0%, #16121a 55%, #0d0d12 100%);
  padding: 48px 14px 14px; display: flex; flex-direction: column;
}
.live-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.live-tag { display: flex; align-items: center; gap: 5px; background: var(--grad); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.live-tag span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.viewer { color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 999px; }
.live-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.live-center img { width: 74px; height: 74px; border-radius: 20px; box-shadow: 0 0 0 6px rgba(239,65,54,.15), 0 0 40px rgba(239,65,54,.55); }
.wave { display: flex; gap: 4px; align-items: center; height: 26px; }
.wave i { width: 4px; height: 8px; border-radius: 3px; background: var(--grad); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; }
.wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 50% { height: 26px; } }
.ai-say { font-size: 11px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 10px; }
.danmu { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.danmu li {
  align-self: flex-start; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 12px; color: rgba(255,255,255,.9);
  opacity: 0; animation: danmuIn .6s forwards;
}
.danmu li b { color: #ffb37a; font-weight: 500; margin-right: 4px; }
.danmu li:nth-child(1) { animation-delay: .4s; } .danmu li:nth-child(2) { animation-delay: 1.1s; }
.danmu li:nth-child(3) { animation-delay: 1.8s; } .danmu li:nth-child(4) { animation-delay: 2.5s; }
@keyframes danmuIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(20, 22, 30, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.7);
}
.float-card strong { display: block; font-size: 13px; }
.float-card em { font-style: normal; font-size: 11px; color: var(--text-2); }
.fc-icon { font-size: 20px; }
.fc-1 { top: 150px; left: 0; animation: phoneFloat2 7s ease-in-out infinite; }
.fc-2 { bottom: 80px; right: 0; animation: phoneFloat2 8s ease-in-out infinite reverse; }
@keyframes phoneFloat2 { 50% { transform: translateY(-10px); } }

/* ---------- 区块通用 ---------- */
.section-title { font-size: 34px; text-align: center; font-weight: 800; letter-spacing: 1px; }
.section-sub { text-align: center; color: var(--text-2); margin-top: 10px; }

/* ---------- 功能 ---------- */
.features { padding: 80px 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--card-border); transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(239, 65, 54, 0.4); }
.f-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: rgba(239, 65, 54, 0.12); border: 1px solid rgba(239, 65, 54, 0.25);
}
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { font-size: 14px; color: var(--text-2); }

/* ---------- 步骤 ---------- */
.steps { padding: 70px 0 90px; }
.step-list { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }
.step { flex: 1; max-width: 280px; text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.step .num { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 17px; margin: 6px 0 6px; }
.step p { font-size: 13px; color: var(--text-2); }
.step-line { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,65,54,.7), transparent); flex-shrink: 0; }
.cta { text-align: center; margin-top: 44px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--text-3); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer p + p { margin-top: 4px; }
.footer a:hover { color: var(--text-2); }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 22px; animation: fadeIn .2s; }
.modal-card { width: 100%; max-width: 460px; max-height: 76vh; display: flex; flex-direction: column; background: #161821; border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; animation: popIn .25s; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.modal-head h3 { font-size: 18px; }
.modal-close { font-size: 26px; line-height: 1; color: var(--text-2); padding: 0 4px; }
.modal-meta { padding: 6px 22px 0; font-size: 12px; color: var(--text-3); }
.modal-body { padding: 16px 22px 24px; overflow-y: auto; font-size: 14px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }

/* ---------- 微信遮罩 ---------- */
.wx-mask { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.86); color: #fff; }
.wx-arrow { position: absolute; top: 8px; right: 18px; width: 90px; height: 90px; }
.wx-arrow svg { width: 100%; height: 100%; }
.wx-text { position: absolute; top: 110px; right: 30px; left: 30px; text-align: right; font-size: 18px; line-height: 2; }
.wx-text b { color: #ffb37a; font-weight: 600; margin: 0 4px; }
.wx-sub { font-size: 14px; color: rgba(255,255,255,.7); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  background: rgba(30, 32, 42, 0.95); border: 1px solid var(--card-border); padding: 12px 20px; border-radius: 12px;
  font-size: 14px; max-width: 86vw; text-align: center; animation: fadeIn .2s;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 20px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .lead { margin: 0 auto; font-size: 15px; }
  .hero h1 { font-size: 40px; margin: 18px 0 14px; }
  .download-box { justify-content: center; margin-top: 26px; }
  .btn-download { width: 100%; max-width: 340px; justify-content: center; }
  .btn-ghost { width: 100%; max-width: 340px; }
  .hero-visual { transform: scale(.86); margin: -20px 0 -40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 20px 16px; }
  .feature h3 { font-size: 16px; margin-top: 14px; }
  .feature p { font-size: 13px; }
  .section-title { font-size: 26px; }
  .features { padding: 50px 0 20px; }
  .step-list { flex-direction: column; gap: 12px; }
  .step { width: 100%; max-width: 420px; }
  .step-line { width: 1px; height: 22px; background: linear-gradient(180deg, transparent, rgba(239,65,54,.7), transparent); }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .fc-1 { left: -6px; } .fc-2 { right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .danmu li { opacity: 1; }
}
