/* 楼下便利店 —— 简约真实的外卖风格 */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif;
  background:#f4f5f7;color:#1c1c1e;font-size:15px;line-height:1.5;
  max-width:480px;margin:0 auto;min-height:100vh;
  padding-bottom:calc(64px + env(safe-area-inset-bottom));
}
button{font:inherit;border:none;background:none;cursor:pointer;color:inherit}
input,select{font:inherit}
#app{padding:0 0 12px}

/* ---------- 底部导航 ---------- */
#tabbar{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:480px;background:#fff;border-top:.5px solid #e5e5ea;
  display:flex;z-index:50;padding-bottom:env(safe-area-inset-bottom);
}
#tabbar button{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;
  padding:7px 0 6px;font-size:10.5px;color:#8e8e93;position:relative;
}
#tabbar button .ti{font-size:20px;line-height:1;filter:grayscale(1);opacity:.55}
#tabbar button.on{color:#00a465}
#tabbar button.on .ti{filter:none;opacity:1}
#tabbar .dot{position:absolute;top:5px;right:calc(50% - 16px);width:8px;height:8px;border-radius:50%;background:#ff3b30}

/* ---------- 通用 ---------- */
.page{padding:12px 12px 0}
.card{background:#fff;border-radius:12px;padding:14px;margin-bottom:10px}
.h1{font-size:19px;font-weight:700}
.h2{font-size:15px;font-weight:600;margin-bottom:8px}
.muted{color:#8e8e93;font-size:12.5px}
.small{font-size:12px}
.price{color:#ff5000;font-weight:700}
.price .rmb{font-size:.75em;font-weight:600}
a.btn{text-decoration:none}
.btn{display:block;width:100%;text-align:center;padding:12px;border-radius:24px;font-size:16px;font-weight:600}
.btn-primary{background:#00b578;color:#fff}
.btn-primary:active{background:#009c67}
.btn-ghost{background:#fff;color:#00a465;border:1px solid #00b578}
.btn-plain{background:#f2f3f5;color:#3a3a3c}
.btn[disabled]{opacity:.45}
.btn-sm{display:inline-block;width:auto;padding:6px 16px;font-size:13px;border-radius:16px}
.row{display:flex;align-items:center;gap:10px}
.grow{flex:1;min-width:0}
.hr{height:.5px;background:#ececec;margin:12px 0}
.center{text-align:center}
.link{color:#576b95}
a.link{text-decoration:none}
.topbar{display:flex;align-items:center;gap:8px;padding:10px 12px;font-size:16px;font-weight:600;background:#fff;position:sticky;top:0;z-index:10;border-bottom:.5px solid #eee}
.topbar .back{font-size:22px;line-height:1;padding:2px 8px 2px 0;color:#3a3a3c}

/* ---------- 店铺头部 ---------- */
.awning{height:14px;border-radius:12px 12px 0 0;
  background:repeating-linear-gradient(90deg,#00b578 0 22px,#fff 22px 44px);}
.shop-head{background:#fff;border-radius:0 0 12px 12px;padding:14px;margin-bottom:10px}
.shop-name{font-size:20px;font-weight:800;letter-spacing:.5px}
.shop-meta{display:flex;gap:10px;align-items:center;margin-top:6px;font-size:12px;color:#8e8e93;flex-wrap:wrap}
.shop-meta .rate{color:#ff7d00;font-weight:700}
.notice{margin-top:10px;background:#f7f8f9;border-radius:8px;padding:8px 10px;font-size:12px;color:#6d6d72;display:flex;gap:6px;align-items:flex-start}
.daypill{margin:10px 12px 0;display:flex;justify-content:space-between;align-items:center;
  background:#e8f7f1;color:#00805a;border-radius:10px;padding:8px 12px;font-size:12.5px}
.daypill b{font-size:14px}

/* ---------- 商品 ---------- */
.sec-title{font-size:13px;color:#8e8e93;margin:14px 2px 8px;font-weight:600}
.goods{background:#fff;border-radius:12px;overflow:hidden}
.good{display:flex;gap:12px;padding:12px 14px;border-bottom:.5px solid #f2f2f2;align-items:center}
.good:last-child{border-bottom:none}
.good .info{flex:1;min-width:0}
.good .gname{font-weight:600;font-size:15px}
.good .gdesc{font-size:11.5px;color:#8e8e93;margin-top:2px}
.good .gsold{font-size:11px;color:#b0b0b5;margin-top:2px}
.buyline{display:flex;align-items:baseline;justify-content:space-between;margin-top:5px}
.addbtn{width:26px;height:26px;border-radius:50%;background:#00b578;color:#fff;font-size:19px;line-height:26px;text-align:center;font-weight:600;flex-shrink:0;align-self:flex-end}

/* 烟盒 */
.pack{width:54px;height:74px;border-radius:5px;position:relative;overflow:hidden;flex-shrink:0;
  box-shadow:0 1px 3px rgba(0,0,0,.18)}
.pack .band{position:absolute;top:0;left:0;right:0;height:20px;display:flex;align-items:center;justify-content:center;font-size:7px;color:rgba(0,0,0,.55);letter-spacing:1px}
.pack .pname{position:absolute;top:24px;left:0;right:0;bottom:14px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:12px;writing-mode:vertical-rl;letter-spacing:2px;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.pack .warn{position:absolute;bottom:0;left:0;right:0;height:14px;background:#111;color:#fff;
  font-size:6.5px;display:flex;align-items:center;justify-content:center;letter-spacing:.5px}
.pack.lg{width:72px;height:98px;border-radius:7px}
.pack.lg .band{height:26px;font-size:8px}
.pack.lg .pname{top:30px;bottom:18px;font-size:15px}
.pack.lg .warn{height:18px;font-size:8px}

/* ---------- 底部弹层 ---------- */
.mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;border-radius:16px 16px 0 0;width:100%;max-width:480px;padding:18px 16px calc(18px + env(safe-area-inset-bottom));
  animation:up .22s ease}
@keyframes up{from{transform:translateY(40%);opacity:.5}to{transform:none;opacity:1}}
.sheet .h1{margin-bottom:12px}
.stepper{display:flex;align-items:center;gap:14px}
.stepper button{width:30px;height:30px;border-radius:50%;background:#f2f3f5;font-size:18px;font-weight:700;color:#3a3a3c}
.stepper b{font-size:17px;min-width:20px;text-align:center}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:7px 13px;border-radius:16px;background:#f2f3f5;font-size:13px;color:#3a3a3c}
.chip.on{background:#e8f7f1;color:#00805a;font-weight:600;box-shadow:inset 0 0 0 1px #00b578}
.field{margin:12px 0}
.field label{display:block;font-size:12.5px;color:#8e8e93;margin-bottom:5px}
.field input{width:100%;padding:10px 12px;border:1px solid #e5e5ea;border-radius:8px;font-size:16px;background:#fafafa}

/* ---------- 订单流程 ---------- */
.status-hero{background:#fff;border-radius:12px;padding:18px 16px;margin-bottom:10px}
.status-hero .st{font-size:21px;font-weight:800}
.status-hero .eta{color:#00a465;font-weight:700}
.mapbox{background:#eef1ee;border-radius:10px;margin-top:12px;overflow:hidden}
.mapbox svg{display:block;width:100%;height:auto}
.steps{display:flex;margin-top:14px}
.step{flex:1;text-align:center;position:relative;font-size:10.5px;color:#c7c7cc}
.step::before{content:"";display:block;width:8px;height:8px;border-radius:50%;background:#d9d9de;margin:0 auto 4px}
.step::after{content:"";position:absolute;top:3.5px;left:calc(50% + 8px);right:calc(-50% + 8px);height:1.5px;background:#e4e4e8}
.step:last-child::after{display:none}
.step.done{color:#00a465}
.step.done::before{background:#00b578}
.step.done::after{background:#9adfc6}
.chat{margin-top:4px}
.msg{display:flex;gap:8px;margin-bottom:10px;animation:fade .3s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1}}
.avatar{width:34px;height:34px;border-radius:50%;background:#3a5f8a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}
.bubble{background:#fff;border-radius:4px 12px 12px 12px;padding:9px 12px;font-size:14px;max-width:78%}
.msg .time{font-size:10px;color:#b0b0b5;align-self:flex-end}
.slipline{text-align:center;margin:16px 0 8px}
.slipline button{color:#b0b0b5;font-size:12px;text-decoration:underline}

/* ---------- 揭示 / 善款 ---------- */
.reveal-num{display:flex;text-align:center;margin:14px 0}
.reveal-num>div{flex:1}
.reveal-num b{display:block;font-size:19px;font-weight:800}
.reveal-num span{font-size:11px;color:#8e8e93}
.charity{border:1px solid #ececec;border-radius:10px;padding:12px;margin-bottom:8px}
.charity.on{border-color:#00b578;background:#f4fbf8}
.charity .cn{font-weight:700}
.charity .co{font-size:11px;color:#8e8e93;margin-top:1px}
.charity .cd{font-size:12.5px;color:#5a5a5e;margin-top:6px}
.charity .cu{font-size:12.5px;color:#00805a;font-weight:600;margin-top:6px}
.bignum{font-size:34px;font-weight:800;letter-spacing:-.5px}
.progress{height:8px;background:#f0f0f2;border-radius:4px;overflow:hidden;margin:8px 0 4px}
.progress i{display:block;height:100%;background:#00b578;border-radius:4px;transition:width .3s}
.orow{display:flex;gap:10px;padding:12px 0;border-bottom:.5px solid #f2f2f2;align-items:center}
.orow:last-child{border-bottom:none}
.tag{display:inline-block;font-size:10.5px;padding:2px 7px;border-radius:4px;background:#f2f3f5;color:#8e8e93}
.tag.green{background:#e8f7f1;color:#00805a}
.tag.orange{background:#fff3e8;color:#e06a00}
.tag.gray{background:#f2f3f5;color:#8e8e93}
.tag.blue{background:#eaf2fd;color:#3672c8}
.empty{text-align:center;color:#b0b0b5;padding:48px 0;font-size:13px}
.cell{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:.5px solid #f2f2f2;font-size:15px}
.cell:last-child{border-bottom:none}
.cell .v{color:#8e8e93;font-size:13.5px;display:flex;align-items:center;gap:4px}
.cell .arrow{color:#c7c7cc}
.footnote{font-size:11px;color:#b0b0b5;padding:4px 6px 20px;line-height:1.7}
.footnote a{color:#9aa7b8}
