* {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  font-size: 16px;
}

uni-app,
uni-page,
uni-page-wrapper,
uni-page-body {
  display: block;
  box-sizing: border-box;
  width: 100%;
}

uni-page-wrapper {
  position: relative;
}

#app,
uni-app,
uni-page,
uni-page-wrapper {
  height: 100%;
}

/* toast,modal,actionSheet,picker,layout */
.uni-mask {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* toast,modal,actionSheet,picker */
.uni-fade-enter-active,
.uni-fade-leave-active {
  transition-duration: 0.25s;
  transition-property: opacity;
  transition-timing-function: ease;
}

.uni-fade-enter-from,
.uni-fade-leave-active {
  opacity: 0;
}

.uni-loading,
uni-button[loading]:before {
  background-color: transparent;
  background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiBye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hdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=');
  background-repeat: no-repeat;
}

.uni-loading {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  animation: uni-loading 1s steps(12, end) infinite;
  background-size: 100%;
}

@keyframes uni-loading {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

html {
  /* --UI-BG-0: #ededed; */
  --primary-color: #007aff;
  --UI-BG: #fff;
  --UI-BG-1: #f7f7f7;
  --UI-BG-2: #fff;
  --UI-BG-3: #f7f7f7;
  --UI-BG-4: #4c4c4c;
  --UI-BG-5: #fff;
  --UI-FG: #000;
  --UI-FG-0: rgba(0, 0, 0, 0.9);
  --UI-FG-HALF: rgba(0, 0, 0, 0.9);
  --UI-FG-1: rgba(0, 0, 0, 0.5);
  --UI-FG-2: rgba(0, 0, 0, 0.3);
  --UI-FG-3: rgba(0, 0, 0, 0.1);
}

uni-page[data-type] uni-page-body {
  background-color: transparent;
}
body::after {
  position: fixed;
  content: '';
  left: -1000px;
  top: -1000px;
  animation: shadow-preload 0.1s;
  animation-delay: 3s;
}

@keyframes shadow-preload {
  0% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
  100% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
}
.uni-async-error {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  color: #999;
  padding: 100px 10px;
  text-align: center;
}
.uni-async-loading {
  box-sizing: border-box;
  width: 100%;
  padding: 50px;
  text-align: center;
}

.uni-async-loading .uni-loading {
  width: 30px;
  height: 30px;
}
uni-page-refresh {
  position: absolute;
  top: 0;
  width: 100%;
  height: 40px;
  display: block;
  box-sizing: border-box;
}

.uni-page-refresh {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647),
    0 1px 4px rgba(0, 0, 0, 0.117647);
  display: none;
  z-index: 997;
}

.uni-page-refresh-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.uni-page-refresh--pulling .uni-page-refresh,
.uni-page-refresh--aborting .uni-page-refresh,
.uni-page-refresh--reached .uni-page-refresh,
.uni-page-refresh--refreshing .uni-page-refresh,
.uni-page-refresh--restoring .uni-page-refresh {
  display: flex;
}

.uni-page-refresh--pulling .uni-page-refresh__spinner,
.uni-page-refresh--aborting .uni-page-refresh__spinner,
.uni-page-refresh--reached .uni-page-refresh__spinner,
.uni-page-refresh--refreshing .uni-page-refresh__icon,
.uni-page-refresh--restoring .uni-page-refresh__icon {
  display: none;
}

.uni-page-refresh--refreshing .uni-page-refresh__spinner {
  transform-origin: center center;
  animation: uni-page-refresh-rotate 2s linear infinite;
}

.uni-page-refresh--refreshing .uni-page-refresh__path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: uni-page-refresh-dash 1.5s ease-in-out infinite,
    uni-page-refresh-colorful 6s ease-in-out infinite;
}

@keyframes uni-page-refresh-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes uni-page-refresh-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}
/**
 * 病虫害采集系统 — 设计系统
 * 现代农业科技风格 · Modern Agriculture Tech
 */
/* ========================================
   颜色系统 Color Palette
   ======================================== */
/* 品牌色 Brand */
/* 语义色 Semantic */
/* 中性色 Neutral */
/* 渐变色 Gradients */
/* ========================================
   阴影系统 Shadow System
   ======================================== */
/* ========================================
   圆角系统 Border Radius
   ======================================== */
/* ========================================
   间距系统 Spacing
   ======================================== */
/* ========================================
   字体系统 Typography
   ======================================== */
/* ========================================
   uni-app 内置变量覆盖
   ======================================== */
/* ========================================
   全局动画 Global Animations
   ======================================== */
