﻿/* ============ IconPark SVG 图标系统 ============ */
.ip-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: hidden;
  flex-shrink: 0;
}

.ip-icon--sm { width: 16px; height: 16px; }
.ip-icon--md { width: 20px; height: 20px; }
.ip-icon--lg { width: 24px; height: 24px; }
.ip-icon--xl { width: 32px; height: 32px; }
.ip-icon--xxl { width: 48px; height: 48px; }

/* 图标在圆形/圆角背景中的容器 */
.ip-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.ip-icon-wrap--sm { width: 32px; height: 32px; border-radius: 999px; }
.ip-icon-wrap--md { width: 40px; height: 40px; border-radius: 8px; }
.ip-icon-wrap--lg { width: 48px; height: 48px; border-radius: 12px; }
.ip-icon-wrap--xl { width: 56px; height: 56px; border-radius: 14px; }

/* U文旅助手 - 公共样式文件（浏览器兼容版） */

:root {
  /* 主题色 */
  --main-color: #22C55E;
  --main-color-dark: #16a34a;
  --main-color-deeper: #15803d;
  --main-color-light: rgba(34, 197, 94, 0.08);
  --main-color-lighter: rgba(34, 197, 94, 0.15);
  --success-color: #67C23A;
  --warning-color: #E6A23C;
  --danger-color: #F56C6C;
  --info-color: #909399;
  
  /* 文字颜色 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-disabled: #cbd5e1;
  
  /* 背景颜色 */
  --page-bg: #f8fafc;
  --card-bg: #FFFFFF;
  
  /* 边框颜色 */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 6px;
  --spacing-md: 10px;
  --spacing-lg: 14px;
  --spacing-xl: 18px;
  
  /* 字体大小 */
  --font-xs: 11px;
  --font-sm: 12px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 18px;
  --font-xxl: 22px;
  
  /* 行高 */
  --line-height-lg: 1.6;

  /* 过渡动画 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--page-bg, #f8fafc);
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--page-bg, #f8fafc);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通用容器 */
.page-container {
  min-height: 100vh;
  background: var(--page-bg);
  padding-bottom: calc(var(--spacing-xl) + 60px);
}

/* 卡片样式 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card-more {
  display: flex;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

/* 按钮样式 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-size: var(--font-lg);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.9;
}

.btn-primary {
  background: linear-gradient(135deg, #22C55E, #16a34a);
  color: #fff;
}

.btn-default {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-disabled {
  background: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
}

/* 固定底部栏 */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0px));
  background: var(--card-bg);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

/* 搜索栏 */
.search-bar {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--card-bg);
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-disabled);
}

/* Tab 切换 */
.tab-scroll {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.tab-scroll::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--font-md);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  margin-right: var(--spacing-sm);
  transition: all 0.3s;
  cursor: pointer;
}

.tab-item.active {
  background: var(--main-color);
  color: #fff;
  font-weight: 500;
}

/* 列表项 */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.list-item:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  color: var(--text-disabled);
}

.empty-state .icon {
  font-size: 40px;
  margin-bottom: var(--spacing-md);
}

.empty-state .text {
  font-size: var(--font-md);
}

/* 徽章 */
.badge {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 500;
}

