:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#172235;background:#f4f7fb;font-size:16px;line-height:1.45}*{box-sizing:border-box}body{margin:0;background:#f4f7fb}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}.h5-app{min-height:100vh;padding-bottom:76px}.h5-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 16px;background:#1464d2;color:#fff;box-shadow:0 2px 12px #0b4da533}.h5-top h1{margin:0;font-size:17px;font-weight:700}.h5-top small{max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.82}.h5-main{width:min(760px,100%);margin:0 auto;padding:16px}.hero{padding:22px 4px 14px}.hero h2{margin:0;font-size:27px;letter-spacing:0}.hero p{margin:8px 0 0;color:#66758a;font-size:13px}.panel{margin:12px 0;padding:16px;border:1px solid #e5eaf1;border-radius:13px;background:#fff;box-shadow:0 4px 16px #13294d08}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-title h3,.panel-title h4{margin:0;font-size:16px}.muted{color:#78869a;font-size:13px}.field{display:flex;align-items:center;min-height:44px;border:1px solid #dce4ef;border-radius:9px;background:#fafcff}.field input,.field textarea,.field select{width:100%;border:0;outline:0;padding:10px 12px;background:transparent;color:#172235}.field textarea{min-height:90px;resize:vertical}.button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;border:0;border-radius:9px;padding:0 17px;background:#1464d2;color:#fff;font-weight:650}.button.secondary{background:#eef3f9;color:#42516a}.button.ghost{border:1px solid #dce4ef;background:#fff;color:#1464d2}.button.warn{background:#e87529}.button.block{width:100%;margin-top:12px}.search-row{display:grid;grid-template-columns:1fr auto;gap:9px}.notice{margin-top:10px;padding:10px;border-radius:9px;background:#f4f7fb;color:#66758a;font-size:13px}.result-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.result-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.package-list{display:grid;gap:9px;margin-top:12px}.package{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e1e8f1;border-radius:10px;background:#fff;transition:.15s}.package.selected{border-color:#1464d2;background:#f3f7ff}.package input{width:18px;height:18px;accent-color:#1464d2}.package-copy{min-width:0;flex:1}.package-line{display:flex;justify-content:space-between;gap:10px}.package-code{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.package-state{color:#1464d2;font-size:12px}.package-meta{margin-top:3px;color:#66758a;font-size:12px}.empty{text-align:center;color:#8290a4;padding:26px}.address-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid #e0e8f2;border-radius:10px;background:#f7f9fc}.address-summary strong{display:block}.address-summary span{display:block;margin-top:5px;color:#66758a;font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .full{grid-column:1/-1}.label{display:grid;gap:6px;color:#65748a;font-size:13px}.label .field{color:#172235}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-top:1px solid #edf1f6}.switch{position:relative;width:42px;height:24px}.switch input{opacity:0;width:0;height:0}.switch i{position:absolute;inset:0;border-radius:20px;background:#cbd5e1;transition:.2s}.switch i:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 4px #0002}.switch input:checked+i{background:#1464d2}.switch input:checked+i:before{transform:translateX(18px)}.order-list{display:grid;gap:11px}.order-card{padding:14px;border:1px solid #e1e8f1;border-radius:11px;background:#fff}.order-card.reminded{border-color:#ec5b55;box-shadow:0 0 0 2px #ec5b5520}.order-top{display:flex;justify-content:space-between;gap:8px}.order-state{font-weight:700;color:#1464d2}.order-state.completed{color:#15956a}.order-state.cancelled{color:#9aa6b5}.order-fee{font-weight:700;color:#e87529}.order-id{margin-top:4px;color:#77859a;font-size:12px}.order-address{margin-top:9px;color:#53627a;font-size:13px}.order-meta{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#78869a;font-size:12px}.order-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.mini-button{border:1px solid #d7e0ec;border-radius:7px;padding:7px 10px;background:#fff;color:#36516f;font-size:12px}.mini-button.primary{border-color:#1464d2;background:#1464d2;color:#fff}.mini-button.warn{border-color:#e87529;background:#e87529;color:#fff}.reminder-badge{display:inline-flex;align-items:center;margin-left:7px;padding:2px 6px;border-radius:99px;background:#fff0ee;color:#d9453f;font-size:11px}.filters{display:flex;gap:7px;overflow:auto;padding-bottom:3px}.filter{flex:0 0 auto;border:1px solid #dbe4ee;border-radius:99px;padding:7px 11px;background:#fff;color:#66758a;font-size:12px}.filter.active{border-color:#1464d2;background:#1464d2;color:#fff}.profile-card{display:flex;align-items:center;gap:12px;padding:17px;border-radius:13px;background:linear-gradient(135deg,#1464d2,#2f85e8);color:#fff}.avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#ffffff40;font-size:20px;font-weight:700}.profile-copy{min-width:0;flex:1}.profile-name{display:block;font-size:17px;font-weight:700}.profile-phone{display:block;margin-top:4px;opacity:.78;font-size:12px}.menu-list{margin-top:12px;overflow:hidden;border:1px solid #e4eaf2;border-radius:13px;background:#fff}.menu-row{display:flex;align-items:center;gap:12px;width:100%;min-height:66px;padding:10px 14px;border:0;border-bottom:1px solid #edf1f6;background:#fff;text-align:left}.menu-row:last-child{border-bottom:0}.menu-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;font-weight:700}.menu-icon.blue{background:#eaf2ff;color:#1464d2}.menu-icon.green{background:#eaf9f2;color:#14936a}.menu-icon.teal{background:#e8f7f8;color:#168a96}.menu-icon.orange{background:#fff2e7;color:#df711e}.menu-icon.purple{background:#f0edff;color:#6f58c7}.menu-copy{min-width:0;flex:1}.menu-title{display:block;font-weight:650}.menu-description{display:block;margin-top:3px;color:#7a8798;font-size:12px}.menu-arrow{color:#9aa6b5;font-size:24px}.h5-bottom{position:fixed;right:0;bottom:0;left:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);height:66px;border-top:1px solid #e4eaf2;background:#fff;box-shadow:0 -4px 18px #13294d0a}.tab{display:grid;place-items:center;align-content:center;gap:2px;border:0;background:#fff;color:#8793a3;font-size:11px}.tab b{font-size:21px;font-weight:500;line-height:1}.tab.active{color:#1464d2}.modal-mask{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;padding:14px;background:#1320337a}.modal{width:min(600px,100%);max-height:88vh;overflow:auto;border-radius:16px 16px 8px 8px;background:#fff;padding:18px;box-shadow:0 15px 50px #0b1b3328}.modal h3{margin:0;font-size:18px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-close{border:0;background:transparent;color:#8290a4;font-size:24px;line-height:1}.modal-body{display:grid;gap:12px;margin-top:15px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.toast{position:fixed;left:50%;bottom:85px;z-index:100;transform:translateX(-50%);padding:10px 14px;border-radius:8px;background:#172235e8;color:#fff;font-size:13px}.auth-card{text-align:center}.auth-card p{color:#66758a;font-size:13px}.auth-card .button{margin-top:8px}.progress{height:3px;background:#e7edf5;overflow:hidden}.progress i{display:block;width:40%;height:100%;background:#1464d2;animation:progress 1s infinite}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(280%)}}.timeline{display:grid;gap:0;margin-top:8px}.timeline-item{display:grid;grid-template-columns:24px 1fr;min-height:48px;position:relative}.timeline-item:before{content:"";position:absolute;left:9px;top:21px;bottom:-2px;width:2px;background:#e2e8f0}.timeline-item:last-child:before{display:none}.timeline-dot{z-index:1;width:20px;height:20px;border:4px solid #dfe8f4;border-radius:50%;background:#fff}.timeline-item.done .timeline-dot{border-color:#1464d2;background:#1464d2}.timeline-item div:last-child{padding-left:8px}.timeline-item small{display:block;color:#8693a5;font-size:11px}.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.proof-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.courier-login{max-width:500px;margin:26px auto}.courier-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.courier-tabs .button.active{background:#1464d2;color:#fff}.courier-tabs .button{background:#eef3f9;color:#53627a}.subtle{font-size:12px;color:#8290a4}@media(max-width:480px){.h5-main{padding:12px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.hero h2{font-size:24px}.search-row{grid-template-columns:1fr}.search-row .button{width:100%}.result-head{align-items:flex-start;flex-direction:column}.result-actions{width:100%;justify-content:stretch}.result-actions .button,.result-actions .mini-button{flex:1}.order-meta{display:block}.order-meta span{display:block;margin-top:3px}}
/* Keep legacy runtime controls hidden; the parity UI owns these actions. */
.yh-message-button{display:none!important}
.popup-ad-image{display:block;width:100%;padding:0;border:0;background:transparent}.popup-ad-image img{display:block;width:100%;max-height:58vh;object-fit:contain;border-radius:10px}
.avatar{overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.h5-delivery-option{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:13px 0;border-top:1px solid #edf1f6}.h5-delivery-option strong,.h5-delivery-option small{display:block}.h5-delivery-option small{margin-top:3px;color:#78869a;font-size:12px}.h5-order-fields{margin-top:12px}.selected-package-panel{padding-bottom:24px}.package-count{flex:0 0 auto;padding:5px 10px;border-radius:8px;background:#edf4ff;color:#1464d2;font-size:12px;font-weight:650}.package-empty{display:grid;gap:5px;margin:14px 0;padding:24px 14px;border:1px dashed #d9e2ee;border-radius:10px;background:#f8fafc;text-align:center;color:#8290a4}.package-empty strong{color:#53627a;font-size:14px}.add-package-section{margin-top:20px;padding-top:18px;border-top:1px solid #e9eef5}.add-package-section h4{margin:0 0 8px;font-size:15px}.add-package-hint{margin:0 0 12px;line-height:1.6}.add-results{margin-top:12px}.add-package-result{align-items:flex-start}.add-package-result input{margin-top:2px}.add-package-result .package-meta{line-height:1.55}.submit-order-button{margin-top:22px}
.package-share-button { margin-top: 12px; }
.package-share-preview { display: block; width: 100%; max-height: 68vh; object-fit: contain; border-radius: 6px; background: #f4f7fb; }
.share-save-tip { width: 100%; margin: 0; padding: 12px 14px; border-radius: 9px; background: #eaf2ff; color: #1464d2; font-size: 15px; font-weight: 650; text-align: center; }
.rider-status h3 { margin: 16px 0 8px; color: #172235; }
.rider-status p { margin: 0 0 18px; color: #68788d; line-height: 1.7; }
.rider-status-badge { display: inline-flex; padding: 6px 11px; border-radius: 6px; background: #fff4df; color: #a96518; font-size: 13px; font-weight: 700; }
.rider-status-badge.approved { background: #e5f7ee; color: #11814b; }
.rider-meta { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #edf1f6; color: #68788d; font-size: 14px; }
.rider-meta strong { color: #27354a; text-align: right; }
.rider-register .form-grid { margin-top: 16px; }
.verification-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.student-card-picker { position: relative; display: flex; align-items: center; justify-content: center; min-height: 76px; border: 1px dashed #b8c8dc; border-radius: 6px; background: #f8fbff; color: #1464d2; font-weight: 650; overflow: hidden; }
.student-card-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.student-card-preview { display: block; width: 100%; max-height: 340px; margin: 14px 0; border-radius: 6px; object-fit: contain; background: #eef2f7; }
.student-card-preview.hidden { display: none; }
.notice.danger { background: #fff2f2; color: #b93636; }
.refund-select-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.refund-package-list{display:grid;gap:8px;margin:12px 0}.refund-package{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e6ebf2;border-radius:8px;background:#f7f9fc}.refund-package small{display:block;color:#7d8ba0}.refund-package.unavailable{opacity:.62}

/* Keep the H5 query and errand surfaces visually aligned with the mini program. */
.h5-top{height:44px;justify-content:center;padding:0 14px;box-shadow:0 2px 8px rgba(11,77,165,.2)}
.h5-top h1{font-size:17px}
.h5-top small{display:none}
.h5-main{padding:14px}
.hero{padding:17px;border-radius:12px;background:linear-gradient(135deg,#1464d2,#2e8bf0);color:#fff;box-shadow:0 6px 14px rgba(20,100,210,.18)}
.hero h2{font-size:21px}
.hero p{margin-top:5px;color:#fff;font-size:13px;opacity:.82}
.panel{margin:11px 0;padding:12px;border:0;border-radius:9px;box-shadow:0 3px 9px rgba(27,49,82,.06)}
.section-title,.result-summary h3{margin:0 0 9px;font-size:16px;font-weight:650}
.home-query-panel .field{min-height:41px;margin-bottom:8px;border-radius:6px;background:#f7f9fc}
.home-query-panel .button.block{height:41px;min-height:41px;margin-top:0;border-radius:6px}
.notice{margin-top:8px;padding:8px 10px;border-radius:6px;background:#fff8e8;color:#976b1f;font-size:12px}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-bottom:9px;border-bottom:1px solid #edf0f5}
.result-summary{min-width:0;flex:1}
.result-summary h3{margin-bottom:2px}
.result-actions{flex-wrap:nowrap;gap:6px}
.select-all-action,.errand-action{margin:0;border:0;font:inherit;white-space:nowrap}
.select-all-action{min-width:46px;height:32px;padding:0 8px;border-radius:5px;background:#edf4ff;color:#1464d2;font-size:12px}
.select-all-action.selected{background:#e7f7ef;color:#11814b}
.errand-action{min-width:88px;height:36px;padding:0 12px;border-radius:6px;background:#1464d2;color:#fff;font-size:14px;font-weight:650}
.result-package-list,.add-results{display:block;margin-top:9px}
.package.package-result{align-items:flex-start;gap:7px;padding:10px 0;border:0;border-top:1px solid #edf0f5;border-radius:0;background:#fff}
.package.package-result:first-child{border-top:0}
.package.package-result.selected{border-color:#edf0f5;background:#fff}
.package-result .package-check{flex:0 0 auto;margin-top:6px;pointer-events:none}
.package-detail{margin-top:4px;color:#172235;font-size:13px}
.package-contact{margin-top:4px;color:#8290a4;font-size:12px}
.package-contact span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.package-state{color:#16874a}
.package-share-button{height:36px;min-height:36px;margin:9px 0 2px;border-radius:6px}
.selected-package-panel .panel-title{align-items:flex-start}
.errand-address-heading{align-items:flex-start}
.step-mark{display:flex;align-items:center;justify-content:center;width:21px;height:21px;flex:0 0 21px;border-radius:50%;background:#edf4ff;color:#1464d2;font-size:11px;font-weight:700}
.selected-package-panel .package-list{gap:0;border-top:1px solid #edf0f5}
.selected-package-panel .package{border:0;border-top:1px solid #edf0f5;border-radius:0;padding:10px 0}
.selected-package-panel .package:first-child{border-top:0}
.add-package-section .search-row{display:block}
.add-package-section .field{margin-bottom:8px}
.add-package-section .button.secondary{width:100%}
.h5-bottom{height:55px}
.tab{gap:0;font-size:12px}
.tab b{display:none}
.four-digit-empty-message{margin:0;color:#53627a;line-height:1.7;white-space:pre-wrap}
.modal-mask:has(.four-digit-empty-message){align-items:center}
.modal:has(.four-digit-empty-message){max-width:420px;border-radius:9px}
@media(max-width:480px){.h5-main{padding:14px}.hero h2{font-size:21px}.result-head{align-items:center;flex-direction:row}.result-actions{width:auto}.result-actions .errand-action,.result-actions .select-all-action{flex:0 0 auto}}
@media(max-width:360px){.result-heading{align-items:stretch;flex-direction:column}.result-actions{justify-content:flex-end}.errand-action{flex:1!important}}

/* FAQ follows the native card hierarchy while keeping the shared blue palette. */
.faq-page{padding-bottom:26px}
.faq-hero{display:flex;align-items:center;gap:12px;padding:20px 18px;border-radius:12px;background:#1464d2;box-shadow:0 6px 14px rgba(20,100,210,.16);color:#fff}
.faq-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.64);border-radius:50%;font-size:25px;font-weight:700}
.faq-hero h2{margin:0;font-size:21px}
.faq-hero p{margin:4px 0 0;color:rgba(255,255,255,.84);font-size:12px}
.faq-list{display:grid;gap:10px;margin-top:13px}
.faq-card{display:flex;align-items:flex-start;gap:10px;padding:15px 13px;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(30,51,82,.05)}
.faq-number{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:6px;background:#eaf2ff;color:#1464d2;font-size:12px;font-weight:700}
.faq-copy{min-width:0;flex:1}
.faq-copy h3{margin:0;color:#172235;font-size:16px;font-weight:650}
.faq-copy p{margin:5px 0 0;color:#65748a;font-size:12px;line-height:1.65}
.faq-register-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding:15px 13px;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(30,51,82,.05)}
.faq-register-card strong,.faq-register-card span{display:block}
.faq-register-card strong{color:#172235;font-size:16px}
.faq-register-card span{margin-top:4px;color:#8290a4;font-size:12px}
.faq-register-button{flex:0 0 auto;height:34px;padding:0 14px;border:0;border-radius:17px;background:#1464d2;color:#fff;font-size:13px;font-weight:650}
