/* 基础样式和重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 允许输入框文本选择 */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 15px;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 分页控件样式 */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-top: 1px solid #dee2e6;
  z-index: 100;
  width: 100%;
  flex-wrap: nowrap;
  box-sizing: border-box;
  gap: 5px;
  white-space: nowrap;
  min-height: 36px;
}

/* 底部分页样式 */
.bottom-pagination {
  margin-top: 30px;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

.pagination-btn {
  padding: 2px 8px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 60px;
  height: 28px;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.pagination-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.page-info {
  font-size: 12px;
  color: #495057;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
  margin: 0 5px;
}



/* my_submissions.html 特有样式 */
.record-row {
  cursor: pointer;
  transition: background-color 0.2s;
  height: 32px;
  min-height: 32px;
}

.record-row:hover {
  background-color: #f8f9fa;
}

.record-row.selected {
  background-color: #e7f3ff;
}

/* 表头样式 - 字体变大并冻结 */
.product-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.product-table thead {
  position: sticky;
  top: 0;
  background-color: #343a40;
  color: white;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-table th {
  font-size: 14px;
  font-weight: bold;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  min-width: 80px;
  position: relative;
}

#date-filter-btn {
  min-width: 60px;
  white-space: nowrap;
  height: 36px;
  padding: 0 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#records-section {
  margin-top: 8px;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#records-section > div:first-child {
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

#records-section > div:first-child span {
  color: #495057;
  font-weight: bold;
}

#records-section > div:nth-child(2) {
  padding: 10px;
  background-color: #e8f4f8;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #d1ecf1;
}

#records-section > div:nth-child(2) span {
  color: #0c5460;
  font-weight: bold;
}

