/* 静态兜底样式：由 /public 直接提供，不经过 Next 打包。部分手机 WebView 无法加载 _next/static/css。 */
html, body {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 45%, #ffffff 100%);
  color: #431407;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
*, *::before, *::after { box-sizing: border-box; }

.flex { display: flex; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.col-span-2 { grid-column: span 2 / span 2; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }
.shrink-0 { flex-shrink: 0; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-none { line-height: 1; }
.text-center { text-align: center; }
.text-muted, .text-slate-400 { color: #9a8f85; }
.text-slate-700 { color: #431407; }
.text-white { color: #fff; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid rgba(249, 115, 22, 0.18); }
.border-slate-200 { border-color: #e7e5e4; }
.bg-white { background: #fff; }

.page-title { font-size: 1.375rem; font-weight: 700; line-height: 1.25; color: #431407; }
.section-title, .section-heading { font-size: 14px; font-weight: 700; color: #431407; margin-bottom: 0.75rem; }
.section-desc { font-size: 13px; line-height: 1.625; color: #9a8f85; margin-top: 0.25rem; }

.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 1rem; padding: 0.75rem 1rem;
  background: #fff; border: 1px solid rgba(249, 115, 22, 0.1);
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.1);
}

.card-hero {
  border-radius: 24px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 45%, #fdba74 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.35);
  overflow: hidden;
  position: relative;
}

.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem; padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.95); color: #f97316;
}

.btn-primary, .bg-blue-600 {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem; padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  background: #f97316;
}

.glass-card {
  border-radius: 20px; background: rgba(255,255,255,0.9);
  border: 1px solid rgba(249,115,22,0.1);
  box-shadow: 0 4px 24px rgba(249,115,22,0.1);
}

.bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.bento-tile, .bento-tile-wide {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 20px; padding: 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(249,115,22,0.1);
  box-shadow: 0 4px 24px rgba(249,115,22,0.1);
}
.bento-tile-wide { grid-column: span 2 / span 2; }

.chip {
  border-radius: 9999px; padding: 0.25rem 0.75rem; font-size: 12px;
  background: #fff7ed; color: #9a8f85; border: none;
}
.chip-active { background: #f97316; color: #fff; }

#huiji-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-top: 1px solid rgba(249,115,22,0.1);
  background: #fff;
  box-shadow: 0 -4px 24px rgba(249,115,22,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.menu-list {
  border-radius: 20px; border: 1px solid rgba(249,115,22,0.1);
  background: rgba(255,255,255,0.9); overflow: hidden;
}
.menu-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem;
}

.input-field {
  width: 100%; border-radius: 1rem; border: 1px solid rgba(249,115,22,0.18);
  padding: 0.75rem 1rem; font-size: 16px; background: #fff; color: #431407;
}

#huiji-build-stamp {
  position: fixed; right: 8px; bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
  z-index: 60; font-size: 10px; padding: 4px 6px; border-radius: 8px;
  background: rgba(0,0,0,0.55); color: #fff; font-family: monospace;
}
