/* ============================================================
 * 银杏递 Web · 样式（手机优先，桌面端居中手机框）
 * ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #00b578;
  --primary-dark: #009b68;
  --primary-light: #e6f9f2;
  --orange: #ff8f1f;
  --orange-light: #fff3e0;
  --blue: #3478f6;
  --blue-light: #e8f0ff;
  --red: #f53f3f;
  --red-light: #ffece8;
  --ink: #1f2329;
  --ink-2: #646a73;
  --ink-3: #8a9099;
  --line: #f0f1f3;
  --bg: #f5f6f8;
  --radius: 14px;
}

html, body {
  height: 100%;
  background: #e9edf1;
  color: var(--ink);
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body { overflow-x: hidden; }

.hidden { display: none !important; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- App 手机框 ---------- */
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 36px rgba(31, 35, 41, 0.12);
  padding-bottom: 0;
}

.view { padding-bottom: 84px; }
.view.has-nav { padding-top: 52px; padding-bottom: 24px; }
.view.has-bar { padding-bottom: 92px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 52px;
  background: #fff;
  display: flex; align-items: center;
  z-index: 60;
  border-bottom: 1px solid var(--line);
}
.nav-back {
  width: 44px; height: 52px; line-height: 50px;
  text-align: center; font-size: 30px; color: var(--ink);
}
.nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; padding-right: 44px; }
.nav-right { position: absolute; right: 0; width: 64px; text-align: right; padding-right: 14px; font-size: 13px; color: var(--primary); }
.nav-title.has-right { padding-right: 0; }
.nav-right ~ .nav-title, .navbar:has(.nav-right:not(:empty)) .nav-title { padding-right: 0; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 62px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ink-3); font-size: 11px;
}
.tab-item.active { color: var(--primary); }
.tab-ico { font-size: 21px; line-height: 1; position: relative; }
.tab-add { position: relative; }
.tab-add-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #19c98c, #00b578);
  color: #fff; font-size: 28px; line-height: 42px; text-align: center;
  margin-top: -18px;
  box-shadow: 0 6px 14px rgba(0, 181, 120, 0.38);
  font-weight: 300;
}
.tab-add span { margin-top: 1px; }
.tab-dot {
  position: absolute; top: -7px; right: -11px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 10px;
  border-radius: 8px; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 1.5px #fff;
}

