/* 好好吃饭新版样板：在自家版 app.css 的基础上加的部分。手机单列，iPad 和电脑放宽成多列。 */
.hc main { max-width: 1180px; }
.welcome { max-width: 520px; margin: 8vh auto 0; text-align: center; }
.welcome h1 { font-size: 40px; margin: 0; color: var(--brand); letter-spacing: .04em; }
.welcome .lead { font-size: 19px; margin: 10px 0 26px; }
.how { text-align: left; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 12px; }
.how li { counter-increment: how; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.how li::before { content: counter(how); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.btn.big { width: 100%; min-height: 58px; font-size: 19px; }

.setup { max-width: 560px; margin: 0 auto; padding-bottom: 96px; }
.setup h1 { font-size: 26px; margin: 14px 0 6px; }
.setup h3 { margin: 22px 0 8px; font-size: 15px; color: var(--mute); font-weight: 600; }
.setup.js .step { display: none; }
.setup.js .step.on { display: block; }
.dots { display: flex; gap: 6px; margin-top: 6px; }
.dots i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.dots i.on { background: var(--brand); }
.count { display: grid; grid-template-columns: 1fr 52px 56px 52px; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.count input[type=number] { text-align: center; font-size: 22px; font-weight: 700; border: 0; background: none; padding: 0; min-height: 52px; -moz-appearance: textfield; }
.count input::-webkit-inner-spin-button { display: none; }
.pm { height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 26px; line-height: 1; color: var(--brand); }
.pm:active { background: var(--brand); color: var(--brand-ink); }
.setup .check { display: flex; grid-template-columns: none; align-items: center; gap: 12px; margin-top: 18px; font-size: 16px; color: var(--ink); }
.setup .check input { width: 26px; height: 26px; accent-color: var(--brand); flex: none; }
.setup .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.setup .chips label { display: block; }
.setup .chips input { position: absolute; opacity: 0; pointer-events: none; }
.setup .chips span { min-height: 50px; padding: 8px 18px; font-size: 17px; background: var(--card); }
.stepnav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); }
.stepnav .btn { min-height: 54px; font-size: 18px; flex: 1; max-width: 270px; }
.stepnav .btn.ghost { flex: 0 0 110px; }

.weekhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.weekhead h1 { margin: 6px 0; font-size: 24px; }
.profile { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.profile .tag { font-size: 13px; padding: 3px 10px; }
.week { display: grid; gap: 14px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; scroll-margin-top: 70px; }
.day.today { border-color: var(--brand); }
.day h2 { margin: 0 0 4px; font-size: 19px; }
.day h2 small { font-weight: 400; }
.meal h3 { margin: 10px 0 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.meal .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.mcard a { display: block; color: var(--ink); }
.mcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--tag); }
.mcard b { display: block; margin-top: 5px; font-size: 15px; line-height: 1.3; font-weight: 600; }
.mcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mcard .meta .link { color: var(--brand); font-size: 13px; padding: 6px 0 6px 8px; background: none; border: 0; }
.dishtop { display: flex; justify-content: space-between; align-items: center; }
.card.mine { border-color: var(--ok); background: var(--ok-bg); }
.card.mine h2 { color: var(--ok); }
@media (min-width: 820px) {
  .week { grid-template-columns: 1fr 1fr; }
  .dishgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
  .dishgrid .left { position: sticky; top: 70px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .dishgrid .cookbtn { margin-top: 0; }
  .steps li { font-size: 18px; }
}
@media (min-width: 1100px) { .week { grid-template-columns: 1fr 1fr 1fr; } }
.hc [hidden] { display: none !important; }
