/* ============================================================
   没团外卖 · app.css
   移动优先，桌面端居中显示手机宽度容器
   ============================================================ */
:root {
  --yellow: #FFD100;
  --yellow-deep: #FFC300;
  --yellow-soft: #FFF6CC;
  --black: #222226;
  --red: #FB4E44;
  --red-deep: #FF192D;
  --orange: #FF6000;
  --green: #00B377;
  --blue: #4A90D9;
  --text: #222226;
  --text-2: #666666;
  --text-3: #999999;
  --line: #EEEEEE;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --radius: 12px;
  --tabbar-h: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { 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", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #2E2A20;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; }
ul { list-style: none; }
img { display: block; }

/* ---------- 桌面端手机壳 ---------- */
.phone-hint { display: none; }
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
@media (min-width: 600px) {
  body {
    background: radial-gradient(1200px 700px at 20% -10%, #574d2a 0%, #2E2A20 55%, #191712 100%);
  }
  .phone-hint {
    display: block; position: fixed; top: 18px; left: 0; right: 0;
    text-align: center; color: #C9B96B; font-size: 13px; letter-spacing: 2px; z-index: 0;
  }
  .app {
    max-width: 430px;
    min-height: calc(100dvh - 72px);
    margin: 56px auto 16px;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 10px #17150f, 0 0 0 12px #3a3627;
    overflow: hidden;
  }
}

/* ---------- 通用 ---------- */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.scroll-y { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.card { background: var(--card); border-radius: var(--radius); }
.flex { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

.price { color: var(--red); font-weight: 700; font-family: "DIN Alternate", "Bahnschrift", Arial, sans-serif; }
.price .rmb { font-size: .72em; font-weight: 600; }
.price-orig { color: var(--text-3); text-decoration: line-through; font-weight: 400; font-size: 11px; margin-left: 4px; }

.tag-red {
  display: inline-block; color: var(--red); border: .5px solid rgba(251,78,68,.55);
  border-radius: 4px; font-size: 10px; line-height: 14px; padding: 0 3px; margin-right: 4px;
  background: rgba(251,78,68,.04); white-space: nowrap;
}
.tag-fill { background: linear-gradient(90deg,#FF6A3C,#FB4E44); color:#fff; border: none; }
.tag-gold {
  display:inline-block; font-size:10px; line-height:15px; padding:0 4px; border-radius:4px;
  background: linear-gradient(90deg,#42403B,#1B1A17);
  color: #F5D588; margin-right:4px; white-space:nowrap;
}

.rate-num { color: var(--orange); font-weight: 700; }
.stars { color: var(--orange); font-size: 11px; letter-spacing: 1px; }
.stars .off { color: #DDD; }

.btn-yellow {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: var(--black); font-weight: 700; border-radius: 999px;
  padding: 10px 0; width: 100%; font-size: 16px;
  transition: transform .08s;
}
.btn-yellow:active { transform: scale(.97); }
.btn-yellow[disabled] { background: #E3E4E5; color: #A5A7AA; }

/* ---------- 顶部导航（子页面） ---------- */
.navbar {
  height: 48px; display: flex; align-items: center; padding: 0 12px;
  position: sticky; top: 0; z-index: 30; background: var(--card);
  flex: none;
}
.navbar.on-yellow { background: transparent; position: absolute; left: 0; right: 0; }
.navbar .nav-back {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.navbar .nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 32px; }

/* ============================================================
   首页
   ============================================================ */
.home-top {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 62%, var(--bg) 100%);
  padding: 10px 12px 0;
}
.home-loc { display: flex; align-items: center; gap: 4px; padding: 4px 0 10px; }
.home-loc .loc-name { font-size: 16px; font-weight: 700; max-width: 60%; }
.home-loc .loc-arrow { font-size: 10px; }
.home-loc .loc-weather { margin-left: auto; font-size: 11px; color: rgba(34,34,38,.75); text-align: right; line-height: 1.3; }

.home-search {
  display: flex; align-items: center; background: #fff; border-radius: 999px;
  height: 38px; padding: 0 4px 0 12px; box-shadow: 0 2px 8px rgba(160,120,0,.10);
}
.home-search .s-icon { font-size: 15px; margin-right: 6px; }
.home-search .s-hint { flex: 1; color: var(--text-3); font-size: 13px; }
.home-search .s-btn {
  background: var(--black); color: var(--yellow); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 6px 16px;
}

.cate-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 0;
  background: #fff; border-radius: var(--radius); padding: 14px 4px 12px; margin-top: 12px;
  box-shadow: 0 2px 10px rgba(160,120,0,.06);
}
.cate-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cate-item .c-emoji {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--c-bg, #FFF4D6);
}
.cate-item .c-name { font-size: 11.5px; color: var(--text); }

.banner-wrap { margin: 10px 12px 0; position: relative; }
.banner-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius);
  scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }
.banner {
  flex: none; width: 100%; scroll-snap-align: start; height: 92px; border-radius: var(--radius);
  display: flex; align-items: center; padding: 0 18px; gap: 12px; color: #fff; position: relative; overflow: hidden;
}
.banner .b-emoji { font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.banner .b-title { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.banner .b-sub { font-size: 11.5px; opacity: .92; margin-top: 3px; }
.banner .b-badge {
  position: absolute; right: 14px; top: 12px; background: rgba(255,255,255,.22);
  border-radius: 999px; font-size: 10px; padding: 2px 8px;
}
.banner-dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.banner-dots i { width: 5px; height: 5px; border-radius: 50%; background: #D8D2BC; transition: all .25s; }
.banner-dots i.on { width: 14px; border-radius: 3px; background: var(--yellow-deep); }

/* 秒杀 */
.seckill { margin: 10px 12px 0; padding: 10px 12px 12px; }
.seckill-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.seckill-head .sk-title { font-size: 16px; font-weight: 800; font-style: italic; color: var(--red); }
.seckill-head .sk-timer { font-size: 10.5px; color: #fff; background: var(--black); border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.seckill-head .sk-more { margin-left: auto; font-size: 11px; color: var(--text-3); }
.seckill-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.seckill-list::-webkit-scrollbar { display: none; }
.sk-item { flex: none; width: 84px; text-align: center; }
.sk-item .sk-img { width: 84px; height: 66px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--sk-bg, #FFF2E5); }
.sk-item .sk-name { font-size: 11px; margin-top: 4px; }
.sk-item .sk-bar { height: 4px; border-radius: 2px; background: #FFE3DF; margin: 4px 8px 2px; overflow: hidden; }
.sk-item .sk-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg,#FF9A44,var(--red)); }
.sk-item .sk-sold { font-size: 9px; color: var(--red); }

/* 信息流 */
.feed-tabs {
  display: flex; align-items: center; gap: 18px; padding: 12px 14px 8px;
  position: sticky; top: 0; z-index: 20; background: var(--bg);
}
.feed-tabs .ft { font-size: 14px; color: var(--text-2); position: relative; }
.feed-tabs .ft.on { font-size: 16px; font-weight: 800; color: var(--text); }
.feed-tabs .ft.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px;
  width: 18px; height: 3px; border-radius: 2px; background: var(--yellow-deep);
}
.feed { padding: 0 10px calc(var(--tabbar-h) + var(--safe-b) + 16px); }

.shop-card {
  display: flex; gap: 10px; padding: 12px 10px; background: #fff; border-radius: var(--radius);
  margin-bottom: 8px; position: relative;
}
.shop-card .sc-logo {
  width: 74px; height: 74px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: var(--logo-bg, #FFF4D6); position: relative;
}
.shop-card .sc-rank {
  display: inline-block; background: linear-gradient(135deg,#FFF3D0,#FFDF96);
  color: #8A5A00; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px;
  white-space: nowrap;
}
.shop-card .sc-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.shop-card .sc-name .ad { font-size: 9px; color: var(--text-3); border: .5px solid #ddd; border-radius: 3px; padding: 0 2px; font-weight: 400; }
.shop-card .sc-line { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); margin-top: 4px; flex-wrap: wrap; }
.shop-card .sc-line .dot { color: #ddd; }
.shop-card .sc-promos { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 3px 0; }
.shop-card .sc-dishes { display: flex; gap: 6px; margin-top: 7px; }
.shop-card .sc-dish {
  flex: 1; background: #FAFAFA; border-radius: 8px; padding: 6px 4px; text-align: center; min-width: 0;
}
.shop-card .sc-dish .d-emoji {
  font-size: 24px; height: 54px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.shop-card .sc-dish .d-name { font-size: 10px; color: var(--text-2); margin-top: 2px; }
.shop-card .sc-dish .d-price { font-size: 11px; margin-top: 1px; }
.feed-end { text-align: center; color: var(--text-3); font-size: 11.5px; padding: 18px 0 6px; }

/* ---------- 底部 TabBar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: .5px solid var(--line);
  display: flex; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
}
@media (min-width: 600px) { .tabbar { max-width: 430px; border-radius: 0 0 36px 36px; } }
.tabbar .tb {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--text-3); position: relative;
}
.tabbar .tb .tb-icon { font-size: 21px; line-height: 1; filter: grayscale(1) opacity(.6); transition: all .2s; }
.tabbar .tb.on { color: var(--text); font-weight: 700; }
.tabbar .tb.on .tb-icon { filter: none; transform: scale(1.12); }
.tabbar .tb .tb-badge {
  position: absolute; top: 4px; left: calc(50% + 6px); background: var(--red-deep); color: #fff;
  font-size: 9px; line-height: 14px; min-width: 14px; text-align: center; border-radius: 999px; padding: 0 3px;
}

/* ============================================================
   店铺页
   ============================================================ */
.shop-hero { background: linear-gradient(180deg, var(--yellow) 0, var(--yellow) 86px, var(--bg) 200px); padding-bottom: 8px; flex: none; }
.shop-hero .navbar { background: transparent; position: relative; }
.shop-head { margin: 2px 12px 0; padding: 14px 12px 12px; position: relative; box-shadow: 0 4px 14px rgba(120,90,0,.08); }
.shop-head .sh-row { display: flex; gap: 10px; }
.shop-head .sh-logo {
  width: 56px; height: 56px; border-radius: 12px; flex: none; margin-top: -26px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: var(--logo-bg, #FFF4D6); box-shadow: 0 4px 10px rgba(0,0,0,.12); border: 2px solid #fff;
}
.shop-head .sh-name { font-size: 18px; font-weight: 800; }
.shop-head .sh-meta { font-size: 11px; color: var(--text-2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.shop-head .sh-notice { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.shop-head .sh-promo-row { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.shop-head .sh-coupon {
  background: linear-gradient(90deg,#FFF1EF,#FFE7E4); color: var(--red); border-radius: 6px;
  font-size: 10.5px; padding: 3px 7px; font-weight: 600;
}

.shop-tabs { display: flex; background: #fff; border-bottom: .5px solid var(--line); flex: none; }
.shop-tabs .st { flex: 1; text-align: center; padding: 10px 0 9px; font-size: 14px; color: var(--text-2); position: relative; }
.shop-tabs .st.on { color: var(--text); font-weight: 800; font-size: 15px; }
.shop-tabs .st.on::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 2px; background: var(--yellow-deep);
}
.shop-tabs .st .st-n { font-size: 10px; color: var(--text-3); font-weight: 400; margin-left: 2px; }

.menu-wrap { flex: 1; display: flex; min-height: 0; background: #fff; }
.menu-cats { width: 88px; flex: none; background: #F7F7F7; overflow-y: auto; padding-bottom: 120px; scrollbar-width: none; }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats .mc {
  padding: 14px 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.3; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.menu-cats .mc .mc-badge {
  position: absolute; top: 6px; right: 6px; background: var(--red-deep); color: #fff; font-size: 9px;
  min-width: 14px; line-height: 14px; text-align: center; border-radius: 999px; padding: 0 3px;
}
.menu-cats .mc.on { background: #fff; color: var(--text); font-weight: 700; }
.menu-cats .mc.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--yellow-deep);
}
.menu-dishes { flex: 1; overflow-y: auto; padding: 0 12px 140px; scrollbar-width: none; }
.menu-dishes::-webkit-scrollbar { display: none; }
.menu-sec-title { font-size: 12px; color: var(--text-3); padding: 12px 0 2px; position: sticky; top: 0; background: #fff; z-index: 2; }

.dish { display: flex; gap: 9px; padding: 10px 0; position: relative; }
.dish .d-img {
  width: 86px; height: 86px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: var(--d-bg, #FFF6E0);
}
.dish .d-name { font-size: 15px; font-weight: 700; }
.dish .d-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dish .d-sale { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.dish .d-kcal { font-size: 10px; color: var(--green); background: rgba(0,179,119,.08); border-radius: 3px; padding: 0 3px; margin-left: 4px; }
.dish .d-bottom { display: flex; align-items: flex-end; margin-top: 5px; }
.dish .d-price { font-size: 16px; }
.dish .d-tag-line { margin-top: 4px; }

.stepper { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.stepper .st-minus, .stepper .st-plus {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; transition: transform .1s;
}
.stepper .st-plus { background: var(--yellow); color: var(--black); box-shadow: 0 2px 5px rgba(200,150,0,.35); }
.stepper .st-minus { background: #fff; color: var(--text-2); border: 1px solid #D9D9D9; }
.stepper .st-plus:active, .stepper .st-minus:active { transform: scale(.85); }
.stepper .st-num { min-width: 14px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 底部购物车栏 */
.cartbar-wrap { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 45; padding: 0 10px calc(10px + var(--safe-b)); pointer-events: none; }
@media (min-width: 600px) { .cartbar-wrap { max-width: 430px; } }
.cartbar-tip {
  pointer-events: auto; margin: 0 22px 6px; background: #FFF8DC; border: .5px solid #F2DE9C; color: #8A6D1F;
  font-size: 11px; border-radius: 999px; padding: 4px 12px; text-align: center;
}
.cartbar {
  pointer-events: auto; height: 50px; background: #26262B; border-radius: 999px;
  display: flex; align-items: center; padding: 0 5px 0 0; box-shadow: 0 6px 20px rgba(0,0,0,.28); position: relative;
}
.cartbar .cb-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: -14px 8px 0 6px; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFE566, var(--yellow-deep));
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  box-shadow: 0 4px 12px rgba(255,195,0,.45); position: relative;
  transition: transform .15s;
}
.cartbar .cb-icon.empty { background: #3A3A40; filter: grayscale(.3); box-shadow: none; }
.cartbar .cb-icon.bump { animation: cbBump .3s; }
@keyframes cbBump { 40% { transform: scale(1.16) rotate(-6deg); } }
.cartbar .cb-badge {
  position: absolute; top: -2px; right: -4px; background: var(--red-deep); color: #fff;
  font-size: 10px; line-height: 16px; min-width: 16px; border-radius: 999px; text-align: center; padding: 0 4px;
  border: 1.5px solid #26262B;
}
.cartbar .cb-price { color: #fff; font-size: 18px; font-weight: 800; }
.cartbar .cb-sub { color: #9B9BA3; font-size: 9.5px; margin-top: 1px; }
.cartbar .cb-btn {
  height: 40px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: linear-gradient(180deg,var(--yellow),var(--yellow-deep)); color: var(--black);
}
.cartbar .cb-btn.dim { background: #45454B; color: #8E8E96; font-size: 12px; padding: 0 16px; }

/* 购物车明细面板 */
.cart-panel-list { max-height: 45dvh; overflow-y: auto; padding: 0 14px; }
.cart-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: .5px solid var(--line); }
.cart-row .cr-emoji { font-size: 24px; }
.cart-row .cr-name { font-size: 13.5px; font-weight: 600; }
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.cart-panel-head .cp-title { font-size: 14px; font-weight: 700; }
.cart-panel-head .cp-clear { font-size: 11.5px; color: var(--text-3); }

/* ============================================================
   评价 / 商家 tab
   ============================================================ */
.rev-wrap { flex: 1; overflow-y: auto; background: #fff; padding: 12px 14px 40px; }
.rev-summary { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: .5px solid var(--line); }
.rev-summary .rs-big { font-size: 34px; font-weight: 800; color: var(--orange); }
.rev-summary .rs-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rev-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.rev-tags .rt { background: #FFF6E0; color: #A0761C; font-size: 11.5px; border-radius: 999px; padding: 4px 10px; }
.rev-tags .rt.neg { background: #F3F4F5; color: var(--text-3); }
.review { padding: 13px 0; border-bottom: .5px solid var(--line); }
.review .rv-head { display: flex; align-items: center; gap: 8px; }
.review .rv-avatar { width: 32px; height: 32px; border-radius: 50%; background: #FFF2C8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.review .rv-name { font-size: 12.5px; font-weight: 600; }
.review .rv-time { margin-left: auto; font-size: 10.5px; color: var(--text-3); }
.review .rv-content { font-size: 13px; margin-top: 7px; color: #333; }
.review .rv-imgs { display: flex; gap: 6px; margin-top: 8px; }
.review .rv-img { width: 72px; height: 72px; border-radius: 8px; background: #FFF6E0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.review .rv-dishes { font-size: 10.5px; color: var(--text-3); margin-top: 7px; }
.review .rv-reply { background: #F7F7F8; border-radius: 8px; font-size: 11.5px; color: var(--text-2); padding: 7px 9px; margin-top: 8px; }
.review .rv-reply b { color: var(--text); }

.info-list { flex: 1; overflow-y: auto; background: #fff; padding: 4px 14px 40px; }
.info-row { display: flex; gap: 10px; padding: 13px 0; border-bottom: .5px solid var(--line); font-size: 13px; }
.info-row .ir-icon { font-size: 16px; }
.info-row .ir-label { color: var(--text-3); flex: none; width: 64px; }
.info-row .ir-val { flex: 1; }
.info-row .ir-action { color: var(--blue); flex: none; }

/* ============================================================
   结算页
   ============================================================ */
.co-body { flex: 1; overflow-y: auto; padding: 10px 10px 120px; }
.co-addr { padding: 14px 14px 12px; position: relative; overflow: hidden; }
.co-addr::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(105deg, #F66 0 24px, #FFF 24px 32px, #6AA0E8 32px 56px, #FFF 56px 64px);
}
.co-addr .ca-text { font-size: 16.5px; font-weight: 800; line-height: 1.35; }
.co-addr .ca-sub { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.co-addr .ca-arrow { color: var(--text-3); }
.co-time { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; border-top: .5px solid var(--line); }
.co-time .ct-val { color: var(--green); font-weight: 700; }

.co-card { margin-top: 10px; padding: 2px 14px; }
.co-shopname { font-size: 14px; font-weight: 700; padding: 12px 0 4px; display: flex; align-items: center; gap: 6px; }
.co-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.co-item .ci-emoji { width: 42px; height: 42px; border-radius: 8px; background: var(--d-bg, #FFF6E0); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.co-item .ci-name { font-size: 13.5px; font-weight: 600; }
.co-item .ci-qty { font-size: 12px; color: var(--text-3); }
.co-fee-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--text-2); }
.co-fee-row .cf-val { color: var(--text); }
.co-fee-row.hl .cf-val { color: var(--red); font-weight: 700; }
.co-fee-row .cf-badge { font-size: 10px; color: var(--red); border: .5px solid rgba(251,78,68,.5); border-radius: 3px; padding: 0 3px; margin-right: 5px; }
.co-total-row { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; padding: 11px 0; border-top: .5px solid var(--line); font-size: 12px; }
.co-total-row .saved { color: var(--red); }
.co-misc .co-fee-row { border-bottom: .5px solid var(--line); padding: 12px 0; }
.co-misc .co-fee-row:last-child { border-bottom: none; }

.co-submitbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 45;
  background: #fff; padding: 10px 12px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
@media (min-width: 600px) { .co-submitbar { max-width: 430px; } }
.co-submitbar .cs-total { font-size: 20px; font-weight: 800; }
.co-submitbar .cs-saved { font-size: 10.5px; color: var(--red); }
.co-submitbar .cs-btn {
  margin-left: auto; background: linear-gradient(180deg,var(--yellow),var(--yellow-deep));
  border-radius: 999px; font-size: 15px; font-weight: 800; padding: 12px 30px;
}
.co-submitbar .cs-btn:active { transform: scale(.97); }

/* ============================================================
   支付弹层
   ============================================================ */
.pay-sheet { text-align: center; padding: 20px 20px calc(24px + var(--safe-b)); }
.pay-sheet .ps-amount { font-size: 38px; font-weight: 800; font-family: "DIN Alternate","Bahnschrift",Arial; margin: 8px 0 2px; }
.pay-sheet .ps-amount .rmb { font-size: 20px; }
.pay-sheet .ps-shop { color: var(--text-3); font-size: 12px; }
.pay-method { display: flex; align-items: center; gap: 10px; background: #F8F8F9; border-radius: 10px; padding: 12px; margin: 18px 0; text-align: left; }
.pay-method .pm-icon { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,#FFE566,#FFB800); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.pay-method .pm-name { font-size: 14px; font-weight: 700; }
.pay-method .pm-sub { font-size: 11px; color: var(--green); }
.pay-dots { display: flex; justify-content: center; gap: 12px; margin: 20px 0 8px; }
.pay-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #C9C9CF; }
.pay-dots i.fill { background: var(--black); border-color: var(--black); animation: dotPop .18s; }
@keyframes dotPop { from { transform: scale(.3); } }
.pay-ok { font-size: 54px; animation: payOk .5s cubic-bezier(.2,1.6,.5,1); }
@keyframes payOk { from { transform: scale(.2); opacity: 0; } }

/* ============================================================
   订单追踪页
   ============================================================ */
.track-page { background: #E9EDF0; }
.track-map-wrap { position: relative; height: 46dvh; min-height: 300px; flex: none; overflow: hidden; }
.track-map { width: 100%; height: 100%; display: block; }
.track-nav {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.track-eta-chip {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(38,38,43,.88); color: #fff; backdrop-filter: blur(6px);
  border-radius: 999px; font-size: 11.5px; padding: 5px 13px; white-space: nowrap;
}
.track-eta-chip b { color: var(--yellow); }

.track-body { flex: 1; margin-top: -22px; position: relative; z-index: 6; padding: 0 10px 30px; }
.track-status { padding: 16px 14px 14px; box-shadow: 0 4px 20px rgba(30,60,90,.08); }
.track-status .ts-title { font-size: 19px; font-weight: 800; }
.track-status .ts-title .ts-eta { color: var(--green); }
.track-status .ts-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.track-steps { display: flex; align-items: center; margin-top: 14px; }
.track-steps .tk { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--text-3); flex: none; }
.track-steps .tk .tk-dot { width: 9px; height: 9px; border-radius: 50%; background: #DDD; }
.track-steps .tk.done { color: var(--text); }
.track-steps .tk.done .tk-dot { background: var(--yellow-deep); }
.track-steps .tk.now .tk-dot { box-shadow: 0 0 0 4px rgba(255,195,0,.25); animation: pulse 1.2s infinite; }
.track-steps .tk-line { flex: 1; height: 2px; background: #E5E5E5; margin: 0 4px 14px; }
.track-steps .tk-line.done { background: var(--yellow-deep); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,195,0,.12); } }

.rider-card { margin-top: 10px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; }
.rider-card .rc-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#FFF3C4,#FFD84D);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none;
}
.rider-card .rc-name { font-size: 15px; font-weight: 700; }
.rider-card .rc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rider-card .rc-btns { margin-left: auto; display: flex; gap: 10px; }
.rider-card .rc-btn {
  width: 36px; height: 36px; border-radius: 50%; border: .5px solid #E2E2E6;
  display: flex; align-items: center; justify-content: center; font-size: 17px; background: #fff;
}
.urge-btn {
  margin-top: 10px; width: 100%; background: #fff; border-radius: var(--radius);
  padding: 12px; font-size: 14px; font-weight: 700; color: var(--orange);
}
.urge-btn:active { background: #FFF8EC; }

.track-detail { margin-top: 10px; padding: 4px 14px; }
.track-detail .td-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: .5px solid var(--line); font-size: 12.5px; }
.track-detail .td-row:last-child { border-bottom: none; }
.track-detail .td-label { color: var(--text-3); width: 62px; flex: none; }
.track-detail .td-val { flex: 1; word-break: break-all; }
.track-detail .td-copy { color: var(--blue); flex: none; font-size: 12px; }

/* 地图元素 */
.map-rider { transition: none; }
.map-pin-label {
  font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px;
}
@keyframes riderBob { 50% { transform: translateY(-2.5px); } }

/* ============================================================
   订单列表
   ============================================================ */
.order-card { margin-bottom: 10px; padding: 13px 14px; }
.order-card .oc-head { display: flex; align-items: center; gap: 7px; }
.order-card .oc-shop { font-size: 14.5px; font-weight: 700; }
.order-card .oc-status { margin-left: auto; font-size: 12px; color: var(--text-3); }
.order-card .oc-status.doing { color: var(--green); font-weight: 700; }
.order-card .oc-items { display: flex; gap: 8px; margin: 10px 0 4px; align-items: center; }
.order-card .oc-emoji { width: 44px; height: 44px; border-radius: 8px; background: #FFF6E0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.order-card .oc-total { margin-left: auto; text-align: right; font-size: 11px; color: var(--text-3); }
.order-card .oc-total b { font-size: 14px; color: var(--text); display: block; }
.order-card .oc-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.order-card .oc-btn { border: .5px solid #D9D9DE; border-radius: 999px; font-size: 12.5px; padding: 6px 14px; }
.order-card .oc-btn.hl { border-color: var(--yellow-deep); background: var(--yellow); font-weight: 700; }
.empty-state { text-align: center; padding: 70px 30px; color: var(--text-3); }
.empty-state .es-emoji { font-size: 60px; margin-bottom: 12px; }
.empty-state .es-title { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }

/* ============================================================
   我的
   ============================================================ */
.me-top { background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 70%, var(--bg) 100%); padding: 22px 14px 4px; }
.me-user { display: flex; align-items: center; gap: 12px; }
.me-avatar { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 3px 10px rgba(140,100,0,.2); }
.me-name { font-size: 19px; font-weight: 800; }
.me-tag { font-size: 10.5px; background: rgba(34,34,38,.85); color: var(--yellow); border-radius: 999px; padding: 2px 8px; display: inline-block; margin-top: 4px; }
.me-stats { display: flex; margin-top: 16px; padding: 14px 0; text-align: center; }
.me-stats .ms { flex: 1; }
.me-stats .ms + .ms { border-left: .5px solid var(--line); }
.me-stats .ms-num { font-size: 19px; font-weight: 800; font-family: "DIN Alternate","Bahnschrift",Arial; }
.me-stats .ms-label { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.me-card-vip {
  margin: 10px 14px 0; border-radius: var(--radius); padding: 13px 14px;
  background: linear-gradient(100deg, #33302B, #17161A); color: #F0D48A;
  display: flex; align-items: center; gap: 8px;
}
.me-card-vip .mv-title { font-size: 14px; font-weight: 700; }
.me-card-vip .mv-sub { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.me-card-vip .mv-btn { margin-left: auto; background: linear-gradient(135deg,#F7DE9A,#E8B95C); color: #4A3512; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 6px 13px; flex: none; }
.me-rows { margin: 10px 14px; padding: 2px 14px; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: .5px solid var(--line); font-size: 14px; }
.me-row:last-child { border-bottom: none; }
.me-row .mr-icon { font-size: 18px; }
.me-row .mr-arrow { margin-left: auto; color: #C5C5CC; }
.me-row .mr-note { margin-left: auto; font-size: 11px; color: var(--text-3); }
.me-row .mr-note + .mr-arrow { margin-left: 6px; }
.me-foot { text-align: center; font-size: 10px; color: #B9B9C0; padding: 14px 24px 24px; line-height: 1.7; }

/* ============================================================
   搜索页
   ============================================================ */
.search-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; position: sticky; top: 0; z-index: 20; }
.search-bar .sb-input { flex: 1; background: #F3F4F5; border-radius: 999px; height: 36px; display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.search-bar .sb-input input { flex: 1; font-size: 13.5px; }
.search-bar .sb-cancel { font-size: 14px; color: var(--text-2); flex: none; }
.search-sec { padding: 14px 14px 4px; }
.search-sec .ss-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; display: flex; }
.search-sec .ss-clear { margin-left: auto; font-weight: 400; color: var(--text-3); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { background: #fff; border-radius: 999px; font-size: 12.5px; padding: 6px 13px; color: var(--text); }
.chips .chip.hot { color: var(--red); }
.search-results { padding: 6px 10px 30px; }
.sr-group-title { font-size: 12px; color: var(--text-3); padding: 10px 4px 6px; }
.sr-dish { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; }
.sr-dish .srd-emoji { font-size: 26px; }
.sr-dish .srd-name { font-size: 13.5px; font-weight: 600; }
.sr-dish .srd-shop { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.sr-dish .srd-price { margin-left: auto; }

/* ============================================================
   弹层组件：toast / modal / sheet
   ============================================================ */
#overlay-root { position: relative; z-index: 100; }
.toast {
  position: fixed; left: 50%; top: 45%; transform: translateX(-50%); z-index: 300;
  background: rgba(30,30,34,.9); color: #fff; font-size: 13px; border-radius: 10px;
  padding: 10px 18px; max-width: 78vw; text-align: center; line-height: 1.5;
  animation: toastIn .22s cubic-bezier(.2,1.4,.5,1); pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) scale(.8); } }
.toast.out { opacity: 0; transition: opacity .25s; }

.mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } }
.mask.out { opacity: 0; transition: opacity .2s; }
.mask.bottom { align-items: flex-end; }

.modal {
  width: min(320px, 84vw); background: #fff; border-radius: 18px; overflow: hidden;
  animation: modalIn .28s cubic-bezier(.2,1.4,.5,1); text-align: center;
}
@keyframes modalIn { from { transform: scale(.7); opacity: 0; } }
.modal .m-body { padding: 26px 20px 18px; }
.modal .m-emoji { font-size: 52px; }
.modal .m-title { font-size: 17px; font-weight: 800; margin-top: 10px; }
.modal .m-text { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.modal .m-btns { display: flex; border-top: .5px solid var(--line); }
.modal .m-btn { flex: 1; padding: 13px 0; font-size: 15px; color: var(--text-2); }
.modal .m-btn + .m-btn { border-left: .5px solid var(--line); }
.modal .m-btn.hl { color: #B07800; font-weight: 800; }

.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 18px 18px 0 0;
  animation: sheetIn .28s cubic-bezier(.25,1.2,.4,1); max-height: 82dvh; display: flex; flex-direction: column;
}
@media (min-width: 600px) { .sheet { max-width: 430px; } }
@keyframes sheetIn { from { transform: translateY(60%); } }
.mask.out .sheet { transform: translateY(100%); transition: transform .22s; }
.sheet .sh-head { padding: 15px 16px 10px; display: flex; align-items: center; flex: none; }
.sheet .sh-title { font-size: 16px; font-weight: 800; flex: 1; }
.sheet .sh-close { font-size: 17px; color: var(--text-3); width: 28px; height: 28px; border-radius: 50%; background: #F3F4F5; display: flex; align-items: center; justify-content: center; }
.sheet .sh-body { overflow-y: auto; flex: 1; }

/* 地址sheet */
.addr-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: .5px solid var(--line); }
.addr-item .ai-emoji { font-size: 20px; }
.addr-item .ai-text { font-size: 14px; font-weight: 600; }
.addr-item .ai-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.addr-item .ai-check { margin-left: auto; color: var(--yellow-deep); font-weight: 800; font-size: 16px; }
.addr-add { padding: 14px 16px calc(14px + var(--safe-b)); }
.addr-form { padding: 4px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.addr-form .af-field { background: #F5F6F7; border-radius: 10px; padding: 11px 13px; display: flex; gap: 8px; }
.addr-form .af-field input { flex: 1; font-size: 14px; }

/* ============================================================
   送达结算弹窗（本项目灵魂）
   ============================================================ */
.result-modal {
  width: min(330px, 86vw); border-radius: 22px; overflow: hidden; text-align: center;
  background: linear-gradient(175deg, #FFF9E2 0%, #FFFFFF 38%);
  animation: modalIn .35s cubic-bezier(.2,1.5,.4,1); position: relative;
}
.result-modal .rm-top { padding: 26px 18px 6px; }
.result-modal .rm-emoji { font-size: 56px; animation: floatY 2.4s ease-in-out infinite; display: inline-block; }
@keyframes floatY { 50% { transform: translateY(-7px); } }
.result-modal .rm-title { font-size: 20px; font-weight: 900; margin-top: 8px; letter-spacing: 1px; }
.result-modal .rm-sub { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.result-modal .rm-stats { display: flex; gap: 10px; padding: 16px 18px 6px; }
.result-modal .rm-stat { flex: 1; background: #fff; border: 1.5px solid #FFE9A8; border-radius: 14px; padding: 13px 6px; box-shadow: 0 4px 14px rgba(220,170,0,.12); }
.result-modal .rm-num { font-size: 24px; font-weight: 900; font-family: "DIN Alternate","Bahnschrift",Arial; color: var(--red); font-variant-numeric: tabular-nums; }
.result-modal .rm-num.green { color: var(--green); }
.result-modal .rm-label { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.result-modal .rm-conv { margin: 12px 18px 0; background: #F7F8F9; border-radius: 10px; font-size: 11.5px; color: var(--text-2); padding: 9px 10px; line-height: 1.7; }
.result-modal .rm-btns { padding: 16px 18px calc(18px + 4px); display: flex; flex-direction: column; gap: 9px; }
.result-modal .rm-ghost { font-size: 13px; color: var(--text-3); padding: 4px; }

/* 送达前置弹窗 */
.knock-modal .m-emoji { animation: knock .6s ease-in-out infinite; display: inline-block; }
@keyframes knock { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }

/* confetti */
.confetti-canvas { position: fixed; inset: 0; z-index: 400; pointer-events: none; }

/* 真实菜品图：emoji 色块 = 加载占位 + 失败兜底，图片就绪后淡入 */
.food-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .25s ease;
}
.food-photo.loaded { opacity: 1; }
.dish .d-img, .sc-dish .d-emoji, .sk-item .sk-img, .review .rv-img,
.co-item .ci-emoji, .order-card .oc-emoji {
  position: relative; overflow: hidden;
}

/* fly to cart */
.fly-dot {
  position: fixed; z-index: 250; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 2px 6px rgba(200,150,0,.5);
  display: flex; align-items: center; justify-content: center; font-size: 13px; pointer-events: none;
}

/* skeleton shimmer（进店加载的仪式感） */
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
