/* ======================= 月度日历视图样式 ======================= */
.calendar-view {
  margin-top: 20px;
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-table thead th {
  background: #2196F3;
  color: white;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

.calendar-table tbody td {
  border: 1px solid #e0e0e0;
  padding: 0;
  height: 100px;
  vertical-align: top;
  width: 14.28%; /* 7列平分 */
}

.calendar-day {
  height: 100%;
  padding: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.calendar-day.empty {
  background: #f5f5f5;
}

.calendar-day.today {
  background: #fff3e0;
  border: 2px solid #ff9800;
}

.calendar-day.has-data {
  background: #e3f2fd;
  cursor: pointer;
}

.calendar-day.has-data:hover {
  background: #bbdefb;
  transform: scale(1.02);
}

.day-number {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.day-amount {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
}

.day-profit {
  font-size: 13px;
  font-weight: 700;
}

.day-profit.profit-positive {
  color: #4caf50;
}

.day-profit.profit-negative {
  color: #f44336;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .calendar-table tbody td {
    height: 80px;
    font-size: 12px;
  }

  .day-number {
    font-size: 14px;
  }

  .day-amount {
    font-size: 10px;
  }

  .day-profit {
    font-size: 11px;
  }
}

/* ======================= 订单详情展开样式 ======================= */
.order-summary {
  margin-top: 15px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.order-summary:hover {
  background: #e9ecef;
}

.summary-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.summary-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

.order-details {
  margin-top: 10px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.detail-index {
  color: #666;
  font-weight: 600;
  margin-right: 8px;
  min-width: 25px;
}

.detail-desc {
  color: #333;
  flex: 1;
}

.no-details {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 14px;
}

/* ======================= 全局样式重置和优化 ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
  min-height: 100vh;
  /* 关键修复：不创建层叠上下文，避免影响下拉框 */
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  -webkit-perspective: none !important;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  min-height: 100vh;
  /* 关键修复：不创建层叠上下文，避免影响下拉框 */
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  -webkit-perspective: none !important;
}

/* ======================= 移动端下拉框通用修复 ======================= */
/* 基础select样式 */
select {
  font-family: inherit;
  font-size: 16px !important;
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
  outline: none;
  padding: 14px 16px !important;
  min-height: 50px;
  line-height: 1.5;
  vertical-align: middle;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;

  /* 使用原生下拉框样式 - 不干扰定位 */
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;

  /* 关键修复：强制使用静态定位，让浏览器原生处理下拉选项位置 */
  position: static !important;
  transform: none !important;
  -webkit-transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* select 焦点状态 */
select:focus {
  border-color: #4CAF50 !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 2px 12px rgba(0,0,0,0.15) !important;
  outline: none !important;
}

/* select 悬停状态 */
select:hover {
  border-color: #999 !important;
}

/* 禁用状态 */
select:disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ======================= 下拉框容器优化 ======================= */
/* 客户选择区域 - 不设置定位避免干扰下拉框 */
.select-customer,
.add-customer {
  margin-bottom: 15px;
  /* 确保不创建新的层叠上下文 */
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  -webkit-perspective: none !important;
  will-change: auto !important;
}

.select-customer label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

/* 设置项容器 - 不设置定位避免干扰下拉框 */
.setting-item {
  margin-bottom: 20px;
  /* 确保不创建新的层叠上下文 */
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  -webkit-perspective: none !important;
  will-change: auto !important;
}

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

/* ======================= 客户管理优化样式 ======================= */

/* 区块头部样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-actions {
  display: flex;
  gap: 10px;
}

.section-actions button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-actions .btn-stats {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
}

.section-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 客户管理控件布局 */
.customer-controls {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

/* 添加客户区域 */
.add-customer {
  flex: 1;
  min-width: 300px;
}

.add-customer .input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.add-customer input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
}

.add-customer input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.add-customer .btn-add {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-customer .btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.add-customer .btn-add .icon {
  font-size: 16px;
}

.add-customer .btn-add .text {
  font-size: 14px;
}

/* 客户列表区域 */
.customer-list-section {
  flex: 1;
  min-width: 350px;
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.list-header {
  margin-bottom: 15px;
}

.list-header label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

/* 客户选择器 */
.customer-selector {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.customer-selector select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
}

.customer-selector select:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.quick-actions button {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.quick-actions .btn-edit {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
}

.quick-actions .btn-delete {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

.quick-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 客户信息显示区优化 */
.customer-info {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #4CAF50;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.customer-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, transparent 50%, rgba(76, 175, 80, 0.05) 50%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.customer-info h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-info .customer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.customer-info .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.customer-info .detail-label {
  font-weight: bold;
  color: #666;
  font-size: 14px;
}

.customer-info .detail-value {
  color: #333;
  font-size: 15px;
}

/* 客户统计卡片 */
.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stat-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  border-radius: 50%;
}

.stat-info {
  flex: 1;
}

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

.stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .customer-controls {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .add-customer,
  .customer-list-section {
    min-width: auto;
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .customer-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-actions {
    justify-content: center;
    margin-top: 10px;
  }

  .customer-stats-grid {
    grid-template-columns: 1fr;
  }

  .customer-info .customer-details {
    grid-template-columns: 1fr;
  }
}
.customer-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.add-customer, .select-customer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-direction: column;
}

.add-customer input,
.select-customer select {
  width: 100%;
  min-width: 250px;
  max-width: 400px;
}

/* ======================= 输入框统一样式 ======================= */
input[type="text"],
input[type="number"],
textarea {
  font-family: inherit;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  padding: 14px 16px;
  min-height: 50px;
  line-height: 1.5;
  background-color: white;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input:focus,
textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 2px 12px rgba(0,0,0,0.15);
  outline: none;
}

/* ======================= 模态框内下拉框修复 ======================= */
.modal-content {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  /* 确保不创建新的层叠上下文 */
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  -webkit-perspective: none !important;
  will-change: auto !important;
}

/* 移除所有可能干扰下拉框的样式 */
.modal-content select {
  position: static !important;
  z-index: auto !important;
  background-color: white;
  -webkit-transform: none !important;
  transform: none !important;
  margin-bottom: 15px;
}

.modal-content .setting-item,
.modal-content .select-customer {
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  overflow: visible;
}

/* ======================= 移动端下拉框容器优化 ======================= */
@media (max-width: 768px) {
  .select-customer,
  .setting-item {
    /* 不设置position，避免干扰下拉框 */
  }

  .select-customer select,
  .setting-item select {
    font-size: 16px;
    padding: 14px 16px;
    min-height: 48px;
    background-color: white;
  }
}

.container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
}

/* 模态框样式 */
.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 400px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
  text-align: center;
}

/* 登录表单 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form input {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
}

.login-form input:focus {
  border-color: #4CAF50;
}

.login-form button {
  padding: 12px;
  font-size: 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-form button:hover {
  background: #45a049;
}

.error-msg {
  color: #f44336;
  font-size: 14px;
  text-align: center;
}

.lock-msg {
  color: #ff9800;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

/* 顶部操作栏 */
.top-bar {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.top-actions {
  display: flex;
  gap: 10px;
}

/* 按钮样式 */
button {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

/* 开奖结算按钮 - 最突出 */
.btn-draw-result {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
  color: white;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

.btn-draw-result:hover {
  background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.7);
  }
}

.btn-settings {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.btn-settings:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.btn-stats {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.btn-stats:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

.btn-logout {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(158, 158, 158, 0.3);
}

.btn-logout:hover {
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.5);
}

.btn-parse {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-parse:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-clear {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(158, 158, 158, 0.3);
}

.btn-clear:hover {
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.5);
}

.btn-confirm {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-confirm:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-cancel {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

.btn-cancel:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

.btn-delete {
  background: #f44336;
  color: white;
  padding: 8px 15px;
}

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

.btn-export {
  background: #00BCD4;
  color: white;
}

.btn-export:hover {
  background: #0097A7;
}

/* 区块样式 */
.section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 客户管理 */
.customer-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.add-customer, .select-customer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.add-customer input, .select-customer select {
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  min-width: 200px;
  line-height: 1.5;
  vertical-align: middle;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
  /* 防止下拉框定位问题 */
  position: relative;
  z-index: 1;
  background-color: white;
}

.add-customer input:focus, .select-customer select:focus {
  border-color: #4CAF50;
}

/* 下拉框选项样式优化 */
.select-customer select option {
  padding: 10px;
  font-size: 16px;
  line-height: 1.8;
}

/* 新增客户按钮样式 */
.add-customer button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.add-customer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.add-customer button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.customer-info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #4CAF50;
}

/* ======================= 下单信息输入区样式优化 ======================= */
.order-input-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.input-card .card-header {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left .card-icon {
  font-size: 20px;
  color: #4CAF50;
}

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

.header-right .input-hint {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.input-card .card-body {
  padding: 25px;
}

.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  outline: none;
  font-family: "Microsoft YaHei", "Courier New", monospace;
  resize: vertical;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.textarea-wrapper textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
  background: white;
}

.textarea-wrapper textarea::placeholder {
  color: #999;
  line-height: 1.8;
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 0 5px;
}

.char-count {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.quick-templates {
  display: flex;
  gap: 8px;
}

.template-btn {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  color: #2196F3;
  border: 1px solid #d0e0ff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.template-btn:hover {
  background: linear-gradient(135deg, #e6f0ff 0%, #d0e0ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.order-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.order-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  position: relative;
  overflow: hidden;
}

.order-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.order-actions button:hover::before {
  left: 100%;
}

.order-actions .btn-parse {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.order-actions .btn-parse:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.order-actions .btn-clear {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(158, 158, 158, 0.3);
}

.order-actions .btn-clear:hover {
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.5);
}

.order-actions .btn-paste {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.order-actions .btn-paste:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
}

.btn-icon {
  font-size: 16px;
}

.btn-text {
  flex: 1;
}

.btn-keyboard-hint {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .input-card .card-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 8px;
  }

  .input-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .quick-templates {
    justify-content: center;
  }

  .order-actions {
    flex-direction: column;
    gap: 12px;
  }

  .order-actions button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .order-actions .btn-parse {
    min-width: auto;
  }

  .btn-keyboard-hint {
    display: none;
  }

  .textarea-wrapper textarea {
    min-height: 180px;
    padding: 15px;
    font-size: 14px;
  }
}

/* 下单输入区 */
.order-controls textarea {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  font-family: "Courier New", monospace;
  resize: vertical;
  box-sizing: border-box;
}

.order-controls textarea:focus {
  border-color: #4CAF50;
}

.order-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* ======================= 识别结果预览区样式优化 ======================= */
.preview-section {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
  border: 2px solid #ffb74d;
  position: relative;
  overflow: hidden;
}

.preview-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.preview-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.preview-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #4CAF50;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.preview-card.type-zodiac {
  border-left-color: #2196F3;
}

.preview-card.type-number {
  border-left-color: #FF9800;
}

.preview-card.type-special {
  border-left-color: #9C27B0;
}

.preview-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.preview-card .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.preview-card .card-amount {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.preview-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
}

.preview-item .item-name {
  color: #666;
  font-weight: 500;
}

.preview-item .item-value {
  color: #333;
  font-weight: 600;
}

.preview-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  color: #4CAF50;
  font-size: 16px;
  font-weight: 700;
}

.preview-summary {
  margin: 20px 0;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.summary-icon {
  font-size: 20px;
  color: #FF9800;
}

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

.summary-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
}

.summary-row .label {
  color: #666;
  font-weight: 500;
}

.summary-row .value {
  color: #333;
  font-weight: 600;
}

.preview-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.preview-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  position: relative;
  overflow: hidden;
}

.preview-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.preview-actions button:hover::before {
  left: 100%;
}

.preview-actions .btn-confirm {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  flex: 1;
  min-width: 180px;
  justify-content: center;
}

.preview-actions .btn-confirm:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.preview-actions .btn-edit {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.preview-actions .btn-edit:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.preview-actions .btn-cancel {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

.preview-actions .btn-cancel:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

.btn-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .preview-stats {
    flex-direction: column;
    gap: 10px;
  }

  .stat-item {
    justify-content: center;
  }

  .preview-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .preview-actions {
    flex-direction: column;
    gap: 12px;
  }

  .preview-actions button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .preview-actions .btn-confirm {
    min-width: auto;
  }

  .btn-badge {
    display: none;
  }
}

/* 预览区 */
.preview-section {
  border: 2px solid #FF9800;
}

#previewContent {
  background: #fff3e0;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.preview-item {
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 4px solid #FF9800;
}

.preview-item h4 {
  margin: 0 0 10px 0;
  color: #FF9800;
}

.preview-item p {
  margin: 5px 0;
  color: #666;
}

.preview-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* 订单列表 */
/* ======================= 今日订单列表样式优化 ======================= */
.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.orders-list-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.list-header {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.list-count {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.settlement-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settlement-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  position: relative;
  white-space: nowrap;
}

.settlement-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.settlement-btn.active {
  background: white;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.settlement-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  color: #333;
}

.settlement-btn.active[data-filter="all"] {
  color: #2196F3;
}

.settlement-btn.active[data-filter="unsettled"] {
  color: #FF9800;
}

.settlement-btn.active[data-filter="settled"] {
  color: #4CAF50;
}

/* 结算状态指示器 */
.settlement-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settlement-btn.active::before {
  opacity: 1;
}

.settlement-btn.active[data-filter="all"]::before {
  background: #2196F3;
}

.settlement-btn.active[data-filter="unsettled"]::before {
  background: #FF9800;
}

.settlement-btn.active[data-filter="settled"]::before {
  background: #4CAF50;
}

.orders-content {
  padding: 25px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 200px;
}

/* 订单卡片样式 */
.order-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.order-card.pending::before {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.order-card.completed::before {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.order-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-left: 10px;
}

.order-info {
  flex: 1;
}

.order-customer {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.order-time {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: rgba(255, 152, 0, 0.1);
  color: #F57C00;
}

.status-badge.completed {
  background: rgba(33, 150, 243, 0.1);
  color: #1976D2;
}

.order-amount {
  font-size: 16px;
  font-weight: 700;
  color: #4CAF50;
}

.order-items {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.order-item .item-name {
  color: #666;
  font-weight: 500;
}

.order-item .item-detail {
  color: #333;
  font-weight: 600;
}

.order-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.summary-label {
  color: #666;
  font-weight: 500;
}

.summary-value {
  color: #333;
  font-weight: 700;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.empty-desc {
  font-size: 14px;
  color: #999;
  margin-bottom: 25px;
  max-width: 400px;
  line-height: 1.6;
}

.btn-create-first {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-create-first:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* 筛选和导出按钮 */
.btn-filter,
.btn-export {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-filter {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976D2;
}

.btn-filter:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateY(-1px);
}

.btn-export {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7B1FA2;
}

.btn-export:hover {
  background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%);
  transform: translateY(-1px);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .list-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 10px;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }

  .settlement-toggle {
    width: 100%;
    justify-content: center;
    padding: 2px;
  }

  .settlement-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    justify-content: center;
  }

  .settlement-btn span {
    font-size: 11px;
  }

  .orders-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .orders-content {
    padding: 15px;
  }

  .order-card {
    padding: 15px;
  }

  .order-card .card-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .order-status {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .empty-state {
    padding: 40px 15px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-title {
    font-size: 16px;
  }

  .empty-desc {
    font-size: 13px;
  }
}

/* 订单列表样式 */

.order-card h4 {
  margin: 0 0 10px 0;
  color: #2196F3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card .order-time {
  font-size: 12px;
  color: #999;
}

.order-items {
  margin-top: 10px;
}

.order-item {
  padding: 8px;
  background: white;
  margin: 5px 0;
  border-radius: 3px;
  font-size: 14px;
}

.order-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-weight: bold;
  color: #333;
}

/* 设置弹窗 */
.settings-modal {
  min-width: 500px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-item label {
  min-width: 120px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.setting-item input,
.setting-item select {
  flex: 1;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  line-height: 1.5;
  vertical-align: middle;
  min-height: 44px;
  /* 防止下拉框定位问题 */
  position: relative;
  z-index: 1;
  background-color: white;
}

.setting-item select {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}

.setting-item input:focus,
.setting-item select:focus {
  border-color: #4CAF50;
}

/* 设置弹窗下拉框选项样式 */
.setting-item select option {
  padding: 10px;
  font-size: 16px;
  line-height: 1.8;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* 统计报表 */
.stats-modal {
  min-width: 800px;
}

.stats-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}

.tab-btn.active {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.stats-table th, .stats-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.stats-table th {
  background: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.stats-table tr:hover {
  background: #f9f9f9;
}

.profit-positive {
  color: #4CAF50;
  font-weight: bold;
}

.profit-negative {
  color: #f44336;
  font-weight: bold;
}

/* ======================= 移动端响应式优化 ======================= */
@media (max-width: 768px) {
  /* Header优化 - 减少高度，避免遮挡 */
  header {
    height: auto !important;
    min-height: 60px !important;
    padding: 10px 0 !important;
  }

  header .logo {
    height: auto !important;
    padding: 0 15px !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  header .logo img {
    height: 50px !important;
    margin-top: 0 !important;
  }

  header .clock {
    font-size: 14px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
  }

  header .clock span {
    display: inline-block;
    margin-left: 5px;
  }

  /* 整体容器 */
  .container {
    padding: 12px;
    margin-top: 10px;
  }

  /* 顶部栏优化 */
  .top-bar {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  .top-bar h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 5px;
  }

  /* 顶部按钮优化 - 更大的触摸目标 */
  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .top-actions button {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  /* 开奖结算按钮占满一行 */
  .top-actions .btn-draw-result {
    grid-column: 1 / -1;
    min-height: 56px;
    font-size: 16px;
  }

  /* 客户管理区域优化 */
  .customer-controls {
    flex-direction: column;
    gap: 20px;
  }

  .add-customer, .select-customer {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .add-customer label,
  .select-customer label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }

  .add-customer input, .select-customer select {
    width: 100%;
    min-width: auto;
    font-size: 16px;
    padding: 16px 18px;
    min-height: 52px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
  }

  .add-customer input:focus,
  .select-customer select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  }

  .select-customer select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-color: white;
  }

  .select-customer select option {
    font-size: 16px;
    padding: 14px;
    line-height: 2;
  }

  .add-customer button {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }

  .btn-delete {
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* 客户信息卡片优化 */
  .customer-info {
    padding: 16px;
    font-size: 15px;
    border-radius: 8px;
    line-height: 1.6;
  }

  /* 区块标题优化 */
  .section {
    padding: 20px 15px;
    margin-bottom: 15px;
    border-radius: 12px;
  }

  .section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  /* 下单区域优化 */
  .order-section {
    padding: 20px 15px;
  }

  .order-section h2 {
    font-size: 20px;
  }

  #orderInput {
    font-size: 15px;
    min-height: 220px;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
  }

  .order-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .order-actions button {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }

  /* 订单列表优化 */
  .orders-section {
    padding: 20px 15px;
  }

  .orders-section h2 {
    font-size: 20px;
  }

  .order-card {
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .order-card h4 {
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .order-time {
    font-size: 13px;
    color: #666;
  }

  .order-item {
    font-size: 14px;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 6px;
    line-height: 1.5;
  }

  .order-summary {
    font-size: 15px;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
    background: #f5f5f5;
  }

  /* 弹窗 - 手机端全屏优化 */
  .modal {
    padding: 0;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .modal-content {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    padding: 24px 16px;
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: white;
    padding: 12px 0;
    z-index: 10;
    border-bottom: 2px solid #f0f0f0;
  }

  .modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .close-btn {
    font-size: 32px;
    padding: 8px 12px;
    position: sticky;
    top: 10px;
    z-index: 11;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 预览弹窗优化 */
  .preview-modal .modal-content {
    padding: 24px 16px;
  }

  .preview-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .preview-actions {
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 24px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }

  .preview-actions button {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }

  /* 统计弹窗优化 */
  .stats-modal, .settings-modal {
    min-width: 100%;
  }

  .stats-modal .modal-content,
  .settings-modal .modal-content {
    padding: 24px 16px;
  }

  .stats-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    min-height: 48px;
  }

  .stats-table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-table th, .stats-table td {
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .stats-table th {
    font-size: 14px;
    font-weight: 600;
  }

  /* 设置表单优化 */
  .settings-form {
    padding: 16px 0;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
  }

  .form-group input {
    font-size: 16px;
    padding: 16px 18px;
    min-height: 52px;
    border-radius: 8px;
  }

  /* 开奖结算弹窗优化 */
  .settle-form {
    padding: 16px 0;
  }

  .settle-form select,
  .settle-form input {
    width: 100%;
    font-size: 16px;
    padding: 16px 18px;
    min-height: 52px;
    line-height: 1.5;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
  }

  .settle-form select:focus,
  .settle-form input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  }

  .settle-form select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-color: white;
  }

  .settle-form select option {
    font-size: 16px;
    padding: 14px;
    line-height: 2;
  }

  .settle-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .settle-actions button {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }

  /* 待结算订单列表优化 */
  .pending-orders {
    font-size: 14px;
    margin-top: 20px;
  }

  .pending-order-item {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    line-height: 1.6;
  }

  /* 结算报告弹窗 - 手机端优化 */
  #settleReportModal .modal-content {
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
  }

  #settleReportModal h2 {
    font-size: 18px;
    position: sticky;
    top: 0;
    background: white;
    padding: 10px 0;
    z-index: 10;
    border-bottom: 2px solid #f0f0f0;
  }

  #settleReportModal h3 {
    font-size: 16px;
    margin: 15px 0 10px;
  }

  #settleReportModal table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  #settleReportModal th,
  #settleReportModal td {
    padding: 8px 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  #settleReportModal th {
    position: sticky;
    top: 60px;
    background: #f5f5f5;
    z-index: 9;
  }

  /* 结算报告关闭按钮 */
  #settleReportModal button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  /* 弹窗操作按钮区域优化 */
  .modal-actions {
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 24px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }

  .modal-actions button {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }

  /* 移除弹窗内下拉框的定位干扰 */
  .modal-content select {
    position: static !important;
    z-index: auto !important;
    background-color: white;
    -webkit-transform: none !important;
    transform: none !important;
  }

  .modal-content .setting-item,
  .modal-content .select-customer {
    position: static !important;
    z-index: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    overflow: visible;
  }

  /* 设置弹窗表单 */
  .settings-form {
    margin-bottom: 80px; /* 为底部按钮留空间 */
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .setting-item label {
    font-size: 16px;
    font-weight: bold;
  }

  .setting-item input,
  .setting-item select {
    width: 100%;
    font-size: 16px;
    padding: 14px 15px;
    min-height: 48px;
  }

  .setting-item select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
  }

  .setting-item select option {
    font-size: 16px;
    padding: 12px;
    line-height: 2;
  }

  /* 触摸优化 */
  button {
    min-height: 44px; /* iOS推荐的最小触摸目标 */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  }

  input, textarea {
    font-size: 16px; /* 防止iOS自动缩放 */
    -webkit-appearance: none;
    border-radius: 5px;
    min-height: 44px;
  }

  /* 移动端下拉框 - 使用原生样式，不干扰定位 */
  select {
    font-size: 16px !important;
    border-radius: 5px;
    min-height: 44px;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    background-color: white;
    background-image: none;
    /* 关键：不设置position和z-index，让浏览器原生处理 */
  }

  /* 容器使用默认定位 */
  .select-customer,
  .setting-item {
    position: static !important;
    z-index: auto !important;
    transform: none !important;
    overflow: visible;
  }

  /* 弹窗内的容器也使用默认定位 */
  .settings-modal .setting-item,
  .stats-modal .setting-item {
    position: static !important;
    z-index: auto !important;
    transform: none !important;
    overflow: visible;
  }

  /* iOS Safari 下拉框 - 移除transform避免定位问题 */
  @supports (-webkit-touch-callout: none) {
    select {
      /* 不使用transform，避免创建新的层叠上下文 */
    }
  }

  /* 隐藏滚动条但保持功能 */
  .modal-content::-webkit-scrollbar {
    width: 4px;
  }

  .modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
  }

  /* 开奖结算弹窗 */
  .draw-result-modal .modal-content {
    padding: 15px;
  }

  .draw-result-modal input,
  .draw-result-modal select {
    width: 100%;
    margin-bottom: 10px;
  }

  .draw-result-modal button {
    width: 100%;
    margin-top: 10px;
  }
}

/* 超小屏幕优化 (手机竖屏) */
@media (max-width: 480px) {
  /* Header进一步压缩 */
  header {
    min-height: 50px !important;
    padding: 5px 0 !important;
  }

  header .logo {
    padding: 0 10px !important;
  }

  header .logo img {
    height: 40px !important;
  }

  header .clock {
    font-size: 12px !important;
  }

  /* 顶部栏 */
  .top-bar h1 {
    font-size: 18px;
  }

  .top-actions button {
    flex: 1 1 100%;
    min-width: auto;
    font-size: 14px;
    padding: 12px;
  }

  /* 订单卡片 */
  .order-card h4 {
    font-size: 13px;
  }

  .order-item {
    font-size: 12px;
  }

  /* 弹窗 */
  .modal-content {
    padding: 15px 10px;
  }

  .modal-content h2 {
    font-size: 16px;
  }

  .modal-content h3 {
    font-size: 14px;
  }

  /* 表格在小屏幕上改为卡片式布局 */
  .stats-table thead {
    display: none;
  }

  .stats-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: white;
  }

  .stats-table td {
    display: block;
    text-align: right;
    padding: 5px;
    border: none;
  }

  .stats-table td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #666;
  }
}

/* ======================= 客户管理区样式优化（新版） ======================= */
.customer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.customer-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.customer-card .card-header {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  font-size: 20px;
  color: #4CAF50;
}

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

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

.input-hint,
.stats-hint {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.customer-count-hint {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 添加客户卡片特殊样式 */
.add-customer-card .card-icon {
  color: #4CAF50;
}

.customer-card .input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input[type="text"] {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input[type="text"]:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  transition: color 0.3s ease;
}

.input-wrapper input[type="text"]:focus + .input-icon {
  color: #4CAF50;
}

/* 选择客户卡片特殊样式 */
.select-customer-card .card-icon {
  color: #2196F3;
}

.customer-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
}

.select-wrapper select:focus {
  border-color: #2196F3;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.select-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  pointer-events: none;
  transition: color 0.3s ease;
}

.select-wrapper select:focus + .select-icon {
  color: #2196F3;
}

.quick-actions {
  display: flex;
  gap: 12px;
}

/* 统计卡片特殊样式 */
.stats-card .card-icon {
  color: #FF9800;
}

.stats-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.stat-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: white;
}

.stat-icon.blue {
  color: #2196F3;
}

.stat-icon.green {
  color: #4CAF50;
}

.stat-icon.orange {
  color: #FF9800;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* 客户信息显示区 */
.customer-info-display {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border-radius: 16px;
  border: 2px solid #4CAF50;
  position: relative;
  overflow: hidden;
}

.customer-info-display::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.customer-info-display h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2e7d32;
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.customer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.detail-label {
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.detail-value {
  color: #333;
  font-weight: 700;
  font-size: 14px;
}

/* ======================= 统一按钮样式 ======================= */

/* 主要操作按钮 */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* 次要操作按钮 */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

/* 危险操作按钮 */
.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

/* 操作按钮 */
.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(156, 39, 176, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-action:hover::before {
  left: 100%;
}

.btn-action:hover {
  background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.5);
}

.btn-icon {
  font-size: 16px;
}

.btn-text {
  flex: 1;
}

.btn-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
}

/* 客户管理区域响应式优化 */
@media (max-width: 768px) {
  .customer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .customer-card .card-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 8px;
  }

  .customer-card .input-group {
    gap: 12px;
  }

  .quick-actions {
    flex-direction: column;
    gap: 10px;
  }

  .customer-selector {
    gap: 12px;
  }

  .stats-grid-mini {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-info-display {
    padding: 20px;
    margin-top: 20px;
  }

  .btn-primary {
    min-height: 52px;
  }

  .btn-secondary,
  .btn-danger {
    min-height: 48px;
  }
}

