*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,Arial,Helvetica,sans-serif}
html,body{width:100%;min-height:100%}
body{min-height:100vh;background:#f3f4f6;display:flex;justify-content:center;align-items:center;padding:16px;color:#111827}
#app{width:100%;display:flex;justify-content:center;align-items:center}

/* 首页 */
.page{width:100%;max-width:450px;background:#fff;border-radius:26px;padding:24px 20px 28px;box-shadow:0 10px 35px rgba(0,0,0,.08);border:1px solid #e5e7eb}
.home-view .top-bar{width:54px;height:5px;background:#d1d5db;border-radius:999px;margin:-12px auto 20px}
.title{text-align:center;font-size:22px;font-weight:900;margin-bottom:12px}
.title .name{color:#00c853}
.verify{display:inline-flex;width:18px;height:18px;background:#1d9bf0;color:white;border-radius:50%;align-items:center;justify-content:center;font-size:12px;margin-left:4px;vertical-align:middle;font-weight:900}
.badge{width:fit-content;margin:0 auto 20px;padding:8px 16px;border-radius:999px;background:#eafff1;color:#00a63e;font-size:14px;font-weight:800;display:flex;align-items:center;gap:7px}
.shield{width:18px;height:18px;border-radius:50%;background:#00c853;color:white;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900}
.brand-card{border:1px solid #e5e7eb;border-radius:20px;padding:28px 16px;text-align:center;margin-bottom:20px;background:#fff}
.logo{width:64px;height:64px;margin:0 auto 12px;border-radius:18px;background:linear-gradient(135deg,#00e05a,#00b84a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;box-shadow:0 10px 24px rgba(0,200,83,.25)}
.brand-title{font-size:19px;font-weight:900;margin-bottom:4px}
.brand-subtitle{font-size:14px;color:#6b7280;line-height:1.45}
.amount-box{background:#e9fff1;border-radius:20px;padding:18px;margin-bottom:20px}
.amount-title{color:#00a63e;font-size:14px;font-weight:900;display:flex;align-items:center;gap:8px;margin-bottom:16px;text-transform:uppercase;letter-spacing:.3px}
.coin-icon{width:20px;height:20px;border:2px solid #00a63e;color:#00a63e;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.amount-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}
.amount-btn{border:1px solid #b7efc5;background:#fff;color:#111827;border-radius:999px;padding:14px 6px;font-size:15px;font-weight:900;cursor:pointer;transition:.18s}
.amount-btn:hover{transform:translateY(-1px);border-color:#00d455}
.amount-btn.active{background:#00d455;border-color:#00d455;color:#fff;box-shadow:0 8px 18px rgba(0,212,85,.2)}
.more-btn{width:100%;border:none;background:#b8f8ce;color:#00a63e;border-radius:999px;padding:14px;font-size:15px;font-weight:900;cursor:pointer;margin-bottom:12px}
.more-amounts{display:none;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}
.custom-input{display:flex;align-items:center;height:52px;background:#fff;border:1px solid #b7efc5;border-radius:999px;padding:0 18px;gap:10px}
.custom-input span{color:#00a63e;font-size:18px;font-weight:900}
.custom-input input{border:none;outline:none;width:100%;font-size:16px;font-weight:800;color:#111827;background:transparent}
.quote{font-size:13px;color:#047857;font-weight:800;margin-top:10px;text-align:center;min-height:18px}
.pay-button{width:100%;border:none;background:#00d455;color:#fff;border-radius:999px;padding:18px;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(0,212,85,.25);transition:.18s}
.pay-button:hover{background:#00c44e;transform:translateY(-1px)}
.pay-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}
.home-view .message{display:none;margin-top:14px;padding:12px;border-radius:14px;font-size:14px;text-align:center;line-height:1.4}
.home-view .message.error{display:block;background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.home-view .message.success{display:block;background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.footer{text-align:center;margin-top:18px;color:#9ca3af;font-size:14px}
.footer strong{color:#4b5563}

/* 付款页 */
.checkout{width:100%;max-width:450px;background:#fff;border-radius:26px;padding:22px 20px 26px;box-shadow:0 10px 35px rgba(0,0,0,.08);border:1px solid #e5e7eb}
.payment-view .top-bar{width:54px;height:5px;background:#d1d5db;border-radius:999px;margin:-10px auto 20px}
.timer{background:#fff8e5;color:#b45309;border-radius:12px;text-align:center;font-size:14px;font-weight:900;letter-spacing:.8px;padding:12px;margin-bottom:16px}
.timer.expired{background:#fee2e2;color:#b91c1c}
.label{text-align:center;color:#9ca3af;font-size:13px;font-weight:900;letter-spacing:1.2px;margin-bottom:8px;text-transform:uppercase}
.amount{text-align:center;color:#00c853;font-size:48px;line-height:1;font-weight:900;margin-bottom:10px}
.hint{text-align:center;color:#9ca3af;font-size:14px;margin-bottom:22px}
.qr-card{border:1px solid #e5e7eb;border-radius:20px;padding:20px;margin-bottom:18px;display:flex;justify-content:center;background:#fff}
.qr-wrap{position:relative;width:280px;height:280px}
.qr-wrap img{width:100%;height:100%;display:block}
.qr-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:16px;background:#00c853;color:#fff;display:flex;justify-content:center;align-items:center;font-size:30px;font-weight:900;border:5px solid white;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.info-box{background:#f9fafb;border-radius:14px;padding:14px 16px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.info-left{min-width:0}
.info-title{color:#9ca3af;font-size:12px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;margin-bottom:6px}
.info-value{font-size:14px;font-weight:900;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}
.status{padding:8px 12px;border-radius:10px;font-size:12px;font-weight:900;white-space:nowrap}
.status.waiting{background:#fff3cd;color:#b45309}
.status.paid{background:#dcfce7;color:#15803d}
.status.expired{background:#fee2e2;color:#b91c1c}
.invoice-line{background:#f9fafb;border-radius:14px;padding:14px 16px;margin-bottom:18px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.prefix{color:#9ca3af;font-size:14px;font-weight:800}
.bolt{font-size:13px;font-weight:900;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;max-width:260px}
.pay-btn{width:100%;border:none;background:#00d455;color:white;border-radius:999px;padding:18px;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(0,212,85,.25);margin-bottom:16px}
.pay-btn:disabled{background:#9ca3af;cursor:not-allowed;box-shadow:none}
.copy-btn{width:100%;border:none;background:transparent;color:#111827;font-size:16px;font-weight:900;cursor:pointer;padding:10px}
.payment-view .message{display:none;margin-top:10px;padding:12px;border-radius:12px;text-align:center;font-size:14px;font-weight:800;line-height:1.45}
.payment-view .message.show{display:block;background:#eafff1;color:#15803d}
.payment-view .message.warn{display:block;background:#fff8e5;color:#b45309}
.payment-view .message.err{display:block;background:#fee2e2;color:#b91c1c}
.success-screen{text-align:center}
.success-icon{width:76px;height:76px;border-radius:50%;background:#00c853;color:#fff;display:flex;align-items:center;justify-content:center;margin:20px auto 16px;font-size:42px;font-weight:900}
.success-title{font-size:25px;font-weight:900;margin-bottom:8px}
.success-subtitle{color:#6b7280;font-size:14px;line-height:1.5;margin-bottom:20px}
.success-amount{font-size:42px;font-weight:900;color:#00c853;margin-bottom:18px}
.success-detail{background:#f9fafb;border-radius:16px;padding:14px;margin-bottom:16px}
.success-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;font-size:14px}
.success-key{color:#9ca3af;font-weight:900}
.success-value{color:#111827;font-weight:900}
.done-btn{width:100%;border:none;background:#00d455;color:#fff;border-radius:999px;padding:17px;font-size:17px;font-weight:900;cursor:pointer}
.empty{text-align:center;color:#6b7280;font-weight:800;line-height:1.5;padding:30px 10px}

/* Loading */
.page-loader{position:fixed;inset:0;background:#f4f5f7;z-index:99999;display:none;align-items:center;justify-content:center}
.page-loader.show{display:flex}
.loader-box{text-align:center}
.loader-logo-wrap{width:132px;height:132px;background:#ccf5dc;border-radius:22px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;animation:loaderPulse 1.2s ease-in-out infinite}
.loader-logo{width:82px;height:82px;border-radius:18px;background:#00d455;color:#fff;font-size:54px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 28px rgba(0,212,85,.28)}
.loader-text{color:#374151;font-size:16px;font-weight:900}
.loader-dots::after{content:"";animation:dots 1.2s steps(4,end) infinite}
@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}100%{content:""}}
@keyframes loaderPulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.92}100%{transform:scale(1);opacity:1}}

@media(max-width:420px){
  .amount{font-size:42px}
  .qr-wrap{width:250px;height:250px}
  .success-amount{font-size:38px}
}
