/* 一榫云 · 今天吃什么 */
:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --text: #1a1a1a;
  --muted: #8c8c8c;
  --accent: #fa8919;
  --accent-hover: #e67a00;
  --accent-soft: #fff4e8;
  --border: #ebebeb;
  --warn: #faad14;
  --radius-md: 12px;
  --font-root: 16px;
}
html { font-size: var(--font-root); }
html[data-text-size="sm"] { --font-root: 14px; }
html[data-text-size="lg"] { --font-root: 18px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.site-header { border-bottom: 1px solid var(--border); padding: .75rem 0; position: sticky; top: 0; background: rgba(255,255,255,.92); z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.logo { text-decoration: none; color: var(--text); font-weight: 700; }
.nav-main { display: flex; flex-wrap: wrap; gap: .35rem .65rem; justify-content: flex-end; }
.nav-main a { color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-main a:hover { color: var(--accent); }
.text-size-control {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-left: .15rem;
  padding-left: .45rem;
  border-left: 1px solid var(--border);
}
.text-size-label {
  color: var(--muted);
  font-size: .75rem;
  margin-right: .1rem;
  white-space: nowrap;
}
.text-size-btn {
  min-width: 1.65rem;
  padding: .2rem .4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: .75rem;
  line-height: 1.2;
  cursor: pointer;
}
.text-size-btn:hover { border-color: var(--accent); color: var(--accent); }
.text-size-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.site-main { padding: 1.25rem 0 2.5rem; min-height: 50vh; }
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; background: var(--bg-subtle); font-size: .875rem; }
.footer-product-current .footer-product-link { font-weight: 700; color: var(--accent); }
.footer-product, .footer-site-url, .footer-operator, .footer-icp-line, .footer-official, .footer-contact, .footer-abuse, .footer-note { margin: .25rem 0; }
.footer-note { color: var(--muted); }
h1 { font-size: 1.75rem; margin: 0 0 .75rem; }
h2 { font-size: 1.25rem; margin: 1.25rem 0 .5rem; }
h3 { font-size: 1.05rem; }
.hint, .muted { color: var(--muted); font-size: .9rem; }
.prose-list { padding-left: 1.25rem; }
.card, .box-muted { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin: 1rem 0; }
.box-muted { background: var(--bg-subtle); }
.btn { display: inline-block; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; cursor: pointer; font-size: .95rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-lg { padding: .75rem 1.25rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin: 0 auto 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1rem 0; }
.feature-grid, .recipe-grid, .stats-grid, .plan-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
.plan-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: .5rem 0; }
.plan-form { margin-top: .75rem; }
.plan-form-inline + .plan-form-inline { margin-top: .5rem; }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; margin: .5rem 0; }
.alert { padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.alert-ok { background: #f6ffed; border: 1px solid #b7eb8f; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; }
.alert-warn { background: #fffbe6; border: 1px solid #ffe58f; }
.decide-form label { display: block; margin-bottom: .75rem; }
.decide-form select, .decide-form input[type=text], .decide-form input[type=email], .decide-form input[type=password], .decide-form input[type=number], .decide-form input[type=url] { display: block; width: 100%; margin-top: .35rem; padding: .5rem; border: 1px solid var(--border); border-radius: 8px; }
.decide-result { margin-top: 1.5rem; }
.decide-reason { font-size: 1.05rem; }
.stat-card { text-align: center; }
.stat-label { color: var(--muted); font-size: .85rem; margin: 0; }
.stat-num { font-size: 1.75rem; font-weight: 700; margin: .25rem 0; }
.stat-num-text { font-size: 1rem; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-simple th, .table-simple td { border: 1px solid var(--border); padding: .4rem .5rem; text-align: left; }
.quota-banner { margin: .5rem 0 0; padding: .5rem; background: var(--accent-soft); border-radius: 8px; }
.pricing-table { width: 100%; margin: 1rem 0; }
.tutorial-section { margin: 1.5rem 0; }
.hero-subtitle { color: var(--muted); font-size: 1rem; margin: -.25rem 0 .75rem; }
.ai-explain-form { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pantry-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem 1rem; margin: 1rem 0; }
.pantry-fieldset legend { padding: 0 .35rem; color: var(--muted); font-size: .9rem; }
.gear-recommend { border-color: var(--accent-soft); background: linear-gradient(180deg, #fffaf5 0%, #fff 100%); }
.gear-reason { margin: 0 0 .75rem; }
.gear-name { margin: 0 0 .5rem; }
.review-recipe { margin-bottom: 1.25rem; }
.pantry-fieldset-primary { border-color: var(--accent-soft); background: #fffaf5; }
.weather-fieldset, .meta-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem 1rem; margin: 1rem 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.chip-choice { font-size: .9rem; cursor: pointer; }
.chip-btn { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .25rem .65rem; font-size: .85rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.takeout-intro { margin-bottom: .5rem; }
.takeout-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: 0;
  margin: .75rem 0 0;
  list-style: none;
}
@media (min-width: 640px) {
  .takeout-ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .takeout-ref-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.takeout-ref-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .5rem .55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  font-size: .85rem;
  line-height: 1.35;
  min-height: 0;
}
.takeout-rank {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: .75rem;
}
.takeout-title {
  font-weight: 600;
  font-size: .9rem;
  word-break: break-word;
}
.takeout-tag {
  color: var(--muted);
  font-size: .75rem;
}
.takeout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  font-size: .78rem;
  margin-top: .1rem;
}
.takeout-actions a { white-space: nowrap; }
.daily-takeout-compact h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.daily-takeout-compact .takeout-ref-grid { margin-top: .35rem; }
.daily-takeout-compact .takeout-ref-item { padding: .4rem .45rem; }
.decide-actions { margin-top: 1rem; padding: .85rem 1rem; background: var(--bg-subtle); }
.decide-actions .hero-actions { justify-content: flex-start; margin: .5rem 0 0; }
.decide-actions form { margin: 0; }
.decide-form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.decide-form-actions .btn { flex: 1 1 10rem; }
.btn-shopping { background: #fff4e8; border: 2px solid var(--accent, #fa8919); color: #b45309; font-weight: 600; }
.btn-shopping:hover { background: #ffe8cc; }
.btn-shopping-highlight { box-shadow: 0 0 0 3px rgba(250, 137, 25, .35); animation: shopping-pulse 1.5s ease-in-out 3; }
@keyframes shopping-pulse { 50% { box-shadow: 0 0 0 6px rgba(250, 137, 25, .2); } }
.decide-flow-hint { margin: .75rem 0 1rem; }
.shopping-panel { border-color: #ffe0b8; background: linear-gradient(180deg, #fff9f0 0%, #fff 100%); }
.shopping-buy-list { font-weight: 500; }
.extras-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem 1rem; margin: 1rem 0; background: #f9fcff; }
.meal-extras { background: linear-gradient(180deg, #f6fbff 0%, #fff 100%); }
.extras-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.extras-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.extras-list li:last-child { border-bottom: 0; }
.extras-steps { margin-top: .35rem; }
