:root{--page: #faf8f5;--surface: #fffefd;--soft: #f3f0eb;--ink: #292622;--muted: #85817c;--gold: #aa8a5f;--gold-ink: #805f36;--line: #e7e2dc;--shadow: 0 3px 9px rgba(60, 48, 31, .05);--serif: "Songti SC", STSong, "Noto Serif CJK SC", serif;color-scheme:light}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{position:fixed;inset:0;width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:var(--page);-webkit-text-size-adjust:100%;text-size-adjust:100%}#app{height:100%}body{color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}button,input,select,textarea{font:inherit;color:inherit;touch-action:manipulation}button{padding:0;border:0;background:none;cursor:pointer}img{display:block;-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;pointer-events:none}.app{max-width:560px;height:100%;margin:0 auto;overflow:hidden auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;background:var(--page)}.serif{font-family:var(--serif)}.muted{color:var(--muted);font-size:12px}.bad{color:#b42318;font-size:12px}.nav{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;min-height:46px;background:var(--page)}.nav-back{height:46px;font-size:26px;font-weight:300;line-height:1;color:var(--ink)}.nav-title{overflow:hidden;font-family:var(--serif);font-size:17px;letter-spacing:1px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.page{padding:8px 15px 24px}.page.with-bar{padding-bottom:104px}.heading{margin:4px 0 14px}.heading h1{margin:0;padding-left:9px;border-left:2px solid var(--gold);font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.3}.heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.panel{margin-bottom:11px;padding:14px 13px;border-radius:10px;background:var(--surface);box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.panel-title{margin:0;font-family:var(--serif);font-size:16px;font-weight:600}.line-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:5px 0}.line-row>:last-child{flex-shrink:0}.divider{height:1px;margin:9px 0;background:var(--line)}.school-hero{min-height:100px;padding:15px;background:var(--soft)}.school-hero h1{margin:0 0 6px;font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.school-hero p{margin:0;font-size:12px;line-height:1.6}.context{margin:10px 14px 0;overflow:hidden;border:.5px solid var(--line);border-radius:9px;background:var(--surface)}.context-row{display:flex;align-items:center;gap:9px;width:100%;min-height:54px;padding:9px 11px;text-align:left}.context-row+.context-row{border-top:.5px solid var(--line);min-height:42px}.avatar{width:28px;height:28px;flex:none}.context-copy{flex:1;min-width:0}.context-copy strong{display:block;font-size:14px;font-weight:600}.context-copy span{display:block;color:var(--muted);font-size:12px}.link{flex:none;color:var(--gold-ink);font-size:13px}.notice-badge{flex:none;padding:1px 6px;border-radius:4px;background:var(--soft);color:var(--gold-ink);font-size:12px}.shop{padding:14px 14px 88px}.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.section-head h2{margin:0;font-family:var(--serif);font-size:16px;font-weight:600}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{min-width:0;overflow:hidden;border:.5px solid var(--line);border-radius:9px;background:var(--surface);text-align:left;box-shadow:var(--shadow)}.product-card.sold-out{opacity:.7}.product-photo{position:relative;aspect-ratio:1 / 1;background:var(--soft)}.product-photo>img:first-child{width:100%;height:100%;object-fit:contain}.placeholder{display:flex;align-items:center;justify-content:center}.placeholder img{width:34px!important;height:34px!important;opacity:.3}.sold-label{position:absolute;top:6px;left:6px;padding:2px 6px;border-radius:4px;background:#3a3630c7;color:#fff;font-size:11px}.product-body{padding:8px 9px 10px}.product-name{display:-webkit-box;min-height:40px;overflow:hidden;font-size:14px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.price{color:var(--gold-ink);font-weight:600}.price-big{font-size:22px}.price small{margin-left:1px;color:var(--muted);font-size:11px;font-weight:400}.tabbar{position:fixed;bottom:0;left:50%;z-index:20;display:grid;grid-template-columns:repeat(2,1fr);width:100%;max-width:560px;padding-bottom:env(safe-area-inset-bottom);border-top:.5px solid var(--line);background:#fffefdfa;transform:translate(-50%)}.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;color:var(--muted);font-size:11px}.tabbar button.active{color:var(--gold-ink);font-weight:600}.tabbar img{width:21px;height:21px;opacity:.72}.tabbar .active img{opacity:1}.choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;margin-bottom:7px;padding:8px 12px;border:.5px solid var(--line);border-radius:7px;background:var(--surface);text-align:left;overflow-wrap:anywhere}.choice.active{border-color:var(--gold);background:var(--soft);color:var(--gold-ink)}.choice:disabled{color:#bdb8b1;background:var(--page)}.choice img{width:16px;height:16px;flex:none}.choice small{display:block;color:var(--muted);font-size:12px}.select-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 10px;border-radius:5px;background:var(--soft);text-align:left}.select-row span:last-child{color:var(--muted)}.select-row .chosen{color:var(--ink)!important}.chips{display:flex;flex-wrap:wrap;gap:7px}.pill{min-height:34px;padding:4px 14px;border-radius:22px;background:var(--soft);color:var(--muted)}.pill.active{background:var(--gold);color:#fff}.pill-scroll{display:flex;gap:6px;margin:0 -15px 12px;padding:0 15px;overflow-x:auto;overscroll-behavior:contain;touch-action:pan-x;scrollbar-width:none}.pill-scroll::-webkit-scrollbar{display:none}.pill-scroll .pill{flex:none}.methods{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:6px}.method{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:69px;padding:10px 4px;border:.5px solid var(--line);border-radius:7px;background:var(--surface)}.method img{width:21px;height:21px}.method.active{border-color:var(--gold);background:var(--soft);color:var(--gold-ink)}.stepper{display:inline-flex;align-items:center;overflow:hidden;border:.5px solid var(--line);border-radius:7px}.stepper button{width:38px;height:38px;font-size:18px}.stepper button:disabled{color:#cfcac3}.stepper span{min-width:36px;text-align:center}.tiny-button{min-height:34px;padding:3px 13px;border:.5px solid var(--line);border-radius:22px;background:var(--soft);color:var(--gold-ink);font-size:13px;font-weight:600;white-space:nowrap}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field{display:grid;gap:6px;min-width:0}.field.full{grid-column:1 / -1}.field>span{font-size:13px;font-weight:600}.field input,.field select,.field textarea{width:100%;min-height:43px;font-size:16px;padding:8px 11px;border:.5px solid var(--line);border-radius:7px;outline:0;background:var(--surface);appearance:none}.field select{padding-right:26px;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M3 1l4 4-4 4" fill="none" stroke="%2385817c" stroke-width="1.2"/></svg>');background-repeat:no-repeat;background-position:right 10px center}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold)}.form-actions{margin-top:12px}.pay-bar{position:fixed;bottom:0;left:50%;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:560px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:.5px solid var(--line);background:var(--page);transform:translate(-50%)}.pay-total{display:flex;align-items:baseline;gap:6px;min-width:0;color:var(--muted);font-size:12px;white-space:nowrap}.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 30px;border-radius:30px;background:var(--gold);color:#fff;font-size:14px;font-weight:600;white-space:nowrap}.primary:disabled{opacity:.45}.primary.wide{flex:1}.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 30px;border:.5px solid var(--line);border-radius:30px;background:var(--soft);color:var(--gold-ink);font-weight:600;white-space:nowrap}.sheet-mask{position:fixed;inset:0;z-index:30;background:#2926226b}.sheet{position:fixed;bottom:0;left:50%;z-index:31;display:flex;flex-direction:column;width:100%;max-width:560px;max-height:78vh;border-radius:14px 14px 0 0;background:var(--page);transform:translate(-50%)}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:15px}.sheet-head h2{margin:0;font-size:16px;font-weight:600}.sheet-close{width:28px;height:28px;font-size:22px;font-weight:300;line-height:1;color:var(--ink)}.sheet-body{flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 15px 8px}.sheet-foot{display:flex;gap:8px;padding:10px 15px calc(10px + env(safe-area-inset-bottom));border-top:.5px solid var(--line)}.order-card{margin-bottom:11px;overflow:hidden;border-radius:10px;background:var(--surface);box-shadow:var(--shadow)}.order-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 8px;color:var(--muted);font-size:12px}.order-no{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;padding:2px 7px;border-radius:11px;background:#edf2ea;color:#4f6b48;font-size:12px}.badge.warn{background:#f8efe2;color:#94682a}.badge.mute{background:var(--soft);color:var(--muted)}.order-student{display:flex;align-items:center;gap:8px;margin:0 12px;padding-bottom:9px;border-bottom:.5px solid var(--line)}.order-student strong{display:block;font-weight:400}.goods{display:flex;gap:9px;padding:9px 12px 0}.goods-thumb{display:flex;align-items:center;justify-content:center;width:54px;height:54px;flex:none;border-radius:6px;background:var(--soft)}.goods-thumb img{width:32px;height:32px}.goods-copy{min-width:0;flex:1;overflow-wrap:anywhere}.goods-copy b{display:block;margin:1px 0;color:var(--gold-ink);font-weight:400}.order-total{padding:10px 12px;color:var(--gold-ink);font-weight:600;text-align:right}.order-actions{display:flex;justify-content:flex-end;padding:8px 12px 12px;border-top:.5px solid var(--line)}.empty{padding:56px 16px;color:var(--muted);text-align:center}.foot-note{padding:22px 0 6px;color:var(--muted);font-size:12px;text-align:center}.state{display:grid;justify-items:center;gap:10px;padding:96px 24px;text-align:center}.state-title{margin:0;font-family:var(--serif);font-size:18px;font-weight:600}.notice-text{white-space:pre-wrap;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.product-gallery{aspect-ratio:1 / 1;max-height:340px;width:100%;background:var(--soft)}.product-gallery img{width:100%;height:100%;object-fit:contain}.goods-info{padding:13px 15px 3px}.goods-info h1{margin:0 0 6px;font-family:var(--serif);font-size:18px;font-weight:600;overflow-wrap:anywhere}.toast{position:fixed;top:42%;left:50%;z-index:50;max-width:78vw;padding:9px 14px;border-radius:7px;background:#292622db;color:#fff;font-size:13px;transform:translate(-50%)}
