/* ===== 果园小店 · 前台样式 ===== */
:root {
  --bg: #FBF6EF;
  --bg-2: #FFFDFA;
  --card: #FFFFFF;
  --ink: #2B2118;
  --ink-2: #6B5A48;
  --ink-3: #A1907C;
  --red: #D93A2B;
  --red-dark: #B62A1D;
  --red-soft: #FDECE8;
  --green: #2F7A4F;
  --green-soft: #EAF5EC;
  --gold: #C08A3E;
  --line: #F0E4D4;
  --line-2: #E6D7C3;
  --shadow-s: 0 2px 8px rgba(84, 56, 26, .06);
  --shadow-m: 0 8px 24px rgba(84, 56, 26, .09);
  --shadow-l: 0 16px 40px rgba(84, 56, 26, .13);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --max: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 300px at 10% -5%, rgba(217, 58, 43, .07), transparent 70%),
    radial-gradient(500px 260px at 95% 8%, rgba(47, 122, 79, .07), transparent 70%);
}

.app {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 14px calc(28px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.app.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin: 0 -14px;
  padding: 0 14px;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(240, 228, 212, .8);
}
.topbar .shop-name {
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 16px;
}
.topbar .spacer { flex: 1; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-s);
  font-size: 16px;
  transition: transform .15s;
}
.icon-btn:active { transform: scale(.92); }
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink-2);
}

/* ---------- 店铺头部 ---------- */
.shop-hero {
  position: relative;
  margin: 12px 0 0;
  padding: 22px 20px 20px;
  border-radius: var(--r-l);
  background: linear-gradient(150deg, #FFF9F0 0%, #FFEFE6 52%, #FCE3D6 100%);
  border: 1px solid #F6E3CE;
  overflow: hidden;
}
.shop-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(217, 58, 43, .18), rgba(217, 58, 43, .02) 70%);
}
.shop-hero h1 {
  position: relative;
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: .5px;
  line-height: 1.25;
}
.shop-hero .slogan {
  position: relative;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}
.shop-hero .hero-meta {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .78);
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
}
.pill.red { background: var(--red-soft); color: var(--red-dark); border-color: #F8D8D1; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: #D8EBDD; }

/* ---------- 公告 ---------- */
.notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--r-m);
  background: #FFF9EC;
  border: 1px solid #F6E8C9;
  font-size: 12.5px;
  color: #8A6A2A;
  line-height: 1.5;
}
.notice .ico { flex: none; }

/* ---------- 区块标题 ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 2px 12px;
}
.section-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: .3px;
}
.section-title .sub { font-size: 12px; color: var(--ink-3); }

/* ---------- 商品卡片 ---------- */
.product-list { display: flex; flex-direction: column; gap: 14px; }

.product-card {
  display: block;
  background: var(--card);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(240, 228, 212, .9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:active { transform: scale(.985); box-shadow: var(--shadow-s); }

.product-card .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #FDF2E4, #F7E4CE);
  overflow: hidden;
}
.product-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .cover .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43, 33, 24, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}
.product-card .cover .sales {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
}

