/* 小程序手机外框 */
.phone-stage {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}

.phone {
  width: 375px;
  height: 780px;
  background: #0F1B33;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 16px 48px rgba(15, 27, 51, 0.28);
  position: relative;
  flex-shrink: 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #F5F7FA;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status {
  height: 36px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 4px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.phone-screen:has(.mini-body.view.active .mini-banner) .phone-status,
.phone-screen:has(.mini-body.view.active .mini-nav.is-brand) .phone-status {
  background: #1677FF;
  color: #fff;
}

.mini-nav {
  height: 44px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  position: relative;
}
.mini-nav .back {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.mini-nav .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mini-nav .right {
  font-size: 13px;
  color: var(--brand);
  background: none;
  border: none;
  font-weight: 500;
}
.mini-nav.is-brand {
  background: #1677FF;
  box-shadow: none;
}
.mini-nav.is-brand .back,
.mini-nav.is-brand .title,
.mini-nav.is-brand .right { color: #fff; }

.mini-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #F5F7FA;
}
.mini-body.view { display: none; }
.mini-body.view.active { display: block; }

.mini-tabbar {
  height: 56px;
  background: var(--surface);
  border-top: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.mini-tabbar button {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
  padding: 0;
  font-weight: 400;
}
.mini-tabbar button.active { color: var(--brand); font-weight: 600; }
.mini-tabbar .tab-icon { font-size: 18px; line-height: 1; }
.mini-tabbar button.active .tab-icon { transform: scale(1.05); }

/* 首页 / 我的 — 蓝色顶区 */
.mini-banner {
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 55%, #69B1FF 100%);
  color: #fff;
  padding: 12px 20px 28px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.mini-banner::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.mini-banner::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.mini-banner h2 {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}
.mini-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
  opacity: 1;
  position: relative;
  z-index: 1;
}
.mini-banner .right,
.mini-banner button {
  position: relative;
  z-index: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 14px;
  padding: 4px 12px;
  height: auto;
  font-size: 12px;
  font-weight: 500;
}

.mini-section {
  margin: 12px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mini-section-hd {
  padding: 14px 16px 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  color: var(--ink);
}
.mini-section-hd .more {
  font-size: 12px;
  color: var(--brand);
  font-weight: 400;
  background: none;
  border: none;
}

.mini-list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
  gap: 12px;
  background: var(--surface);
  cursor: pointer;
}
.mini-list-item:last-child { border-bottom: none; }
.mini-list-item:active { background: #F5F7FA; }
.mini-list-item .info { flex: 1; min-width: 0; }
.mini-list-item .info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-list-item .info p {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
  line-height: 1.4;
}
.mini-list-item .price {
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.mini-list-item .price small {
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}

/* 独立列表项做成卡片 */
.mini-body > .mini-list-item,
.mini-body > .plan-row {
  margin: 0 12px 10px;
  border-radius: 12px;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mini-body > .mini-list-item:first-of-type,
.mini-body > .plan-row:first-of-type { margin-top: 12px; }
.mini-body > .mini-nav + .mini-list-item,
.mini-body > .mini-nav + .plan-row { margin-top: 12px; }
.mini-body > .tabs + .mini-list-item,
.mini-body > .tabs + .plan-row { margin-top: 4px; }

.mini-section .mini-list-item {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #F0F0F0;
}
.mini-section .mini-list-item:last-child { border-bottom: none; }

.mini-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid #F5F5F5;
  font-size: 14px;
}
.mini-body > .mini-cell {
  margin: 0 12px;
}
.mini-section .mini-cell { margin: 0; }
.mini-cell .label { color: rgba(0, 0, 0, 0.45); }
.mini-cell .value { font-weight: 500; text-align: right; max-width: 60%; color: var(--ink); }
.mini-cell .arrow::after {
  content: "›";
  margin-left: 6px;
  color: rgba(0, 0, 0, 0.25);
  font-size: 18px;
}

.mini-form {
  background: var(--surface);
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mini-form .field {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5;
  gap: 12px;
}
.mini-form .field:last-child { border-bottom: none; }
.mini-form .field label {
  width: 104px;
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}
.mini-form .field input,
.mini-form .field select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  text-align: right;
  font-family: inherit;
  color: var(--ink);
}

.mini-footer-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding: 10px 16px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mini-footer-bar .price-info { flex: 1; font-size: 13px; color: rgba(0, 0, 0, 0.45); }
.mini-footer-bar .price-info .num {
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
}
.mini-footer-bar .btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 15px;
}

.mini-notice {
  margin: 12px;
  padding: 12px 14px;
  background: #E6F4FF;
  border-radius: 12px;
  font-size: 12px;
  color: #0958D9;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
  box-shadow: none;
}

.qr-box { text-align: center; padding: 24px; }
.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  background:
    repeating-linear-gradient(0deg, #1677FF 0 3px, transparent 3px 6px),
    repeating-linear-gradient(90deg, #1677FF 0 3px, transparent 3px 6px);
  background-size: 16px 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.qr-placeholder::after {
  content: "动态二维码";
  position: absolute;
  inset: 36px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.pickup-code {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.scan-area {
  margin: 16px;
  aspect-ratio: 1;
  background: #0F1B33;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.scan-area .frame {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(64, 150, 255, 0.85);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.scan-area .frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #69B1FF;
  animation: scan 2s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 10%; opacity: 0.3; }
  50% { top: 85%; opacity: 0.9; }
}
.scan-area p { margin-top: 16px; font-size: 13px; opacity: 0.75; }

.phone-hint {
  margin-left: 28px;
  max-width: 280px;
  padding-top: 24px;
}
.phone-hint h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.phone-hint p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.phone-hint .hint-list li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
}
.phone-hint .hint-list li strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
}

/* 小程序内分段筛选 */
.phone-screen .tabs {
  display: flex;
  gap: 0;
  margin: 10px 12px 8px;
  padding: 4px;
  background: #fff;
  border-bottom: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.phone-screen .tab {
  flex: 1;
  padding: 8px 2px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  border: none;
  background: none;
  border-bottom: none;
  border-radius: 8px;
}
.phone-screen .tab:hover { color: var(--brand); }
.phone-screen .tab.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-light);
  border-bottom: none;
}

.phone-screen .btn-lg {
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
}
.phone-screen .btn-block {
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.22);
}
.phone-screen .form-input {
  height: 40px;
  border-radius: 10px;
}

/* 小程序弹层限制在手机屏幕内 */
.phone-screen .modal-mask {
  position: absolute;
  inset: 0;
  padding: 48px 12px 12px;
  border-radius: 28px;
  z-index: 30;
  align-items: flex-end;
}
.phone-screen .modal {
  max-width: 100%;
  max-height: 88%;
  border-radius: 16px 16px 12px 12px;
}
.phone-screen .modal-body { padding: 16px; }
.phone-screen .modal-body .form-group { margin-bottom: 12px; }
.phone-screen .form-row { gap: 10px; }
.phone-screen .modal-lg { max-width: 100%; }

.mini-hero-card {
  margin: 12px;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 集采大厅列表：左图右文 */
.hall-list {
  padding: 0;
  overflow: hidden;
}
.hall-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F0F0F0;
  align-items: flex-start;
}
.hall-item:last-child { border-bottom: none; }
.hall-item:active { background: #F5F7FA; }
.hall-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--brand-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hall-thumb-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.hall-thumb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 4px;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  background: rgba(22, 119, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-info { flex: 1; min-width: 0; }
.hall-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.hall-attrs {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}
.hall-meta .tag { height: 18px; padding: 0 6px; font-size: 11px; }
.hall-loc {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hall-loc::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
}
.hall-price {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hall-price small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}
.hall-item.is-soldout .hall-price { color: rgba(0, 0, 0, 0.45); }
.hall-item.is-soldout .hall-thumb-bar { background: rgba(0, 0, 0, 0.4); }
.hall-item.is-soldout .hall-thumb-name { color: rgba(0, 0, 0, 0.45); }
.hall-item.is-soldout .hall-thumb { background: #F0F0F0; }

/* 企业小程序：大厅 / 我的 双 Tab */
.mini-tabbar.tabbar-home-me {
  height: 58px;
  box-shadow: none;
  border-top: 1px solid #F0F0F0;
  padding: 4px 0 8px;
}
.mini-tabbar.tabbar-home-me button {
  gap: 4px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
}
.mini-tabbar.tabbar-home-me button.active {
  color: var(--brand);
  font-weight: 500;
}
.mini-tabbar.tabbar-home-me .tab-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-tabbar.tabbar-home-me .tab-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.mini-tabbar.tabbar-home-me .tab-ico .ico-on { display: none; }
.mini-tabbar.tabbar-home-me button.active .tab-ico {
  background: var(--brand);
}
.mini-tabbar.tabbar-home-me button.active .tab-ico .ico-off { display: none; }
.mini-tabbar.tabbar-home-me button.active .tab-ico .ico-on {
  display: block;
  width: 16px;
  height: 16px;
}

/* 我的：顶栏资料卡 + 宫格 */
.me-banner {
  padding: 8px 20px 36px;
  min-height: 72px;
}
.me-profile {
  margin: -28px 12px 12px;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.me-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.me-profile-body { flex: 1; min-width: 0; }
.me-phone {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.me-name {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}
.me-meta {
  display: flex;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F5F5F5;
  gap: 12px;
}
.me-meta-col {
  flex: 1;
  min-width: 0;
}
.me-meta-label {
  display: block;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}
.me-meta-col strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.me-card {
  margin: 0 12px 12px;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.me-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 4px 12px;
}
.me-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 4px;
}
.me-grid button {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  line-height: 1.3;
}
.me-grid button:active { opacity: 0.7; }
.me-ico {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.me-ico svg { width: 26px; height: 26px; display: block; }
.me-ico-solid {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.me-ico-solid svg { width: 22px; height: 22px; }
.me-grid-line .me-ico {
  width: 36px;
  height: 36px;
}
.me-grid-msg .badge-dot {
  position: absolute;
  top: 0;
  right: 10px;
  margin: 0;
}

/* 集采订单卡片 */
.order-tabs {
  display: flex;
  background: #fff;
  padding: 0 4px;
  border-bottom: 1px solid #F0F0F0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.phone-screen .order-tabs .tab {
  flex: 1;
  margin: 0;
  padding: 12px 4px 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.phone-screen .order-tabs .tab:hover { color: var(--brand); }
.phone-screen .order-tabs .tab.active {
  color: var(--brand);
  font-weight: 600;
  background: none;
  border-bottom: 2px solid var(--brand);
}
.order-card {
  margin: 12px 12px 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.order-card[onclick] { cursor: pointer; }
.order-card:last-child { margin-bottom: 16px; }
.order-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.order-card-ico {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  display: flex;
}
.order-card-ico svg { width: 18px; height: 18px; }
.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 14px;
}
.order-card-grid .k {
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}
.order-card-grid .v {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.order-card-grid .v.money {
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.order-card-ft {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F5F5F5;
}
.order-card-ft .btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .phone-hint { display: none; }
}