.info-left {
  width: 100%;
  min-width: 600px;
  max-height: 500px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.product-table {
  width: 100%;
  table-layout: fixed;
  word-break: break-all;
}

.product-table th {
  word-break: break-word;
  width: 20%;
  min-width: 20px;
}

.product-table tbody tr td {
  word-break: break-word;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-table tbody tr td:first-child {
  max-width: 80px;
}

.product-table tbody tr td:nth-child(2) {
  word-break: break-all;
  max-width: 60px;
}

/* 通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
  color: white;
}

.notification.success {
  background-color: #4CAF50;
}

.notification.error {
  background-color: #F44336;
}

.notification.info {
  background-color: #2196F3;
}

/* 条码输入容器样式 */
.barcode-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.barcode-container input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  border: 2px solid #ced4da;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.barcode-container input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.barcode-actions {
  display: flex;
  gap: 10px;
}

/* 搜索按钮样式 */
.search-btn {
  flex: 1;
  height: 40px;
  font-size: 16px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

/* 扫码按钮样式 */
.scan-btn {
  flex: 1;
  height: 40px;
  font-size: 16px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #390858;
  color: white;
}

.scan-btn:hover {
  background-color: #2a0640;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* 摄像头扫码容器样式 */
#scanner-container {
  width: 100%;
  margin-bottom: 16px;
}

#scanner {
  width: 100%;
  height: 300px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cancel-scan-btn {
  width: 100%;
  height: 40px;
  font-size: 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cancel-scan-btn:hover {
  background-color: #c82333;
}

/* 模态框样式 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
}

#edit-modal .modal-close {
  font-size: 18px;
}

#action-modal .modal-close {
  font-size: 22px;
}

#edit-modal .modal-message {
  padding: 8px;
  font-size: 16px;
  line-height: 1.3;
}

#action-modal .modal-message {
  padding: 10px;
  font-size: 16px;
  line-height: 1.4;
}

#edit-modal > div > div:nth-child(3) {
  margin-top: 8px;
  padding: 0 10px;
}

#edit-modal input[type="number"] {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 3px;
  margin-top: 4px;
}

.modal-buttons {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dee2e6;
  justify-content: flex-end;
}

#action-modal .modal-buttons {
  justify-content: space-between;
}

#action-modal .modal-button {
  flex: 1;
  padding: 8px;
}

.delete-button {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* 模态框内容大小限制 */
#action-modal .modal-content {
  max-width: 300px;
  margin: 20% auto 10% auto;
  padding: 12px;
  max-height: 300px;
}

/* 移动端全面适配优化 - 确保所有内容在一个屏幕内显示 */
@media (max-width: 768px) {
  /* 页面基础布局优化 */
  body {
    padding: 5px;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
  }
  
  /* 容器优化 */
  .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100vh;
    overflow: hidden;
  }
 
  
  #refresh-btn, #logout-btn, #back-btn {
    padding: 8px 12px;
    font-size: 12px;
    height: 32px;
    min-width: 60px;
    margin-left: 8px;
  }
  
  /* my_submissions.html 移动端表格优化 */
  .product-table tbody tr td {
    padding: 3px 2px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .record-row {
    height: 24px;
    min-height: 24px;
  }
  
  .info-left {
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .product-table th {
    padding: 4px 2px;
    font-size: 9px;
  }
  
  /* 移动端表格容器优化 */
  #records-section {
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 250px);
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  /* 移动端分页控件优化 */
  .pagination-controls {
    padding: 4px 6px;
    flex-shrink: 0;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
  }
  
  .pagination-btn {
    padding: 3px 8px;
    font-size: 10px;
    min-width: 45px;
    height: 24px;
  }
  
  .page-info {
    font-size: 10px;
    min-width: 70px;
    flex-shrink: 0;
    margin: 0 2px;
  }
  
  /* 表单容器全面优化 */
  .form {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 8px;
    flex: 1;
    min-height: 0;
  }
  
  /* 店铺选择器全面优化 */
  #shop-selector {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
    min-height: 50px;
  }
  
  /* 店铺按钮全面优化 */
  .shop-btn, .store-btn {
    flex: 1;
    padding: 20px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    transition: all 0.3s ease;
    text-align: center;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    white-space: normal;
  }
  
  /* 未选中状态 - 灰色 */
  .shop-btn:not(.active),
  .store-btn:not(.active) {
    background: #f5f5f5;
    color: #b3afaf;
    border-color: #e1e5e9;
  }
  
  /* 选中状态 - 浅紫色 */
  .shop-btn.active,
  .store-btn.active {
    background: linear-gradient(135deg, #f3e5f5, #5d036d);
    border-color: #ba68c8;
    color: #7b1fa2;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(186, 104, 200, 0.3);
  }
  
  /* 条码容器全面优化 */
  .barcode-container {
    flex-direction: row;
    gap: 6px;
    margin-bottom: 10px;
    flex-shrink: 0;
    align-items: center;
    display: flex;
    min-height: 50px;
  }
  
  #barcode {
    flex: 1;
    height: 42px;
    font-size: 28px;
    margin: 0;
    min-width: 0;
    padding: 0 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
  }
  
  .barcode-actions {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  
  #search-btn, #scan-btn {
    width: auto !important;
    min-width: 65px !important;
    height: 42px !important;
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  

  
  /* 商品信息显示区域全面优化 */
  #info {
    flex: 0 1 auto !important;
    height: 100px !important;
    min-height: 0 !important;
    max-height: 100px !important;
    margin: 2px 0 !important;
    padding: 2px !important;
    overflow-y: auto !important;
    flex-shrink: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    border: 2px dashed #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  
  /* 商品信息为空时的提示样式 */
  #info:empty::before {
    content: "请扫码或输入条码或名称👆\A商品内容将在这里显示❤";
    white-space: pre-wrap;
    color: #999;
    font-size: 12px !important;
  }

/* 表格斑马条样式 */
table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* 商品行样式 */
.product-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-row:hover {
  background-color: #f09707 !important;
}

.product-row.selected {
  background-color: #ff9800;
  color: white;
  font-weight: bold;
}
  
  /* 商品信息有内容时的样式 */
  #info:not(:empty) {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    padding: 1px !important;
    min-height: 200px !important;
  }
  
  /* 商品信息内部元素样式优化 */
  #info h3 {
    font-size: 14px !important;
    margin-bottom: 1px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
  }
  
  #info .info-left,
  #info .info-right {
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    margin-bottom: 0px !important;
  }
  
  /* 数量输入和提交按钮区域全面优化 */
  .quantity-container {
    margin: 6px 0 !important;
    flex-shrink: 0 !important;
    min-height: 200px !important;
  }
  
  .quantity-container label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    font-weight: bold !important;
    display: block !important;
  }
  
  #quantity-input {
    height: 35px !important;
    font-size: 16px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    width: 100% !important;
  }
  
  #save-btn {
    height: 60px !important;
    font-size: 30px !important;
    margin: 6px 0 0 0 !important;
    flex-shrink: 0 !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    width: 100% !important;
    min-height: 60px !important;
    /* 设置深绿色背景 */
    background-color: #1e7e34 !important;
    /* 深绿色的变体，鼠标悬停时使用 */
    background-image: linear-gradient(to bottom, #1e7e34, #155724) !important;
    /* 确保文字为白色 */
    color: white;
    /* 确保文字垂直居中 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* 移除默认边框 */
    border: none !important;
    /* 添加轻微阴影使其突出 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    /* 平滑过渡效果 */
    transition: all 0.2s ease !important;
  }
  
  /* 优化按钮悬停效果 - 减少过于灵动的动画 */
  #save-btn:hover {
    background-color: #155724 !important;
    background-image: linear-gradient(to bottom, #155724, #0d3a17) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25) !important;
    /* 移除translateY变换，避免位置移动造成的误判 */
  }
  
  /* 优化按钮点击效果 - 更明显的视觉反馈 */
  #save-btn:active {
    background-color: #0d3a17 !important;
    background-image: linear-gradient(to bottom, #0d3a17, #082510) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
    /* 使用内阴影代替位置移动，提供更明确的点击反馈 */
  }
  
  /* 移动端保存按钮禁用状态 */
  #save-btn.disabled {
    background: linear-gradient(to bottom, #95a5a6, #7f8c8d) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
  }
  
  #save-btn.disabled:hover {
    background: linear-gradient(to bottom, #95a5a6, #7f8c8d) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* 移动端保存按钮提交中状态 */
  #save-btn.submitting {
    background: linear-gradient(to bottom, #f39c12, #e67e22) !important;
    cursor: wait !important;
    position: relative;
    overflow: hidden;
  }
  
  #save-btn.submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
  }
  
  /* 摄像头扫码区域优化 */
  /* 扫码容器样式 - 全屏显示 */
    #scanner-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      padding: 0;
      margin: 0;
    }
    
    /* 摄像头区域 - 自适应全屏 */
    #scanner {
      width: 100%;
      max-width: 100%;
      height: 100%;
      min-height: 100vh;
      margin: 0;
      padding: 0;
      flex-shrink: 0;
      border-radius: 0;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    /* 确保扫码框元素填满整个摄像头区域 */
    .html5-qrcode-element {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
    }
    
    /* 调整扫码框样式 */
    .html5-qrcode-qrbox {
      border: 2px solid white;
      box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6);
      width: 90%;
      height: 25%;
      margin-bottom: 80px; /* 为下方的按钮留出空间 */
    }
    
    /* 取消扫码按钮 - 放在扫码框下方并悬浮在全屏上 */
    .cancel-scan-btn {
      position: fixed; /* 确保悬浮在全屏上 */
      bottom: 15vh; /* 相对于视口高度定位，确保在扫码框下方 */
      left: 50%;
      transform: translateX(-50%);
      background-color: #e74c3c;
      color: white;
      border: none;
      padding: 15px 40px;
      font-size: 18px;
      border-radius: 30px;
      cursor: pointer;
      z-index: 10000;
      box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
      transition: all 0.3s ease;
      width: 80%;
      max-width: 300px;
    }
    
    .cancel-scan-btn:hover {
      background-color: #c0392b;
      transform: translateX(-50%) translateY(-2px);
      box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
    }
    
    /* 移动端适配 */
    @media (max-width: 768px) {
      .html5-qrcode-qrbox {
        width: 95%;
        height: 30%;
        margin-bottom: 100px;
      }
      
      .cancel-scan-btn {
        bottom: 20vh;
        padding: 12px 30px;
        font-size: 16px;
        width: 90%;
        max-width: 250px;
      }
    }
    
    /* 小屏幕移动端适配 */
    @media (max-width: 480px) {
      .html5-qrcode-qrbox {
        width: 98%;
        height: 35%;
      }
      
      .cancel-scan-btn {
        bottom: 25vh;
        padding: 10px 25px;
        font-size: 14px;
        width: 85%;
        max-width: 200px;
      }
    }
  
  /* 商品搜索结果弹窗优化 */
  
  /* 商品搜索结果弹窗优化 */
  .product-modal-content {
    max-width: 90% !important;
    max-height: 70vh !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .search-results {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
  
  /* 搜索结果弹窗表格容器样式 - 确保表头冻结 */
  .product-table-container {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
  }
  
  .product-table {
    font-size: 18px !important;
  }
  
  .product-table th,
  .product-table td {
    padding: 6px 4px !important;
    font-size: 18px !important;
  }
  
  .pagination-controls {
    flex-shrink: 0 !important;
    padding: 8px 0 !important;
  }
  
  .pagination-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  
  /* 确保所有元素都在一个屏幕内 - 已在全局样式中定义 */
  
  /* 防止内容溢出 */
  .form > * {
    min-height: 0 !important;
    max-height: none !important;
  }
  
  /* 日期筛选器移动端样式 - 复用#date-filter样式 */
  #date-filter {
    flex-wrap: wrap !important;
    border-radius: 12px !important;
  }
  
  #date-filter input[type="date"] {
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 10px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
  }
  
  #date-filter label {
    font-size: 12px !important;
    color: #333 !important;
  }
  
  /* 表格响应式优化 */
  .product-table {
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 14px !important;
    border-collapse: collapse !important;
  }
  
  .product-table th,
  .product-table td {
    padding: 10px 6px !important;
    text-align: center !important;
    vertical-align: middle !important;
    word-break: break-all !important;
    font-weight: bold !important;
    font-size: 14px !important;
    border: 1px solid #e1e5e9 !important;
  }
  
  .product-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #495057 !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    min-width: 50px !important;
  }
  
  /* 商品名称5字符换行 */
  .product-table td:first-child {
    max-width: 80px !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
    font-weight: bold !important;
  }
  
  /* 条形码6字符换行 */
  .product-table td:nth-child(2) {
    max-width: 60px !important;
    overflow-wrap: break-all !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
    font-weight: bold !important;
  }
  
  /* 其他列样式 */
  .product-table td:nth-child(3),
  .product-table td:nth-child(4),
  .product-table td:nth-child(5),
  .product-table td:nth-child(6) {
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
  }
  
  /* 表格容器滚动优化 */
  #records-section {
    overflow-x: auto !important;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    max-height: calc(100vh - 300px) !important;
    border-radius: 12px !important;
    border: 1px solid #e1e5e9 !important;
    background: white !important;
    padding: 10px !important;
  }
  
  /* 桌面端表格容器样式 - 确保表头冻结 */
  .info-left {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
  }
  
  /* 触摸优化 */
  .product-table tr {
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
  }
  
  .product-table tr:active {
    background-color: #e3f2fd !important;
  }
  
  /* 滚动条优化 */
  #records-section::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
  }
  
  #records-section::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
  }
  
  #records-section::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 4px !important;
  }
  
  /* 输入框和按钮触摸优化 */
  input, button, select, textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 8px !important;
    min-height: 44px !important;
    font-size: 16px !important;
  }
  
  /* 防止iOS缩放 */
  input[type="text"],
  input[type="number"],
  input[type="search"],
  textarea {
    font-size: 16px !important;
    transform: scale(1) !important;
  }
  
  /* 触摸反馈优化 */
  button:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  /* 滚动条优化 */
  ::-webkit-scrollbar {
    width: 4px !important;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 2px !important;
  }
  
  /* 防止文本选择 */
  * {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }
  
  /* 允许输入框文本选择 */
  input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
  }
  
  /* 响应式字体大小 */
  html {
    font-size: 14px !important;
  }
  
  /* 超小屏幕优化 */
  @media (max-width: 320px) {
    .form {
      padding: 10px !important;
      gap: 6px !important;
    }
    
    #shop-selector {
      gap: 6px !important;
    }
    
    .shop-btn, .store-btn {
      font-size: 12px !important;
      padding: 8px 6px !important;
      height: 45px !important;
    }
    
    #barcode {
      font-size: 25px !important;
      height: 100px !important;
    }
    
    #search-btn, #scan-btn {
      font-size: 25px !important;
      min-width: 55px !important;
      height: 100px !important;
    }
    

    
    #info {
      font-size: 11px !important;
      padding: 8px !important;
    }
    
    #quantity-input {
      height: 36px !important;
      font-size: 14px !important;
    }
    
    #save-btn {
      height: 40px !important;
      font-size: 14px !important;
    }
  }
  
  /* 中等屏幕优化 */
  @media (min-width: 321px) and (max-width: 480px) {
    .form {
      padding: 12px !important;
    }
    
    .shop-btn, .store-btn {
      font-size: 13px !important;
    }
    
    #barcode {
      font-size: 15px !important;
    }
    
    #search-btn, #scan-btn {
      font-size: 13px !important;
    }
    

  }
}

