/* 妙表 MiaoSheet · 年轻活力版（v3 多巴胺紫粉主题） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --violet: #8b5cf6; --purple: #7c3aed; --pink: #ec4899; --peach: #fb923c;
  --mint: #10b981; --lemon: #facc15; --sky: #38bdf8;
  --blue: #7c3aed; --blue2: #8b5cf6; --indigo: #6d5bd0; --purple2: #7c3aed;
  --gold: #fbbf24; --dark: #2b2440; --muted: #8479a3;
  --bg: #faf7ff; --card: #fff; --line: #efe9fb; --green: #10b981;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
  --shadow: 0 12px 32px rgba(139, 92, 246, .12);
  --shadow-lg: 0 26px 64px rgba(236, 72, 153, .22);
  --radius: 20px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--dark); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 23px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand span { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: .5px; -webkit-text-fill-color: var(--muted); }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--violet); }
.top .btn { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 999px; padding: 13px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform .12s, box-shadow .12s, opacity .15s; font-family: inherit; position: relative; overflow: hidden;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(236, 72, 153, .35);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(236, 72, 153, .45); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #ec4899 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #f472b6; top: -200px; right: -120px; opacity: .5; animation: drift 14s ease-in-out infinite; }
.hero::after { width: 460px; height: 460px; background: #38bdf8; bottom: -180px; left: -140px; opacity: .35; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.08); } }
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 76px 28px 68px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1;
}
.hero-kicker {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; backdrop-filter: blur(6px);
}
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: .5px; }
.hero h1 span {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 18px 0 26px; font-size: 16.5px; color: rgba(255,255,255,.92); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: #fff; color: var(--purple); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.hero-cta .btn-primary:hover { box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-chips span {
  font-size: 13px; font-weight: 700; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.sheet-card {
  width: 100%; max-width: 420px; background: #fff; color: var(--dark);
  border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(1.5deg); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-12px); } }
.sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; background: var(--grad); color: #fff;
}
.sheet-title { font-weight: 800; font-size: 15.5px; }
.sheet-badge {
  font-size: 12px; font-weight: 800; background: rgba(255,255,255,.25);
  padding: 4px 11px; border-radius: 999px;
}
.sheet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-table th {
  background: #faf7ff; color: var(--violet); text-align: left; font-size: 12.5px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.sheet-table td { padding: 10px 14px; border-bottom: 1px solid #f4effd; color: #4a4360; }
.sheet-table tr:nth-child(even) td { background: #fcfaff; }
.sheet-table .sheet-sum td { background: #ecfdf5; color: var(--mint); font-weight: 800; }
.float-chip {
  position: absolute; background: #fff; font-size: 13.5px; font-weight: 800;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.20);
}
.chip1 { color: var(--pink); top: -18px; right: -8px; animation: floaty 5s ease-in-out infinite; }
.chip2 { color: var(--violet); bottom: 28px; left: -16px; animation: floaty 7s ease-in-out infinite reverse; }

/* ---------- steps strip ---------- */
.steps-strip {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 1080px; margin: -26px auto 0; padding: 18px 26px; position: relative; z-index: 2;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
}
.step-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--dark); }
.step-item b {
  width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 14px; box-shadow: 0 4px 10px rgba(236,72,153,.3);
}
.step-arrow { color: #d8cff2; font-size: 18px; }

/* ---------- sections ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 30px 24px 70px; }
section { margin-top: 60px; }
section h2 { font-size: 27px; font-weight: 800; letter-spacing: .3px; }
section > p { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }

/* features */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.f-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px 24px; box-shadow: 0 6px 18px rgba(139,92,246,.05); transition: transform .15s, box-shadow .15s;
}
.f-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.f-icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-radius: 16px; margin-bottom: 14px; background: var(--grad-soft);
}
.f-card:nth-child(1) .f-icon { background: #ede9fe; }
.f-card:nth-child(2) .f-icon { background: #fce7f3; }
.f-card:nth-child(3) .f-icon { background: #ecfdf5; }
.f-card h3 { font-size: 17px; margin-bottom: 6px; }
.f-card p { font-size: 13.5px; color: var(--muted); }

/* generator cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 18px 18px; cursor: pointer; position: relative;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(139,92,246,.16); border-color: #e9d8fd; }
.card.locked { opacity: .82; }
.card.locked::after {
  content: "🔒 会员解锁"; position: absolute; inset: 0; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43,36,64,.55); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px;
  opacity: 0; transition: opacity .15s; backdrop-filter: blur(2px);
}
.card.locked:hover::after { opacity: 1; }
.card-icon {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 15px;
}
.cards .card:nth-child(10n+1) .card-icon { background: #ede9fe; }
.cards .card:nth-child(10n+2) .card-icon { background: #fce7f3; }
.cards .card:nth-child(10n+3) .card-icon { background: #ecfdf5; }
.cards .card:nth-child(10n+4) .card-icon { background: #fff7ed; }
.cards .card:nth-child(10n+5) .card-icon { background: #fef9c3; }
.cards .card:nth-child(10n+6) .card-icon { background: #e0f2fe; }
.cards .card:nth-child(10n+7) .card-icon { background: #fdf2f8; }
.cards .card:nth-child(10n+8) .card-icon { background: #f1f5f9; }
.cards .card:nth-child(10n+9) .card-icon { background: #fae8ff; }
.cards .card:nth-child(10n+10) .card-icon { background: #eef2ff; }
.card h3 { font-size: 16px; margin-top: 12px; }
.card p { font-size: 12.8px; color: var(--muted); margin-top: 4px; min-height: 38px; }
.badge {
  position: absolute; top: 14px; right: 14px; font-size: 11px; background: #d1fae5; color: #047857;
  padding: 3px 11px; border-radius: 999px; font-weight: 800;
}
.badge.gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }

/* panel */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px; box-shadow: var(--shadow);
}
.panel h3 { font-size: 21px; }
#gen-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
#gen-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
#gen-form input, #gen-form textarea, #gen-form select {
  border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
  font-size: 15px; font-family: inherit; background: #fbfaff; transition: border-color .15s, box-shadow .15s;
}
#gen-form textarea { min-height: 110px; resize: vertical; }
#gen-form input:focus, #gen-form textarea:focus, #gen-form select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.14); background: #fff;
}
#gen-btn { margin-top: 22px; width: 100%; padding: 15px; font-size: 16px; }
.hidden { display: none; }

