:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #222; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid #6757dd; outline-offset: 3px; }
button { border: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.primary { color: white; background: linear-gradient(105deg, #df339b, #ff2738); font-weight: 500; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: max(32px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: min(88vw, 420px); margin: 0; padding: 13px 18px; border-radius: 10px; background: #24202feF; color: white; font-size: 14px; line-height: 1.6; box-shadow: 0 4px 22px #0002; text-align: center; }
.dialog { width: min(82vw, 330px); padding: 25px 22px 18px; border: 0; border-radius: 20px; text-align: center; box-shadow: 0 16px 50px #0002; }
dialog::backdrop { background: #0008; }
.dialog h2 { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.dialog p { color: #888; margin: 0 0 22px; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.platform-actions { display: grid; gap: 12px; }
.platform-actions button { min-height: 46px; border-radius: 24px; }
.text-button { padding: 14px 24px 0; background: transparent; color: #888; }
.download-page { background: #322c71; }
.download-content { max-width: 540px; margin: auto; }
.download-content img { display: block; width: 100%; height: auto; }
.download-hero { position: relative; }
/* 设计图内已绘制下载按钮，真实按钮只覆盖该区域，保留原稿视觉。 */
.download-hit { position: absolute; left: 23%; top: 81%; width: 54%; height: 6.5%; border-radius: 60px; background: transparent; }
.download-hit:active { background: #ffffff20; }
.browser-guide { position: fixed; inset: 0; width: min(100%, 540px); max-width: 100%; height: 100%; max-height: 100%; margin: 0 auto; padding: 110px 28px 30px; border: 0; color: white; background: transparent; text-align: center; }
.browser-guide::backdrop { background: #000b; }
.browser-guide h2 { font-size: 22px; }
.browser-guide p { font-size: 17px; line-height: 1.8; }
.guide-arrow { position: absolute; right: 25px; top: 20px; font-size: 90px; font-weight: 200; }
.guide-dismiss { margin-top: 20px; padding: 10px 30px; border: 1px solid #fff9; border-radius: 24px; background: transparent; color: white; }
.recharge-page { min-height: 100dvh; background: #f4faff; }
.recharge-content { width: 100%; max-width: 480px; min-height: 100dvh; margin: auto; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
.card { background: white; border-radius: 17px; }
.account-card { padding: 22px 15px 15px; }
.account-row { display: flex; gap: 8px; min-height: 48px; }
.account-row input { min-width: 0; flex: 1; width: 100%; border: 0; border-radius: 6px; padding: 12px; color: #222; background: #f4f9fd; font-size: 14px; }
input::placeholder { color: #aaa; }
.confirm-id { background: #ff283e; color: white; border-radius: 7px; width: 66px; flex-shrink: 0; font-size: 15px; }
.account-result { color: #61616b; font-size: 12px; line-height: 1.5; margin: 10px 0 0; overflow-wrap: anywhere; }
.customer-service { color: #999; font-size: 11px; line-height: 1.7; margin: 23px 0 0; }
.fraud-tip { color: #cd5e4f; font-size: 11px; line-height: 1.8; margin: 0; }
.fraud-tip strong { color: #444; font-weight: 600; }
.recharge-card { margin-top: 14px; padding: 20px 15px 28px; }
.section-title { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; margin: 0 0 18px; }
.section-title::before, .section-title::after { content: ""; width: 15px; height: 2px; background: #df508c; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amount-option { position: relative; display: grid; place-content: center; gap: 1px; min-width: 0; height: 72px; border: 1px solid #e2e8ef; border-radius: 8px; background: #f4f9fd; color: #222; }
.amount-option[aria-pressed="true"] { background: #fff3f8; border-color: #e788b0; }
.amount-option[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -1px; right: -1px; width: 23px; height: 21px; border-radius: 0 8px 0 6px; background: #ed6598; color: white; font-size: 16px; }
.coins { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 21px; font-weight: 650; }
.coins i { display: grid; place-content: center; font-style: normal; font-size: 10px; font-weight: 600; color: #de9a17; background: #ffe36a; border: 1px solid #f7c946; width: 16px; height: 16px; border-radius: 50%; }
.price { font-size: 14px; color: #92959b; }
.custom-amount { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px; margin-top: 10px; border: 1px solid transparent; border-radius: 8px; background: #f4f9fd; font-size: 14px; }
.custom-amount:focus-within, .custom-amount:has(input:not(:placeholder-shown)) { border-color: #e788b0; background: #fff5f9; }
.custom-amount input { flex: 1; width: 100%; min-width: 0; border: 0; padding: 13px 0; background: transparent; color: #333; outline: 0; font-size: 14px; }
.custom-result { flex-shrink: 0; font-size: 12px; color: #96939b; }
.clear-amount { display: grid; place-content: center; width: 17px; height: 17px; padding: 0; flex-shrink: 0; border: 1px solid #aaa; border-radius: 50%; color: #999; background: transparent; line-height: 1; font-size: 14px; }
.payment-methods { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.payment-methods legend { color: #999; font-size: 13px; padding: 0; margin-bottom: 22px; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-option { position: relative; display: flex; align-items: center; gap: 5px; padding: 18px 10px; border: 1px solid #e2e8ef; border-radius: 8px; background: #f4f9fd; cursor: pointer; font-size: 13px; white-space: nowrap; }
.payment-option:has(input:checked) { border-color: #e788b0; background: #fff5f9; }
.payment-option:has(input:focus-visible) { outline: 3px solid #6757dd; }
.payment-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-icon { width: 28px; height: 28px; flex-shrink: 0; }
.recommended { position: absolute; top: -12px; left: -2px; background: #ff3149; color: white; border-radius: 5px 5px 5px 0; padding: 2px 5px; font-size: 10px; }
.radio-mark { margin-left: auto; width: 20px; height: 20px; border: 2px solid #dce2e9; border-radius: 50%; flex-shrink: 0; }
.payment-option input:checked ~ .radio-mark { border: 6px solid #ed558b; background: white; }
.recharge-footer { margin-top: 46px; text-align: center; }
.adult-notice { font-size: 10px; line-height: 1.6; color: #aaa; margin: 0 0 8px; }
.recharge-submit { width: 100%; border-radius: 30px; min-height: 52px; font-size: 17px; }
.agreement-line { margin: 10px 0 0; font-size: 10px; line-height: 1.7; color: #aaa; }
.agreement-link { padding: 0; font-size: inherit; background: transparent; color: #d75979; }
.pay-dialog { padding: 22px 0 0; width: min(82vw, 310px); border-radius: 18px; }
.pay-dialog p { margin: 0; padding: 0 24px 24px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #f0f0f0; }
.dialog-actions button { border-radius: 0; min-height: 52px; font-size: 16px; }
.dialog-actions .cancel { color: #999; background: white; }
@media (max-width: 360px) {
  .recharge-content { padding: 16px 12px; }
  .account-card, .recharge-card { padding-left: 12px; padding-right: 12px; }
  .payment-option { padding: 17px 7px; gap: 3px; font-size: 12px; }
  .payment-icon { width: 24px; height: 24px; }
  .radio-mark { width: 17px; height: 17px; }
  .custom-result { font-size: 10px; }
}
