:root {
  --brand: #16b777;
  --brand-dark: #109663;
  --brand-soft: #e7f8f1;
  --ink: #1f2d3d;
  --text: #33475b;
  --muted: #8a94a6;
  --light: #98a3b1;
  --line: #eef1f5;
  --danger: #e05a5a;
  --orange: #ff5722;
  --side-w: 232px;      /* 桌面端侧边栏宽度 */
  --main-max: 1440px;   /* 桌面端主内容区最大宽度 */
  --main-pad-x: 28px;   /* 桌面端主内容区左右内边距，顶栏与之对齐 */
}

[v-cloak] { display: none; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #f4f6f9;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 顶部栏 ---------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12232e;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.brand i { color: var(--brand); font-size: 22px; }

.header-right { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5b6b7b;
}

.user-chip em {
  font-style: normal;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
}

.user-chip i { font-style: normal; color: var(--light); }

.icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f5f7fa;
  color: #5b6b7b;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- 布局 ---------- */
.app-shell { min-height: 100vh; padding-top: 56px; }

.app-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 14px calc(130px + env(safe-area-inset-bottom));
}

.app-side { display: none; }
}

/* ---------- 商家入驻与审核 ---------- */
.document-type-admin .form-grid { align-items: end; }
.document-type-option { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--text); }
.document-type-option input { accent-color: var(--brand); }
.apply-card { max-width: 720px; }
.apply-form { width: 100%; }
.apply-link { display: block; width: 100%; margin-top: 10px; text-align: center; }
.login-tip { margin: 10px 0 0; text-align: center; }
.portal-entry { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.portal-entry p { margin: 6px 0 10px; }
.portal-entry-row { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-entry-row .layui-input { flex: 1 1 160px; min-width: 140px; }
.pending-list { display: flex; flex-direction: column; }
.pending-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pending-row:first-child { border-top: 0; }
.pending-main { flex: 1; min-width: 0; }
.pending-main b { display: block; }
.pending-main small { display: block; margin-top: 2px; }
.pending-price { min-width: 90px; text-align: right; font-weight: 600; color: var(--brand); }
.pending-actions { display: flex; gap: 8px; }
.apply-actions, .onboarding-actions {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.onboarding-status {
display: inline-flex;
align-items: center;
border-radius: 20px;
padding: 4px 10px;
background: #f3f6f9;
color: #647384;
font-size: 12px;
font-style: normal;
white-space: nowrap;
}
.onboarding-status.status-2 { background: #fff3e0; color: #c77b18; }
.onboarding-status.status-3 { background: var(--brand-soft); color: var(--brand-dark); }
.onboarding-status.status-4 { background: #fff0ef; color: #d34b4b; }
.onboarding-notice { border-left: 3px solid #e6a23c; background: #fffbf2; }
.onboarding-notice p { margin: 6px 0 0; color: #8d6320; line-height: 1.6; }
.onboarding-steps {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 0 0 14px;
padding: 14px;
background: #fff;
border-radius: 12px;
color: var(--muted);
font-size: 13px;
}
.onboarding-steps span.active { color: var(--brand-dark); font-weight: 600; }
.onboarding-steps i { width: 38px; height: 1px; background: var(--line); }
.document-type { padding: 14px 0; border-top: 1px solid var(--line); }
.document-type:first-of-type { border-top: 0; }
.document-type-head, .document-upload, .document-item {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
}
.document-type-head { margin-bottom: 10px; }
.required-mark {
margin-left: 7px;
color: #d34b4b;
font-size: 11px;
font-style: normal;
}
.document-items { display: grid; gap: 8px; }
.stall-scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.stall-scope-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.stall-scope-item input { accent-color: var(--brand); }
.scope-save { margin-top: 10px; }
/* 档口负责人多选 */
.owner-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}
.owner-pick-list { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; padding: 2px; }
.owner-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.owner-pick-item.selected { border-color: var(--brand); background: var(--brand-soft); }
.owner-pick-item input { accent-color: var(--brand); }
.owner-pick-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.owner-pick-main b { font-size: 13px; font-weight: 600; }
.owner-pick-main small { font-size: 12px; }
.owner-pick-hint { color: var(--muted); font-size: 11px; font-style: normal; text-align: right; }
.owner-pick-item.selected .owner-pick-hint { color: var(--brand-dark); }
.new-owner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.document-item {
justify-content: flex-start;
min-height: 34px;
padding: 6px 10px;
border-radius: 8px;
background: #f7f9fb;
}
.document-item a { color: var(--brand-dark); overflow-wrap: anywhere; }
.danger-link { color: var(--danger); }
.document-upload { justify-content: flex-start; margin-top: 10px; }
.expiry-input { width: 170px; }
.upload-label { position: relative; overflow: hidden; cursor: pointer; }
.upload-label input[type="file"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.onboarding-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.onboarding-row {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 0;
text-align: left;
cursor: pointer;
}
.onboarding-row.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.onboarding-row-main { display: grid; gap: 5px; min-width: 0; }
.onboarding-row-main small { color: var(--muted); font-size: 12px; }
.onboarding-row-flags { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.expiry-warning { color: #d34b4b; font-size: 11px; font-style: normal; }
.expiry-warning.soon { color: #c77b18; }
.onboarding-detail { scroll-margin-top: 70px; }
.onboarding-remark { min-height: 76px; padding: 10px; resize: vertical; }

@media (max-width: 639px) {
.apply-card { max-width: 100%; padding: 22px 16px; }
.apply-actions, .onboarding-actions { justify-content: stretch; }
.apply-actions .btn, .onboarding-actions .btn { flex: 1; }
.onboarding-row { align-items: flex-start; }
.onboarding-row-flags { flex-direction: column; align-items: flex-end; }
.onboarding-steps { gap: 7px; padding: 12px 6px; font-size: 12px; }
.onboarding-steps i { width: 18px; }
.card-head .muted { display: none; }
}

@media (min-width: 900px) {
  .header-inner {
    max-width: none;
    padding: 0 20px;
  }

  .app-shell { padding-left: var(--side-w); }
  .app-main { max-width: var(--main-max); padding: 24px var(--main-pad-x) 120px; }

  .app-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: var(--side-w);
    padding: 16px 12px;
    background: #fff;
    border-right: 1px solid var(--line);
  }
}

.side-nav { display: flex; flex-direction: column; gap: 6px; }

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #41525f;
  text-decoration: none;
  font-size: 15px;
}

.side-link i { font-size: 18px; }
.side-link:hover { background: #f5f8f7; }
.side-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.side-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ---------- 底部导航（手机） ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
}

.tab i { font-size: 22px; }
.tab.active { color: var(--brand); }

.tab-badge {
  position: absolute;
  top: 4px;
  left: 52%;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
  padding: 0 5px;
  border-radius: 8px;
}

@media (min-width: 900px) {
  .tabbar { display: none; }
}

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #f2f5f8;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: .15s;
}

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(22, 183, 119, .22);
}

.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: #fff; border: 1px solid #e3e8ee; color: #41525f; }
.btn-danger { background: #e05a5a; color: #fff; font-weight: 600; }
.btn-danger:active { background: #c94848; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn-lg { height: 50px; border-radius: 12px; font-size: 17px; }
.btn-block { width: 100%; }

.link-danger {
  border: none;
  background: none;
  color: var(--danger);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 13px; color: #7b8898; }

.layui-input {
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fbfcfd;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}

.layui-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(22, 183, 119, .12);
}

select.layui-input {
  height: 44px;
  padding-right: 8px;
  appearance: auto;
  cursor: pointer;
}

input[type="date"].layui-input {
  min-width: 0;
  padding: 0 8px;
}

.search { margin-bottom: 12px; }

.date-range { cursor: pointer; }

/* ---------- 页头 ---------- */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-head-main { flex: 1; min-width: 0; }

.page-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.page-head p { margin: 3px 0 0; }

.muted { color: var(--muted); }
.warn-text { color: #a66a00; }
.small { font-size: 12px; }
.amount { color: var(--orange); }

/* ---------- 首页 ---------- */
.hero-card {
  background: linear-gradient(135deg, #16b777, #0e9d8c);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(22, 183, 119, .22);
}

.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hero-title { font-size: 13px; opacity: .92; }
.hero-sub { font-size: 20px; font-weight: 700; margin-top: 4px; }

.hero-btn {
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
}

.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 17px; }
.hero-stats span { font-size: 11px; opacity: .88; }

.step-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px 8px;
  border-radius: 12px;
  background: #fff;
  color: #5b6b7b;
  font-size: 13px;
}

.step-tip i { color: #c8d2dc; }

.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 { margin: 0; font-size: 17px; }

.supplier-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

@media (min-width: 700px) {
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
}

.supplier-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}

.supplier-card:active { transform: scale(.99); }

@media (hover: hover) {
  .supplier-card:hover { box-shadow: 0 8px 20px rgba(31, 45, 61, .1); }
}

.supplier-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.supplier-body { flex: 1; min-width: 0; }
.supplier-name { margin-bottom: 4px; font-size: 15px; font-weight: 700; }

.supplier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.supplier-go { color: var(--brand-dark); font-size: 13px; font-weight: 600; }

.cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 22px;
  background: #20313c;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  cursor: pointer;
  z-index: 90;
}

@media (min-width: 900px) {
  .cart-fab { right: 36px; bottom: 36px; }
}

/* ---------- 商品 ---------- */
.group-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid #e9eef3;
  border-radius: 18px;
  background: #fff;
  color: #5b6b7b;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.group-block {
  background: #fff;
  border-radius: 14px;
  padding: 6px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
}

.group-title {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.product-list { }

.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f2f4f7;
}

.product-row:last-child { border-bottom: none; }
.product-row.disabled { opacity: .55; }
.product-info { flex: 1; min-width: 0; }

/* 商品缩略图：图片经令牌鉴权取 blob 展示，未上传时显示「暂无图片」占位 */
.p-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #eef1f4;
  background: #fff;
  object-fit: cover;
  display: block;
}

.p-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  background: #f6f7f9;
  color: #a6b0ba;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  user-select: none;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}

.tag {
  padding: 1px 6px;
  border-radius: 6px;
  background: #f3f6f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

/* 人员证件列表：登录账号列 */
.account-name {
  font-weight: 600;
  color: var(--brand-dark);
}
.tag-role {
  background: #eaf4ff;
  color: #1a6dc2;
}
.tag-muted {
  background: #f4f4f5;
  color: #9aa4af;
}
.tag-warn {
  background: #fff4e5;
  color: #d98200;
}
.staff-tip {
  margin: 8px 2px 0;
}

/* ---------- 商品品类 / 改价审核 ---------- */
.pending-price-hint {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff4e5;
  color: #d98200;
  font-size: 12px;
}
.price-change-old {
  color: var(--light);
  font-weight: 400;
  font-size: 13px;
  text-decoration: line-through;
}
.price-up { color: #d9534f; }
.price-down { color: #1a9c5b; }
.group-actions { white-space: nowrap; }
.group-actions .btn, .group-actions .link-danger { margin-right: 4px; }

.product-price { margin-top: 4px; }
.product-price b { color: var(--orange); font-size: 17px; }
.product-price span { color: var(--light); font-size: 12px; }

.product-action { flex-shrink: 0; }
.off-sale { color: var(--light); font-size: 13px; }

.stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
}

.stepper button {
  width: 34px;
  height: 34px;
  border: none;
  background: #f7f9fb;
  color: var(--brand-dark);
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
}

.stepper button:active { background: var(--brand-soft); }

.stepper span {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.stepper input {
  width: 46px;
  height: 34px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

/* ---------- 悬浮结算条 ---------- */
.page-cartbar { padding-bottom: 24px; }

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #20313c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  z-index: 90;
}

.cart-bar-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cart-bar-info b { margin-left: auto; color: #ffd166; font-size: 17px; }
.cart-bar .btn { height: 40px; }

@media (min-width: 900px) {
  .cart-bar {
    left: calc(var(--side-w) + var(--main-pad-x));
    right: var(--main-pad-x);
    bottom: 24px;
    max-width: calc(var(--main-max) - var(--main-pad-x) * 2);
    margin: 0 auto;
  }
}

.submit-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(31, 45, 61, .12);
  z-index: 90;
}

.submit-total { flex: 1; font-size: 14px; color: var(--text); }
.submit-total b { color: var(--orange); font-size: 20px; margin-left: 2px; }
.submit-total .muted { display: block; margin-top: 2px; }

@media (min-width: 900px) {
  .submit-bar {
    left: calc(var(--side-w) + var(--main-pad-x));
    right: var(--main-pad-x);
    bottom: 24px;
    max-width: calc(var(--main-max) - var(--main-pad-x) * 2);
    margin: 0 auto;
  }
}

/* ---------- 购物车 ---------- */
.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.cart-line:last-child { border-bottom: none; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-amount { width: 74px; text-align: right; font-weight: 700; color: var(--orange); }
.cart-line .stepper input { width: 42px; }

@media (max-width: 420px) {
  .cart-line { flex-wrap: wrap; }
  .cart-line-info { flex: 1 1 100%; }
  .cart-line-amount { margin-left: auto; }
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

.pay-options { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }

@media (min-width: 640px) {
  .pay-options { grid-template-columns: repeat(3, 1fr); }
}

.pay-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid #e9eef3;
  border-radius: 12px;
  background: #fbfcfd;
  cursor: pointer;
}

.pay-option input { display: none; }
.pay-option.active { border-color: var(--brand); background: var(--brand-soft); }
.pay-label { font-weight: 600; font-size: 14px; }
.pay-hint { font-style: normal; color: var(--muted); font-size: 12px; }

/* ---------- 订单 ---------- */
.status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar,
.group-chips::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
  height: 0;
  display: none;
}

.status-tabs button {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: #fff;
  color: #5b6b7b;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.status-tabs button.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.filter-card { padding: 12px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.filter-row:last-child { margin-bottom: 0; }
.filter-row .layui-input { flex: 1; min-width: 120px; }
.filter-row select.layui-input { flex: 1 1 45%; }

.order-card {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
  cursor: pointer;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.order-no { letter-spacing: .3px; }

.status {
  padding: 2px 9px;
  border-radius: 20px;
  background: #f2f5f8;
  color: #5b6b7b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.st-1 { color: #e07d1c; background: #fff4e6; }
.st-2 { color: #2a72d4; background: #e8f1ff; }
.st-3 { color: #0f9d63; background: #e9f8f2; }
.st-4 { color: #7b8898; background: #eef1f5; }
.st-5 { color: #d64545; background: #fdecec; }
.st-6 { color: #d64545; background: #fdecec; }
.st-7 { color: #7b8898; background: #eef1f5; }

.order-supplier { margin: 8px 0 4px; font-size: 16px; font-weight: 700; }
.order-items { color: #5b6b7b; font-size: 14px; line-height: 1.5; }

.order-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--light);
  font-size: 12px;
}

.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.order-amount { color: var(--orange); font-size: 19px; font-weight: 700; }
.order-amount em { margin-left: 6px; color: var(--light); font-size: 12px; font-style: normal; font-weight: 400; }

.return-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff0f0;
  color: #d64545;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* 档口发起取消、商家未处理：拦下接单 / 发货 */
.pending-cancel-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff6f6;
  border: 1px solid #ffd9d9;
}

.pending-cancel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pending-cancel-text b { color: #d64545; font-size: 13px; font-weight: 600; line-height: 1.45; }
.pending-cancel-text span { color: #b06a6a; font-size: 12px; line-height: 1.4; }
.pending-cancel-tip .link-btn { flex-shrink: 0; color: #d64545; font-weight: 600; }

.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.status-banner {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a3a48, #465d6f);
  color: #fff;
}

.status-banner.st-1 { background: linear-gradient(135deg, #ffb347, #f4802f); }
.status-banner.st-2 { background: linear-gradient(135deg, #4a90e2, #2a72d4); }
.status-banner.st-3 { background: linear-gradient(135deg, #22b573, #0f9d63); }
.status-banner.st-4 { background: linear-gradient(135deg, #9aa7b4, #7b8898); }
.status-banner.st-5 { background: linear-gradient(135deg, #e57373, #d64545); }
.status-banner.st-6 { background: linear-gradient(135deg, #e57373, #d64545); }
.status-banner.st-7 { background: linear-gradient(135deg, #9aa7b4, #7b8898); }

.status-banner-title { font-size: 22px; font-weight: 700; }
.status-banner-sub { margin-top: 4px; font-size: 13px; opacity: .92; }
.status-banner-no { margin-top: 10px; font-size: 12px; opacity: .75; }

.info-rows { display: flex; flex-direction: column; gap: 10px; }
.info-row { display: flex; gap: 12px; font-size: 14px; }
.info-row span { flex-shrink: 0; width: 76px; color: var(--light); }
.info-row b { color: var(--text); font-weight: 500; word-break: break-all; }

.timeline { margin: 0; padding: 4px 0 0 4px; list-style: none; }

.timeline li {
  position: relative;
  margin-left: 4px;
  padding: 0 0 16px 22px;
  border-left: 2px solid var(--line);
}

.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline-dot {
  position: absolute;
  top: 3px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline b { font-size: 14px; }
.timeline em { margin-left: 8px; color: var(--light); font-size: 12px; font-style: normal; }
.timeline p { margin: 4px 0 0; color: #7b8898; font-size: 13px; }

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 12px;
}

.detail-actions .btn { flex: 1 1 auto; min-width: 120px; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.layui-table { margin: 0; font-size: 14px; }
.layui-table th { background: #f8fafb; color: #5b6b7b; font-weight: 600; }
.layui-table td, .layui-table th { padding: 10px 8px; border-color: #f0f3f6; }
.layui-table .num { text-align: right; white-space: nowrap; }
.item-table .item-name { font-weight: 600; }

/* 单品取消申请（订单详情商品行右侧） */
.item-cancel-cell { white-space: nowrap; }
.item-cancel-cell .onboarding-status { display: inline-block; }
.item-cancel-cell .muted { display: block; margin-top: 2px; }
.item-cancel-actions { display: flex; gap: 6px; margin-top: 4px; }
.item-cancel-actions .btn { flex: 0 0 auto; }
.item-cancel-actions:empty { display: none; }

/* 取消申请列表：原因/处理意见列 */
.cell-remark {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
  color: #5b6b7b;
}
td.item-cancel-actions { white-space: nowrap; }

.total-line { padding-top: 10px; text-align: right; color: #5b6b7b; }
.total-line b { margin-left: 6px; color: var(--orange); font-size: 19px; }

/* ---------- 统计 ---------- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  padding: 14px 8px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
}

.metric span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.metric b { font-size: 20px; color: #12232e; }

/* ---------- 下单成功 ---------- */
.success-card {
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 30px rgba(31, 45, 61, .08);
}

.success-icon { color: var(--brand); font-size: 56px; line-height: 1; }
.success-card h2 { margin: 10px 0 6px; font-size: 22px; }
.success-card > p { margin: 0 0 18px; font-size: 13px; }

.success-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fb;
  text-align: left;
  font-size: 14px;
}

.success-detail div { display: flex; justify-content: space-between; }
.success-detail span { color: var(--muted); }
.success-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

@media (min-width: 640px) {
  .success-actions { flex-direction: row; justify-content: center; }
  .success-actions .btn { flex: 0 0 auto; min-width: 160px; }
}

/* ---------- 其他 ---------- */
.empty { padding: 40px 16px; color: var(--light); text-align: center; font-size: 14px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 20px;
  color: #7b8898;
  font-size: 13px;
}

/* ---------- 登录 ---------- */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: linear-gradient(160deg, #e9f9f1 0%, #f4f6f9 45%, #eef4fb 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 45, 61, .1);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(22, 183, 119, .28);
}

.login-brand h1 { margin: 0 0 4px; font-size: 21px; }
.login-brand p { margin: 0 0 20px; color: var(--light); font-size: 13px; }
.login-form .btn { margin-top: 6px; }

.login-demo { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.login-demo-title { margin-bottom: 10px; color: var(--light); font-size: 12px; text-align: center; }
.demo-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.demo-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid #e9eef3;
  border-radius: 10px;
  background: #fbfcfd;
  font-family: inherit;
  cursor: pointer;
}

.demo-btn b { font-size: 13px; color: var(--text); }
.demo-btn span { font-size: 11px; color: var(--light); }
.demo-btn:active { background: var(--brand-soft); border-color: var(--brand); }

.login-foot { margin-top: 14px; color: #a6b1bd; font-size: 12px; }

/* 商家证件过期：登录页醒目提示 + 证件清单 */
.credential-expired {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid #f3c9c9;
  border-left: 4px solid var(--danger, #e05a5a);
  border-radius: 12px;
  background: #fff6f5;
}

.credential-expired-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c0392b;
  font-size: 14px;
}

.credential-expired-head i { font-size: 16px; }
.credential-expired-text { margin: 8px 0 0; color: #8a4a44; font-size: 13px; line-height: 1.6; }

.credential-expired-list {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  list-style: none;
  display: grid;
  gap: 6px;
}

.credential-expired-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.credential-expired-list em { color: #c0392b; font-style: normal; font-size: 12px; }
.credential-expired-tip { margin: 8px 0 0; color: var(--light); font-size: 12px; line-height: 1.6; }
.credential-renewal-notice { margin-bottom: 6px; }
.credential-renewal-notice b { color: #8d6320; }

/* ---------- 商家：商品管理 / 弹窗 ---------- */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f2f4f7;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fbfcfd;
  color: #5b6b7b;
  font-size: 13px;
  cursor: pointer;
}

.switch-line input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- 站内消息 ---------- */
.msg-btn { position: relative; }

.msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

.msg-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: transparent;
}

.msg-panel {
  position: fixed;
  top: 62px;
  right: 16px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 70vh;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(31, 45, 61, .18);
}

.msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f2f4f7;
}

.link-btn {
  border: none;
  background: none;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.msg-list { overflow-y: auto; }

.msg-item {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f7f9;
  cursor: pointer;
}

.msg-item:hover { background: #f8fafb; }
.msg-item.unread { background: #f3fbf7; }

.msg-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.msg-title { font-size: 14px; font-weight: 600; }
.msg-time { flex-shrink: 0; color: var(--light); font-size: 11px; }

.msg-content {
  margin-top: 5px;
  color: #5b6b7b;
  font-size: 12px;
  line-height: 1.6;
}

.msg-action {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 12px;
}

.msg-action .layui-icon { font-size: 12px; }

.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.unit-chips .chip {
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 12px;
}

.goods-list { padding: 4px 16px; }

.goods-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.goods-row:last-child { border-bottom: none; }
.goods-main { flex: 1; min-width: 0; }
.goods-main .product-name { font-size: 15px; }

.goods-filters { margin-bottom: 10px; }

/* 商品弹窗：图片上传与预览 */
.image-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.image-preview {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid #eef1f4;
  background: #fff;
  object-fit: cover;
  display: block;
}

.image-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f9;
  color: #a6b0ba;
  font-size: 12px;
  user-select: none;
}

.image-field-main { flex: 1; min-width: 0; }
.image-field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.image-field-actions .upload-label { margin: 0; }
.image-field-actions .link-danger { font-size: 12px; }

.goods-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 审核未通过的商品「上架」按钮置灰，点击后引导去修改 */
.goods-actions .btn.is-locked {
  color: var(--muted, #9aa3ab);
  border-color: #e3e6ea;
}

.btn-xs {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.state-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
}

.state-tag.off { background: #f3f6f9; color: var(--muted); }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .48);
}

.modal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f4f7;
}

.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head p { margin: 4px 0 0; }

.modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f5f8f7;
  color: #5b6b7b;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: #eef2f2; }

.modal-body {
  padding: 16px 20px 4px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f2f4f7;
}

.modal-card.modal-lg { max-width: 860px; }
.modal-section {
  margin: 18px 0 10px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.modal-section:first-child { margin-top: 0; }
.readonly-note {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f4f8ff;
  color: #4a6a92;
  font-size: 12px;
  line-height: 1.6;
}
.readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.readonly-item {
  display: grid;
  gap: 3px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #f8fafb;
}
.readonly-item.wide { grid-column: 1 / -1; }
.readonly-item span { color: var(--muted); font-size: 12px; }
.readonly-item b { color: var(--text); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.onboarding-row-action { color: var(--brand-dark); font-size: 12px; }
.scope-hint { margin-top: 8px; }

/* ---------- 弹窗 · 文件选择 ---------- */
.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px dashed #d8dee7;
  border-radius: 10px;
  background: #fafbfd;
  transition: border-color .16s ease, background .16s ease;
}

.file-picker:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.file-picker.has-file {
  border-style: solid;
  border-color: #d7e8e1;
  background: #f5fbf8;
}

.file-picker.has-file:hover { border-color: var(--brand); }

.file-picker-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.field .file-picker-btn { color: #fff; }
.field .file-picker-btn span { color: #fff; }

.file-picker-btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 10px rgba(22, 183, 119, .24);
}

.file-picker-btn .layui-icon { font-size: 15px; color: #fff; }

.file-picker-btn.is-disabled {
  background: #b9c4cf;
  box-shadow: none;
  cursor: not-allowed;
}

.file-picker-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker-name.is-placeholder { color: var(--light); font-size: 12.5px; }
.file-picker-name:not(.is-placeholder) { font-weight: 500; }

.file-picker-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 13px;
  text-decoration: none;
}

.file-picker-link:hover { text-decoration: underline; }
.file-picker-link .layui-icon { font-size: 14px; }

.file-picker-clear {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.file-picker-clear:hover {
  background: #fdeaea;
  color: var(--danger);
}

@media (max-width: 640px) {
  .file-picker { flex-wrap: wrap; }
  .file-picker-name { flex-basis: 100%; order: 3; }
}

/* ---------- 退货处理 ---------- */
.return-order { padding-bottom: 14px; }

.return-range { cursor: pointer; }

.return-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.return-order-main { flex: 1; min-width: 0; }
.return-order-main .muted { margin-top: 3px; }

.return-order-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.return-qty {
  width: 92px;
  height: 36px;
  padding: 0 8px;
  text-align: right;
}

.return-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #eef1f5;
}

.return-form .layui-input { flex: 1 1 200px; height: 40px; line-height: 40px; }
.return-form .btn { flex-shrink: 0; height: 40px; }

.return-record {
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.return-record:last-child { border-bottom: none; }

.return-record-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.return-record-head .amount { margin-left: auto; font-weight: 700; }
.return-record-items { margin-top: 6px; line-height: 1.6; }
.return-record-time { margin-left: 8px; white-space: nowrap; }

/* ---------- 退款申请（档口提交 / 学校审批 / 商家查看） ---------- */
.refund-hint {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.6;
}

.refund-qty {
  width: 92px;
  height: 36px;
  padding: 0 8px;
  text-align: right;
}

.item-table .col-check { width: 46px; text-align: center; }
.item-table .col-refund-qty { width: 130px; }
.item-table tr.row-disabled td { opacity: .5; }
.error-text { display: block; margin-top: 3px; color: #d34b4b; font-size: 11px; }

.refund-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.refund-photo-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e8ee;
  background: #f7f9fb;
}

.refund-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.refund-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.refund-photo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px dashed #c9d3de;
  border-radius: 8px;
  background: #fbfcfe;
  color: #74828f;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.refund-photo-add:hover { border-color: var(--brand); color: var(--brand-dark); }
.refund-photo-add input[type="file"] { display: none; }

.refund-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eef1f5;
  font-size: 13px;
}

.refund-total .amount { font-size: 16px; font-weight: 700; }

.refund-row {
  padding: 14px 0;
  border-bottom: 1px solid #f2f4f7;
}

.refund-row:last-child { border-bottom: none; }

.refund-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.refund-row-head b.link { color: var(--brand-dark); cursor: pointer; }
.refund-row-head b.link:hover { text-decoration: underline; }
.refund-row-head .amount { margin-left: auto; font-weight: 700; font-size: 15px; }

.refund-row-items { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.refund-item .item-name { font-weight: 600; margin-right: 4px; }

.refund-reason {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f9fb;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.refund-photos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.refund-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e8ee;
  background: #f7f9fb;
  color: #74828f;
  font-size: 12px;
  text-decoration: none;
}

.refund-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refund-photo:hover { border-color: var(--brand); }

.refund-meta { margin-top: 8px; line-height: 1.7; }

.refund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- 建设中模块 ---------- */
.coming-status {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 20px;
  background: #eef1f5;
  color: #8a94a6;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.coming-status.warn { background: #fff3e0; color: #d98324; }

.coming-desc { margin: 0; color: #5b6675; font-size: 14px; line-height: 1.75; }

.coming-list { margin: 0; padding: 0; list-style: none; }

.coming-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #f2f5f8;
  font-size: 14px;
}

.coming-list li:first-child { border-top: none; padding-top: 2px; }

.coming-list .layui-icon { color: #c3cad4; font-size: 16px; }
.coming-list .layui-icon.done { color: var(--brand); }

.coming-text { flex: 1; color: #5b6675; }
.coming-text.done { color: var(--text); }

.coming-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 12px;
  background: #f4f6f9;
  color: #a3adba;
  font-size: 11px;
  font-style: normal;
}

.coming-tag.on { background: var(--brand-soft); color: var(--brand-dark); }

.login-card.apply-card { max-width: 720px; }

@media (max-width: 639px) {
  .login-card.apply-card { max-width: 100%; }
}
