* { box-sizing: border-box; }
html, body { margin: 0; }
body.vue-app {
  min-height: 100vh;
  background: #f3f4f6;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #f3f4f6; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; color: #888; font-size: 12px; }
.top-btn, .primary, .ghost, .go {
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.top-btn, .primary { background: #111; color: #fff; }
.top-btn { padding: 8px 14px; font-size: 13px; }
main { width: min(640px, 100%); margin: 0 auto; padding: 14px 14px 40px; }
.search input, .card input, .sheet input, .qty input {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
}
.pills { display: flex; gap: 8px; overflow: auto; padding: 12px 0; }
.pill {
  border: 0;
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
}
.pill.on { background: #111; color: #fff; }
.note { margin: 0 0 12px; color: #666; font-size: 13px; line-height: 1.6; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .list { grid-template-columns: 1fr; } }
.item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}
.item img, .item i {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
}
.item i {
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-style: normal;
  font-weight: 700;
}
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-main b { font-size: 15px; }
.item-main em { color: #888; font-style: normal; font-size: 12px; }
.item-main strong { font-size: 15px; }
.go { align-self: stretch; text-align: center; background: #111; color: #fff; padding: 8px 12px; font-size: 13px; }
.item:disabled { opacity: .45; }
.card, .sheet {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.card { margin-bottom: 12px; }
.card label, .sheet label { display: block; margin: 8px 0; font-size: 13px; color: #666; }
.meta { margin: 0 0 6px; color: #666; font-size: 13px; }
.kami {
  margin: 8px 0;
  padding: 12px;
  background: #f6f7f8;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.primary, .ghost { height: 42px; padding: 0 16px; font-size: 15px; }
.primary { width: 100%; margin-top: 12px; }
.ghost { background: #f3f4f6; color: #111; }
.back { color: #111; font-size: 14px; }
h1 { font-size: 20px; }
.tip { padding: 10px 12px; border-radius: 12px; background: #fff; margin-bottom: 10px; }
.tip.err { color: #b42318; }
.tip.ok { color: #067647; }
.empty { color: #888; text-align: center; }
.hidden { display: none !important; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(640px, 100%);
  border-radius: 18px 18px 0 0;
  z-index: 6;
}
.sheet-hd, .sheet-actions, .qty, .pays { display: flex; align-items: center; gap: 8px; }
.sheet-hd { justify-content: space-between; }
.sheet-hd button { border: 0; background: transparent; }
.sheet-name { font-size: 18px; font-weight: 700; margin: 8px 0; }
.qty { margin: 8px 0 12px; }
.qty button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f3f4f6; font-size: 20px; }
.qty input { text-align: center; }
.price { font-size: 22px; font-weight: 700; }
.price small { font-size: 12px; color: #888; font-weight: 400; }
.pay {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: #f6f7f8;
}
.pay.on { outline: 2px solid #111; }
.pay input { display: none; }
.sheet-actions { margin-top: 8px; }
.sheet-actions .ghost, .sheet-actions .primary { width: auto; flex: 1; margin: 0; }
.detail { font-size: 14px; line-height: 1.6; color: #333; }
.offer { color: #b54708; font-size: 13px; }
