/*!
 * booth.css —— 商家二维码摊位（2026-09-16，v1）
 * ---------------------------------------------------------------------------
 * 仅 booth.html 引用（页面级隔离）。设计对齐 xinde 设计稿 + 主站令牌。
 * ⚠️ 规矩：不写 padding-bottom（移动端底栏需 96px 净空，用 margin-bottom 补）。
 */
:root { --b-primary: #c93628; --b-primary-dark: #a63329; --b-line: #e3d9cf; --b-ink: #26211d; }

/* ---------- 横幅 ---------- */
.booth-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d24233 0%, #c93628 45%, #a63329 100%);
  color: #fff;
  padding-top: 34px;
  padding-bottom: 36px;
}
.booth-hero::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); top: -160px; right: 8%; }
.booth-hero .wrap { position: relative; z-index: 1; }
.booth-hero .crumb { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.booth-hero .crumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.booth-hero h1 { font-size: 28px; margin: 0 0 10px; }
.booth-hero .hl { color: #ffd9c2; }
.booth-hero-sub { color: rgba(255,255,255,.9); font-size: 14.5px; margin: 0 0 14px; }
.booth-price-tag {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ---------- 企业服务招募条 ---------- */
.booth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff8e6;
  border: 1px dashed #ffc107;
  border-radius: 12px;
  padding: 13px 18px;
  margin-top: 16px;
  font-size: 13.5px;
  color: #9a7500;
}
.booth-banner-btn {
  flex: none;
  background: #ffc107;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 0;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
}
.booth-banner-btn:hover { background: #eab000; }

/* ---------- 卡片 ---------- */
.booth-main { padding-bottom: 30px; }
.booth-card {
  background: #fff;
  border: 1px solid var(--b-line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
  box-shadow: 0 2px 10px rgba(38,33,29,.04);
}
.booth-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--b-ink);
  margin-bottom: 14px;
}
.booth-tico { font-size: 17px; }
.booth-title-note { font-size: 12px; font-weight: 400; color: #b3a89d; margin-left: auto; }

/* ---------- 额度 ---------- */
.booth-quota-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* display:flex 压过 hidden 属性，必须显式关掉 */
.booth-quota-row[hidden] { display: none; }
.booth-quota-num b { font-size: 30px; color: var(--b-primary); font-weight: 900; }
.booth-quota-num span { display: block; font-size: 12px; color: #9a8f84; margin-top: 2px; }
.booth-quota-num.free b { color: #1f9d55; }
.booth-price-tag.alt { background: rgba(31,157,85,.16); border-color: rgba(31,157,85,.5); color: #d9f2e4; margin-left: 8px; }
.booth-quota-tip { flex: 1; min-width: 220px; font-size: 13px; color: #6f655a; line-height: 1.7; }
.booth-quota-acts { display: flex; gap: 8px; }
/* 未登录紧凑态：单行提示 + 登录按钮 */
.booth-quota-guest {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #6f655a;
  line-height: 1.7;
}
.booth-quota-guest[hidden] { display: none; }
.booth-quota-guest b { color: #c93628; }
.booth-quota-guest .booth-btn { margin-left: auto; text-decoration: none; }
/* 窄屏：额度行堆叠，数字块不被压缩裁切 */
@media (max-width: 768px) {
  .booth-quota-row { align-items: flex-start; gap: 12px; }
  .booth-quota-num { flex: none; }
  .booth-quota-tip { flex: 1 1 100%; order: 3; min-width: 0; }
  .booth-quota-acts { margin-left: auto; }
  .booth-quota-guest .booth-btn { margin-left: 0; flex-basis: 100%; }
}

/* ---------- 按钮 ---------- */
.booth-btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s ease, background-color .15s ease;
}
.booth-btn.primary { background: var(--b-primary); color: #fff; }
.booth-btn.primary:hover { background: var(--b-primary-dark); }
.booth-btn.ghost { background: #fff; border: 1px solid var(--b-line); color: #6f655a; }
.booth-btn.ghost:hover { color: var(--b-primary); border-color: #dcb4ae; }
.booth-btn.sm { padding: 8px 16px; font-size: 13px; }
.booth-btn:disabled { opacity: .5; cursor: default; }

/* ---------- 筛选 ---------- */
.booth-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* 区县槽位：cascade 会替换槽位内部控件，display:contents 让槽位不参与 flex 布局 */
.booth-filter .booth-slot { display: contents; }
/* 槽位里 cascade 动态创建的文本框（该市无区县表时）也要和 select 同观感、不破行 */
.booth-filter .booth-slot input {
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--b-line);
  border-radius: 9px;
  font-size: 13.5px;
  background: #fff;
  color: var(--b-ink);
  outline: none;
}
.booth-filter .booth-slot input:focus { border-color: var(--b-primary); }
.booth-form-item .booth-slot input, .booth-form-item .booth-slot select { width: 100%; }
.booth-filter select {
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--b-line);
  border-radius: 9px;
  font-size: 13.5px;
  background: #fff;
  color: var(--b-ink);
  outline: none;
}
.booth-filter select:focus { border-color: var(--b-primary); }
.booth-filter select:disabled { background: #f8f5f0; color: #b3a89d; }
.booth-count { margin-left: auto; font-size: 13px; color: #9a8f84; }

/* ---------- 微信联系卡 ---------- */
.booth-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  border-left: 4px solid #1f9d55;
  background: linear-gradient(135deg, #f2faf5, #ffffff 60%);
}
.booth-contact-qr {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  border: 1px solid #cfe8da;
  flex: none;
  object-fit: cover;
}
.booth-contact-txt { min-width: 0; flex: 1; }
.booth-contact-txt p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.7; color: #4a443d; }
.booth-contact-txt b { color: #1f9d55; }
.booth-contact-note { color: #9a8f84 !important; font-size: 12.5px !important; }
.booth-contact-note a { color: #c93628; font-weight: 600; }
@media (max-width: 640px) {
  .booth-contact { flex-direction: column; text-align: center; padding: 18px 14px; }
  .booth-contact-qr { width: 116px; height: 116px; }
  .booth-contact-txt p { text-align: left; }
}

/* ---------- 二维码网格 ---------- */
.booth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.booth-qr {
  background: #fff;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.booth-qr:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(38,33,29,.1); }
.booth-qr-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 170px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #f8f5f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booth-qr-img img { width: 100%; height: 100%; object-fit: contain; }
.booth-qr-name { font-size: 14px; font-weight: 700; color: var(--b-ink); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-qr-desc { font-size: 12px; color: #9a8f84; line-height: 1.5; margin-bottom: 8px; min-height: 18px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.booth-qr-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.booth-chip { display: inline-block; background: #f0ece6; border-radius: 5px; padding: 2px 8px; font-size: 11px; color: #6f655a; }
.booth-chip.warn { background: #fdeeee; color: #a63329; }

/* 上传入口卡（网格第一张） */
.booth-entry {
  border: 2px dashed var(--b-primary);
  background: #fff5f5;
  border-radius: 12px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color .18s ease;
}
.booth-entry:hover { background: #ffeceb; }
.booth-entry .big { font-size: 38px; }
.booth-entry p { margin: 0; font-size: 14px; font-weight: 700; color: var(--b-primary); }
.booth-entry small { font-size: 11.5px; color: #b08f88; }

.booth-empty { grid-column: 1 / -1; text-align: center; padding: 50px 16px; color: #b3a89d; font-size: 14px; }

/* ---------- 弹窗 ---------- */
.booth-mask {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
}
/* display:flex 会压过 hidden 属性的 UA 样式，必须显式关掉 */
.booth-mask[hidden] { display: none; }
.booth-modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
}
.booth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--b-line);
  font-size: 16px;
  color: var(--b-ink);
}
.booth-modal-close { border: 0; background: #f8f5f0; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: #9a8f84; font-size: 14px; }
.booth-modal-body { padding: 16px 18px; }
.booth-modal-note { font-size: 12.5px; color: #9a8f84; margin: 0 0 14px; line-height: 1.7; }
.booth-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--b-line); }
.booth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booth-form-item { margin-bottom: 12px; }
.booth-form-item label { display: block; font-size: 12.5px; font-weight: 700; color: #6f655a; margin-bottom: 5px; }
.booth-form-item label em { font-style: normal; color: var(--b-primary); }
.booth-form-item input, .booth-form-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--b-line);
  border-radius: 9px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--b-ink);
}
.booth-form-item input:focus, .booth-form-item select:focus { border-color: var(--b-primary); }
.booth-form-item input:disabled, .booth-form-item select:disabled { background: #f8f5f0; color: #b3a89d; }

.booth-upload-area {
  position: relative;
  border: 2px dashed #d8cdc2;
  border-radius: 10px;
  background: #faf7f3;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.booth-upload-area:hover { border-color: var(--b-primary); }
.booth-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.booth-upload-empty { text-align: center; color: #b3a89d; }
.booth-upload-empty b { display: block; font-size: 26px; margin-bottom: 4px; }
.booth-upload-empty span { display: block; font-size: 13px; color: #6f655a; }
.booth-upload-empty small { font-size: 11px; }
.booth-upload-preview { max-width: 150px; max-height: 150px; margin: 8px auto; display: block; }

.booth-recharge-steps { font-size: 13px; color: #4a423a; line-height: 1.9; margin: 0 0 12px; padding-left: 2px; }
.booth-recharge-steps p { margin: 0 0 6px; }
.booth-recharge-qr { display: block; width: 200px; margin: 0 auto; border-radius: 10px; border: 1px solid var(--b-line); }

/* ---------- toast ---------- */
.booth-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 90px;
  background: rgba(38,33,29,.92);
  color: #fff;
  font-size: 13.5px;
  border-radius: 9px;
  padding: 10px 18px;
  z-index: 1300;
  max-width: 86vw;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .booth-hero h1 { font-size: 22px; }
  .booth-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .booth-filter select { min-width: 0; flex: 1 1 45%; }
  .booth-count { margin-left: 0; flex-basis: 100%; text-align: right; }
  .booth-form-row { grid-template-columns: 1fr; }
  .booth-card { padding: 14px 14px 16px; }
  .booth-main { margin-bottom: 96px; }   /* 底栏净空 */
}
