/* ════════════════════════════════════════════════════════════════
   AI 宠物反应相机 · Marketing Landing · 浅色主题
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fff5f8;
  --bg-tint: #fbeef3;
  --bg-warm: #faf4ff;
  --pink: #ff4d8d;
  --pink-soft: #ffd5e3;
  --pink-100: #ffe5ee;
  --purple: #8a7bff;
  --purple-soft: #ddd4ff;
  --purple-100: #ebf0ff;
  --text: #1f1530;
  --text-2: #4a4a5a;
  --muted: #8a8aa0;
  --border: #f1e7ee;
  --card: #ffffff;
  --shadow: 0 6px 22px rgba(255, 100, 160, .12);
  --shadow-purple: 0 6px 22px rgba(138, 123, 255, .15);
  --shadow-soft: 0 4px 14px rgba(60, 30, 80, .06);
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff5f8 0%, #fff8f3 60%, #faf5ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }

/* ══════════════════ Install Banner ══════════════════ */
.install-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + var(--sab));
  z-index: 200;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: slideUp .35s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.install-content { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.install-icon { width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #ffb3c8);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.install-text { display: flex; flex-direction: column; min-width: 0; }
.install-text b { font-size: .92rem; color: var(--text); }
.install-text small { color: var(--muted); font-size: .72rem; }
.install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-cta {
  padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), #ff7aa6); color: white;
  font-weight: 800; font-size: .82rem; font-family: inherit;
}
.install-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: white; color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1; font-family: inherit;
}

/* ══════════════════ Main / Hero Title ══════════════════ */
#landing {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding:
    max(22px, var(--sat))
    calc(20px + var(--sal))
    max(28px, var(--sab))
    calc(20px + var(--sar));
}

.hero-title { text-align: center; margin-bottom: 22px; }
.hero-title h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: 1px;
  color: var(--text); display: inline-flex; align-items: center; gap: 8px;
}
.hero-title .heart { color: var(--pink); }
.hero-title .subtitle {
  margin-top: 8px; font-size: clamp(.95rem, 2.6vw, 1.05rem);
  color: var(--text-2); font-weight: 500;
}

/* ══════════════════ Hero Row 3-column ══════════════════ */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.mode-card,
.howto-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.mode-card { overflow: hidden; }
.mode-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.mode-card-head h2 {
  font-size: 1.05rem; font-weight: 800;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-purple { background: var(--purple); box-shadow: 0 0 0 4px rgba(138, 123, 255, .15); }
.dot-pink { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 77, 141, .15); }

