/* ZanZan Live 官网。配色、字体、圆角沿用客户端(docs/design/界面设计.md):深石墨底、系统蓝作选中 / 主按钮,
   青 / 粉是装扮的工作色,只用在示意画面里。 */
:root {
  --bg: #19191b;
  --bg-deep: #0f0f11;
  --bg-panel: #1f1f22;
  --bg-elevated: #26262a;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-hover: rgba(255, 255, 255, 0.12);
  --separator: rgba(255, 255, 255, 0.07);
  --separator-strong: rgba(255, 255, 255, 0.13);
  --text: rgba(255, 255, 255, 0.9);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.42);
  --accent: #0a84ff;
  --accent-hover: #2a95ff;
  --live: #ff453a;
  --ok: #32d74b;
  --cyan: #4ed6e8;
  --pink: #ff5c97;
  --yellow: #f7c948;
  --radius-s: 5px;
  --radius-m: 8px;
  --radius-l: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.icon { flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-m);
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background 0.15s;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-s); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-secondary:hover { background: var(--fill-hover); }
.btn.is-disabled { background: var(--fill); color: var(--text-3); cursor: default; pointer-events: none; }
.btn:focus-visible, .faq-item summary:focus-visible, .nav a:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.45);
}

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(25, 25, 27, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--separator);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; font-size: 13.5px; color: var(--text-2); }
.nav-links a:hover, .lang:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { font-size: 13px; color: var(--text-2); }

