/* uni-icons 字体缺失完整补丁
 * 覆盖所有常用 uni-icons 类，用 Unicode 字符替代字体图标
 * 保证任何图标都不会显示为破图/空白方块
 */

/* ========== 1. 基础：所有图标元素用系统字体 ========== */
.uni-icons,
.uni-icon,
.uni-btn-icon,
.uni-tabbar__iconfont,
.uni-input-clear,
uni-toast .uni-icon {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji" !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  -webkit-text-stroke: 0;
}

/* ========== 2. toast 图标 ========== */
uni-toast .uni-icon_toast.uni-icon-error:before {
  content: "✕" !important;
  font-size: 50px !important;
  font-weight: 300 !important;
  color: #fff !important;
  line-height: 1 !important;
  display: inline-block;
}
uni-toast .uni-icon_toast.uni-icon-success-no-circle:before {
  content: "✓" !important;
  font-size: 55px !important;
  font-weight: 400 !important;
  color: #fff !important;
  line-height: 1 !important;
  display: inline-block;
}
uni-toast .uni-icon_toast.uni-loading {
  background-image: url(/static/loading2.svg) !important;
  background-size: 38px 38px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 20px auto 0 !important;
}
uni-toast .uni-icon_toast.uni-loading:before { content: "" !important; }

/* ========== 3. 操作类 ========== */
.uni-icons.uniui-closeempty:before,
.uni-icons.uniui-close:before,
.uni-icon.uni-icon-close:before { content: "✕" !important; }

.uni-icons.uniui-clear:before { content: "ⓧ" !important; }

.uni-icons.uniui-checkmarkempty:before,
.uni-icons.uniui-checkbox-filled:before,
.uni-icons.uniui-checkmarkempty-filled:before { content: "✓" !important; }

.uni-icons.uniui-plus:before,
.uni-icons.uniui-plusempty:before,
.uni-icons.uniui-plus-filled:before { content: "+" !important; }

.uni-icons.uniui-minus:before { content: "−" !important; }

.uni-icons.uniui-back:before,
.uni-icons.uniui-left:before,
.uni-icons.uniui-arrowleft:before { content: "‹" !important; }

.uni-icons.uniui-forward:before,
.uni-icons.uniui-right:before,
.uni-icons.uniui-arrowright:before { content: "›" !important; }

.uni-icons.uniui-up:before,
.uni-icons.uniui-top:before,
.uni-icons.uniui-arrowup:before { content: "⌃" !important; }

.uni-icons.uniui-down:before,
.uni-icons.uniui-bottom:before,
.uni-icons.uniui-arrowdown:before { content: "⌄" !important; }

.uni-icons.uniui-refresh:before,
.uni-icons.uniui-reload:before,
.uni-icons.uniui-loop:before { content: "↻" !important; }

.uni-icons.uniui-redo:before { content: "↷" !important; }
.uni-icons.uniui-undo:before { content: "↶" !important; }

.uni-icons.uniui-trash:before,
.uni-icons.uniui-trash-filled:before { content: "🗑" !important; }

.uni-icons.uniui-edit:before,
.uni-icons.uniui-compose:before { content: "✎" !important; }

.uni-icons.uniui-copy:before { content: "⧉" !important; }
.uni-icons.uniui-paperclip:before { content: "📎" !important; }

.uni-icons.uniui-download:before,
.uni-icons.uniui-cloud-download:before,
.uni-icons.uniui-cloud-download-filled:before { content: "⭳" !important; }

.uni-icons.uniui-upload:before,
.uni-icons.uniui-cloud-upload:before,
.uni-icons.uniui-cloud-upload-filled:before { content: "⭱" !important; }

.uni-icons.uniui-export:before { content: "⭱" !important; }
.uni-icons.uniui-import:before { content: "⭳" !important; }

/* ========== 4. 导航类 ========== */
.uni-icons.uniui-home:before,
.uni-icons.uniui-home-filled:before { content: "⌂" !important; }

.uni-icons.uniui-list:before,
.uni-icons.uniui-bars:before { content: "☰" !important; }

.uni-icons.uniui-grid:before,
.uni-icons.uniui-apps:before { content: "▦" !important; }

.uni-icons.uniui-more:before,
.uni-icons.uniui-more-filled:before,
.uni-icons.uniui-moreandroid:before { content: "⋯" !important; }

.uni-icons.uniui-menu:before { content: "☰" !important; }
.uni-icons.uniui-search:before { content: "⌕" !important; }

.uni-icons.uniui-settings:before,
.uni-icons.uniui-gear:before,
.uni-icons.uniui-gear-filled:before { content: "⚙" !important; }

.uni-icons.uniui-navigate:before,
.uni-icons.uniui-navigate-filled:before,
.uni-icons.uniui-location:before,
.uni-icons.uniui-location-filled:before { content: "⌖" !important; }

