/* =========================================================
   鞭炮商城 · 前台样式  v3（全新设计系统）
   暖白底 + 哑光红 + 金点缀 · 宽松留白 · 大圆角
   ========================================================= */

:root {
  --red: #cf1b1e;
  --red-d: #a80f13;
  --red-l: #fdeceb;
  --gold: #d9a441;
  --ink: #16171b;
  --ink-2: #3d4149;
  --ink-3: #6b7280;
  --muted: #8d939e;
  --line: #eceef1;
  --bg: #f5f4f1;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 26px rgba(21, 22, 26, .06);
  --shadow-sm: 0 3px 12px rgba(21, 22, 26, .05);
  --ok: #16a34a;
  --warn: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
body.no-nav { padding-bottom: 0; }
body.no-nav.has-bar { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: 14px; color: var(--ink); }

/* ---------------- 通用容器 ---------------- */
.wrap { padding: 16px 16px 28px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 14px;
}
.card-t { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.card-t .l { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-t .l i { color: var(--red); font-size: 18px; }
.card-t .muted { font-size: 12px; color: var(--muted); }

.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }
.section-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.section-head h3 i { color: var(--red); font-size: 19px; }
.section-head a { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 2px; }

.list-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.strong { font-weight: 650; }
.muted { color: var(--muted); font-size: 12.5px; }
.empty { text-align: center; padding: 66px 0; color: var(--muted); font-size: 13.5px; }
.empty i { display: block; font-size: 46px; color: #d6d9de; margin-bottom: 14px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 120; height: 56px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.topbar .back { width: 34px; height: 34px; margin-left: -6px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 19px; }
.topbar .t { flex: 1; display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .tb-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); display: block; }
.topbar .tb-logo { width: 26px; height: 26px; border-radius: 8px; object-fit: contain; display: block; background: transparent; }
.topbar .mark {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px;
  background: linear-gradient(150deg, #f0453f, var(--red-d));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 4px 10px rgba(207, 27, 30, .28);
}
.topbar .r { display: flex; align-items: center; gap: 6px; }
.topbar .r a { color: var(--ink-2); font-size: 20px; display: flex; align-items: center; }
.topbar .login-txt { font-size: 12.5px; font-weight: 600; color: var(--red); background: var(--red-l); border-radius: 999px; padding: 6px 13px; gap: 5px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; margin: 14px 14px 0;
  border-radius: 24px; padding: 30px 22px 26px;
  background:
    radial-gradient(120% 110% at 92% -10%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, #e33a33 0%, var(--red) 45%, #9c0d12 100%);
  color: #fff; box-shadow: 0 14px 34px rgba(168, 15, 19, .26);
}
.hero::after { content: ""; position: absolute; right: -58px; bottom: -92px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 235, 200, .13); }
.hero .eyebrow { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; opacity: .82; font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: 31px; line-height: 1.22; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; }
.hero .sub { font-size: 12.5px; opacity: .92; display: flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.hero .chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 7px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
}

/* ---------------- 分类胶囊 ---------------- */
.cat-strip {
  position: relative; margin: 14px 0 2px; padding: 4px 0 2px; z-index: 10;
}
.cat-strip::after {
  content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 100%;
  background: linear-gradient(90deg, rgba(245,244,241,0), var(--bg) 62%);
  pointer-events: none; border-radius: 0 12px 12px 0;
}
.cat-more {
  position: absolute; right: 12px; top: 50%; transform: translateY(-30%);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--red);
  box-shadow: 0 3px 10px rgba(20,22,28,.12); font-size: 13px;
  transition: opacity .2s ease, transform .2s ease; z-index: 2;
}
.cat-more:active { transform: translateY(-30%) scale(.92); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: 0 0 auto; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03); white-space: nowrap;
}
.cats a.on {
  background: linear-gradient(150deg, #ee3a33, var(--red-d)); color: #fff;
  border-color: transparent; font-weight: 650; box-shadow: 0 6px 14px rgba(207, 27, 30, .26);
}

/* ---------------- 商品网格 ---------------- */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.goods-item {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.goods-item:active { transform: scale(.985); }
.goods-item .thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: #f8f7f5; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.goods-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.goods-item .thumb .ph { color: #cfd3da; font-size: 36px; }
.goods-item .flag {
  position: absolute; left: 9px; top: 9px; z-index: 2; font-size: 10.5px; font-weight: 700;
  letter-spacing: .5px; padding: 4px 9px; border-radius: 8px; color: #fff;
  background: linear-gradient(135deg, #f2ad3c, #d9a441);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}
.goods-item .info { padding: 12px 13px 14px; }
.goods-item .name {
  font-size: 13.5px; font-weight: 650; line-height: 1.45; color: var(--ink);
  min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-item .row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; gap: 6px; }
.goods-item .price { color: var(--red); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: -.6px; }
.goods-item .price small { font-size: 12px; font-weight: 700; margin-right: 1px; }
.goods-item .tag { font-size: 10.5px; color: #a97a19; background: #fdf3df; border-radius: 6px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.goods-item .sold { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 20px; border-radius: 13px; border: 0;
  font-size: 15px; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(150deg, #ef3a33, var(--red-d)); color: #fff; box-shadow: 0 8px 18px rgba(207, 27, 30, .26); }
.btn-line { background: #fff; color: var(--red); border: 1.5px solid #f2c3c2; }
.btn-ghost { background: #f2f3f5; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

/* ---------------- 底部导航（悬浮胶囊） ---------------- */
.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 62px; z-index: 200; display: flex; align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: 22px; border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 10px 30px rgba(20, 22, 28, .12); padding: 0 6px;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11.5px; color: #7c828c; position: relative; padding: 8px 0;
}
.bottom-nav a .ico { font-size: 20px; line-height: 1; display: flex; }
.bottom-nav a.on { color: var(--red); font-weight: 650; }
.bottom-nav .dot {
  position: absolute; top: 2px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 600;
  line-height: 16px; text-align: center;
}

/* ---------------- 固定操作条 ---------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 -8px 26px rgba(20, 22, 28, .07);
}
.action-bar .total { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.action-bar .total .t1 { font-size: 11.5px; color: var(--muted); line-height: 1.2; margin-bottom: 2px; }
.action-bar .total .amt { color: var(--red); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.5px; }
.action-bar .total .amt small { font-size: 12px; }
.action-bar .qty { flex: 0 0 auto; }
.action-bar .qty-inline { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.action-bar .qty-inline .q-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.action-bar .btn { min-width: 0; white-space: nowrap; }
.action-bar .qty button { width: 30px; height: 32px; }
.action-bar .qty .numInput, .action-bar .qty input { width: 36px; height: 32px; }

/* ---------------- 表单 ---------------- */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 7px; }
.input, .form-item input, .form-item textarea, .form-item select {
  width: 100%; border: 1px solid #e6e8ec; background: #fbfbfc; border-radius: 12px;
  padding: 13px 14px; font-size: 14px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.form-item textarea { min-height: 96px; resize: vertical; }
.input:focus, .form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  border-color: #f0a9a8; background: #fff; box-shadow: 0 0 0 3px rgba(207, 27, 30, .07);
}
.input::placeholder, .form-item input::placeholder, .form-item textarea::placeholder { color: #b6bac2; }

/* ---------------- 商品详情 ---------------- */
.detail-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f8f7f5; display: block; }
.detail-cover.noimg { height: 240px; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; color: #cfd3da; font-size: 46px; }
.detail-body {
  padding: 18px 16px; margin: 14px; background: #fff;
  border-radius: 18px; box-shadow: var(--shadow-sm);
}
.detail-body .pbox { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-body .price { color: var(--red); font-weight: 900; font-size: 30px; letter-spacing: -1px; line-height: 1.1; }
.detail-body .price small { font-size: 15px; font-weight: 700; margin-right: 2px; }
.detail-body h2 { font-size: 19px; font-weight: 750; line-height: 1.4; margin: 10px 0 12px; letter-spacing: -.3px; }
.detail-body .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-body .meta2 { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-body .tag { font-size: 11.5px; color: #a97a19; background: #fdf3df; padding: 4px 9px; border-radius: 8px; }
.detail-content { background: #fff; border-radius: 18px; padding: 18px 16px; margin: 0 16px 18px; box-shadow: var(--shadow-sm); }
.detail-content .h { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.detail-content .h i { color: var(--red); }
.detail-content .txt { color: var(--ink-2); font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #f8f7f5; border-radius: 10px; }

/* ---------------- 购物车 / 订单卡 ---------------- */
.order-card { display: block; background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.order-card .oh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.order-card .oh .t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.order-card .oh .t i { color: var(--red); }
.order-card .oh .s { font-size: 12px; color: var(--red); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; color: var(--ink-2); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty .numInput, .qty input { width: 42px; height: 34px; border: 0; text-align: center; font-size: 14px; font-weight: 600; background: #fff; }
.order-card .pay-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-card .pay-item:last-child { border-bottom: 0; }
.order-card .pay-item .k { color: var(--muted); }
.order-card .pay-item .v { font-weight: 650; }

/* ---------------- 我的 ---------------- */
.uc-hero {
  position: relative; overflow: hidden; color: #fff; padding: 26px 18px 62px;
  background: radial-gradient(120% 130% at 8% 0%, #ff5454 0%, var(--red) 46%, #a61212 100%);
}
.uc-hero::after { content: ""; position: absolute; right: -46px; bottom: -78px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.uc-hero::before { content: ""; position: absolute; left: -50px; top: -60px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.uc-hero .me { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.uc-hero .av {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .22);
  object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.uc-hero .who { flex: 1; min-width: 0; }
.uc-hero .nm { font-size: 18px; font-weight: 750; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-hero .ph { font-size: 12px; opacity: .88; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.uc-hero .btn-login { background: #fff; color: var(--red); padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.uc-hero .ghost-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38); color: #fff; font-size: 12.5px; white-space: nowrap;
}
.uc-orders { margin: -46px 14px 0; position: relative; z-index: 10; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 8px 10px; }
.uc-orders .h { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 12px; }
.uc-orders .h b { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.uc-orders .h b i { color: var(--red); font-size: 17px; }
.uc-orders .h a { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 1px; }
.uc-orders .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.uc-orders .grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 8px; position: relative; }
.uc-orders .grid .ibox { width: 42px; height: 42px; border-radius: 13px; background: #f6f7f9; display: flex; align-items: center; justify-content: center; }
.uc-orders .grid .ibox i { font-size: 20px; color: var(--red); }
.uc-orders .grid .lb { font-size: 12px; color: var(--ink-2); }
.uc-orders .grid .num {
  position: absolute; top: 0; left: 50%; margin-left: 11px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.uc-wrap { margin-top: 14px; }
.menu-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px; }
.menu-card a { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #f5f6f8; font-size: 14px; }
.menu-card a:last-child { border-bottom: 0; }
.menu-card a:active { background: #fafbfc; }
.menu-card a i.ic { font-size: 17px; color: var(--red); width: 20px; text-align: center; flex: 0 0 20px; }
.menu-card a .tx { flex: 1; }
.menu-card a .arrow { color: #c9ced6; font-size: 15px; }
.uc-foot { text-align: center; color: #b3b8c1; font-size: 12px; padding: 8px 0 6px; }

/* ---------------- 支付 ---------------- */
.pay-amount .l { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.pay-amount { text-align: center; padding: 30px 16px 26px; }
.pay-amount .l { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; }
.pay-amount .v { font-size: 38px; font-weight: 900; color: var(--red); letter-spacing: -1.5px; margin: 10px 0 6px; }
.pay-amount .v small { font-size: 17px; margin-right: 2px; }
.pay-amount .no { font-size: 12px; color: var(--muted); }
.qr-box { text-align: center; padding: 22px 16px; }
.qr-box img { width: 190px; height: 190px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.qr-box .tips { margin-top: 16px; text-align: left; background: #fdf6e8; border-radius: 12px; padding: 13px 14px; font-size: 12.5px; color: #7a5a12; line-height: 1.9; }

/* ---------------- 角标 ---------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 4px 9px; border-radius: 8px; font-weight: 600; }
.badge.red { background: var(--red-l); color: var(--red); }
.badge.green { background: #eaf7ef; color: #1a7f4b; }
.badge.gray { background: #f1f2f4; color: var(--ink-3); }
.badge.gold { background: #fdf3df; color: #a97a19; }

/* ---------------- 地址卡 ---------------- */
.addr-item { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.addr-item.on { border-color: #f0a9a8; background: #fffafa; box-shadow: 0 0 0 3px rgba(207, 27, 30, .05); }
.addr-item .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d6d9de; flex: 0 0 18px; margin-top: 3px; }
.addr-item.on .dot { border-color: var(--red); background: var(--red); position: relative; }
.addr-item.on .dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg); }
.addr-item .info { flex: 1; min-width: 0; }
.addr-item .nm { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-item .ph { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.addr-item .ad { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------------- 动效 ---------------- */
.fade-up { animation: fadeUp .32s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 补充组件 ---------------- */
.detail-body .tag.gray { background: #f1f2f4; color: #5b616b; }
.detail-body .tag.dark { background: #fdecec; color: #b3161a; }
.inline { display: flex; align-items: center; gap: 10px; }
.foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.wait-tip { display: flex; align-items: center; justify-content: center; gap: 7px; color: #1a7f4b; font-size: 12.5px; padding: 12px 0 2px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
/* ---------------- 订单列表卡 ---------------- */
.order-card .oh .no { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.order-card .oh .no i { color: var(--muted); }
.order-card .badge.ok { background: #eaf7ef; color: #1a7f4b; }
.order-card .body { display: flex; align-items: center; gap: 12px; padding: 2px 0 12px; }
.order-card .body .thumbs {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto; grid-template-columns: none; margin: 0;
}
.order-card .body .thumbs img {
  width: 72px; height: 72px; aspect-ratio: auto; border-radius: 12px;
  object-fit: contain; background: #f8f7f5;
}
.order-card .body .thumbs .ph {
  width: 72px; height: 72px; border-radius: 12px; background: #f8f7f5;
  display: flex; align-items: center; justify-content: center; color: #cfd3da; font-size: 24px;
}
.order-card .body .meta2 { flex: 1; min-width: 0; display: block; margin: 0; }
.order-card .body .meta2 .t1 { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .body .meta2 .t2 { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.order-card .foot { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.order-card .foot .amt { font-size: 12.5px; color: var(--muted); }
.order-card .foot .amt b { font-size: 18px; color: var(--red); font-weight: 800; margin-left: 2px; }

/* ---------------- 打印（小票） ---------------- */
@media print {
  body { padding: 0 !important; background: #fff; }
  .bottom-nav, .action-bar, .topbar { display: none !important; }
}

/* 空状态里按钮的图标保持小尺寸 */
.empty .btn i, .empty a i { display: inline-block; font-size: 15px; margin-bottom: 0; color: inherit; vertical-align: -1px; }

/* 窄屏（iPhone SE / 小屏安卓）：数量与两个按钮挤在一行 */
@media (max-width: 400px) {
  .action-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .action-bar .qty-inline .q-label { display: none; }
  .action-bar .qty button { width: 26px; }
  .action-bar .qty .numInput, .action-bar .qty input { width: 30px; }
  .action-bar .btn { padding: 0 8px; font-size: 13px; }
  .action-bar .btn i { font-size: 14px; }
}
/* （注：内容由AI生成） */