/* members */
.member-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.m-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 24px; text-align: center; box-shadow: 0 6px 18px rgba(139,92,246,.05);
  transition: transform .15s, box-shadow .15s;
}
.m-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.m-card.hot {
  border: 2px solid transparent; position: relative;
  background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box;
  box-shadow: 0 18px 44px rgba(236,72,153,.26);
}
.m-card.hot::before {
  content: "最划算"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(236,72,153,.4);
}
.m-card h4 { font-size: 18px; }
.price { font-size: 36px; font-weight: 800; margin: 12px 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; -webkit-text-fill-color: var(--muted); }
.m-card ul { list-style: none; margin: 14px 0 20px; text-align: left; }
.m-card li { font-size: 14px; color: var(--dark); padding: 6px 0 6px 24px; position: relative; }
.m-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--mint); font-weight: 800; }

/* unlock */
.unlock { margin-top: 18px; margin-bottom: 24px; background: linear-gradient(135deg, #fffbf0, #fef9f4); border: 1.5px dashed #f2c66d; border-radius: 16px; padding: 18px 20px; }
.unlock h4 { font-size: 15px; margin-bottom: 10px; }
.unlock-row { display: flex; gap: 10px; }
.unlock-row input {
  flex: 1; border: 1px solid #f0dcae; border-radius: 13px; padding: 13px 15px;
  font-size: 15px; background: #fff;
}
.unlock-row input:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 4px rgba(236,72,153,.12); }
#unlock-msg { margin-top: 10px; font-weight: 700; }
#unlock-msg.ok { color: var(--mint); }
#unlock-msg.err { color: #e11d48; }

/* footer */
footer { text-align: center; padding: 36px 20px 46px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 54px 22px 58px; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .nav { display: none; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card p { min-height: 0; }
  .top { padding: 12px 16px; }
  .steps-strip { gap: 8px; }
}
