/**
 * ECO 鉴证溯源 · 库房网页演示版样式
 * ------------------------------------------------------------------
 * 视觉主题：粉蓝配色（蓝色承担主视觉与操作，粉色承担点缀与提示），
 * 采用白卡片 + 柔和渐变 + 细边框 + 轻阴影，兼顾博物馆业务的正式感。
 * 结构分区：基础变量 → 布局 → 首页 → 通用卡片/列表 → 按钮/弹层 → 底栏 → 动效 → 响应式。
 */

/* ========== 1. 基础变量 ========== */
:root {
  /* 文字与线条 */
  --ink: #1B2340;
  --ink-2: #3C4665;
  --ink-3: #818BA6;
  --ink-4: #AEB6CB;
  --line: #E7ECF7;
  --line-strong: #DCE3F1;

  /* 主色：蓝 */
  --blue: #3E6BF2;
  --blue-deep: #2B4FCB;
  --blue-soft: #ECF1FF;

  /* 点缀：粉 */
  --pink: #E86A96;
  --pink-deep: #C24E79;
  --pink-soft: #FDF0F5;

  /* 状态色 */
  --green: #1E9E76;
  --green-soft: #E9F7F1;
  --amber: #B5791C;
  --amber-soft: #FBF3E2;
  --violet: #7A5BD6;
  --violet-soft: #F1EDFC;
  --red: #D94B68;
  --red-soft: #FDECF0;

  /* 阴影与圆角 */
  --shadow: 0 10px 30px rgba(31, 49, 110, .07);
  --radius: 18px;
}

/* ========== 2. 基础布局 ========== */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(196, 214, 255, .55), transparent 60%),
    radial-gradient(820px 520px at 108% 12%, rgba(252, 205, 224, .48), transparent 58%),
    linear-gradient(180deg, #F6F9FE 0%, #FAF7FB 52%, #F5F8FE 100%);
  background-attachment: fixed;
}

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
}

.view {
  min-height: 100vh;
  animation: pageIn .26s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page-body {
  padding: 12px 16px calc(96px + env(safe-area-inset-bottom));
}

/* 带底部操作栏的页面需要更多底部留白 */
.page.docked {
  padding-bottom: 0;
}

.page.docked .page-body {
  padding-bottom: calc(176px + env(safe-area-inset-bottom));
}

/* ========== 3. 首页头部 ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(20px + env(safe-area-inset-top)) 20px 30px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(128deg, #2749BE 0%, #4A74E9 50%, #E59DBB 100%);
  box-shadow: 0 18px 36px rgba(44, 72, 168, .22);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
}

.hero-orb-1 {
  top: -70px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 70%);
}

.hero-orb-2 {
  bottom: -90px;
  left: -60px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 214, 231, .55), rgba(255, 214, 231, 0) 70%);
}

.hero-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 7px;
  background: rgba(255, 255, 255, .16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: .92;
}

.hero-date {
  font-size: 11px;
  color: rgba(255, 255, 255, .74);
  white-space: nowrap;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 18px 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .4px;
}

.hero-sub {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}

/* 四项概览：压在首页头部下沿 */
.stat-board {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -24px 16px 0;
  padding: 14px 6px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(31, 49, 110, .12);
}

.stat-cell {
  position: relative;
  text-align: center;
}

.stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 22px;
  background: var(--line);
  transform: translateY(-50%);
}

