/* 剩菜盲盒 v2 — 专业版：深色影像 hero + 克制配色 */
:root {
  --pri: #e64533;
  --pri-d: #c93324;
  --ink: #1f1b16;
  --mut: #7a736a;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #ece5d9;
  --ok: #188a4c;
  --gold: #c9a24b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.65; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
a { color: var(--pri); text-decoration: none; }

/* 顶栏 */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: 2px; display: flex; align-items: center; gap: 7px; flex-shrink: 0; white-space: nowrap; }
.topbar nav { white-space: nowrap; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; }
.logo i { font-style: normal; color: var(--mut); font-weight: 400; }
.logo small { font-size: 10px; letter-spacing: 2px; color: var(--mut); font-weight: 600; }
.topbar nav a { margin-left: 16px; font-size: 14px; color: var(--mut); }
.topbar nav a.on { color: var(--pri); font-weight: 700; }


.sec { font-size: 18px; margin: 30px 0 14px; font-weight: 800; letter-spacing: .5px; }
.sec small { font-weight: 400; color: var(--mut); font-size: 13px; margin-left: 8px; }
.page-title { font-size: 22px; margin: 20px 0 8px; font-weight: 800; }
.back { display: inline-block; margin: 16px 0 4px; font-size: 14px; }

.grid { display: grid; gap: 14px; }
.card { display: block; background: var(--card); border-radius: 10px; border: 1px solid var(--line);
  padding: 16px; color: var(--ink); box-shadow: 0 1px 3px rgba(31,27,22,.05);
  transition: transform .15s ease, box-shadow .15s ease; }
