* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  padding-bottom: 70px;
}

/* 登录页面 */
.login-page {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.login-page.active {
  display: flex !important;
}

.login-container {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  margin: auto;
}

.login-logo {
  font-size: 60px;
  margin-bottom: 10px;
}

.login-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #999;
  margin-bottom: 30px;
  font-size: 14px;
}

.login-form {
  text-align: left;
}

.login-links {
  text-align: center;
  margin-top: 20px;
}

.login-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 18px;
  font-weight: bold;
}

.header-right {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.icon-btn:active {
  transform: scale(0.95);
  background: rgba(255,255,255,0.3);
}

/* Main Content */
.main-content {
  padding: 16px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.sub-page {
  display: none;
}

.sub-page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Card */
.stats-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #999;
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-card {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.action-card:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.action-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.action-desc {
  font-size: 11px;
  color: #999;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.back-btn {
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
  background: #f9f9f9;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Buttons */
.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.btn-outline {
  background: white;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

.modal-sm {
  max-width: 400px;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: bold;
}

.modal-close {
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

/* Cart Bar */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 99;
}

.cart-info {
  font-size: 14px;
  color: #333;
}

.cart-amount {
  color: #667eea;
  font-weight: bold;
  margin-left: 10px;
}

.cart-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* Filter Tabs */
.filter-tabs, .finance-tabs, .alerts-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-tab, .finance-tab, .alerts-tab {
  background: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  color: #666;
  transition: all 0.3s;
}

.filter-tab.active, .finance-tab.active, .alerts-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Cards */
.barcode-section, .finance-content, .alerts-content {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.barcode-section h4 {
  margin-bottom: 16px;
  font-size: 16px;
  color: #333;
}

.barcode-preview {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin: 16px 0;
}

.preview-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.preview-code {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
  font-family: monospace;
  letter-spacing: 2px;
}

.generated-barcodes {
  max-height: 300px;
  overflow-y: auto;
}

.generated-barcode-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  gap: 10px;
}

.barcode-index {
  color: #999;
  font-size: 12px;
  width: 30px;
}

.barcode-code {
  flex: 1;
  font-family: monospace;
  font-size: 14px;
  color: #333;
}

/* Finance */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.finance-card {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.finance-card.income {
  background: linear-gradient(135deg, #11998e20 0%, #38ef7d20 100%);
}

.finance-card.expense {
  background: linear-gradient(135deg, #f093fb20 0%, #f5576c20 100%);
}

.finance-card.profit {
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
}

.finance-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.finance-amount {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* List Items */
.orders-list, .transactions-list, .payables-list, .restock-list, .unsold-list, .product-list, .stock-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item, .transaction-item, .payable-item, .product-item, .stock-item {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-no {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.order-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.submitted {
  background: #d4edda;
  color: #155724;
}

.order-status.unpaid {
  background: #f8d7da;
  color: #721c24;
}

.order-info {
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* Search */
.search-box, .scan-input-area {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-input, .scan-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: white;
}

.search-btn, .scan-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

/* Quantity */
.quantity-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.qty-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
}

.quantity-product-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
  color: #333;
}

/* OCR */
.ocr-upload-area {
  background: white;
  border: 2px dashed #667eea;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.ocr-upload-area:active {
  background: #f0f0ff;
}

.ocr-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.ocr-text {
  color: #667eea;
  font-size: 14px;
}

/* Voice */
.voice-area {
  text-align: center;
  margin-bottom: 20px;
}

.voice-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 16px;
  transition: all 0.3s;
}

.voice-btn.recording {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.7); }
  70% { box-shadow: 0 0 0 20px rgba(102,126,234,0); }
  100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); }
}

.voice-tip {
  font-size: 12px;
  color: #999;
}

/* 销售数据样式 */
.sales-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.sales-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sales-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sales-card.today {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sales-card.month {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.sales-card.profit {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.sales-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.sales-amount {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.sales-sub {
  font-size: 11px;
  opacity: 0.8;
}

.sales-section {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

/* 销售趋势图 */
.trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 150px;
  padding: 10px 0;
}

.trend-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.trend-bar {
  width: 70%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.trend-value {
  font-size: 10px;
  color: #666;
  position: absolute;
  top: -18px;
  white-space: nowrap;
}

.trend-label {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
}

/* 销量排行 */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.top-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

.top-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: white;
}

.top-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: white;
}

.top-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #b87333);
  color: white;
}

.top-info {
  flex: 1;
  min-width: 0;
}

.top-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-barcode {
  font-size: 11px;
  color: #999;
}

.top-stats {
  text-align: right;
  flex-shrink: 0;
}

.top-qty {
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
}

.top-amount {
  font-size: 12px;
  color: #999;
}

/* 销售订单列表 */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.order-item:hover {
  background: #eef0ff;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-no {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.order-amount {
  font-size: 16px;
  font-weight: bold;
  color: #f5576c;
}

.order-body {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

.order-profit {
  color: #4facfe;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.page-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.page-info {
  font-size: 13px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
  .action-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .login-container {
    max-width: 450px;
  }
  
  .modal-content {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .action-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Connection Result */
.connection-result {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.connection-result.success {
  background: #d4edda;
  color: #155724;
}

.connection-result.error {
  background: #f8d7da;
  color: #721c24;
}

hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0;
}

/* 市场和楼层管理样式 */
.market-list, .floor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.market-item, .floor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.market-item-info, .floor-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-code, .floor-code {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.market-name, .floor-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.delete-btn {
  background: #f5576c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.delete-btn:hover {
  background: #e0455a;
}

.empty-tip {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}

/* 图片上传框样式 */
.image-upload-box {
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}

.image-upload-box:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.image-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-box > div {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* 进货地址设置卡片 */
.address-setup-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setup-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-group {
  flex: 1;
}

.input-with-voice {
  position: relative;
  display: flex;
  gap: 6px;
}

.input-with-voice .form-input {
  flex: 1;
}

.voice-input-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #667eea;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.voice-input-btn:hover {
  background: #5568d3;
}

.voice-input-btn.recording {
  background: #e74c3c;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.barcode-preview {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  text-align: center;
}

.preview-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.preview-code {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 11px;
  color: #999;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
}

.nav-item.active {
  color: #667eea;
}

.nav-item-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-item-text {
  font-size: 11px;
}

/* 店铺切换 */
.shop-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: white;
}

.shop-switcher:hover {
  background: rgba(255,255,255,0.3);
}

/* 调货页面 */
.transfer-container {
  padding: 16px;
}

.transfer-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transfer-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.transfer-status.pending {
  background: #fff3cd;
  color: #856404;
}

.transfer-status.audited {
  background: #d4edda;
  color: #155724;
}

/* 超级管理后台 */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stat-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 12px;
  color: #999;
}

/* 店铺切换 */
.header-left {
  display: flex;
  align-items: center;
}

.shop-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: white;
  transition: all 0.2s;
}

.shop-switcher:hover {
  background: rgba(255,255,255,0.3);
}

.shop-list {
  max-height: 300px;
  overflow-y: auto;
}

.shop-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.shop-item:hover {
  background: #f5f5f5;
}

.shop-item.active {
  background: #f0f4ff;
  border-color: #667eea;
}

.shop-item-icon {
  font-size: 24px;
  margin-right: 12px;
}

.shop-item-info {
  flex: 1;
}

.shop-item-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.shop-item-desc {
  font-size: 12px;
  color: #999;
}

/* 弹窗通用样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}