/* 表单容器样式 */
.login-box, .form {
  max-width: 480px;
  width: 100%;
  margin: 20px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4CAF50, #2e86de, #e74c3c);
}

.form::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(46, 134, 222, 0.05);
  border-radius: 50%;
  transform: translate(50%, 50%);
}

.login-box {
  transition: all 0.3s ease;
}

/* 登录成功动画 */
.login-box.login-success {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 淡出动画 */
.login-box.fade-out {
  animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}



#logged-in-view {
  animation: fadeIn 0.5s ease-in-out;
}

/* 员工信息样式 */
.staff-info {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.avatar {
  font-size: 60px;
  margin-bottom: 15px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

#staff-name {
  margin: 10px 0;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

#login-time, #expire-time {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 倒计时进度条样式 */
.timer-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
  position: relative;
}

.timer-progress {
  height: 100%;
  background-color: #2ed573;
  border-radius: 4px;
  transition: width 0.1s linear, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timer-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 登录表单样式 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: #2e86de;
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
  background-color: white;
}

.form-input.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 4px;
  position: absolute;
  bottom: -20px;
}

.submit-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #2e86de, #1e68cc);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 134, 222, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(46, 134, 222, 0.3);
}

.submit-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 按钮通用样式 */
button {
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 刷新按钮样式 */
#refresh-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

#refresh-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3);
}

