:root {
    --primary: #c5a085; /* 更高级的摩卡金 */
    --primary-light: #eaddcf;
    --bg: #f7f8fa;     /* 极淡的灰蓝色背景，显干净 */
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
    --danger: #ff6b6b;
    --success: #51cf66;
    --border-r: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container { max-width: 600px; margin: 0 auto; padding-bottom: 60px; }

/* 头部美化 */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
header h1 { font-size: 22px; margin: 0; color: var(--text-main); font-weight: 700; }
header a { font-size: 14px; color: var(--primary); text-decoration: none; padding: 5px 10px; background: rgba(197, 160, 133, 0.1); border-radius: 20px; transition: 0.2s; }
header a:hover { background: var(--primary); color: white; }

/* 通用卡片 */
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-r);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* 超柔和阴影 */
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.02);
}

/* 标题与标签 */
label { display: block; margin: 15px 0 8px; font-size: 13px; color: var(--text-sub); font-weight: 600; letter-spacing: 0.5px; }

/* 现代化输入框 */
input, select {
    width: 100%; padding: 12px 15px;
    border: 1px solid #e0e0e0; border-radius: 10px;
    background: #fcfcfc; font-size: 15px; color: var(--text-main);
    outline: none; box-sizing: border-box; transition: 0.3s;
}
input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(197, 160, 133, 0.1); }

/* 按钮体系 */
.btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--primary), #b08d74);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 12px rgba(197, 160, 133, 0.3);
    transition: transform 0.1s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }

.btn.danger { 
    background: transparent; color: var(--danger); 
    box-shadow: none; padding: 5px 10px; width: auto; font-size: 13px; border: 1px solid rgba(255, 107, 107, 0.2); 
}
.btn.danger:hover { background: #fff5f5; }

.btn.add { 
    background: var(--text-main); box-shadow: none; margin-top: 10px; 
}

/* 胶囊式导航 Tab */
.nav-tabs { 
    display: flex; background: #e8eaed; padding: 4px; border-radius: 14px; margin-bottom: 20px; 
}
.tab-btn { 
    flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 600; 
    color: var(--text-sub); cursor: pointer; border-radius: 10px; transition: 0.3s; 
}
.tab-btn.active { 
    background: white; color: var(--text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

/* 订单卡片样式 (Ticket Style) */
.order-card {
    display: flex; justify-content: space-between; align-items: center;
    background: white; padding: 18px; border-radius: 12px;
    margin-bottom: 12px; border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.order-time { font-size: 18px; font-weight: bold; color: var(--text-main); }
.order-info { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.order-customer { font-weight: 600; color: #333; }

/* 资源列表样式 (Strip Style) */
.resource-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px dashed #eee;
}
.resource-row:last-child { border-bottom: none; }
.resource-name { font-weight: 600; font-size: 15px; }
.resource-tag { 
    font-size: 12px; padding: 2px 8px; background: var(--primary-light); 
    color: #8a6b4e; border-radius: 4px; margin-left: 5px; 
}

/* 修改价格的小输入框 */
.price-input {
    width: 70px; padding: 6px; text-align: right; 
    border: none; background: transparent; border-bottom: 1px solid #ddd; border-radius: 0;
    font-weight: bold; color: var(--success);
}
.price-input:focus { border-bottom-color: var(--success); background: #f0fff4; }

/* 顾客端专用Grid */
.grid { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { flex: 1 1 30%; text-align: center; padding: 15px 5px; border: 1px solid #eee; border-radius: 12px; cursor: pointer; background: white; transition: 0.2s; }
.tag.active { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(197, 160, 133, 0.4); }