.badge-primary {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.badge-info {
  background: rgba(148, 163, 184, 0.1);
  color: var(--info-color);
}

/* 标签页切换 */
.type-tabs {
  background: var(--card-bg);
  padding: 0 var(--spacing-md) var(--spacing-sm);
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: var(--font-xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* 进度条 */
.progress-bar {
  height: 8px;
  background: #F0F0F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* 头像 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--font-xl);
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: var(--font-md);
}

.avatar-lg {
  width: 60px;
  height: 60px;
  font-size: var(--font-xxl);
}

.avatar-round {
  border-radius: 50%;
}

/* 渐变背景 */
.gradient-green {
  background: linear-gradient(135deg, #22C55E, #16a34a);
}

.gradient-blue {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.gradient-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-main { color: #22C55E; }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

.font-bold { font-weight: 600; }
.font-bolder { font-weight: 700; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.toast-success { background: rgba(34, 197, 94, 0.9); }
.toast-warning { background: rgba(245, 158, 11, 0.9); }
.toast-error { background: rgba(239, 68, 68, 0.9); }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.idle {
  display: none;
}

.modal {
  width: 80%;
  max-width: 300px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.modal-header {
  padding: var(--spacing-lg);
  text-align: center;
  font-size: var(--font-lg);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.modal-body {
  padding: var(--spacing-lg);
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: var(--line-height-lg);
  white-space: pre-line;
}

.modal-body > div {
  white-space: normal;
}

.modal-footer {
  display: flex;
  border-top: 1px solid var(--border-light);
}

.modal-btn {
  flex: 1;
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-md);
  cursor: pointer;
}

.modal-btn:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.modal-btn-primary {
  color: #22C55E;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  border-top: 1px solid var(--border-light);
}

.modal-actions .cancel-btn {
  flex: 1;
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-md);
  color: var(--text-secondary);
  cursor: pointer;
  border-right: 1px solid var(--border-light);
}

.modal-actions .confirm-btn {
  flex: 1;
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-md);
  color: #22C55E;
  font-weight: 500;
  cursor: pointer;
}

/* Popup 底部弹窗 */
.popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.popup.show {
  transform: translateY(0);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
}

.popup-title {
  font-size: var(--font-xl);
  font-weight: 600;
}

.popup-close {
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.popup-body {
  padding: var(--spacing-lg);
  max-height: 60vh;
  overflow-y: auto;
}

/* Picker 选择器 */
.picker-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--font-md);
  color: var(--text-primary);
  cursor: pointer;
}

.picker-value::after {
  content: '›';
  color: var(--text-disabled);
  font-size: 14px;
}

/* 数字输入框 */
.number-box {
  display: flex;
  align-items: center;
}

.number-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
}

.number-input {
  width: 40px;
  text-align: center;
  font-size: var(--font-md);
  border: none;
  background: transparent;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-right: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox.checked {
  background: var(--main-color);
  border-color: #22C55E;
}

.checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
}

/* Radio */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.radio-item {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  cursor: pointer;
}

.radio-item.active {
  background: var(--main-color);
  border-color: #22C55E;
  color: #fff;
}

/* Icons */
.icon {
  font-family: "iconfont";
  font-style: normal;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ 表单相关 ============ */
.page-wrap {
  min-height: 100vh;
  background: var(--page-bg);
}

.form-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-md);
  background: rgba(34, 197, 94, 0.08);
  margin: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  color: #22C55E;
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin: 0 var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.form-item {
  margin-bottom: 12px;
}

.form-item:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--font-sm);
  color: #475569;
  margin-bottom: 6px;
}

.form-label.required::before {
  content: '*';
  color: var(--danger-color);
  margin-right: 2px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--font-md);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #22C55E;
}

.form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--font-md);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  resize: none;
  min-height: 60px;
  -webkit-appearance: none;
}

.picker-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
}

.picker-field .icon-right {
  color: var(--text-disabled);
  font-size: 12px;
}

/* 数字输入框(num-box) */
.num-box {
  display: flex;
  align-items: center;
}

.num-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 16px;
  color: var(--text-primary);
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.num-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  font-size: var(--font-md);
  color: var(--text-primary);
  background: #fff;
  -webkit-appearance: none;
}

/* ============ Toast 覆盖层 ============ */
.toast-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.toast-box {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  color: #fff;
  max-width: 80%;
}

.toast-box.success {
  background: rgba(34, 197, 94, 0.9);
}

.toast-box.warning {
  background: rgba(245, 158, 11, 0.9);
}

.toast-box.error {
  background: rgba(239, 68, 68, 0.9);
}

.toast-text {
  white-space: nowrap;
}

/* ============ Popup 底部弹窗 ============ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: flex-end;
}

.popup-sheet {
  background: #fff;
  width: 100%;
  border-radius: 12px 12px 0 0;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============ ActionSheet ============ */
.actionsheet {
  background: #fff;
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.actionsheet-title {
  padding: var(--spacing-lg);
  text-align: center;
  font-size: var(--font-lg);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.actionsheet-item {
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-lg);
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.actionsheet-item:last-of-type {
  border-bottom: none;
}

.actionsheet-item:active {
  background: var(--page-bg);
}

.actionsheet-cancel {
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-lg);
  color: var(--text-secondary);
  background: var(--page-bg);
  cursor: pointer;
  border-top: 8px solid var(--border-light);
}

/* ============ 固定底部操作栏 ============ */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: var(--card-bg);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.06);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-size: var(--font-lg);
  font-weight: 500;
  width: 100%;
  border: none;
  cursor: pointer;
  color: #fff;
}