.stat-value {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.stat-pink {
  color: var(--pink) !important;
}

.stat-label {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11px;
}

/* ========== 4. 子页面头部 ========== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(14px + env(safe-area-inset-top)) 20px 22px;
  border-bottom: 1px solid #E6ECF8;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(128deg, #EEF3FF 0%, #F8F6FF 48%, #FDEFF5 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 106, 150, .16), rgba(232, 106, 150, 0) 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 107, 242, .14), rgba(62, 107, 242, 0) 70%);
}

.ph-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #E1E8F7;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.ph-title {
  position: relative;
  z-index: 2;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .4px;
}

.ph-sub {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.ph-chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ph-chips span,
.ph-chip {
  padding: 5px 10px;
  border: 1px solid #DFE8FA;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--blue-deep);
  font-size: 11.5px;
}

/* ========== 5. 卡片与列表通用 ========== */
.card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 233, 246, .95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.card-tight .sec-head {
  margin-bottom: 8px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sec-head h2 {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.bar {
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--pink));
}

.sec-more {
  color: var(--ink-3);
  font-size: 11.5px;
  text-decoration: none;
  white-space: nowrap;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #F1F4FA;
}

.row:last-child {
  padding-bottom: 2px;
  border-bottom: none;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-side {
  align-self: flex-start;
  padding-top: 2px;
  color: var(--ink-4);
  font-size: 10.5px;
  white-space: nowrap;
}

/* 操作类型徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
}

.badge-blue { background: var(--blue-soft); color: var(--blue-deep); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-pink { background: var(--pink-soft); color: var(--pink-deep); }

/* 文物缩略图：类别配色 + 名称首字 */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .5px;
}

.tile-painting { background: linear-gradient(142deg, #E9EFFF, #C4D4FA); color: #2E4C9E; }
.tile-porcelain { background: linear-gradient(142deg, #FDECF3, #F5C6D8); color: #A53F67; }
.tile-bronze { background: linear-gradient(142deg, #E6F4EF, #BFE2D4); color: #1D7A5F; }
.tile-jade { background: linear-gradient(142deg, #EAF5E8, #C8E4C3); color: #3B7838; }
.tile-misc { background: linear-gradient(142deg, #F0ECFC, #D8CEF5); color: #59439F; }

.tile-lg {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  font-size: 26px;
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  flex: none;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-blue { background: #EDF2FF; color: #2F55C9; }
.tag-green { background: #E9F7F1; color: #127A5A; }
.tag-amber { background: #FBF3E2; color: #9A6716; }
.tag-violet { background: #F1EDFC; color: #6A4BC4; }
.tag-pink { background: #FDEEF4; color: #BE4872; }
.tag-red { background: #FDECF0; color: #C23E5C; }

/* 进度条 */
.progress {
  overflow: hidden;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #EFF2FA;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3E6BF2, #8A76EA 55%, #E88CB0);
  transition: width .3s ease;
}

/* 空状态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 10px;
  color: var(--ink-3);
}

.empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EEF3FF, #FDEEF4);
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 600;
}

.empty-text {
  font-size: 12.5px;
}

/* 小型指标组 */
.mini-stats {
  display: flex;
  gap: 6px;
  text-align: center;
}

.mini-stat {
  flex: 1;
}

.mini-stat b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-stat span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
}

/* 通用键值行 */
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #F2F5FB;
}

.kv:last-child {
  border-bottom: none;
}

.kv span {
  flex: none;
  color: var(--ink-3);
  font-size: 12px;
}

.kv b {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: .2px;
}

/* ========== 6. 首页动线与作业入口 ========== */
.step-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F4FA;
  text-decoration: none;
}

.step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
}

.step-no-blue { background: linear-gradient(140deg, #E8EFFF, #D5E1FF); color: #2F55C9; }
.step-no-green { background: linear-gradient(140deg, #E6F6F0, #D2EFE4); color: #127A5A; }
.step-no-amber { background: linear-gradient(140deg, #FBF1DD, #F6E6C8); color: #97640F; }
.step-no-violet { background: linear-gradient(140deg, #F1EDFC, #E3DAF8); color: #6A4BC4; }

.step-main {
  flex: 1;
  min-width: 0;
}

.step-title {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.step-desc {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.chev {
  flex: none;
  color: #C3CADC;
  font-size: 18px;
  line-height: 1;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.work-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(226, 233, 246, .95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.work-card:active {
  transform: scale(.995);
}

.work-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
}

.work-ico-blue { background: linear-gradient(140deg, #E8EFFF, #D5E1FF); color: #2F55C9; }
.work-ico-green { background: linear-gradient(140deg, #E6F6F0, #D2EFE4); color: #127A5A; }
.work-ico-amber { background: linear-gradient(140deg, #FBF1DD, #F6E6C8); color: #97640F; }
.work-ico-violet { background: linear-gradient(140deg, #F1EDFC, #E3DAF8); color: #6A4BC4; }

.work-main {
  flex: 1;
  min-width: 0;
}

.work-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.work-desc {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ========== 7. 库位列表与详情 ========== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #F3F5FB;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  border-color: #D9E3FA;
  background: linear-gradient(135deg, #EDF2FF, #FDF0F6);
  color: var(--blue-deep);
  font-weight: 600;
}

.shelf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.shelf-card {
  display: block;
  padding: 14px 15px;
  border: 1px solid rgba(226, 233, 246, .95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.shelf-card:active {
  transform: scale(.995);
}

.shelf-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shelf-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, #EAF0FF, #FCEFF6);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
}

.shelf-main {
  flex: 1;
  min-width: 0;
}

.shelf-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-code {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 10.5px;
}

.shelf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.shelf-meta b {
  color: var(--ink);
  font-size: 12px;
}

.shelf-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.shelf-chip {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 7px;
  background: #F4F7FD;
  color: var(--ink-3);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-chip-more {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.shelf-empty {
  color: var(--ink-4);
  font-size: 10.5px;
}

/* 库位五级位置 */
.loc-grid {
  display: flex;
  gap: 7px;
}

.g5 {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid #EBF0FA;
  border-radius: 12px;
  background: linear-gradient(160deg, #F7FAFF, #FDF6FA);
  text-align: center;
}

.g5 b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.g5 span {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 10px;
}

/* 可点击文物行 */
.art-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #F1F4FA;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.art-row:last-child {
  padding-bottom: 2px;
  border-bottom: none;
}

.art-main {
  flex: 1;
  min-width: 0;
}

.art-name {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.art-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-code {
  display: block;
  margin-top: 3px;
  color: var(--ink-4);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: .2px;
}

/* 文物档案弹层头部 */
.art-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F2F5FB;
}

.art-hero-main {
  flex: 1;
  min-width: 0;
}

.art-hero-name {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.art-hero-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.art-desc {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

/* ========== 8. 入库 / 上架 / 盘点 / 出库 ========== */
.batch-title {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.batch-meta,
.batch-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.batch-foot {
  margin-top: 6px;
  font-size: 11px;
}

/* 扫描入口 */
.scan-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 20px 16px;
  border: 1px dashed #C9D6F4;
  border-radius: 16px;
  background: linear-gradient(135deg, #F7FAFF 0%, #FEF8FB 100%);
  font-family: inherit;
  cursor: pointer;
}

.scan-panel[disabled] {
  opacity: .55;
  cursor: default;
}

.scan-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, #3E6BF2, #8A74EA 55%, #E68AAE);
  box-shadow: 0 8px 18px rgba(62, 107, 242, .25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.scan-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.scan-desc {
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.scan-tip {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 11px;
  text-align: center;
}

/* 扫码命中的文物卡 */
.found-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #EDF1FA;
  border-radius: 14px;
  background: linear-gradient(135deg, #F8FAFF, #FEF8FB);
}

.found-main {
  flex: 1;
  min-width: 0;
}

/* 双重核验 */
.verify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #EEF2FA;
  border-radius: 13px;
  background: #F8FAFE;
}

.verify-row.is-ok {
  border-color: #D6F0E5;
  background: linear-gradient(135deg, #F1FBF7, #F7FEFB);
}

.verify-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid #E3EAF8;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
}

.verify-row.is-ok .verify-ico {
  border-color: #CDEBDD;
  background: var(--green-soft);
  color: var(--green);
}

.verify-main {
  flex: 1;
  min-width: 0;
}

.verify-title {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.verify-sub {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.verify-state {
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
}

.verify-row.is-ok .verify-state {
  color: var(--green);
  font-weight: 600;
}

.banner-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #D2EEE2;
  border-radius: 12px;
  background: linear-gradient(135deg, #EAF8F2, #F1FBF7);
  color: #127A5A;
  font-size: 12px;
  font-weight: 500;
}

.banner-ok span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}

/* 上架目标库位 */
.loc-scan-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #EDF1FA;
  border-radius: 14px;
  background: linear-gradient(135deg, #F7FAFF, #FEF8FB);
}

.loc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3E6BF2, #E68AAE);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.loc-main {
  flex: 1;
  min-width: 0;
}

.loc-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-meta {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 10.5px;
}

.scan-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 10px;
}

/* 盘点统计与结果 */
.inv-stats,
.result-grid {
  display: flex;
  gap: 8px;
}

.inv-stat,
.result-grid > div {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid #EEF2FA;
  border-radius: 14px;
  background: #F8FAFE;
  text-align: center;
}

.inv-stat b,
.result-grid b {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.inv-stat span,
.result-grid span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.inv-stats {
  margin: 4px 0 14px;
}

.stat-green {
  color: var(--green) !important;
}

/* 分段切换 */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #F1F4FB;
}

.seg-btn {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11.5px;
  white-space: nowrap;
  cursor: pointer;
}

.seg-btn.active {
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 49, 110, .08);
  color: var(--blue-deep);
  font-weight: 600;
}

/* 出库勾选行 */
.select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #EEF2FA;
  border-radius: 14px;
  background: #FBFCFE;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.select-row.selected {
  border-color: #C9D8F7;
  background: linear-gradient(135deg, #F2F7FF, #FDF3F7);
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1.5px solid #C7D0E4;
  border-radius: 50%;
  background: #fff;
}

.check.on {
  border-color: #3E6BF2;
  background: linear-gradient(135deg, #3E6BF2, #7C74EE);
}

.check.on::after {
  content: "✓";
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.select-main {
  flex: 1;
  min-width: 0;
}

/* 表单 */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-label {
  color: var(--ink-3);
  font-size: 11.5px;
}

.form-input {
  height: 44px;
  padding: 0 13px;
  border: 1px solid #E3EAF7;
  border-radius: 12px;
  background: #F9FBFE;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
  border-color: #B8CAF5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 107, 242, .1);
}

/* ========== 9. 按钮、底部操作栏 ========== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s;
}

.btn:active {
  transform: scale(.985);
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, #3E6BF2 0%, #6F74ED 52%, #E68AAE 100%);
  box-shadow: 0 10px 24px rgba(62, 107, 242, .26);
  color: #fff;
}

.btn-ghost {
  border-color: #DFE6F4;
  background: #fff;
  color: var(--ink-2);
}

.btn[disabled] {
  opacity: .45;
  box-shadow: none;
  cursor: default;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 38px;
  font-size: 12.5px;
}

.bd-danger {
  border-color: #F3D2DA;
  color: var(--red);
}

.page.docked {
  padding-bottom: 0;
}

.dock {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 480px);
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(247, 249, 254, 0), rgba(247, 249, 254, .94) 32%, #F7F9FE 68%);
  transform: translateX(-50%);
}

.dock-info {
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}

.dock-info b {
  margin: 0 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.dock-btn {
  height: 46px;
}

.dock .btn-primary {
  flex: 1;
}

.dock .btn-ghost.dock-btn {
  flex: none;
  padding: 0 16px;
  font-size: 12.5px;
}

/* ========== 10. 轻提示、弹层、扫描遮罩 ========== */
.toast {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(27, 35, 64, .9);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(8px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 28, 52, .44);
  opacity: 0;
  transition: opacity .25s;
  backdrop-filter: blur(3px);
}

.sheet-mask.show {
  opacity: 1;
}

.sheet-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  max-height: 86vh;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
  transform: translate(-50%, 100%);
  transition: transform .3s cubic-bezier(.22, .8, .28, 1);
}

.sheet-mask.show .sheet-card {
  transform: translate(-50%, 0);
}

.sheet-grab {
  width: 38px;
  height: 4px;
  margin: 4px auto 10px;
  border-radius: 99px;
  background: #DDE3F0;
}

.sheet-head {
  padding-bottom: 6px;
}

.sheet-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.sheet-sub {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
}

.sheet-body {
  padding-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sheet-actions .btn {
  flex: 1;
}

.sheet-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 扫码 / 群读全屏动效 */
.scan-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 26, 52, .62);
  opacity: 0;
  transition: opacity .22s;
  backdrop-filter: blur(4px);
}

.scan-mask.show {
  opacity: 1;
}

.scan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 230px;
  color: #fff;
  transform: translateY(6px);
  transition: transform .25s;
}

.scan-mask.show .scan-card {
  transform: translateY(0);
}

.scan-frame {
  position: relative;
  width: 126px;
  height: 126px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-top: none; border-right: none; }
.corner-br { bottom: 10px; right: 10px; border-top: none; border-left: none; }

.scan-line {
  position: absolute;
  right: 8px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 106, 150, 0), #F7A7C2 30%, #fff 50%, #A9C2FF 70%, rgba(62, 107, 242, 0));
  box-shadow: 0 0 12px rgba(255, 255, 255, .6);
  animation: scanline 1.4s ease-in-out infinite;
}

@keyframes scanline {
  0% { top: 14px; }
  50% { top: 104px; }
  100% { top: 14px; }
}

.scan-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
}

.scan-sub {
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  text-align: center;
}

/* ========== 11. 底部导航 ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: min(100%, 480px);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid #E9EEF8;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -8px 24px rgba(31, 49, 110, .06);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 0;
  border-radius: 12px;
  color: var(--ink-3);
  text-decoration: none;
}

.tab-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.tab-ico svg {
  width: 21px;
  height: 21px;
}

.tab-label {
  font-size: 10.5px;
  letter-spacing: .3px;
}

.tab.active {
  background: linear-gradient(135deg, #EDF2FF, #FDF0F6);
  color: var(--blue-deep);
}

.tab.active .tab-ico {
  color: var(--blue);
}

.tab.active .tab-label {
  font-weight: 600;
}

/* ========== 12. 工具类与响应式 ========== */
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }

.hint {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}

.foot-note {
  padding: 18px 12px 4px;
  color: var(--ink-4);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

.record-list .row {
  padding: 11px 0;
}

@media (min-width: 520px) {
  .app {
    box-shadow: 0 0 0 1px rgba(226, 233, 246, .8), 0 30px 80px rgba(31, 49, 110, .12);
  }
}
