:root {
  font-family: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #182230;
  background: #f6f8fc;
  --accent: #245fe5;
  --accent-dark: #1c4fc4;
  --accent-soft: #edf3ff;
  --line: #dce3ed;
  --muted: #526071;
  --ink: #182230;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #90b2ff;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.page-shell { width: min(1180px, 100%); margin: auto; padding: 0 36px; }

.site-header {
  margin-top: 20px;
  min-height: 68px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  background: #fff;
}
.brand { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 21px; }
.beta-tag { padding: 4px 10px; border: 1px solid #e4e9f1; border-radius: 6px; background: #f7f9fc; color: var(--muted); font-size: 12px; }
.back-link { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; color: var(--muted); font-size: 14px; white-space: nowrap; }
.back-link:hover { color: var(--accent-dark); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 42px 0 32px; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 2.8vw, 38px); line-height: 1.45; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.intro { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.hero-note { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 10px 0 10px 24px; border-left: 1px solid var(--line); }
.hero-note-symbol { display: grid; place-items: center; width: 36px; height: 40px; color: var(--accent); }
.hero-note-symbol svg { width: 29px; height: 29px; }
.hero-note strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.hero-note div > span { font-size: 13px; color: var(--muted); }

.section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.step { width: 25px; height: 25px; display: grid; place-items: center; flex-shrink: 0; border-radius: 7px; background: #e7eefc; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.section-label .aside { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.tier-grid.has-other { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 25px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.tier-card.selected { border-color: var(--accent); background: #f7faff; box-shadow: inset 0 0 0 1px var(--accent); }
.tier-head { display: flex; align-items: center; gap: 10px; }
.tier-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #53647a; background: #f0f3f8; }
.tier-symbol svg { width: 23px; height: 23px; }
.selected .tier-symbol { color: var(--accent-dark); background: #e6eeff; }
.tier-name { font-size: 20px; font-weight: 700; }
.tier-radio { display: grid; place-items: center; margin-left: auto; width: 21px; height: 21px; border-radius: 50%; border: 1px solid #aebbd0; background: #fff; flex-shrink: 0; }
.selected .tier-radio { border-color: var(--accent); background: var(--accent); color: #fff; }
.selected .tier-radio:after { content: '✓'; font-size: 13px; font-weight: 700; }
.tier-caption { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 10px 0 16px; }
.tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-bottom: 17px; }
.currency { font-size: 18px; font-weight: 700; }
.tier-price strong { font-size: 40px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-price small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.popular { display: inline-flex; align-items: center; gap: 5px; align-self: center; margin-left: 10px; padding: 5px 11px; background: #c2410c; color: #fff; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 3px 8px #c2410c24; }
.popular svg, .period-hot svg { width: 17px; height: 17px; flex-shrink: 0; }
.service-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.service-pill { padding: 3px 10px; border-radius: 5px; border: 1px solid #dce3ed; background: #fff; font-size: 13px; line-height: 1.6; color: #35465c; }
.tier-features { list-style: none; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; font-size: 14px; line-height: 1.7; }
.tier-features li { display: flex; gap: 8px; min-width: 0; }
.check { color: var(--accent-dark); flex-shrink: 0; font-weight: 700; }
.tier-limit { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }

.period-section { margin-top: 30px; }
.period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.period-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 51px 20px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.period-choice { display: flex; flex-direction: column; align-items: flex-start; flex: 1; width: 100%; min-height: 147px; padding: 0; border: 0; background: transparent; text-align: left; }
.subscribe-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin-top: 17px; padding: 9px 12px; border: 0; border-radius: 7px; background: #202328; color: #fff; font-size: 14px; font-weight: 700; }
.subscribe-button:hover { background: #383e47; }
.period-card.selected { border-color: var(--accent); background: #f7faff; box-shadow: inset 0 0 0 1px var(--accent); }
.period-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.period-days { font-size: 13px; color: var(--muted); font-weight: 400; }
.period-price { font-size: 31px; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; }
.period-price .currency { font-size: 16px; margin-right: 4px; }
.period-average { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.period-hot { position: absolute; top: -1px; right: -1px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 5px 14px; background: #c2410c; color: #fff; border-radius: 0 12px 0 10px; font-size: 15px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 3px 9px #c2410c24; }
.period-discount { background: var(--accent); color: #fff; font-size: 14px; box-shadow: 0 3px 9px #245fe52b; }
.period-discount strong { font-size: 18px; font-weight: 700; line-height: 1.4; }
.period-original { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.period-original s { color: var(--muted); }

body.payment-open { overflow: hidden; }
.payment-dialog { width: 440px; max-width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; color: #171717; background: rgba(255,255,255,.95); box-shadow: 0 8px 32px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.8); font: 16px/24px ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; overflow-y: auto; overscroll-behavior: contain; }
.payment-dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; padding: 0 32px 16px 0; }
.dialog-header h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.dialog-close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #909399; line-height: 1; }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-close:hover { color: #171717; }
#payment-content { font-size: 14px; line-height: 21px; }
.payment-dialog .subscription-summary { padding: 16px; margin: 0; border: 1px solid rgba(0,0,0,.07); border-radius: 12px; background: rgba(0,0,0,.03); }
.subscription-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.subscription-name { min-width: 0; }
.subscription-eyebrow { margin: 0; color: #6b7280; font-size: 12px; line-height: 16px; }
.payment-dialog .subscription-summary .checkout-title { margin: 4px 0 0; color: #171717; font-size: 18px; line-height: 28px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-dialog .validity { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; padding: 3px 10px; border: 0; border-radius: 999px; background: rgba(0,0,0,.05); color: #525252; font-size: 12px; line-height: 18px; white-space: nowrap; }
.payment-dialog .validity svg { width: 14px; height: 14px; }
.payment-dialog .subscription-summary .service-pills { margin: 14px 0 0; gap: 6px; }
.payment-dialog .service-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgba(0,0,0,.06); border-radius: 999px; background: rgba(0,0,0,.043); color: #404040; font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.payment-dialog .service-pill img { width: 14px; height: 14px; object-fit: contain; }
.payment-dialog .payment-label { display: flex; align-items: center; gap: 6px; margin: 20px 0 10px; color: #262626; font-size: 14px; line-height: 21px; font-weight: 600; }
.payment-label svg, .confirm-pay > svg { width: 16px; height: 16px; flex-shrink: 0; }
.amount-due { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 18px; padding: 17px 0; font-size: 14px; color: var(--muted); }
.amount-due strong { color: var(--ink); font-size: 30px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.discount-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; font-size: 13px; color: var(--muted); }
.modal-qr { display: flex; flex-direction: column; align-items: center; padding: 7px 0 0; text-align: center; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.secondary-button { min-height: 44px; padding: 9px 16px; border: 1px solid #c8d2e1; border-radius: 7px; background: #fff; color: #35465c; font-size: 14px; }
.dialog-actions .secondary-button:first-child { flex: 1; }
.payment-dialog .pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.payment-dialog .pay-method, .payment-dialog .payment-note { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 14px 12px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fafafa; color: #363636; font-size: 14px; line-height: 20px; text-align: center; box-shadow: none; }
.payment-dialog .pay-method.selected { background: #f0fdf4; border-color: #22c55e; color: #171717; box-shadow: none; }
.payment-dialog .pay-icon, .payment-dialog .pay-logo, .payment-note > img { width: 20px; height: 20px; flex-shrink: 0; }
.payment-dialog .method-radio { display: none; }
.payment-dialog .selected .method-radio { position: absolute; right: 10px; display: grid; place-items: center; width: 16px; height: 16px; margin: 0; border: 0; border-radius: 50%; background: #22c55e; }
.payment-dialog .selected .method-radio:after { content: '✓'; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; }
.payment-dialog .amount-due { align-items: flex-end; padding: 16px 0 0; margin: 20px 0 16px; border: 0; border-top: 1px solid rgba(0,0,0,.08); border-radius: 0; background: transparent; color: #262626; font-size: 14px; line-height: 20px; font-weight: 600; }
.payment-dialog .amount-due strong { color: #171717; font-size: 28px; line-height: 28px; }
.payment-dialog .confirm-pay { min-height: 44px; padding: 12px 0; gap: 8px; background: #0a0a0a; background-image: linear-gradient(rgba(255,255,255,.08),transparent); color: #fff; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 14px rgba(0,0,0,.22); font-size: 14px; line-height: 20px; font-weight: 600; }
.payment-dialog .confirm-pay:hover { background-color: #262626; }
.payment-dialog .coupon-row { margin-bottom: 0; }
.payment-dialog .notice { margin-bottom: 14px; }
.payment-dialog .qr-caption { margin-top: 10px; }
.payment-dialog .qr-image { width: 208px; height: 208px; border-radius: 12px; }
.payment-dialog .order-number { margin: 0; text-align: center; }
.payment-dialog .payment-progress { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; }
.payment-dialog[data-stage="qr"] .subscription-summary { padding: 12px 14px; margin-bottom: 12px; }
.payment-dialog[data-stage="qr"] .subscription-summary .service-pills { display: none; }
.qr-side { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 290px; padding: 22px 16px; border: 1px solid #e3e9f2; border-radius: 12px; background: #f7f9fc; text-align: center; }
.qr-placeholder { width: 184px; height: 184px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; border: 1px dashed #b4c1d3; background: #fff; border-radius: 10px; }
.qr-placeholder svg { width: 42px; height: 42px; color: #62748e; }
.qr-placeholder span { font-size: 14px; line-height: 1.9; color: var(--muted); }
.qr-caption { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 14px 0 0; }
.qr-image { width: 194px; height: 194px; object-fit: contain; image-rendering: pixelated; background: #fff; padding: 8px; border: 1px solid #e2e8f0; border-radius: 10px; }
.qr-paid { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: #e5f5ec; color: #167345; font-size: 58px; }
.checkout-form { min-width: 0; padding: 2px 0; }
.checkout-topline { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.account-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #6b7b90; }
.account-dot.online { background: #15804d; }
.account-name { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { border: 0; background: none; color: var(--accent-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.checkout-topline .text-button { margin-left: 3px; }
.checkout-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.checkout-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; margin: 0 0 18px; }
.checkout-price strong { font-size: 38px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-price small { font-size: 13px; color: var(--muted); margin-left: 5px; }
.old-price { margin-left: 8px; font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.pay-method { display: flex; align-items: center; gap: 8px; border: 1px solid #c8d2e1; border-radius: 8px; background: #fff; color: #35465c; font-size: 14px; min-height: 44px; padding: 9px 16px; transition: border-color .15s, background .15s; }
.pay-method.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-icon { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.pay-logo { display: block; width: 24px; height: 24px; }
.coupon-row { display: flex; gap: 8px; max-width: 430px; margin-bottom: 14px; }
.coupon-row input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #c8d2e1; border-radius: 8px; background: #fff; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.coupon-row input::placeholder { color: #617088; opacity: 1; }
.coupon-row button { min-height: 44px; border: 1px solid #c8d2e1; border-radius: 8px; background: #f5f7fb; color: #35465c; font-size: 14px; padding: 0 18px; white-space: nowrap; }
.checkout-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 8px; padding: 11px 22px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; transition: background .15s; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button.full { width: 100%; }
.checkout-helper { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 14px 0 0; }
.notice { border: 1px solid #ceddf9; background: #f0f5ff; border-radius: 8px; color: #254c8c; font-size: 14px; line-height: 1.8; padding: 10px 13px; margin: 12px 0 0; overflow-wrap: anywhere; }
.notice.error { background: #fff3f2; border-color: #f0c4bf; color: #ae3027; }
.order-number { color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; margin: 10px 0; }
.payment-progress { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.progress-icon { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; color: #526071; margin-top: 1px; }
.progress-icon svg { width: 21px; height: 21px; }
.progress-copy { min-width: 0; }
.progress-title { margin: 0 0 3px; color: #35465c; font-size: 14px; font-weight: 700; }
.progress-detail { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.payment-progress .text-button { padding: 7px 0 0; min-height: 32px; }
.status-line { color: #167345; font-size: 15px; font-weight: 700; margin: 0 0 11px; }
.expiry-lines { color: #35465c; list-style: none; padding: 0; margin: 0 0 15px; font-size: 14px; line-height: 1.9; }
.qr-retry { margin-top: 10px; }

.help-row { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.help-row details { min-width: 0; width: 100%; border: 1px solid #cbd8ed; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px #20385905; }
.help-row summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; padding: 20px 22px; border-radius: 14px; }
.help-row summary::-webkit-details-marker { display: none; }
.help-row summary:hover { background: #f8faff; }
.help-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #d9e5fc; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.help-icon svg { width: 23px; height: 23px; }
.help-heading { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.help-heading strong { color: var(--ink); font-size: 16px; font-weight: 700; }
.help-heading > span { font-size: 13px; line-height: 1.7; }
.help-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin-left: auto; padding: 8px 12px; flex-shrink: 0; border: 1px solid #cfddfa; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.help-toggle svg { width: 17px; height: 17px; }
.help-collapse, details[open] .help-expand { display: none; }
details[open] .help-collapse { display: inline; }
details[open] .help-toggle svg { transform: rotate(180deg); }
.help-row details[open] summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.help-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 28px; padding: 24px; }
.help-item { min-width: 0; }
.help-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.help-item h3 { margin: 0 0 8px; color: #253952; font-size: 15px; line-height: 1.7; }
.help-item p { margin: 0; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.help-item p strong { font-weight: 700; color: #234b91; }
.help-highlight { padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 9px; background: #f3f7ff; }
.help-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; list-style: none; margin: 0 0 9px; padding: 0; font-size: 13px; line-height: 1.9; }
.help-features li { display: flex; align-items: baseline; gap: 6px; }
.help-features li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.help-features li:before { content: '✓'; color: var(--accent-dark); flex-shrink: 0; }
.help-item .help-footnote { font-size: 13px; }
.original-store-link { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; min-height: 44px; margin: 12px auto 0; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.original-store-link:hover { color: var(--accent-dark); }
.retry-panel, .loading-panel { text-align: center; padding: 60px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; color: var(--muted); }
.retry-panel p { margin: 0 0 16px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 7px; vertical-align: -2px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 30px); padding: 13px 20px; border-radius: 10px; background: #243247; color: #fff; box-shadow: 0 8px 25px #18223026; font-size: 14px; line-height: 1.8; text-align: center; pointer-events: none; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 26px 0; font-size: 12px; color: var(--muted); }
.footer-dot { color: #718096; }
footer a:hover { color: var(--accent-dark); }
.noscript { text-align: center; }
body.embedded .site-header { min-height: 62px; margin-top: 14px; }
body.embedded .hero { padding-top: 32px; }

@media (hover: hover) {
  .tier-card:hover, .period-card:hover { border-color: #7197ef; box-shadow: 0 4px 16px #245fe50a; }
  .tier-card.selected:hover, .period-card.selected:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .payment-dialog .pay-method:hover { background: #f5f5f5; border-color: #a3a3a3; }
  .payment-dialog .pay-method.selected:hover { background: #f0fdf4; border-color: #22c55e; }
}
@media (max-width: 960px) {
  .hero-note { display: none; }
  .hero h1 { font-size: 34px; }
  .tier-grid.has-other { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-grid.has-other > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tier-features { grid-template-columns: 1fr; }
  .checkout { padding: 24px; grid-template-columns: 224px minmax(0, 1fr); gap: 26px; }
  .qr-side { padding-left: 12px; padding-right: 12px; }
  .period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 22px; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 32px; }
  .tier-card { padding: 22px 20px 18px; }
  .tier-name { font-size: 19px; }
  .checkout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; padding: 22px; }
  .qr-side { padding-left: 7px; padding-right: 7px; }
  .section-label .aside { font-size: 12px; }
}
@media (max-width: 620px) {
  .page-shell { padding: 0 16px; }
  .site-header { min-height: 62px; margin-top: 12px; padding: 10px 12px; gap: 9px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; font-size: 19px; }
  .beta-tag { padding: 4px 7px; font-size: 12px; }
  .back-link { font-size: 13px; padding: 7px 10px; }
  .back-link span { display: none; }
  .hero { padding: 28px 0; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .hero h1 { font-size: 30px; line-height: 1.5; margin-bottom: 10px; max-width: 430px; }
  .intro { font-size: 14px; }
  .section-label { font-size: 16px; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
  .section-label .aside { font-size: 13px; flex-basis: 100%; padding-left: 33px; margin-top: -4px; }
  .tier-grid, .tier-grid.has-other { grid-template-columns: 1fr; gap: 14px; }
  .tier-card { padding: 22px 20px 18px; }
  .tier-name { font-size: 20px; }
  .tier-price strong { font-size: 36px; }
  .tier-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .tier-limit { font-size: 13px; }
  .period-section { margin-top: 28px; }
  .period-grid { gap: 12px; }
  .period-card { padding: 51px 16px 16px; }
  .period-title { font-size: 16px; gap: 7px; }
  .period-price { font-size: 28px; }
  .period-original { gap: 4px; }
  .period-choice { min-height: 147px; }
  .payment-dialog .coupon-row input { font-size: 16px; }
  .payment-dialog .checkout-topline { flex-wrap: wrap; }
  .checkout { display: flex; flex-direction: column-reverse; padding: 20px; gap: 22px; }
  .checkout-topline { gap: 7px; }
  .account-name { max-width: 170px; }
  .checkout-price strong { font-size: 36px; }
  .coupon-row { max-width: none; }
  .coupon-row input { font-size: 16px; }
  .coupon-row button { padding: 0 15px; }
  .checkout-actions > .primary-button { width: 100%; }
  .qr-side { padding: 24px 16px; min-height: 0; }
  .qr-image { width: 210px; height: 210px; }
  .qr-paid { width: 130px; height: 130px; font-size: 50px; }
  .help-row { margin-top: 22px; }
  .help-row summary { padding: 16px; gap: 10px; }
  .help-icon { width: 34px; height: 38px; border-radius: 8px; }
  .help-icon svg { width: 21px; height: 21px; }
  .help-heading strong { font-size: 15px; }
  .help-heading > span { font-size: 12px; }
  .help-toggle { width: 34px; min-height: 34px; padding: 7px; }
  .help-row .help-toggle .help-expand, .help-row .help-toggle .help-collapse { display: none; }
  .help-content { grid-template-columns: 1fr; gap: 22px; padding: 18px 16px; }
  .help-highlight { padding: 13px; }
  .help-features { grid-template-columns: 1fr; }
  footer { font-size: 12px; gap: 7px; padding: 24px 0; }
}
@media (max-width: 380px) {
  .page-shell { padding: 0 12px; }
  .site-header { gap: 7px; padding: 10px; }
  .beta-tag { display: none; }
  .hero h1 { font-size: 28px; }
  .tier-card { padding-left: 18px; padding-right: 18px; }
  .tier-features { grid-template-columns: 1fr; }
  .period-card { padding-left: 13px; padding-right: 13px; }
  .period-title { gap: 5px; }
  .checkout { padding: 18px; }
  .account-name { max-width: 126px; }
  .method-radio { display: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .payment-dialog { width: 95%; }
}
@media (max-width: 639px) {
  .payment-dialog .pay-methods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
