* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4a7fc7; --primary-light: #6b9fd8; --primary-dark: #3a6aad;
  --accent: #5b8dd9; --accent-light: #8bb3e6;
  --bg: #f2f4f8; --bg2: #e8ecf2; --card: #ffffff; --card-hover: #f8f9fc;
  --border: #dce2ea; --border-light: #e8ecf2;
  --text: #2c3e50; --text2: #7b8a9e; --text3: #a0adb8;
  --success: #52b788; --warning: #f0a050; --danger: #e06060;
  --radius: 16px; --shadow: 0 4px 16px rgba(74,127,199,0.06);
  --nav-height: 64px;
}
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { background: var(--bg); color: var(--text); }
#app { min-height: 100vh; padding-bottom: calc(var(--nav-height) + 10px); }
a { color: var(--primary); text-decoration: none; }

/* Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-height);
  background: var(--card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-around;
  border-top: none; z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 24px rgba(74,127,199,0.08);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text3); text-decoration: none; padding: 6px 12px;
  transition: all 0.25s; position: relative;
}
.nav-item.active { color: var(--primary); }
.nav-item.active::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}
.nav-item svg { transition: transform 0.2s; }
.nav-item.active svg { transform: scale(1.1); }

/* Toast */
.toast {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border-radius: 8px; color: #fff; font-size: 14px;
  z-index: 9999; animation: toastIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary-light); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Header */
.header {
  background: linear-gradient(135deg, #3a6aad 0%, #5b8dd9 50%, #4a7fc7 100%);
  color: #fff; padding: 16px 20px; padding-top: calc(env(safe-area-inset-top) + 16px);
  border-radius: 0 0 28px 28px;
  position: relative; overflow: hidden;
}
.header::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: 50%;
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 50px; height: 50px; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; }
.header-logo-sm { width: 36px; height: 36px; border-radius: 6px; padding: 2px; }
.header-company { font-size: 11px; opacity: 0.8; margin-bottom: 2px; letter-spacing: 1px; }
.header-title { font-size: 20px; font-weight: 700; }
.header-sub { font-size: 12px; opacity: 0.7; margin-top: 4px; }

/* Page */
.page { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.page-body { padding: 16px; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow); text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 4px; }
.stat-card.green .stat-value { color: var(--success); }
.stat-card.green::before { background: linear-gradient(90deg, #66bb6a, #a5d6a7); }
.stat-card.orange .stat-value { color: var(--warning); }
.stat-card.orange::before { background: linear-gradient(90deg, #ffb74d, #ffe082); }
.stat-card.red .stat-value { color: var(--danger); }
.stat-card.red::before { background: linear-gradient(90deg, #e06060, #f0a0a0); }

/* Form */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 15px; background: var(--card); color: var(--text); outline: none;
  transition: all 0.25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,127,199,0.12);
}
.form-textarea { resize: vertical; min-height: 60px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 24px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s; width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 16px rgba(74,127,199,0.25);
}
.btn-primary:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(74,127,199,0.15); }
.btn-success { background: linear-gradient(135deg, var(--success), #a5d6a7); color: #fff; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #f0a0a0); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
}
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* Voice Button */
.voice-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--danger); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: all 0.2s; position: relative;
}
.voice-btn:active, .voice-btn.listening {
  transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239,68,68,0.2);
}
.voice-btn.listening::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--danger); animation: pulse 1.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* Input with voice */
.input-voice { display: flex; gap: 8px; align-items: center; }
.input-voice .form-input { flex: 1; }

/* Photo */
.photo-upload {
  width: 100%; height: 160px; border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text3); cursor: pointer; overflow: hidden; position: relative;
  transition: border-color 0.2s;
}
.photo-upload:active { border-color: var(--primary-light); }
.photo-upload img {
  width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;
  background: #111;
}
.photo-upload input { display: none; }

