:root{font-family:'Microsoft YaHei','PingFang SC',sans-serif;color:#20332e;background:#f3f5f2;font-size:16px;--green:#163e32;--red:#d54d32;--line:#dce4df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:12px 18px;background:white;color:inherit;min-height:46px}button:hover{border-color:#77988a;background:#edf3ef}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#b73826;background:#fff1ee}input,select,textarea{border:1px solid #c8d5ce;border-radius:10px;padding:13px;width:100%;background:#fff;color:#20332e}input:focus,textarea:focus{outline:3px solid #b7d5c6}header{background:#162d28;color:white;display:flex;align-items:center;gap:30px;padding:22px 4vw;position:sticky;top:0;z-index:5}.brand b{font-size:27px;letter-spacing:2px}.brand span{display:block;font-size:13px;letter-spacing:3px;color:#b6cec2;margin-top:4px}sup{font-size:12px}nav{display:flex;gap:8px;margin-left:auto}nav button{color:#e3ece6;background:transparent;border-color:#405b50}#status{font-size:14px;color:#c3ddcb;min-width:100px}main{padding:32px 4vw;max-width:1680px;margin:auto}h1{font-size:32px;letter-spacing:-1px;margin:0 0 12px}h2{font-size:23px;margin:0 0 18px}h3{margin:0 0 8px}.sub{color:#6c7e75;font-size:15px;line-height:1.7}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.stats{display:flex;gap:20px}.stat{background:white;padding:16px 24px;border-radius:16px;border:1px solid var(--line)}.stat b{font-size:26px;display:block}.tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.table-card{min-height:210px;border-radius:22px;background:#fff;border:1px solid var(--line);padding:26px;text-align:left;box-shadow:0 5px 18px #173b2c04;position:relative}.table-card.busy{border-left:6px solid #d1843a;background:#fffdf8}.table-card strong{font-size:32px;display:block;margin:24px 0 10px}.tag{background:#eef4f0;border-radius:20px;padding:6px 12px;font-size:14px;display:inline-block}.busy .tag{background:#faebd1;color:#9a5b18}.table-card .amount{font-size:28px;float:right;font-weight:bold}.layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:26px}.search{font-size:18px;background:white;padding:17px 20px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}.filters button{padding:9px 14px}.filters .selected{background:var(--green);color:white;border-color:var(--green)}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.product{background:white;border:1px solid var(--line);padding:20px;border-radius:16px;display:flex;align-items:center;gap:8px;min-height:112px}.product .title{font-size:19px;font-weight:bold;line-height:1.5}.product small{color:#708277;display:block;margin-top:6px}.price{color:#ba452e;font-size:22px;font-weight:700;margin-top:9px}.price span{font-size:14px;font-weight:400}.add{margin-left:auto;border-radius:50%;font-size:27px;width:48px;height:48px;padding:0;flex-shrink:0;color:var(--green);background:#eef5f0}.cart{background:white;border:1px solid var(--line);border-radius:20px;padding:23px;position:sticky;top:115px;align-self:start;max-height:calc(100vh - 135px);overflow:auto}.cart-head{display:flex;justify-content:space-between;align-items:center}.cart-head h2{margin:0}.cart-line{border-bottom:1px solid #e7ece8;padding:15px 0}.cart-line b{display:block;line-height:1.5}.line-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}.mini{padding:5px 10px;min-height:34px;font-size:14px}.sum{display:flex;justify-content:space-between;align-items:center;padding:22px 0;font-size:18px}.sum b{font-size:30px}.full{width:100%;margin-top:10px}.empty{padding:45px 16px;text-align:center;color:#728278;background:#f8faf8;border-radius:14px}.section{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;margin-bottom:22px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.rows{width:100%;border-collapse:collapse}.rows td,.rows th{text-align:left;border-bottom:1px solid #e3eae5;padding:13px 10px}.rows td:last-child{text-align:right}.rows th{font-size:14px;color:#718075}.rows .mini{margin:3px}.field{display:block;margin:15px 0}.field span{display:block;margin-bottom:7px;font-size:15px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.warning{padding:13px;background:#fff3df;color:#84531c;border-radius:10px;line-height:1.6;font-size:14px}dialog{border:0;border-radius:23px;padding:30px;max-width:600px;width:calc(100% - 30px);max-height:92vh;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#0a211bc4;backdrop-filter:blur(3px)}.close{float:right;border:0;font-size:27px;padding:0;min-height:30px;width:32px}#dialogBody h2{padding-right:30px}#dialogBody img{max-width:100%;display:block;margin:15px auto;border:1px solid var(--line)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163e32;color:white;border-radius:12px;padding:14px 22px;z-index:30;display:none;max-width:90%;box-shadow:0 8px 20px #0002}.note{font-size:14px;color:#6a7c70}.saved{color:#478368;font-size:14px}.qr-preview{width:180px;max-height:230px;object-fit:contain}.topgap{margin-top:26px}@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1fr) 340px}.products{grid-template-columns:1fr}.stats{display:none}}@media(max-width:760px){header{padding:15px;gap:8px;flex-wrap:wrap}.brand b{font-size:22px}.brand span{font-size:11px}nav{gap:4px}nav button{padding:8px 10px;font-size:14px}#status{width:100%;font-size:12px}main{padding:22px 14px}.tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-card{min-height:180px;padding:17px}.table-card strong{font-size:27px}.table-card .amount{font-size:21px;float:none;display:block;margin-top:8px}.layout{grid-template-columns:1fr}.cart{position:static;max-height:none}.products{grid-template-columns:1fr 1fr}.product{padding:13px;display:block;min-height:150px;position:relative}.product .title{font-size:17px;padding-right:0}.product .add{position:absolute;bottom:12px;right:10px;width:36px;height:36px}.price{font-size:19px}.product small{font-size:12px}.rows td{padding:10px 4px;font-size:14px}.grid2{grid-template-columns:1fr}.section{padding:18px}h1{font-size:28px}.intro{gap:12px}}
/* 手机点单：固定订单入口，单手操作 */
.mobile-orderbar{display:none}
@media(max-width:760px){
 body{padding-bottom:100px}header{position:relative}main{padding:18px 12px}
 .intro h1{font-size:28px}.tables{gap:12px}.table-card{min-height:190px}
 .filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;position:sticky;top:0;background:#f3f5f2;z-index:4}.filters button{flex-shrink:0;min-height:46px}
 .product{min-height:182px;padding:16px 12px 64px}.product .add{width:46px;height:46px;bottom:10px;right:12px}.product .title{font-size:18px}.price{font-size:21px}
 .cart{scroll-margin-top:18px}.mini{min-height:42px;padding:8px 12px}
 .mobile-orderbar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:8;background:#163e32;color:white;padding:12px 18px;padding-bottom:max(12px,env(safe-area-inset-bottom));align-items:center;justify-content:space-between;box-shadow:0 -4px 20px #0002}.mobile-orderbar strong{font-size:24px}.mobile-orderbar small{display:block;color:#c9dcd2;margin-top:3px}.mobile-orderbar button{background:#fff;color:#163e32;font-weight:bold;border:0}
 dialog{padding:22px;max-height:90dvh}.rows td:last-child{min-width:90px}
}
