/* 大米预约购买 — 全局样式
   适老化设计：大字体、高对比、大按钮、简洁布局，手机电脑双端可用 */

:root {
  --green: #1f7a44;
  --green-dark: #175e33;
  --green-light: #e8f4ec;
  --amber: #e8930c;
  --amber-light: #fdf3e0;
  --amber-text: #a86a00;
  --bg: #f6f4ee;
  --card: #ffffff;
  --text: #232323;
  --muted: #6e6a5f;
  --danger: #c0392b;
  --danger-light: #fbeae8;
  --border: #e3ded2;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* 左上角按钮：明显可点击。买家/访客显示"购买黑米"，店员/管理员显示"黑米系统" */
.brand {
  color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center;
  padding: 5px 10px; margin-left: -8px;
  border: 2px solid rgba(255, 255, 255, .65); border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  transition: background .15s;
}
.brand:hover { background: rgba(255, 255, 255, .3); text-decoration: underline; }
.brand:active { background: rgba(255, 255, 255, .45); }
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topnav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.topnav a, .topnav .link-btn {
  color: #fff; text-decoration: none; font-size: 16px; font-family: inherit;
  background: rgba(255, 255, 255, .16); border: none; cursor: pointer;
  padding: 6px 12px; border-radius: 10px; min-height: 38px;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.topnav a:hover, .topnav .link-btn:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 布局 ---------- */
.container { max-width: 760px; margin: 0 auto; padding: 8px 14px 60px; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.sec-title { font-size: 22px; margin: 0 0 14px; }
.product-name { font-size: 30px; margin: 0 0 4px; } /* 首页产品名 */
.loading { text-align: center; color: var(--muted); padding: 40px 0; font-size: 18px; }
.note { color: var(--muted); text-align: center; font-size: 15px; }
.muted { color: var(--muted); }
.center-text { text-align: center; }
.big { font-size: 19px; }
.bigger { font-size: 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  font-size: 18px; font-weight: 600; line-height: 1.4; font-family: inherit;
  border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-amber { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--green); }
.btn-lg { width: 100%; font-size: 20px; min-height: 56px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; font-size: 18px; font-family: inherit;
  padding: 10px 14px; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text);
}
/* 日期框：手机浏览器会给日期输入框设最小宽度，导致右边界顶出屏幕/卡片，这里取消最小宽度；
   手机（iPhone）上日期文字默认靠右，这里统一居中显示 */
.field input[type="date"] { min-width: 0; max-width: 316px; margin: 0 auto; display: block; text-align: center; text-align-last: center; } /* 日期框收窄居中，与数量选择器同宽 */
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: none; }
/* 账号框（手机）：点击时输入框临时变密码类型出英文键盘，镜像层用与输入框完全相同的
   盒模型（内边距10/14、透明边框2px、同字号、同字体、垂直居中）显示输入的字，两层文字位置完全重合 */
.acc-wrap { position: relative; }
.acc-wrap.kb-active #loginAccount { color: transparent; caret-color: var(--text); }
.acc-mirror {
  display: none;
  position: absolute; inset: 0;
  padding: 10px 14px;
  border: 2px solid transparent;
  font-size: 18px; font-family: inherit; color: var(--text);
  white-space: pre; overflow: hidden;
  pointer-events: none;
}
.acc-wrap.kb-active .acc-mirror { display: flex; align-items: center; }
/* 密码框：输入框右侧放"显示/隐藏"切换按钮 */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 80px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 40px; padding: 0 14px; border: none; border-radius: 8px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 17px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.pwd-toggle:active { background: var(--green); color: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 15px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.form-actions { margin-top: 20px; }
.btn-sm { min-height: 42px; padding: 6px 16px; font-size: 16px; border-radius: 10px; }
.mt-sm { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
/* 店员"本店最近核销"列表条目（误点核销后可在此直接取消核销） */
.recent-item { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 徽标 ---------- */
.badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.badge-pending { background: var(--amber-light); color: var(--amber-text); }
.badge-verified { background: var(--green-light); color: var(--green-dark); }
.badge-nearest { background: var(--green); color: #fff; } /* 定位成功时标出最近门店 */
.badge-cancelled, .badge-expired { background: #efede8; color: #7a766b; }

/* ---------- 取货码 ---------- */
.code-box {
  text-align: center; padding: 18px; margin: 12px 0;
  background: var(--green-light); border: 3px dashed var(--green); border-radius: var(--radius);
}
.code-label { font-size: 18px; color: var(--green-dark); font-weight: 700; }
.code-display { font-size: 44px; font-weight: 800; letter-spacing: 10px; color: var(--green-dark); padding: 8px 0; }
.code-tip { font-size: 15px; color: var(--green-dark); }
.code-sm { font-size: 26px; font-weight: 800; letter-spacing: 5px; color: var(--green-dark); }

/* ---------- 步进器 ---------- */
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
/* 步进器组：两行选择器＋合计框整体居中；固定组宽（数字框130px），合计框两端分别对齐−号左缘和单位词右缘 */
.stepper-group { display: flex; flex-direction: column; align-items: center; width: 316px; max-width: 100%; margin: 0 auto 14px; }
.stepper-group .totals { width: 100%; justify-content: space-between; gap: 8px; margin: 0; }
.step-btn {
  width: 58px; height: 58px; border-radius: 14px;
  border: 2px solid var(--green); background: #fff; color: var(--green);
  font-size: 30px; font-weight: 700; cursor: pointer; line-height: 1;
}
.step-btn:active { background: var(--green-light); }
.step-val { width: 130px; text-align: center; }
.step-num {
  font-size: 34px; font-weight: 800; font-family: inherit; color: var(--text);
  width: 100%; text-align: center; background: #fff;
  border: 2px solid var(--border); border-radius: 10px; padding: 2px 4px;
  -moz-appearance: textfield; /* 隐藏数字框自带的上下小箭头，加减用两侧大按钮 */
}
.step-num::-webkit-outer-spin-button, .step-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-num:focus { border-color: var(--green); outline: none; }
/* 单位词紧跟在＋号旁边（− 数字 ＋ 袋/包 成组居中，价格说明在每行下方独占一行）；字号与数字框一致 */
.step-unit { order: 2; margin-left: -6px; font-size: 34px; font-weight: 700; color: var(--text); white-space: nowrap; }
/* 价格说明在每行下方独占一行（价格橙色加粗，不折行） */
.step-sub { order: 3; width: 100%; font-size: 16px; color: var(--muted); white-space: nowrap; line-height: 1.5; text-align: center; }
.step-price { color: var(--amber-text); font-weight: 800; }

/* ---------- 合计显示 ---------- */
.totals { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.total-item { background: var(--amber-light); border-radius: 12px; padding: 10px 20px; text-align: center; }
.total-item .t-label { font-size: 15px; color: var(--amber-text); }
.total-item .t-value { font-size: 24px; font-weight: 800; color: var(--amber-text); }

/* ---------- 门店选择 ---------- */
.store-option { display: block; margin-bottom: 12px; }
.store-option input[type="radio"] { display: none; }
.store-box {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.store-option input:checked + .store-box { border-color: var(--green); background: var(--green-light); }
/* 提货时段大按钮（上午/下午） */
.slot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot-option input { display: none; }
.slot-box {
  display: block; text-align: center; font-size: 20px; font-weight: 700;
  border: 2px solid var(--border); border-radius: 14px; padding: 16px 0;
  background: #fff; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.slot-option input:checked + .slot-box { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.store-name { font-size: 20px; font-weight: 700; }
.store-line { font-size: 16px; margin-top: 4px; }
.store-stock { font-weight: 700; color: var(--green-dark); }
/* 库存不足的门店：整卡红色提醒 */
.store-insufficient .store-box { border-color: var(--danger); }
.store-insufficient .store-stock { color: var(--danger); }
.store-dist { font-size: 15px; color: var(--green); font-weight: 700; margin-top: 4px; }
.choose-hint { font-size: 15px; color: var(--muted); margin-bottom: 10px; }

/* ---------- 门店信息大字卡 ---------- */
.store-info {
  background: #fffdf5; border: 2px solid var(--amber);
  border-radius: var(--radius); padding: 18px; margin: 14px 0;
}
.store-info .si-name { font-size: 24px; font-weight: 800; }
.store-info .si-line { font-size: 19px; margin-top: 8px; }
.store-info .si-line b { color: var(--danger); font-weight: 800; }

/* ---------- 首页 ---------- */
/* 封面完整显示（contain 等比缩放不裁切；限高防止竖长图占满全屏；桌面端限宽居中） */
.hero-img { width: 100%; max-width: 640px; margin: 0 auto; max-height: 62vh; object-fit: contain; border-radius: var(--radius); display: block; background: #faf8f2; }
/* 首页名称卡：收紧内边距和上间距，节省画面空间 */
.home-card { padding: 14px 16px; margin: 10px 0 14px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { background: var(--green-light); color: var(--green-dark); font-size: 18px; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.product-desc { font-size: 19px; white-space: pre-line; color: #3d3a33; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-img { width: 100%; border-radius: 10px; display: block; background: #faf8f2; }
.buy-actions { display: grid; gap: 12px; margin: 18px 0; }
/* 首页底部常驻按钮条：不用下滑，随时能点"立即购买/我的订单"。
   实色底栏完全不透视后面的内容；页尾文字下方留白，滚到底能完整看完 */
.buy-fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  margin: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); box-shadow: 0 -4px 18px rgba(0, 0, 0, .07);
}
/* 按钮在未滑到底时轻微透明（底栏实色不遮字），滑到页面最底部恢复实色 */
.buy-fixed .btn { transition: background .25s; }
.buy-fixed .btn-primary { background: rgba(31, 122, 68, .82); border-color: rgba(31, 122, 68, .82); }
.buy-fixed .btn-primary:hover { background: rgba(23, 94, 51, .9); }
.buy-fixed .btn-ghost { background: rgba(255, 255, 255, .8); }
.buy-fixed.buy-solid .btn-primary { background: var(--green); border-color: var(--green); }
.buy-fixed.buy-solid .btn-primary:hover { background: var(--green-dark); }
.buy-fixed.buy-solid .btn-ghost { background: #fff; }
.buy-fixed ~ .note { margin-bottom: 88px; } /* 给底部按钮条让出位置，页尾文字不被遮挡 */
.intro-link { display: inline-block; font-size: 19px; font-weight: 700; color: var(--green-dark); text-decoration: underline; text-underline-offset: 5px; margin-top: 0; padding: 6px 0; }

/* ---------- 产品详情介绍页（一页一图翻页） ---------- */
.intro-bar { display: flex; margin-bottom: 2px; }
.intro-back { font-size: 18px; min-height: 48px; padding: 0 22px; width: auto; }
.intro-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 8px; margin-top: 10px; }
.intro-img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; border-radius: 8px; user-select: none; -webkit-user-select: none; }
.intro-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(31, 122, 68, .35);
  background: rgba(255, 255, 255, .94); color: var(--green-dark);
  font-size: 34px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.intro-arrow:disabled { opacity: .3; cursor: default; }
.intro-prev { left: 8px; }
.intro-next { right: 8px; }
.intro-pageinfo {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 15px; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 详情图双击放大（全屏黑底，左右箭头翻页，左上角返回） ---------- */
.zoom-hint { text-align: center; font-size: 16px; color: var(--green); font-weight: 700; margin: 8px 0 0; }
.intro-zoom { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; }
.intro-zoom[hidden] { display: none; }
.zoom-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; flex-shrink: 0; }
.zoom-bar .intro-back { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.zoom-pageinfo { margin-left: auto; color: #fff; font-size: 17px; font-weight: 700; }
.zoom-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 10px 16px; }
.zoom-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-select: none; }

/* ---------- 订单 ---------- */
.order-card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-line { margin-top: 8px; font-size: 17px; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); font-size: 18px; }

/* ---------- 店员工作台 ---------- */
.big-stat { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.big-stat .stat { flex: 1; min-width: 130px; background: var(--green-light); border-radius: 12px; text-align: center; padding: 12px 8px; }
.big-stat .stat .s-label { font-size: 15px; color: var(--green-dark); }
.big-stat .stat .s-value { font-size: 30px; font-weight: 800; color: var(--green-dark); }
.code-input { font-size: 28px !important; letter-spacing: 12px; text-align: center; font-weight: 700; }
.buyer-card { border: 2px solid var(--green); border-radius: var(--radius); padding: 16px 18px; background: #fbfdfb; }
.buyer-card .b-name { font-size: 22px; font-weight: 800; }
.buyer-card .b-line { font-size: 18px; margin-top: 8px; }
.danger-zone { border: 2px solid var(--danger); border-radius: var(--radius); padding: 16px; margin: 14px 0; background: var(--danger-light); }
/* 待核销预约列表（店员电话提醒） */
.pending-list { display: grid; gap: 10px; }
.pending-item {
  display: block; width: 100%; text-align: left;
  border: 2px solid var(--border); border-radius: 12px;
  background: var(--card); padding: 12px 14px; cursor: pointer; font-family: inherit;
}
.pending-item:active { border-color: var(--green); background: var(--green-light); }
/* 新预约高亮：买家刚下的单，提醒店员注意（约15秒后自动恢复普通样式） */
.pending-item.new-item { background: var(--amber-light); border-color: var(--amber); }
.pending-item.new-item .p-info { color: var(--amber-text); font-weight: 700; }
.p-name { display: block; font-size: 19px; font-weight: 700; color: var(--text); }
.p-phone { font-size: 18px; font-weight: 700; color: var(--green-dark); }
.p-info { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tab {
  flex: 1; min-width: 110px; min-height: 50px; font-size: 17px; font-weight: 700;
  border: 2px solid var(--border); background: #fff; border-radius: 12px;
  cursor: pointer; color: var(--text); font-family: inherit;
}
.tab.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- KPI 卡片 ---------- */
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 14px 10px; box-shadow: var(--shadow); text-align: center; }
.kpi .k-label { font-size: 15px; color: var(--muted); }
.kpi .k-value { font-size: 25px; font-weight: 800; color: var(--green-dark); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: #f3f0e8; font-weight: 700; white-space: nowrap; }
table.data td.nr, table.data th.nr, table.data td.nm { white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
.table-hint { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
/* 报表表格（时间/销售数量/销售额三列）：手机端一屏显示全，无需左右滑动 */
@media (max-width: 767px) {
  table.data.report { min-width: 0; }
  table.data.report th, table.data.report td { padding: 9px 6px; }
  table.data.report th:last-child, table.data.report td:last-child { white-space: nowrap; }
}

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.dialog {
  background: #fff; border-radius: 16px; max-width: 460px; width: 100%;
  padding: 22px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  max-height: 90vh; overflow-y: auto;
}
.dialog-title { font-size: 21px; font-weight: 800; margin: 0 0 14px; }
.dialog-body { font-size: 17px; }
.dialog-btns { display: grid; gap: 10px; margin-top: 18px; }
.dialog-btns.two { grid-template-columns: 1fr 1fr; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--green-dark); color: #fff;
  padding: 12px 22px; border-radius: 12px; font-size: 17px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25); max-width: 90vw; text-align: center;
}
.toast.err { background: var(--danger); }

/* ---------- 其他 ---------- */
.forbidden { text-align: center; padding: 40px 10px; }
.forbidden .f-icon { font-size: 56px; }
.forbidden .f-text { font-size: 19px; margin: 14px 0; color: var(--muted); }
.auth-card { max-width: 460px; margin: 30px auto; }
.auth-tip { text-align: center; font-size: 16px; margin-top: 16px; }
.auth-tip a { color: var(--green); font-weight: 700; }
.auth-tip2 { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.chart-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin: 14px 0; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chart-nav { display: flex; gap: 8px; }
.chart-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--green); background: #fff; color: var(--green-dark);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px;
}
.chart-arrow:disabled { opacity: .35; cursor: default; }
.chart-pan { touch-action: pan-y; user-select: none; cursor: grab; }
.chart-paninfo { text-align: center; font-size: 15px; color: var(--muted); margin-top: 8px; }
.chart-wrap { position: relative; }
.chart-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 34px 0; }
.chart-tip {
  position: absolute; pointer-events: none; background: rgba(23, 23, 21, .92); color: #fff;
  padding: 7px 12px; border-radius: 8px; font-size: 15px; white-space: nowrap; z-index: 10;
  transform: translate(-50%, -100%); box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.kpi .k-unit { font-size: 15px; font-weight: 500; margin-left: 2px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0; }
.pager .page-info { font-size: 16px; color: var(--muted); }
/* 日期筛选：手机单列（两个日期框上下排列，避免并排时互相重叠），桌面两列 */
.filter-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
/* 年/月/日三个下拉组成的日期选择器 */
.date-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.date-selects select {
  width: 100%; min-height: 52px; font-size: 18px; font-family: inherit;
  padding: 8px 6px; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text);
}
.date-selects select:focus { border-color: var(--green); outline: none; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }

/* ---------- 桌面端：整体放大字体、加宽内容区，减少留白 ---------- */
@media (min-width: 768px) {
  body { font-size: 19px; }
  .container { max-width: 1060px; padding: 20px 20px 60px; }
  .topbar-inner { max-width: 1060px; }
  .brand { font-size: 22px; }
  .topnav a, .topnav .link-btn { font-size: 17px; }
  .card { padding: 24px 24px; }
  .sec-title { font-size: 26px; }
  .btn { font-size: 20px; }
  .btn-lg { font-size: 22px; }
  .chip { font-size: 20px; }
  .product-desc { font-size: 21px; }
  .intro-link { font-size: 22px; }
  .intro-img { max-height: 64vh; }
  .zoom-hint { font-size: 18px; }
  .zoom-pageinfo { font-size: 20px; }
  .store-name { font-size: 22px; }
  .store-line { font-size: 18px; }
  .store-info .si-name { font-size: 26px; }
  .store-info .si-line { font-size: 21px; }
  .order-line { font-size: 19px; }
  .buyer-card .b-name { font-size: 24px; }
  .buyer-card .b-line { font-size: 20px; }
  .tab { font-size: 19px; }
  .kpi .k-label { font-size: 17px; }
  .kpi .k-value { font-size: 30px; }
  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  table.data { font-size: 18px; }
  .field > span { font-size: 18px; }
  .field input, .field textarea, .field select, .acc-mirror { font-size: 19px; }
  .step-num { font-size: 38px; }
  .step-unit { font-size: 38px; }
  .stepper-group { width: 320px; } /* 桌面端单位词38px，组宽相应+4px保持两端对齐 */
  .step-sub { font-size: 17px; }
  .slot-box { font-size: 22px; padding: 18px 0; }
  .p-name { font-size: 21px; }
  .p-phone { font-size: 20px; }
  .p-info { font-size: 17px; }
  .total-item .t-value { font-size: 28px; }
  .chart-title { font-size: 21px; }
  .chart-paninfo { font-size: 16px; }
  .code-display { font-size: 52px; }
  .note, .table-hint { font-size: 16px; }
  .dialog { max-width: 520px; padding: 28px 26px; }
  .buy-actions { grid-template-columns: 1fr 1fr; }
  .buy-actions > :only-child { grid-column: 1 / -1; } /* 只有一个按钮时（如提交预约）占满整行 */
  .filter-row { grid-template-columns: 1fr 1fr; } /* 桌面端两个日期框并排 */
  .date-selects select { font-size: 19px; }
  .pwd-toggle { font-size: 18px; }
  /* 登录/注册卡片：桌面端加宽加大，减少两侧留白 */
  .auth-card { max-width: 640px; margin: 44px auto; padding: 36px 44px; }
  .auth-card .sec-title { font-size: 30px; margin-bottom: 22px; }
  .auth-card .field { margin-bottom: 22px; }
  .auth-card .field > span { font-size: 20px; }
  .auth-card .field input { font-size: 21px; min-height: 58px; padding: 12px 16px; }
  .auth-card .pwd-wrap input { padding-right: 96px; }
  .auth-card .pwd-toggle { height: 46px; font-size: 19px; padding: 0 16px; }
  .auth-card .btn-lg { font-size: 24px; min-height: 62px; }
  .auth-card .auth-tip { font-size: 18px; }
  .auth-card .auth-tip2 { font-size: 16px; }
  /* 首页：桌面端放大产品名/规格标签/详情入口/按钮，减少留白 */
  .home-card { padding: 34px 40px; }
  .product-name { font-size: 40px; }
  .chip { font-size: 22px; padding: 8px 20px; }
  .intro-link { font-size: 24px; }
  .buy-actions { max-width: 760px; margin: 22px auto; }
  .buy-actions .btn-lg { font-size: 24px; min-height: 64px; }
  /* 桌面端：底部按钮条居中限宽，像悬浮卡片 */
  .buy-fixed { left: 50%; transform: translateX(-50%); width: 100%; max-width: 1060px; padding-left: 0; padding-right: 0; border-radius: 18px 18px 0 0; }
}

/* ---------- 短信验证码行（注册 / 找回密码） ---------- */
.sms-wrap { display: flex; gap: 10px; align-items: stretch; }
.sms-wrap input { flex: 1; min-width: 0; }
.sms-btn { min-height: 52px; white-space: nowrap; flex-shrink: 0; }
.auth-card .sms-btn { font-size: 18px; }

/* ---------- 报表页 Excel 导出行（仅总管理员） ---------- */
.export-row { margin-bottom: 14px; }
.sec-title-sm { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.export-row .filter-row { grid-template-columns: 1fr; gap: 10px; }
.export-row select {
  width: 100%; min-height: 52px; font-size: 18px; font-family: inherit;
  padding: 8px 10px; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text);
}
.export-row select:focus { border-color: var(--green); outline: none; }
.export-btn-box { display: flex; align-items: flex-end; }
.export-btn-box .btn { width: 100%; }

/* ---------- 查看端"我的推广"页 ---------- */
.promo-card { text-align: center; }
.promo-qr-box { margin: 18px auto 10px; display: inline-block; padding: 14px; background: #fff; border: 2px solid var(--border); border-radius: 16px; }
.qr-img { display: block; width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; image-rendering: pixelated; }
.promo-link {
  display: inline-block; max-width: 100%; margin: 8px auto 4px; padding: 10px 16px;
  background: var(--soft, #f2f7f3); border-radius: 10px;
  font-size: 17px; word-break: break-all; line-height: 1.5;
}
.promo-card .kpi-row { margin-top: 18px; }
.promo-card .form-actions { margin-top: 14px; }

@media (min-width: 768px) {
  .sms-btn { min-height: 58px; }
  .auth-card .sms-wrap input { font-size: 21px; min-height: 58px; }
  .export-row .filter-row { grid-template-columns: 1fr 1fr; }
  .promo-link { font-size: 19px; }
  .qr-img { width: 300px; height: 300px; }
}