.card:active { transform: scale(.99); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 12px; }
.detail-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 16px; }
.card h3 { margin: 8px 0 4px; font-size: 17px; font-weight: 700; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.shop { background: #f3efe8; color: #6b6259; padding: 3px 12px; border-radius: 20px; font-weight: 600; }
.left { color: var(--ok); font-weight: 700; }
.left.low { color: var(--pri); }
.desc { color: var(--mut); font-size: 14px; margin: 0 0 10px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.price-row .now { font-size: 26px; font-weight: 800; color: var(--pri); letter-spacing: .5px; }
.price-row.big .now { font-size: 34px; }
.price-row .was { color: var(--mut); font-size: 14px; text-decoration: line-through; }
.save { font-size: 12px; background: #fdecea; color: var(--pri); padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.meta { font-size: 13px; color: var(--mut); margin: 10px 0; line-height: 1.9; }

.btn { display: inline-block; background: var(--pri); color: #fff !important; border: 0;
  border-radius: 8px; padding: 11px 26px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; }
.btn:active { background: var(--pri-d); }
.btn.big { display: block; width: 100%; padding: 14px; margin-top: 12px; }
.btn.ghost { background: #fff; color: var(--pri) !important; border: 1px solid var(--pri); }
.btn.sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }

.detail { background: var(--card); border-radius: 10px; border: 1px solid var(--line); padding: 22px; margin: 12px 0 22px;
  box-shadow: 0 1px 3px rgba(31,27,22,.05); }
.detail h1 { font-size: 22px; margin: 8px 0 4px; }
.detail h2 { font-size: 16px; margin: 20px 0 10px; }
.info { list-style: none; padding: 0; margin: 14px 0; font-size: 14px; }
.info li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }

.form { display: grid; gap: 14px; margin: 16px 0; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select { font-size: 16px; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; font-family: inherit; }
.form.inline { grid-template-columns: 1fr auto; align-items: end; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--mut); }

.alert { background: #fdecea; color: #a93226; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.okmsg { background: #e6f7ec; color: #14703c; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.empty { text-align: center; color: var(--mut); padding: 44px 16px; font-size: 15px; }
.empty .btn { margin-top: 14px; }

.ok { text-align: center; padding: 26px 0; }
.ok-icon { font-size: 28px; font-weight: 700; color: var(--ok); width: 58px; height: 58px;
  line-height: 54px; margin: 0 auto; border: 2px solid var(--ok); border-radius: 50%; background: #eef7f1; }
.ok h1 { font-size: 22px; }
.code { font-size: 52px; font-weight: 900; letter-spacing: 10px; color: var(--pri);
  background: #fff; border: 2px dashed var(--pri); border-radius: 16px;
  padding: 18px 8px 18px 18px; margin: 16px 0; }
.code-sm { font-family: ui-monospace, monospace; font-weight: 700; color: var(--pri); }
.ok .info { text-align: left; background: #fff; border-radius: 12px; padding: 6px 14px; }

.join-cta { background: #2a2521; color: #fff; border-radius: 12px;
  padding: 26px 22px; margin: 32px 0; }
.join-cta h2 { margin: 0 0 8px; font-size: 20px; }
.join-cta p { color: rgba(255,255,255,.78); font-size: 14px; margin-bottom: 16px; }
.join-cta .btn { background: var(--pri); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card);
  border-radius: 12px; overflow: hidden; margin-bottom: 8px; box-shadow: 0 2px 12px rgba(31,27,22,.06); }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f5f1e8; font-size: 12px; color: var(--mut); }
.dim { color: var(--mut); font-size: 12px; }
.st { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #eee; white-space: nowrap; }
.st.reserved, .st.active { background: #e6f7ec; color: #14703c; }
.st.picked_up { background: #e8eefc; color: #2b4fc4; }
.st.cancelled, .st.disabled { background: #f1ece4; color: var(--mut); }
.st.soldout, .st.expired { background: #fdecea; color: #a93226; }
.menu-item.soldout .menu-thumb { filter: grayscale(55%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--card); border-radius: 12px; padding: 14px 6px; text-align: center;
  box-shadow: 0 2px 12px rgba(31,27,22,.06); }
.stat b { display: block; font-size: 20px; color: var(--pri); }
.stat span { font-size: 12px; color: var(--mut); }

.foot { margin-top: 44px; padding: 20px 0 32px; color: var(--mut); font-size: 12px; text-align: center;
  border-top: 1px solid var(--line); }
.foot .credits { font-size: 11px; color: #a89f93; }
.foot .admin-link { font-size: 11px; color: #a89f93; text-decoration: none; }

.badge { font-size: 12px; background: #fdecea; color: var(--pri-d); padding: 3px 10px;
  border-radius: 12px; font-weight: 700; white-space: nowrap; }
.codes { display: grid; gap: 8px; margin: 14px 0; }
.coderow { display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 2px dashed var(--pri); border-radius: 12px; padding: 10px 14px; }
.coderow.sm { border-width: 1px; padding: 8px 12px; font-size: 14px; margin: 6px 0; }
.code-sm.big { font-size: 22px; }
ul.days { list-style: none; display: flex; gap: 6px; padding: 0; margin: 10px 0; flex-wrap: wrap; }
ul.days li { background: #fdecea; color: var(--pri-d); font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 10px; }

@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Taste redesign, preview only, scoped pages: home / box detail / join ---- */
/* Direction: page-is-the-object (seed 1928253715). The blind box's pickup ticket
   is the object: menu-sheet list, ticket detail, itinerary slip. Brand kept:
   ground #f7f5f1, ink #1f1b16, accent red #e64533, Noto Serif SC display. */
.hero-card { background: #fff; margin: 24px 0 8px; }
.hero-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hero-body { padding: 28px 24px 32px; }
.hero-body h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 48px); line-height: 1.15; letter-spacing: 0; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 900; }
.hero-body p { margin: 0 0 20px; font-size: 16px; color: #1f1b16; line-height: 1.65; }
.hero-card .btn { box-shadow: none; }
.sec-note { font-weight: 400; color: #7a736a; font-size: 14px; margin-left: 8px; }
.menu-sheet { background: #fff; padding: 8px 24px 24px; margin: 12px 0 32px; }
.menu-item { display: grid; grid-template-columns: 96px 1fr 150px; gap: 20px; padding: 24px 0; color: #1f1b16; text-decoration: none; }
.menu-item + .menu-item { border-top: 4px dotted #ece5d9; }
.menu-thumb { width: 96px; height: 96px; object-fit: cover; display: block; }
.menu-main h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.35; }
.menu-main .desc { font-size: 16px; color: #1f1b16; margin: 0 0 10px; line-height: 1.6; }
.menu-meta { font-size: 14px; color: #7a736a; margin: 0; line-height: 1.7; }
.menu-price { text-align: right; display: grid; gap: 6px; align-content: start; }
.menu-price .now { font-size: 28px; font-weight: 800; color: #e64533; }
.menu-price .was { color: #7a736a; font-size: 14px; }
.menu-price .save, .menu-price .menu-note { font-size: 14px; color: #1f1b16; background: none; padding: 0; }
.ticket-stub .save { background: none; padding: 0; }
.menu-price .left { font-size: 14px; color: #188a4c; font-weight: 700; }
.menu-price .left.low { color: #e64533; }
.menu-price .btn { margin-top: 8px; box-shadow: none; }
.ticket { background: #fff; margin: 12px 0 32px; }
.ticket-main { padding: 24px; }
.ticket-shop { font-size: 16px; color: #7a736a; margin: 0 0 8px; }
.ticket h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 900; }
.ticket .desc { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.days-plain { font-size: 16px; font-weight: 700; color: #1f1b16; margin: 0 0 16px; line-height: 1.7; }
.ticket-info { display: grid; gap: 16px; margin: 20px 0 8px; }
.ticket-info > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; background: #f7f5f1; padding: 14px 16px; }
.ticket-label { color: #7a736a; font-size: 14px; }
.ticket-stub { border-top: 4px dotted #ece5d9; padding: 24px; }
.ticket-stub .price-row.big .now { font-size: 40px; }
.ticket-form .btn { box-shadow: none; }
.slip { background: #fff; padding: 24px; margin: 12px 0 32px; }
.slip h2 { font-size: 22px; margin: 28px 0 12px; }
.slip-step { background: #f7f5f1; padding: 20px 22px; margin: 0 0 16px; }
.slip-step h3 { margin: 0 0 8px; font-size: 20px; }
.slip-step p { margin: 0; font-size: 16px; line-height: 1.65; }
.slip .btn { box-shadow: none; }
.join-cta { background: #2a2521; color: #fff; padding: 28px 24px; margin: 32px 0; }
.join-cta h2 { margin: 0 0 10px; font-size: 24px; }
.join-cta p { color: rgba(255,255,255,.85); font-size: 16px; margin: 0 0 18px; line-height: 1.65; }
.join-cta .btn { box-shadow: none; }
/* Motion layer deferred (see REPORT.md): this site ships no JavaScript, so a
   CSS load animation would hide content at first paint and in screenshots.
   Hover/focus feedback below is the only motion in this preview. */
.menu-item:hover, .menu-item:focus-visible { background: #f7f5f1; }
.btn:hover, .btn:focus-visible { filter: brightness(0.94); }
.btn:focus-visible, .menu-item:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #e64533; outline-offset: 2px; }
@media (max-width: 560px) {
  .hero-body { padding: 22px 18px 26px; }
  .hero-body h1 { font-size: 32px; }
  .menu-sheet { padding: 4px 18px 20px; }
  .menu-item { grid-template-columns: 72px 1fr; }
  .menu-thumb { width: 72px; height: 72px; }
  .menu-price { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; text-align: left; }
  .menu-price .btn { grid-column: 1 / -1; }
  .ticket-main, .ticket-stub, .slip { padding: 18px; }
  .ticket-info > div { grid-template-columns: 72px 1fr; }
}
