/* @File: uni.css | @Time: 2026/10/28 10:10:00 | @Author: zzmh | @Version: 1.0
   @Desc: 物料识别 H5 运行时基础样式(与 uni-app 页面样式协同) */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #f4f6f9; color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; -webkit-font-smoothing: antialiased; }
#app { min-height: 100vh; display: flex; flex-direction: column; }

.nav-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; padding: 13px 16px;
  background: linear-gradient(135deg, #1d7ec9, #0f5c99); color: #fff; }
.nav-title { font-size: 16px; font-weight: 600; }
.nav-stats { font-size: 11px; opacity: .88; }

#view { flex: 1; overflow-x: hidden; }

.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
  padding-bottom: env(safe-area-inset-bottom); }
.tab-bar button { flex: 1; border: 0; background: none; padding: 10px 0 11px;
  font-size: 12px; color: #8a94a6; cursor: pointer; line-height: 1.2; }
.tab-bar button .tab-dot { display: block; width: 6px; height: 6px; border-radius: 50%;
  margin: 0 auto 4px; background: transparent; }
.tab-bar button.on { color: #1d7ec9; font-weight: 600; }
.tab-bar button.on .tab-dot { background: #1d7ec9; }

body { padding-bottom: 60px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  max-width: 84vw; background: rgba(31, 41, 55, .94); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .22s; z-index: 99; text-align: center; }
.toast.on { opacity: 1; }

.loading-mask { position: fixed; inset: 0; background: rgba(255, 255, 255, .55);
  display: flex; align-items: center; justify-content: center; z-index: 98; }
.loading-mask[hidden] { display: none; }
.spinner { width: 28px; height: 28px; border: 3px solid #dbe6f2; border-top-color: #1d7ec9;
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.img-preview-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 95; background: rgba(0, 0, 0, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: zoom-out; }
.img-preview-mask .img-preview-img { max-width: 96vw; max-height: 86vh; object-fit: contain; }
.img-preview-mask .img-preview-count { color: #fff; font-size: 12px; margin-top: 10px; opacity: .8; }

.page { padding: 0 12px 24px; }
.empty { text-align: center; color: #98a2b3; font-size: 13px; padding: 20px 0; }
button { font-family: inherit; }
input { font-family: inherit; outline: none; }
img { display: block; }
