/* ===== 沃大师农业服务平台 - 全局样式 ===== */
:root {
  /* 农业主色调 */
  --agri-primary: #2d7a3e;
  --agri-primary-light: #4caf50;
  --agri-primary-lighter: #e8f5e9;
  --agri-primary-dark: #1b5e20;
  
  /* 强调色 - 丰收橙/金 */
  --agri-accent: #ff9800;
  --agri-accent-light: #ffc107;
  --agri-accent-lighter: #fff8e1;
  
  /* 功能色 */
  --agri-success: #4caf50;
  --agri-warning: #ff9800;
  --agri-danger: #f44336;
  --agri-info: #2196f3;
  
  /* 文字颜色 */
  --agri-text-primary: #333333;
  --agri-text-secondary: #666666;
  --agri-text-muted: #999999;
  
  /* 背景色 */
  --agri-bg-primary: #f8faf8;
  --agri-bg-secondary: #f0f7f1;
  --agri-bg-card: #ffffff;
  
  /* 边框 */
  --agri-border: #e8e8e8;
  --agri-border-light: #f0f0f0;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--agri-text-primary);
  background: var(--agri-bg-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--agri-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--agri-primary-dark); }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ===== 通用布局 ===== */
/* 统一容器宽度 1280px，参照 /store/mall 规范：
   - 手机(<769px): 左右 12px 内边距
   - PAD/PC(>=769px): 左右 24px 内边距，max-width 1280px
   - 超宽屏(>=1280px): 居中后无额外内边距 */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { min-width: 320px; }
.page-wrapper { padding-top: 60px; min-height: calc(100vh - 200px); width: 100%; overflow-x: hidden; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .container { padding: 0 24px; }
}
@media (min-width: 1280px) {
  .container { padding: 0; }
}
.section { padding: 40px 0; }
.section-title { font-size: 24px; font-weight: 700; color: var(--agri-text-primary); margin-bottom: 8px; }
.section-subtitle { font-size: 14px; color: var(--agri-text-muted); margin-bottom: 24px; }

/* 通用页面容器：无 .container 包裹、直接用 max-width 的页面
   提供 .page-container 辅助类供各页面直接套用 mall 规范 */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .page-container { padding: 0 24px; }
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1b5e20 0%, #2d7a3e 100%);
  height: 60px; display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; }
.nav-brand-icon { width: 40px; height: 40px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; padding: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.18); overflow:hidden; }
.nav-brand-icon img{width:100%;height:100%;object-fit:contain;}
.nav-links { display: flex; gap: 4px; }
.nav-link { color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: 6px; font-size: 14px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.15); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-btn { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; border: none; transition: all 0.2s; }
.nav-btn-primary { background: var(--agri-accent); color: #fff; }
.nav-btn-primary:hover { background: #f57c00; }
.nav-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.nav-btn-outline:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; padding: 4px 8px; }

/* ===== 移动端导航菜单 ===== */
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); z-index: 999; }
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: 14px 20px; color: var(--agri-text-primary); border-bottom: 1px solid var(--agri-border-light); border-radius: 0; }
.mobile-menu .nav-btn { margin: 12px 20px; width: calc(100% - 40px); text-align: center; }

