:root {
  --sakura: #F48FB1;
  --sakura-deep: #E05985;
  --sakura-soft: #FDEEF5;
  --sakura-light: #FFD6E5;
  --ink: #5A394A;
  --muted: #A88192;
  --line: #F7C8DB;
  --frost: rgba(255, 247, 251, 0.82);
  --frost-strong: rgba(255, 247, 251, 0.94);
  --card-border: rgba(244, 143, 177, 0.35);
  --shadow: 0 18px 50px -18px rgba(224, 89, 133, 0.45);
  --radius: 22px;
  --gradient: linear-gradient(135deg, #FFB7CD 0%, #F48FB1 45%, #E05985 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--ink);
  background: #FFF3F8;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景插画 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/background.png") center / cover no-repeat;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,247,251,0.55) 0%, rgba(255,247,251,0.72) 100%);
  z-index: -1;
}

/* 樱花瓣飘落 */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute;
  top: -40px;
  width: 16px; height: 16px;
  background: radial-gradient(circle at 30% 30%, #FFD9E6, #F48FB1 70%);
  border-radius: 60% 0 60% 0;
  opacity: 0.85;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-40px) translateX(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  100% { transform: translateY(110vh) translateX(60px) rotate(360deg); opacity: 0.15; }
}

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  letter-spacing: .5px;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 28px -10px rgba(224, 89, 133, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(224, 89, 133, 0.85); }
.btn-ghost {
  color: var(--sakura-deep);
  background: rgba(255,255,255,0.5);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.85); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-buy { width: 100%; margin-top: 20px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255,247,251,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 24px; color: var(--sakura-deep); }
.brand-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; transition: color .18s; }
.nav-link:hover { color: var(--sakura-deep); }

/* Hero */
.hero { padding: 90px 24px 70px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  color: var(--sakura-deep); font-size: 14px; font-weight: 600; margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.hero-title { font-size: clamp(42px, 7vw, 68px); font-weight: 900; line-height: 1.15; color: var(--ink); }
.hero-title .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 18px; font-size: 18px; color: var(--muted); font-weight: 500; }
.hero-maker { margin-top: 14px; font-size: 15px; color: var(--muted); }
.hero-maker .maker-name { color: var(--sakura-deep); font-weight: 800; }
.hero-cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 区块通用 */
.section-head { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 32px; font-weight: 900; color: var(--ink); position: relative; display: inline-block; }
.section-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -12px; width: 48px; height: 4px; border-radius: 4px; background: var(--gradient);
}
.section-sub { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* 套餐 */
.pricing { padding: 40px 24px 80px; max-width: 1120px; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan {
  position: relative; border-radius: var(--radius);
  background: var(--frost); border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-8px); box-shadow: 0 26px 60px -18px rgba(224, 89, 133, 0.6); }
.plan-hot { background: var(--frost-strong); border: 2px solid var(--sakura); }
.ribbon {
  position: absolute; top: -1px; right: -1px;
  background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: 0 var(--radius) 0 18px;
  letter-spacing: 1px;
}
.plan-top { text-align: center; margin-bottom: 24px; }
.plan-name { font-size: 20px; font-weight: 800; color: var(--ink); }
.plan-price { margin-top: 14px; font-size: 56px; font-weight: 900; color: var(--sakura-deep); line-height: 1; }
.plan-price .cur { font-size: 26px; font-weight: 700; vertical-align: top; margin-right: 2px; }
.plan-dur { margin-top: 10px; font-size: 13px; color: var(--muted); }
.plan-features { list-style: none; margin: 0 0 8px; flex: 1; }
.plan-features li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px dashed rgba(247,200,219,0.7);
  font-size: 14px;
}
.plan-features li span { color: var(--muted); }
.plan-features li b { color: var(--ink); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 30px; color: var(--muted); font-size: 13px; }

/* 特性 */
.features { padding: 40px 24px 80px; max-width: 1120px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  border-radius: var(--radius); padding: 30px 24px;
  background: var(--frost); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); box-shadow: 0 14px 40px -20px rgba(224,89,133,0.4);
  transition: transform .2s ease;
}
.feature:hover { transform: translateY(-6px); }
.feature-ico { font-size: 34px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* 下载客服 */
.contact { padding: 40px 24px 80px; max-width: 900px; margin: 0 auto; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card {
  text-align: center; border-radius: var(--radius); padding: 36px 28px;
  background: var(--frost); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.contact-ico { font-size: 40px; margin-bottom: 14px; }
.contact-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.contact-url { margin-top: 14px; font-size: 12px; color: var(--muted); word-break: break-all; }

/* 底部 */
.footer { text-align: center; padding: 40px 24px 50px; color: var(--muted); }
.footer p { font-size: 14px; margin-bottom: 8px; }
.footer .footer-note { font-size: 12px; opacity: .8; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(90,57,74,0.4); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: 100%; max-width: 460px;
  background: var(--frost-strong); border: 1px solid var(--card-border);
  border-radius: 26px; padding: 34px 30px; box-shadow: 0 30px 80px -20px rgba(90,57,74,0.5);
  max-height: 88vh; overflow-y: auto;
  animation: pop .28s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: var(--sakura-soft); color: var(--sakura-deep);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-title { font-size: 24px; font-weight: 900; color: var(--ink); text-align: center; margin-bottom: 20px; }
.modal-title.done { color: var(--sakura-deep); }
.done-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-plan {
  border-radius: 16px; padding: 18px; margin-bottom: 20px;
  background: var(--sakura-soft); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-plan .mp-name { font-weight: 800; font-size: 16px; }
.modal-plan .mp-price { font-size: 28px; font-weight: 900; color: var(--sakura-deep); }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font-size: 15px; color: var(--ink);
  outline: none; transition: border .18s;
}
.field input:focus { border-color: var(--sakura); }
.modal-hint { font-size: 12px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.modal-agree { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
.pay-qr { text-align: center; padding: 26px 0; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border: 4px solid var(--line); border-top-color: var(--sakura-deep);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-qr p { color: var(--muted); font-size: 14px; }

/* 卡密列表 */
.cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.card-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.card-item .code { font-family: "Consolas", monospace; font-size: 13px; color: var(--ink); letter-spacing: .5px; word-break: break-all; }
.card-item .copy-one { flex-shrink: 0; padding: 6px 12px; border-radius: 8px; border: none; background: var(--sakura-soft); color: var(--sakura-deep); cursor: pointer; font-size: 12px; font-weight: 700; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 900px) {
  .plans, .feature-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .plan-hot { order: -1; }
}
@media (max-width: 560px) {
  .nav-actions .nav-link { display: none; }
  .hero { padding: 60px 20px 50px; }
  .plan-price { font-size: 46px; }
}
