:root{
  --brand:#E5482F;--brand-2:#F06A3A;--brand-soft:#FDEBE5;--gold:#F2A93B;--danger:#E5482F;
  --ink:#2B2523;--ink2:#5E5550;--muted:#9C918A;--line:rgba(43,37,35,.08);--page-bg:#F7F3EE;
  --backdrop:linear-gradient(135deg,#FBF1E8 0%,#F6EDE4 100%);--blob1:#F9CDB8;--blob2:#F6DDB0;
}
.price{color:var(--brand);font-weight:700;font-family:"DIN Alternate","Helvetica Neue",Arial,sans-serif;font-size:17px;white-space:nowrap}
.price small{font-size:.66em;margin:0 1px}
.price.lg{font-size:22px}.price.xl{font-size:34px;color:var(--ink)}.price.w{color:#fff}
.spin{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite;vertical-align:-2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 22px;border-radius:21px;font-size:15px;font-weight:700;transition:.15s}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--brand);color:#fff;box-shadow:0 6px 16px -8px rgba(229,72,47,.9)}
.btn.ghost{background:#fff;border:1px solid #e3dbd4;color:var(--ink2);font-weight:500}
.btn.sm{height:30px;padding:0 14px;font-size:13px;border-radius:15px}
.btn.full{width:100%}.btn.lg{height:48px;border-radius:24px;font-size:16px}
.art{position:relative;width:100%;height:100%;overflow:hidden}
.art svg{width:100%;height:100%;display:block}
.red{color:var(--brand)!important}

/* 点餐页头部 */
.menu-nav{position:absolute;top:0;left:0;right:0;color:#fff;z-index:30}
.menu-nav .capsule{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}
.m-head{flex:none;position:relative;background:linear-gradient(160deg,#C9301B 0%,#E5482F 55%,#F07A3E 100%);padding:calc(var(--sb) + 52px) 12px 0;color:#fff;overflow:hidden}
.m-head::before{content:"";position:absolute;right:-60px;top:-40px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08)}
.m-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:18px;background:#fff;border-radius:18px 18px 0 0}
.store{position:relative;display:flex;align-items:center;gap:10px;padding:0 4px}
.store .logo{width:46px;height:46px;border-radius:14px;background:#2B2523;color:#F7C27A;display:grid;place-items:center;box-shadow:0 6px 14px -6px rgba(0,0,0,.5);flex:none}
.st-b{flex:1;min-width:0}
.st-b b{display:block;font-size:17px;letter-spacing:.5px}
.st-b small{font-size:11.5px;opacity:.88;display:flex;align-items:center;gap:3px}
.tbl{display:flex;flex-direction:column;align-items:center;background:#fff;color:var(--ink);border-radius:12px;padding:4px 12px;line-height:1.2}
.tbl small{font-size:10px;color:var(--muted)}.tbl b{font-size:17px;color:var(--brand)}
.mode{position:relative;display:flex;gap:6px;margin:12px 4px 0;background:rgba(0,0,0,.14);border-radius:12px;padding:3px;width:max-content}
.mode button{height:28px;padding:0 16px;border-radius:9px;font-size:13px;color:rgba(255,255,255,.85)}
.mode button.on{background:#fff;color:var(--brand);font-weight:700}
.notice-bar{position:relative;z-index:1;display:flex;align-items:center;gap:6px;margin:10px 4px 22px;font-size:12px;opacity:.95;overflow:hidden}
.notice-bar .mq{flex:1;overflow:hidden;white-space:nowrap}
.notice-bar .mq span{display:inline-block;padding-left:100%;animation:mq 22s linear infinite}
@keyframes mq{to{transform:translateX(-100%)}}

/* 菜单 */
.menu{flex:1;min-height:0;display:flex;background:#fff}
.rail{width:84px;flex:none;background:#F7F3EE;overflow-y:auto;scrollbar-width:none;padding-bottom:80px}
.rail::-webkit-scrollbar{display:none}
.rail button{position:relative;display:flex;align-items:center;justify-content:center;gap:2px;width:100%;height:56px;font-size:13.5px;color:var(--ink2);transition:.2s}
.rail button.on{background:#fff;color:var(--ink);font-weight:700}
.rail button.on::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3.5px;border-radius:0 3px 3px 0;background:var(--brand)}
.rail button .ic{color:var(--brand)}
.rail button i{position:absolute;top:8px;right:6px;min-width:16px;height:16px;border-radius:8px;background:var(--brand);color:#fff;font-size:10px;line-height:16px;font-style:normal;padding:0 4px}
.mlist{padding:0 12px 90px}
.mlist section h5{position:sticky;top:0;z-index:3;margin:0;padding:12px 0 8px;font-size:14px;background:#fff}
.mlist section h5 small{font-size:11px;color:var(--muted);font-weight:400;margin-left:4px}
.sig{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}
.sg{border-radius:14px;overflow:hidden;background:#FBF6F0;cursor:pointer;padding-bottom:8px}
.sg .art{height:110px}
.sg b{display:block;font-size:13.5px;margin:8px 10px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg>div:last-child{display:flex;justify-content:space-between;align-items:center;padding:0 8px 0 10px}
.sg button{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center}
.dish{display:flex;gap:10px;padding:10px 0 14px;cursor:pointer}
.d-img{position:relative;width:92px;height:92px;border-radius:12px;overflow:hidden;flex:none}
.d-tag{position:absolute;left:0;top:0;font-style:normal;font-size:10px;font-weight:700;color:#fff;background:var(--brand);padding:2px 6px;border-radius:0 0 8px 0}
.d-tag.new{background:#2B2523;color:#F7C27A}
.dt-b h3 .d-tag{position:static;border-radius:4px;margin-left:6px;vertical-align:3px}
.d-b{flex:1;min-width:0;display:flex;flex-direction:column}
.d-b b{font-size:15px}
.d-b p{margin:3px 0;font-size:11.5px;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.d-b small{font-size:11px;color:var(--muted)}
.d-f{margin-top:auto;display:flex;justify-content:space-between;align-items:center}
.step{display:flex;align-items:center;gap:6px}
.step button{width:24px;height:24px;border-radius:50%;display:grid;place-items:center}
.step .pl{background:var(--brand);color:#fff}
.step .mn{border:1.5px solid #d9cfc7;color:var(--ink2)}
.step span{min-width:16px;text-align:center;font-size:14px;font-weight:700}
.step button[disabled]{opacity:.35}
.step.big button{width:30px;height:30px}
.spec-btn{position:relative;height:26px;padding:0 12px;border-radius:13px;background:var(--brand);color:#fff;font-size:12px;font-weight:700}
.spec-btn i{position:absolute;top:-7px;right:-5px;min-width:16px;height:16px;border-radius:8px;background:#2B2523;color:#fff;font-style:normal;font-size:10px;line-height:16px;padding:0 4px;border:1.5px solid #fff}
.m-end{text-align:center;font-size:11px;color:#c3b8b0;padding:16px 0}

/* 购物车条 */
.promo-tip{position:absolute;left:6px;right:6px;bottom:38px;z-index:20;text-align:center;font-size:12px;color:#8A5A1E;background:#FFF1D6;border-radius:12px 12px 0 0;padding:5px 0 30px}/* 下沿延伸到结算条中线，圆角两侧不露出底下菜品 */
.promo-tip b{color:var(--brand)}
.promo-tip.ok{background:#E9F5E4;color:#3D7A34}
.cartbar{position:absolute;left:6px;right:6px;bottom:10px;z-index:21;height:52px;border-radius:26px;background:#2B2523;display:flex;align-items:center;padding-left:72px;box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}
.cb-icon{position:absolute;left:10px;bottom:8px;width:54px;height:54px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;border:4px solid #2B2523;box-shadow:0 4px 10px rgba(0,0,0,.25)}
.cartbar.is-empty .cb-icon{background:#4A413D;color:#8f837c}
.cb-icon i{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#fff;color:var(--brand);font-style:normal;font-size:12px;font-weight:700;line-height:20px;padding:0 5px;box-shadow:0 2px 4px rgba(0,0,0,.2)}
.cb-icon.bump{animation:bump .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.2)}100%{transform:scale(1)}}
.cb-t{flex:1;min-width:0;color:#fff;cursor:pointer;line-height:1.2}
.cb-t b .price{font-size:20px}
.cb-t s{font-size:11px;color:#9a8e87;margin-left:6px}
.cb-t>small{display:block;font-size:10.5px;color:#a79b93}
.cb-t .none{font-size:13px;color:#8f837c}
.cb-go{height:52px;padding:0 24px;border-radius:0 26px 26px 0;background:linear-gradient(90deg,#F06A3A,var(--brand));color:#fff;font-size:15px;font-weight:700}
.cb-go[disabled]{background:#4A413D;color:#8f837c;font-weight:500;font-size:13px}
.fly-ball{position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;z-index:500;pointer-events:none;box-shadow:0 3px 8px rgba(229,72,47,.5)}

/* 规格弹层 */
.spec-sheet{border-radius:22px 22px 0 0}
.sp{display:flex;flex-direction:column;min-height:0}
.sp-top{display:flex;gap:12px;padding:16px 16px 10px}
.sp-top .art{width:92px;height:92px;border-radius:14px;flex:none}
.sp-h b{display:block;font-size:17px;margin:4px 30px 6px 0}
.sp-h p{margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.sp-body{overflow-y:auto;padding:0 16px;max-height:330px}
.sg-t{font-size:13.5px;font-weight:700;margin:12px 0 8px}
.sg-t small{font-weight:400;color:var(--muted);font-size:11.5px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts button{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 14px;border-radius:10px;background:#F7F3EE;font-size:13px;color:var(--ink2);border:1.5px solid transparent}
.opts button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);font-weight:700}
.opts button em{font-style:normal;font-size:11.5px;color:var(--brand)}
.chili{display:inline-flex;gap:1px}
.chili i{width:5px;height:9px;border-radius:3px 3px 5px 5px;background:#E5482F;display:block}
.sp-sel{margin:12px 16px 0;padding:8px 12px;border-radius:10px;background:#F7F3EE;font-size:12px;color:var(--ink2)}
.sp-foot{display:flex;align-items:center;gap:12px;padding:12px 16px 12px}
.sp-foot>div:first-child{flex:1;line-height:1.1}
.sp-foot>div>small{display:block;font-size:11px;color:var(--muted)}
.dt-sheet{overflow:hidden}
.dt .dt-img{height:250px}
.dt-b{padding:14px 16px 12px}
.dt-b h3{margin:0 0 6px;font-size:19px}
.dt-b p{margin:0;font-size:13px;color:var(--ink2);line-height:1.6}
.dt-meta{display:flex;gap:12px;margin:10px 0;font-size:11.5px;color:var(--muted)}
.dt-f{display:flex;justify-content:space-between;align-items:center}
.cart-sheet{border-radius:18px 18px 0 0;max-height:70%}
.cs-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 6px;border-top:1px solid var(--line)}
.cs-foot>div>small{font-size:11.5px;color:var(--muted);display:block}
.cs{display:flex;flex-direction:column;min-height:0}
.cs-h{display:flex;align-items:center;gap:8px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.cs-h b{font-size:15px}.cs-h small{flex:1;font-size:11.5px;color:var(--muted)}
.cs-h button{display:flex;align-items:center;gap:3px;font-size:12.5px;color:var(--muted)}
.cs-list{overflow-y:auto;padding:0 16px}
.cs-i{display:flex;align-items:center;gap:10px;padding:10px 0}
.cs-i+.cs-i{border-top:1px solid var(--line)}
.cs-img{width:52px;height:52px;border-radius:10px;overflow:hidden;flex:none}
.cs-b{flex:1;min-width:0}
.cs-b b{display:block;font-size:14px}.cs-b small{display:block;font-size:11px;color:var(--muted);margin:1px 0}
.cs-b .price{font-size:14px}
.cs-pack{padding:8px 16px 12px;font-size:12px;color:var(--muted);text-align:right}

/* 结算 */
.co{padding:10px 12px}
.co-top{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;border-radius:16px;padding:16px;color:#fff;background:linear-gradient(135deg,#2B2523,#4A3A33)}
.co-top small{display:block;font-size:12px;opacity:.75}
.co-top b{display:block;font-size:30px;color:#F7C27A;letter-spacing:1px;margin:2px 0}
.co-top.take b{font-size:22px}
.co-top span{font-size:12px;opacity:.75}
.co-top button{position:relative;z-index:1;font-size:12.5px;background:rgba(255,255,255,.14);color:#fff;border-radius:14px;padding:6px 12px}
.co-deco{position:absolute;right:-10px;bottom:-20px;width:130px;height:130px}
.card{background:#fff;border-radius:16px;padding:14px;margin-top:10px}
.card-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.card-h h4{margin:0;font-size:15px}
.card-h small{font-size:11.5px;color:var(--muted)}
.card-h a{font-size:12.5px;color:var(--brand);display:flex;align-items:center;gap:2px;cursor:pointer}
.ppl{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.ppl button{height:36px;border-radius:10px;background:#F7F3EE;font-size:14px;font-weight:600;color:var(--ink2)}
.ppl button.on{background:var(--brand);color:#fff}
.ci{display:flex;align-items:center;gap:10px;padding:8px 0}
.ci-img{width:50px;height:50px;border-radius:10px;overflow:hidden;flex:none}
.ci-b{flex:1;min-width:0}
.ci-b b{display:block;font-size:14px}.ci-b small{font-size:11.5px;color:var(--muted)}
.ci .q{font-size:13px;color:var(--muted);width:30px}
.ci .price{font-size:15px;color:var(--ink);min-width:56px;text-align:right}
.rows{border-top:1px dashed #e6ddd5;margin-top:8px;padding-top:6px}
.rows>div{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:13px;color:var(--ink2)}
.rows b{color:var(--ink)}
.rows .tot b{font-size:18px;color:var(--brand)}
.tg{font-style:normal;font-size:10px;color:#fff;background:var(--brand);border-radius:3px;padding:1px 4px;margin-right:6px}
.rtags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.rtags button{height:30px;padding:0 12px;border-radius:15px;background:#F7F3EE;font-size:12.5px;color:var(--ink2);border:1px solid transparent}
.rtags button.on{background:var(--brand-soft);color:var(--brand);border-color:var(--brand)}
.co textarea{width:100%;height:70px;border-radius:10px;border:1px solid transparent;background:#F7F3EE;padding:10px;font-size:13.5px;resize:none;outline:none}
.co textarea:focus{border-color:var(--brand);background:#fff}
.co-safe{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11.5px;color:var(--muted);padding:16px 0 8px}
.paybar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + var(--safe-b));background:#fff;box-shadow:0 -1px 0 var(--line)}
.paybar>div{display:flex;align-items:baseline;gap:6px}
.paybar>div>small{font-size:13px;color:var(--ink2)}
.paybar em{font-style:normal;font-size:11.5px;color:var(--brand);background:var(--brand-soft);padding:1px 6px;border-radius:4px}
.paybar .btn{min-width:130px}
.od-bar .btn{flex:1}
.pay{padding:0 16px 14px}
.pay-amt{text-align:center;margin:4px 0 16px}
.pay-m{border-radius:12px;background:#F7F3EE;margin-bottom:16px}
.pm{display:flex;align-items:center;gap:10px;padding:14px;font-size:14.5px;cursor:pointer}
.pm+.pm{border-top:1px solid var(--line)}
.pm span{flex:1}.pm small{font-size:12px;color:var(--muted)}
.pm>.ic:first-child{color:var(--brand)}
.pm .rk{color:#ddd3cb}.pm.on .rk{color:var(--brand)}
.pay-tip{text-align:center;font-size:11.5px;color:var(--muted);margin:10px 0 0}
.sheet-t{text-align:center;font-size:16px;font-weight:700;padding:16px 40px 12px}
.tw{padding:0 16px 14px;overflow-y:auto}
.ta small{display:block;font-size:12px;color:var(--muted);margin:6px 0 8px}
.ta>div{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.ta button{height:40px;border-radius:10px;background:#F7F3EE;font-weight:700;font-size:14px;color:var(--ink2);border:1.5px solid transparent}
.ta button.busy{background:#EFE9E3;color:#c8bdb5;text-decoration:line-through}
.ta button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.t-leg{display:flex;gap:14px;justify-content:center;font-size:11.5px;color:var(--muted);margin:14px 0}
.t-leg span{display:flex;align-items:center;gap:4px}
.t-leg i{width:12px;height:12px;border-radius:3px;background:#F7F3EE}
.t-leg i.b{background:#E3DBD4}.t-leg i.s{background:var(--brand)}

/* 订单状态 */
.od{background:var(--page-bg)}
.navbar.st-new,.od-top.st-new,.navbar.st-cook,.od-top.st-cook{background:linear-gradient(135deg,#D83A22,#F07A3E)}
.navbar.st-ready,.od-top.st-ready{background:linear-gradient(135deg,#2E8A5A,#5CB870)}
.navbar.st-done,.od-top.st-done{background:linear-gradient(135deg,#4A3A33,#7A675C)}
.navbar.st-new,.navbar.st-cook,.navbar.st-ready,.navbar.st-done{background-attachment:fixed}
.light-t{color:#fff}.light-t .capsule{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}
.od-top{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;padding:8px 20px 46px;color:#fff}
.od-l{position:relative;z-index:1}
.od-top h2{margin:0 0 6px;font-size:26px;letter-spacing:1px}
.od-top p{margin:0;font-size:13px;opacity:.92}
.od-top p b{font-size:16px}
.od-code{position:relative;z-index:1;text-align:center;background:rgba(255,255,255,.18);border-radius:14px;padding:6px 14px;backdrop-filter:blur(4px)}
.od-code small{display:block;font-size:11px;opacity:.85}.od-code b{font-size:26px}
.pot{position:absolute;right:92px;bottom:-4px;width:120px;height:100px;opacity:.28}
.pot svg{width:100%;height:100%}
.steam path{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;animation:steam 1.8s ease-in-out infinite;opacity:.8}
.steam path:nth-child(2){animation-delay:.4s}.steam path:nth-child(3){animation-delay:.8s}
@keyframes steam{0%{transform:translateY(6px);opacity:0}40%{opacity:1}100%{transform:translateY(-8px);opacity:0}}
.od .card{margin:10px 12px 0}
.od .prog{margin-top:-30px;position:relative}
.steps{display:flex}
.steps div{flex:1;position:relative;text-align:center;font-size:12px;color:var(--muted)}
.steps i{position:relative;z-index:1;width:22px;height:22px;border-radius:50%;margin:0 auto 6px;display:grid;place-items:center;background:#F0EAE4;color:#fff}
.steps div+div::before{content:"";position:absolute;top:10px;right:50%;width:100%;height:2px;background:#F0EAE4}
.steps .done i{background:var(--brand)}.steps .done{color:var(--ink2)}
.steps .done+div::before{background:var(--brand)}
.steps .cur i{background:#fff;border:2px solid var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.steps .cur i::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand);animation:pulse 1.2s infinite}
.steps .cur{color:var(--brand);font-weight:700}
@keyframes pulse{50%{transform:scale(.5);opacity:.5}}
.pbar{height:8px;border-radius:4px;background:#F0EAE4;margin-top:14px;overflow:hidden}
.pbar i{display:block;height:100%;border-radius:4px;background:repeating-linear-gradient(-45deg,#F06A3A 0 8px,#E5482F 8px 16px);background-size:22px 22px;animation:stripe 1s linear infinite;transition:width .6s}
@keyframes stripe{to{background-position:22px 0}}
.pbar-t{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);margin-top:5px}
.pbar-t b{color:var(--brand)}
.ist{font-size:11.5px;color:var(--brand);display:flex;align-items:center;gap:3px;min-width:62px;justify-content:flex-end}
.ci.ok .ist{color:#2E8A5A}
.dot-pulse{width:6px;height:6px;border-radius:50%;background:var(--brand);animation:pulse 1s infinite}
.od-note{margin-top:6px;font-size:12px;color:#8A5A1E;background:#FFF5E3;border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:4px}
.kv>div{display:flex;justify-content:space-between;padding:6px 0;font-size:12.5px}
.kv span{color:var(--muted)}.kv b{font-weight:500;color:var(--ink2)}

/* 订单列表 */
.ol{padding:0 12px}
.oc{background:#fff;border-radius:16px;padding:14px;margin-top:10px;cursor:pointer;animation:inFade .3s both}
.oc-h{display:flex;justify-content:space-between;align-items:center}
.oc-h b{font-size:14.5px}
.oc-h i{font-style:normal;font-size:12px;font-weight:600}
.s-new,.s-cook{color:var(--brand)}.s-ready{color:#2E8A5A}.s-done{color:var(--muted)}
.oc-imgs{display:flex;gap:8px;align-items:center;margin:12px 0}
.oc-imgs>div{width:56px;height:56px;border-radius:10px;overflow:hidden}
.oc-imgs span{margin-left:auto;text-align:right;font-size:12px;color:var(--muted)}
.oc-imgs span b{display:block;font-size:16px;color:var(--ink)}
.oc-f{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:10px}
.oc-f small{font-size:11.5px;color:var(--muted)}
.feed-more{text-align:center;font-size:12px;color:#c3b8b0;padding:18px 0 24px}

/* ===== 后厨出单屏 KDS ===== */
body.web-mode{background:#141211}
.kds{min-height:100vh;background:#141211;color:#EDE6DF;display:flex;flex-direction:column;font-size:14px}
.k-top{display:flex;align-items:center;gap:24px;padding:14px 22px;background:#1D1A18;border-bottom:1px solid #2C2724}
.k-brand{display:flex;align-items:center;gap:10px}
.k-logo{width:38px;height:38px;border-radius:10px;background:var(--brand);color:#fff;display:grid;place-items:center}
.k-brand b{display:block;font-size:16px}.k-brand small{font-size:12px;color:#8f837c}
.k-stats{display:flex;gap:10px;margin-left:auto}
.k-stats>div{min-width:104px;background:#26211F;border-radius:10px;padding:8px 14px}
.k-stats b{display:block;font-size:24px;line-height:1.1}.k-stats small{font-size:11.5px;color:#9a8e87}
.k-stats .bad b{color:#FF6B4F}.k-stats .good b{color:#7BD88F}
.k-right{display:flex;align-items:center;gap:14px}
.k-filter{display:flex;background:#26211F;border-radius:9px;padding:3px}
.k-filter button{padding:6px 14px;border-radius:7px;color:#b3a79f;font-size:13px}
.k-filter button.on{background:#3A322E;color:#fff;font-weight:700}
.k-clock{font-size:15px;color:#d8cec6;min-width:150px;text-align:right}
.k-back{display:flex;align-items:center;color:#8f837c;text-decoration:none;font-size:12.5px}
.k-back:hover{color:#fff}
.k-body{flex:1;display:flex;min-height:0}
.k-grid{flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;padding:18px 22px;align-content:start}
.tk{background:#221E1C;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;border:1px solid #2F2926;transition:transform .3s,opacity .3s}
.tk.flash{animation:tkIn .6s cubic-bezier(.2,.8,.2,1),glow 2.4s ease}
@keyframes tkIn{from{transform:translateY(-16px) scale(.96);opacity:0}}
@keyframes glow{0%,60%{box-shadow:0 0 0 3px #F2A93B}100%{box-shadow:none}}
.tk.out{transform:scale(.9);opacity:0}
.tk-h{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;color:#fff}
.tk.ok .tk-h{background:#2E7D4F}.tk.warn .tk-h{background:#B97A1C}.tk.late .tk-h{background:#C23A26;animation:blink 1.6s infinite}
@keyframes blink{50%{background:#9B2A1A}}
.tk-h b{display:block;font-size:22px;line-height:1.1}
.tk-h small{font-size:11.5px;opacity:.85}
.tk-h .tm{font-size:20px;font-weight:700;background:rgba(0,0,0,.18);padding:2px 8px;border-radius:6px}
.tk.mini .tk-h small::after{content:""}
.tk ul{list-style:none;margin:0;padding:6px 0;flex:1}
.tk li{display:flex;align-items:flex-start;gap:10px;padding:8px 12px;cursor:pointer;user-select:none}
.tk li:hover{background:#2A2522}
.tk li .q{flex:none;width:26px;height:26px;border-radius:6px;background:#3A322E;display:grid;place-items:center;font-weight:700;font-size:15px}
.tk li>div{flex:1;min-width:0}
.tk li b{display:block;font-size:16px;font-weight:600}
.tk li small{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.tk li em{font-style:normal;font-size:11.5px;padding:1px 6px;border-radius:4px;background:#3A322E;color:#d8cec6}
.tk li em.hot{background:#5A2219;color:#FF9A84}
.tk li em.add{background:#1F3A2A;color:#8FE0A6}
.tk li.done{opacity:.4}
.tk li.done b{text-decoration:line-through}
.tk li>.ic{color:#7BD88F;margin-top:4px}
.tk-note{margin:0 12px 8px;padding:6px 8px;border-radius:6px;background:#3D3012;color:#F7C95A;font-size:13px;display:flex;align-items:center;gap:5px}
.tk-f{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-top:1px solid #2F2926}
.tk-f small{font-size:12px;color:#8f837c}
.tk-f button{display:flex;align-items:center;gap:5px;height:34px;padding:0 16px;border-radius:8px;background:var(--brand);color:#fff;font-weight:700;font-size:14px}
.tk-f button:hover{background:#F06A3A}
.k-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:120px 0;color:#6f645e}
.k-empty b{font-size:18px;color:#a79b93}
.k-side{width:280px;flex:none;background:#1A1715;border-left:1px solid #2C2724;padding:18px}
.k-side h4{margin:0 0 10px;font-size:14px;color:#d8cec6}
.k-side h4 small{font-weight:400;color:#8f837c;font-size:11.5px;margin-left:4px}
.k-side h4.mt{margin-top:22px}
.sum-r{display:flex;justify-content:space-between;padding:7px 10px;border-radius:6px;font-size:14px}
.sum-r:nth-child(odd){background:#221E1C}
.sum-r b{color:#F7C27A;font-size:16px}
.dn-r{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:6px;background:#221E1C;margin-bottom:6px}
.dn-r b{display:block;font-size:15px}.dn-r small{font-size:11.5px;color:#8f837c}
.dn-r button{font-size:12px;color:#b3a79f;border:1px solid #3A322E;border-radius:6px;padding:3px 10px}
.dn-r button:hover{color:#fff;border-color:#6f645e}
.none{font-size:12.5px;color:#6f645e;padding:6px 10px}
.k-hint{margin-top:22px;font-size:12px;color:#8f837c;line-height:1.7;display:flex;gap:6px}
.k-hint .ic{flex:none;margin-top:3px}
.ktoast{position:fixed;left:50%;top:84px;transform:translate(-50%,-20px);display:flex;align-items:center;gap:8px;background:#F2A93B;color:#2B2523;font-weight:700;padding:12px 20px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.4);opacity:0;transition:.3s;z-index:1000}
.ktoast.show{opacity:1;transform:translate(-50%,0)}
body.web-mode .demo-mark{background:rgba(40,35,32,.8);color:#a79b93;border-color:#3A322E}
@media (max-width:900px){.k-side{display:none}.k-top{flex-wrap:wrap;gap:12px;padding:12px 14px}.k-right{margin-left:auto}.k-stats{order:3;width:100%;margin:0;gap:6px}.k-stats>div{flex:1;min-width:0;padding:6px 8px}.k-stats small{white-space:nowrap;font-size:10.5px}.k-filter button,.k-back{white-space:nowrap}.k-clock{display:none}.k-grid{padding:12px 14px}}
@media (max-width:600px){.k-back{display:none}.k-brand small{display:none}}

/* 手机宽度：后厨屏演示标记放到顶栏右上角（小程序页面的位置见 frame.css） */
@media (max-width:600px){
  body.web-mode .demo-mark{top:12px;bottom:auto;left:auto;right:12px;transform:none;font-size:9.5px}/* 后厨屏窄屏：放到顶栏右上角，不压底部工单的“出餐”按钮 */
}
.pay-err{min-height:18px;margin:4px 2px 8px;font-size:12.5px;color:#D9483B}

/* 手机全屏：可读性与触控区（仅 ≤600px，桌面手机框不变） */
@media (max-width:600px){
  :root{--muted:#746C67}
  .tabbar a{color:#71757D}
  .m-end{color:#746C67}
  .price small{font-size:max(10px,.66em)}
  body.web-mode .demo-mark{font-size:10px}
  .st-b small,.tbl small,.mlist section h5 small,.d-b p,.d-b small,.m-end,.sg-t small,.sp-foot>div>small,.dt-meta,.cs-foot>div>small,.cs-h small,.cs-b small,.card-h small,.ci-b small,.co-safe,.pay-tip,.t-leg,.pbar-t,.ist,.oc-f small{font-size:12px}
  .ppl>button,.rtags>button,.m-head button,.btn.sm,.cb-t,.card-h>a{position:relative}
  .ppl>button::after{content:"";position:absolute;inset:-4px}
  .rtags>button::after,.btn.sm::after{content:"";position:absolute;inset:-7px 0}
  .m-head button::after{content:"";position:absolute;inset:-2px 0}
  .mode button::after,.co-top>button::after{content:"";position:absolute;inset:-8px 0}
  .spec-btn::after{content:"";position:absolute;inset:-9px 0}
  .cb-t::after{content:"";position:absolute;inset:-4px 0}
  .card-h>a::after{content:"";position:absolute;inset:-14px -4px}
  .nb-back{position:relative}.nb-back::after{content:"";position:absolute;inset:-4px}
  .sg button,.step button{position:relative}.sg button::after{content:"";position:absolute;inset:-8px}.step button::after{content:"";position:absolute;inset:-10px -5px}
}
