:root{--cream:#fff8e8;--paper:#fffdf6;--ink:#211b15;--blue:#2146d0;--yellow:#ffda38;--red:#df332b;--muted:#695847;font:16px/1.5 system-ui,"Microsoft YaHei",sans-serif;color:var(--ink);background:var(--cream)}*{box-sizing:border-box}body,h1,h2,p{margin:0}h1{font-size:30px;line-height:1.12}h2{font-size:20px;line-height:1.25}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #136da8;outline-offset:2px}button:disabled{opacity:.52;cursor:default}a{color:#1736a3}img{width:100%;object-fit:cover;display:block}small{font-size:12px}input,textarea{width:100%;padding:10px 12px;background:white;border:1px solid #806e57;border-radius:10px;min-height:44px}textarea{min-height:68px;resize:vertical}label{display:block;font-weight:750;margin:9px 0}label input,label textarea{display:block;margin-top:4px}.stage{display:grid;grid-template-columns:minmax(250px,370px) 402px;align-items:center;justify-content:center;gap:clamp(35px,8vw,125px);min-height:100dvh;padding:22px;background:radial-gradient(ellipse at 70% 40%,#ffe47a,#fff8e8 70%)}.poster small{display:block;letter-spacing:.12em;font-weight:850}.poster p{font-size:clamp(70px,8vw,105px);font-weight:1000;letter-spacing:-.075em;line-height:1.05;margin:15px 0}.poster p span{color:var(--red);font-size:.34em;vertical-align:top;margin-left:10px}.poster b{font-size:22px}.poster .check{width:112px;margin:20px 0}.poster a{display:inline-block;margin-top:17px;font-weight:800}.phone{display:flex;flex-direction:column;height:min(850px,calc(100dvh - 44px));border:2px solid var(--ink);overflow:hidden;border-radius:26px;background:var(--cream);box-shadow:7px 7px var(--ink)}header{flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 13px;min-height:61px;border-bottom:1px solid #211b152d;background:var(--paper);font-size:12px;font-weight:750}header>b{font-size:20px;text-align:center;line-height:1.05}header small{display:block;font-size:9px;margin-top:3px;letter-spacing:.09em}header>span:last-child{text-align:right}.phone>main{flex:1;min-height:0;overflow:auto;scrollbar-width:none}.hero img{aspect-ratio:450/211}.check{height:14px;background:conic-gradient(var(--red) 25%,var(--cream) 0 50%,var(--red) 0 75%,var(--cream) 0) left/14px 14px}.pad{padding:13px}.store-line,.line,.section-title,.staff-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.store-line strong{font-size:17px}.hint{font-size:13px;color:var(--muted)}.pill{background:#eee6da;padding:3px 8px;border-radius:40px;font-size:12px;font-weight:800;white-space:nowrap}.pill.live{background:#e1f3d6;color:#24542d}.quick{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.quick button{border:1px solid #211b1568;border-radius:14px;text-align:left;position:relative;background:#fff0aa;min-height:76px;padding:9px 5px 9px 61px}.quick img{position:absolute;left:7px;top:50%;transform:translateY(-50%);width:47px;height:47px;object-fit:contain;mix-blend-mode:multiply}.quick small{display:block;color:var(--muted)}.feature,.blue{background:var(--blue);color:var(--cream);padding:13px}.feature{border-radius:16px 16px 0 0}.section-title{margin-bottom:8px}.section-title button,.white{color:var(--cream);font-size:13px;font-weight:850;min-height:44px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tiles button{background:var(--paper);color:var(--ink);border:2px solid white;border-radius:14px;text-align:left;padding:0 0 7px;overflow:hidden}.tiles img{aspect-ratio:1.85}.tiles b,.tiles strong{display:block;padding:0 8px}.tiles b{font-size:14px;margin-top:5px}.tiles strong,.product strong,.line strong{color:#aa241a}.footnote{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.blue{display:flex;justify-content:space-between;align-items:center;min-height:73px}.switch{display:flex;background:var(--paper);padding:3px;border-radius:40px;color:var(--ink)}.switch button,.filters button{min-height:44px;padding:0 12px;border-radius:30px;font-size:13px;font-weight:800}.switch [aria-pressed=true],.filters [aria-pressed=true],.staff-tabs [aria-pressed=true]{background:var(--yellow)}.filters{display:flex;gap:5px;margin:8px 0;overflow:auto;scrollbar-width:none}.filters button{border:1px solid #211b1570;white-space:nowrap}.product{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:8px;background:var(--paper);border:1px solid #2146d05c;border-radius:13px;overflow:hidden;margin-bottom:7px;min-height:82px}.product-img{padding:0;height:100%;min-height:80px}.product-img img{height:100%;max-height:104px}.product .hint{font-size:11px;line-height:1.3;margin:1px 0 3px}.text{padding:0;text-align:left;font-size:14px;font-weight:870}.qty{display:flex;align-items:center;gap:2px;font-size:13px;padding-right:4px}.qty button{width:38px;height:44px;position:relative;isolation:isolate;color:#152b83;font-size:21px;font-weight:900}.qty button:before{position:absolute;z-index:-1;content:"";inset:7px 4px;background:var(--yellow);border:1px solid #152b83;border-radius:100%}.qty button[data-minus]:before{background:var(--paper)}.sold{margin-left:5px;color:var(--muted)}.cartbar{margin:5px 9px 8px;background:#172e89;color:white;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:6px 8px}.cartbar>button:first-child{color:white;min-height:44px;font-size:13px}.cartbar b{font-size:18px;margin-left:4px}.cta,.outline{min-height:44px;border:1px solid var(--ink);border-radius:30px;padding:0 13px;font-size:14px;font-weight:850;background:var(--paper);color:var(--ink)}.cta{background:var(--yellow);box-shadow:0 2px var(--ink)}.cta:active{transform:translateY(2px);box-shadow:none}nav{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #211b152d;background:var(--paper);padding:3px 6px max(4px,env(safe-area-inset-bottom))}nav button{min-height:54px;font-size:12px;font-weight:800}nav span{display:block;font-size:23px;line-height:1.1}nav [aria-current=page]{color:#1c3eac}.receipt,.empty{padding:13px;border-radius:14px;border:1px solid #211b1559;background:var(--paper);margin-bottom:9px}.receipt p,.empty p{margin:5px 0}.line{padding:8px 0;border-bottom:1px dashed #211b1542}.empty .cta{margin-top:9px}.notice{background:#fff1b8;border-radius:9px;padding:7px;font-size:13px;margin:7px 0}.error{color:#a1231b;font-weight:750;margin-top:6px}.wide{width:100%;margin-top:10px}dialog{width:min(365px,calc(100% - 22px));max-height:calc(100dvh - 20px);border:2px solid var(--ink);border-radius:19px;background:var(--cream);color:var(--ink);padding:14px}dialog[open]{animation:enter .17s ease-out}dialog::backdrop{background:#1b160eb0}.close{float:right;height:44px;width:44px;font-size:26px}.close+#sheet h2{padding:8px 40px 7px 0}#sheet img{border-radius:12px;max-height:190px;margin-bottom:8px}@keyframes enter{from{transform:translateY(8px);opacity:.55}}.staff header{padding-inline:max(14px,calc((100vw - 1120px)/2));background:#172e89;color:var(--cream)}.staff header a{color:inherit}.staff main{max-width:1150px;margin:0 auto;padding:18px}.staff #login{max-width:420px;margin:30px auto}.staff-head{flex-wrap:wrap;margin-bottom:12px}.staff-tabs,.buttons{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.staff-grid,#stocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px}.stock{border:1px solid #211b1559;border-radius:12px;padding:9px;background:var(--paper)}#stocks{margin-top:8px}.staff .receipt h2{color:#172e89}@media(max-width:780px){.stage{display:block;padding:0;background:var(--cream)}.poster{display:none}.phone{height:100dvh;width:min(100%,480px);margin:auto;border:0;border-radius:0;box-shadow:none}}@media(max-width:350px){.product{grid-template-columns:60px minmax(0,1fr) auto}.qty button{width:32px}.filters button{padding:0 9px}.quick button{padding-left:49px}.quick img{width:36px}}@media(prefers-reduced-motion:reduce){dialog[open]{animation:none}}

/* Standard phone shell + inner screen + WeChat capsule */
.phone{position:relative;padding:12px;border:1px solid rgba(33,27,21,0.22);border-radius:52px;background:linear-gradient(145deg,#2e261f 0%,#181410 55%,#241e18 100%);box-shadow:0 34px 80px rgba(33,27,21,0.25),0 12px 28px rgba(33,27,21,0.12),inset 0 0 0 1px rgba(255,255,255,0.12)}
.phone-screen{width:100%;height:100%;border-radius:40px;overflow:hidden;background:var(--cream);display:flex;flex-direction:column;position:relative}
.chuan-status{height:28px;flex:none;padding:6px 22px 0;display:flex;align-items:center;justify-content:space-between;background:var(--paper);font-size:11px;font-weight:700;color:var(--ink)}
.chuan-status>div{display:flex;align-items:center;gap:5px}
.phone-screen>header{min-height:52px;padding:4px 14px 8px}
.header-store{display:flex;align-items:center;gap:6px;white-space:nowrap}
.mp-capsule{justify-self:end;height:30px;border:1px solid #211b1528;border-radius:99px;background:#ffffffcc;display:flex;align-items:center;padding:0 3px}
.mp-capsule button,.mp-capsule a{width:34px;height:28px;display:grid;place-items:center;color:var(--ink)}
.mp-capsule>span{width:1px;height:14px;background:#211b1524}
.phone-screen>main{flex:1;min-height:0;overflow:auto;scrollbar-width:none}
.phone-screen>main::-webkit-scrollbar{display:none}
.phone-backdrop{position:absolute;inset:0;z-index:20;background:#1b160eb0;backdrop-filter:blur(4px)}
.phone-backdrop[hidden]{display:none}
.phone-screen dialog{position:absolute;inset:0;margin:auto;z-index:21;width:calc(100% - 24px);max-height:calc(100% - 48px);overflow:auto}
@media(max-width:760px){
  .phone{padding:0;border:0;border-radius:0;box-shadow:none;background:var(--cream)}
  .phone-screen{border-radius:0}
  .chuan-status{padding-top:max(5px,env(safe-area-inset-top));height:calc(28px + env(safe-area-inset-top))}
  .phone-screen dialog{max-height:calc(100% - 28px)}
}