.mode-tagline { font-size: .85rem; color: var(--text-2); line-height: 1.5; }
.mode-pair { display: flex; gap: 8px; margin-top: 10px; }
.mode-pair img {
  flex: 1; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-soft));
}
.mode-pair-cell {
  flex: 1; aspect-ratio: 1/1; border-radius: 14px;
  background-size: cover; background-position: center;
}
.mode-pair-user {
  background: linear-gradient(135deg, var(--purple-100), #d4c4ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple); font-size: .82rem; font-weight: 700;
}
.mode-pair-pet {
  background-color: var(--purple-soft);
}

/* ── Phone Mock (中间的手机预览) ── */
.phone-mock { display: flex; align-items: stretch; }
.phone-frame {
  position: relative; width: 100%;
  background: linear-gradient(180deg, #fff, #fdf6fb);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 12px 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 14px 40px rgba(80, 30, 90, .10);
}
.phone-status {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; color: var(--muted); white-space: nowrap;
}
.phone-countdown {
  display: flex; justify-content: center; align-items: center;
  margin-top: 8px;
}
.cd-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #fff7fb);
  border: 2px solid var(--pink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 77, 141, .25);
}
.cd-num { font-size: 1.6rem; font-weight: 900; color: var(--pink); }
.phone-preview {
  width: 100%; aspect-ratio: 9/14;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #e9d8ff, #ffd5e3);
  display: flex; align-items: center; justify-content: center;
}
.phone-preview img { width: 100%; height: 100%; object-fit: cover; }
.phone-step { display: flex; flex-direction: column; gap: 6px; }
.phone-step-label {
  font-size: .78rem; color: var(--text-2);
}
.phone-step-label b { font-size: .82rem; }
.phone-pets { display: flex; gap: 8px; }
.pp {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--pink);
}
.pp img { width: 100%; height: 100%; object-fit: cover; }
.pp-add {
  background: linear-gradient(135deg, #f4f4f6, #e9e9ef);
  color: var(--muted); font-weight: 800;
  border: 1px dashed var(--border);
}
.phone-modes { display: flex; gap: 6px; }
.pm {
  flex: 1; padding: 7px 10px; border-radius: 999px;
  background: #f3f3f7; color: var(--text-2); border: 1px solid transparent;
  font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.pm-on {
  background: var(--purple-100); color: var(--purple); border-color: var(--purple-soft);
}
.phone-cta {
  margin-top: 4px;
  width: 100%; padding: 10px 14px;
  border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), #ff7aa6); color: white;
  font-weight: 800; font-size: .9rem; font-family: inherit;
  box-shadow: 0 6px 18px rgba(255, 77, 141, .35);
  transition: transform .12s, filter .2s;
}
.phone-cta:hover { filter: brightness(1.05); }
.phone-cta:active { transform: translateY(1px); }

/* ── How To Play (右) ── */
.howto-card { display: flex; flex-direction: column; }
.howto-head { margin-bottom: 10px; }
.howto-head h2 { font-size: 1.05rem; font-weight: 800; }
.howto-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.howto-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fbf2ff 0%, #fff8fb 100%);
  border: 1px solid #f6e9f2;
  position: relative;
}
.howto-list li div { flex: 1; min-width: 0; }
.howto-list li b { font-size: .9rem; color: var(--text); display: block; }
.howto-list li small { font-size: .78rem; color: var(--text-2); }
.howto-list li .step {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #a89aff);
  color: white; font-weight: 900; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(138, 123, 255, .35);
  flex-shrink: 0;
}
.howto-list li .hi {
  position: absolute; right: 10px; top: 10px; font-size: 1.05rem;
  opacity: .8;
}

