/* 真实移动端适配 + 业务补充样式 */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { background: var(--bg); min-height: 100vh; }
.phone { width: 100%; min-height: 100vh; min-height: 100dvh; box-shadow: none; }
.phone > .load-tip, .loading-tip { text-align: center; color: var(--mut); font-size: 12px; padding: 26px 0; }
.phone > .empty-tip { text-align: center; color: var(--mut); font-size: 12px; padding: 60px 30px; line-height: 1.8; }
.empty-tip a { color: var(--deep); font-weight: 800; }

/* 头像占位 / 企业首字 */
.avatar-letter { display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff;
  background: linear-gradient(150deg, #5AA0FF, #1F5EDD); }

/* 核销二维码 */
.qr-wrap { text-align: center; padding: 6px 0 2px; }
.qr-wrap canvas, .qr-wrap img { width: 190px; height: 190px; border-radius: 12px; background: #fff; padding: 8px; box-shadow: 0 4px 14px rgba(31, 94, 221, .16); }
.qr-tip { font-size: 11px; color: var(--mut); margin-top: 6px; }

/* 摄像头扫码 */
.scan-stage { position: relative; margin: 14px 18px 0; border-radius: 18px; overflow: hidden; background: #0B1530; aspect-ratio: 4 / 3; }
.scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(10, 22, 54, .45); }
.scan-frame::before, .scan-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid #4FD0EE; border-radius: 6px; }
.scan-frame::before { left: -2px; top: -2px; border-right: none; border-bottom: none; }
.scan-frame::after { right: -2px; bottom: -2px; border-left: none; border-top: none; }
.scan-line { position: absolute; left: 6%; right: 6%; top: 12%; height: 2px; background: linear-gradient(90deg, transparent, #4FD0EE, transparent);
  animation: scanmove 2.2s ease-in-out infinite; }
@keyframes scanmove { 0%, 100% { top: 12%; } 50% { top: 86%; } }
.scan-status { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 11px; opacity: .85; }
.scan-err { margin: 14px 18px 0; background: #FDF1DC; color: #9A6A00; border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.6; }
.scan-tip { margin: 12px 20px 0; font-size: 11px; color: var(--mut); line-height: 1.7; }

/* 核销键盘 */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 18px 0; }
.keypad button { border: none; cursor: pointer; background: #fff; border-radius: 14px; height: 52px; font-size: 20px; font-weight: 800;
  color: var(--ink); font-family: var(--num); box-shadow: 0 4px 10px rgba(31, 94, 221, .1), inset 0 1px 0 #fff; }
.keypad button:active { transform: scale(.95); background: var(--tint); }
.keypad button.fn { font-size: 14px; color: var(--sub); background: #EAF0FB; }
.code-cells { display: flex; justify-content: center; gap: 8px; margin: 18px 18px 0; }
.code-cells span { width: 34px; height: 44px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--num); font-size: 22px; font-weight: 900; color: var(--navy); }
.code-cells span.on { box-shadow: inset 0 0 0 2px var(--blue2); }

/* 快捷动作条 */
.quick-actions { display: flex; gap: 10px; margin: 14px 18px 0; }
.quick-actions .btn-main, .quick-actions .btn-ghost { flex: 1; }

/* 详情行 */
.detail-rows { margin-top: 4px; }
.detail-rows .row-item .l b { font-weight: 600; color: var(--sub); font-size: 12.5px; }
.detail-rows .row-item .r { color: var(--ink); font-size: 13px; }

/* 筛选 tabs（状态） */
.seg { display: flex; gap: 8px; padding: 10px 18px 2px; overflow-x: auto; }
.seg button { flex: none; border: none; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--sub);
  background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: 0 3px 8px rgba(31, 94, 221, .08); }
.seg button.on { color: #fff; background: linear-gradient(180deg, #4D8DFF, #1F5EDD); }

/* 分页加载 */
.load-more { display: block; margin: 14px auto 0; border: none; cursor: pointer; font-size: 12px; font-weight: 800;
  color: var(--deep); background: var(--tint); padding: 9px 26px; border-radius: 999px; }
.load-more:disabled { opacity: .5; }
