:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #182a42;
  background: #f4f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(150deg, #edf5ff 0%, #f7f9fc 46%, #eef8f3 100%); }
.page-shell { width: min(100%, 480px); margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom)); }
.wechat-browser-tip { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 11px; border: 1px solid #f0c66e; border-radius: 10px; background: #fff7e5; color: #765719; font-size: 12px; line-height: 1.45; }
.wechat-browser-tip[hidden] { display: none; }
.wechat-browser-tip p { margin: 0; }
.wechat-browser-tip strong { color: #a26900; }
.tip-icon { display: grid; flex: 0 0 auto; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: #e9ab32; color: #fff; font-size: 11px; font-weight: 800; }
.hero { padding: 5px 5px 16px; }
.eyebrow { margin: 0 0 5px; color: #278264; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 5px; font-size: 24px; letter-spacing: .3px; }
.hero p:not(.eyebrow) { margin-bottom: 9px; color: #657487; font-size: 12px; line-height: 1.55; }
.required-badge { display: inline-block; padding: 5px 9px; border-radius: 99px; background: #fff0ed; color: #d24c3c; font-size: 11px; font-weight: 700; }
.card { margin-bottom: 12px; padding: 17px 14px; background: rgba(255,255,255,.94); border: 1px solid rgba(203,216,231,.75); border-radius: 14px; box-shadow: 0 7px 22px rgba(42, 74, 107, .06); }
.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.section-number { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #e5f5ee; color: #21815f; font-size: 10px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 16px; }
.two-columns { display: grid; grid-template-columns: 1fr; gap: 0; }
.field { display: block; margin: 0 0 14px; color: #38485d; font-size: 14px; font-weight: 650; }
.field > span { display: block; margin-bottom: 6px; }
i { color: #e14949; font-style: normal; }
input[type="text"], input[type="tel"] { width: 100%; height: 47px; padding: 0 12px; border: 1px solid #d5deea; border-radius: 10px; outline: none; color: #172a43; background: #fff; font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #a6b0bd; }
input:focus { border-color: #2b9d75; box-shadow: 0 0 0 3px rgba(43,157,117,.13); }
.field small { display: block; margin-top: 5px; color: #d35d43; font-size: 11px; font-weight: 500; line-height: 1.4; }
.payment-card { border-color: #f1d59b; background: linear-gradient(145deg, rgba(255,253,247,.98), rgba(255,248,231,.88)); }
.payment-alert, .receipt-alert { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; color: #bd3b2b; background: #fff0ed; border: 1px solid #ffc8c0; font-size: 16px; letter-spacing: .2px; text-align: center; }
.payment-alert span, .receipt-alert span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e64c3c; color: #fff; font-size: 13px; font-weight: 800; }
.payment-help { margin: 10px 0 8px; color: #786a4c; font-size: 12px; line-height: 1.5; text-align: center; }
.payment-qrcode { display: block; width: min(100%, 330px); height: auto; margin: 0 auto; border-radius: 10px; background: #fff; box-shadow: 0 4px 15px rgba(121, 84, 27, .13); }
.receipt-copy { margin: -3px 0 11px; color: #d24c3c; font-size: 13px; font-weight: 650; line-height: 1.5; text-align: center; }
.receipt-required-notice { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; padding: 12px; border: 2px solid #ef4e42; border-radius: 10px; color: #b82d24; background: #fff0ee; font-size: 15px; text-align: center; animation: receipt-warning .8s ease-in-out infinite alternate; }
.receipt-required-notice[hidden] { display: none; }
.receipt-required-notice span { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #e64c3c; font-size: 13px; font-weight: 800; }
.example-figure { width: min(100%, 300px); margin: 0 auto 14px; overflow: hidden; border: 1px solid #dce4ec; border-radius: 10px; background: #f8fafc; }
.example-figure img { display: block; width: 100%; height: auto; }
.example-figure figcaption { padding: 7px; color: #657487; font-size: 12px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.receipt-picker { display: block; position: relative; overflow: hidden; min-height: 156px; cursor: pointer; border: 1.5px dashed #aac7ba; border-radius: 12px; background: #f7fcf9; }
.receipt-picker.is-invalid { border: 2px solid #ef4e42; background: #fff7f6; box-shadow: 0 0 0 4px rgba(239,78,66,.13); }
.receipt-placeholder { display: flex; min-height: 156px; padding: 16px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #31785f; }
.receipt-placeholder .plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dff1e8; font-size: 23px; font-weight: 300; line-height: 1; }
.receipt-placeholder strong { margin-top: 1px; font-size: 14px; }
.receipt-placeholder em { color: #84978d; font-size: 12px; font-style: normal; }
#receiptPreview { display: block; width: 100%; max-height: 440px; object-fit: contain; background: #edf2ef; }
.receipt-status { min-height: 17px; margin: 6px 1px 0; color: #6c7d90; font-size: 11px; }
.receipt-status.success { color: #19855e; }
.receipt-status.error, .form-message.error { color: #d24646; }
.form-message { min-height: 18px; margin: 2px 4px 7px; color: #19855e; text-align: center; font-size: 13px; }
.submit-panel { position: sticky; z-index: 2; bottom: 0; margin: 0 -4px; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(244,247,251,0), rgba(244,247,251,.94) 24%, #f4f7fb 52%); }
.submit-button { width: 100%; height: 52px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #23966f, #187958); box-shadow: 0 7px 15px rgba(29,126,91,.2); cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; transition: transform .15s, opacity .2s; }
.submit-button:active { transform: scale(.985); }
.submit-button:disabled { cursor: not-allowed; opacity: .6; }
.privacy-note { margin: 9px 8px 0; color: #8996a4; font-size: 10px; line-height: 1.4; text-align: center; }
.success-card { margin-top: 12vh; padding: 45px 24px; border-radius: 20px; background: #fff; box-shadow: 0 15px 45px rgba(42,74,107,.12); text-align: center; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #dff4e9; color: #16855c; font-size: 30px; font-weight: 800; }
.success-card h1 { margin-bottom: 10px; font-size: 24px; }
.success-card p { margin: 0; color: #718093; line-height: 1.6; }
.success-page { min-height: 100dvh; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }
.success-page .success-card { width: min(100%, 390px); margin: 0; }
.success-action { display: inline-grid; place-items: center; min-width: 172px; height: 44px; margin-top: 25px; border-radius: 10px; color: #fff; background: #21815f; font-size: 14px; font-weight: 700; text-decoration: none; }
@keyframes receipt-warning { from { transform: scale(1); } to { transform: scale(1.015); } }
@media (min-width: 640px) {
  .page-shell { width: min(100%, 680px); padding-top: 46px; }
  .card { padding: 25px 28px; }
  .two-columns { grid-template-columns: 1fr 1fr; gap: 10px; }
  .submit-panel { margin: 0; padding: 0; background: none; }
  .submit-button { height: 48px; font-size: 15px; }
}
