/* 捐款页：复用 webmaster.css，此处补充 banner 变量与细节 */
.globalBanner {
    --banner_height: 420px;
    --banner_background: url('/themes/web/www/static/banner/remoteL17130985074594.jpeg');
}

/* ============ 自定义金额 ============ */
.sponsorshipProgram .program-voucher-custom .program-left-text{display:flex;flex-direction:column;}
.sponsorshipProgram .program-voucher-custom .donate-custom-form{margin-top:8px;}
.sponsorshipProgram .program-voucher-custom .donate-custom-row{display:flex;align-items:center;gap:10px;}
.sponsorshipProgram .program-voucher-custom .donate-custom-field{display:flex;align-items:center;width:132px;height:44px;padding:0 10px;background:#fff;border:1px solid #b9cce1;box-sizing:border-box;transition:border-color .2s;}
.sponsorshipProgram .program-voucher-custom .donate-custom-field span{font-size:15px;color:#09285d;margin-right:2px;}
.sponsorshipProgram .program-voucher-custom .donate-custom-amount{flex:1;min-width:0;height:40px;padding:0;border:0;background:transparent;font-size:15px;color:#09285d;letter-spacing:0;-moz-appearance:textfield;appearance:textfield;}
.sponsorshipProgram .program-voucher-custom .donate-custom-amount:focus{outline:none;}
.sponsorshipProgram .program-voucher-custom .donate-custom-amount::-webkit-outer-spin-button,
.sponsorshipProgram .program-voucher-custom .donate-custom-amount::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.sponsorshipProgram .program-voucher-custom .donate-custom-amount:invalid{color:#d93026;}
.sponsorshipProgram .program-voucher-custom .donate-custom-field:has(.donate-custom-amount:invalid){border-color:#d93026;}
.sponsorshipProgram .program-voucher-custom .donate-custom-field.is-error{border-color:#d93026;}
.sponsorshipProgram .program-voucher-custom .donate-custom-hint{margin:0;font-size:12px;line-height:16px;color:#3d3d3d;opacity:.85;}
.sponsorshipProgram .program-voucher-custom .donate-custom-hint.is-error{color:#d93026;opacity:1;}
.sponsorshipProgram .program-voucher-custom .donate-custom-submit{border:0;padding:0;font-family:inherit;-webkit-appearance:none;appearance:none;}
.sponsorshipProgram .program-voucher-custom .donate-custom-submit:hover{opacity:.92;}

/* ============ 查询订单 ============ */
.donate-order{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 32px;padding:26px 30px;background:#fff;border:1px solid #e2eaf4;box-sizing:border-box;}
.donate-order-text{flex:1 1 380px;min-width:0;}
.donate-order-text h2{margin:0 0 6px;font-size:22px;line-height:32px;color:#09285d;}
.donate-order-text p{margin:0;font-size:14px;line-height:24px;color:#5b6779;}
.donate-order-form{display:flex;flex:1 1 320px;min-width:0;gap:10px;box-sizing:border-box;}
.donate-order-form input{flex:1 1 140px;width:auto;min-width:0;height:44px;padding:0 14px;border:1px solid #c7d5e5;border-radius:0;background:#fff;font-size:14px;color:#09285d;box-sizing:border-box;}
.donate-order-form input:focus{outline:none;border-color:#0a5cff;}
.donate-order-form button{flex:0 0 auto;min-width:max-content;box-sizing:border-box;white-space:nowrap;height:44px;padding:0 26px;border:0;border-radius:0;background-image:var(--gradient2);color:#fff;font-size:14px;font-weight:600;letter-spacing:.5px;cursor:pointer;}
.donate-order-form button:hover{opacity:.92;}
.donate-order-tip{flex:0 0 100%;margin:0;font-size:12px;line-height:18px;color:#9aa6b6;}
@media (max-width:768px){
    .donate-order{padding:20px 18px;}
}

/* ============ 支付与证书弹层 ============ */
.donate-layer{position:fixed;inset:0;z-index:99990;display:none;align-items:center;justify-content:center;background:rgba(10,31,68,.55);padding:20px;}
.donate-layer.is-open{display:flex;}
.donate-layer-lock{overflow:hidden;}
.donate-sheet{width:100%;max-width:380px;background:#fff;border-radius:8px;padding:26px 24px;box-shadow:0 18px 60px rgba(10,31,68,.35);box-sizing:border-box;}
.donate-sheet-head{font-size:18px;font-weight:600;color:#09285d;text-align:center;}
.donate-sheet-amount{margin:14px 0 4px;text-align:center;font-size:34px;font-weight:700;color:#09285d;}
.donate-sheet-field{display:block;margin:12px 0 0;}
.donate-sheet-field span{display:block;font-size:13px;color:#5b6779;margin-bottom:6px;}
.donate-sheet-field input{width:100%;height:40px;padding:0 12px;border:1px solid #c7d5e5;border-radius:4px;background:#fff;font-size:14px;color:#09285d;box-sizing:border-box;}
.donate-sheet-field input:focus{outline:none;border-color:#0a5cff;}
.donate-sheet-choose{display:flex;gap:10px;margin-top:14px;}
.donate-pay-opt{flex:1;padding:12px 8px;border:1px solid #c7d5e5;border-radius:6px;background:#fff;cursor:pointer;text-align:center;font-family:inherit;transition:all .2s;}
.donate-pay-opt b{display:block;font-size:15px;color:#09285d;}
.donate-pay-opt span{display:block;margin-top:4px;font-size:12px;color:#8a97a8;}
.donate-pay-opt.is-active{border-color:#0a5cff;background:rgba(10,92,255,.06);box-shadow:0 0 0 1px #0a5cff inset;}
.donate-sheet-go{display:block;width:100%;height:44px;margin-top:16px;border:0;border-radius:4px;background-image:var(--gradient2,#0a5cff);color:#fff;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;}
.donate-sheet-cancel{display:block;width:100%;height:38px;margin-top:8px;border:0;border-radius:4px;background:transparent;color:#8a97a8;font-size:14px;cursor:pointer;font-family:inherit;}

/* ---- 证书 ---- */
.donate-cert{width:100%;max-width:760px;display:flex;flex-direction:column;align-items:center;}
.donate-cert-paper{position:relative;width:100%;aspect-ratio:756/1088;background:#fff url('/themes/web/www/static/picture/cert_bg.png?v=20261122b') 0 0/100% 100% no-repeat;box-shadow:0 18px 60px rgba(10,31,68,.4);overflow:hidden;container-type:inline-size;font-family:"思源黑体 CN","Source Han Sans CN","PingFang SC","Microsoft YaHei",sans-serif;}
.donate-cert-logo{position:absolute;top:5.6%;left:50%;transform:translateX(-50%);width:26%;}
.donate-cert-content{position:absolute;left:11%;right:11%;top:21.5%;bottom:23%;display:flex;flex-direction:column;align-items:center;text-align:center;}
.donate-cert-eyebrow{font-size:12px;font-size:1.62cqw;line-height:1.6;letter-spacing:.42em;text-indent:.42em;color:#7d8ca1;}
.donate-cert-title{margin:1.1cqw 0 0;font-size:58px;font-size:7.6cqw;line-height:1.14;font-weight:900;letter-spacing:.26em;text-indent:.26em;color:#DBB223;}
.donate-cert-subtitle{margin-top:.9cqw;font-size:11px;font-size:1.44cqw;letter-spacing:.36em;text-indent:.36em;color:#b3bdcb;font-weight:500;}
.donate-cert-rule{width:7.2cqw;height:1px;margin-top:2.2cqw;background:linear-gradient(90deg,rgba(219,178,35,0),#DBB223,rgba(219,178,35,0));}
.donate-cert-body{flex:1;display:flex;flex-direction:column;justify-content:center;font-size:16px;font-size:2.16cqw;line-height:2.15;color:#1a3a66;letter-spacing:.03em;}
.donate-cert-body p{margin:0;}
.donate-cert-body b{font-size:2.32cqw;font-weight:700;color:#0c2b56;letter-spacing:.06em;border-bottom:1px solid rgba(219,178,35,.5);padding:0 .12em;}
.donate-cert-amount{margin:1.4cqw 0 .4cqw !important;font-size:2.9cqw;font-weight:800;color:#C79E17;letter-spacing:.06em;}
.donate-cert-amount i{display:block;margin-top:.55cqw;font-size:1.55cqw;font-style:normal;font-weight:500;color:#9a874d;letter-spacing:.2em;text-indent:.2em;}
.donate-cert-thanks{margin-top:1.8cqw !important;font-weight:600;letter-spacing:.14em;text-indent:.14em;}
.donate-cert-no{position:absolute;left:0;right:0;bottom:16.4%;text-align:center;font-size:11px;font-size:1.5cqw;color:#6f7f95;letter-spacing:.08em;}
.donate-cert-qr{position:absolute;left:6.4%;bottom:5.6%;display:flex;flex-direction:column;align-items:center;gap:.6cqw;}
.donate-cert-qr img{width:13.2cqw;height:13.2cqw;display:block;background:#fff;}
.donate-cert-qr span{font-size:1.45cqw;color:#7d8ca1;letter-spacing:.18em;text-indent:.18em;}
.donate-cert-sign{position:absolute;right:10.5%;bottom:7.2%;text-align:right;color:#0c2b56;}
.donate-cert-sign span{display:block;font-size:2cqw;font-weight:700;letter-spacing:.16em;text-indent:.16em;}
.donate-cert-sign span+span{margin-top:.5cqw;font-size:1.5cqw;font-weight:400;color:#6f7f95;letter-spacing:.06em;}
.donate-cert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:16px;}
.donate-cert-actions button{height:42px;padding:0 22px;border:0;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;}
.donate-cert-print{background-image:var(--gradient2,#0a5cff);color:#fff;}
.donate-cert-close{background:#fff;border:1px solid #c7d5e5;color:#5b6779;}
.donate-cert-copy{background:#fff;border:1px solid #c7d5e5;color:#09285d;}

/* ---- 查询结果 ---- */
.donate-query-item{flex:0 0 100%;margin-top:4px;padding:14px 16px;background:rgba(10,92,255,.05);border:1px solid #dbe6f4;font-size:14px;color:#09285d;line-height:1.8;box-sizing:border-box;}
.donate-query-item.is-empty{background:#fff8f0;border-color:#f2d9bd;color:#8a6b3d;}
.donate-query-item a{color:#0a5cff;margin-left:6px;}
.donate-query-status{display:inline-block;margin-left:10px;padding:1px 10px;font-size:12px;border-radius:10px;}
.donate-query-status.is-paid{color:#1a7f37;background:rgba(26,127,55,.1);}
.donate-query-status.is-pending{color:#b26b00;background:rgba(178,107,0,.1);}
.donate-query-cert{margin-top:8px;height:34px;padding:0 18px;border:0;background-image:var(--gradient2,#0a5cff);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;}
.donate-query-tip{font-size:12px;color:#8a97a8;}

/* ---- 打印：只输出证书 ---- */
@media print{
    body>*{display:none !important;}
    body{background:#fff !important;}
    .donate-layer{display:block !important;position:static;background:none;padding:0;}
    .donate-cert{max-width:100%;}
    .donate-cert-paper{box-shadow:none;}
    .donate-cert-actions{display:none !important;}
}
@media (max-width:768px){
}
