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

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 深色背景区域的滚动条 */
.sidebar ::-webkit-scrollbar-track,
.member-info ::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

.sidebar ::-webkit-scrollbar-thumb,
.member-info ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
}

.sidebar ::-webkit-scrollbar-thumb:hover,
.member-info ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

:root {
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary-color: #2c3e50;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-gray: #f5f6fa;
  --border-color: #dcdde1;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--light-gray);
  color: var(--text-color);
  font-size: 14px;
}

/* 登录页面 - 左右布局 */
.login-container {
  min-height: 100vh;
  display: flex;
  background: #f5f6fa;
}

/* 左侧品牌区 */
.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 50%, #d94a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: ''; 
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

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

.brand-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 500px;
}

.brand-icon {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.brand-icon i {
  font-size: 60px;
  color: white;
}

.brand-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.brand-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-item:hover {
  background: rgba(255,255,255,0.25);
  transform: translateX(10px);
  border-color: rgba(255,255,255,0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 22px;
  color: white;
}

.feature-text {
  text-align: left;
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  opacity: 0.85;
}

/* 右侧登录区 */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: white;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.login-logo i {
  font-size: 40px;
  color: white;
}

.login-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.login-header p {
  color: #7f8c8d;
  font-size: 16px;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.form-group label i {
  color: #ff6b35;
  font-size: 16px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #e8e9ea;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s;
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: #ff6b35;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.input-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.input-icon i {
  font-size: 18px;
  color: white;
}

.input-wrapper input {
  flex: 1;
  padding: 16px 18px;
  border: none;
  font-size: 15px;
  background: transparent;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #95a5a6;
}

.toggle-password {
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0 15px;
  transition: color 0.3s;
  height: 100%;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: #ff6b35;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

.btn-login i {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn-login:hover i {
  transform: translateX(5px);
}

.login-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e8e9ea;
}

.login-footer p {
  color: #95a5a6;
  font-size: 13px;
}
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

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

.btn-login i {
  font-size: 18px;
}

/* 登录错误提示弹窗 */
.login-error-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s;
}

.login-error-alert .alert-content {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-error-alert .alert-content i {
  font-size: 48px;
  color: #e74c3c;
  margin-bottom: 20px;
}

.login-error-alert .alert-content p {
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 25px;
  line-height: 1.6;
}

.login-error-alert .alert-content button {
  padding: 12px 40px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-error-alert .alert-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

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

.login-tips {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dcdde1;
}

.login-tips p {
  color: #7f8c8d;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-tips i {
  color: #3498db;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-brand {
    flex: none;
    min-height: 300px;
    padding: 40px 30px;
  }
  
  .brand-title {
    font-size: 32px;
  }
  
  .brand-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .brand-icon {
    width: 80px;
    height: 80px;
  }
  
  .brand-icon i {
    font-size: 40px;
  }
  
  .brand-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .feature-item {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .login-form-section {
    flex: 1;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .login-brand {
    min-height: 250px;
  }
  
  .brand-features {
    display: none;
  }
  
  .login-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .login-brand {
    min-height: 200px;
    padding: 30px 20px;
  }
  
  .brand-title {
    font-size: 26px;
  }
  
  .login-form-section {
    padding: 30px 20px;
  }
  
  .login-header h2 {
    font-size: 24px;
  }
  
  .input-wrapper input {
    padding: 15px 15px 15px 45px;
    font-size: 15px;
  }
  
  .btn-login {
    padding: 15px;
    font-size: 16px;
  }
}

/* 主应用布局 */
.app-container {
  display: flex;
  height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 90px;
  min-width: 90px;
  background: #434143;
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 15px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
  font-size: 28px;
  color: var(--primary-color);
}

.sidebar-header span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
}

.nav-menu {
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 8px;
  margin: 4px 8px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.15);
}

.nav-item.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.nav-item i {
  font-size: 22px;
  width: auto;
  text-align: center;
}

.nav-item span {
  font-size: 11px;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

.user-info:hover {
  background: rgba(255,255,255,0.15);
}

.user-info i {
  font-size: 22px;
}

.btn-logout {
  width: 100%;
  padding: 8px 5px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.btn-logout i {
  font-size: 18px;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.2);
}

/* 主内容区 */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--light-gray);
}

.page {
  display: none;
  padding: 20px;
}

.page.active {
  display: block;
}

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

.page-header h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* 点餐页面布局 */
.order-layout {
  display: grid;
  grid-template-columns: 300px 1fr 400px;
  gap: 15px;
  height: calc(100vh - 40px);
}

/* 购物车区域 */
.cart-section {
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions {
  display: flex;
  gap: 5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--light-gray);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-icon:hover {
  background: var(--border-color);
}

.order-type-selector {
  padding: 10px 15px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.type-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.type-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fff5f0;
}

.table-selector {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.table-selector select {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-cart i {
  font-size: 48px;
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.cart-item-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.qty-btn:hover {
  background: var(--light-gray);
}

.cart-item-subtotal {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 60px;
  text-align: right;
  padding: 0px 5px 0px 0px;
}

.cart-summary {
  padding: 15px;
  border-top: 2px solid var(--border-color);
  background: var(--light-gray);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* 商品区域 */
.products-section {
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.products-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0px 0px 0px;
  
}

.tab {
  padding: 8px 16px;
  border: none;
  background: var(--light-gray);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab.active {
  background: var(--primary-color);
  color: white;
}

.products-grid {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  align-content: start;
}

.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card.sold-out {
  opacity: 0.5;
  pointer-events: none;
}

.product-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.product-card .badge.promotion {
  background: var(--warning-color);
}

.product-image {
  width: 100%;
  height: 80px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

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

.product-image i {
  font-size: 32px;
  color: var(--text-light);
}

.product-name {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.3;
}

.product-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 16px;
}

.product-price .original {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 5px;
}

.product-stock {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}

/* 结算区域 */
.checkout-section {
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.checkout-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.checkout-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-display {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.amount-row label {
  color: var(--text-light);
}

.amount-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.amount-row input {
  width: 150px;
  padding: 8px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  text-align: right;
}

.change-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--success-color);
}

.discount-section {
  padding: 15px;
  display: flex;
  gap: 10px;
}

.btn-outline {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.member-section {
  padding: 15px;
}

.member-input {
  display: flex;
  gap: 5px;
}

.member-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.member-info {
  margin-top: 10px;
  padding: 10px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

.payment-methods {
  padding: 15px;
  flex: 1;
}

.payment-methods h4 {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-btn {
  padding: 15px 10px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.payment-btn:hover {
  border-color: var(--primary-color);
  background: #fff5f0;
}

.payment-btn i {
  font-size: 24px;
}

.payment-btn[data-method="wechat"] i {
  color: #07c160;
}

.payment-btn[data-method="alipay"] i {
  color: #1677ff;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background: white;
  flex-shrink: 0;
  margin-top: auto;
}

.checkout-actions .btn-large {
  flex: 1;
  justify-content: center;
}

/* 结算区内容可滚动 */
.checkout-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary-test {
  padding: 10px 20px;
  background: linear-gradient(135deg, #e33ee3, #efd644);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary-test:hover {
  background: var(--primary-dark);
}


.btn-secondary {
  padding: 10px 20px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #1a252f;
}

.btn-danger {
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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



.btn-large {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* 数据表格 */
.data-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--light-gray);
  font-weight: 600;
}

.data-table tr:hover {
  background: #fafafa;
}

/* 桌台网格 */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.table-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-card.available {
  border-color: #d2d2d2;
}

.table-card.occupied {
  border-color: var(--danger-color);
  background: #fff5f5;
}

.table-card.reserved {
  border-color: var(--warning-color);
}

.table-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.table-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.table-status.available {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border-radius: 50px;
}

.table-status.occupied {
  background: #f8fef7;
  color: #ff5a5a;
}

.table-status.reserved {
  background: #fff3cd;
  color: #856404;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-form {
  width: 900px;
  padding: 0;
}

.modal-large {
  width: 800px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 16px 16px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--text-color);
}

.modal-body {
  padding: 24px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.form-label small {
  font-weight: normal;
  color: var(--text-light);
  font-size: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.form-actions .btn-secondary,
.form-actions .btn-primary {
  min-width: 100px;
  justify-content: center;
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: var(--secondary-color);
  color: white;
  border-radius: 10px;
  z-index: 2000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: bottom 0.3s ease;
}

.toast.show {
  display: block;
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--success-color);
}

.toast.error {
  background: var(--danger-color);
}

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

/* Toast 消失动画 */
.toast:not(.show) {
  animation: slideDown 0.3s ease forwards;
}

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

/* 报表卡片 */
.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--light-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
}

.stat-content h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-content p {
  color: var(--text-light);
  font-size: 14px;
}

.report-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.chart-container h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

/* 设置页面 */
.settings-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.settings-tab {
  padding: 10px 20px;
  border: none;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.settings-tab.active {
  background: var(--primary-color);
  color: white;
}

.settings-panel {
  display: none;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.settings-panel.active {
  display: block;
}

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

.shift-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 40px;
}

/* 桌台选择网格 */
.tables-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.table-select-item {
  padding: 20px;
  background: var(--light-gray);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.table-select-item:hover {
  background: #fff5f0;
  border-color: var(--primary-color);
}

.table-select-item.occupied {
  background: #f8d7da;
  cursor: not-allowed;
}

.table-select-item.selected {
  background: var(--primary-color);
  color: white;
}

/* 表单样式 */
.form-row {
  gap: 15px;
  margin-bottom: 15px;
}

.form-col {
  flex: 1;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.order-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-info {
  flex: 1;
}

.order-number {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
}

.order-meta {
  color: var(--text-light);
  font-size: 13px;
}

.order-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 20px;
}

.order-status {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

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

.order-status.preparing {
  background: #cce5ff;
  color: #004085;
}

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

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

/* 响应式 */
@media (max-width: 1200px) {
  .order-layout {
    grid-template-columns: 280px 1fr;
  }
  
  .checkout-section {
    position: fixed;
    right: -300px;
    top: 0;
    height: 100vh;
    width: 300px;
    z-index: 100;
    transition: right 0.3s;
  }
  
  .checkout-section.show {
    right: 0;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .sidebar-header span,
  .nav-item span {
    display: none;
  }
  
  .order-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-section {
    display: none;
  }
}

/* 打印机模态框样式 */
.printer-modal-content {
  padding: 0;
}

.printer-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.printer-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.printer-section-title i {
  color: #ff6b35;
  font-size: 16px;
}

/* 打印机类型 Tab */
.printer-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.printer-type-tab {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.printer-type-tab:hover {
  border-color: #ff6b35;
  background: #fff5f0;
  transform: translateY(-2px);
}

.printer-type-tab.active {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.printer-type-tab i {
  font-size: 24px;
  color: #666;
}

.printer-type-tab.active i {
  color: white;
}

.printer-type-tab span {
  font-size: 13px;
  font-weight: 500;
}

/* 连接方式 Tab */
.printer-connection-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.printer-connection-tab {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.printer-connection-tab:hover {
  border-color: #ff6b35;
  background: #fff5f0;
  transform: translateY(-2px);
}

.printer-connection-tab.active {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.printer-connection-tab i {
  font-size: 20px;
  color: #666;
}

.printer-connection-tab.active i {
  color: white;
}

.printer-connection-tab span {
  font-size: 12px;
  font-weight: 500;
}

/* 纸张宽度 Tab */
.printer-paper-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.printer-paper-tab {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.printer-paper-tab:hover {
  border-color: #ff6b35;
  background: #fff5f0;
  transform: translateY(-2px);
}

.printer-paper-tab.active {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.printer-paper-tab .paper-width {
  font-size: 18px;
  font-weight: 700;
}

.printer-paper-tab .paper-desc {
  font-size: 12px;
  color: #999;
}

.printer-paper-tab.active .paper-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* 配置面板 */
.printer-config-panel {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.config-tip {
  background: #fff3cd;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 12px;
  color: #856404;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-tip i {
  color: #f39c12;
}

/* 开关选项 */
.printer-option-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
}

.printer-switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.printer-switch-label span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.printer-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.printer-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.printer-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.printer-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.printer-switch input:checked + .printer-slider {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.printer-switch input:checked + .printer-slider:before {
  transform: translateX(24px);
}

.printer-option-desc {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* 模态框操作按钮 */
.printer-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 0 0 0;
  border-top: 1px solid #eee;
  margin-top: 15px;
}

.printer-modal-actions .btn-secondary,
.printer-modal-actions .btn-primary {
  min-width: 100px;
  justify-content: center;
}

/* 响应式调整 */
@media (max-width: 600px) {
  .printer-type-tabs,
  .printer-connection-tabs {
    grid-template-columns: 1fr;
  }
  
  .printer-paper-tabs {
    grid-template-columns: 1fr;
  }
  
  .config-grid {
    grid-template-columns: 1fr;
  }
}

/* 打印机卡片 */
.printers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.printer-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.printer-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.printer-type {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 5px;
}

.printer-info {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

.printer-info .info-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.printer-info .info-item i {
  color: #999;
  font-size: 12px;
}

.printer-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 15px;
}

.printer-status.online {
  background: #e8f5e9;
  color: #27ae60;
}

.printer-status.offline {
  background: #ffebee;
  color: #e74c3c;
}

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

/* 沽清卡片 */
.soldout-card {
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
}

.soldout-name {
  font-weight: 600;
  flex: 1;
}

.soldout-reason {
  color: #e74c3c;
  font-size: 14px;
}

/* 桌台分组显示 */
.table-floor-section {
  margin-bottom: 30px;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.floor-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #9e9e9e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-zone-section {
  margin-bottom: 20px;
}

.zone-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--secondary-color);
}

.zone-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

/* 桌台卡片 - 现代简洁风格 */
.tables-grid {
  display: block;
  padding: 10px;
}

.floor-section {
  margin-bottom: 10px;
  border-radius: 20px;
  /* 
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05); */
}

.floor-title {
  font-size: 20px;
  font-weight: 700;
  color: #581616;
  /* background: linear-gradient(314deg, #ffffff, #434143);
  box-shadow: 0 6px 20px rgb(167 167 167 / 40%);
  */
  padding: 15px 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.floor-title i {
  font-size: 22px;
}

.floor-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.zone-section {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.zone-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  padding: 8px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 15px;
  box-shadow: 0 3px 12px rgba(240, 147, 251, 0.35);
  letter-spacing: 0.5px;
}

.zone-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 18px;
}

.table-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  position: relative;
  text-align: center;
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

.table-card.available {
  border-left: 4px solid #707070e8;
  background: linear-gradient(to bottom, #dbeff700, #0107111a);
}

.table-card.occupied {
  border-left: 4px solid #ef5350;
  background: linear-gradient(to bottom, #ffffff, #ff0a0a);
}

.table-card.reserved {
  border-left: 4px solid #ff9800;
  background: linear-gradient(to bottom, #ffffff, #fff8e1);
}

.table-number {
  font-size: 18px;
  font-weight: 700;
  color: #37474f;
  margin-bottom: 8px;
}

.table-status {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 8px;
}

.table-status.available {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border-radius: 50px;
}

.table-status.occupied {
  background: #f8fef7;
  color: #ff5a5a;
}

.table-status.reserved {
  background: #ffe0b2;
  color: #e65100;
}

.table-status::before {
  content: '';
}

.table-capacity {
  font-size: 12px;
  color: #78909c;
  margin-bottom: 10px;
}

.table-capacity::before {
  content: '👥 ';
}

.table-remark {
  font-size: 11px;
  color: #9e9e9e;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.table-actions .btn-small {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffe2ce73, #306bfb);
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  border: 0px solid var(--border-color);
}

.table-actions .btn-small:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.table-actions .btn-small.btn-danger {
  color: #fffdfd;
  border-color: #ffcdd2;
  background: linear-gradient(135deg, #ffffff73, #f90000);
}

.table-actions .btn-small.btn-danger:hover {
  background: #ef5350;
  color: white;
  border-color: #ef5350;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #bdc3c7;
  font-size: 16px;
}

.empty-state i {
  display: block;
  margin-bottom: 15px;
}

.shift-info {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.shift-info p {
  margin: 8px 0;
  font-size: 14px;
}

.shift-info span {
  font-weight: 600;
}

.shift-history {
  margin-top: 20px;
}

.shift-history h4 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.payment-config-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.payment-config-section h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-config-section textarea.form-input {
  resize: vertical;
  min-height: 60px;
}

/* 支付对话框 */
.payment-dialog {
  padding: 20px;
}

.payment-amount {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.amount-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 5px;
}

.amount-value {
  font-size: 32px;
  font-weight: 700;
  color: white;
}

.payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-tab {
  flex: 1 1 calc(33.333% - 6px);
  max-width: calc(33.333% - 6px);
  padding: 12px 8px;
  background: #f5f6fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-tab:hover {
  background: #e8e8e8;
}

.payment-tab.active {
  background: white;
  border-color: #ff6b35;
  color: #ff6b35;
}

.payment-content {
  min-height: 200px;
}

.payment-method-select {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.method-btn {
  padding: 15px 30px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

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

.method-btn i {
  font-size: 20px;
}

.method-btn:nth-child(1) i { color: #07c160; }
.method-btn:nth-child(2) i { color: #1677ff; }

.qrcode-display {
  text-align: center;
}

.qrcode-wrapper {
  padding: 20px;
  background: white;
  border-radius: 12px;
  display: inline-block;
}

.qrcode-wrapper img {
  margin-bottom: 15px;
}

.qrcode-tip {
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.qrcode-status {
  font-size: 13px;
  color: #f39c12;
}

.scanner-input {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.scanner-input label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2c3e50;
}

.scanner-input input {
  margin-bottom: 15px;
}

.payment-actions {
  margin-top: 20px;
  text-align: center;
}

/* 订单详情 */
.order-detail {
  padding: 10px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b35;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-item.full-width {
  grid-column: span 2;
}

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

.detail-item span {
  font-size: 14px;
  color: #2c3e50;
}

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

.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.confirmed { background: #cce5ff; color: #004085; }
.status-badge.preparing { background: #d4edda; color: #155724; }
.status-badge.ready { background: #d1ecf1; color: #0c5460; }
.status-badge.completed { background: #28a745; color: white; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.detail-table th {
  background: #f5f6fa;
  font-weight: 600;
  color: #2c3e50;
}

.fee-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.fee-item.discount span:last-child {
  color: #27ae60;
}

.fee-item.total {
  border-top: 2px solid #2c3e50;
  padding-top: 15px;
  font-weight: 700;
  font-size: 18px;
}

.fee-item.total span:last-child {
  color: #ff6b35;
}

.detail-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 新订单卡片样式 */
.order-card-new {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.order-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.order-card-left {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 15px 10px;
}

.order-status-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.order-status-text {
  font-size: 12px;
  font-weight: 600;
}

.order-card-body {
  flex: 1;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.order-card-row:last-child {
  margin-top: auto;
}

.order-no {
  font-weight: 700;
  font-size: 16px;
  color: #2c3e50;
}

.order-no i {
  color: #999;
  font-size: 12px;
}

.order-amount {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b35;
  margin-left: auto;
}

.order-table, .order-people {
  font-size: 13px;
  color: #666;
}

.order-table i, .order-people i {
  color: #999;
  margin-right: 5px;
}

.order-items-text {
  font-size: 13px;
  color: #888;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.order-time i {
  margin-right: 5px;
}

.order-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-left: 1px solid #eee;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.action-btn.confirm {
  background: #3498db;
  color: white;
}

.action-btn.prepare {
  background: #9b59b6;
  color: white;
}

.action-btn.ready {
  background: #27ae60;
  color: white;
}

.action-btn.pay {
  background: #ff6b35;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
}

/* 订单通知 */
.order-notification {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 350px;
}

.order-notification.waiter-call {
  background: linear-gradient(135deg, #ff6b9b 0%, #f74d4d 100%);
  color: white;
}

.order-notification.waiter-call .notification-text {
  color: rgba(255,255,255,0.9);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.order-notification.fade-out {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.order-notification.waiter-call .notification-icon {
  background: rgba(255,255,255,0.2);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 700;
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.order-notification.waiter-call .notification-title {
  color: white;
}

.notification-text {
  font-size: 13px;
  color: #666;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

.order-notification.waiter-call .notification-close {
  color: rgba(255,255,255,0.7);
}

/* 待处理订单持续通知 */
.pending-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
  z-index: 10000;
  max-width: 380px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  overflow: hidden;
}

.pending-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.pending-header {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.pending-icon {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  animation: bell-ring 1s ease-in-out infinite;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.pending-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.pending-count {
  display: inline-block;
  background: white;
  color: #ff6b35;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  margin-right: 5px;
}

.pending-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
}

.pending-body {
  padding: 15px 20px;
  max-height: 200px;
  overflow-y: auto;
}

.pending-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pending-order-item:last-child {
  border-bottom: none;
}

.pending-order-no {
  font-weight: 600;
  color: #2c3e50;
}

.pending-order-table {
  color: #666;
  font-size: 14px;
}

.pending-order-amount {
  color: #ff6b35;
  font-weight: 700;
}

.pending-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

.pending-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.pending-btn:hover {
  transform: scale(1.02);
}

/* 开关样式 */
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s;
}

.switch-label:hover {
  background: #f5f5f5;
}

.switch-label span:first-child {
  font-weight: 500;
  color: #2c3e50;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 支付方式选择标签 */
.payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  padding: 0px 15px 0px 15px;
}

.payment-tab {
  flex: 1 1 calc(33.333% - 6px);
  max-width: calc(33.333% - 6px);
  padding: 10px 8px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
}

.payment-tab:hover {
  border-color: var(--primary-color);
}

.payment-tab.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.payment-tab i {
  font-size: 16px;
}

/* 支付区域 */
.payment-area {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

/* 应收金额显示 */
.amount-receivable {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  border-radius: 8px;
  margin-bottom: 15px;
}

.amount-receivable label {
  font-size: 14px;
  color: white;
  font-weight: 500;
}

.amount-receivable span {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* 快捷金额按钮 */
.quick-amount-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.quick-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.quick-btn:active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 现金支付区 */
.cash-input-group {
  margin-bottom: 10px;
}

.cash-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.cash-input-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  text-align: right;
}

.cash-input-group input:focus {
  border-color: var(--primary-color);
}

.change-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.change-display label {
  font-size: 13px;
  color: #666;
}

.change-display span {
  font-size: 18px;
  font-weight: bold;
  color: var(--success-color);
}

/* 扫码支付区 */
.qrcode-method-select,
.scanner-method-select {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.method-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
}

.method-btn:hover {
  border-color: var(--primary-color);
}

.method-btn.active {
  border-color: var(--primary-color);
  background: #fff5f0;
}

.method-btn i {
  font-size: 18px;
}

.method-btn[data-method="wechat"] i {
  color: #07c160;
}

.method-btn[data-method="alipay"] i {
  color: #1677ff;
}

.qrcode-display {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 200px;
}

.qrcode-display img {
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.qrcode-status {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: #666;
}

.qrcode-status.success {
  color: var(--success-color);
  font-weight: bold;
}

/* 扫码器收款区 */
.scanner-input-group {
  margin-top: 10px;
}

.scanner-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.scanner-input-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.scanner-input-group input:focus {
  border-color: var(--primary-color);
  background: #fff5f0;
}

/* 订单卡片网格布局 */
.order-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
  padding: 10px 0;
}

.order-card-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  border: 2px solid transparent;
  display: flex;
}

.order-card-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.order-card-item.selected {
  border-color: var(--primary-color);
  background: #fff5f0;
}

.order-card-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 12px;
  background: #f8f9fa;
  border-right: 1px solid #eee;
}

.order-card-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.order-card-item.selected {
  border-color: var(--primary-color) !important;
  background: #fff5f0 !important;
}

.order-card-item.selected .order-card-checkbox {
  background: #ffe8dc;
}

.order-card-content {
  flex: 1;
  padding: 15px;
  cursor: pointer;
}

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

.order-card-number {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

.order-card-number i {
  color: #999;
  font-size: 12px;
  margin-right: 3px;
}

.order-card-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.order-card-status.pending { background: #fff3cd; color: #856404; }
.order-card-status.confirmed { background: #cce5ff; color: #004085; }
.order-card-status.preparing { background: #e8daef; color: #6c3483; }
.order-card-status.ready { background: #d4edda; color: #155724; }
.order-card-status.completed { background: #d6d6d6; color: #6c757d; }
.order-card-status.cancelled { background: #f8d7da; color: #721c24; }

.order-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.order-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
}

.order-info-item i {
  color: #999;
  font-size: 12px;
}

.order-card-items {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.order-card-items i {
  color: var(--primary-color);
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.order-card-total {
  font-size: 14px;
  color: #666;
}

.order-card-total .total-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 5px;
}

.order-card-actions {
  display: flex;
  gap: 6px;
  flex-direction: row;
}

.order-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-action-btn:hover {
  transform: scale(1.1);
}

.order-action-btn.confirm { background: #3498db; color: white; }
.order-action-btn.prepare { background: #9b59b6; color: white; }
.order-action-btn.ready { background: #27ae60; color: white; }
.order-action-btn.pay { background: var(--primary-color); color: white; }
.order-action-btn.print { background: #17a2b8; color: white; }
.order-action-btn.delete { background: #e74c3c; color: white; }

/* 批量操作栏 */
.order-batch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  border-radius: 10px;
  margin-bottom: 15px;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.batch-info input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: white;
}

.batch-info label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.batch-info .selected-count {
  font-weight: 700;
  font-size: 16px;
}

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

.btn-batch {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-batch-delete {
  background: white;
  color: #e74c3c;
}

.btn-batch-delete:hover {
  background: #ffebee;
  transform: scale(1.02);
}

/* 订单筛选Tab菜单 */
.order-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

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

.filter-tab:hover {
  background: #e8e8e8;
}

.filter-tab.active {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  font-weight: 600;
}

.config-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.config-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.config-title i {
  margin-right: 8px;
  color: #ff6b35;
}

.config-tip {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .order-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .order-batch-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .batch-info, .batch-actions {
    width: 100%;
    justify-content: center;
  }
}

/* 订单详情样式 */
.order-detail-content {
  padding: 20px;
}

.detail-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #2c3e50;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

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

.detail-row span {
  color: #2c3e50;
  font-weight: 600;
}

.detail-row.total {
  font-size: 18px;
  color: var(--primary-color);
  border-top: 2px solid #eee;
  padding-top: 15px;
  margin-top: 10px;
}

.detail-items {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.detail-item {
  display: grid;
  /* grid-template-columns: 2fr 1fr 1fr 1fr; */
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .item-name {
  color: #2c3e50;
  font-weight: 500;
}

.detail-item .item-quantity {
  color: #666;
  text-align: center;
}

.detail-item .item-price,
.detail-item .item-subtotal {
  color: #2c3e50;
  text-align: right;
}

.detail-item .item-subtotal {
  font-weight: 600;
  color: var(--primary-color);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.detail-actions button {
  flex: 1;
  min-width: 120px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

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

.status-badge.confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.preparing {
  background: #d4edda;
  color: #155724;
}

.status-badge.ready {
  background: #cce5ff;
  color: #004085;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
}

/* 沽清管理样式 - 紧凑卡片布局 */
.soldout-section {
  margin-bottom: 20px;
}

.soldout-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.soldout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.soldout-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.soldout-card.sold-out {
  border-color: #e74c3c;
  background: linear-gradient(to bottom, #fff5f5, #ffffff);
}

.soldout-card.sold-out .soldout-image {
  background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
}

.soldout-card.unlimited {
  border-color: #27ae60;
}

/* 商品图片区域 - 更紧凑 */
.soldout-image {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #f5f6fa 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.soldout-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f6fa 0%, #e0e0e0 100%);
}

.soldout-image .image-placeholder i {
  font-size: 36px;
  color: #ccc;
}

/* 角标 - 更小 */
.soldout-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.promotion-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

/* 商品信息区域 - 更紧凑 */
.soldout-info {
  padding: 10px;
  flex: 1;
}

/* 名称和元信息同一行 */
.soldout-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.soldout-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  max-width: 80px;
}

.soldout-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.soldout-category {
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid #e8e8e8;
}

.soldout-price {
  font-size: 15px;
  font-weight: 700;
  color: #ff4757;
  white-space: nowrap;
}

.soldout-price del {
  font-size: 11px;
  color: #bbb;
  margin-right: 4px;
  font-weight: normal;
}

/* 库存状态 - 更紧凑 */
.soldout-stock {
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  display: flex;
  justify-content: center;
}

.stock-unlimited {
  color: #2ed573;
  font-weight: 500;
}

.stock-unlimited i {
  color: #2ed573;
  font-size: 11px;
}

.stock-low {
  color: #ff4757;
  font-weight: 500;
}

.stock-low i {
  color: #ff6b81;
  font-size: 11px;
}

.stock-normal {
  color: #666;
}

.stock-normal i {
  color: #a4b0be;
  font-size: 11px;
}

/* 操作按钮区域 - 更紧凑 */
.soldout-actions {
  padding: 8px 10px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
}

.btn-restore {
  flex: 1;
  padding: 7px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-restore:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(39, 174, 96, 0.3);
}

.btn-soldout {
  flex: 1;
  padding: 7px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-soldout:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

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

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.empty-state p {
  font-size: 14px;
}

/* ========== 图片上传样式 ========== */
.image-upload-container {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.image-preview-box {
  width: 100px;
  height: 100px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  transition: all 0.2s;
  flex-shrink: 0;
}

.image-preview-box:hover {
  border-color: #ff6b35;
  background: #fff5f0;
}

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

.upload-placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.upload-placeholder i {
  font-size: 28px;
  margin-bottom: 8px;
  color: #ccc;
}

.image-upload-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.image-upload-info .form-input {
  width: 100%;
}

/* ========== ���������ʽ ========== */
.shift-info {
  background: linear-gradient(135deg, #f5f6fa, #ecf0f1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.shift-info p {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
}

.shift-info p span:first-child {
  color: #7f8c8d;
  width: 100px;
}

.shift-info p span:last-child {
  font-weight: 600;
}

.shift-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-large {
  font-size: 14px;
  border-radius: 8px;
  flex: 1;
}

.btn-large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shift-history {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.shift-history h4 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* ���࿪ʼ���� */
.shift-start-form {
  padding: 20px;
}

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

.shift-start-form .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2c3e50;
}

.shift-start-form .form-label i {
  color: #ff6b35;
}

.shift-start-form small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

/* ����������� */
.shift-end-report {
  padding: 20px;
}

.shift-report-header {
  background: #f5f6fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.shift-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.shift-info-row .label {
  color: #7f8c8d;
}

.shift-info-row .value {
  font-weight: 600;
  color: #2c3e50;
}

.shift-report-stats h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.shift-report-stats h4 i {
  color: #ff6b35;
}

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

.stat-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #dcdde1;
}

.stat-label {
  display: block;
  color: #7f8c8d;
  font-size: 12px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-value.highlight {
  color: #ff6b35;
}

.payment-stats {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #dcdde1;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f6fa;
}

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

.payment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3e50;
}

.payment-value {
  font-weight: 600;
  color: #2c3e50;
}

.cash-handover {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  padding: 15px;
  border-radius: 8px;
}

.cash-handover h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px 0;
}

.handover-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.handover-row.total {
  border-top: 2px solid #856404;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 16px;
  color: #856404;
}

/* ����СƱ */
.shift-receipt {
  padding: 20px;
  max-width: 400px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dashed #eee;
}

.receipt-row.total {
  font-size: 18px;
  color: #ff6b35;
  border-bottom: none;
}

/* ���ఴť��ʽ��ǿ */
#btnStartShift, #btnEndShift {
  transition: all 0.3s ease;
}

#btnStartShift:not(:disabled):hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

#btnEndShift:not(:disabled):hover {
  background: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ����Ա���������ť */
.admin-shift-actions {
  display: flex;
  gap: 10px;
}

.btn-warning {
  background: #f39c12;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: #e67e22;
  transform: translateY(-1px);
}

.btn-danger {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* ========== ��Ʒ��������ʽ ========== */
.product-form-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 0;
}

/* ���ͼƬ�ϴ��� */
.product-image-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-upload-area {
  width: 100%;
  height: 280px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-upload-area:hover {
  border-color: #ff6b35;
  background: #fff5f0;
}

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

.upload-placeholder {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #999;
}

.upload-placeholder i {
  font-size: 48px;
  color: #ddd;
}

.upload-text {
  text-align: center;
}

.upload-text .main-text {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
}

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

.image-url-input {
  width: 100%;
}

.image-url-input input {
  width: 100%;
}

/* �Ҳ���Ʒ��Ϣ */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: #ff6b35;
}

.info-row {
  margin-bottom: 16px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.field-label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.field-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* �۸������ */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-symbol {
  position: absolute;
  left: 12px;
  color: #ff6b35;
  font-weight: 600;
  font-size: 16px;
  z-index: 1;
}

.price-input {
  padding-left: 28px !important;
}

/* ������� */
.stock-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-hint {
  font-size: 12px;
  color: #999;
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
  .product-form-container {
    grid-template-columns: 1fr;
  }
  
  .image-upload-area {
    height: 200px;
  }
  
  .info-row.two-cols {
    grid-template-columns: 1fr;
  }
}

/* ========== ��Ʒ���� - ����ִ���� ========== */
.product-form-new {
  display: flex;
  gap: 24px;
  padding: 0;
}

.form-section {
  flex: 1;
}

/* ͼƬ�ϴ��� */
.image-section {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-upload-box {
  width: 240px;
  height: 240px;
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-upload-box:hover {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-content {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #999;
}

.upload-content i {
  font-size: 40px;
  color: #ccc;
}

.upload-content span {
  font-size: 14px;
  color: #999;
}

.url-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s;
}

.url-input:focus {
  outline: none;
  border-color: #ff6b35;
}

/* ��Ϣ�� */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.form-group .req {
  color: #e74c3c;
}

.input-lg {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background: #fff;
}

.input-lg:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ��ͼ������� */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .icon {
  position: absolute;
  left: 14px;
  color: #ff6b35;
  font-weight: 700;
  font-size: 15px;
}

.input-with-icon input {
  padding-left: 32px;
}

/* ��ʾ���� */
.hint {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ��Ӧʽ */
@media (max-width: 800px) {
  .product-form-new {
    flex-direction: column;
  }
  
  .image-section {
    flex: none;
    align-items: center;
  }
  
  .image-upload-box {
    width: 200px;
    height: 200px;
  }
  
  .url-input {
    max-width: 200px;
  }
}

/* 呼叫服务员通知确认按钮 */
.notification-confirm {
  background: #27ae60;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
  white-space: nowrap;
}

.notification-confirm:hover {
  background: #229954;
  transform: scale(1.05);
}

.notification-confirm:active {
  transform: scale(0.95);
}

.order-notification.waiter-call .notification-confirm {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.order-notification.waiter-call .notification-confirm:hover {
  background: rgba(255,255,255,0.3);
}

/* 呼叫服务员通知容器 - 底部中间堆叠显示 */
.waiter-call-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
  pointer-events: none;
}

.waiter-call-container .order-notification {
  position: relative;
  pointer-events: auto;
}

/* ========== 拖拽排序样式 ========== */
.product-manage-card[draggable="true"] {
  position: relative;
}

.product-manage-card[draggable="true"]:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-manage-card[draggable="true"]:active {
  cursor: grabbing;
}

.product-card-drag-handle {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.product-manage-card:hover .product-card-drag-handle {
  opacity: 1;
}

.product-manage-card.dragging {
  opacity: 0.5;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 分类拖拽样式 */
[data-category-id][draggable="true"] {
  transition: all 0.2s ease;
}

[data-category-id][draggable="true"]:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-category-id][draggable="true"]:active {
  cursor: grabbing;
}

[data-category-id].dragging {
  opacity: 0.5;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== 预定状态样式 ========== */
.reservation-status.status-pending {
  background: #fff3cd;
  color: #856404;
}

.reservation-status.status-confirmed {
  background: #cce5ff;
  color: #004085;
}

.reservation-status.status-arrived {
  background: #d4edda;
  color: #155724;
}

.reservation-status.status-completed {
  background: #e2e3e5;
  color: #383d41;
}

.reservation-status.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* 桌台预定信息样式 */
.table-reservation-info {
  background: #fff5f0;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.table-reservation-info div {
  margin-bottom: 4px;
}

.table-reservation-info div:last-child {
  margin-bottom: 0;
}

.table-occupied-info {
  background: #ffebee;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #e74c3c;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 预定卡片样式 */
.reservation-card {
  transition: all 0.2s ease;
}

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

/* 表单样式 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* 桌台状态标签 */
.table-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.table-status-tag.occupied {
  background: #ffebee;
  color: #e74c3c;
}

.table-status-tag.reserved {
  background: #fff3e0;
  color: #ff9800;
}

/* 桌台选择项增强 */
.table-select-item {
  position: relative;
}

.table-select-item.occupied {
  background: #ffebee !important;
  border-color: #e74c3c !important;
}

.table-select-item.reserved {
  background: #fff8e1 !important;
  border-color: #ff9800 !important;
}
