/* ==========================================================
   MiguGo 官网样式
   主色：咪咕品牌玫粉 #E6216A，辅以浅粉渐变与深蓝播放场景
   ========================================================== */

:root {
  --primary: #e6216a;
  --primary-strong: #c4145a;
  --primary-soft: #fdecf3;
  --rose-200: #f8cfe0;
  --ink: #211a26;
  --body: #554e5c;
  --muted: #8f8798;
  --bg: #fdfbfd;
  --card: #ffffff;
  --line: #f3e6ee;
  --navy: #0c1930;
  --navy-2: #14263f;
  --shadow-sm: 0 2px 10px rgba(60, 20, 45, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(160, 30, 80, 0.18);
  --shadow-lg: 0 32px 64px -24px rgba(140, 25, 75, 0.28);
  --radius: 18px;
  --font: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI",
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system,
    sans-serif;
}

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

html { scroll-behavior: smooth; }

/* clip 不会产生滚动容器：既裁掉漂浮卡片的横向溢出，又不影响整页截图与锚点定位 */
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 700; }

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(760px, calc(100% - 48px)); }

section { scroll-margin-top: 88px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #f0569b, var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(230, 33, 106, 0.55);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ec4490, var(--primary-strong));
  box-shadow: 0 14px 30px -8px rgba(230, 33, 106, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--rose-200);
  color: var(--primary-strong);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn-ghost { color: var(--body); padding: 9px 14px; }
.btn-ghost:hover { color: var(--primary-strong); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  font-size: 14px;
}
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 36px;
  height: 36px;
  /* 与官方图标自带的圆角（约 19%）对齐，阴影才能贴合轮廓 */
  border-radius: 7px;
  box-shadow: 0 4px 12px -2px rgba(230, 33, 106, 0.45);
}
.brand-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary-strong); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 158px 0 72px;
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(240, 86, 155, 0.20), transparent 62%),
    radial-gradient(720px 420px at -8% 18%, rgba(230, 33, 106, 0.10), transparent 60%),
    linear-gradient(180deg, #fff3f8 0%, var(--bg) 78%);
}
.hero::after {
  /* 底部与下一节过渡的细碎光点 */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rose-200);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 33, 106, 0.18);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.grad-text {
  background: linear-gradient(120deg, #f0569b, var(--primary) 55%, #b90f57);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc { font-size: 17px; max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.65;
}

/* Hero 视觉：窗口框 + 漂浮卡片 */
.hero-visual { position: relative; }

.window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #faf6f9;
  border-bottom: 1px solid var(--line);
}
.window-bar-dark { background: #101a2b; border-bottom-color: rgba(255, 255, 255, 0.06); }
.wdot { width: 9px; height: 9px; border-radius: 50%; background: #ecc7d8; }
.wdot:nth-child(1) { background: #f383ae; }
.wdot:nth-child(2) { background: #ee5c95; }
.wdot:nth-child(3) { background: #e6216a; }
.window-title {
  margin-inline: auto;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.window-bar-dark .window-title { color: rgba(255, 255, 255, 0.45); }
.window img { width: 100%; height: auto; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-a { top: 44px; right: -18px; }
.float-b { bottom: 40px; left: -22px; animation-delay: 2.5s; }
.fc-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
}
.fc-icon-pink { background: linear-gradient(135deg, #f0569b, var(--primary)); }
.fc-icon-rose { background: linear-gradient(135deg, #f778ba, #e13a77); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 数据亮点条 */
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 10px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  border-left: 1px solid var(--line);
}
.stat dt { font-size: 30px; font-weight: 800; color: var(--primary-strong); letter-spacing: -0.02em; }
.stat dd { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }

.section-tint {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(240, 86, 155, 0.07), transparent 60%),
    #fbf5f9;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid var(--rose-200);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- 功能特性 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-200);
  box-shadow: var(--shadow-md);
}
.f-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), #fdd9e8);
  color: var(--primary-strong);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--body); }

/* ---------- 界面预览 ---------- */
.preview-group { margin-bottom: 56px; }
.preview-group:last-child { margin-bottom: 0; }
.preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--primary-strong);
  margin-bottom: 18px;
}

.preview-windows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.preview-windows .window { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.preview-windows .window:hover { transform: translateY(-6px); }

.preview-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

figcaption {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 0 6px;
}
.window figcaption { border-top: 1px solid var(--line); }

/* 手机框 */
.phone {
  background: #171b24;
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  width: min(270px, 78vw);
}
.phone img { border-radius: 24px; width: 100%; height: auto; }

/* ---------- 沉浸播放（深色区） ---------- */
.player {
  position: relative;
  background:
    radial-gradient(900px 500px at 78% 110%, rgba(38, 74, 130, 0.55), transparent 60%),
    radial-gradient(700px 420px at 8% -10%, rgba(230, 33, 106, 0.22), transparent 55%),
    linear-gradient(160deg, #0a1428, #101d38 60%, #0a1428);
  color: #c7cfdd;
  padding: 104px 0;
  overflow: hidden;
}
.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(600px 400px at 80% 40%, #000, transparent);
  pointer-events: none;
}

.player-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-dark {
  color: #ff8ab8;
  background: rgba(230, 33, 106, 0.16);
  border-color: rgba(240, 86, 155, 0.35);
}
.player h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.player p { color: #aab4c6; }

.check-list {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 13px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: #d6ddea;
}
.check-list li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(230, 33, 106, 0.18) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff7fb0" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4 4 9-9"/></svg>') center/12px no-repeat;
}

.player-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.player-visual .phone { width: min(250px, 70vw); z-index: 2; }
.phone-tilt { transform: rotate(-3deg) translateY(18px); }
.player-window {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: -26px;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- 下载 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0569b, var(--primary));
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(230, 33, 106, 0.5);
}
.dl-head h3 { font-size: 19px; }
.dl-sub { font-size: 13px; color: var(--muted); }
.dl-card > p { font-size: 14.5px; flex: 1; }

.dl-code {
  display: block;
  background: #211a26;
  color: #ffd3e4;
  font-family: "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

.clone-bar {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.clone-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.clone-bar code {
  flex: 1;
  min-width: 200px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13.5px;
  color: var(--primary-strong);
  overflow-x: auto;
  white-space: nowrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rose-200);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.copy-btn:hover { border-color: var(--primary); }
.copy-btn.copied { background: var(--primary); border-color: var(--primary); color: #fff; }

.dl-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.dl-note a { color: var(--primary-strong); font-weight: 600; }
.dl-note a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.faq-list details[open] { border-color: var(--rose-200); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  padding: 16px 34px 16px 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 0 18px;
  font-size: 14.5px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ---------- 免责声明 ---------- */
.notice {
  background: linear-gradient(135deg, #fff8fb, var(--primary-soft));
  border: 1px solid var(--rose-200);
  border-radius: 20px;
  padding: 34px 36px;
}
.notice h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  color: var(--primary-strong);
  margin-bottom: 12px;
}
.notice p { font-size: 14px; color: #7c6375; line-height: 1.9; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fdf7fa;
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  width: fit-content;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-strong); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-made .heart { color: var(--primary); }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .phone-tilt { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .player-inner { grid-template-columns: 1fr; }
  .player-visual { justify-content: center; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { padding: 128px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .float-a { right: -6px; }
  .float-b { left: -6px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3)::before { display: none; }
  .player { padding: 80px 0; }
  .player-visual { flex-direction: column; gap: 28px; }
  .player-window { margin-left: 0; width: 100%; }
  .phone-tilt { transform: rotate(-2deg); }
  .download-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats { padding: 22px 6px; }
  .stat dt { font-size: 24px; }
  .btn-ghost { display: none; }
  .float-card { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .notice { padding: 26px 22px; }
}
