/* 移动端基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #e8e8e8;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

/* 移动端固定宽度容器 */
.app-container {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: #f5f5f5;
  padding-bottom: 10px;
}

/* 页面头部 */
.page-header {
  background-color: white;
  padding: 15px 15px 20px;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.header-info > div {
  width: 100%;
}

.restaurant-name {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.restaurant-address {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 5px;
}

/* 选择器组 */
.selector-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.selector-group label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.date-selector,
.meal-type-selector {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
}

.date-selector:focus,
.meal-type-selector:focus {
  border-color: #667eea;
}

/* 查询按钮 */
.query-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.query-btn:active {
  transform: scale(0.98);
}

.query-btn:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 当前时间信息 */
.current-time-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.current-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.menu-info {
  font-size: 14px;
  color: #667eea;
  font-weight: bold;
  background-color: #f0f3ff;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #667eea;
}

.menu-info span {
  color: #764ba2;
}

.current-date {
  font-size: 14px;
  font-weight: 500;
}

/* 中餐标题 */
.meal-title {
  background-color: white;
  padding: 15px;
  margin: 10px 15px 0;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.meal-title-text {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.loading-text {
  font-size: 14px;
  color: #999;
}

/* 套餐容器 */
.combo-container {
  padding: 10px 15px;
}

.combo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 套餐项 */
.combo-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.combo-item:active {
  transform: scale(0.98);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* 套餐头部 */
.combo-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.combo-name {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0;
}

.combo-id {
  font-size: 12px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 6px;
  align-self: flex-start;
}

.combo-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff6b35;
}

/* 套餐菜品 */
.combo-dishes {
  margin-bottom: 10px;
}

.dish-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7.5px 0;
  border-bottom: 0.5px solid #f5f5f5;
}

.dish-item:last-child {
  border-bottom: none;
}

.dish-name {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.dish-category {
  font-size: 12px;
  color: #999;
  background-color: #f8f8f8;
  padding: 2px 6px;
  border-radius: 6px;
}

/* 下单按钮 */
.order-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12.5px;
  padding: 10px 0;
  text-align: center;
  margin-top: 5px;
}

.order-btn-text {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* 空状态 */
.empty-combo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.empty-text {
  font-size: 14px;
  color: #999;
}

/* 非餐段时间提示 */
.non-meal-time {
  background-color: #fff9f0;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
  border: 1px solid #ffd591;
}

.non-meal-text {
  font-size: 14px;
  color: #d46b08;
  text-align: center;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.meal-time-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.meal-time-info span {
  font-size: 13px;
  color: #8c7567;
  background-color: white;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0.5px solid #ffd591;
}

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

