/* 全局样式 */
:root {
  --primary-color: #e53935;
  --secondary-color: #ffb300;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --inactive-color: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 14px;
}

.container {
  padding: 15px;
  max-width: 100%;
}

.header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 15px;
  text-align: center;
  position: relative;
  font-size: 18px;
  font-weight: bold;
}

.back-button {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  font-size: 16px;
}

.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 15px;
}

.btn {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  display: block;
  margin-top: 10px;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 14px;
}

.tag {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 5px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.food-item {
  display: flex;
  margin-bottom: 15px;
}

.food-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  object-fit: cover;
  margin-right: 10px;
}

.food-info {
  flex: 1;
}

.food-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.food-desc {
  color: #666;
  font-size: 12px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.food-price {
  color: var(--primary-color);
  font-weight: bold;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.quantity {
  margin: 0 10px;
}

.tab-bar {
  display: flex;
  background-color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  color: var(--inactive-color);
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 3px;
}

.active {
  color: var(--primary-color);
}

/* 列表样式 */
.list-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.list-item:last-child {
  border-bottom: none;
}

/* 订单样式 */
.order-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  background-color: #f0f0f0;
  color: #666;
}

.status-pending {
  background-color: #fff3e0;
  color: #ff9800;
}

.status-confirmed {
  background-color: #e8f5e9;
  color: #4caf50;
}

.status-canceled {
  background-color: #f5f5f5;
  color: #9e9e9e;
}

/* 评分样式 */
.rating {
  color: #ffc107;
  font-size: 16px;
}

/* 抽奖样式 */
.lottery-wheel {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 红包券样式 */
.coupon {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}

.coupon:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--background-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon:after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--background-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-amount {
  font-size: 24px;
  font-weight: bold;
}

.coupon-condition {
  font-size: 12px;
  opacity: 0.8;
}

.coupon-date {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

/* 底部导航栏样式 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  padding: 10px 0;
  border-top: 1px solid #eee;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--inactive-color);
  text-decoration: none;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 5px;
}

.nav-item.active {
  color: var(--primary-color);
}

/* 页面内容区域，考虑底部导航栏 */
.page-content {
  padding-bottom: 60px;
} 