* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#app {
  width: 100%;
  min-height: 100vh;
}

/* 首页样式 */
.home-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-bottom: 20px;
  margin-top: 0;
  padding-top: 0;
  position: relative;
  overflow-y: auto;
}

.header-bar {
  margin: 16px 24px 24px 24px;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.username {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.warehouse-name {
  font-size: 15px;
  color: #666;
}

/* 编辑模式顶部栏 */
.edit-mode-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.edit-mode-reset-btn,
.edit-mode-done-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.edit-mode-reset-btn:hover,
.edit-mode-done-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.edit-mode-done-btn {
  background: rgba(255, 255, 255, 0.15);
}

.edit-mode-done-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 主屏幕网格 */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  padding: 20px 24px;
  padding-bottom: 140px; /* 为 Dock 栏留出空间 (Dock高度约80px + 底部20px + 额外40px缓冲) */
  min-height: auto;
}

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
    padding: 20px 20px;
    padding-bottom: 140px;
  }
}

.app-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  height: fit-content;
}

.app-item:hover .menu-icon {
  transform: scale(1.05);
}

.app-item:active .menu-icon {
  transform: scale(0.95);
  filter: brightness(0.9);
}

/* 图标抖动动画 */
@keyframes shake {
  0%, 100% {
    transform: rotate(-1deg) translateY(0);
  }
  25% {
    transform: rotate(1deg) translateY(-1px);
  }
  50% {
    transform: rotate(-1deg) translateY(0);
  }
  75% {
    transform: rotate(1deg) translateY(1px);
  }
}

.shake .menu-icon {
  animation: shake 0.5s ease-in-out infinite;
}

/* 拖动中的样式 */
.dragging {
  opacity: 0.5;
}

.dragging .menu-icon {
  transform: scale(0.9);
}

.dragging .menu-text {
  opacity: 0.6;
}

.menu-grid {
  padding: 0 24px;
}

.menu-section {
  margin-bottom: 8px;
}

.section-title {
  display: none;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .menu-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
    padding: 0 4px;
  }
}