#refresh-btn:active {
  transform: translateY(0);
}

/* 登出按钮和返回按钮样式 */
#logout-btn, #back-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

#logout-btn:hover, #back-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

#logout-btn:active, #back-btn:active {
  transform: translateY(0);
}

/* 商品信息样式 */
/* 基础样式已在移动端部分定义，这里仅保留桌面端特定样式 */
#info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #2e86de;
}

#info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
  font-weight: bold;
}

#info .info-row:last-child {
  border-bottom: none;
}

#info .info-left {
  color: #666;
}

#info .info-right {
  color: #333;
  font-weight: bold;
}

#info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #2e86de;
}

#info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
  font-weight: bold;
}

#info .info-row:last-child {
  border-bottom: none;
}

#info .info-left {
  color: #666;
}

#info .info-right {
  color: #333;
  font-weight: bold;
}

/* 条码容器样式 */
.barcode-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

#barcode {
  flex: 1;
  height: 50px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  transition: border-color 0.3s ease;
}

#barcode:focus {
  outline: none;
  border-color: #2e86de;
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}

#scan-btn {
  width: 100px;
  height: 50px;
  background: linear-gradient(135deg, #390858, #2a0640);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(57, 8, 88, 0.3);
  background: linear-gradient(135deg, #2a0640, #1d0430);
}

#scan-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(57, 8, 88, 0.3);
}

