:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #182230; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #2563eb; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(229 231 235 / 80%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.navbar { width: min(1120px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #14243a; font-size: 20px; font-weight: 800; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #374151; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: #2563eb; }
.nav-links .nav-primary { padding: 9px 18px; border-radius: 8px; color: #fff; background: #397ff3; }
.nav-links .nav-primary:hover { color: #fff; background: #2563eb; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: #182230; background: transparent; }
.menu-toggle svg { display: block; width: 24px; margin: auto; }
.buy-main { width: min(1120px, calc(100% - 32px)); margin: 20px auto 72px; }
.buy-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 16px 20px; border: 0; border-radius: 14px; background: #f0f4f8; }
.buy-intro-copy { min-width: 0; }
.buy-intro-kicker { margin: 0 0 3px; color: #2563eb; font-size: 11px; font-weight: 700; }
.buy-intro h1 { margin: 0; color: #182230; font-size: 19px; line-height: 1.35; }
.buy-intro-mobile-title, .buy-intro-tagline { display: none; }
.buy-intro-platforms { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.45; }
.buy-intro-import { margin: 4px 0 0; color: #ff0000; font-size: 12px; line-height: 1.45; }
.buy-intro-guide { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 8px 2px; color: #2457a7; font-size: 12px; font-weight: 700; }
.buy-intro-guide:hover { text-decoration: underline; }
.buy-heading { margin: 0 0 12px; text-align: center; }
.buy-heading p { margin: 0 0 4px; color: #2563eb; font-size: 12px; font-weight: 700; }
.buy-heading h2 { margin: 0; font-size: 26px; line-height: 1.3; }
.buy-heading span { display: block; margin-top: 5px; color: #667085; font-size: 13px; }
.buy-flow { margin: 0 0 15px; color: #526174; font-size: 12px; font-weight: 650; line-height: 1.5; text-align: center; }
.buy-flow span { margin: 0 8px; color: #2563eb; }
#buy-form { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr); align-items: start; gap: 22px; }
.plan-picker, .checkout-fields, .payment-panel { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e0e6ee; border-radius: 8px; }
.plan-picker { margin: 0; }
.plan-picker legend, .payment-choice legend { padding: 0 6px; font-size: 17px; font-weight: 700; }
.plan-list { display: grid; gap: 10px; }
.plan-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e0e6ee; border-radius: 6px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: #2563eb; background: #f6f9ff; }
.plan-option input { width: 17px; height: 17px; margin: 0; accent-color: #2563eb; }
.plan-details { min-width: 0; }
.plan-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.plan-name { display: block; font-size: 15px; font-weight: 700; }
.plan-recommendation, .plan-new-user-badge { flex: 0 0 auto; padding: 5px 10px; color: #078332; background: #e2f7e7; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.plan-meta { display: block; margin-top: 5px; color: #667085; font-size: 12px; line-height: 1.55; }
.plan-value { display: block; margin-top: 7px; color: #176344; font-size: 12px; font-weight: 700; line-height: 1.5; }
.plan-savings { color: #078332; }
.plan-price { white-space: nowrap; color: #14243a; font-size: 19px; font-weight: 750; }
.plan-price small { color: #667085; font-size: 12px; font-weight: 500; }
.checkout-fields h2 { margin: 0 0 12px; font-size: 17px; }
.checkout-fields > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.checkout-fields > input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cfd7e3; border-radius: 5px; color: #182230; font: inherit; }
.checkout-fields > input::placeholder { font-size: .67em; }
.checkout-fields > input:focus { outline: 3px solid #dbeafe; border-color: #2563eb; }
.field-note, .secure-note { margin: 7px 0 0; color: #667085; font-size: 12px; line-height: 1.55; }
.payment-hint { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: #356b55; font-size: 11px; line-height: 1.5; }
.payment-hint[hidden] { display: none; }
.payment-hint > span { color: #15966b; }
.payment-hint strong { color: #176344; font-size: 11px; }
.payment-choice { margin: 18px 0 0; padding: 0; border: 0; }
#payment-options { display: flex; gap: 10px; margin-top: 8px; }
#payment-options label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #e0e6ee; border-radius: 5px; font-size: 13px; }
#payment-options input { accent-color: #2563eb; }
.checkout-confirmation { display: grid; gap: 7px; margin-top: 12px; padding: 10px 12px; border: 1px solid #dbe4f0; border-radius: 10px; background: #f8fafc; }
.checkout-confirmation div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.checkout-confirmation span { color: #667085; font-size: 12px; }
.checkout-confirmation strong { min-width: 0; color: #182230; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.checkout-confirmation div:last-child strong { color: #dc2626; font-size: 19px; }
.buy-submit { width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.buy-submit:disabled { opacity: .55; cursor: not-allowed; }
.purchase-assurance { display: grid; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e8edf3; }
.assurance-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; color: #526174; font-size: 11px; line-height: 1.5; }
.assurance-icon { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; color: #176344; background: #e8f7ef; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.checkout-help-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 11px; }
.checkout-help-links a { color: #2563eb; }
.checkout-help-links a:hover, .success-support a:hover { text-decoration: underline; }
.buy-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 6px; background: #fff5f5; color: #b42318; font-size: 14px; }
.buy-alert[hidden] { display: none; }
.buy-alert.is-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.cancel-pending-payment { flex: 0 0 auto; padding: 7px 13px; border: 1px solid #dc2626; border-radius: 6px; color: #fff; background: #dc2626; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cancel-pending-payment:hover { background: #b91c1c; }
.cancel-pending-payment:disabled { opacity: .6; cursor: wait; }
.loading, .empty { padding: 18px 0; color: #667085; text-align: center; font-size: 14px; }
.payment-panel { margin-top: 18px; }
.buy-faq { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid #e0e6ee; }
.buy-faq-heading { margin: 19px 0 8px; }
.buy-faq-heading p { margin: 0 0 3px; color: #2563eb; font-size: 11px; font-weight: 700; }
.buy-faq-heading h2 { margin: 0; font-size: 19px; }
.buy-faq details { border-bottom: 1px solid #e6eaf0; }
.buy-faq summary { padding: 13px 3px; color: #26364a; font-size: 13px; font-weight: 650; cursor: pointer; }
.buy-faq details p { margin: 0; padding: 0 3px 14px; color: #667085; font-size: 12px; line-height: 1.65; }
.buy-faq details a { color: #2563eb; font-weight: 650; }
.payment-summary { display: flex; flex-wrap: wrap; gap: 34px; padding-bottom: 14px; border-bottom: 1px solid #edf0f4; }
.payment-summary div { display: grid; gap: 5px; }
.payment-summary span { color: #667085; font-size: 12px; }
.payment-summary strong { overflow-wrap: anywhere; font-size: 15px; }
.payment-status { display: flex; align-items: center; gap: 8px; margin: 15px 0; font-size: 14px; font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5a100; }
.payment-launch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid #dbe4f0; border-radius: 8px; background: #f8fafc; }
.payment-launch[hidden] { display: none; }
.payment-launch-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; color: #fff; background: #1677ff; font-size: 20px; font-weight: 800; }
.payment-launch strong { display: block; color: #182230; font-size: 14px; }
.payment-launch p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.55; }
.open-payment { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 6px; color: #fff; background: #2563eb; font-size: 13px; font-weight: 700; white-space: nowrap; }
.open-payment:hover { color: #fff; background: #1d4ed8; }
.payment-reminder-dialog { width: min(420px, calc(100% - 32px)); padding: 28px; border: 1px solid #dce5f1; border-radius: 12px; color: #182230; background: #fff; text-align: center; box-shadow: 0 24px 64px rgb(15 23 42 / 22%); }
.payment-reminder-dialog::backdrop { background: rgb(16 24 40 / 48%); }
.payment-reminder-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 13px; place-items: center; border-radius: 50%; color: #b54708; background: #fff4e5; font-size: 24px; font-weight: 800; }
.payment-reminder-dialog h2 { margin: 0; font-size: 20px; }
.payment-reminder-dialog p { margin: 10px 0 0; color: #475467; font-size: 14px; line-height: 1.65; }
.payment-reminder-dialog .payment-reminder-note { color: #667085; font-size: 12px; }
.payment-reminder-dialog .buy-submit { width: 100%; margin-top: 20px; }
.success-dialog { width: min(560px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 28px)); overflow-y: auto; padding: 28px; border: 1px solid #e0e6ee; border-radius: 8px; color: #182230; text-align: center; }
.success-dialog::backdrop { background: rgb(16 24 40 / 48%); }
.success-mark { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #e8f7ef; color: #159454; font-size: 26px; }
.success-dialog h2 { margin: 0 0 7px; font-size: 20px; }
.success-dialog p { margin: 10px 0; font-size: 14px; }
.success-intro { color: #667085; }
.success-account { margin: 17px 0; padding: 13px 16px; border: 1px solid #e5eaf1; border-radius: 6px; background: #f8fafc; }
.success-account p { margin: 5px 0; overflow-wrap: anywhere; }
.password-warning { color: #b54708; }
.success-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; text-align: left; }
.success-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 11px 12px; border: 1px solid #e5eaf1; border-radius: 6px; }
.success-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eaf1ff; color: #2563eb; font-size: 13px; font-weight: 750; }
.success-steps strong { display: block; margin-top: 3px; font-size: 14px; }
.success-steps p { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.55; }
.success-actions { display: grid; gap: 9px; margin-top: 17px; }
.success-actions .buy-submit { margin-top: 0; }
.success-secondary { display: grid; place-items: center; min-height: 44px; border: 1px solid #b9c7da; border-radius: 5px; background: #fff; color: #2457a7; font: inherit; font-weight: 700; cursor: pointer; }
.success-support { margin-bottom: 0 !important; color: #667085; font-size: 12px !important; line-height: 1.6; }
.success-support a { display: inline-block; margin-left: 3px; color: #2563eb; font-weight: 700; }
.mobile-checkout-bar { display: none; }
@media (max-width: 700px) {
  .navbar { width: calc(100% - 32px); min-height: 60px; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 65px 0 auto; display: grid; gap: 0; padding: 10px 16px 18px; border-bottom: 1px solid #e0e6ee; background: #fff; box-shadow: 0 14px 25px rgb(15 23 42 / 8%); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-primary { margin-top: 6px; text-align: center; }
  .buy-main { margin-top: 10px; margin-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .buy-intro { display: block; margin-bottom: 14px; padding: 16px; border-radius: 18px; background: #f1f2f3; }
  .buy-intro-kicker, .buy-intro-desktop-title { display: none; }
  .buy-intro-mobile-title { display: block; font-size: 23px; line-height: 1.3; }
  .buy-intro-tagline, .buy-intro-platforms, .buy-intro-import { display: block; margin: 7px 0 0; color: #62666b; font-size: 14px; line-height: 1.45; }
  .buy-intro-tagline { color: #182230; }
  .buy-intro-guide { display: inline-flex; margin-top: 9px; padding: 0; font-size: 13px; }
  .buy-heading { margin: 0 0 12px; }
  .buy-heading p, .buy-flow { display: none; }
  .buy-heading h2 { font-size: 22px; }
  .buy-heading span { margin-top: 4px; font-size: 13px; }
  #buy-form { grid-template-columns: 1fr; gap: 10px; }
  .plan-picker, .checkout-fields, .payment-panel { padding: 14px; border: 0; border-radius: 18px; background: #f1f2f3; }
  .plan-picker legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .plan-list { gap: 8px; }
  .plan-option { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; min-height: 88px; padding: 13px 12px; border: 1px solid #d8dadd; border-radius: 12px; background: transparent; }
  .plan-option:has(input:checked) { border-width: 2px; border-color: #397ff3; background: #fff; }
  .plan-option input { width: 19px; height: 19px; }
  .plan-title-row { gap: 6px; }
  .plan-name { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
  .plan-new-user-badge, .plan-recommendation { padding: 4px 8px; font-size: 11px; }
  .plan-meta { margin-top: 4px; font-size: 13px; }
  .plan-value { margin-top: 4px; font-size: 11px; }
  .plan-price { align-self: center; font-size: 18px; }
  .checkout-fields h2 { margin-bottom: 12px; font-size: 18px; }
  .checkout-fields > label { font-size: 15px; }
  .checkout-fields > input { height: 48px; border-radius: 10px; background: transparent; font-size: 16px; }
  .field-note { margin-top: 5px; }
  .checkout-fields .buy-submit { display: none; }
  .checkout-confirmation { margin-top: 11px; }
  .purchase-assurance { margin-top: 12px; }
  body.has-plans .mobile-checkout-bar { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dce3ec; box-shadow: 0 -8px 24px rgb(15 23 42 / 10%); }
  .mobile-checkout-total { display: grid; min-width: 0; flex: 1; }
  .mobile-checkout-total span { color: #667085; font-size: 11px; }
  .mobile-checkout-total strong { color: #dc2626; font-size: 20px; line-height: 1.2; }
  .mobile-checkout-total small { overflow: hidden; color: #526174; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-checkout-bar button { flex: 0 0 146px; min-height: 44px; padding: 0 14px; color: #fff; background: #2563eb; border: 0; border-radius: 5px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .mobile-checkout-bar button:disabled { opacity: .55; cursor: not-allowed; }
  body.has-checkout .mobile-checkout-bar { display: none; }
  body.has-checkout .buy-main { margin-bottom: 28px; }
  body.keyboard-open .mobile-checkout-bar { display: none !important; }
  .payment-launch { grid-template-columns: auto minmax(0, 1fr); padding: 15px; }
  .payment-launch .open-payment { grid-column: 1 / -1; width: 100%; }
  .payment-reminder-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px; }
  .payment-reminder-dialog h2 { font-size: 19px; }
  .payment-reminder-dialog .buy-submit { min-height: 48px; border-radius: 10px; }
  .success-dialog { max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .success-dialog h2 { font-size: 19px; }
}
@media (max-width: 380px) {
  .mobile-checkout-bar { gap: 10px; padding-right: 12px; padding-left: 12px; }
  .mobile-checkout-bar button { flex-basis: 132px; padding: 0 10px; }
}