.menu-item {
  background: transparent;
  border-radius: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.menu-item:hover .menu-icon {
  transform: scale(1.05);
}

.menu-item:active .menu-icon {
  transform: scale(0.95);
  filter: brightness(0.9);
}

.menu-icon {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
              0 1px 4px rgba(0, 0, 0, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* iPhone风格的图标光泽效果 */
.menu-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 13px 13px 50% 50%;
  pointer-events: none;
}

.menu-text {
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5),
               0 0 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* 功能页面通用样式 */
.page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.page-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

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

.page-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  flex: 1;
}

.page-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 16px;
  min-height: 400px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

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

.btn-success {
  background: #07C160;
  color: white;
}

.btn-success:hover {
  background: #06A050;
}

.btn-danger {
  background: #FF6B6B;
  color: white;
}

.btn-danger:hover {
  background: #ee5a52;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 10000;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* Loading 加载 */
.loading {
  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: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 列表样式 */
.list-item {
  background: white;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
}

.list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.list-item-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.list-item-desc {
  font-size: 14px;
  color: #666;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-text {
  font-size: 18px;
}

/* 扫码输入框 */
.scan-input {
  font-size: 18px !important;
  font-weight: 500;
  text-align: center;
  border: 2px solid #667eea !important;
}

.scan-input:focus {
  border-color: #5568d3 !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 入库记录列表 */
.records-section {
  margin-top: 30px;
}

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

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

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}

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

.record-time {
  font-size: 14px;
  color: #999;
}

.btn-delete {
  background: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
}

.btn-delete:hover {
  background: #fff5f5;
  border-radius: 4px;
}

.record-info .info-row {
  margin: 8px 0;
  font-size: 14px;
}

.progress-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

.progress-tag.complete {
  background: #e8f5e9;
  color: #2e7d32;
}

.progress-tag.incomplete {
  background: #fff3e0;
  color: #f57c00;
}

/* 订单信息卡片 */
.order-info-section {
  margin-top: 20px;
}

.order-info-section h3, .order-info-section h4 {
  margin-bottom: 15px;
  color: #333;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

.status-tag.complete {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-tag.incomplete {
  background: #ffebee;
  color: #c62828;
}

.storage-list {
  margin-top: 20px;
}

.storage-item {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.storage-item div {
  margin: 4px 0;
}

.warning-message {
  background: #fff3e0;
  border: 1px solid #f57c00;
  border-radius: 8px;
  padding: 16px;
  color: #e65100;
  text-align: center;
  margin-top: 20px;
}

/* 连续出库相关样式 */
.init-section {
  text-align: center;
  padding: 60px 20px;
}

.hint-text {
  margin-top: 15px;
  font-size: 14px;
  color: #999;
}

.current-task {
  animation: slideIn 0.3s ease-out;
}

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

.task-header {
  margin-bottom: 20px;
}

.task-header h3 {
  margin-bottom: 10px;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #07C160, #06A050);
  transition: width 0.3s ease;
}

.task-info-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #667eea;
  margin-bottom: 20px;
}

.task-location {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.location-badge {
  display: inline-block;
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
  padding: 16px 32px;
  background: #f0f0ff;
  border-radius: 16px;
  margin-bottom: 10px;
}

.location-hint {
  font-size: 14px;
  color: #999;
}

.order-info .info-row {
  margin: 12px 0;
  font-size: 15px;
}

.reason-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fff3e0;
  color: #f57c00;
  border-radius: 12px;
  font-size: 14px;
  margin-left: 8px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.complete-section {
  text-align: center;
  padding: 80px 20px;
}

.complete-icon {
  font-size: 100px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.complete-section h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.complete-stats {
  font-size: 16px;
  color: #666;
  margin: 20px 0;
}

.complete-stats div {
  margin: 10px 0;
}

/* 模态框样式 */
.modal-overlay {
  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: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

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

.modal-content h3 {
  color: #333;
  font-size: 20px;
}

/* 按钮变体 */
.btn-warning {
  background: #FF9500;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-warning:hover {
  background: #e68a00;
}

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

/* 4列网格布局（系统设置） */
.menu-items-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .menu-items-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* 仓库选择页面样式 */
.warehouse-item {
  background: white;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
}

.warehouse-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.warehouse-item-selected {
  border-color: #667eea;
  background: #f0f0ff;
}

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

.warehouse-name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.warehouse-badge {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.warehouse-item-info {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.warehouse-code {
  font-size: 14px;
  color: #666;
}

.warehouse-type {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
}

.warehouse-address {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* ==================== 摄像头扫码功能样式 ==================== */

/* 输入框与扫码按钮容器 */
.input-with-scan {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-with-scan input {
  flex: 1;
}

/* 扫码按钮 */
.scan-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scan-btn:active {
  transform: translateY(0);
}

/* 扫码弹窗 */
.scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 扫码容器 */
.scanner-container {
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.scanner-header {
  text-align: center;
  margin-bottom: 20px;
}

.scanner-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.scanner-tip {
  font-size: 14px;
  color: #666;
}

/* 扫码区域 */
#qr-reader {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* 关闭按钮 */
.scanner-close-btn {
  width: 100%;
  padding: 14px;
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.scanner-close-btn:hover {
  background: #d0d0d0;
}

.scanner-close-btn:active {
  background: #c0c0c0;
}

/* 扫描提示 */
.scanner-tips {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #856404;
  line-height: 1.6;
}

.scanner-tips-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scanner-tips ul {
  margin: 0;
  padding-left: 20px;
}

.scanner-tips li {
  margin-bottom: 4px;
}

/* 扫描状态指示器 */
.scanner-status {
  text-align: center;
  padding: 8px;
  background: #e3f2fd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #1976d2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .scanner-container {
    width: 95%;
    padding: 20px;
  }

  .scan-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .scanner-tips {
    font-size: 13px;
  }
}

/* ==================== Dock 栏样式 ==================== */

.dock-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; /* 与主屏幕水平间距一致 */
  padding: 12px 16px;
  min-width: 320px; /* 固定宽度：4个图标(60px) + 3个间距(16px) + 左右padding(16px) = 240 + 48 + 32 */
  min-height: 96px; /* 固定高度：图标60px + 文字行高约12px + 间距6px + 上下padding 24px = 图标区域78px + padding 18px */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 50;
  animation: dockFadeIn 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .dock-bar {
    gap: 12px; /* 移动端与主屏幕水平间距一致 */
    padding: 10px 14px;
    min-width: 296px; /* 移动端：4个图标(60px) + 3个间距(12px) + 左右padding(14px) = 240 + 36 + 28 */
    min-height: 92px; /* 移动端固定高度 */
  }
}

@keyframes dockFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  padding: 0;
  height: fit-content;
}

.dock-item:hover .menu-icon {
  transform: scale(1.1) translateY(-4px);
}

.dock-item:active .menu-icon {
  transform: scale(0.95);
  filter: brightness(0.9);
}

.dock-item .menu-icon {
  width: 60px;
  height: 60px;
  font-size: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-item .menu-text {
  font-size: 12px;
  white-space: nowrap;
}

/* Dock 编辑模式时的抖动动画 */
.dock-item.shake .menu-icon {
  animation: shake 0.5s ease-in-out infinite;
}

/* Dock 拖动样式 */
.dock-item.dragging {
  opacity: 0.5;
}

.dock-item.dragging .menu-icon {
  transform: scale(0.9);
}

.dock-item.dragging .menu-text {
  opacity: 0.6;
}

/* 移动端 Dock 优化 */
@media (max-width: 768px) {
  .dock-bar {
    bottom: 12px;
    padding: 10px 16px;
    gap: 10px;
    border-radius: 20px;
  }

  .dock-item .menu-icon {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .dock-item .menu-text {
    font-size: 10px;
  }
}

/* Dock 栏最多4个图标的限制视觉提示 */
.dock-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  border-radius: 25px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.dock-bar:hover::before {
  opacity: 1;
}

/* 物料上架页面样式 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  margin-bottom: 15px;
  background: white;
  border-radius: 12px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
}

.step.active .step-number {
  background: #1890ff;
  color: white;
}

.step.completed .step-number {
  background: #52c41a;
  color: white;
}

.step-text {
  font-size: 12px;
  color: #999;
}

.step.active .step-text {
  color: #1890ff;
  font-weight: 500;
}

.step.completed .step-text {
  color: #52c41a;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 8px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.step-line.active {
  background: #1890ff;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 待上架列表 */
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-item {
  background: white;
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pending-item:active {
  transform: scale(0.98);
  background: #f5f5f5;
}

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

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

.material-code {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.material-name {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.quantity-tag {
  background: #e6f7ff;
  color: #1890ff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}

.warehouse-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.warehouse-badge {
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.batch-info {
  font-size: 12px;
  color: #999;
}

.pending-item-arrow {
  font-size: 18px;
  color: #ccc;
  margin-left: 10px;
}

/* 已选物料卡片 */
.selected-material-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.selected-material-card .card-title {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* 确认卡片 */
.confirm-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.confirm-section {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.confirm-section:last-child {
  border-bottom: none;
}

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

.confirm-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.confirm-value.highlight {
  color: #1890ff;
  font-size: 20px;
}

.confirm-sub {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

/* 按钮组 */
.btn-group {
  display: flex;
  gap: 12px;
}

.btn-group .btn {
  flex: 1;
}

.btn-default {
  background: #f5f5f5;
  color: #666;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.btn-default:active {
  background: #e8e8e8;
}

/* 记录项成功状态 */
.record-item.success {
  border-left: 3px solid #52c41a;
}

.record-status {
  color: #52c41a;
  font-size: 12px;
  font-weight: 500;
}

/* ==================== 数量输入组样式 ==================== */

.quantity-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  background: #f5f5f5;
  padding: 12px;
  border-radius: 12px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.qty-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.qty-btn.same-btn {
  width: auto;
  padding: 0 16px;
  font-size: 14px;
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  box-shadow: 0 2px 6px rgba(82, 196, 26, 0.3);
}

.qty-btn.same-btn:hover {
  box-shadow: 0 4px 10px rgba(82, 196, 26, 0.4);
}

.qty-input {
  width: 100px;
  height: 44px;
  border: 2px solid #667eea;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background: white;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input {
  width: 80px;
  height: 44px;
  border: 2px solid #667eea;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background: white;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.qty-max {
  width: auto;
  padding: 0 16px;
  font-size: 14px;
  background: #52c41a;
  box-shadow: 0 2px 6px rgba(82, 196, 26, 0.3);
}

.qty-max:hover {
  box-shadow: 0 4px 10px rgba(82, 196, 26, 0.4);
}

.quantity-hint {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-top: 4px;
}

/* 步骤指示器样式 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.step.completed .step-number {
  background: #52c41a;
  color: white;
}

.step-text {
  font-size: 13px;
  color: #999;
  transition: color 0.3s ease;
}

.step.active .step-text {
  color: #667eea;
  font-weight: 600;
}

.step.completed .step-text {
  color: #52c41a;
}

.step-line {
  width: 60px;
  height: 3px;
  background: #e0e0e0;
  margin: 0 12px;
  margin-bottom: 24px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-line.completed {
  background: #52c41a;
}

/* 目标库位高亮样式 */
.target-location {
  font-size: 24px;
  font-weight: bold;
  color: #d63384;
  background: #ffe0f0;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-left: 8px;
}

/* 待入库信息卡片 */
.pending-info .info-card {
  padding: 16px;
  border-radius: 10px;
}

.pending-info .info-row {
  padding: 8px 0;
  border-bottom: 1px dashed #ffc107;
}

.pending-info .info-row:last-child {
  border-bottom: none;
}

/* 扫码验货样式 */
.type-display {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  color: white;
}

.type-display.single {
  background: linear-gradient(135deg, #07C160 0%, #059142 100%);
}

.type-display.multi {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
}

.type-display .type-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.type-display .type-text {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.type-display .quantity-text {
  font-size: 18px;
  opacity: 0.9;
}

/* 验货记录中的标签 */
.single-tag {
  background: #e6f7ed;
  color: #07C160;
}

.multi-tag {
  background: #fff3e0;
  color: #FF9500;
}
