:root {
  color-scheme: light;
  --purple: #7c3aed;
  --ink: #111827;
  --muted: #64748b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
h1, h2, h3, p, dl, dt, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a, label, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }
[id] { scroll-margin-top: 76px; }

.site-head {
  position: sticky; top: 0; z-index: 5; height: 60px; border-bottom: 1px solid #e5e7f2;
  background: rgb(255 255 255 / 88%); backdrop-filter: blur(14px);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 100%; max-width: 1200px; margin: auto; padding-inline: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 12px 20px #7c3aed38;
}
.brand-icon svg { width: 19px; height: 19px; }
.brand strong, .brand small { display: block; }
.brand strong { color: #1f1633; font-size: 18px; font-weight: 700; line-height: 1; }
.brand small { margin-top: 2px; font-size: 10px; color: #7b6d96; line-height: 1; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 26px; white-space: nowrap; }
.site-nav > a, .nav-help > summary {
  display: inline-flex; align-items: center; min-height: 34px;
  color: #7b6d96; font-size: 14px; font-weight: 600; line-height: 1;
}
.site-nav > a:first-child { color: var(--purple); font-weight: 700; }
.site-nav a:hover, .nav-help > summary:hover, .order-link:hover { color: var(--purple); }
.nav-help { position: relative; }
.nav-help summary { list-style: none; gap: 6px; }
.nav-help summary::-webkit-details-marker { display: none; }
.nav-help summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-help[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-help div {
  position: absolute; z-index: 1; top: calc(100% + 10px); right: 0; width: 170px; padding: 8px;
  border-radius: 16px; background: #101727; box-shadow: 0 20px 48px #1c123533;
}
.nav-help div a { display: block; padding: 9px 12px; border-radius: 8px; color: #eef2ff; font-size: 13px; font-weight: 600; }
.nav-help div a:is(:hover,:focus-visible) { color: #fff; background: #413452; }
.order-link { justify-self: end; display: flex; align-items: center; gap: 6px; color: #7b6d96; }
.order-link svg, .hero-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.purchase { display: flex; align-items: stretch; flex-direction: column; width: min(984px, calc(100% - 16px)); margin-inline: auto; }
.hero { text-align: center; align-self: center; width: min(780px, 100%); padding: 18px 0 20px; }
.hero-badge, .outline-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dfceff;
  border-radius: 999px; background: #f4edff; color: var(--purple); font-size: 13px; font-weight: 650;
}
.hero-badge { min-height: 34px; padding: 0 14px; font-weight: 600; border-color: #e2d4fb; background: linear-gradient(#7c3aed1f, #7c3aed0f); box-shadow: 0 10px 22px #7c3aed14; }
.hero h1 { margin-top: 18px; font-size: 52px; line-height: .96; font-weight: 500; letter-spacing: -.06em; }
.hero-line { display: grid; margin-top: 14px; min-height: 34px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--purple); }
.hero-line > span, .hero-line-phrases > span { grid-area: 1 / 1; }
/* Static phrases give assistive technology complete sentences and reserve space for wrapping. */
.hero-line-phrases { display: grid; padding-inline: 4px; opacity: 0; pointer-events: none; user-select: none; }
.hero-line[data-animating] .hero-line-typing::after {
  content: ""; display: inline-block; height: 1em; margin-left: 2px; border-right: 2px solid;
  vertical-align: -.12em; animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.purchase > #comparison { margin-top: 6px; }
.checkout {
  align-self: center; width: min(734px, 100%); margin-top: 6px; padding: 22px; border: 1px solid #ebe7ff; border-radius: 20px;
  background: linear-gradient(#fff, #faf7ff); box-shadow: 0 18px 36px #7c3aed12;
}
.order-heading { display: flex; align-items: center; gap: 10px; }
.order-heading h2 { font-size: 15px; line-height: 24px; font-weight: 600; }
.outline-pill { min-height: 27px; padding: 2px 12px; background: #f6efff; }
.outline-pill:hover { background: #ece1ff; }
.order-heading #copy-inquiry {
  min-width: 153px; min-height: 27px; padding: 6px 12px; border-color: color-mix(in srgb, var(--purple) 28%, #fff);
  border-radius: 999px; background: color-mix(in srgb, var(--purple) 10%, #fff);
  color: var(--purple); font-size: 13px; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 18px rgb(124 58 237 / 12%);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.order-heading #copy-inquiry:hover {
  background: color-mix(in srgb, var(--purple) 16%, #fff);
  box-shadow: 0 12px 22px rgb(124 58 237 / 16%); transform: translateY(-1px);
}
.email-field { position: relative; margin-top: 10px; }
.recharge-email {
  display: block; width: 100%; height: 68px; padding: 8px 12px 41px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a; border: 1px solid #d8dbe5; border-radius: 14px;
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 2%); background: #fff;
}
.recharge-email::placeholder { color: #737373; }
.recharge-email:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgb(59 130 246 / 12%); }
@media (forced-colors: active) {
  .recharge-email:focus { outline: 2px solid Highlight; }
}
.inquiry-status:not(:empty) { margin-top: 5px; color: var(--purple); font-size: 12px; }
.order-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 18px;
  margin: 16px 0 0; color: #6b7280; font-size: 13px; font-weight: 600;
}
.order-summary > span { position: relative; padding-left: 14px; white-space: nowrap; }
.order-summary > span::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.order-summary strong { font-weight: inherit; }
.method-heading { margin: 16px 0 8px; font-size: 13px; line-height: 1; font-weight: 700; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.method-card {
  display: grid; place-items: center; position: relative; min-height: 42px; border: 1px solid #d5dce9;
  border-radius: 10px; background: #fff; color: #475569; font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer;
}
.method-card input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: inherit; }
.method-card:has(:focus-visible) { outline: 3px solid #8b5cf6; outline-offset: 2px; }
.alipay:has(:checked) { color: #1d4ed8; background: #eff6ff; border-color: #2563eb; box-shadow: 0 8px 18px rgb(37 99 235 / 12%); }
.wechat:has(:checked) { color: #087449; background: #f0fdf4; border-color: #16a36b; }
.method-card:has(:disabled) { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; box-shadow: none; cursor: not-allowed; }
.action-row { display: grid; grid-template-columns: 7fr 3fr; gap: 10px; margin-top: 9px; }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 56px; padding: 9px 12px; border-radius: 14px;
  border: 1px solid transparent; font-weight: 750; font-size: 17px; line-height: 1.25;
}
.primary { background: linear-gradient(90deg, #7c3aed, #a855f7); color: #fff; box-shadow: 0 14px 28px rgb(124 58 237 / 24%); font-size: 16px; font-weight: 800; }
.primary:hover { filter: brightness(.96); }
.primary:disabled { opacity: .5; cursor: not-allowed; }
.pay-mark { width: 20px; height: 20px; line-height: 20px; text-align: center; background: #fff; color: #9146f0; border-radius: 4px; font-size: 14px; }
.secondary { color: var(--purple); background: #fff; border-color: #ddccfa; font-size: 15px; font-weight: 800; box-shadow: 0 12px 24px rgb(124 58 237 / 12%); }
.secondary:hover { background: #f8f4ff; }
.checkout-note:empty { display: none; }
.checkout-note { margin: 6px 0 0; text-align: center; color: #716586; font-size: 13px; }
.support-card {
  display: grid; align-items: center; grid-template-columns: 172px minmax(0, 1fr); gap: 20px;
  margin-top: 18px; padding: 18px; border: 1px solid #d7c2f9;
  border-radius: 22px; background: #f7f3fe;
}
.support-thumbnail {
  position: relative; display: grid; place-items: center; width: 154px; height: 210px;
  overflow: hidden; padding: 0; border: 1px solid #e9ebf3; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 16px rgb(15 23 42 / 4%); cursor: zoom-in;
}
.support-thumbnail img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.support-thumbnail span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px;
  background: rgb(107 114 128 / 75%); color: #fff; font-size: 11px; font-weight: 500;
}
.support-copy { min-width: 0; padding-right: 8px; }
.support-copy h3 { color: #111827; font-size: 18px; line-height: 1.35; }
.support-copy p, .support-copy small { display: block; margin-top: 8px; color: #6b7280; font-size: 15px; line-height: 1.6; }
.support-copy p { margin-top: 10px; color: #374151; }
.support-dialog {
  width: min(436px, calc(100% - 28px)); max-height: calc(100dvh - 28px);
  overflow: auto; padding: 17px; border: 1px solid #eadefc; border-radius: 18px; color: var(--ink); background: #fff;
}
.support-dialog::backdrop { background: rgb(17 13 30 / 63%); }
.support-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-dialog h2 { font-size: 18px; }
.support-dialog img { display: block; width: 100%; max-height: 68dvh; object-fit: contain; margin: 12px auto; }
.support-dialog p { color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 720px) {
  .site-head { height: 83px; }
  .header-inner { padding: 4px 10px 0; grid-template-columns: 1fr auto; grid-template-rows: 28px 36px; align-content: center; row-gap: 6px; }
  .brand { gap: 6px; }
  .brand-icon { width: 28px; height: 28px; border-radius: 8px; }
  .brand-icon svg { width: 16px; height: 16px; }
  .brand strong { font-size: 13px; letter-spacing: 0; }
  .brand small { display: none; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: clamp(8px, 4.5vw, 18px); padding-top: 6px; align-self: stretch; }
  .site-nav > a, .nav-help > summary { min-height: 30px; font-size: 12px; }
  .order-link { grid-column: 2; grid-row: 1; font-size: 13px; }
  [id] { scroll-margin-top: 90px; }
  .hero { padding: 0 0 16px; }
  .hero-badge { font-size: 12px; }
  .hero h1 { margin-top: 12px; font-size: 28px; line-height: 1.12; letter-spacing: -.04em; font-weight: 700; }
  .hero-line { margin-top: 18px; font-size: 18px; line-height: 1.3; min-height: 26px; }
  .purchase > #comparison { order: 2; }
  .checkout { padding: 10px; border-radius: 18px; }
  .order-heading h2 { font-size: 11px; line-height: 1.6; }
  .outline-pill { min-height: 26px; font-size: 12px; }
  .method-heading { margin: 10px 0 6px; font-size: 11px; }
  .method-card { min-height: 38px; font-size: 12px; }
  .action-row { margin-top: 5px; gap: 8px; grid-template-columns: minmax(0, 7fr) minmax(95px, 3fr); }
  .primary, .secondary { min-height: 44px; padding-inline: 5px; border-radius: 12px; font-size: 14px; }
  .secondary { font-size: 12px; }
  .checkout-note { margin: 2px 0 10px; font-size: 12px; }
  .order-heading { flex-wrap: wrap; gap: 10px; margin-top: 6px; }
  .email-field { margin-top: 6px; }
  .recharge-email { height: 73px; padding-bottom: 43px; font-size: 13px; }
  .order-summary { margin-top: 10px; gap: 3px 9px; font-size: 12px; }
  .support-card { grid-template-columns: 88px minmax(0, 1fr); margin-top: 6px; padding: 8px; gap: 6px; border-radius: 14px; }
  .support-thumbnail { width: 88px; height: auto; aspect-ratio: 154 / 210; border-radius: 12px; }
  .support-thumbnail span { top: 4px; font-size: 10px; height: 18px; padding: 0 7px; }
  .support-copy { padding-right: 0; }
  .support-copy p, .support-copy small { margin-top: 4px; font-size: 11px; line-height: 1.4; }
  .support-copy h3 { font-size: 13px; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .header-inner { padding-inline: 14px; }
  .brand small { display: none; }
  .site-nav { gap: 16px; }
  .purchase { width: calc(100% - 24px); }
  .hero { padding-top: 4px; }
}
@media (max-width: 340px) {
  .order-heading h2 { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