.uni-icons.uniui-map:before,
.uni-icons.uniui-map-filled:before { content: "🗺" !important; }

.uni-icons.uniui-compass:before { content: "✥" !important; }
.uni-icons.uniui-link:before { content: "🔗" !important; }
.uni-icons.uniui-share:before,
.uni-icons.uniui-share-filled:before { content: "↗" !important; }

/* ========== 5. 用户类 ========== */
.uni-icons.uniui-person:before,
.uni-icons.uniui-person-filled:before,
.uni-icons.uniui-contact:before,
.uni-icons.uniui-contact-filled:before,
.uni-icons.uniui-staff:before,
.uni-icons.uniui-staff-filled:before { content: "👤" !important; }

.uni-icons.uniui-personadd:before,
.uni-icons.uniui-personadd-filled:before { content: "👤⁺" !important; }

.uni-icons.uniui-locked:before,
.uni-icons.uniui-locked-filled:before { content: "🔒" !important; }

.uni-icons.uniui-unlock:before,
.uni-icons.uniui-unlock-filled:before { content: "🔓" !important; }

.uni-icons.uniui-eye:before { content: "👁" !important; }
.uni-icons.uniui-eye-filled:before { content: "👁" !important; }
.uni-icons.uniui-eye-slash:before,
.uni-icons.uniui-eye-slash-filled:before { content: "🚫" !important; }

/* ========== 6. 通讯类 ========== */
.uni-icons.uniui-chat:before,
.uni-icons.uniui-chat-filled:before,
.uni-icons.uniui-chatbubble:before,
.uni-icons.uniui-chatbubble-filled:before,
.uni-icons.uniui-chatboxes:before,
.uni-icons.uniui-chatboxes-filled:before { content: "💬" !important; }

.uni-icons.uniui-email:before,
.uni-icons.uniui-email-filled:before { content: "✉" !important; }

.uni-icons.uniui-phone:before,
.uni-icons.uniui-phone-filled:before { content: "☎" !important; }

.uni-icons.uniui-call:before { content: "☏" !important; }
.uni-icons.uniui-videocam:before,
.uni-icons.uniui-videocam-filled:before { content: "🎥" !important; }

.uni-icons.uniui-mic:before,
.uni-icons.uniui-mic-filled:before { content: "🎤" !important; }

.uni-icons.uniui-mic-slash:before,
.uni-icons.uniui-mic-slash-filled:before { content: "🔇" !important; }

.uni-icons.uniui-sound:before,
.uni-icons.uniui-sound-filled:before { content: "🔊" !important; }

.uni-icons.uniui-notification:before,
.uni-icons.uniui-notification-filled:before,
.uni-icons.uniui-bell:before { content: "🔔" !important; }

/* ========== 7. 状态类 ========== */
.uni-icons.uniui-info:before,
.uni-icons.uniui-info-filled:before { content: "ⓘ" !important; }

.uni-icons.uniui-help:before,
.uni-icons.uniui-help-filled:before { content: "?" !important; }

.uni-icons.uniui-warn:before,
.uni-icons.uniui-warn-filled:before { content: "⚠" !important; }

.uni-icons.uniui-cancel:before,
.uni-icons.uniui-cancel-filled:before { content: "⊘" !important; }

.uni-icons.uniui-spinner-cycle:before { content: "⟳" !important; }
.uni-icons.uniui-spinner:before { content: "◌" !important; }

.uni-icons.uniui-checkbox:before { content: "☐" !important; }
.uni-icons.uniui-square:before { content: "□" !important; }
.uni-icons.uniui-circle:before { content: "○" !important; }
.uni-icons.uniui-circle-filled:before { content: "●" !important; }

/* ========== 8. 内容类 ========== */
.uni-icons.uniui-star:before { content: "☆" !important; }
.uni-icons.uniui-star-filled:before { content: "★" !important; }
.uni-icons.uniui-starhalf:before { content: "⯨" !important; }
.uni-icons.uniui-heart:before { content: "♡" !important; }
.uni-icons.uniui-heart-filled:before { content: "♥" !important; }

.uni-icons.uniui-flag:before { content: "⚐" !important; }
.uni-icons.uniui-flag-filled:before { content: "⚑" !important; }

.uni-icons.uniui-bookmark:before { content: "🔖" !important; }
.uni-icons.uniui-bookmark-filled:before { content: "🔖" !important; }

.uni-icons.uniui-medal:before,
.uni-icons.uniui-medal-filled:before { content: "🎖" !important; }

.uni-icons.uniui-trophy:before,
.uni-icons.uniui-trophy-filled:before { content: "🏆" !important; }

.uni-icons.uniui-gift:before,
.uni-icons.uniui-gift-filled:before { content: "🎁" !important; }