/* 数量输入样式 */
.quantity-container {
  margin-bottom: 20px;
}

.quantity-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

#quantity-input {
  width: 100%;
  height: 60px;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  transition: border-color 0.3s ease;
}

#quantity-input:focus {
  outline: none;
  border-color: #2e86de;
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}

/* 保存按钮样式 */
#save-btn {
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#save-btn:hover {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
  /* 移除translateY变换，避免位置移动造成的误判 */
}

#save-btn:active {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
  /* 使用内阴影代替位置移动，提供更明确的点击反馈 */
}

/* 保存按钮禁用状态 */
#save-btn.disabled {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}

#save-btn.disabled:hover {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 保存按钮提交中状态 */
#save-btn.submitting {
  background: linear-gradient(135deg, #f39c12, #e67e22) !important;
  cursor: wait !important;
  position: relative;
  overflow: hidden;
}

#save-btn.submitting::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 保存成功提示 - 复用已有动画 */
.save-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
  animation: fadeIn 0.3s ease, fadeOut 0.3s ease 1.5s;
}

/* 店铺选择器样式 */
#shop-selector, .store-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.shop-btn, .store-btn {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #f8f9fa;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.shop-btn:hover, .store-btn:hover {
  border-color: #2e86de;
  background-color: #1f1f9f;
}