@keyframes fadeIn {
from {
    opacity: 0;
}
to {
    opacity: 1;
}
}
@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(0.9375rem);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-0.9375rem);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
@keyframes scaleIn {
from {
    opacity: 0;
    transform: scale(0.9);
}
to {
    opacity: 1;
    transform: scale(1);
}
}
@keyframes slideUp {
from {
    transform: translateY(100%);
}
to {
    transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
    opacity: 1;
}
50% {
    opacity: 0.6;
}
}
@keyframes shimmer {
0% {
    background-position: -200% 0;
}
100% {
    background-position: 200% 0;
}
}
@keyframes breathe {
0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}
50% {
    box-shadow: 0 0 0 0.375rem rgba(16, 185, 129, 0);
}
}
/* ========================================
   骨架屏 Skeleton
   ======================================== */
.skeleton, .skeleton-card, .skeleton-avatar, .skeleton-title, .skeleton-text {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}
.skeleton-text {
  height: 0.875rem;
  margin-bottom: 0.375rem;
}
.skeleton-title {
  height: 1.25rem;
  width: 60%;
  margin-bottom: 0.5rem;
}
.skeleton-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 31.21875rem;
}
.skeleton-card {
  min-height: 5rem;
  border-radius: 0.75rem;
}

/* ========================================
   页面过渡 Page Transition
   ======================================== */
.page-enter-active {
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-leave-active {
  animation: fadeIn 0.2s ease reverse;
}

/* ========================================
   工具类 Utility Classes
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #10B981 40%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
}
.card {
  background: #FFFFFF;
  border-radius: 0.75rem;
  border: 0.03125rem solid #F3F4F6;
  box-shadow: 0 0.03125rem 0.09375rem rgba(0, 0, 0, 0.04), 0 0.125rem 0.375rem rgba(0, 0, 0, 0.03);
}
.card-elevated {
  background: #FFFFFF;
  border-radius: 0.75rem;
  box-shadow: 0 0.3125rem 0.46875rem rgba(0, 0, 0, 0.05), 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.04);
}

/* ========================================
   全局基础样式 Global Base Styles
   ======================================== */
uni-page-body {
  min-height: 100%;
  background-color: #F0FDF4;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.875rem;
  line-height: 1.5;
}
body {
  background-color: #F0FDF4;
}

/* 统一盒模型 */
uni-view,
uni-text,
uni-button,
uni-input,
uni-image,
uni-scroll-view,
uni-swiper,
uni-swiper-item,
uni-navigator {
  box-sizing: border-box;
}

/* 重置按钮 */
uni-button {
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1;
  background: transparent;
  font-size: inherit;
}
uni-button::after {
  border: none;
}

/* 重置输入框 */
uni-input {
  min-height: auto;
}

/* 页面容器 */
.page-shell {
  min-height: 100vh;
  background: #F0FDF4;
}

/* ========================================
   通用状态容器 State Box
   ======================================== */
.state-box {
  min-height: 13.125rem;
  margin: 0.875rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 0.03125rem solid #F3F4F6;
  box-shadow: 0 0.03125rem 0.09375rem rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: #9CA3AF;
  font-size: 0.8125rem;
}
.state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}
.state-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}
.state-desc {
  color: #6B7280;
  font-size: 0.8125rem;
  margin-top: 0.125rem;
}

/* ========================================
   通用信息卡片 Info Card
   ======================================== */
.info-card {
  margin: 0 0.875rem 0.75rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 0.03125rem solid #F3F4F6;
  box-shadow: 0 0.03125rem 0.09375rem rgba(0, 0, 0, 0.04);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.625rem;
  margin-bottom: 0.125rem;
  border-bottom: 0.03125rem solid #F3F4F6;
}
.card-head-icon {
  font-size: 1.125rem;
}
.card-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}
.info-list {
  padding-top: 0.125rem;
}
.info-row {
  min-height: 2.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 0.03125rem solid #F9FAFB;
}
.info-row:last-child {
  border-bottom: 0;
}
.info-label {
  color: #6B7280;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.info-value {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
  line-height: 1.45;
}

/* ========================================
   通用徽章 Badge
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 31.21875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.badge-success {
  background: #D1FAE5;
  color: #059669;
}
.badge-warning {
  background: #FEF3C7;
  color: #D97706;
}
.badge-danger {
  background: #FEE2E2;
  color: #DC2626;
}
.badge-info {
  background: #DBEAFE;
  color: #2563EB;
}
.badge-neutral {
  background: #F3F4F6;
  color: #6B7280;
}

/* ========================================
   通用按钮 Common Button
   ======================================== */
.btn-primary {
  width: 100%;
  height: 3rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.25rem 0.75rem rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0.125rem 0.375rem rgba(16, 185, 129, 0.2);
}
.btn-primary[disabled] {
  background: #D1D5DB;
  color: #9CA3AF;
  box-shadow: none;
}

/* ========================================
   底部安全区 Safe Area
   ======================================== */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ========================================
   动画延迟工具 Stagger Delays
   ======================================== */
.delay-1 {
  animation-delay: 0.05s;
}
.delay-2 {
  animation-delay: 0.1s;
}
.delay-3 {
  animation-delay: 0.15s;
}
.delay-4 {
  animation-delay: 0.2s;
}
.delay-5 {
  animation-delay: 0.25s;
}