/* List */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s;
}
.list-item:active { transform: scale(0.98); }
.list-item-icon {
  width: 44px; height: 44px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.list-item-icon.blue { background: #eef0ff; color: var(--primary); }
.list-item-icon.green { background: #e8f5e9; color: var(--success); }
.list-item-icon.red { background: #fde8e8; color: var(--danger); }
.list-item-icon.orange { background: #fff8e1; color: var(--warning); }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.list-item-right { text-align: right; flex-shrink: 0; }
.list-item-qty { font-size: 18px; font-weight: 700; color: var(--primary); }
.list-item-unit { font-size: 11px; color: var(--text3); }

/* Shelf Grid */
.shelf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shelf-card {
  background: var(--card); border-radius: 20px; padding: 14px;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s;
}
.shelf-card:active { transform: scale(0.97); }
.shelf-card-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.shelf-card-num { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.shelf-layers { display: flex; gap: 4px; }
.shelf-layer {
  flex: 1; height: 24px; border-radius: 4px; display: flex;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 600;
}
.shelf-layer.empty { background: var(--bg2); color: var(--text3); }
.shelf-layer.has-items { background: #eef0ff; color: var(--primary); }

/* Login */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(135deg, #3a6aad 0%, #6b9fd8 50%, #8bb3e6 100%);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: 50%;
}
.login-page::after {
  content: ''; position: absolute; bottom: -20%; left: -15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: 50%;
}
.login-card {
  background: var(--card); border-radius: 28px; padding: 36px 24px;
  width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(74,127,199,0.15);
  position: relative; z-index: 1;
}
.login-logo-img { width: 80px; height: 80px; border-radius: 12px; object-fit: contain; margin-bottom: 12px; }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo-company { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.login-logo-title { font-size: 24px; font-weight: 700; color: var(--primary); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(58,49,83,0.4); z-index: 200;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--card); border-radius: 28px 28px 0 0; width: 100%;
  max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 24px;
  animation: slideUp 0.3s ease;
}
.modal-center .modal { border-radius: 20px; margin: 20px; max-height: 80vh; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg); font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--text2);
}

/* Tags */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.tag-in { background: #e8f5e9; color: #66bb6a; }
.tag-out { background: #fde8e8; color: #e06060; }
.tag-admin { background: #eef0ff; color: var(--primary); }
.tag-user { background: var(--bg2); color: var(--text2); }

/* Transaction list */
.tx-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tx-item:last-child { border-bottom: none; }
.tx-type { width: 40px; text-align: center; }
.tx-info { flex: 1; }
.tx-name { font-size: 14px; font-weight: 500; }
.tx-meta { font-size: 11px; color: var(--text3); }
.tx-qty { font-size: 16px; font-weight: 700; }
.tx-qty.in { color: var(--success); }
.tx-qty.out { color: var(--danger); }

/* Detail photo */
.detail-photo {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  background: #111; margin-bottom: 12px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* 竖拍照片不能裁：用 contain + 视口高度上限，整张都看得见，点击进全屏 */
.detail-photo img {
  width: 100%; max-height: 46vh; object-fit: contain; display: block; cursor: zoom-in;
}
.detail-photo-hint {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 10px; pointer-events: none;
}

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 14px; }

/* Profile */
.profile-header {
  text-align: center; padding: 30px 20px;
  background: linear-gradient(135deg, #3a6aad 0%, #5b8dd9 50%, #4a7fc7 100%);
  color: #fff; position: relative; overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.profile-header::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: 50%;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
  font-size: 28px; font-weight: 700; box-shadow: 0 4px 16px rgba(74,127,199,0.2);
  backdrop-filter: blur(10px);
}
.profile-name { font-size: 18px; font-weight: 600; }
.profile-role { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.profile-menu { padding: 16px; }
.profile-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: var(--card); border-radius: 16px;
  margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s;
}
.profile-menu-item:active { transform: scale(0.98); }
.profile-menu-item span { font-size: 15px; }
.profile-menu-item .arrow { color: var(--text3); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Quick actions */
.quick-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.quick-action {
  flex: 1; padding: 16px 10px; background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow); text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.quick-action:active { transform: scale(0.96); }
.quick-action-icon { font-size: 28px; margin-bottom: 6px; }
.quick-action-text { font-size: 13px; font-weight: 600; color: var(--text); }

/* Section title */
.section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-more { font-size: 13px; color: var(--primary-light); font-weight: 500; }

/* Search bar */
.search-bar {
  display: flex; gap: 8px; align-items: center; margin-bottom: 16px;
}
.search-bar .form-input { flex: 1; }

/* User list */
.user-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; background: var(--card); border-radius: var(--radius);
  margin-bottom: 8px; box-shadow: var(--shadow);
}
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; box-shadow: 0 2px 8px rgba(74,127,199,0.2);
}
.user-actions { display: flex; gap: 6px; }

/* Success Celebration */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.celebrate-content {
  display: flex; flex-direction: column; align-items: center;
  animation: celebrateIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             celebrateOut 0.4s ease 1.6s forwards;
}
.celebrate-thumb {
  font-size: 72px; margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(74,127,199,0.3));
}
.celebrate-text {
  font-size: 20px; font-weight: 700; color: var(--primary);
  background: var(--card); padding: 8px 24px; border-radius: 24px;
  box-shadow: 0 4px 20px rgba(74,127,199,0.15);
}
@keyframes celebrateIn {
  0% { opacity: 0; transform: scale(0.3) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes celebrateOut {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.8) translateY(-30px); }
}

/* ===== 类目查询 / 照片留存（v1.1） ===== */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 3px;
  background: none; border: none; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--primary); cursor: pointer;
  font-family: inherit;
}
.link-btn:active { opacity: 0.6; }
.link-btn-icon { display: inline-flex; }
.link-btn-icon svg { width: 14px; height: 14px; }

/* 类目选择器 */
.picker-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.picker-tab {
  flex: 1; padding: 8px 0; font-size: 13px; font-family: inherit; cursor: pointer;
  background: var(--bg2); color: var(--text2);
  border: none; border-radius: 10px; font-weight: 600;
}
.picker-tab.active { background: var(--primary); color: #fff; }
.picker-hint { font-size: 11px; color: var(--text3); margin-bottom: 8px; }
.picker-list { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.picker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.picker-row:last-child { border-bottom: none; }
.picker-row:active { background: var(--card-hover); }
.picker-row-body { flex: 1; min-width: 0; }
.picker-row-name { font-size: 14px; font-weight: 600; }
.picker-row-spec {
  font-size: 12px; color: var(--text2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-row-right { text-align: right; flex-shrink: 0; }
.picker-row-qty { font-size: 15px; font-weight: 700; color: var(--primary); }
.picker-row-unit { font-size: 11px; color: var(--text3); margin-left: 1px; }
.picker-row-meta { font-size: 11px; color: var(--text3); }

/* 入库时命中已有条目 */
.match-panel {
  background: #fff8e1; border: 1px solid #f0d9a0; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.match-panel-title { font-size: 12px; color: #9a7328; font-weight: 600; margin-bottom: 6px; }
.match-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-top: 1px solid #f0d9a0; cursor: pointer;
}
.match-row:active { opacity: 0.6; }
.match-row-body { flex: 1; min-width: 0; }
.match-row-name { font-size: 13px; font-weight: 600; }
.match-row-sub { font-size: 11px; color: var(--text2); margin-top: 1px; }
.match-row-right { font-size: 12px; font-weight: 600; color: var(--text2); flex-shrink: 0; }
.match-row-go { color: var(--primary); margin-left: 2px; }

.restock-banner {
  display: flex; align-items: center; gap: 10px;
  background: #e8f5e9; border: 1px solid #a8d5b5; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.restock-banner-body { flex: 1; min-width: 0; }
.restock-banner-title { font-size: 13px; font-weight: 700; color: #3d7f56; }
.restock-banner-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* 记录里的现场照片缩略图：contain 保证竖图也看得出是啥，全图在灯箱里看 */
.tx-thumb {
  width: 48px; height: 48px; border-radius: 8px; object-fit: contain;
  background: #111; flex-shrink: 0; border: 1px solid var(--border); cursor: zoom-in;
}
.tx-thumb:active { opacity: 0.7; }

/* 全屏看图：双指捏合 / 双击 / 滚轮缩放，可拖动，可下载 */
.photo-viewer {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  display: flex; flex-direction: column;
  touch-action: none; overscroll-behavior: contain;
}
.photo-viewer-stage {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none; user-select: none;
}
.photo-viewer-stage img.dragging { transition: none; }
.photo-viewer-stage img.snap { transition: transform 0.18s ease-out; }

.photo-viewer-top {
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: rgba(0,0,0,0.5); color: #fff; flex-shrink: 0;
}
.photo-viewer-count { font-size: 13px; color: rgba(255,255,255,0.85); flex: 1; }
.photo-viewer-scale {
  font-size: 12px; color: rgba(255,255,255,0.6);
  min-width: 42px; text-align: right; font-variant-numeric: tabular-nums;
}
.pv-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.14); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pv-btn:active { background: rgba(255,255,255,0.3); }
.pv-btn svg { width: 20px; height: 20px; fill: currentColor; }

.photo-viewer-bottom {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: rgba(0,0,0,0.5); flex-shrink: 0;
}
.photo-viewer-tip {
  color: rgba(255,255,255,0.55); font-size: 11px;
  text-align: center; padding: 0 14px 6px; background: rgba(0,0,0,0.5);
  flex-shrink: 0; line-height: 1.5;
}
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 56px; border: none; border-radius: 8px;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pv-nav:active { background: rgba(0,0,0,0.6); }
.pv-nav-prev { left: 6px; }
.pv-nav-next { right: 6px; }