.shop-btn.active, .store-btn.active {
  background-color: #2e86de;
  color: white;
  border-color: #2e86de;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 134, 222, 0.3);
}

/* 表格样式 */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 16px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-table th {
  background-color: #2c3e50;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
  white-space: nowrap;
  border-bottom: 2px solid #34495e;
}

.product-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ecf0f1;
  word-wrap: break-word;
  max-width: 200px;
}

.product-table tr:hover {
  background-color: #f8f9fa;
}

.product-table tr.selected {
  background-color: #ff9800;
  color: white;
}

/* 搜索结果样式 */
.search-results {
  max-height: 400px;
  overflow-y: auto;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
}

/* 分页控件样式重复定义已删除 */

.page-info {
  font-size: 14px;
  font-weight: bold;
  color: #d6dde3;
  min-width: 120px;
  text-align: center;
}

/* 加载中样式 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2e86de;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  padding: 10px;
}

/* 移动端弹窗适配 */
@media (max-width: 768px) {
  .modal {
    padding: 5px;
  }
  
  .modal-content {
    margin: 25% auto 5% auto;
    max-width: 95%;
    max-height: 300px;
    padding: 10px;
  }
  
  .modal-buttons {
    gap: 5px;
    margin-top: 5px;
    padding-top: 5px;
  }
  
  .modal-button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .modal-message {
    font-size: 16px;
    min-height: 15px;
  }
}

.modal-content {
  background-color: rgb(251, 235, 235);
  margin: 20% auto 10% auto;
  padding: 12px;
  border: 1px solid #888;
  border-radius: 6px;
  max-width: 320px;
  max-height: 300px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  box-sizing: border-box;
}

.modal-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-message {
  margin-bottom: 10px;
  line-height: 1.3;
  color: #250571;
  min-height: 20px;
  font-size: 20px;
  padding: 0 4px;
  font-weight: bold;
}

  .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
  }

  .modal-button {
    padding: 6px 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
    min-width: 0;
  }

  .modal-cancel {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
  }

  .modal-cancel:hover {
    background-color: #e9ecef;
  }

  .modal-confirm {
    background-color: #4CAF50;
    color: white;
  }

  .modal-confirm:hover {
    background-color: #45a049;
  }

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .login-box, .form {
    padding: 20px;
    margin: 10px auto;
    border-radius: 12px;
  }
  
  
  input[type="text"],
  input[type="number"],
  input[type="password"],
  button {
    padding: 14px;
    font-size: 16px;
  }
  
  /* 移动端布局优化 */
  .barcode-container,
  .store-selector {
    flex-direction: row;
  }
  
  #barcode {
    flex: 3;
    height: 48px;
  }
  
  #scan-btn {
    flex: 1;
    height: 48px;
    width: auto;
    margin-top: 0;
  }

  #info {
    padding: 12px;
    font-size: 14px;
    flex-direction: column;
    gap: 10px;
  }
  
}

