* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    Arial, "Microsoft YaHei", sans-serif;
  background: #fff7e6;
  color: #3b2700;
  min-height: 100vh;
  margin: 0;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 10px 20px;
}

/* 顶部 Banner（固定 + 无圆角 + 底部分层） */
.hero {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #ffb000 0%, #ff8c00 40%, #ff6a00 100%);
  border-radius: 0;
  padding: 8px 12px 8px;
  margin: 0 -10px 8px;
  color: #3b2700;
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.55);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 700;
  color: #ff6a00;
  letter-spacing: 0.06em;
  max-width: 100%;
}

.hero-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sub {
  font-size: 10px;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-date {
  font-size: 10px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background-color: rgba(255,255,255,0.9);
  color: #ff6a00;
}

.hero-btn .icon {
  font-size: 13px;
  line-height: 1;
}

.hero-btn .label {
  font-size: 11px;
}

.hero-btn:active {
  opacity: 0.85;
  transform: scale(0.97);
}

/* 轮播区域：我们自己控制 scrollLeft */
.carousel-wrapper {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
  background: transparent;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
}

.food-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  min-height: 390px;
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-wrapper.no-image::before {
  content: "图片加载失败";
  font-size: 13px;
  color: #999;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dish-name {
  font-size: 18px;
  font-weight: 700;
}

.dish-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #c73700;
}

.dish-price-unit {
  font-size: 13px;
  opacity: 0.95;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.badge-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe3c2;
  color: #ff6a00;
  font-size: 11px;
}

/* 底部分段倒计时条 */
.timeline {
  margin: 6px 4px 4px;
  display: flex;
  gap: 4px;
}

.timeline-segment {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #f1d6ac;
  overflow: hidden;
}

.timeline-inner {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffcf4a, #ff8c00);
  transition: width 0.1s linear;
}

.menu-list-section {
  margin-top: 10px;
}

.menu-list-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.menu-list-count {
  font-size: 12px;
  color: #a16207;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.menu-list-thumb {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  flex-shrink: 0;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaa;
}

.menu-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-list-main {
  flex: 1;
  min-width: 0;
}

.menu-list-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.menu-list-tags {
  font-size: 11px;
  color: #a16207;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.menu-list-price {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c73700;
  white-space: nowrap;
}

.empty-tip {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin: 16px 0 0;
}
