/* 桂旅快递代拿 · 移动端优先样式（藏蓝 + 橙） */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #224E7C;
  --navy-d: #17395F;
  --navy-l: #E9EFF7;
  --orange: #E88D35;
  --orange-d: #C9741F;
  --orange-l: #FDF0E1;
  --cream: #FBF7EE;
  --bg: #F4EFE5;
  --card: #FFFFFF;
  --line: #EAE3D6;
  --text: #1C2B40;
  --muted: #7B8492;
  --danger: #C0392B;
  --success: #3F6B4A;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 53, 87, .04), 0 14px 34px -24px rgba(27, 53, 87, .45);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}
@supports (padding: env(safe-area-inset-left)) {
  .wrap {
    padding-left: calc(14px + env(safe-area-inset-left));
    padding-right: calc(14px + env(safe-area-inset-right));
  }
}

/* ---------------- 顶部栏 ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(251, 247, 238, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .2px;
  white-space: nowrap;
}
.tag {
  font-size: 11px;
  color: var(--orange-d);
  background: var(--orange-l);
  border: 1px solid #F3D9BB;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

main { padding: 14px 0 48px; }
@supports (padding: env(safe-area-inset-bottom)) {
  main { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

/* ---------------- 头图（bg.jpg） ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 206px;
  margin-bottom: 14px;
  border: 1px solid #EFE6D6;
  border-radius: 26px;
  background: #FBF7EE;
  box-shadow: 0 20px 44px -32px rgba(27, 53, 87, .55);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('bg.jpg') right -8px center / 56% auto no-repeat;
  mix-blend-mode: multiply;
  opacity: .97;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #FBF7EE 0%, #FBF7EE 44%, rgba(251, 247, 238, .72) 62%, rgba(251, 247, 238, 0) 85%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 64%;
  padding: 19px 18px 17px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-d);
  background: var(--orange-l);
  border: 1px solid #F3D9BB;
  border-radius: 999px;
}
.hero h1 {
  margin: 9px 0 4px;
  font-size: 25px;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-d);
}
.hero p {
  font-size: 11.5px;
  line-height: 1.6;
  color: #6B5537;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hero-badges span {
  padding: 2px 8px;
  font-size: 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(34, 78, 124, .12);
  border-radius: 999px;
}

/* ---------------- 选件型 ---------------- */
.size-section { margin-bottom: 18px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 10px;
}
.section-head h2 { font-size: 17px; color: var(--navy); }
.section-head span { font-size: 10.5px; color: var(--muted); }

.size-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.size-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .08s;
}
.size-card:active { transform: translateY(1px); }
.size-card.active {
  background: var(--orange-l);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 141, 53, .14);
}
.size-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.size-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.size-card-top b { font-size: 15px; color: var(--navy); }
.size-card-top em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-d);
  white-space: nowrap;
}
.size-card-ex {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.size-card-rule {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--navy);
  opacity: .7;
}

.price-note {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #8A5A24;
  background: #FFF8EE;
  border: 1px solid #F3E2C8;
  border-left: 3px solid var(--orange);
  border-radius: 10px;
}
.tip-line {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.tip-line b { color: var(--orange-d); }

/* ---------------- 注意事项 ---------------- */
.notice {
  margin-bottom: 14px;
  padding: 16px;
  background: #FFF8EE;
  border: 1px solid #F3E2C8;
  border-radius: var(--radius);
}
.notice h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--navy);
}
.notice h2::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}
.notice-list { list-style: none; display: grid; gap: 7px; }
.notice-list li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6B5537;
}
.notice-list li b { flex: 0 0 auto; color: var(--navy); }
.notice-foot {
  margin-top: 10px;
  padding-top: 8px;
  font-size: 10.5px;
  color: #A08A6B;
  border-top: 1px dashed #EBD9BF;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--navy);
}
.card h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--orange);
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.label-note { font-size: 10.5px; color: #A3AAB5; }

input[type=text],
input[type=tel],
input[type=number],
input[type=password],
input[type=date],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #FAF7F0;
  border: 1px solid #E8E0D2;
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus,
select:focus,
textarea:focus {
  background-color: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(34, 78, 124, .10);
}
input[type=date] {
  -webkit-appearance: auto;
  appearance: auto;
}
select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237B8492' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) {
  .row { grid-template-columns: 1fr 1fr; }
}

