* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  background-color: #fef8f2;
}

/* 内容 */
.container {
  width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* 左侧 */
.card {
  border-radius: 10px;
  padding: 0 20px;
  background: #fff;
}
h2 {
  border-bottom: 2px solid black;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 16px;
}
button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 5px 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  margin-right: 8px;
  width: 64px;
  height: 32px;
}

.food-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.food-item img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-right: 15px;
}
.food-info {
  flex: 1;
}

/* 订单项 */
.order-item {
  padding: 15px;
  border: 1px solid #666;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.order-content {
  flex: 1;
}
/* 已完成状态：删除线 */
.order-content.completed {
  text-decoration: line-through;
  color: #999;
}

/* 右侧操作栏 */
.order-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}
.status-pending {
  background: #fff3cd;
  color: #664d03;
  animation: blink 1.2s infinite alternate;
}
.status-accepted {
  background: #d1e7dd;
  color: #0f5132;
}
.status-completed {
  background: #e9ecef;
  color: #6c757d;
}

@keyframes blink {
  from {
    opacity: 1;
    background: #ffdd80;
  }
  to {
    opacity: 0.6;
    background: #fff3cd;
  }
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cate-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}
.cate-row select {
  flex: 2;
  margin: 0;
}
.cate-row input {
  flex: 2;
  margin: 0;
}
.cate-row button {
  flex: 1;
  white-space: nowrap;
  margin: 0;
}

#cateList {
  margin-top: 20px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.cate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #fafafa;
  cursor: move;
  user-select: none;
}
.cate-item:hover {
  background: #eef4ff;
}
.cate-item:last-child {
  border-bottom: none;
}

/* 右侧 */
.card-liebiao {
  padding: 0 20px;
  border-radius: 10px;
  background: #fff;
}

/* 按钮样式区分 */
.btn-accept {
  background: #ffc107;
  color: #fff;
}
.btn-complete {
  background: #28a745;
  color: #fff;
}
.btn-delete {
  background: #dc3545;
  color: #fff;
}