/* ---------- 通用卡片 / 文本 ---------- */
.container { padding: 12px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
  border: 1px solid rgba(31, 35, 41, 0.05);
  box-shadow: 0 1px 6px rgba(31, 35, 41, 0.03);
}
.card-title {
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title .t-left { display: flex; align-items: center; }
.card-title .bar {
  display: inline-block; width: 3px; height: 14px; border-radius: 2px;
  background: var(--primary); margin-right: 7px;
}
.section-title {
  font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 14px 4px 8px; display: flex; align-items: center; gap: 4px;
}
.section-hint { font-size: 12px; color: var(--ink-3); padding: 2px 4px 0; }

.cell {
  display: flex; align-items: center;
  min-height: 46px; padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.cell:last-child { border-bottom: none; }
.cell-label { width: 88px; color: var(--ink-2); font-size: 14px; flex-shrink: 0; }
.cell-value { flex: 1; font-size: 14px; word-break: break-all; }
.cell-value.placeholder { color: #a8aeb8; }
.cell-arrow { color: #c0c4cc; margin-left: 6px; font-size: 18px; }
.cell-input {
  flex: 1; border: none; outline: none; font-size: 14px; text-align: right;
  color: var(--ink); background: transparent;
}

.btn {
  display: inline-block;
  height: 42px; line-height: 42px; padding: 0 18px;
  border-radius: 21px; text-align: center;
  font-size: 15px; font-weight: 600;
}
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-plain { background: var(--primary-light); color: var(--primary); }
.btn-gray { background: #f0f1f3; color: var(--ink-2); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid #9fdcc0; }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #f5b7b7; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-sm { height: 30px; line-height: 30px; padding: 0 12px; font-size: 12px; border-radius: 15px; }

.price { color: var(--red); font-weight: 700; }
.price-symbol { font-size: 12px; margin-right: 1px; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 11px; line-height: 1.7; margin-right: 6px;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.tag-green { background: var(--primary-light); color: var(--primary); }
.tag-red { background: var(--red-light); color: var(--red); }
.tag-gray { background: #f2f3f5; color: var(--ink-2); }

.st-unpaid { color: var(--red); }
.st-pending { color: var(--orange); }
.st-accepted { color: var(--blue); }
.st-picked { color: var(--primary); }
.st-done, .st-canceled { color: var(--ink-3); }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(150deg, #14c084 0%, #00b578 55%, #00a06b 100%);
  padding: calc(18px + env(safe-area-inset-top, 0)) 16px 46px;
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hero-logo-row { display: flex; align-items: center; gap: 10px; }
.hero-logo { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255,255,255,.6); object-fit: cover; background: #fff; }
.hero-brand { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.hero-sub { font-size: 12px; opacity: .9; margin-top: 2px; }
.energy-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px; padding: 6px 12px;
  display: flex; align-items: center; gap: 4px; font-size: 13px;
}
.energy-pill .energy-num { font-weight: 700; }
.energy-pill .energy-check { font-size: 12px; background: #fff; color: var(--primary); border-radius: 10px; padding: 1px 8px; margin-left: 2px; font-weight: 700; }
.energy-pill .energy-done { background: rgba(255,255,255,.25); color: #fff; }

.hero-rules {
  margin-top: 14px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.9; position: relative; z-index: 1;
}
.hero-rules b { font-weight: 700; }

/* 首页内容上移叠在 hero 上 */
.home-body { position: relative; margin-top: -32px; z-index: 2; }

.campus-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 96px; margin-bottom: 10px;
}
.campus-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campus-banner-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,60,40,.55), rgba(0,60,40,0)); }
.campus-banner-text { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #fff; }
.campus-banner-title { font-size: 15px; font-weight: 700; }
.campus-banner-sub { font-size: 12px; opacity: .9; margin-top: 4px; }

/* 开业酬宾券 */
.promo-card {
  background: linear-gradient(120deg, #fff8ec, #fff2d8);
  border: 1px solid #f7dfae;
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
}
.promo-left { flex: 1; }
.promo-title { font-size: 16px; font-weight: 800; color: #8a5200; display: flex; align-items: center; gap: 6px; }
.promo-sub { font-size: 12px; color: #a9741f; margin-top: 5px; line-height: 1.6; }
.promo-amount { color: #e8740c; font-weight: 800; }
.promo-amount .y { font-size: 13px; }
.promo-amount .n { font-size: 30px; }
.promo-btn { background: linear-gradient(135deg, #ffb03a, #ff8f1f); color: #fff; border-radius: 18px; padding: 8px 16px; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 10px rgba(255,143,31,.35); }
.promo-btn.used { background: #d8dce1; box-shadow: none; }
.promo-tag { position: absolute; top: 0; right: 0; background: #ff8f1f; color: #fff; font-size: 10px; padding: 2px 10px; border-bottom-left-radius: 10px; }

/* 主入口卡 */
.service-main-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #ffffff, #f3fdf9);
}
.service-main-left { display: flex; align-items: center; gap: 12px; }
.service-main-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.service-main-icon-inner { font-size: 24px; }
.service-main-title { font-size: 16px; font-weight: 700; }
.service-main-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.service-main-btn { color: var(--primary); font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.service-main-arrow { font-size: 20px; margin-left: 2px; }

.ongoing-card { display: flex; align-items: center; justify-content: space-between; }
.ongoing-left { display: flex; align-items: center; gap: 10px; }
.ongoing-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(0,181,120,.08); } }
.ongoing-title { font-size: 14px; font-weight: 700; }
.ongoing-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 每日天气 & 湿度 小组件 */
.weather-bar { display: flex; gap: 10px; margin-bottom: 10px; }
.weather-cell {
  flex: 1; border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(135deg, #e8f7ef 0%, #f3f8ff 100%);
  border: 1px solid rgba(0, 181, 120, 0.12);
}
.weather-humidity {
  background: linear-gradient(135deg, #e7f0ff 0%, #f0f7ff 100%);
  border-color: rgba(22, 119, 255, 0.12);
}
.wc-head { display: flex; align-items: center; gap: 6px; }
.wc-ico { font-size: 16px; }
.wc-label { font-size: 12px; color: var(--ink-3); }
.wc-body { display: flex; align-items: baseline; gap: 8px; }
.wc-temp { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1; }
.weather-humidity .wc-body { gap: 0; }
.wc-hum { font-size: 24px; font-weight: 800; color: #1677ff; line-height: 1; }
.wc-text { font-size: 14px; font-weight: 600; color: var(--ink); }
.wc-desc { font-size: 11.5px; color: var(--ink-3); }

/* 价格说明条 */
.price-strip { display: flex; background: #fff; border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.price-strip .p-item { flex: 1; text-align: center; padding: 12px 4px; position: relative; }
.price-strip .p-item + .p-item::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.p-item .p-fee { color: var(--red); font-weight: 800; font-size: 17px; }
.p-item .p-name { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.p-item .p-w { font-size: 10px; color: var(--ink-3); }

/* 取件点实况 */
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.board-title { font-weight: 700; font-size: 15px; }
.board-best { font-size: 12px; color: var(--primary); }
.board-row { display: flex; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px dashed var(--line); }
.board-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.board-dot-green { background: #22c55e; }
.board-dot-yellow { background: #f5a623; }
.board-dot-red { background: var(--red); }
.board-name { flex: 1; }
.board-wait { width: 74px; color: var(--ink-2); font-size: 12px; }
.board-advice { width: 86px; text-align: right; font-size: 12px; }
.board-advice-green { color: var(--primary); }
.board-advice-yellow { color: #c47e00; }
.board-advice-red { color: var(--red); }

.empty-box { text-align: center; padding: 48px 0; color: var(--ink-3); font-size: 13px; }
.empty-box .e-ico { font-size: 42px; margin-bottom: 10px; }
.empty-box .btn { margin-top: 14px; }

/* ---------- 下单页 ---------- */
.parcel-empty { text-align: center; padding: 24px 0; color: var(--ink-3); }
.parcel-empty-icon { font-size: 34px; margin-bottom: 6px; }
.parcel-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; background: #fcfdfd;
}
.parcel-head { display: flex; align-items: center; margin-bottom: 6px; }
.parcel-fee { margin-left: auto; font-size: 14px; }
.parcel-del { color: var(--red); font-size: 12px; margin-left: 10px; padding: 2px 4px; }
.parcel-line { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.parcel-code { color: var(--ink); font-weight: 700; letter-spacing: .5px; }
.add-parcel {
  border: 1.5px dashed #b9e8d6; color: var(--primary);
  border-radius: 10px; text-align: center; padding: 12px;
  font-size: 14px; font-weight: 600; background: #f7fefb;
}

.date-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.date-scroll::-webkit-scrollbar { display: none; }
.date-chip {
  flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line);
  padding: 8px 14px; text-align: center; background: #fafbfc; min-width: 64px;
}
.date-chip .date-label { font-size: 12px; color: var(--ink-2); }
.date-chip .date-text { font-size: 13px; font-weight: 600; margin-top: 2px; }
.date-chip-active { background: var(--primary-light); border-color: var(--primary); }
.date-chip-active .date-label, .date-chip-active .date-text { color: var(--primary); }

.slot-card { display: flex; gap: 10px; }
.slot-big {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 8px; text-align: center; background: #fafbfc;
}
.slot-big .slot-time { font-size: 15px; font-weight: 700; }
.slot-big-active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.slot-big-disabled {
  background: #f1f2f4; color: var(--ink-3); opacity: 0.6;
  border-color: #e6e8eb; position: relative; cursor: not-allowed;
}
.slot-tag {
  margin-top: 4px; font-size: 11px; color: var(--ink-3);
  background: #e6e8eb; border-radius: 8px; padding: 1px 8px; display: inline-block;
}

.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.quick-tag {
  font-size: 12px; padding: 5px 12px; border-radius: 14px;
  background: #f5f6f8; color: var(--ink-2);
}
.quick-tag:active { background: var(--primary-light); color: var(--primary); }
.remark-area, .code-input, .desc-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; resize: none;
  background: #fafbfc; color: var(--ink);
}
.remark-area { min-height: 64px; }
.code-input { min-height: 56px; background: #fff; }
.desc-input { min-height: 40px; }
textarea:focus { border-color: #9fdcc0; background: #fff; }

.fee-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; }
.fee-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 15px; }
.fee-discount { color: var(--primary); }

.coupon-on { color: #e8740c; font-weight: 600; }

/* 底部提交条 */
.action-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  display: flex; align-items: center; gap: 12px; z-index: 50;
}
.bar-total { flex: 1; }
.bar-total-label { font-size: 11px; color: var(--ink-3); }
.bar-total-fee { font-size: 22px; }
.bar-total-fee .price-symbol { font-size: 14px; }
.bar-btn { flex: 0 0 150px; }
.action-bar .btn { height: 44px; line-height: 44px; }

/* ---------- 底部弹出抽屉（添加快递） ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 80; display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; max-height: 88vh;
  background: #fff; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-title { font-size: 16px; font-weight: 700; }
.sheet-close { color: var(--ink-3); font-size: 16px; width: 28px; height: 28px; text-align: center; line-height: 28px; }
.sheet-body { padding: 14px 16px; overflow-y: auto; }
.sheet-footer { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--line); }
.form-label { font-size: 13.5px; font-weight: 600; margin: 14px 0 8px; }
.form-label:first-child { margin-top: 0; }
.form-label .req { color: var(--red); }
.form-label-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; }
.form-label-side { font-size: 11px; color: var(--ink-3); }
.form-hint { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.form-select {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; background: #fafbfc; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.size-grid { display: flex; flex-direction: column; gap: 8px; }
.size-cell {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fafbfc;
}
.size-cell-head { display: flex; justify-content: space-between; align-items: center; }
.size-cell-name { font-weight: 700; font-size: 14px; }
.size-cell-fee { color: var(--red); font-weight: 700; }
.size-cell-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.size-cell-active { border-color: var(--primary); background: var(--primary-light); }
.size-cell-active .size-cell-name, .size-cell-active .size-cell-desc { color: var(--primary-dark); }
.size-cell-special { background: #fffaf3; border-style: dashed; border-color: #f0c9a0; cursor: pointer; }
.size-cell-special .size-cell-fee { font-size: 12px; }
.size-note { font-size: 11px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 中央弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 90; display: flex; align-items: center; justify-content: center; padding: 32px;
}
.modal {
  width: 100%; max-width: 320px; background: #fff; border-radius: 16px;
  overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { padding: 18px 18px 6px; font-size: 16px; font-weight: 700; text-align: center; }
.modal-body { padding: 8px 18px 16px; font-size: 14px; color: var(--ink-2); text-align: center; line-height: 1.6; word-break: break-all; white-space: pre-line; }
.modal-body input, .modal-body textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; margin-top: 8px; text-align: left;
}
.modal-btns { display: flex; border-top: 1px solid var(--line); }
.modal-btns button { flex: 1; height: 48px; font-size: 15px; }
.modal-btns button + button { border-left: 1px solid var(--line); }
.modal-ok { color: var(--primary); font-weight: 700; }
.modal-cancel { color: var(--ink-2); }
.modal-ok.danger { color: var(--red); }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 10px; z-index: 100;
  max-width: 76%; text-align: center; line-height: 1.5;
}

/* ---------- 支付页 ---------- */
.pay-amount-card { text-align: center; padding: 22px 14px; }
.pay-amount-label { font-size: 13px; color: var(--ink-2); }
.pay-amount { color: var(--ink); font-weight: 800; margin-top: 6px; }
.pay-amount .y { font-size: 18px; }
.pay-amount .n { font-size: 44px; }
.pay-free { margin-top: 8px; font-size: 13px; color: var(--primary); font-weight: 600; }

.pay-tabs { display: flex; gap: 10px; margin-bottom: 12px; }
.pay-tab {
  flex: 1; height: 40px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.pay-tab.active { color: #fff; }
.pay-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.qr-card { text-align: center; padding: 18px 14px; }
.qr-img-box {
  position: relative;
  width: 230px; height: 230px; margin: 0 auto; border-radius: 14px;
  border: 1px solid var(--line); overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.qr-img-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder {
  width: 100%; height: 100%; padding: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f4f6f8 10px, #f4f6f8 20px);
  color: var(--ink-3); text-align: center;
}
.qr-placeholder .qr-p-ico { font-size: 38px; }
.qr-placeholder .qr-p-t { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.qr-placeholder .qr-p-s { font-size: 11px; line-height: 1.6; }
.qr-tip { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.qr-tip b { color: var(--red); }

.pay-note-box { margin-top: 12px; }
.pay-note-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.copy-btn-mini { color: var(--primary); font-size: 12px; font-weight: 600; }
.pay-note {
  width: 100%; border: 1px solid #f3d9b1; background: #fffaf0; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: #7a5210; line-height: 1.6;
  min-height: 56px; resize: none; outline: none;
}
.pay-steps { font-size: 12.5px; color: var(--ink-2); line-height: 2; counter-reset: step; }
.pay-steps li { list-style: none; display: flex; gap: 8px; }
.pay-steps li::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; margin-top: 3px;
}

/* ---------- 订单列表 ---------- */
.tab-scroll {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 6px; overflow-x: auto;
  background: var(--bg); padding: 10px 12px 8px;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-scroll .tab-pill {
  flex-shrink: 0; padding: 6px 16px; border-radius: 16px;
  background: #fff; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line);
}
.tab-scroll .tab-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

.order-card { background: #fff; border-radius: var(--radius); padding: 12px 14px; margin: 0 12px 10px; }
.order-top { display: flex; justify-content: space-between; align-items: center; }
.order-station { font-weight: 700; font-size: 14.5px; max-width: 70%; }
.order-status { font-size: 13px; font-weight: 700; }
.order-line { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.order-code { color: var(--ink); font-weight: 600; }
.order-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); margin-top: 9px; padding-top: 9px;
}
.order-bottom .left { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.order-time { font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.order-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }

/* ---------- 订单详情 ---------- */
.status-hero {
  padding: calc(20px + env(safe-area-inset-top, 0)) 18px 22px; color: #fff;
}
.status-hero-unpaid { background: linear-gradient(135deg, #ff9a3d, #ff7a00); }
.status-hero-pending { background: linear-gradient(135deg, #ffb03a, #ff8f1f); }
.status-hero-accepted { background: linear-gradient(135deg, #4e93ff, #3478f6); }
.status-hero-picked { background: linear-gradient(135deg, #14c084, #00b578); }
.status-hero-done { background: linear-gradient(135deg, #8b95a1, #6b7480); }
.status-hero-canceled { background: linear-gradient(135deg, #a8aeb8, #8a9099); }
.status-main { font-size: 21px; font-weight: 800; }
.status-desc { font-size: 13px; opacity: .92; margin-top: 6px; }
.detail-body { margin-top: -12px; position: relative; z-index: 2; }

.staff-card { display: flex; align-items: center; gap: 10px; }
.staff-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 18px; text-align: center; line-height: 42px;
}
.staff-info { flex: 1; }
.staff-name { font-size: 15px; font-weight: 700; }
.staff-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 配送追踪地图 */
.track-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.track-live { font-size: 11px; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.track-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.track-map {
  width: 100%; height: 280px; border-radius: 12px; border: 1px solid var(--line);
  background: #eef4ef; display: block;
}
.track-location-text { font-size: 13px; color: var(--ink-2); margin: 10px 0 8px; font-weight: 600; }
.track-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track-bar-fill { height: 100%; background: linear-gradient(90deg, #7fe0bc, var(--primary)); border-radius: 3px; transition: width .6s; }
.track-labels { display: flex; justify-content: space-between; margin-top: 10px; }
.track-label-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 20%; }
.track-label-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d7dd; }
.track-label-dot.done { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.track-label-text { font-size: 10.5px; color: var(--ink-3); text-align: center; }
.track-label-text.done { color: var(--primary-dark); font-weight: 600; }

.dp { border-top: 1px dashed var(--line); padding: 10px 0; }
.dp:first-of-type { border-top: none; }
.dp-head { margin-bottom: 4px; display: flex; align-items: center; }
.code-value { font-weight: 700; letter-spacing: .5px; }
.copy-inline { color: var(--primary); font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.edit-code { color: var(--orange); font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.order-no { font-size: 11px; color: var(--ink-3); margin-top: 10px; text-align: right; }

.timeline { padding-left: 4px; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 16px; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 2px; background: var(--line); }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d7dd; margin-top: 4px; flex-shrink: 0; z-index: 1; }
.timeline-dot.dot-active { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.timeline-text { font-size: 13.5px; color: var(--ink-2); }
.timeline-text.text-active { color: var(--ink); font-weight: 600; }
.timeline-time { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.rate-stars { font-size: 26px; color: #f5a623; letter-spacing: 3px; }
.rate-starts-static { font-size: 15px; color: #f5a623; }
.service-link { text-align: center; font-size: 13px; color: var(--ink-2); padding: 16px 0 4px; }

/* ---------- 我的 ---------- */
.profile-hero {
  background: linear-gradient(150deg, #14c084, #00a06b);
  padding: calc(26px + env(safe-area-inset-top, 0)) 18px 48px;
  color: #fff; display: flex; flex-direction: column; align-items: center;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.6);
  text-align: center; line-height: 60px; font-size: 28px; font-weight: 700;
}
.hero-name { font-size: 19px; font-weight: 800; margin-top: 8px; }
.hero-school { font-size: 12px; opacity: .9; margin-top: 3px; }

.profile-body { position: relative; margin-top: -30px; z-index: 2; padding: 0 12px; }
.stats-card { display: flex; }
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 21px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.points-card {
  background: linear-gradient(120deg, #fff8ec, #fff2d8);
  border: 1px solid #f7dfae; border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.points-main { flex: 1; }
.points-num { font-size: 26px; font-weight: 800; color: #c47e00; }
.points-num small { font-size: 12px; font-weight: 400; color: #a9741f; margin-left: 4px; }
.points-sub { font-size: 12px; color: #a9741f; margin-top: 2px; }
.checkin-btn { background: linear-gradient(135deg, #ffb03a, #ff8f1f); color: #fff; border-radius: 20px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; box-shadow: 0 4px 10px rgba(255,143,31,.3); }
.checkin-btn.done { background: #d8dce1; box-shadow: none; }

.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.menu-item:last-child { border-bottom: none; }
.menu-item .m-value { font-size: 12.5px; color: var(--ink-3); }

.coupon-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  position: relative;
}
.coupon-item.used { opacity: .5; }
.coupon-amount {
  width: 66px; text-align: center; color: var(--red); font-weight: 800;
  border-right: 1px dashed var(--line); padding-right: 10px;
}
.coupon-amount .y { font-size: 12px; }
.coupon-amount .n { font-size: 24px; }
.coupon-info { flex: 1; }
.coupon-name { font-size: 14px; font-weight: 700; }
.coupon-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.coupon-status { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.coupon-status.ok { color: var(--primary); }
.coupon-use-btn {
  flex-shrink: 0; align-self: center;
  padding: 6px 14px; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-size: 12px; border: none; font-weight: 600;
  white-space: nowrap;
}
.coupon-use-btn:active { opacity: .85; }

.version { text-align: center; color: #b6bbc2; font-size: 11px; padding: 18px 0 8px; }

/* 选择券弹层 */
.coupon-pick {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.coupon-pick.active { border-color: var(--primary); background: var(--primary-light); }
.coupon-pick .cp-amount { color: var(--red); font-weight: 800; font-size: 18px; width: 60px; text-align: center; }
.coupon-pick .cp-info { flex: 1; }
.coupon-pick .cp-name { font-weight: 700; font-size: 14px; }
.coupon-pick .cp-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.save-row { padding-top: 10px; text-align: center; }

/* ============================================================
 * 骑手端 · 登录 / 数据卡 / 任务大厅 / 我的任务
 * ============================================================ */

/* ---------- 骑手登录页 ---------- */
.rider-login-bg { min-height: 100vh; background: linear-gradient(160deg, #1a2e3a 0%, #0d1b24 60%); padding: 60px 16px 30px; }
.rider-login-hero { text-align: center; color: #fff; margin-bottom: 24px; }
.rider-login-logo {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px;
  background: linear-gradient(135deg, #19c98c, #00b578);
  font-size: 38px; line-height: 72px; box-shadow: 0 8px 24px rgba(0,181,120,.4);
}
.rider-login-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.rider-login-sub { font-size: 12.5px; opacity: .75; margin-top: 6px; }
.rider-login-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.rider-login-item:last-child { border-bottom: none; }
.rider-login-item:active { background: var(--primary-light); }
.rider-login-ava {
  width: 44px; height: 44px; border-radius: 50%; color: #fff;
  text-align: center; line-height: 44px; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.rider-login-name { flex: 1; font-size: 15px; font-weight: 600; }
.rider-login-go { font-size: 13px; color: var(--primary); }
.rider-login-back { text-align: center; color: #fff; opacity: .7; font-size: 13px; margin-top: 24px; cursor: pointer; }

/* ---------- 骑手端顶部数据卡 ---------- */
.rider-hero {
  background: linear-gradient(155deg, #2b3a4a 0%, #16202b 100%);
  color: #fff; padding: 18px 16px 22px; position: relative; overflow: hidden;
}
.rider-hero::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(0, 181, 120, 0.12);
}
.rider-hero-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.rider-ava {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #19c98c, #00b578);
  text-align: center; line-height: 46px; font-size: 22px; font-weight: 800; color: #fff;
  border: 2px solid rgba(255,255,255,.25); flex-shrink: 0;
}
.rider-name { font-size: 17px; font-weight: 800; }
.rider-online { font-size: 11.5px; opacity: .75; margin-top: 3px; }
.rider-online::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #19c98c; margin-right: 5px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(25,201,140,.25);
}
.rider-logout {
  margin-left: auto; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 5px 12px; font-size: 12px;
}
.rider-stats {
  display: flex; margin-top: 16px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 0;
  position: relative; z-index: 1;
}
.rider-stat { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.rider-stat:last-child { border-right: none; }
.rs-num { font-size: 20px; font-weight: 800; color: #fff; }
.rs-label { font-size: 11px; opacity: .7; margin-top: 3px; }
.rider-slogan {
  margin-top: 16px; font-size: 15px; font-weight: 700; text-align: center;
  position: relative; z-index: 1;
}
.rider-slogan-sub { font-size: 11.5px; opacity: .65; text-align: center; margin-top: 4px; position: relative; z-index: 1; }

/* ---------- 骑手端 tab 切换 ---------- */
.rider-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 52px; z-index: 20;
}
.rider-tab {
  flex: 1; text-align: center; padding: 13px 0; font-size: 14px; color: var(--ink-2);
  position: relative; cursor: pointer;
}
.rider-tab.active { color: var(--primary); font-weight: 700; }
.rider-tab.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px; background: var(--primary);
}
.rt-badge {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 18px;
  border-radius: 9px; margin-left: 4px; vertical-align: middle;
}

/* ---------- 任务卡 ---------- */
.task-card {
  background: #fff; border-radius: var(--radius); padding: 13px; margin-bottom: 10px;
  border: 1px solid rgba(31,35,41,.06); box-shadow: 0 1px 6px rgba(31,35,41,.04);
}
.task-card.done { opacity: .65; }
.task-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.task-code { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.task-time { font-size: 11px; color: var(--ink-3); }
.task-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.task-ico { font-size: 15px; flex-shrink: 0; }
.task-station { font-weight: 600; color: var(--ink); }
.task-size { color: var(--ink-2); }
.task-target { color: var(--ink); font-weight: 600; }
.task-code-mask { color: var(--ink-3); font-size: 12px; }
.task-code-mask::before { filter: grayscale(1); opacity: .5; }

.task-parcel {
  background: var(--bg); border-radius: 10px; padding: 9px 11px; margin: 6px 0;
}
.tp-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.tp-station { font-weight: 600; color: var(--ink); }
.tp-size { color: var(--primary); font-weight: 600; }
.tp-code { font-size: 13px; color: var(--ink); }
.tp-code b { color: var(--red); font-size: 15px; letter-spacing: 1px; }
.tp-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.task-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.task-fee { font-size: 18px; font-weight: 800; color: var(--red); }
.task-fee small { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.rider-accept-btn { padding: 0 22px; }
.rider-act-btn { padding: 0 18px; }

/* ============================================================
 * 运营管控端（admin.html） · 桌面优先布局
 * ============================================================ */
#admin-app { min-height: 100vh; background: var(--bg); color: var(--ink); }

/* ---------- 登录页 ---------- */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #1a2e3a 0%, #0d1b24 60%, #16202b 100%);
  padding: 20px;
}
.admin-login-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 16px;
  padding: 32px 26px 22px; text-align: center;
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.admin-login-logo {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px;
  background: linear-gradient(135deg, #2b3a4a, #16202b);
  color: #fff; font-size: 30px; line-height: 60px;
}
.admin-login-title { font-size: 20px; font-weight: 800; }
.admin-login-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.admin-form { margin-top: 22px; text-align: left; }
.admin-field { margin-bottom: 14px; }
.admin-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.admin-field input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; background: var(--bg);
}
.admin-field input:focus { border-color: var(--primary); background: #fff; }
.admin-login-btn {
  width: 100%; height: 44px; border-radius: 22px; background: var(--primary);
  color: #fff; font-size: 15px; font-weight: 700; margin-top: 6px;
}
.admin-login-btn:active { background: var(--primary-dark); }
.admin-login-hint { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.admin-login-hint b { color: var(--primary); }
.admin-login-back { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.admin-login-back a { color: var(--primary); text-decoration: none; }

/* ---------- 主框架 ---------- */
.admin-logged { min-height: 100vh; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(155deg, #2b3a4a, #16202b); color: #fff;
  padding: 14px 22px; box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.admin-top-left { display: flex; align-items: center; gap: 11px; }
.admin-top-logo {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12);
  text-align: center; line-height: 38px; font-size: 20px;
}
.admin-top-name { font-size: 16px; font-weight: 800; }
.admin-top-school { font-size: 11.5px; opacity: .7; margin-top: 2px; }
.admin-top-right { display: flex; gap: 8px; }
.admin-top-link {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 6px 14px; font-size: 13px; text-decoration: none; cursor: pointer;
}
.admin-top-link:active { background: rgba(255,255,255,.2); }

.admin-nav {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; overflow-x: auto;
}
.admin-nav-item {
  flex: 1; min-width: 110px; padding: 14px 8px; font-size: 14px; color: var(--ink-2);
  background: none; cursor: pointer; text-align: center; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.admin-nav-item.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }

.admin-view { padding: 18px 20px 40px; max-width: 1200px; margin: 0 auto; }

/* ---------- 数据看板 ---------- */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-stat-card {
  background: #fff; border-radius: 12px; padding: 16px; text-align: center;
  box-shadow: 0 1px 6px rgba(31,35,41,.05); border: 1px solid rgba(31,35,41,.05);
}
.admin-stat-ico { font-size: 24px; }
.admin-stat-val { font-size: 24px; font-weight: 800; margin-top: 6px; color: var(--ink); }
.admin-stat-label { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.admin-panel {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(31,35,41,.05); border: 1px solid rgba(31,35,41,.05);
}
.admin-panel-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-left: 8px; border-left: 3px solid var(--primary); }

.admin-bars { display: flex; flex-direction: column; gap: 8px; }
.admin-bar-row { display: flex; align-items: center; gap: 10px; }
.admin-bar-label { width: 64px; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.admin-bar-track { flex: 1; height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.admin-bar-fill { height: 100%; border-radius: 7px; transition: width .4s; }
.admin-bar-fill.st-unpaid { background: var(--red); }
.admin-bar-fill.st-pending { background: var(--orange); }
.admin-bar-fill.st-accepted { background: var(--blue); }
.admin-bar-fill.st-picked { background: var(--primary); }
.admin-bar-fill.st-done { background: #8a9099; }
.admin-bar-fill.st-canceled { background: #c0c4cc; }
.admin-bar-num { width: 30px; font-size: 13px; font-weight: 700; text-align: right; }

/* 最近订单表 */
.admin-recent-head, .admin-recent-row { display: flex; align-items: center; gap: 8px; padding: 9px 6px; }
.admin-recent-head { border-bottom: 2px solid var(--line); font-size: 12px; color: var(--ink-3); font-weight: 700; }
.admin-recent-row { border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.admin-recent-row:hover { background: var(--primary-light); }
.admin-recent-head .ar-code, .admin-recent-row .ar-code { flex: 1.4; }
.admin-recent-head .ar-name, .admin-recent-row .ar-name { flex: 1; }
.admin-recent-head .ar-st, .admin-recent-row .ar-st { flex: 1; }
.admin-recent-head .ar-fee, .admin-recent-row .ar-fee { flex: 0.8; color: var(--red); font-weight: 700; }
.admin-recent-head .ar-time, .admin-recent-row .ar-time { flex: 1.3; font-size: 12px; color: var(--ink-3); }

/* ---------- 订单管理 ---------- */
.admin-filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-filter {
  padding: 7px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.admin-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-order-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.admin-order-card {
  background: #fff; border-radius: 12px; padding: 14px;
  border: 1px solid rgba(31,35,41,.06); box-shadow: 0 1px 6px rgba(31,35,41,.04);
}
.admin-order-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.admin-order-head .ao-st { margin-left: auto; }
.ao-code { font-size: 14px; font-weight: 700; }
.ao-st { font-size: 12px; font-weight: 700; }
.ao-st.st-unpaid { color: var(--red); }
.ao-st.st-pending { color: var(--orange); }
.ao-st.st-accepted { color: var(--blue); }
.ao-st.st-picked { color: var(--primary); }
.ao-st.st-done, .ao-st.st-canceled { color: var(--ink-3); }
.admin-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.admin-order-cell { font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.aoc-label { color: var(--ink-3); font-size: 11px; }
.aoc-value { color: var(--ink); word-break: break-all; }
.admin-order-remark { font-size: 12px; color: var(--orange); background: var(--orange-light); border-radius: 6px; padding: 6px 8px; margin-top: 8px; }
.admin-order-foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.ao-btn { padding: 7px 14px; border-radius: 16px; font-size: 12.5px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; }
.ao-link { color: var(--blue); border-color: #c8d8ff; }
.ao-advance { background: var(--primary); color: #fff; border-color: var(--primary); }
.ao-cancel { background: #fff; color: var(--red); border-color: #f5b7b7; }
.ao-verify-flag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #f1f2f4; color: var(--ink-3); flex-shrink: 0;
}
.ao-verify-flag.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ao-verify { background: #1677ff; color: #fff; border-color: #1677ff; }
.ao-verified { background: #fff; color: var(--ink-3); border-color: var(--line); }

/* ---------- 管控端：发放优惠券表单 ---------- */
.admin-form { display: flex; flex-direction: column; gap: 10px; }
.admin-form-row { display: flex; align-items: center; gap: 10px; }
.admin-form-label { width: 96px; flex-shrink: 0; font-size: 13px; color: var(--ink-2); text-align: right; }
.admin-input {
  flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-size: 13.5px; outline: none; background: #fff; color: var(--ink);
}
.admin-input:focus { border-color: var(--primary); }
.admin-btn-primary {
  height: 38px; border: none; border-radius: 19px;
  background: linear-gradient(135deg, #19c98c, #00b578); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 2px;
}
.admin-btn-primary:active { opacity: .85; }
.admin-form-hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 骑手管理 ---------- */
.admin-rider-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.admin-rider-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.admin-rider-ava { width: 44px; height: 44px; border-radius: 50%; color: #fff; text-align: center; line-height: 44px; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.admin-rider-info { flex: 1; }
.admin-rider-name { font-size: 15px; font-weight: 700; }
.admin-rider-stats { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.admin-rider-stats b { color: var(--ink); font-weight: 700; margin-left: 3px; }

/* ---------- 通用 ---------- */
.admin-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 24px 0; }

.admin-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(31,35,41,.92); color: #fff; padding: 10px 18px; border-radius: 20px;
  font-size: 13px; z-index: 9999; opacity: 0; transition: opacity .2s, transform .2s;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 桌面端收窄为可读宽度 */
@media (min-width: 768px) {
  #admin-app { background: #e9edf1; }
  .admin-view { padding: 22px 24px 40px; }
}

@media (max-width: 600px) {
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-order-grid { grid-template-columns: 1fr; }
  .admin-recent-head .ar-time, .admin-recent-row .ar-time { display: none; }
  .admin-top-school { display: none; }
}

/* ============================================================
 * 用户登录页（手机号 + 密码 + AI 验证） & 骑手认证表单
 * ============================================================ */
.login-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #14c084 0%, #00b578 55%, #008f5e 100%);
  padding: calc(28px + env(safe-area-inset-top, 0)) 16px 30px;
}
.login-hero { text-align: center; color: #fff; margin-bottom: 18px; }
.login-logo {
  width: 66px; height: 66px; border-radius: 18px; border: 3px solid rgba(255,255,255,.7);
  object-fit: cover; background: #fff; margin: 0 auto 10px; display: block;
}
.login-brand { font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.login-sub { font-size: 12.5px; opacity: .9; margin-top: 5px; }

.login-card {
  background: #fff; border-radius: 18px; padding: 18px 18px 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18); max-width: 420px; margin: 0 auto;
}
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.login-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 15px; color: var(--ink-3);
  position: relative; cursor: pointer; font-weight: 600;
}
.login-tab.active { color: var(--primary); }
.login-tab.active::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 2px; background: var(--primary);
}

.login-field { margin-bottom: 13px; }
.login-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.login-field input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 11px;
  padding: 0 12px; font-size: 14px; outline: none; background: var(--bg); color: var(--ink);
}
.login-field input:focus { border-color: var(--primary); background: #fff; }
.login-field-col label { margin-bottom: 8px; }

.ai-verify-row { margin: 16px 0; }
.ai-verify-btn {
  width: 100%; height: 48px; border: 1.5px dashed #c8d8e0; border-radius: 12px;
  background: #f5faf8; color: var(--ink-2); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ai-verify-btn.loading { color: var(--blue); border-color: #b8d0ff; background: #eef4ff; }
.ai-verify-btn.ai-verified { color: var(--primary); border-color: var(--primary); border-style: solid; background: var(--primary-light); }

.login-submit-btn {
  width: 100%; height: 46px; border-radius: 23px; background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 700; margin-top: 4px;
}
.login-submit-btn:active { background: var(--primary-dark); }
.login-tip { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* 骑手认证表单（复用 .login-field，位于白色 .card 内） */
.rider-auth-card { padding: 16px 16px 18px; }
.rider-auth-submit { margin-top: 18px; }
.rider-photo-pick {
  border: 1.5px dashed #c8d8e0; border-radius: 11px; padding: 22px 12px;
  text-align: center; color: var(--ink-3); font-size: 13px; background: var(--bg);
  cursor: pointer;
}
.rider-photo-pick.picked { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.rider-photo-preview {
  width: 100%; max-height: 180px; object-fit: cover; border-radius: 11px;
  margin-top: 10px; border: 1px solid var(--line); display: block;
}
