/* ===== 全局变量 ===== */
:root {
  --green: #4a8b5c;
  --green-dark: #3d7a4e;
  --gold: #d4a82a;
  --gold-dark: #b8941a;
  --brown: #5a3e2b;
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #eeeeee;
  --radius: 12px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 50px;
  padding-bottom: 60px;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--green);
  height: 50px;
  display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.header-logo { font-size: 20px; }
.header-title { color: var(--white); font-size: 17px; font-weight: 600; }
.header-menu { color: var(--white); font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* ===== 侧边菜单 ===== */
.menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
}
.menu-overlay.show { display: block; }
.menu-drawer {
  position: fixed; top: 0; left: -260px; width: 260px; height: 100%;
  background: var(--white); z-index: 201;
  transition: left 0.3s ease;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.menu-drawer.show { left: 0; }
.menu-header {
  background: var(--green); color: var(--white);
  padding: 24px 20px; font-size: 18px; font-weight: 600;
}
.menu-items { padding: 8px 0; }
.menu-item {
  display: block; padding: 14px 20px;
  font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.menu-item:active { background: var(--bg); }
.menu-item.active { color: var(--green); font-weight: 600; }

/* ===== Banner ===== */
.banner {
  position: relative; width: 100%; height: 200px;
  overflow: hidden;
}
.banner-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-content { text-align: center; color: var(--white); padding: 0 20px; }
.banner-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.banner-content p { font-size: 15px; margin-bottom: 16px; opacity: 0.9; }
.banner-btn {
  display: inline-block; padding: 8px 24px;
  background: var(--white); color: var(--green);
  border-radius: 20px; font-size: 14px; font-weight: 600;
  transition: transform 0.2s;
}
.banner-btn:active { transform: scale(0.96); }
.btn-dark { background: var(--text); color: var(--white); }
.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.3s;
}
.dot.active { background: var(--white); }

/* ===== 快捷入口 ===== */
.quick-nav {
  display: flex; justify-content: space-around;
  background: var(--white);
  padding: 16px 8px;
  margin: -20px 12px 12px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative; z-index: 10;
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quick-icon { font-size: 28px; }
.quick-label { font-size: 12px; color: var(--text-light); }

/* ===== 数据统计 ===== */
.stats {
  display: flex; justify-content: space-around;
  background: var(--white);
  margin: 12px; padding: 16px 8px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-light); }

/* ===== 区块 ===== */
.section { padding: 16px 12px; }
.section-alt { background: var(--white); }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-header h2 { font-size: 17px; font-weight: 600; }
.section-more { font-size: 13px; color: var(--text-light); }

/* ===== 卡片列表 ===== */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-img {
  height: 140px; display: flex; align-items: center; justify-content: center;
}
.card-img-text { color: var(--white); font-size: 20px; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.card-body { padding: 12px; }
.card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-body p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-price { font-size: 18px; font-weight: 700; color: var(--gold-dark); }
.card-price span { font-size: 12px; font-weight: 400; color: var(--text-light); }
.card-btn {
  padding: 6px 16px; background: var(--green); color: var(--white);
  border-radius: 16px; font-size: 13px;
}

/* ===== 美食列表 ===== */
.food-list { display: flex; flex-direction: column; gap: 10px; }
.food-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.food-img {
  width: 64px; height: 64px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.food-info { flex: 1; }
.food-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.food-info p { font-size: 12px; color: var(--text-light); }
.food-price { font-size: 16px; font-weight: 700; color: var(--gold-dark); }

/* ===== 底部 ===== */
.footer {
  background: var(--brown); color: rgba(255,255,255,0.8);
  padding: 24px 16px; margin-top: 20px;
}
.footer-inner { max-width: 420px; margin: 0 auto; }
.footer-brand { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.footer-desc { font-size: 13px; margin-bottom: 12px; }
.footer-contact p { font-size: 13px; margin-bottom: 4px; }
.footer-links { display: flex; gap: 16px; margin: 16px 0; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-links a:active { color: var(--white); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* ===== 底部导航栏 ===== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  height: 56px;
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 4px 0;
  transition: color 0.2s;
}
.tabbar-icon { font-size: 22px; }
.tabbar-label { font-size: 10px; }
.tabbar-item.active { color: var(--green); font-weight: 600; }

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .banner { height: 320px; }
  .quick-nav { max-width: 680px; margin: -30px auto 16px; }
  .stats { max-width: 680px; margin: 0 auto 16px; }
  .section { max-width: 680px; margin: 0 auto; }
  .card-list { flex-direction: row; flex-wrap: wrap; }
  .card { width: calc(50% - 6px); }
}