/* 手机端也两列：电话+姓名一行，取件点+数量一行，宿舍+时间一行 */
.row-contact,
.row-2col { display: grid; grid-template-columns: 1.18fr 1fr; gap: 0 10px; }
.row-2col { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 359px) {
  .row-contact,
  .row-2col { grid-template-columns: 1fr; }
}

.hint {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  background: #FAF7F0;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.hint.subtle {
  margin-top: 6px;
  padding: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
  opacity: .72;
  background: none;
  border: 0;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #224E7C, #17395F);
  border-color: transparent;
  box-shadow: 0 10px 22px -14px rgba(34, 78, 124, .9);
}
.btn.primary:hover { background: linear-gradient(135deg, #1B4169, #122E4C); }
.btn.ghost {
  color: #B2621A;
  background: #FFF8EE;
  border-color: #F3E2C8;
}
.btn.danger { color: var(--danger); border-color: #F1C9C3; background: #fff; }
.btn.block { width: 100%; min-height: 50px; font-size: 16px; font-weight: 600; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- 宿舍下拉 ---------------- */
.combo { position: relative; }
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 236px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(27, 53, 87, .4);
  -webkit-overflow-scrolling: touch;
}
.combo-item { padding: 12px 14px; font-size: 15px; cursor: pointer; }
.combo-item:hover,
.combo-item.active { background: var(--orange-l); color: var(--orange-d); }
.combo-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------------- 取件码 ---------------- */
.code-slots { display: grid; gap: 10px; }
.code-slot {
  padding: 10px 12px;
  background: #FAF7F0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.code-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.code-remove {
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  color: var(--danger);
  background: none;
  border: 0;
  cursor: pointer;
}
.code-slot-row { display: flex; gap: 8px; }
.code-slot-row input { flex: 1; min-width: 0; min-height: 44px; background: #fff; }
.code-upload {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 12px;
  color: #B2621A;
  background: var(--orange-l);
  border: 1px solid #F3D9BB;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.code-preview {
  display: block;
  width: 72px;
  height: 72px;
  margin-top: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
}

/* ---------------- 金额条 ---------------- */
.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #224E7C, #17395F);
  border-radius: 16px;
}
.total-copy { min-width: 0; }
.total-copy span { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); }
.total-copy small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.total-bar b { flex: 0 0 auto; font-size: 28px; line-height: 1; color: #FFC078; white-space: nowrap; }
.total-bar b i { margin-left: 3px; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .68); }

/* ---------------- 订单卡片 ---------------- */
.order {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.order:last-child { margin-bottom: 0; }

/* 客服/骑手订单收起态：只看取件码、宿舍、金额 */
.order.compact { padding: 11px 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.order.compact .order-head { margin-bottom: 6px; }
.order.compact .oid { font-size: 9.5px; }
.order-compact { display: flex; align-items: flex-end; gap: 10px; }
.compact-item { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.compact-item:first-child { flex: 1.5 1 0; }
.compact-item i { font-style: normal; font-size: 9.5px; color: var(--muted); line-height: 1.2; }
.compact-item b {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-price { flex: 0 0 auto; text-align: right; }
.compact-price b { font-size: 14px; color: var(--orange-d); }
.compact-price b i { font-style: normal; font-size: 9px; color: var(--muted); margin-left: 1px; }
.compact-change {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.2;
  color: #A08A6B;
  white-space: nowrap;
}
.compact-change.up { color: #C2410C; }
.compact-change.down { color: var(--success); }
.order.expanded .order-head { padding-bottom: 2px; }
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.oid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #A3AAB5;
  word-break: break-all;
}
.head-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.chevron { flex: 0 0 auto; color: #B7AEA0; font-size: 11px; }
.chevron.up { font-size: 10px; }
.order-head[data-toggle-order] { cursor: pointer; }
.st {
  flex: 0 0 auto;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.st-pending { background: var(--orange-l); color: #B2621A; }
.st-accepted { background: var(--navy-l); color: var(--navy); }
.st-picked { background: #DCE6F2; color: var(--navy-d); }
.st-delivered { background: #E8F1E8; color: var(--success); }
.st-cancelled { background: #EFF1F3; color: #6B7280; }

.route {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.route-point {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.route-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.route-end .route-dot { background: var(--navy); }
.route-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed #D8CDBA;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 6px;
  margin-top: 6px;
}
.fact {
  min-width: 0;
  padding: 4px 6px;
  background: #FAF7F0;
  border-radius: 7px;
}
.fact-label { display: block; font-size: 8.5px; color: var(--muted); }
.fact-value {
  display: block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.fact-value.price { font-size: 13px; color: var(--orange-d); }
.fact-value.price i { margin-left: 2px; font-style: normal; font-size: 8.5px; font-weight: 400; color: var(--muted); }
.fact-sub { display: block; margin-top: 1px; font-size: 9px; color: #A08A6B; }
.price-change { font-weight: 600; }
.price-change.up { color: #C2410C; }
.price-change.down { color: var(--success); }
.fact-wide { grid-column: span 2; }

.codes {
  margin-top: 6px;
  padding: 6px 8px;
  background: #FFF8EE;
  border: 1px dashed #EBD9BF;
  border-radius: 8px;
}
.code-label { font-size: 8.5px; color: #A08A6B; }
.code-items { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #6B5537;
  background: #fff;
  border: 1px solid #EBD9BF;
  border-radius: 6px;
}
.code-shot {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #EBD9BF;
  border-radius: 7px;
  cursor: zoom-in;
}

.order-note { margin-top: 5px; font-size: 11px; line-height: 1.5; color: #7B8492; }
.order-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 6px;
  font-size: 9.5px;
  color: #A3AAB5;
}
.order-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.order-actions .btn,
.order-actions label.btn { flex: 1 1 0; min-width: 84px; }
.uploading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  font-size: 12.5px;
  color: var(--navy);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(34, 78, 124, .18);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-uploading { opacity: .82; }
@keyframes spin { to { transform: rotate(360deg); } }
.proof {
  display: block;
  width: auto;
  max-width: 108px;
  max-height: 82px;
  margin-top: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}
.empty { padding: 26px 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------------- 进度条 ---------------- */
.timeline { display: flex; margin: 6px 0 0; }
.tl { position: relative; flex: 1; text-align: center; font-size: 8.5px; line-height: 1.3; color: #A3AAB5; }
.tl::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 50%;
  width: 100%;
  height: 1.5px;
  background: #E8E0D2;
}
.tl:first-child::before { display: none; }
.tl.done::before,
.tl.now::before { background: var(--navy); }
.tl .dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 3px;
  border-radius: 50%;
  background: #D8CDBA;
  position: relative;
  z-index: 1;
}
.tl.done .dot { background: var(--navy); }
.tl.now .dot { background: var(--orange); box-shadow: 0 0 0 2px var(--orange-l); }
.tl.now { color: var(--orange-d); font-weight: 700; }
.tl-label { display: block; }

/* ---------------- 查询 / 联系 ---------------- */
.querybar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.contact-text { font-size: 13.5px; line-height: 1.95; color: #6B7280; }
.contact-text b { color: var(--navy); }

/* ---------------- 客服概览 ---------------- */
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ov-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  font-family: inherit;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #2B5C8E, #1F4672);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition: transform .08s, box-shadow .15s, border-color .15s;
}
.ov-card:active { transform: translateY(1px); }
.ov-total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #224E7C, #17395F);
}
.ov-card.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(232, 141, 53, .38), var(--shadow);
}
.ov-card.active .ov-label::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  vertical-align: middle;
  background: var(--orange);
  border-radius: 50%;
}
.ov-main { min-width: 0; }
.ov-label { font-size: 10.5px; color: rgba(255, 255, 255, .72); }
.ov-num { display: block; margin-top: 2px; font-size: 28px; line-height: 1.1; color: #fff; }
.ov-side { text-align: right; }
.ov-side span { display: block; font-size: 10px; color: rgba(255, 255, 255, .66); }
.ov-side b { display: block; margin-top: 2px; font-size: 19px; color: #FFC078; }
.ov-hint { margin: -4px 2px 14px; font-size: 10.5px; color: var(--muted); }

/* ---------------- 日期查询 ---------------- */
.date-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.date-head h2 { margin-bottom: 0; }
.date-hint { font-size: 10px; color: var(--muted); }
.date-row { display: flex; gap: 8px; margin-top: 12px; }
.date-input { flex: 1; min-width: 0; }
.date-row .btn { min-height: 44px; }
.date-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.date-summary b { font-size: 13px; color: var(--navy); }
.date-summary span {
  padding: 3px 8px;
  background: #FAF7F0;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.board-date { margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--orange-d); }

/* ---------------- 筛选 / 搜索 ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.filters button i {
  padding: 1px 6px;
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  background: #F4EFE5;
  border-radius: 999px;
}
.filters button.active {
  color: var(--navy-d);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
}
.filters button.active i { color: var(--navy-d); background: rgba(255, 255, 255, .55); }
.area-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: -4px;
}
.area-filters button {
  justify-content: center;
  min-height: 32px;
  padding: 4px 4px;
  font-size: 11px;
  white-space: nowrap;
}

.search-box { display: flex; gap: 8px; margin-bottom: 12px; }
.search-box input { flex: 1; min-width: 0; min-height: 44px; }
.search-box .btn { flex: 0 0 auto; min-height: 44px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.pager-info { font-size: 11.5px; color: var(--muted); }

/* ---------------- 危险操作 ---------------- */
.danger-card { background: #FFF9F8; border-color: #F1C9C3; }
.danger-text { margin-bottom: 12px; font-size: 12px; color: var(--muted); }

/* ---------------- 骑手 ---------------- */
.rider-row { display: flex; gap: 8px; align-items: flex-end; }
.rider-row .field { flex: 1; margin-bottom: 0; }
.rider-row .btn { min-height: 48px; }
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
}
.count-pill:empty { display: none; }

/* ---------------- 弹窗 ---------------- */
/* ---------------- 我的订单快捷查询 ---------------- */
.track-card {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.track-row { display: flex; gap: 8px; }
.track-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 16px;
}
.track-row .btn { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 11px; }
.track-card .querybar { margin: 8px 0 0; }
.track-card #clientOrders:not(:empty) { margin-top: 10px; }

/* ---------------- 每日下单提示 ---------------- */
.social-proof {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 28px);
  max-width: 420px;
  margin: 10px auto 0;
  padding: 11px 13px;
  background: linear-gradient(135deg, #FFF6EA, #FFE9D2);
  border: 1px solid #F6D3A9;
  border-radius: 15px;
  box-shadow: 0 16px 38px -16px rgba(190, 110, 30, .5);
  animation: proofIn .28s ease;
}
@keyframes proofIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.social-proof .fire { font-size: 22px; line-height: 1; }
.proof-text { min-width: 0; }
.proof-text b { display: block; font-size: 12.5px; line-height: 1.45; color: #9A4E12; }
.proof-text b span { color: #D2691E; font-size: 14px; }
.proof-text > span { display: block; margin-top: 2px; font-size: 10.5px; color: #B07A45; }
.social-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: #B07A45;
  background: rgba(255, 255, 255, .7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------------- 客户表单紧凑排版 ---------------- */
.form-note {
  margin-bottom: 12px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #8A5A24;
  background: #FFF8EE;
  border: 1px solid #F3E2C8;
  border-radius: 9px;
}
.form-note b { color: var(--orange-d); }
#orderForm .field { margin-bottom: 11px; }

/* ---------------- 底部联系 ---------------- */
.site-footer {
  padding: 4px 16px 24px;
  padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  line-height: 1.9;
  color: #9A9388;
}
.site-footer b { color: var(--navy); font-weight: 600; }
body.client main { padding-bottom: 8px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 57, 95, .55);
}
.modal-box {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 26px 70px -24px rgba(23, 57, 95, .55);
}
.modal-box h3 { margin-bottom: 8px; font-size: 17px; color: var(--navy); }
.amount { margin: 8px 0 6px; font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--orange-d); }
.pay-sub { margin-bottom: 12px; font-size: 10.5px; color: #A08A6B; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; min-height: 48px; }
.pay-note { margin: 6px 0; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.pay-note b { color: var(--orange-d); }
.pay-wechat {
  margin-bottom: 16px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8A5A24;
  background: #FFF8EE;
  border: 1px solid #F3E2C8;
  border-radius: 10px;
}
#imgModal { background: rgba(10, 20, 35, .9); cursor: zoom-out; }
#imgModal img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ---------------- 密码页 ---------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(560px 300px at 50% -80px, rgba(232, 141, 53, .25) 0%, transparent 70%),
    radial-gradient(700px 380px at 100% 100%, rgba(34, 78, 124, .16) 0%, transparent 70%),
    var(--bg);
}
.gate-box {
  width: 100%;
  max-width: 360px;
  padding: 26px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 70px -30px rgba(23, 57, 95, .45);
}
.gate-mascot {
  display: block;
  width: 74px;
  height: 74px;
  margin: -2px auto 10px;
  object-fit: contain;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px -12px rgba(27, 53, 87, .45);
}
.gate-box h2 { margin-bottom: 4px; font-size: 20px; color: var(--navy); }
.gate-sub { margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.gate-box input { text-align: center; letter-spacing: .5px; }
.gate-box .btn { width: 100%; margin-top: 12px; }
.gate-err { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: var(--danger); }

/* ---------------- 轻提示 ---------------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 28px);
  max-width: 420px;
  transform: translateX(-50%);
  pointer-events: none;
}
@supports (bottom: env(safe-area-inset-bottom)) {
  .toast-wrap { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
.toast {
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  background: var(--navy-d);
  border-radius: 12px;
  box-shadow: 0 14px 34px -14px rgba(23, 57, 95, .7);
  animation: toastIn .2s ease both;
}
.toast.ok { background: var(--navy); }
.toast.error { background: var(--danger); }
.toast.out { animation: toastOut .25s ease both; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(10px); }
}

/* ---------------- 平板 / 电脑 ---------------- */
@media (min-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  main { padding: 20px 0 72px; }
  .hero { min-height: 246px; }
  .hero::before { background-size: 55% auto; background-position: right -10px center; }
  .hero-copy { max-width: 56%; padding: 26px 24px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 13px; }
  .size-picker { grid-template-columns: repeat(4, 1fr); }
  .overview { grid-template-columns: 1.25fr 1fr 1fr; }
  .ov-total { grid-column: auto; }
  .card { padding: 20px; margin-bottom: 16px; }
  .card h2 { font-size: 17px; }
  .modal { align-items: center; padding: 20px; }
  .modal-box { border-radius: 22px; }
  .date-hint { font-size: 11px; }
}

/* 窄屏兜底 */
@media (max-width: 359px) {
  .size-picker { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact-wide { grid-column: auto; }
  .hero h1 { font-size: 24px; }
  .hero-copy { max-width: 68%; }
}

/* 手机弹窗底部卡片 */
@media (max-width: 600px) {
  .modal { align-items: center; padding: 16px; }
  .modal-box {
    width: 100%;
    max-width: 360px;
    padding: 22px 18px;
    border-radius: 20px;
  }
  #imgModal { padding: 16px; }
  #imgModal img { max-height: 90vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
