/* --- 餐饮系统轻奢新中式视觉方案 --- */
:root {
  --primary: #f97316;          /* 活力品牌橙 */
  --primary-deep: #e85d04;     /* 深橙 */
  --accent-red: #c0392b;       /* 朱砂红点缀 */
  --gold: #d4af37;             /* 金色描边 */
  --sidebar: #2c2c2c;          /* 雅黑侧边 */
  --bg: #fffaf5;               /* 温暖米白背景 */
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
}

body { 
  margin: 0; 
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif; 
  display: flex; 
  height: 100vh; 
  background: var(--bg); 
  color: var(--text-main);
  overflow: hidden; 
}

/* 侧边栏导航 */
aside { 
  width: 240px; 
  background: var(--sidebar); 
  color: #fff; 
  display: flex; 
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

aside h2 { 
  padding: 30px 20px; 
  font-size: 20px; 
  margin: 0; 
  text-align: center; 
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 2px;
}

aside nav { flex: 1; padding: 15px 0; }

aside nav a { 
  display: block; 
  padding: 14px 25px; 
  color: #d1d5db; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  font-size: 15px; 
}

aside nav a:hover, aside nav a.active { 
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), transparent); 
  color: var(--primary); 
  border-left: 4px solid var(--primary); 
}

/* 主体与头部 */
main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

header { 
  background: #fff; 
  padding: 0 30px; 
  height: 70px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  z-index: 10;
  border-bottom: 2px solid var(--gold);
}

#page_title { font-weight: 600; font-size: 18px; color: var(--accent-red); }

/* 营业状态标识 (纯样式展示) */
header::after {
  content: '● 营业中';
  font-size: 12px;
  color: #10b981;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 50px;
  margin-left: auto;
  margin-right: 20px;
}

.page-container { padding: 25px; overflow-y: auto; flex: 1; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.4s ease; }

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

/* 数据统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 25px; }

.stat-card { 
  background: #fff; 
  padding: 22px; 
  border-radius: var(--radius); 
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border-top: 3px solid var(--primary);
}

.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(249,115,22,0.03) 0%, transparent 100%);
}

.stat-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--text-main); }

/* 卡片通用 */
.card { 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 24px; 
  margin-bottom: 25px; 
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02);
  border: 1px solid #f3f4f6;
}

.card h3 { 
  margin-top: 0; font-size: 17px; margin-bottom: 20px; 
  color: var(--accent-red); border-left: 4px solid var(--accent-red);
  padding-left: 12px;
}

/* 表格与标签 */
table { width: 100%; border-collapse: collapse; }
th { background: #fef3c7; color: var(--accent-red); text-align: left; padding: 14px; font-size: 14px; font-weight: 600; }
td { padding: 14px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }

/* 订单状态胶囊 */
.status-tag { 
  padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 500;
}
.status-paid { background: #fef3c7; color: #d97706; } /* 进行中/已支付-橙 */
.status-delivered { background: #ecfdf5; color: #059669; } /* 已完成-绿 */
.status-created { background: #fef2f2; color: #dc2626; } /* 待处理-红 */

/* 按钮与输入框 */
input, select { 
  padding: 10px 15px; border: 1px solid #e5e7eb; border-radius: 8px; 
  font-size: 14px; outline: none; background: #fff; transition: 0.2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }

button { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); 
  color: #fff; border: 0; padding: 11px 22px; border-radius: 8px; 
  cursor: pointer; transition: 0.3s; font-weight: 600; box-shadow: 0 4px 10px rgba(249,115,22,0.2);
}
button:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(249,115,22,0.3); }

button.secondary { 
  background: transparent; color: var(--text-muted); border: 1px solid #e5e7eb; box-shadow: none;
}
button.secondary:hover { background: #f9fafb; color: var(--text-main); }

/* 图片预览占位 */
.img-placeholder { 
  background: #f3f4f6; border: 2px dashed #d1d5db; border-radius: 8px; 
  display: flex; align-items: center; justify-content: center; color: #9ca3af;
}

/* Toast 提示 */
.toast { 
  position: fixed; top: -50px; left: 50%; transform: translateX(-50%); 
  padding: 12px 30px; border-radius: 50px; color: #fff; z-index: 1000; 
  transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); font-size: 14px; 
}
.toast.show { top: 30px; }
.toast.success { background: #10b981; border: 2px solid #fff; }
.toast.error { background: var(--accent-red); border: 2px solid #fff; }

/* 针对金额数字的特殊加粗 */
.price-text { font-weight: 700; color: var(--text-main); font-family: "Verdana", sans-serif; }



/* 侧边栏图标新中式处理 */
aside nav a i {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-style: normal;
    color: #d4af37; /* 核心：使用中式金属金 */
    text-shadow: 0 0 2px rgba(212, 175, 55, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

aside nav a:hover i, aside nav a.active i {
    transform: rotate(10deg) scale(1.3);
    color: #fff; /* 激活时变为亮白 */
}
.ingredient-badge {
    display: inline-flex;
    align-items: center;
    background: #fdf2f2; /* 淡淡的朱砂底色 */
    border: 1px solid #f8d7da;
    color: #b02a37; /* 深朱红 */
    padding: 2px 10px;
    border-radius: 20px; /* 胶囊状 */
    font-size: 12px;
    margin: 2px;
}
/* 订单详情模态框主体 */
.order-modal-content {
    border-top: 4px solid #c0392b; /* 顶部一道朱红横杠，点睛之笔 */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background: #fafafa;
}

.order-item-list {
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.status-btn {
    background: #c0392b !important; /* 统一操作按钮颜色 */
    color: gold !important;
    border: 1px solid #d4af37 !important;
}