:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --primary: #2b6cff;
  --cyan: #18c8d8;
  --purple: #7c5cff;
  --text: #16233b;
  --muted: #6b7a93;
  --line: #e6ecf5;
  --ok: #18a957;
  --danger: #e0483b;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(30, 60, 120, 0.08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eaf1ff 0%, var(--bg) 240px);
  color: var(--text);
  line-height: 1.6;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; max-width: 760px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { font-size: 15px; }
.brand-txt small { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.container { max-width: 760px; margin: 0 auto; padding: 6px 16px 40px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-top: 14px; border: 1px solid var(--line);
}
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; padding: 10px; border: 1px solid var(--line); background: #f7f9fd; border-radius: 10px;
  font-size: 14px; color: var(--muted); cursor: pointer;
}
.tab.active { background: #eef3ff; color: var(--primary); border-color: #cdddff; font-weight: 700; }
form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fbfdff; font-family: inherit; resize: vertical;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: #fff; }
button { font-family: inherit; cursor: pointer; border: none; }
.primary {
  width: 100%; margin-top: 16px; padding: 13px; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.primary:active { transform: translateY(1px); }
.ghost {
  padding: 9px 14px; border-radius: 10px; background: #f1f5fb; color: var(--muted); font-size: 13px; border: 1px solid var(--line);
}
.msg { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 12px; margin-top: 12px; }
.vip-hero { text-align: center; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
}
.vip-hero h2 { font-size: 18px; margin: 10px 0 4px; }
.price { margin: 10px 0 14px; color: var(--primary); }
.price .cur { font-size: 20px; vertical-align: 6px; }
.price .num { font-size: 46px; font-weight: 800; }
.price .per { color: var(--muted); font-size: 14px; margin-left: 4px; }
.feats { list-style: none; padding: 0; margin: 0 0 6px; text-align: left; max-width: 320px; margin-inline: auto; }
.feats li { font-size: 13px; padding: 5px 0; color: var(--text); }
.modal { position: fixed; inset: 0; background: rgba(12, 22, 40, .55); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal-box { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 320px; text-align: center; }
.modal-box h3 { margin: 0 0 12px; }
#qr-area img { width: 220px; height: 220px; border-radius: 10px; }
#qr-area .raw { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 8px; }
.vip-status { font-size: 13px; color: var(--ok); background: #ecfaf1; border: 1px solid #c8ebd4; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; }
.result { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.result-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f5f8fd; font-size: 13px; border-bottom: 1px solid var(--line); }
#gen-text { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.7; max-height: 60vh; overflow: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.foot { text-align: center; color: var(--muted); font-size: 11px; padding: 18px; max-width: 760px; margin: 0 auto; }
[hidden] { display: none !important; }