/* 首屏 */
.hero { padding: 72px 0 88px; background: radial-gradient(900px 480px at 78% 30%, rgba(10, 132, 255, 0.10), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-hover); margin-bottom: 16px; }
.hero h1 { font-size: 48px; font-weight: 800; }
.lead { margin-top: 20px; font-size: 17px; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* 示意画面:9:16 直播间 + 输出到直播软件 */
.pipeline { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stage {
  position: relative; width: 300px; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 22px; background: var(--bg-deep);
  box-shadow: 0 0 0 1px var(--separator-strong), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.stage-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(255, 92, 151, 0.45), transparent 60%),
    radial-gradient(90% 50% at 15% 10%, rgba(78, 214, 232, 0.35), transparent 60%),
    linear-gradient(180deg, #23243a, #1a1426);
}
.stage-person { position: absolute; left: 50%; bottom: 0; width: 78%; transform: translateX(-50%); fill: rgba(255, 255, 255, 0.16); }
.stage-welcome {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18);
}
.stage-goal {
  position: absolute; top: 56px; left: 14px; right: 14px; padding: 8px 10px;
  border-radius: var(--radius-m); background: rgba(0, 0, 0, 0.38); font-size: 11px;
}
.goal-head { display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.85); }
.goal-bar { margin-top: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.goal-bar i { display: block; width: 52%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--pink)); animation: goal 6s ease-in-out infinite; }
@keyframes goal { 0%, 30% { width: 52%; } 45%, 100% { width: 62%; } }
.stage-rank {
  position: absolute; top: 116px; right: 14px; width: 118px; padding: 8px;
  border-radius: var(--radius-m); background: rgba(0, 0, 0, 0.38); font-size: 10.5px;
}
.rank-title { font-weight: 700; margin-bottom: 4px; color: var(--yellow); }
.rank-row { display: flex; align-items: center; gap: 5px; height: 20px; }
.rank-row .num { margin-left: auto; color: rgba(255, 255, 255, 0.7); }
.rank-n { width: 10px; color: rgba(255, 255, 255, 0.55); }
.av { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.av1 { background: linear-gradient(135deg, #ffb36b, var(--pink)); }
.av2 { background: linear-gradient(135deg, var(--cyan), #6b8bff); }
.av3 { background: linear-gradient(135deg, #a1ffb0, var(--cyan)); }
.stage-toast {
  position: absolute; left: 14px; bottom: 108px; display: flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12px;
  background: linear-gradient(90deg, rgba(255, 92, 151, 0.85), rgba(255, 92, 151, 0.35));
  animation: toast 6s ease-in-out infinite;
}
.stage-toast .av { width: 22px; height: 22px; }
@keyframes toast { 0%, 22% { opacity: 0; transform: translateX(-16px); } 30%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.stage-burst { position: absolute; left: 50%; top: 52%; width: 0; height: 0; }
.stage-burst i {
  position: absolute; width: 16px; height: 16px; margin: -8px;
  background: var(--pink); transform: rotate(45deg); border-radius: 50% 50% 0 50%;
  opacity: 0; animation: burst 6s ease-out infinite;
}
.stage-burst i:nth-child(2n) { background: var(--cyan); }
.stage-burst i:nth-child(1) { --dx: -70px; --dy: -90px; }
.stage-burst i:nth-child(2) { --dx: 60px; --dy: -110px; animation-delay: 0.1s; }
.stage-burst i:nth-child(3) { --dx: -100px; --dy: -20px; animation-delay: 0.2s; }
.stage-burst i:nth-child(4) { --dx: 95px; --dy: -40px; animation-delay: 0.05s; }
.stage-burst i:nth-child(5) { --dx: -30px; --dy: -140px; animation-delay: 0.15s; }
.stage-burst i:nth-child(6) { --dx: 30px; --dy: -60px; animation-delay: 0.25s; }
@keyframes burst {
  0%, 25% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(0.4); }
  32% { opacity: 1; }
  60%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(1.1); }
}
.pipe-out { display: flex; align-items: center; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 12px; border-radius: var(--radius-m);
  background: var(--bg-elevated); border: 1px solid var(--separator-strong); font-size: 13px; font-weight: 600;
}
.chip span { display: flex; flex-direction: column; line-height: 1.3; }
.chip small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.pipe-arrow { color: var(--text-3); display: flex; }

/* 分区 */
.section { padding: 88px 0; border-top: 1px solid var(--separator); }
.section h2 { font-size: 32px; font-weight: 800; text-align: center; }
.section-sub { margin-top: 10px; text-align: center; color: var(--text-2); }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; border-radius: var(--radius-l); background: var(--bg-panel); border: 1px solid var(--separator); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.step h3 { margin-top: 16px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 14px; }

.features { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--separator); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--separator); }
.feature { padding: 28px 24px; background: var(--bg); }
.feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-m); background: var(--fill); color: var(--accent-hover); }
.feature h3 { margin-top: 16px; font-size: 16.5px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 14px; }

/* 定价 */
.plan {
  max-width: 460px; margin: 40px auto 0; padding: 32px;
  border-radius: var(--radius-l); background: var(--bg-panel);
  border: 1px solid var(--separator-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.plan h3 { font-size: 15px; color: var(--text-2); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.price-cur { font-size: 24px; font-weight: 700; }
.price-num { font-size: 52px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { margin-left: 6px; color: var(--text-2); }
.price-alt { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.plan-items { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--separator); display: grid; gap: 10px; font-size: 14px; }
.plan-items li { display: flex; gap: 10px; align-items: flex-start; }
.plan-items .icon { color: var(--ok); margin-top: 3px; }
.plan-buy { display: grid; gap: 10px; margin-top: 26px; }
.plan-buy .btn { width: 100%; }
.plan-notes { margin-top: 18px; display: grid; gap: 8px; font-size: 12.5px; color: var(--text-3); }

/* 常见问题 */
.faq { margin-top: 36px; border-top: 1px solid var(--separator); }
.faq-item { border-bottom: 1px solid var(--separator); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-size: 15.5px; font-weight: 600; border-radius: var(--radius-s);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3); transform: rotate(45deg); transition: transform 0.15s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 0 20px; color: var(--text-2); font-size: 14.5px; }

/* 底部下载 */
.cta-band { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(10, 132, 255, 0.12), transparent 70%); }
.cta-band .btn { margin-top: 28px; }
.cta-version { margin-top: 12px; font-size: 13px; color: var(--text-2); min-height: 1em; }
.cta-req { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.contact {
  display: flex; align-items: center; gap: 20px; max-width: 460px; margin: 40px auto 0; padding: 18px 22px; text-align: left;
  background: var(--bg-elevated); border: 1px solid var(--separator-strong); border-radius: 12px;
}
.contact img { flex: none; width: 110px; height: 110px; padding: 5px; border-radius: 8px; background: #fff; }
.contact h3 { font-size: 15px; }
.contact-text { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.contact-email { margin-top: 8px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.contact-email a { color: var(--cyan); }

/* 页脚 */
.footer { border-top: 1px solid var(--separator); padding: 36px 0 48px; background: var(--bg-deep); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-brand img { border-radius: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: 13px; color: var(--text-2); }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }

/* 法律页 */
.legal { padding-top: 40px; padding-bottom: 80px; }
.legal .back { font-size: 13px; color: var(--text-2); }
.legal .back:hover { color: var(--text); }
.legal h1 { margin-top: 20px; font-size: 34px; font-weight: 800; }
.legal .updated { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.legal h2 { margin-top: 36px; font-size: 19px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent-hover); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .goal-bar i, .stage-toast, .stage-burst i { animation: none; }
  .stage-toast { opacity: 1; }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 38px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 31px; }
  .lead { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stage { width: min(280px, 82vw); }
  .pipe-out { flex-direction: column; gap: 6px; }
  .pipe-arrow { transform: rotate(90deg); }
  .section { padding: 64px 0; }
  .section h2 { font-size: 26px; }
  .steps, .features { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .contact { gap: 14px; padding: 14px; }
  .contact img { width: 92px; height: 92px; }
  .nav-actions .btn-sm { display: none; }
}
