:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#111;background:#edf0f4;--blue:#499dfb}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #1255b8;outline-offset:3px}button:active{filter:brightness(.94)}#app{width:100%;max-width:390px;height:100dvh;min-height:680px;max-height:844px;margin:24px auto;background:#fff;box-shadow:0 8px 40px #26364c18;display:flex;flex-direction:column;overflow:hidden}header{height:49px;flex-shrink:0;background:var(--blue);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 12px}header button{background:none;border:0;color:white;padding:8px 0;font-weight:600}header img{width:24px;filter:brightness(0) invert(1)}header strong{font-size:16px}header .spacer{width:24px}.home-header{height:102px;display:block;padding:23px 28px 15px}.home-header h1{font-size:19px;margin:0 0 14px}.home-header p{font-size:14px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.home-content{padding:20px 19px 0;flex:1;display:flex;flex-direction:column;gap:20px}.outline{border:1px solid var(--blue);color:var(--blue);background:white;border-radius:4px;height:44px}.exchange{width:100%;font-size:18px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:22px;flex:1;padding-bottom:16px}.tile{border:0;color:white;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:145px;font-size:23px}.tile img{height:62px;width:62px;filter:brightness(0) invert(1)}.device{text-align:center;color:#005693;font-size:13px;margin:5px 0 14px}.sale-body{padding:21px 14px 0;flex:1;display:flex;flex-direction:column;min-height:0}.route{display:flex;align-items:center;gap:8px;font-size:19px;padding-bottom:25px;border-bottom:1px solid #ddd}.route label{white-space:nowrap}select{min-width:0;flex:1;width:100%;border:1px solid #ccc;border-radius:5px;padding:10px 6px;background:#fff;color:#111;font-size:18px}.ticket-row{display:flex;align-items:center;height:72px;border-bottom:1px solid #ddd;padding:0 10px;gap:12px}.ticket-label{font-size:18px}.price{font-size:17px;color:red}.counter{margin-left:auto;display:flex;align-items:center;gap:12px;color:#444;font-size:20px}.counter button{padding:0;border:0;background:none;width:23px;height:30px;display:grid;place-items:center}.counter img{width:23px;filter:invert(57%) sepia(96%) saturate(1744%) hue-rotate(187deg) brightness(101%) contrast(98%)}.supplement{margin-top:13px;font-size:18px;width:100%}.total{margin-top:auto;padding:28px 2px 24px;font-size:23px;line-height:1.65}.total span{color:orangered}.payment{border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:14px 0;display:flex;align-items:center;gap:13px;font-size:16px}.payment button{border:1px solid #ccc;border-radius:4px;background:white;padding:8px 12px;font-size:14px}.payment button.selected{border:2px solid #ff6416;padding:7px 11px;color:#ee5600;background:#fff8f3}.sale-footer{padding:12px 10px 10px}.primary{background:var(--blue);color:white;border:0;border-radius:8px;width:100%;padding:13px;font-size:18px}.date-bar{display:flex;align-items:center;gap:9px;padding:11px 9px;color:#777;font-size:18px}.date-bar input{flex:1;min-width:0;border:1px solid #ddd;padding:6px;font-size:18px;color:#666}.orders{overflow:auto;flex:1;padding:0 7px 12px}.order{border:1px solid #ccc;border-radius:9px;padding:11px 8px;margin-bottom:12px;font-size:12px}.order-top{display:flex;justify-content:space-between;margin-bottom:13px}.order p{margin:0 0 12px;color:#333}.pair{display:grid;grid-template-columns:2fr 1fr;gap:6px}.paid{color:#229900}.unpaid{color:red}.completed{color:#333}.print{display:block;margin:4px auto 0;border:0;background:#00a5df;color:white;border-radius:3px;height:31px;width:78%;font-weight:bold}.scan-footer{padding:13px 20px 20px;background:white}.scan-footer button{background:red;border:0;border-radius:4px;color:white;font-size:17px;font-weight:bold;min-height:44px;width:100%}.empty{text-align:center;color:#888;padding:50px 0}dialog{width:calc(100% - 40px);max-width:340px;border:0;border-radius:12px;padding:24px;box-shadow:0 12px 70px #0004}dialog::backdrop{background:#0006}dialog h2{font-size:20px;margin:0 0 18px}dialog p{line-height:1.7;color:#555}dialog input{width:100%;padding:10px;margin:8px 0 18px;border:1px solid #bbb;border-radius:4px}.dismiss{width:100%;background:white;border:0;color:#777;padding-top:15px}#toast{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:6px;background:#222e;color:#fff;max-width:90%;display:none;z-index:5;font-size:14px}@media(max-width:500px){body{background:white}#app{margin:0;max-width:none;max-height:none;box-shadow:none}}@media(min-width:501px) and (max-height:900px){#app{height:calc(100dvh - 32px);margin:16px auto}}
.supplement-row{display:flex;align-items:center;gap:9px;padding:16px 10px;font-size:19px;white-space:nowrap}.supplement-row span{color:red}.supplement-row input{width:0;min-width:0;flex:1;border:1px solid #ccc;border-radius:0;padding:11px 8px;font-size:16px;height:43px}.supplement-row input::placeholder{color:#999}.supplement-row input:invalid{border-color:red}
.exchange-body{flex:1;padding:20px 15px 0}.exchange-row{height:69px;display:flex;align-items:center;padding:0 4px 0 27px;font-size:19px}.exchange-row:first-child{border-bottom:1px solid #ddd}.exchange-row .counter{gap:13px}.exchange-row .counter button{width:24px;height:36px}
.vehicle-scan{border:0;border-radius:0;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#575757;color:white;gap:20px;padding:0 0 12px;width:100%}.vehicle-scan img{width:98px;height:98px;filter:brightness(0) invert(1)}.vehicle-scan span{font-size:21px;font-weight:600;line-height:1.65}.vehicle-form{padding:30px 15px 20px 28px;overflow:auto;flex:1}.vehicle-field{display:flex;align-items:center;gap:10px;min-height:53px;font-size:18px}.vehicle-field>span,.vehicle-field>label{color:#888;flex:0 0 80px;white-space:nowrap}.vehicle-field>div{flex:1}.vehicle-field>input,.vehicle-field>select{flex:1;width:0;min-width:0;height:35px;border:1px solid #ccc;background:white;padding:4px 7px;font-size:18px;color:#111}.vehicle-field>input{border-radius:0}.vehicle-field>select{border-radius:5px}.vehicle-field:has(>input){min-height:60px}.vehicle-field input::placeholder{color:#999}.shift-field{margin-top:20px}.shift-options{display:flex;gap:44px}.shift-options label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:16px}.shift-options input{accent-color:#1689ff;width:17px;height:17px;margin:0}.vehicle-submit{background:#00a6df;margin-top:35px;width:calc(100% - 12px);height:54px;font-size:18px}
.check-body{flex:1;overflow:auto;padding:12px 18px}.check-station{text-align:center;color:#888;margin:0 0 14px}.check-station b{color:#4382bb;font-weight:400}.check-info{background:#f6f9fc;padding:12px;border-radius:5px}.check-info>div{display:flex;align-items:center;gap:8px;min-height:32px;font-size:16px}.check-info span{color:#888;white-space:nowrap}.check-info strong{font-weight:400;flex:1}.check-info button{border:0;background:none;color:#499dfb;padding:3px;font-size:13px}.check-info p{margin:10px 0 0}.check-payments{margin-top:22px}.check-heading{display:flex;justify-content:space-between;gap:8px;font-size:18px;margin-bottom:9px}.check-heading b{font-size:16px;color:#db4c59}.check-count{display:grid;grid-template-columns:1fr 40px 42px 40px;align-items:center;min-height:36px;font-size:18px;padding:0 6px}.check-count output{text-align:center}.check-count button{border:1px solid #499dfb;border-radius:50%;color:#499dfb;background:white;width:28px;height:28px;font-size:23px;line-height:20px}.check-footer{display:flex;gap:14px;padding:12px 18px 18px}.check-footer>button{flex:1;height:44px;padding:8px;font-size:16px}#check-dialog{max-width:350px;padding:27px 22px}#check-dialog h2{text-align:center;font-weight:400;font-size:23px;margin:0 0 22px}#check-dialog select{width:100%;margin:10px 0 18px;font-size:16px}#check-dialog .check-close{position:absolute;right:6px;top:3px;background:none;border:0;font-size:24px;color:#888;padding:2px 7px}.scenario-buttons{display:grid;gap:10px}.scenario-buttons button{background:#f3f8ff;border:1px solid #a4caff;border-radius:5px;padding:12px;color:#226bc1;text-align:left}.demo-note{font-size:14px}.ticket-details{display:grid;grid-template-columns:100px 1fr;gap:13px 6px;margin:24px 0;border-bottom:1px solid #ccc;padding-bottom:23px;font-size:16px}.ticket-details dd{margin:0;text-align:right;overflow-wrap:anywhere}.ticket-warning{color:red!important;text-align:center;line-height:1.7}.ticket-status{text-align:center;padding:11px;border:2px solid currentColor;border-radius:5px;font-size:22px;font-weight:600}.ticket-status.passed{color:#10af48}.ticket-status.failed,.ticket-status.mismatch{color:#ff626b}.check-actions{display:flex;gap:12px;margin-top:20px}.check-actions button{flex:1;border:1px solid #499dfb;border-radius:5px;background:#499dfb;color:white;padding:11px 6px;font-size:16px}.check-actions button:first-child{background:white;color:#499dfb}.surcharge-options{border-top:1px solid #ddd;padding-top:8px}.surcharge-options label{display:inline-flex;gap:3px;align-items:center;margin-right:8px;font-size:14px}.surcharge-options input{width:auto;margin:0;accent-color:#ff6600}.surcharge-confirm{display:block;margin:24px auto 5px;background:#00c400;color:white;border:0;padding:11px 22px;font-size:18px;border-radius:3px}.fault-context{font-size:15px}