.product-card .body { padding: 14px 16px 16px; }
.product-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: .3px;
}
.product-card .sub {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 12px;
}
.price {
  color: var(--red);
  font-weight: 700;
  letter-spacing: -.3px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.price .cur { font-size: 13px; font-weight: 600; }
.price .int { font-size: 24px; line-height: 1; }
.price .dec { font-size: 14px; }
.price .from { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-right: 3px; }
.price.small .int { font-size: 18px; }
.price.big .int { font-size: 32px; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.tag {
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 600;
}

.buy-mini {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E8452F, #C62B1C);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 14px rgba(198, 43, 28, .3);
}

/* ---------- 详情页 ---------- */
.gallery {
  position: relative;
  margin: 12px 0 0;
  border-radius: var(--r-l);
  overflow: hidden;
  background: linear-gradient(160deg, #FDF2E4, #F7E4CE);
  box-shadow: var(--shadow-m);
}
.gallery > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* 多图横滑 */
.gal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  background: #FBF1E3;
}
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.gal-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 4px rgba(60, 30, 10, .35);
  transition: all .22s;
}
.gal-dots span.on { width: 16px; border-radius: 3px; background: #fff; }

.gal-count {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(43, 33, 24, .52);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-head {
  margin-top: 12px;
  padding: 18px;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(240, 228, 212, .9);
}
.detail-head .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.detail-head h1 {
  margin: 10px 0 0;
  font-size: 20px;
  letter-spacing: .3px;
  line-height: 1.35;
}
.detail-head .sub { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }

.panel {
  margin-top: 12px;
  padding: 4px 18px;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(240, 228, 212, .9);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}
.panel-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red), #E8894F);
}
.panel-body { padding-bottom: 16px; }
.panel-body p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.panel-body p:last-child { margin-bottom: 0; }

.hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hl-list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  align-items: flex-start;
  line-height: 1.5;
}
.hl-list li .dot {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* 规格选择 */
.spec-list { display: grid; gap: 9px; }
.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  border: 1.5px solid var(--line);
  background: #FFFCF7;
  transition: all .16s ease;
  text-align: left;
  width: 100%;
}
.spec-item .n { font-size: 14px; font-weight: 600; }
.spec-item .p { color: var(--red); font-weight: 700; font-size: 15px; }
.spec-item .stock { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.spec-item.on {
  border-color: var(--red);
  background: linear-gradient(135deg, #FFF7F5, #FDECE8);
  box-shadow: 0 4px 14px rgba(217, 58, 43, .12);
}
.spec-item[disabled] { opacity: .45; }

/* 多箱折扣提示条 */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--r-m);
  background: linear-gradient(100deg, #FFF4E8, #FFE9E2);
  border: 1px solid #F8DCCE;
  font-size: 12.5px;
  color: #9A4A20;
  line-height: 1.45;
}
.promo-banner b { color: var(--red-dark); font-weight: 700; }
.promo-banner .pb-ico { font-size: 15px; flex: none; }
.promo-banner .pb-hit {
  margin-left: auto;
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

/* 规格行（可独立选数量，支持混搭） */
.spec-rows { display: grid; gap: 9px; }
.spec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-m);
  border: 1.5px solid var(--line);
  background: #FFFCF7;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.spec-row.on {
  border-color: var(--red);
  background: linear-gradient(135deg, #FFF8F5, #FDECE8);
  box-shadow: 0 4px 14px rgba(217, 58, 43, .10);
}
.spec-row.sold { opacity: .5; }
.spec-row .spec-info { flex: 1; min-width: 0; }
.spec-row .n {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.spec-row .d {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 3px;
}
.spec-row .pr {
  margin-top: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
}
.spec-row .pr .u { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.spec-row .stepper { flex: none; }
.spec-row .sold-txt { font-size: 12px; color: var(--ink-3); flex: none; }

/* 底部条里的优惠行 */
.bar-save {
  font-size: 10.5px;
  color: var(--red);
  font-weight: 600;
  margin-left: 5px;
}
.bar-hint {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.bar-hint.hot { color: var(--red); font-weight: 600; }

/* 数量步进 */
.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 36px;
  height: 32px;
  font-size: 17px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.stepper button:disabled { color: #D8CBB9; }
.stepper span {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* 表单 */
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: #FFFCF7;
  font-size: 14px;
  transition: border-color .15s, background .15s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: #E9A08F;
  background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: #BFB2A0; }
.field textarea { resize: vertical; min-height: 66px; }
.field .err { color: var(--red); font-size: 11.5px; margin-top: 5px; display: none; }
.field.bad input, .field.bad textarea { border-color: var(--red); background: #FFFAF9; }
.field.bad .err { display: block; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: transform .14s, box-shadow .14s, opacity .14s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #E8452F, #C62B1C);
  color: #fff;
  box-shadow: 0 8px 20px rgba(198, 43, 28, .28);
}
.btn-alipay {
  background: linear-gradient(135deg, #1677FF, #0A5ED8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1.5px solid var(--line-2);
}
.btn-block { width: 100%; }

/* 底部购买条 */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 250, .93);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.buy-bar .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.buy-bar .price-line { flex: 1; min-width: 0; }
.buy-bar .price-line .lbl { font-size: 11px; color: var(--ink-3); display: block; }
.buy-bar .btn { flex: none; padding: 13px 34px; }

/* ---------- 遮罩 / 抽屉 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(35, 25, 15, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(50, 30, 10, .18);
}
.sheet.on { transform: translateY(0); }
.sheet .grab {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  margin: 6px auto 12px;
}
.sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.sheet .sheet-sub { color: var(--ink-3); font-size: 12.5px; margin: 0 0 16px; }

.summary {
  border-radius: var(--r-m);
  background: #FFFCF7;
  border: 1px solid var(--line);
  padding: 13px 14px;
  margin: 4px 0 15px;
  font-size: 13px;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  color: var(--ink-2);
}
.summary .row.total {
  border-top: 1px dashed var(--line-2);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.summary .row.total .price .int { font-size: 20px; }

/* ---------- 支付页 ---------- */
.pay-card {
  margin-top: 18px;
  padding: 26px 20px 22px;
  text-align: center;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(240, 228, 212, .9);
}
.pay-card .amount-lbl { font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; }
.pay-card .amount {
  margin: 6px 0 2px;
  color: var(--red);
}
.pay-card .amount .int { font-size: 42px; font-weight: 700; letter-spacing: -1px; }
.pay-card .amount .cur { font-size: 20px; font-weight: 600; }
.pay-card .amount .dec { font-size: 22px; font-weight: 700; }
.pay-card .orderno {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.pay-way {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  border: 1.5px solid #CFE1FF;
  background: linear-gradient(135deg, #F5F9FF, #EBF3FF);
  text-align: left;
}
.pay-way .logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1677FF;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  flex: none;
}
.pay-way .info { flex: 1; }
.pay-way .info b { display: block; font-size: 14px; }
.pay-way .info span { font-size: 11.5px; color: var(--ink-3); }
.pay-way .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1677FF;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.pay-tip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.65;
  text-align: left;
  padding: 0 2px;
}

/* ---------- 订单进度 ---------- */
.status-banner {
  margin-top: 14px;
  padding: 20px 20px 22px;
  border-radius: var(--r-l);
  background: linear-gradient(150deg, #FFFFFF, #FFF6EF);
  border: 1px solid #F6E5D3;
  box-shadow: var(--shadow-m);
}
.status-banner .st {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-banner .st .ico { font-size: 24px; }
.status-banner h2 { margin: 0; font-size: 19px; letter-spacing: .3px; }
.status-banner .hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 步骤进度 */
.steps {
  display: flex;
  align-items: flex-start;
  margin-top: 18px;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 11px;
  color: var(--ink-3);
}
.step .dot {
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #F2E7D8;
  color: #C2B29C;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all .3s;
}
.step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #F2E7D8;
  z-index: 1;
}
.step:first-child::before { display: none; }
.step.done { color: var(--ink-2); font-weight: 600; }
.step.done .dot {
  background: linear-gradient(135deg, #E8452F, #C62B1C);
  color: #fff;
  box-shadow: 0 3px 10px rgba(198, 43, 28, .3);
}
.step.done::before { background: linear-gradient(90deg, #E8452F, #C62B1C); }

/* 物流卡 */
.ship-card {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid rgba(240, 228, 212, .9);
  box-shadow: var(--shadow-m);
}
.ship-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line-2);
}
.ship-head .car-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}
.ship-head .meta { flex: 1; min-width: 0; }
.ship-head .meta b { font-size: 13.5px; display: block; }
.ship-head .meta .no {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.copy-btn {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  flex: none;
}

/* 时间线 */
.timeline { margin: 16px 0 0; padding: 0 0 0 6px; list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 20px 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E2D5C3;
  z-index: 2;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -2px;
  width: 1px;
  background: var(--line-2);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.now::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 58, 43, .14);
}
.timeline li .t {
  font-size: 11.5px;
  color: var(--ink-3);
  display: block;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.timeline li .d { line-height: 1.55; }
.timeline li.now .d { color: var(--ink); font-weight: 600; }
.timeline li .lb {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  margin-right: 6px;
  font-weight: 600;
  vertical-align: 1px;
}

.empty-tl {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  background: #FFFCF7;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-m);
  line-height: 1.7;
}

/* 收货信息 */
.info-list { display: grid; gap: 11px; }
.info-row { display: flex; gap: 12px; font-size: 13.5px; }
.info-row .k { color: var(--ink-3); flex: none; width: 62px; }
.info-row .v { flex: 1; color: var(--ink); word-break: break-all; }

/* 订单商品行 */
.item-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #F7F0E5;
}
.item-row:last-child { border-bottom: none; }
.item-row .thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #FBF1E3;
  flex: none;
}
.item-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-row .info { flex: 1; min-width: 0; }
.item-row .info b { font-size: 13.5px; display: block; line-height: 1.4; }
.item-row .info .sp { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.item-row .right { text-align: right; flex: none; }
.item-row .right .p { font-size: 13.5px; font-weight: 700; }
.item-row .right .q { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* 我的订单卡片 */
.order-card {
  display: block;
  padding: 15px 16px;
  background: var(--card);
  border-radius: var(--r-m);
  border: 1px solid rgba(240, 228, 212, .9);
  box-shadow: var(--shadow-s);
  margin-bottom: 11px;
}
.order-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  padding-bottom: 10px;
  border-bottom: 1px solid #F7F0E5;
  margin-bottom: 11px;
}
.order-card .top .no { font-variant-numeric: tabular-nums; }
.order-card .top .st { font-weight: 700; color: var(--red); }
.order-card .top .st.done { color: var(--green); }
.order-card .mid { display: flex; gap: 10px; margin-bottom: 11px; }
.order-card .mid .thumbs { display: flex; gap: 5px; flex: none; }
.order-card .mid .thumbs div {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #FBF1E3;
}
.order-card .mid .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.order-card .mid .txt { flex: 1; min-width: 0; font-size: 13px; }
.order-card .mid .txt b { display: block; margin-bottom: 4px; }
.order-card .mid .txt span { font-size: 11.5px; color: var(--ink-3); }
.order-card .bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card .bot .amt { font-size: 13px; color: var(--ink-2); }
.order-card .bot .amt b { color: var(--red); font-size: 16px; }

/* ---------- 查询页 ---------- */
.lookup-card {
  margin-top: 20px;
  padding: 24px 20px;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(240, 228, 212, .9);
}
.lookup-card h2 { margin: 0 0 6px; font-size: 19px; }
.lookup-card .desc { color: var(--ink-3); font-size: 12.5px; margin: 0 0 18px; line-height: 1.6; }

/* ---------- Toast / Loading ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(43, 33, 24, .92);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .24s cubic-bezier(.32, .72, 0, 1);
  max-width: 84vw;
  text-align: center;
  backdrop-filter: blur(8px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.skeleton {
  background: linear-gradient(100deg, #F2E8DA 30%, #FAF3E8 50%, #F2E8DA 70%);
  background-size: 200% 100%;
  animation: sk 1.3s infinite linear;
  border-radius: var(--r-m);
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.footer-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 11px;
  color: #C0B2A0;
  line-height: 1.8;
}
.footer-note a { color: #B4A48F; text-decoration: underline; text-underline-offset: 2px; }

.spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

[hidden] { display: none !important; }
