:root{
  --mt-yellow:#ffd100;
  --mt-yellow-deep:#f7b500;
  --mt-green:#18b57b;
  --mt-red:#ff4d4f;
  --ink:#1f2933;
  --sub:#667085;
  --line:#edf0f5;
  --bg:#f7f8fb;
  --card:#fff;
  --shadow:0 8px 24px rgba(31,41,51,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,"Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink)}
a{color:#0f766e}
.login,.page{max-width:1180px;margin:0 auto;padding:24px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px;margin:14px 0;box-shadow:var(--shadow)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
h1{margin:8px 0 18px;font-size:28px}
h2{margin:4px 0 14px;font-size:20px}
h3{margin:0 0 6px;font-size:16px}
.btn,button{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--mt-yellow),var(--mt-yellow-deep));color:#2b2100;border:0;border-radius:999px;padding:10px 18px;text-decoration:none;cursor:pointer;font-weight:700;box-shadow:0 4px 10px rgba(247,181,0,.18)}
.btn.secondary{background:#eef8f3;color:#087a52;box-shadow:none}
button:hover,.btn:hover{filter:brightness(.98);transform:translateY(-1px)}
input,select,textarea{width:100%;border:1px solid #dfe4ec;border-radius:10px;padding:11px 12px;margin:6px 0 12px;background:#fff;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--mt-yellow-deep);box-shadow:0 0 0 3px rgba(255,209,0,.22)}
textarea{min-height:82px}
.menu{display:flex;gap:10px;flex-wrap:wrap;background:#fff;border-bottom:1px solid var(--line);padding:12px 18px;position:sticky;top:0;z-index:5;box-shadow:0 4px 18px rgba(31,41,51,.05)}
.menu a{color:#263238;text-decoration:none;border:1px solid #eef1f5;border-radius:999px;padding:9px 14px;background:#fff;font-weight:600}
.menu a:hover{background:var(--mt-yellow);border-color:var(--mt-yellow)}
.muted{color:var(--sub)}
.price{color:var(--mt-red);font-weight:800}
.badge{display:inline-flex;align-items:center;background:#fff7cc;color:#7a5a00;border:1px solid #ffe680;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:800;margin:0 0 6px}
.thumb{width:72px;height:52px;object-fit:cover;border-radius:10px;background:#f2f4f7}
.product-img{width:100%;height:150px;object-fit:cover;border-radius:12px;margin-bottom:10px;background:#f2f4f7}
.product-card h2 a,.goods-item h3 a{color:var(--ink);text-decoration:none}
.product-card h2 a:hover,.goods-item h3 a:hover{color:#9a6700}
.qr{font-size:13px;background:#fff7cc;padding:7px 10px;border-radius:8px;word-break:break-all;color:#6b5200}
.alert{background:#fff1f0;color:#a8071a;border:1px solid #ffccc7;border-radius:10px;padding:11px 12px}
.notice{background:#ecfdf3;color:#067647;border:1px solid #abefc6;border-radius:10px;padding:11px 12px}
table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;overflow:hidden;border-radius:10px}
th,td{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:top}
th{background:#fff9d8;color:#5c4600}
tr:hover td{background:#fffdf2}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.toolbar input,.toolbar select{max-width:230px;margin:0}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.actions form{display:inline}
.package-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}
.package-dish{display:grid;grid-template-columns:auto 1fr 70px 70px;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}
.package-dish:hover{border-color:var(--mt-yellow-deep);box-shadow:0 6px 18px rgba(255,209,0,.16)}
.package-dish small{color:var(--sub)}
.order-head{display:flex;justify-content:space-between;gap:12px}

.login{min-height:100vh;display:grid;align-content:center}
.login h1{font-size:30px}
.account-fill{background:#fff7cc;border:1px solid #ffe680;box-shadow:none}

body.h5{background:#f5f6f7}
.shop{max-width:980px;margin:0 auto;padding-bottom:96px}
.shop-header{background:linear-gradient(135deg,var(--mt-yellow),#ffe78a);color:#2b2100;padding:22px 18px 28px;border-radius:0 0 22px 22px;box-shadow:0 10px 28px rgba(247,181,0,.18)}
.shop-header h1{margin:0 0 8px;font-size:28px}
.shop-header p{margin:0 0 10px;color:#5c4600}
.shop-header a{color:#2b2100;font-weight:700}
.buyer{margin:-16px 12px 14px;position:relative;z-index:2}
.order-layout{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:0 12px}
.category-tabs{position:sticky;top:12px;align-self:start;display:flex;flex-direction:column;gap:8px}
.category-tabs a{background:#fff;color:#344054;text-decoration:none;border-radius:12px;padding:11px 8px;border:1px solid var(--line);font-weight:700;text-align:center}
.category-tabs a:hover{background:var(--mt-yellow);border-color:var(--mt-yellow)}
.goods-list{min-width:0}
.goods-section{background:#fff;border-radius:14px;margin-bottom:12px;padding:14px;border:1px solid var(--line);box-shadow:0 6px 18px rgba(31,41,51,.05)}
.goods-section h2{display:inline-block;background:#fff7cc;border-radius:999px;padding:6px 12px;color:#6b5200}
.goods-item{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:12px;border-top:1px solid #f1f3f6;padding:14px 0}
.goods-item:first-of-type{border-top:0}
.goods-img{width:88px;height:72px;object-fit:cover;border-radius:12px;background:#f2f4f7}
.goods-item p{margin:0 0 8px;color:var(--sub);font-size:13px;line-height:1.45}
.goods-item b{font-size:18px;color:var(--mt-red)}
.stepper{display:flex;align-items:center;gap:8px;flex-shrink:0}
.stepper button{width:32px;height:32px;border-radius:50%;padding:0;font-size:18px}
.stepper button[data-minus]{background:#fff;border:1px solid #ffd666;color:#9a6700;box-shadow:none}
.stepper span{min-width:22px;text-align:center;font-weight:800}
.cart-bar{position:fixed;left:0;right:0;bottom:0;background:#202124;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:12px max(12px,calc((100vw - 980px)/2));box-shadow:0 -8px 26px rgba(0,0,0,.18);z-index:10}
.cart-bar div{padding-left:10px;border-left:5px solid var(--mt-yellow)}
.cart-bar span{display:block;color:#ffdf4d;font-size:21px;font-weight:900}
.cart-bar button{min-width:120px}
.detail-page{max-width:760px;margin:0 auto;padding-bottom:32px}
.detail-hero{width:100%;height:360px;object-fit:cover;background:#f2f4f7}
.detail-card{margin:-28px 14px 16px;position:relative}
.detail-card h1{margin-top:4px}
.detail-card .price{font-size:28px}
.service-page{max-width:820px;margin:0 auto;padding-bottom:32px}
.service-search{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px}
.service-grid.compact{margin:0}
.service-tile{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.service-tile b{display:block;font-size:18px;margin-bottom:6px}
.service-tile span{color:var(--sub);font-size:13px}
.service-tile:hover{border-color:var(--mt-yellow);background:#fffdf2}
.merchant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:12px}
.merchant-card{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.merchant-card b{display:block;font-size:18px;margin-bottom:8px}
.merchant-card span,.merchant-card em{display:block;color:var(--sub);font-style:normal;line-height:1.5}
.merchant-card:hover{border-color:var(--mt-yellow);background:#fffdf2;transform:translateY(-2px)}
.order-service-card{border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0;background:#fff}
.order-items{background:#fafafa;border-radius:10px;padding:10px;margin:10px 0}
.order-items div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}
.admin-detail-list{background:#fffdf2;border:1px solid #fff0a6;border-radius:12px;padding:10px;margin:10px 0}
.admin-detail-list div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px dashed #f4df82}
.admin-detail-list div:last-child{border-bottom:0}
.permission-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px;margin:12px 0}
.permission-picker label{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}
.permission-picker small{display:block;color:var(--sub);margin-top:4px}

@media(max-width:720px){
  .page{padding:14px}
  h1{font-size:24px}
  .card{border-radius:12px;padding:15px}
  .order-layout{grid-template-columns:82px 1fr;padding:0 8px}
  .toolbar input,.toolbar select{max-width:none}
  .package-dish{grid-template-columns:auto 1fr}
  .package-dish input[type=number]{width:100%}
  th,td{font-size:13px;padding:8px}
  .actions{display:block}
  .actions .btn,.actions button{margin-bottom:6px}
  .goods-item{grid-template-columns:76px 1fr;align-items:flex-start}
  .goods-item .stepper{grid-column:2}
  .goods-img{width:76px;height:68px}
  .goods-item h3{font-size:15px}
  .detail-hero{height:260px}
  .service-search{grid-template-columns:1fr}
}

/* H5 APP mode: mobile-first overrides for terminal users. Backend web pages stay unchanged. */
body.h5{
  --app-bg:#f6f7f2;
  --app-card:#fff;
  --app-ink:#151515;
  --app-sub:#70737a;
  --app-yellow:#ffd21e;
  --app-orange:#ff8a00;
  --app-green:#00b578;
  background:
    radial-gradient(circle at 20% 0, rgba(255,210,30,.28), transparent 28%),
    linear-gradient(180deg,#fff8d5 0,#f7f8f3 210px,#f6f7f2 100%);
  color:var(--app-ink);
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
body.h5 a{-webkit-tap-highlight-color:transparent}
body.h5 .page,
body.h5 .shop,
body.h5 .service-page,
body.h5 .detail-page{
  width:100%;
  max-width:520px;
  min-height:100vh;
  margin:0 auto;
  padding-left:12px;
  padding-right:12px;
}
body.h5 .page{padding-top:12px;padding-bottom:100px}
body.h5 .shop{padding-bottom:104px}
body.h5 .service-page{padding-bottom:100px}
body.h5 .card{
  border:0;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(25,25,25,.07);
  margin:12px 0;
  padding:16px;
}
body.h5 h1{font-size:24px;line-height:1.2;margin:4px 0 12px}
body.h5 h2{font-size:18px;margin:0 0 12px}
body.h5 h3{font-size:16px;line-height:1.28}
body.h5 .btn,
body.h5 button{
  min-height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--app-yellow),#ffbd16);
  color:#241800;
  box-shadow:0 8px 16px rgba(255,189,22,.24);
}
body.h5 .btn:active,
body.h5 button:active,
body.h5 .service-tile:active,
body.h5 .merchant-card:active,
body.h5 .product-card:active,
body.h5 .goods-item:active{
  transform:scale(.985);
}
body.h5 .btn.secondary{
  background:#f1fff9;
  color:#00875a;
  box-shadow:none;
}
body.h5 input,
body.h5 select,
body.h5 textarea{
  border:0;
  border-radius:14px;
  background:#f5f6f7;
  min-height:44px;
  margin-top:8px;
}
body.h5 input:focus,
body.h5 select:focus,
body.h5 textarea:focus{
  box-shadow:0 0 0 3px rgba(255,210,30,.28);
}
body.h5 .shop-header{
  position:relative;
  margin:0 -12px 0;
  padding:20px 18px 34px;
  border-radius:0 0 28px 28px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.32),transparent 45%),
    linear-gradient(135deg,#ffe65b 0,#ffd21e 52%,#ffb800 100%);
  box-shadow:0 14px 30px rgba(255,184,0,.22);
}
body.h5 .shop-header:after{
  content:"";
  position:absolute;
  right:18px;
  bottom:16px;
  width:68px;
  height:68px;
  border-radius:22px;
  background:rgba(255,255,255,.28);
  transform:rotate(12deg);
}
body.h5 .shop-header h1{
  position:relative;
  z-index:1;
  max-width:78%;
  font-size:25px;
  font-weight:900;
}
body.h5 .shop-header p,
body.h5 .shop-header a{
  position:relative;
  z-index:1;
}
body.h5 .shop-header a{
  display:inline-flex;
  margin-right:8px;
  margin-top:4px;
  background:rgba(255,255,255,.44);
  border-radius:999px;
  padding:7px 10px;
  text-decoration:none;
}
body.h5 .buyer{
  margin:-18px 0 12px;
  border-radius:18px;
}
body.h5 .service-search{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
body.h5 .toolbar{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
body.h5 .toolbar input,
body.h5 .toolbar select,
body.h5 .toolbar .btn,
body.h5 .toolbar button{
  max-width:none;
  width:100%;
  margin:0;
}
body.h5 .service-grid,
body.h5 .merchant-grid{
  margin:12px 0;
  grid-template-columns:1fr;
  gap:10px;
}
body.h5 .service-tile,
body.h5 .merchant-card{
  border:0;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(25,25,25,.07);
  padding:16px;
}
body.h5 .service-tile{
  position:relative;
  padding-right:44px;
}
body.h5 .service-tile:after,
body.h5 .merchant-card:after{
  content:"›";
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  color:#b6bbc4;
  font-size:26px;
}
body.h5 .merchant-card{position:relative;padding-right:44px}
body.h5 .merchant-card b{font-size:17px}
body.h5 .merchant-card span{margin:6px 0}
body.h5 .merchant-card em{font-size:13px}
body.h5 .order-layout{
  grid-template-columns:78px 1fr;
  gap:8px;
  padding:0;
}
body.h5 .category-tabs{
  top:8px;
  gap:7px;
}
body.h5 .category-tabs a{
  border:0;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 12px rgba(25,25,25,.05);
  padding:11px 6px;
  font-size:13px;
}
body.h5 .category-tabs a:hover,
body.h5 .category-tabs a:focus{
  background:var(--app-yellow);
  color:#201600;
}
body.h5 .goods-section{
  border:0;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(25,25,25,.07);
  padding:14px;
}
body.h5 .goods-section h2{
  background:transparent;
  padding:0;
  color:#181818;
  font-weight:900;
}
body.h5 .goods-item{
  grid-template-columns:82px 1fr;
  align-items:start;
  gap:10px;
  padding:14px 0;
}
body.h5 .goods-img{
  width:82px;
  height:82px;
  border-radius:16px;
}
body.h5 .goods-item h3 a{
  font-weight:900;
}
body.h5 .goods-item p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.h5 .goods-item b{
  font-size:19px;
}
body.h5 .goods-item .stepper{
  grid-column:2;
  justify-content:flex-end;
  margin-top:-38px;
}
body.h5 .stepper button{
  width:30px;
  height:30px;
  min-height:30px;
  border-radius:50%;
  font-weight:900;
}
body.h5 .stepper button[data-minus]{
  background:#fff;
}
body.h5 .cart-bar{
  max-width:520px;
  margin:0 auto;
  left:0;
  right:0;
  bottom:10px;
  width:calc(100% - 24px);
  border-radius:22px;
  padding:10px 12px;
  background:#17191c;
  box-shadow:0 14px 34px rgba(0,0,0,.26);
}
body.h5 .cart-bar button{
  min-width:108px;
}
body.h5 .grid{
  grid-template-columns:1fr 1fr;
  gap:10px;
}
body.h5 .product-card{
  border-radius:18px;
  padding:10px;
}
body.h5 .product-img{
  height:128px;
  border-radius:15px;
  margin-bottom:9px;
}
body.h5 .product-card h2{
  font-size:15px;
  line-height:1.32;
  margin-bottom:6px;
}
body.h5 .product-card p{
  font-size:12px;
  color:var(--app-sub);
}
body.h5 .product-card button{
  width:100%;
  min-height:36px;
  margin-top:4px;
}
body.h5 .detail-page{
  padding-left:0;
  padding-right:0;
}
body.h5 .detail-hero{
  height:310px;
  border-radius:0 0 28px 28px;
}
body.h5 .detail-card{
  margin:-26px 12px 18px;
  border-radius:22px;
}
body.h5 .detail-card .price{
  font-size:30px;
}
body.h5 .order-service-card{
  border:0;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(25,25,25,.07);
}
body.h5 .order-items{
  background:#f8f8f6;
  border-radius:14px;
}
body.h5 .member-hero{
  margin:0 -12px 12px;
  padding:22px 18px 36px;
  min-height:150px;
  border-radius:0 0 30px 30px;
  color:#2a1700;
  background:
    radial-gradient(circle at 82% 22%,rgba(255,255,255,.46),transparent 19%),
    linear-gradient(135deg,#ffe45b,#ffbd16 62%,#ff8a00);
  box-shadow:0 16px 32px rgba(255,138,0,.22);
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
body.h5 .member-hero p{margin:0 0 8px;color:#765100;font-weight:800}
body.h5 .member-hero h1{margin:0 0 8px;font-size:26px}
body.h5 .member-hero span{display:inline-flex;background:rgba(255,255,255,.44);border-radius:999px;padding:6px 10px;font-weight:800}
body.h5 .member-hero>b{
  min-width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.42);
  font-size:22px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32);
}
body.h5 .member-login-card{margin-top:-28px;position:relative}
body.h5 .member-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:12px 0;
}
body.h5 .member-stats div{
  background:#fff;
  border-radius:18px;
  padding:14px 8px;
  text-align:center;
  box-shadow:0 8px 24px rgba(25,25,25,.07);
}
body.h5 .member-stats b{display:block;color:#ff4d4f;font-size:17px;margin-bottom:4px}
body.h5 .member-stats span{color:var(--app-sub);font-size:12px;font-weight:800}
body.h5 .member-order-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #f0f1f3;
}
body.h5 .member-order-row:last-child{border-bottom:0}
body.h5 .member-order-row b{display:block;margin-bottom:4px}
body.h5 .member-order-row span{color:var(--app-sub);font-size:12px}
body.h5 .member-order-row strong{color:#ff4d4f;font-size:17px}
body.h5 .h5-tabbar{
  position:fixed;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(520px,calc(100% - 20px));
  height:64px;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom));
  border-radius:22px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  box-shadow:0 12px 34px rgba(20,20,20,.18);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  z-index:30;
}
body.h5 .h5-tabbar a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:#8a8f99;
  text-decoration:none;
  border-radius:16px;
  font-size:12px;
  font-weight:800;
}
body.h5 .h5-tabbar a span{
  width:21px;
  height:21px;
  border-radius:8px;
  background:#e7e9ee;
  display:block;
  position:relative;
}
body.h5 .h5-tabbar a:nth-child(1) span:before{content:"";position:absolute;left:5px;right:5px;bottom:4px;height:8px;background:#fff;border-radius:2px}
body.h5 .h5-tabbar a:nth-child(2) span:before{content:"";position:absolute;left:5px;top:4px;width:11px;height:13px;border:2px solid #fff;border-top:0;border-radius:0 0 6px 6px}
body.h5 .h5-tabbar a:nth-child(3) span:before{content:"";position:absolute;left:4px;right:4px;top:6px;height:9px;border:2px solid #fff;border-radius:3px}
body.h5 .h5-tabbar a:nth-child(4) span:before{content:"";position:absolute;left:6px;top:4px;width:9px;height:9px;background:#fff;border-radius:50%}
body.h5 .h5-tabbar a:nth-child(4) span:after{content:"";position:absolute;left:4px;right:4px;bottom:3px;height:6px;background:#fff;border-radius:7px 7px 3px 3px}
body.h5 .h5-tabbar a.active{
  color:#201600;
  background:#fff7cc;
}
body.h5 .h5-tabbar a.active span{
  background:linear-gradient(135deg,var(--app-yellow),var(--app-orange));
  box-shadow:0 6px 14px rgba(255,138,0,.24);
}
body.h5 .h5-tabbar a:active{
  transform:scale(.96);
}
body.h5 .detail-page{
  padding-bottom:100px;
}

@media(min-width:721px){
  body.h5 .service-grid,
  body.h5 .merchant-grid{grid-template-columns:1fr 1fr}
  body.h5 .grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:380px){
  body.h5 .order-layout{grid-template-columns:70px 1fr}
  body.h5 .goods-item{grid-template-columns:74px 1fr}
  body.h5 .goods-img{width:74px;height:74px}
  body.h5 .category-tabs a{font-size:12px}
  body.h5 .h5-tabbar{height:60px}
  body.h5 .h5-tabbar a{font-size:11px}
}

/* APP H5 polish layer */
body.h5{
  overscroll-behavior-y:contain;
}
body.h5:before{
  content:"";
  position:fixed;
  left:50%;
  top:0;
  transform:translateX(-50%);
  width:min(520px,100%);
  height:18px;
  background:linear-gradient(180deg,rgba(255,248,213,.96),rgba(255,248,213,0));
  pointer-events:none;
  z-index:40;
}
body.h5 .shop-header,
body.h5 .member-hero{
  padding-top:calc(20px + env(safe-area-inset-top));
}
body.h5 .shop-header p{
  max-width:86%;
  line-height:1.45;
}
body.h5 .shop-header p:first-of-type:before{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:6px;
  border-radius:50%;
  background:#00b578;
  box-shadow:0 0 0 3px rgba(0,181,120,.16);
  vertical-align:middle;
}
body.h5 .shop-header h1,
body.h5 .member-hero h1{
  letter-spacing:.2px;
}
body.h5 .card h2,
body.h5 .goods-section h2{
  display:flex;
  align-items:center;
  gap:8px;
}
body.h5 .card h2:before,
body.h5 .goods-section h2:before{
  content:"";
  width:5px;
  height:18px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--app-yellow),var(--app-orange));
}
body.h5 .service-search label{
  font-weight:800;
  color:#343434;
}
body.h5 .service-search input,
body.h5 .service-search select,
body.h5 .toolbar input,
body.h5 .toolbar select{
  box-shadow:inset 0 0 0 1px rgba(20,20,20,.03);
}
body.h5 .service-search button,
body.h5 .toolbar button{
  width:100%;
}
body.h5 .merchant-card,
body.h5 .service-tile,
body.h5 .order-service-card,
body.h5 .product-card{
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
body.h5 .merchant-card:hover,
body.h5 .service-tile:hover,
body.h5 .product-card:hover{
  box-shadow:0 12px 28px rgba(25,25,25,.1);
}
body.h5 .merchant-card b:before{
  content:"";
  display:inline-block;
  width:28px;
  height:28px;
  margin-right:8px;
  border-radius:10px;
  background:linear-gradient(135deg,#ffd21e,#ff9f1a);
  vertical-align:middle;
  box-shadow:0 6px 12px rgba(255,159,26,.22);
}
body.h5 .merchant-card span{
  padding-left:36px;
}
body.h5 .merchant-card em{
  padding-left:36px;
  color:#00a06a;
}
body.h5 .service-tile b:before{
  content:"";
  display:inline-block;
  width:22px;
  height:22px;
  margin-right:8px;
  border-radius:8px;
  background:#fff1a8;
  vertical-align:-5px;
}
body.h5 .service-tile:nth-child(2n) b:before{background:#dffaf0}
body.h5 .service-tile:nth-child(3n) b:before{background:#ffe5df}
body.h5 .service-tile:nth-child(4n) b:before{background:#e9edff}
body.h5 .goods-section{
  scroll-margin-top:12px;
}
body.h5 .goods-item{
  min-height:112px;
}
body.h5 .goods-img,
body.h5 .product-img,
body.h5 .detail-hero{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
}
body.h5 .goods-item .badge,
body.h5 .product-card .badge,
body.h5 .detail-card .badge{
  transform:scale(.92);
  transform-origin:left center;
}
body.h5 .stepper span{
  min-width:24px;
  height:24px;
  display:grid;
  place-items:center;
  background:#fff7cc;
  border-radius:999px;
}
body.h5 .cart-bar{
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
body.h5 .cart-bar div b{
  font-size:12px;
  color:#cfd3da;
}
body.h5 .cart-bar button{
  border-radius:18px;
  font-size:16px;
}
body.h5 .product-card{
  overflow:hidden;
}
body.h5 .product-card .price{
  font-size:18px;
  margin:7px 0;
}
body.h5 .product-card p{
  min-height:34px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.h5 .detail-card{
  box-shadow:0 16px 36px rgba(25,25,25,.12);
}
body.h5 .detail-card p{
  line-height:1.75;
}
body.h5 .member-stats div{
  position:relative;
  overflow:hidden;
}
body.h5 .member-stats div:after{
  content:"";
  position:absolute;
  right:-12px;
  top:-12px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,210,30,.18);
}
body.h5 .order-service-card .order-head{
  align-items:flex-start;
}
body.h5 .order-service-card p{
  line-height:1.55;
}
body.h5 .actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
body.h5 .actions .btn,
body.h5 .actions button{
  width:100%;
  margin:0;
}
body.h5 .h5-tabbar{
  border:1px solid rgba(255,255,255,.72);
}

@media(max-width:520px){
  body.h5 .shop-header,
  body.h5 .member-hero{
    margin-left:-12px;
    margin-right:-12px;
  }
}

/* 后台右上角：当前登录人 + 退出 */
.menu-spacer{flex:1 1 auto;min-width:12px}
.menu-user{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:14px}
.menu-user strong{color:var(--ink)}
.menu-user em{font-style:normal;background:#eef8f3;color:#087a52;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:700}
.menu a.menu-logout{background:var(--mt-red);border-color:var(--mt-red);color:#fff;font-weight:800}
.menu a.menu-logout:hover{background:#d9363e;border-color:#d9363e}

/* H5 右上角：当前登录人 + 退出 */
body.h5 .h5-userbar{
  position:fixed;
  top:calc(10px + env(safe-area-inset-top));
  right:14px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 28px);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 6px 5px 12px;
  box-shadow:0 6px 18px rgba(20,20,20,.12);
  font-size:12px;
  font-weight:800;
  color:var(--ink);
}
body.h5 .h5-userbar .h5-user-label{color:var(--sub);white-space:nowrap}
body.h5 .h5-userbar .h5-user-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.h5 .h5-userbar .h5-user-action{
  background:linear-gradient(135deg,var(--mt-yellow),var(--mt-yellow-deep));
  color:#2b2100;
  border-radius:999px;
  padding:6px 12px;
  text-decoration:none;
  font-weight:800;
  white-space:nowrap;
}
body.h5 .h5-userbar .h5-user-action:hover{filter:brightness(.97)}