/* ===== 页脚 ===== */
.footer { background: linear-gradient(135deg, #1b5e20 0%, #2d7a3e 100%); color: rgba(255,255,255,0.8); padding: 40px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== 卡片 ===== */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--agri-border-light); overflow: hidden; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--agri-border-light); }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; background: var(--agri-bg-secondary); border-top: 1px solid var(--agri-border-light); }

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; border: none; transition: all 0.2s; }
.btn-primary { background: var(--agri-primary); color: #fff; }
.btn-primary:hover { background: var(--agri-primary-dark); }
.btn-accent { background: var(--agri-accent); color: #fff; }
.btn-accent:hover { background: #f57c00; }
.btn-outline { background: transparent; color: var(--agri-primary); border: 1px solid var(--agri-primary); }
.btn-outline:hover { background: var(--agri-primary-lighter); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--agri-text-primary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--agri-border); border-radius: var(--radius-md);
  font-size: 14px; transition: all 0.2s; background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--agri-primary); box-shadow: 0 0 0 3px rgba(45,122,62,0.1); }
.form-input::placeholder { color: var(--agri-text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }

/* ===== 标签徽章 ===== */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-primary { background: var(--agri-primary-lighter); color: var(--agri-primary); }

/* ===== 网格系统 ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ===== 商品卡片 ===== */
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--agri-border-light); transition: all 0.3s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-image { width: 100%; height: 180px; background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--agri-primary); }
.product-info { padding: 12px 16px 16px; }
.product-name { font-size: 14px; font-weight: 500; color: var(--agri-text-primary); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price { font-size: 18px; font-weight: 700; color: var(--agri-danger); }
.product-price .unit { font-size: 12px; font-weight: 400; color: var(--agri-text-muted); margin-left: 4px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--agri-text-muted); }
.product-store { font-size: 12px; color: var(--agri-text-secondary); margin-top: 6px; }

/* ===== 店铺卡片 ===== */
.store-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--agri-border-light); display: flex; gap: 16px; transition: all 0.3s; }
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.store-logo { width: 60px; height: 60px; border-radius: var(--radius-md); background: linear-gradient(135deg, #e8f5e9, #c8e6c9); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.store-info { flex: 1; min-width: 0; }
.store-name { font-size: 16px; font-weight: 600; color: var(--agri-text-primary); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.store-name .badge { font-size: 11px; }
.store-address { font-size: 13px; color: var(--agri-text-muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.store-tag { font-size: 11px; padding: 2px 8px; background: var(--agri-primary-lighter); color: var(--agri-primary); border-radius: 4px; }
.store-distance { font-size: 12px; color: var(--agri-accent); font-weight: 500; white-space: nowrap; align-self: flex-start; }

/* ===== 订单卡片 ===== */
.order-card { background: #fff; border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--agri-border-light); overflow: hidden; }
.order-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--agri-bg-secondary); border-bottom: 1px solid var(--agri-border-light); font-size: 13px; }
.order-store { font-weight: 500; color: var(--agri-text-primary); }
.order-status { font-weight: 500; }
.order-items { padding: 16px; }
.order-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--agri-border-light); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #e8f5e9, #c8e6c9); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.order-item-info { flex: 1; }
.order-item-name { font-size: 14px; color: var(--agri-text-primary); margin-bottom: 4px; }
.order-item-spec { font-size: 12px; color: var(--agri-text-muted); }
.order-item-price { font-size: 14px; color: var(--agri-text-secondary); }
.order-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--agri-border-light); }
.order-total { font-size: 14px; color: var(--agri-text-secondary); }
.order-total span { font-size: 18px; font-weight: 700; color: var(--agri-danger); margin-left: 8px; }
.order-actions { display: flex; gap: 8px; }

/* ===== 分类导航 ===== */
.category-nav { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-item { flex-shrink: 0; padding: 8px 16px; background: #fff; border: 1px solid var(--agri-border); border-radius: 20px; font-size: 13px; color: var(--agri-text-secondary); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.category-item:hover, .category-item.active { background: var(--agri-primary); color: #fff; border-color: var(--agri-primary); }

/* ===== 搜索框 ===== */
.search-bar { display: flex; align-items: center; background: #fff; border-radius: 24px; padding: 4px; box-shadow: var(--shadow-sm); max-width: 600px; margin: 0 auto; }
.search-input { flex: 1; border: none; background: transparent; padding: 10px 16px; font-size: 14px; outline: none; }
.search-btn { padding: 10px 24px; background: var(--agri-primary); color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.search-btn:hover { background: var(--agri-primary-dark); }

/* ===== Tab 切换 ===== */
.tabs { display: flex; border-bottom: 1px solid var(--agri-border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 12px 20px; font-size: 14px; color: var(--agri-text-secondary); border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--agri-primary); }
.tab.active { color: var(--agri-primary); border-bottom-color: var(--agri-primary); font-weight: 500; }

/* ===== 个人中心菜单 ===== */
.profile-menu { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.profile-menu-item { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--agri-border-light); cursor: pointer; transition: background 0.2s; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--agri-bg-secondary); }
.profile-menu-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; flex-shrink: 0; }
.profile-menu-icon.green { background: #e8f5e9; color: #2e7d32; }
.profile-menu-icon.orange { background: #fff3e0; color: #e65100; }
.profile-menu-icon.blue { background: #e3f2fd; color: #1565c0; }
.profile-menu-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.profile-menu-icon.red { background: #ffebee; color: #c62828; }
.profile-menu-text { flex: 1; }
.profile-menu-title { font-size: 14px; color: var(--agri-text-primary); font-weight: 500; }
.profile-menu-desc { font-size: 12px; color: var(--agri-text-muted); margin-top: 2px; }
.profile-menu-arrow { color: var(--agri-text-muted); font-size: 18px; }

/* ===== 用户信息卡片 ===== */
.user-card { background: linear-gradient(135deg, #1b5e20 0%, #2d7a3e 100%); border-radius: var(--radius-lg); padding: 24px; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.user-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3); }
.user-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.user-info p { font-size: 13px; opacity: 0.8; }
.user-stats { display: flex; gap: 24px; margin-top: 12px; }
.user-stat { text-align: center; }
.user-stat-value { font-size: 20px; font-weight: 700; }
.user-stat-label { font-size: 12px; opacity: 0.7; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--agri-text-muted); }
.empty-state-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state-text { font-size: 14px; margin-bottom: 16px; }

/* ===== 加载中 ===== */
.loading { text-align: center; padding: 40px; color: var(--agri-text-muted); }
.loading-spinner { width: 32px; height: 32px; border: 3px solid var(--agri-border); border-top-color: var(--agri-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Toast 消息 ===== */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: var(--radius-md); font-size: 14px; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--agri-success); }
.toast.error { background: var(--agri-danger); }

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header { padding: 20px; border-bottom: 1px solid var(--agri-border-light); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--agri-text-muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--agri-border-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== 数量选择器 ===== */
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--agri-border); border-radius: var(--radius-md); overflow: hidden; }
.quantity-btn { width: 32px; height: 32px; border: none; background: var(--agri-bg-secondary); font-size: 18px; color: var(--agri-text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.quantity-btn:hover { background: var(--agri-primary-lighter); color: var(--agri-primary); }
.quantity-input { width: 48px; height: 32px; border: none; border-left: 1px solid var(--agri-border); border-right: 1px solid var(--agri-border); text-align: center; font-size: 14px; outline: none; }

/* ===== 地址卡片 ===== */
.address-card { background: #fff; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; border: 2px solid transparent; box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s; }
.address-card.selected { border-color: var(--agri-primary); background: var(--agri-primary-lighter); }
.address-info { font-size: 14px; margin-bottom: 8px; }
.address-name { font-weight: 600; margin-right: 12px; }
.address-phone { color: var(--agri-text-muted); }
.address-detail { font-size: 13px; color: var(--agri-text-secondary); line-height: 1.5; }
.address-tag { display: inline-block; font-size: 11px; padding: 1px 6px; background: var(--agri-accent); color: #fff; border-radius: 3px; margin-left: 8px; }
.address-actions { display: flex; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--agri-border-light); }
.address-action { font-size: 13px; color: var(--agri-primary); background: none; border: none; cursor: pointer; padding: 0; }
.address-action:hover { text-decoration: underline; }

/* ===== 购物车商品项 ===== */
.cart-item { display: flex; gap: 12px; padding: 16px; background: #fff; border-bottom: 1px solid var(--agri-border-light); }
.cart-checkbox { width: 20px; height: 20px; margin-top: 20px; cursor: pointer; accent-color: var(--agri-primary); }
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius-md); background: linear-gradient(135deg, #e8f5e9, #c8e6c9); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cart-item-spec { font-size: 12px; color: var(--agri-text-muted); margin-bottom: 8px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--agri-danger); }
.cart-item-price .unit { font-size: 12px; font-weight: 400; color: var(--agri-text-muted); }

/* ===== 结算栏 ===== */
.checkout-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--agri-border); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; }
.checkout-select { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkout-info { text-align: right; }
.checkout-total { font-size: 14px; color: var(--agri-text-secondary); }
.checkout-total .price { font-size: 22px; font-weight: 700; color: var(--agri-danger); margin-left: 4px; }
.checkout-btn { padding: 12px 32px; background: var(--agri-danger); color: #fff; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; margin-left: 16px; }
.checkout-btn:hover { background: #d32f2f; }
.checkout-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ===== 统计卡片 ===== */
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--agri-border-light); }
.stat-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }
.stat-icon.green { background: #e8f5e9; color: #2e7d32; }
.stat-icon.orange { background: #fff3e0; color: #e65100; }
.stat-icon.blue { background: #e3f2fd; color: #1565c0; }
.stat-icon.red { background: #ffebee; color: #c62828; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--agri-text-primary); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--agri-text-muted); }

/* ===== 移动端底部导航 ===== */
.mobile-tab-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--agri-border); padding: 8px 0; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.mobile-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; font-size: 11px; color: var(--agri-text-muted); background: none; border: none; cursor: pointer; }
.mobile-tab.active { color: var(--agri-primary); }
.mobile-tab-icon { font-size: 22px; }

/* ===== 响应式 ===== */
@media (max-width: 1280px) {
  .nav-link { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-actions .nav-btn-outline { display: none; }
  .nav-hamburger { display: block; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .nav-btn-outline { display: none; }
  .nav-hamburger { display: block; }
  /* 移动端：隐藏入驻按钮、隐藏页脚、导航压缩 */
  .nav-entry-wrap { display: none !important; }
  .footer { display: none !important; }
  .navbar { padding: 0; }
  .navbar .container { height: 48px; padding: 0 12px !important; }
  .nav-brand span { font-size: 16px; }
  .nav-brand-icon { width: 34px; height: 34px; padding:2px;}
  .nav-btn { padding: 6px 10px; font-size: 12px; }
  .nav-hamburger { font-size: 20px; padding: 4px 8px; }
  .page-wrapper { padding-top: 48px; padding-bottom: 70px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 16px 0; }
  .section-title { font-size: 18px; }
  .mobile-tab-bar { display: flex; height: 56px; padding: 6px 0 calc(12px + env(safe-area-inset-bottom,0px)); backdrop-filter: blur(10px); background: rgba(255,255,255,.95); box-shadow: 0 -4px 16px rgba(0,0,0,0.08); border-top: 1px solid #e5e7eb; }
  .page-wrapper { padding-bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
  .checkout-bar { bottom: calc(72px + env(safe-area-inset-bottom,0px)); }
  .store-card { flex-direction: column; }
  .user-card { flex-direction: column; text-align: center; }
  .user-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 12px; }
}

/* ===== 认证页面（登录/注册） ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1b5e20 0%, #2d7a3e 50%, #4caf50 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { width: 64px; height: 64px; background: var(--agri-primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; margin: 0 auto 16px; }
.auth-title { font-size: 24px; font-weight: 700; color: var(--agri-text-primary); margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--agri-text-muted); }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--agri-border); }
.auth-tab { flex: 1; padding: 12px; text-align: center; font-size: 14px; color: var(--agri-text-secondary); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; }
.auth-tab.active { color: var(--agri-primary); border-bottom-color: var(--agri-primary); font-weight: 500; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--agri-text-muted); }
.auth-footer a { color: var(--agri-primary); font-weight: 500; }