/* ══════════════════ Demo Blocks ══════════════════ */
.demo-block { margin-bottom: 28px; }
.demo-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 0 4px;
}
.demo-head h2 {
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.demo-tip { font-size: .82rem; color: var(--text-2); font-weight: 500; }
.pink-tip { color: var(--pink); }

.demo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.demo-cell {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 10px;
  box-shadow: var(--shadow-soft);
}
.demo-cell .demo-cap {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .85rem; font-weight: 800;
  margin-bottom: 8px; padding: 2px 0;
}
.demo-cell img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
  background: linear-gradient(135deg, #f5f5fb, #faf5fb);
}
.demo-follow .demo-cell .demo-cap { color: var(--purple); }
.demo-react .demo-cell .demo-cap { color: var(--pink); }
.demo-fallback {
  width: 100%; aspect-ratio: 1/1; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--muted); text-align: center; padding: 8px;
  background: linear-gradient(135deg, #f5f5fb, #faf5fb);
}
.demo-follow .demo-fallback { background: linear-gradient(135deg, #efe8ff, #f8f0ff); }
.demo-react .demo-fallback  { background: linear-gradient(135deg, #ffe5ee, #fff0f5); }
.demo-petcap {
  margin-top: 6px; text-align: center;
  font-size: .78rem; font-weight: 700; color: var(--pink);
}
.demo-more {
  text-align: center; margin-top: 12px;
  font-size: .82rem; font-weight: 700;
}
.more-purple { color: var(--purple); }
.more-pink { color: var(--pink); }
.more-center { padding-top: 8px; }

/* ══════════════════ Results + Templates Row ══════════════════ */
.results-templates {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card-title {
  font-size: 1.05rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.card-title small { font-size: .82rem; color: var(--muted); font-weight: 500; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-cell { display: flex; flex-direction: column; gap: 8px; }
.result-cap {
  font-size: .85rem; font-weight: 700; color: var(--text);
  text-align: center;
}
.result-tile {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #f7eee5, #ffe5ee);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.rt-meme { background: linear-gradient(135deg, #ffd5e3, #ffb3c8); }
.rt-pair { background: linear-gradient(135deg, #d4e8ff, #ffe1ec); }
.rt-gif  { background: linear-gradient(135deg, #ffe9d5, #ffd1d8); }
.rt-fallback { background: linear-gradient(135deg, #efefef, #f8f8f8); }
.result-tile img { width: 100%; height: 100%; object-fit: cover; }
.rt-sticker {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: white; color: var(--pink);
  padding: 3px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.rt-caption {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .55); color: white;
  padding: 3px 10px; border-radius: 8px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.rt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .55); color: white;
  padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 800;
}

/* ── Templates (文字气泡) ── */
.bubble-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bubble {
  padding: 8px 14px; border-radius: 16px;
  font-size: .85rem; font-weight: 700;
  border: 1px solid transparent;
}
.bub-purple {
  background: var(--purple-100);
  color: #553db5;
  border-color: var(--purple-soft);
}
.bub-pink {
  background: var(--pink-100);
  color: #b81f5a;
  border-color: var(--pink-soft);
}

/* ══════════════════ Features Bar ══════════════════ */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 24px;
}
.feat {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feat-purple { background: var(--purple-100); color: var(--purple); }
.feat-pink { background: var(--pink-100); color: var(--pink); }
.feat b { font-size: .9rem; display: block; color: var(--text); }
.feat small { font-size: .74rem; color: var(--muted); }

/* ══════════════════ My Pets Quick Bar ══════════════════ */
.my-pets-bar {
  position: fixed; left: 12px; right: 12px; top: calc(12px + var(--sat));
  z-index: 150;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  animation: slideDown .3s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.my-pets-title { display: flex; flex-direction: column; min-width: 0; }
.my-pets-title span { font-weight: 800; font-size: .9rem; }
.my-pets-title small { font-size: .72rem; color: var(--muted); }
.my-pets-list { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.my-pets-list::-webkit-scrollbar { height: 0; }
.my-pet-chip {
  flex-shrink: 0; padding: 4px 12px 4px 4px;
  display: flex; align-items: center; gap: 6px;
  background: var(--purple-100); border: 1px solid var(--purple-soft);
  border-radius: 999px; color: #553db5; cursor: pointer;
  font-size: .78rem; font-family: inherit; font-weight: 700;
}
.my-pet-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ══════════════════ Studio (全屏拍摄模态) ══════════════════ */
.studio {
  position: fixed; inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, #fff5f8, #fdf7fb);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--sat); padding-bottom: var(--sab);
}
.studio-setup { padding: 12px 16px; }
.setup-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.setup-back {
  background: var(--purple-100); color: var(--purple);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--purple-soft);
  font-size: 1.2rem; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.setup-extra {
  background: var(--pink-100); color: var(--pink);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--pink-soft);
  font-size: 1rem; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.setup-title { font-size: 1rem; font-weight: 800; }

.setup-section { margin-top: 14px; }
.setup-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.hint-badge {
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: #d1fbe7; color: #08704a;
  border: 1px solid rgba(8, 112, 74, .2);
  margin-left: auto;
}
.hint-badge.heavy { background: var(--pink-100); color: var(--pink); border-color: var(--pink-soft); }

.pet-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.pet-btn {
  border-radius: 999px; border: 1px solid var(--border);
  background: white; color: var(--text-2);
  padding: 7px 12px; font-size: .78rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.pet-btn .pet-img img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
}
.pet-btn:hover { color: var(--text); border-color: var(--purple); }
.pet-btn.active { color: var(--purple); border-color: var(--purple); background: var(--purple-100); }

.chip {
  display: inline-block; padding: 8px 14px;
  border-radius: 999px;
  background: white; color: var(--text-2);
  border: 1px dashed var(--purple);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.upload-btn { color: var(--purple); }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card {
  padding: 14px 8px; border-radius: 14px;
  background: white; border: 1px solid var(--border);
  text-align: center; cursor: pointer; color: var(--text-2);
  font-family: inherit; transition: all .2s;
}
.mode-card .big { font-size: 1.8rem; display: block; line-height: 1; }
.mode-card b { font-size: .92rem; display: block; margin-top: 4px; }
.mode-card small { font-size: .72rem; display: block; margin-top: 2px; }
.mode-card.active { border-color: var(--pink); background: var(--pink-100); color: var(--pink); }
.mode-card.active b { color: var(--pink); }

.gesture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gesture-tile {
  padding: 8px 4px; border-radius: 12px;
  background: white; border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit; transition: all .2s;
}
.gesture-tile span { font-size: 1.4rem; }
.gesture-tile small { font-size: .68rem; }
.gesture-tile.active { color: var(--pink); border-color: var(--pink); background: var(--pink-100); }
.gesture-tile.heavy { color: var(--purple); border-color: var(--purple-soft); }
.gesture-tile.heavy.active { background: var(--purple-100); color: var(--purple); border-color: var(--purple); }

.cta-pink {
  display: block; width: 100%;
  margin: 20px auto 16px;
  padding: 14px 20px;
  border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--pink), #ff7aa6);
  color: white;
  font-size: 1rem; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 77, 141, .35);
  font-family: inherit;
}

/* ── Camera Wrap (mobile 9:16) ── */
.arena-card { padding: 0 16px; }
.cam-wrap {
  position: relative; width: 100%;
  aspect-ratio: 9 / 16; max-height: 78vh;
  border-radius: 18px; overflow: hidden;
  background: #05050a;
  box-shadow: 0 14px 40px rgba(80, 30, 90, .12);
}
#video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: scaleX(-1); }
#cam-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-size: .82rem; color: #fff;
  background: rgba(0, 0, 0, .55); padding: 8px 14px;
  border-radius: 999px; width: fit-content; margin: 0 auto;
  backdrop-filter: blur(6px);
}
.cam-exit {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: white;
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 16px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}

.countdown {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(20, 12, 30, .35); backdrop-filter: blur(2px);
}
#countdown-num {
  font-size: clamp(5rem, 26vw, 11rem); font-weight: 900; line-height: 1;
  color: var(--pink);
  text-shadow: 0 0 30px rgba(255, 77, 141, .6);
  animation: cdown-pop .9s ease-out;
}
@keyframes cdown-pop { 0% { transform: scale(1.5); opacity: 0; } 60% { transform: scale(.96); } 100% { opacity: 1; } }
.countdown-tip {
  font-size: .84rem; color: #fff;
  background: rgba(0, 0, 0, .55); padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.count-gesture {
  font-size: .9rem; font-weight: 700;
  background: var(--pink); color: white; padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* ── Result ── */
.result-card { padding: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--pink); }
.result-img {
  width: 100%; max-width: 100%;
  border-radius: 16px; display: block; margin: 0 auto;
  background: #fafafa;
}
.result-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px;
}
.act-btn {
  padding: 12px 16px; border-radius: 999px;
  font-size: .88rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pink), #ff7aa6); color: white; border: none;
  cursor: pointer; box-shadow: 0 8px 22px rgba(255, 77, 141, .35);
  transition: transform .12s, filter .2s; font-family: inherit;
}
.act-btn:hover { filter: brightness(1.08); }
.act-btn:active { transform: translateY(1px); }
.act-btn.ghost {
  background: white; color: var(--text);
  border: 1px solid var(--border); box-shadow: none;
}
.pink-text { color: var(--pink); }

/* ══════════════════ Loading ══════════════════ */
#loading {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--bg);
}
.spinner {
  width: 50px; height: 50px; border-radius: 50%;
  border: 4px solid var(--purple-100);
  border-top-color: var(--pink); border-right-color: var(--purple);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading p { color: var(--text-2); font-size: .9rem; }
#retry-btn {
  padding: 10px 22px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--pink), #ff7aa6); color: white;
  font-weight: 800; font-size: .9rem; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(255, 77, 141, .35);
}

/* ══════════════════ Toast & Misc ══════════════════ */
.music-float {
  position: fixed; right: calc(16px + var(--sar)); bottom: calc(20px + var(--sab));
  z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: white; color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer; box-shadow: var(--shadow-soft);
}
.music-float.on { color: var(--pink); border-color: var(--pink-soft); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, .4); } 50% { box-shadow: 0 0 0 12px rgba(255, 77, 141, 0); } }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--sab));
  transform: translateX(-50%) translateY(24px);
  max-width: 86vw; z-index: 200; opacity: 0; pointer-events: none;
  transition: all .25s ease;
  background: var(--text); color: white; font-weight: 700; font-size: .9rem;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

/* ══════════════════ Responsive ══════════════════ */
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 14px; }
  .results-templates { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .phone-mock { order: -1; }
  .howto-card { order: 2; }
}
@media (max-width: 560px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid .demo-cell:nth-child(3) { grid-column: span 2; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .results-grid .result-cell:nth-child(3) { grid-column: span 2; }
  .gesture-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}

/* 大屏：layout 不变，单卡片宽度约束 */
@media (min-width: 1180px) {
  #landing { max-width: 1180px; }
}
