:root{color-scheme:light;--primary: #1677ff;--primary-soft: #eaf3ff;--text: #1f2937;--muted: #8b97a8;--line: #edf1f6;--bg: #f4f7fb;--danger: #e5484d}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}.page{min-height:100vh;padding:20px 14px 120px}.hero{padding:22px 20px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#2489ff,#075fdb);box-shadow:0 10px 26px #1677ff38}.hero h1{margin:0;font-size:23px;font-weight:600}.hero p{margin:9px 0 0;font-size:14px;opacity:.88}.patient{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:16px 18px;border-radius:14px;background:#fff}.patient-name{font-size:17px;font-weight:600}.patient-tip{color:var(--muted);font-size:12px;margin-top:5px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 4px 10px;font-size:15px;font-weight:600}.select-all{color:var(--primary);font-size:13px;font-weight:400}.bill-list{display:flex;flex-direction:column;gap:12px}.date-groups{display:flex;flex-direction:column;gap:22px}.date-group{display:flex;flex-direction:column;gap:10px}.date-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px;color:#657184;font-size:13px}.date-label{display:flex;align-items:center;gap:8px}.date-label strong{color:#263244;font-size:15px}.day-badge{padding:3px 8px;border-radius:999px;color:#1677ff;background:var(--primary-soft);font-size:11px}.date-count{color:#9aa5b5;font-size:12px}.bill{display:flex;gap:12px;padding:17px 16px;border:1px solid transparent;border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .2s}.bill.selected{border-color:#8bbcff;box-shadow:0 5px 18px #1677ff1a}.check{width:22px;height:22px;flex:0 0 22px;margin-top:2px;border:1.5px solid #c5ceda;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px}.selected .check{border-color:var(--primary);background:var(--primary)}.bill-main{flex:1;min-width:0}.bill-head{display:flex;justify-content:space-between;gap:12px}.bill-title{font-size:16px;font-weight:600;line-height:1.4}.amount{color:var(--danger);font-size:17px;font-weight:600;white-space:nowrap}.bill-side{flex:0 0 auto;text-align:right}.detail-trigger{margin-top:8px;padding:3px 0;border:0;color:var(--primary);background:transparent;font-size:12px}.bill-meta{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.7}.summary{margin-top:5px;color:#596577;font-size:13px;line-height:1.7}.empty{padding:70px 20px;text-align:center;color:var(--muted);background:#fff;border-radius:16px;line-height:1.8}.footer{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff7}.footer-info{flex:1;font-size:12px;color:var(--muted);line-height:1.5}.footer-total{display:block;color:var(--danger);font-size:22px;font-weight:700}.pay-btn{width:148px;height:48px;border:0;border-radius:24px;color:#fff;background:var(--primary);font-size:17px;font-weight:600}.pay-btn:disabled{opacity:.45}.loading{padding:100px 0;text-align:center;color:var(--muted)}.loading i{display:block;width:28px;height:28px;margin:0 auto 14px;border:2px solid #dbe8fa;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;top:45%;z-index:20;max-width:82vw;padding:12px 18px;border-radius:10px;background:#141b26e0;color:#fff;font-size:14px;line-height:1.6;text-align:center;transform:translate(-50%,-50%);display:none}.result-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:none;align-items:center;justify-content:center;padding:24px;background:#1118278c}.result{width:100%;max-width:330px;padding:32px 24px 24px;border-radius:18px;background:#fff;text-align:center}.result-icon{width:64px;height:64px;margin:0 auto 16px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:#1eb980;font-size:34px}.result-icon.warning{background:#f59e0b}.result h2{margin:0;font-size:22px}.result p{margin:14px 0 0;color:var(--muted);font-size:14px;line-height:1.7}.result strong{display:block;margin-top:17px;color:var(--text);font-size:30px}.result button{width:100%;height:44px;margin-top:24px;border:0;border-radius:22px;color:#fff;background:var(--primary);font-size:16px}.warning-card{width:100%;max-width:350px;padding:26px 22px 22px;border-radius:18px;background:#fff}.warning-title{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:19px;font-weight:600}.warning-icon{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:#f59e0b;font-size:20px}.warning-text{margin:0;color:#4b5563;font-size:14px;line-height:1.8;text-align:justify}.warning-actions{display:flex;gap:10px;margin-top:22px}.warning-actions button{height:44px;flex:1;border-radius:22px;font-size:15px}.warning-cancel{border:1px solid #d9e1ec;color:#546274;background:#fff}.warning-confirm{border:0;color:#fff;background:var(--primary)}.detail-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;display:none;align-items:flex-end;background:#1118278c}.detail-sheet{width:100%;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -12px 36px #1118272e}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 20px 16px;border-bottom:1px solid var(--line)}.detail-head h2{margin:0;font-size:19px}.detail-head p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.detail-close{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:50%;color:#667085;background:#f2f4f7;font-size:22px;line-height:1}.detail-content{overflow-y:auto;padding:18px 20px calc(24px + env(safe-area-inset-bottom))}.detail-overview{padding:15px 16px;border-radius:14px;background:#f7f9fc}.detail-row{display:flex;justify-content:space-between;gap:20px;padding:5px 0;color:#647084;font-size:13px;line-height:1.6}.detail-row strong{color:#263244;font-weight:500;text-align:right;word-break:break-all}.detail-section-title{margin:22px 2px 10px;color:#263244;font-size:15px;font-weight:600}.detail-items{display:flex;flex-direction:column}.detail-item{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.detail-item-main{flex:1;min-width:0}.detail-item-name{color:#263244;font-size:14px;font-weight:500;line-height:1.55}.detail-item-meta{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.6}.detail-item-money{flex:0 0 auto;text-align:right}.detail-item-money strong{display:block;color:#344054;font-size:14px}.detail-item-money span{display:block;margin-top:5px;color:var(--muted);font-size:11px}.detail-total{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding:15px 0 2px;color:#344054;font-size:14px}.detail-total strong{color:var(--danger);font-size:22px}.detail-empty{padding:30px 10px;color:var(--muted);font-size:13px;text-align:center}