.uni-icons.uniui-calendar:before,
.uni-icons.uniui-calendar-filled:before { content: "📅" !important; }

.uni-icons.uniui-clock:before,
.uni-icons.uniui-clock-filled:before,
.uni-icons.uniui-time:before { content: "🕐" !important; }

.uni-icons.uniui-calendar-add:before,
.uni-icons.uniui-calendar-add-filled:before { content: "📅⁺" !important; }

/* ========== 9. 商务类 ========== */
.uni-icons.uniui-wallet:before,
.uni-icons.uniui-wallet-filled:before { content: "💳" !important; }

.uni-icons.uniui-cart:before,
.uni-icons.uniui-cart-filled:before { content: "🛒" !important; }

.uni-icons.uniui-shop:before { content: "🏪" !important; }
.uni-icons.uniui-shop-filled:before { content: "🏪" !important; }

.uni-icons.uniui-orders:before,
.uni-icons.uniui-orders-filled:before { content: "📋" !important; }

.uni-icons.uniui-coupon:before,
.uni-icons.uniui-coupon-filled:before { content: "🎫" !important; }

.uni-icons.uniui-brand:before { content: "◆" !important; }
.uni-icons.uniui-brand-filled:before { content: "◆" !important; }

.uni-icons.uniui-flag-fill:before { content: "⚑" !important; }

.uni-icons.uniui-pay:before,
.uni-icons.uniui-pay-filled:before { content: "💵" !important; }

.uni-icons.uniui-card:before,
.uni-icons.uniui-card-filled:before { content: "💳" !important; }

.uni-icons.uniui-bank:before { content: "🏦" !important; }

/* ========== 10. 媒体类 ========== */
.uni-icons.uniui-image:before,
.uni-icons.uniui-image-filled:before { content: "🖼" !important; }

.uni-icons.uniui-camera:before,
.uni-icons.uniui-camera-filled:before { content: "📷" !important; }

.uni-icons.uniui-play:before,
.uni-icons.uniui-play-filled:before { content: "▶" !important; }

.uni-icons.uniui-pause:before,
.uni-icons.uniui-pause-filled:before { content: "⏸" !important; }

.uni-icons.uniui-stop:before,
.uni-icons.uniui-stop-filled:before { content: "⏹" !important; }

.uni-icons.uniui-skip-backward:before,
.uni-icons.uniui-skip-backward-filled:before { content: "⏮" !important; }

.uni-icons.uniui-skip-forward:before,
.uni-icons.uniui-skip-forward-filled:before { content: "⏭" !important; }

.uni-icons.uniui-refresh-filled:before { content: "↻" !important; }

/* ========== 11. 文件类 ========== */
.uni-icons.uniui-folder:before,
.uni-icons.uniui-folder-filled:before,
.uni-icons.uniui-folder-add:before { content: "📁" !important; }

.uni-icons.uniui-file:before,
.uni-icons.uniui-file-filled:before { content: "📄" !important; }

.uni-icons.uniui-paper:before,
.uni-icons.uniui-paper-filled:before { content: "📃" !important; }

.uni-icons.uniui-document:before,
.uni-icons.uniui-document-filled:before { content: "📄" !important; }

.uni-icons.uniui-tag:before,
.uni-icons.uniui-tag-filled:before { content: "🏷" !important; }

/* ========== 12. 其他 ========== */
.uni-icons.uniui-scan:before { content: "⌗" !important; }

.uni-icons.uniui-qr:before { content: "▣" !important; }
.uni-icons.uniui-scan-code:before { content: "▣" !important; }

.uni-icons.uniui-shield:before { content: "🛡" !important; }
.uni-icons.uniui-shield-filled:before { content: "🛡" !important; }

.uni-icons.uniui-vip:before,
.uni-icons.uniui-vip-filled:before { content: "♛" !important; }

.uni-icons.uniui-crown:before,
.uni-icons.uniui-crown-filled:before { content: "👑" !important; }

.uni-icons.uniui-hand-down:before { content: "☟" !important; }
.uni-icons.uniui-hand-up:before { content: "☝" !important; }

.uni-icons.uniui-thumb-down:before { content: "👎" !important; }
.uni-icons.uniui-thumb-up:before,
.uni-icons.uniui-thumb-up-filled:before { content: "👍" !important; }

.uni-icons.uniui-pulldown:before { content: "⌄" !important; }
.uni-icons.uniui-pullup:before { content: "⌃" !important; }

/* ========== 13. 兜底：未知图标类不显示破图 ========== */
img[src*="uniicons"],
img[src$="uniicons.ttf"],
img[src$=".ttf"][src*="icon"] {
  display: none !important;
}

/* 字体加载失败时，图标伪元素至少保持占位不塌陷 */
.uni-icons:before,
.uni-icon:before {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji" !important;
}
