:root {
  --bg: #080a1b;
  --ink: #f8f7ff;
  --muted: #aeb5d2;
  --violet: #a78bfa;
  --line: rgba(221, 211, 255, .18);
  --panel: rgba(20, 23, 53, .64);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, #40256188, transparent 32rem),
    radial-gradient(circle at 90% 16%, #14466f99, transparent 30rem),
    radial-gradient(circle at 48% 92%, #48215e88, transparent 32rem),
    var(--bg);
  background-attachment: fixed;
}
body:after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(#000, transparent 72%);
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: auto; padding: 38px 24px 90px; position: relative; z-index: 1; }

/* 顶栏 */
.nav {
  max-width: 1180px; margin: auto; height: 80px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
}
.brand { font-size: 19px; font-weight: 850; letter-spacing: .04em; display: flex; align-items: center; gap: 9px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #d8b4fe, #67e8f9); box-shadow: 0 0 18px #c084fc; }
.brand small { font-size: 9px; letter-spacing: 3px; color: #918caa; font-weight: 600; display: block; }
.navlinks { display: flex; align-items: center; gap: 24px; color: #cbd5e1; font-size: 14px; }
.navlinks a:hover { color: #fff; }
.navlinks .support { padding: 8px 14px; border: 1px solid #ffffff1a; border-radius: 9px; background: #ffffff05; }

/* 按钮 */
.btn {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px;
  background: rgba(255,255,255,.07); color: #fff; font-weight: 750; font-size: 14px;
  cursor: pointer; transition: .2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.13); }
.btn.violet { border: 1px solid #ac86f4; background: linear-gradient(120deg, #7c3aed, #b14cf2); box-shadow: 0 15px 38px #7c3aed55; }
.btn.light { background: rgba(13,16,43,.48); border-color: #ffffff20; }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.danger { border-color: #ff6b6b55; color: #ff9a9a; background: transparent; }

/* Hero */
.hero {
  min-height: 460px; padding: 64px; overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: 34px;
  background:
    radial-gradient(circle at 85% 30%, #8b5cf655, transparent 19rem),
    radial-gradient(circle at 90% 82%, #22d3ee35, transparent 18rem),
    linear-gradient(125deg, rgba(25,27,64,.88), rgba(18,34,70,.58));
  box-shadow: 0 35px 100px #0008, inset 0 1px 0 #fff2;
  backdrop-filter: blur(30px);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px;
}
.hero:after {
  content: ""; position: absolute; width: 430px; height: 430px; right: -165px; bottom: -160px;
  border-radius: 50%; background: #a78bfa55; filter: blur(75px);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { color: #ddd6fe; font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.05em; margin: 16px 0;
  background: linear-gradient(90deg, #fff, #ddd6fe 58%, #f5d0fe);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; color: #c4b5fd; -webkit-text-fill-color: #c4b5fd; }
.hero p { max-width: 460px; color: #c7d2fe; font-size: 15.5px; line-height: 1.9; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: 12.5px; color: #9aa5c5; }
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 430px; height: auto; filter: drop-shadow(0 30px 60px #0009); }

/* 区块标题 */
.section { margin-top: 72px; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.heading h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.04em; color: #fff; }
.heading p { margin: 0; color: var(--muted); font-size: 14px; }

/* 商品卡 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 24px; padding: 0; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 25px 70px #0004, inset 0 1px 0 #fff2;
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; transition: .22s;
}
.card:hover { transform: translateY(-6px); border-color: #c4b5fd99; }
.card .cover { aspect-ratio: 16 / 10; overflow: hidden; background: #12142e; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; color: #fff; }
.card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.7; min-height: 44px; }
.card .price { font-size: 28px; font-weight: 850; color: #fff; }
.card .price small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: #6ee7b7; border-color: #34d39955; }
.tag.warn { color: #fbbf24; border-color: #fbbf2455; }

/* 说明条 */
.notice { padding: 16px 18px; border: 1px solid #c4b5fd66; border-radius: 16px; background: #6d28d933; color: #ede9fe; line-height: 1.75; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #ffffff06; }
.step b { display: block; color: #c4b5fd; font-size: 22px; font-weight: 850; }
.step h4 { margin: 8px 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 表单 */
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--panel); backdrop-filter: blur(20px); }
.panel h2 { margin: 0 0 6px; font-size: 22px; }
label { display: block; font-size: 13px; color: #cbd5e1; margin: 16px 0 7px; }
input, textarea, select {
  width: 100%; padding: 13px; border-radius: 13px; border: 1px solid var(--line);
  background: #090c25bb; color: #fff; font: inherit; font-size: 14px;
}
input::placeholder, textarea::placeholder { color: #7c86aa; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #b69afa; }
textarea { min-height: 130px; resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.7; }
.pay { display: flex; gap: 10px; }
.pay label {
  flex: 1; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px;
  background: #ffffff0b; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #fff;
}
.pay label.on { border-color: #ac86f4; background: #7c3aed22; }
.pay input { width: auto; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.small { font-size: 13px; }
.dim { color: var(--muted); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.cards-out { margin-top: 14px; padding: 14px; border-radius: 14px; background: #06081a; border: 1px dashed var(--line); white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.9; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.status.pending { background: #fbbf2422; color: #fbbf24; }
.status.paid { background: #22d3ee22; color: #67e8f9; }
.status.delivered { background: #34d39922; color: #6ee7b7; }
.status.closed { background: #f8717122; color: #fca5a5; }
.err { color: #ff9a9a; } .ok { color: #6ee7b7; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #241d44; border: 1px solid var(--line); color: #fff; padding: 11px 20px;
  border-radius: 999px; font-size: 14px; z-index: 99; opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; }

footer { padding: 30px 24px 46px; color: #9aa5c5; font-size: 12px; line-height: 1.9; max-width: 1180px; margin: auto; position: relative; z-index: 1; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 34px 24px; min-height: auto; border-radius: 24px; }
  .hero-art { display: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .nav { height: 66px; padding: 0 17px; }
  .navlinks a:not(.support) { display: none; }
  .wrap { padding: 22px 16px 64px; }
  .heading { display: block; }
}

/* ── 动效（参照主流发卡站的入场/悬停手感） ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowPulse { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.hero { animation: fadeUp .7s cubic-bezier(.22,.68,.34,1) both; }
.hero h1, .hero p, .hero-actions, .hero-note { animation: fadeUp .7s cubic-bezier(.22,.68,.34,1) both; }
.hero h1 { animation-delay: .06s; }
.hero p { animation-delay: .14s; }
.hero-actions { animation-delay: .2s; }
.hero-note { animation-delay: .26s; }
.hero-art svg { animation: floaty 7s ease-in-out infinite; }
.hero:after { animation: glowPulse 6s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.68,.34,1), transform .6s cubic-bezier(.22,.68,.34,1); }
.reveal.in { opacity: 1; transform: none; }

.card { transition: transform .25s cubic-bezier(.22,.68,.34,1), border-color .25s, box-shadow .25s; }
.card:hover { box-shadow: 0 34px 90px #0006, 0 0 0 1px #c4b5fd55, inset 0 1px 0 #fff3; }
.card:hover .cover img { transform: scale(1.05); }
.card .cover img { transition: transform .5s cubic-bezier(.22,.68,.34,1); }
.card .btn.sm { transition: background .2s, transform .2s; }
.card:hover .btn.sm { background: linear-gradient(120deg,#7c3aed,#b14cf2); border-color: #ac86f4; }
.card .price { transition: color .25s; }
.card:hover .price { color: #e9ddff; }

.btn.violet { position: relative; overflow: hidden; }
.btn.violet:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  background-size: 200% 100%; opacity: 0; transition: opacity .2s;
}
.btn.violet:hover:after { opacity: 1; animation: shine .9s linear; }

.step { transition: transform .25s, border-color .25s; }
.step:hover { transform: translateY(-4px); border-color: #c4b5fd55; }
.step b { transition: color .25s; }
.step:hover b { color: #e9ddff; }

.notice { animation: fadeUp .6s cubic-bezier(.22,.68,.34,1) both; }

.panel { animation: fadeUp .55s cubic-bezier(.22,.68,.34,1) both; }
.status.delivered { animation: glowPulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero h1, .hero p, .hero-actions, .hero-note, .hero-art svg, .hero:after,
  .notice, .panel, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── 对 sf-* 结构的本地修正 ── */
.sf-hero-art svg { width: 100%; max-width: 560px; max-height: 300px; height: auto; display: block; }
.sf-hero-art { display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.sf-art-caption { margin-top: 10px; font-size: 10px; letter-spacing: .28em; color: #8d87a6; }
.sf-product-group { margin-bottom: 20px; }
.sf-product-head .sf-product-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.sf-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.sf-plan-item {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border: 1px solid rgba(221,211,255,.16); border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
}
.sf-plan-item .sf-plan-art { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.sf-plan-name { font-size: 17px; font-weight: 800; color: #fff; }
.sf-plan-description { margin: 0; font-size: 12.5px; color: #a9a5c0; }
.sf-plan-price { font-size: 26px; font-weight: 850; color: #fff; margin-top: 4px; }
.sf-stock { font-size: 12px; color: #9a95b5; }
.sf-stock.is-available { color: #6ee7b7; }
.sf-stock.is-out { color: #fbbf24; }
.sf-plan-action { margin-top: 10px; align-self: flex-start; }
.sf-plan-item .btn.violet { background: linear-gradient(120deg,#7c3aed,#b14cf2); border: 0; color:#fff; }
.mt-low { margin-top: 6px; }

/* 首屏插画别溢出：限宽 + 居中，别压到左边的字 */
.sf-hero { align-items: center; column-gap: 18px; }
.sf-hero-art { min-width: 0; overflow: visible; }
.sf-hero-art svg { width: 100%; max-width: 460px; height: auto; }
.sf-hero-copy { min-width: 0; }
.sf-product-head .sf-product-logo { object-fit: contain; background: #0b0e22; }


/* ── 收款码 ── */
.qr-box { margin-top: 16px; padding: 20px; border-radius: 18px; border: 1px solid rgba(221,211,255,.18); background: #0b0e22; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-amount { font-size: 24px; font-weight: 850; color: #fff; }
.qr-img { width: 220px; height: 220px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }

/* ── 扫码支付面板（照主流发卡站的收银台） ── */
.pay-sheet {
  margin-top: 16px; padding: 26px 20px; border-radius: 20px; text-align: center;
  border: 1px solid rgba(221,211,255,.18); background: linear-gradient(180deg, #101433, #0a0d22);
}
.pay-head { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: #fff; }
.pay-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff6b9a; box-shadow: 0 0 12px #ff6b9aaa; }
.pay-amount { margin-top: 14px; font-size: 30px; font-weight: 850; color: #ff6b9a; letter-spacing: -.02em; }
.pay-hint { margin-top: 6px; font-size: 12.5px; color: #a9a5c0; }
.pay-sheet .qr-img { margin: 16px auto 0; width: 220px; height: 220px; }
.pay-timer { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: #6d28d922; border: 1px solid #a78bfa44; color: #ddd6fe; font-size: 13px; }
.pay-timer b { color: #fff; font-variant-numeric: tabular-nums; }
.pay-waiting { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: #22d3ee14; border: 1px solid #22d3ee33; color: #a5f3fc; font-size: 13px; }
.wait-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; animation: waitPulse 1.2s ease-in-out infinite; }
@keyframes waitPulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