/* 高分辨率屏幕适配 */
@media (-webkit-device-pixel-ratio: 2), (resolution: 192dpi) {
  input, button {
    border-radius: 14px;
  }
}

/* 已提交盘点页面特定样式 */
/* 表格行样式 - my_submissions.html */
.record-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 32px;
  min-height: 32px;
}

.record-row:hover {
    background-color: #fff3e0;
  }

.record-row.selected {
    background-color: #ff9800;
    color: white;
  }

/* 确保表格单元格样式 */
#records-body .product-table tbody tr td {
  padding: 4px 6px;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.1;
}

/* 登录页面优化样式 */

/* 顶部图片区域 */
.header-image {
  max-width: 70%;
  max-height: 120px;
  overflow: visible;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.header-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: scale-down;
  object-position: center;
}

/* 登录容器 */
.login-container {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px 20px;
}

/* 登录框样式优化 */
.login-box {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
}

.login-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* 登录头部 */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 32px;
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.login-subtitle {
  color: #7f8c8d;
  font-size: 14px;
  margin: 0;
}

/* 登录表单样式优化 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 16px 48px 16px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fafafa;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
  background-color: white;
  transform: translateY(-2px);
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #7f8c8d;
}

/* 登录按钮样式优化 */
.login-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
  background: linear-gradient(135deg, #1976D2, #1565C0);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-text {
  font-size: 16px;
}

.btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* 已登录状态样式优化 */
.staff-info {
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  border: 1px solid #e9ecef;
}

.avatar {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 0.6s ease;
}

.staff-info h3 {
  margin: 12px 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.login-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #7f8c8d;
}

/* 操作按钮组 */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.primary-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.action-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.action-btn.secondary-btn {
  background: transparent;
  color: #7f8c8d;
  border: 2px solid #e8e8e8;
}

.action-btn.secondary-btn:hover {
  border-color: #2196F3;
  color: #2196F3;
  transform: translateY(-2px);
}

/* 登录底部 */
.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.login-footer p {
  color: #bdc3c7;
  font-size: 12px;
  margin: 0;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 720px) {
  .header-image {
    height: 120px;
  }
  
  .login-container {
    min-height: calc(100vh - 120px);
    padding: 16px 12px;
  }
  
  .login-box {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .form-input {
    padding: 14px 42px 14px 14px;
  }
  
  .login-btn, .action-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* my_submissions.html 移动端特定样式 - 高优先级 */
@media (max-width: 768px) {
  /* 表格容器优化 - 确保表头冻结 */
  .info-left {
    max-height: 400px;
    width: 100%;
    min-width: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
  }
  
  /* 分页控件优化 */
  .pagination-controls {
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
  }
  
  .pagination-btn {
    width: auto;
    min-width: 55px;
  }
  
  /* 表格样式 - 强制覆盖 */
  .product-table {
    width: 100%;
    table-layout: fixed;
    word-break: break-all;
  }
  
  /* 表头样式 */
  .product-table th {
    padding: 6px 3px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* 表格单元格样式 - 紧凑行高 */
  .product-table tbody tr td {
    padding: 2px 2px;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    vertical-align: middle;
    word-break: break-all;
    border-bottom: 1px solid #e0e0e0;
    white-space: normal;
  }
  
  /* 行高优化 */
  .record-row {
    height: 28px;
    min-height: 28px;
    transition: background-color 0.2s ease;
  }
  
  /* 选中行样式 */
  .record-row.selected {
    background-color: #ff9800;
    color: white;
  }
  
  /* 保留日期筛选器按钮样式以确保一致性 */
  #date-filter-btn {
    min-width: 60px;
    white-space: nowrap;
    height: 36px;
    padding: 0 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 14px;
  }
}
