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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #1a1a1a;
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

/* 活动标题 */
.event-title {
  color: #2c2c2c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}

.event-title-dark {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}

h1 {
  color: #2c2c2c;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.admin-header h1,
.display-header h1 {
  color: #fff;
}

.slogan {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0;
  font-style: italic;
}

.slogan-dark {
  color: #e0e0e0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 10px 0;
  font-style: italic;
}

h2 {
  color: #444;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

h3 {
  color: #555;
  font-size: 18px;
  margin-bottom: 10px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
}

.btn-primary {
  background: #2c2c2c;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background: #3a3a3a;
}

.btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

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

.section {
  animation: fadeIn 0.3s;
}

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

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

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

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

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

.menu-items {
  margin-bottom: 30px;
}

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

.item-options {
  display: flex;
  gap: 15px;
}

.radio-label {
  flex: 1;
  display: block;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label span {
  display: block;
  padding: 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  font-size: 16px;
}

.radio-label input[type="radio"]:checked + span {
  background: #2c2c2c;
  color: white;
  border-color: #2c2c2c;
}

/* 数量选择器 */
.quantity-selector {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-selector label {
  color: #555;
  font-weight: 600;
  margin: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: 2px solid #2c2c2c;
  background: white;
  color: #2c2c2c;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: #2c2c2c;
  color: white;
}

.quantity-controls input {
  width: 60px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  font-size: 16px;
  font-weight: 600;
}

/* 购物车样式 */
.cart-summary {
  background: #f0f7ff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid #2c2c2c;
}

.cart-items {
  margin-top: 15px;
}

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

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

.cart-item-info strong {
  color: #2c2c2c;
  display: block;
  margin-bottom: 8px;
}

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

.qty-btn-small {
  width: 25px;
  height: 25px;
  border: 1px solid #2c2c2c;
  background: white;
  color: #2c2c2c;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn-small:hover {
  background: #2c2c2c;
  color: white;
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: #2c2c2c;
}

.cart-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
  text-align: right;
  font-size: 18px;
  color: #2c2c2c;
}

.remove-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.remove-btn:hover {
  background: #e84142;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #2c2c2c;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s;
  z-index: 10000;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-text {
  color: #999;
  text-align: center;
  padding: 10px;
}

.search-results {
  margin-top: 20px;
}

.order-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.order-card:hover {
  border-color: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pickup-number {
  font-size: 24px;
  font-weight: 700;
  color: #2c2c2c;
}

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

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

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

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

.order-info {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

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

.order-item {
  color: #444;
  font-size: 14px;
  margin-bottom: 5px;
}

/* 管理页面样式 */
.admin-container {
  max-width: 1200px;
}

.admin-header {
  background: #2c2c2c;
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.admin-header h1 {
  color: white;
}

.orders-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.orders-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
}

.orders-section h2 {
  margin-bottom: 20px;
  color: #2c2c2c;
}

.admin-order-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.btn-small {
  padding: 8px 15px;
  font-size: 14px;
  flex: 1;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

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

.print-btn {
  background: #6c757d;
  color: white;
}

/* 大屏页面样式 */
.display-container {
  max-width: 100%;
  padding: 20px;
  background: #1a1a1a;
  min-height: 100vh;
}

.display-header {
  background: #2c2c2c;
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.display-header h1 {
  color: white;
}

.display-content {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 20px;
  align-items: start;
}

.display-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 15px;
  min-height: 70vh;
}

.display-section h2 {
  color: #2c2c2c;
  margin-bottom: 20px;
  font-size: 24px;
}

/* 制作中订单网格 - 2列3行 */
#preparingOrders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  grid-auto-rows: minmax(150px, auto);
}

/* 已完成订单网格 - 3列3行 */
#completedOrders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  grid-auto-rows: minmax(150px, auto);
}

.display-order-card {
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #3a3a3a;
  transition: all 0.3s;
  min-height: 150px;
}

.display-order-card:hover {
  border-color: #555;
  background: #333;
}

.display-pickup-number {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1;
  margin-bottom: 15px;
}

.display-label {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.display-phone {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  text-align: center;
  letter-spacing: 3px;
}

/* 订单详情页面样式 */
.detail-container {
  max-width: 500px;
  text-align: center;
}

.pickup-number-large {
  font-size: 72px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 20px 0;
}

.detail-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.detail-value {
  color: #333;
}

.items-list {
  margin-top: 15px;
}

.item-detail {
  background: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .orders-container {
    grid-template-columns: 1fr;
  }
  
  .display-content {
    grid-template-columns: 1fr;
  }
  
  #preparingOrders {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #completedOrders {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .display-pickup-number {
    font-size: 48px;
  }
  
  .display-phone {
    font-size: 18px;
  }
  
  .pickup-number-large {
    font-size: 56px;
  }
}