.submit-btn.gradient-green {
  background: linear-gradient(135deg, #22C55E, #16a34a);
}

.submit-btn.gradient {
  background: linear-gradient(135deg, #22C55E, #16a34a);
}

/* ============ 按钮交互动效 ============ */
.btn:active,
.submit-btn:active,
.add-btn:active,
.quick-btn:active,
.action-btn:active,
.entry-item:active,
.nav-link:active {
  opacity: 0.75;
  transform: scale(0.98);
  transition: all 0.15s ease;
}

.btn,
.submit-btn,
.add-btn,
.quick-btn,
.action-btn,
.entry-item,
.tabbar-item {
  transition: all 0.2s ease;
}

/* 卡片点击反馈 */
.card:active,
.inbound-card:active,
.outbound-card:active,
.lecturer-card:active,
.dispatch-card:active,
.warehouse-card:active,
.checkin-card:active,
.todo-item:active,
.func-item:active {
  opacity: 0.92;
  transform: scale(0.99);
  transition: all 0.15s ease;
}

.card,
.inbound-card,
.outbound-card,
.lecturer-card,
.dispatch-card,
.warehouse-card,
.checkin-card,
.todo-item,
.func-item {
  transition: all 0.2s ease;
}

/* TabBar 切换动效 */
.tabbar-item:active {
  transform: scale(0.9);
}

/* Toast 淡入淡出动画 */
@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
}

.toast-mask {
  animation: toastFadeIn 0.25s ease;
}

.toast-mask.hiding {
  animation: toastFadeOut 0.25s ease forwards;
}

/* Modal 弹窗动画 */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-overlay {
  animation: modalFadeIn 0.2s ease;
}

.modal-overlay .modal {
  animation: modalSlideUp 0.25s ease;
}

/* Popup 底部弹窗动画 */
.popup-overlay .popup-sheet {
  animation: popupSlideUp 0.3s ease;
}

@keyframes popupSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============ 返回按钮 ============ */
.back-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 100;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.back-btn:active {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
}

/* ============ 页面头部导航栏 ============ */
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.page-header .header-back {
  position: absolute;
  left: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.page-header .header-back:active {
  background: var(--page-bg);
  transform: scale(0.9);
}

/* 表单输入框焦点动效 */
.form-input:focus,
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  transition: box-shadow 0.2s ease;
}

/* 数字按钮交互 */
.num-btn:active {
  background: var(--page-bg);
}

/* 进度条动画 */
.progress-fill {
  animation: progressGrow 0.8s ease forwards;
}

@keyframes progressGrow {
  from { width: 0; }
}

/* 骨架屏加载占位 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============ 页面切换动画 ============ */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* 页面入场动画 */
.page-container,
.home-container,
.warehouse-container,
.operation-container,
.service-container,
.mine-container,
.login-container,
.page-wrap {
  animation: pageFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 卡片入场动画 - 逐级延迟 */
.card,
.module-card,
.express-train,
.todo-section,
.distribution-card,
.entry-card,
.recent-card,
.profile-card,
.func-card,
.inbound-card,
.outbound-card,
.lecturer-card,
.dispatch-card,
.warehouse-card,
.checkin-card {
  animation: cardSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card:nth-child(2),
.module-card:nth-child(2),
.express-train:nth-child(2) {
  animation-delay: 0.06s;
}

.card:nth-child(3),
.module-card:nth-child(3) {
  animation-delay: 0.12s;
}

.card:nth-child(4),
.module-card:nth-child(4) {
  animation-delay: 0.18s;
}

/* 按钮点击涟漪效果 */
.btn:active,
.submit-btn:active {
  transform: scale(0.97);
  transition: transform var(--transition-fast);
}

/* Tab 切换指示器动画 */
.tab-item.active {
  transition: all var(--transition-base);
}

/* 卡片悬停效果增强 */
.card {
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
}

/* ============ 绿色主题徽章 ============ */
.badge-primary {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.badge-info {
  background: rgba(148, 163, 184, 0.1);
  color: var(--info-color);
}

/* ============ 现代化按钮样式 ============ */
.btn-primary {
  background: linear-gradient(135deg, #22C55E, #16a34a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:active {
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

/* ============ IconPark 图标主题色 ============ */
.ip-icon {
  transition: all var(--transition-fast);
}

.ip-icon-wrap {
  transition: all var(--transition-base);
}

.ip-icon-wrap:active {
  transform: scale(0.92);
}

