/* =========================================================
   美中站 · 前台点单
   视觉母题：一辆改成超市的大巴 —— 车漆红、车身白、
   车窗货架、站牌、车票。移动端优先。
   ========================================================= */

body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(36, 27, 23, 0.045) 1px, transparent 1.2px);
  background-size: 20px 20px;
}

/* ---------- 顶部线路条 ---------- */
.route-strip {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.route-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-block: 9px;
}

.route-strip__line,
.route-strip__hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.route-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(243, 183, 60, 0.16);
}

.route-strip__slash,
.route-strip__sep {
  opacity: 0.32;
}

/* ---------- 品牌头 ---------- */
.masthead {
  position: relative;
  background: var(--red);
  color: #fff;
}

.masthead::after {
  content: "";
  position: absolute;
  left: clamp(14px, 4vw, 32px);
  right: clamp(14px, 4vw, 32px);
  bottom: 5px;
  border-bottom: 1.5px dashed rgba(255, 253, 248, 0.24);
  pointer-events: none;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 16px 21px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 3px 0 rgba(124, 21, 26, 0.35);
  transform: rotate(-3deg);
}

.brand__mark img {
  width: 100%;
  height: 100%;
}

.brand__words {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.open-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe0ac;
  box-shadow: 0 0 0 3px rgba(143, 224, 172, 0.16);
}

.open-pill.is-closed i {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(243, 183, 60, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 22px;
  align-items: center;
  padding-block: clamp(22px, 4vw, 46px);
}

.hero__art {
  position: relative;
  order: 1;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px) clamp(8px, 2vw, 18px) 12px;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  background: #fcf4e6;
  box-shadow: 9px 9px 0 rgba(215, 38, 45, 0.16);
  isolation: isolate;
}

.hero__art::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 24px;
  right: 24px;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(36, 27, 23, 0.2) 55%, transparent 55%);
  background-size: 14px 2px;
  opacity: 0.7;
}

/* 站台边缘：红白相间的路缘石，把插画落在地面上 */
.hero__art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 9px;
  border-top: 1.5px solid var(--ink);
  background: repeating-linear-gradient(
    135deg,
    var(--red) 0 10px,
    var(--paper) 10px 20px
  );
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  top: clamp(24px, 5vw, 44px);
  right: 8%;
  width: clamp(54px, 10vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.88;
}

.hero__bus {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin-top: 4px;
  filter: drop-shadow(0 12px 14px rgba(36, 27, 23, 0.08));
  animation: bus-arrive 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes bus-arrive {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__copy {
  order: 2;
  min-width: 0;
}

.hero__stop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 17px;
}

.hero__stop-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 7px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 rgba(215, 38, 45, 0.24);
}

.hero__stop-sign i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(243, 183, 60, 0.18);
}

.hero__stop-note {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(38px, 7.4vw, 68px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero__lede {
  max-width: 31em;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 26px;
}

.hero__cta {
  min-height: 54px;
  padding-inline: 30px;
  font-size: 16px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.hero__facts span {
  padding-inline: 11px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
}

.hero__facts span:first-child {
  padding-left: 0;
  border-left: 0;
}

/* ---------- 分类 + 搜索 ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 237, 221, 0.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.toolbar__inner {
  padding-top: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(36, 27, 23, 0.07);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--red);
  box-shadow:
    0 0 0 3px rgba(215, 38, 45, 0.12),
    3px 3px 0 rgba(36, 27, 23, 0.07);
}

.search > svg {
  flex: none;
  color: var(--ink-soft);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.search input::placeholder {
  color: var(--ink-faint);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
}

.stops {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 13px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.stops::-webkit-scrollbar {
  display: none;
}

.stop-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stop-chip__emoji {
  font-size: 16px;
  line-height: 1;
}

.stop-chip__dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.65;
}

.stop-chip.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 0 var(--red-deep);
}

.stop-chip.is-active .stop-chip__dot {
  border-color: var(--amber);
  background: var(--amber);
  opacity: 1;
}

/* ---------- 货架 ---------- */
.shelf {
  padding-block: clamp(24px, 4vw, 40px) clamp(30px, 5vw, 54px);
  scroll-margin-top: 120px;
}

.shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.shelf h2 {
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.shelf__sub {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.shelf__count {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 7px 7px 11px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: rgba(215, 38, 45, 0.42);
  box-shadow: 0 8px 20px -14px rgba(36, 27, 23, 0.3);
}

.product-card.is-picked {
  border-color: var(--red);
}

.product-window {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.3 / 1;
  overflow: hidden;
  border: 1px solid rgba(36, 27, 23, 0.09);
  border-radius: 12px;
  background: #fbf1e0;
  box-shadow: inset 0 0 0 1px rgba(36, 27, 23, 0.03);
}

.product-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.32) 0 21%,
      transparent 21.5% 57%,
      rgba(255, 255, 255, 0.1) 57.5% 64%,
      transparent 64.5%
    );
  pointer-events: none;
}

/* 车窗下沿的窗台，让照片与 emoji 都像摆在车里 */
.product-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 8px;
  border-top: 1px solid rgba(36, 27, 23, 0.12);
  border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, #f6ead7, #e9d7bd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.product-window img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-emoji {
  font-size: clamp(38px, 10vw, 50px);
  line-height: 1;
  filter: drop-shadow(0 6px 8px rgba(36, 27, 23, 0.1));
  transform: translateY(-2px);
}

.window-latch {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: rgba(36, 27, 23, 0.13);
  transform: translateX(-50%);
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(124, 21, 26, 0.28);
  transform: rotate(-2.5deg);
  transform-origin: 0 0;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 9px 4px 0;
}

.product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.product-unit {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
}

.product-price {
  color: var(--red);
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-price .yen {
  margin-right: 1px;
  font-size: 11px;
  font-weight: 800;
}

.qty-slot {
  flex: none;
}

.add-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 0 var(--red-deep);
  font-size: 22px;
  font-weight: 600;
  line-height: 0;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.add-btn:hover {
  background: var(--red-bright);
}

.add-btn:active {
  transform: scale(0.92);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 0 var(--red-deep);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stepper .qty-num {
  min-width: 17px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* skeleton / empty / error */
.skeleton-card {
  overflow: hidden;
  padding: 7px 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.skeleton-window {
  aspect-ratio: 1.3 / 1;
  border-radius: 12px;
  background: linear-gradient(100deg, #f1e5d3 30%, #faf3e7 45%, #f1e5d3 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-line {
  height: 12px;
  margin-top: 11px;
  border-radius: 6px;
  background: #f1e5d3;
}

.skeleton-line.short {
  width: 55%;
  margin-top: 8px;
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

.shelf-state {
  grid-column: 1 / -1;
  padding: clamp(32px, 6vw, 56px) 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
}

.shelf-state__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  font-size: 28px;
}

.shelf-state h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.shelf-state p {
  max-width: 30em;
  margin: 6px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.shelf-state .btn {
  margin-top: 18px;
}

/* ---------- 三站说明 ---------- */
.service {
  padding-bottom: clamp(46px, 7vw, 78px);
}

.service__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 30px;
  border-top: 2px dashed var(--line-strong);
}

.service__head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.service__head p {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.service__steps {
  display: grid;
  gap: 0;
  margin-top: 26px;
}

.service__step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 26px;
}

.service__step::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 19.5px;
  border-left: 1.5px dashed var(--line-strong);
}

.service__step:last-child {
  padding-bottom: 4px;
}

.service__step:last-child::before {
  display: none;
}

.service__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--red-deep);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 0 var(--red-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service__step > div {
  padding-top: 3px;
}

.service__step h3 {
  font-size: 16px;
  font-weight: 900;
}

.service__step p {
  max-width: 32em;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
  padding-bottom: 74px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.72);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--red);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 253, 248, 0.34) 0 14px,
    transparent 14px 28px
  );
}

.footer__grid {
  display: grid;
  gap: 24px;
  padding-top: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer__brand strong {
  display: block;
  color: var(--paper);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.footer__brand span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.5);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.footer__col h3 {
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer__col p {
  font-size: 13px;
  line-height: 1.9;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px 2px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.46);
  font-size: 11.5px;
}

/* ---------- 购物车条 ---------- */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 28px), 560px);
  padding: 9px 9px 9px 14px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  box-shadow:
    0 16px 36px -14px rgba(124, 21, 26, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  animation: cart-rise 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes cart-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
}

.cart-bar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.14);
}

.cart-bar__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.22;
}

.cart-bar__count {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-bar__hint {
  color: rgba(255, 253, 248, 0.74);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cart-bar__stub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 14px;
  border-left: 1.5px dashed rgba(255, 253, 248, 0.42);
}

.cart-bar__total {
  padding-left: 2px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-bar__cta {
  flex: none;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

/* ---------- 底部抽屉 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(24, 17, 13, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade-in 0.18s ease;
}

.sheet {
  display: flex;
  flex-direction: column;
  width: min(100%, 540px);
  max-height: min(92dvh, 880px);
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.28);
  padding-bottom: var(--safe-bottom);
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.sheet__grip {
  flex: none;
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: var(--line-strong);
}

.sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 6px;
}

.sheet-kicker {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 3px 8px 4px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sheet-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.sheet-head h2 {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.sheet-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
}

.sheet-close:hover {
  background: var(--cream-deep);
}

.sheet-back {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.sheet-back:hover {
  color: var(--ink);
}

/* cart step */
.cart-panel {
  padding-bottom: 20px;
}

.cart-list {
  padding: 8px 20px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.cart-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf1e0;
  font-size: 27px;
}

.cart-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-main {
  min-width: 0;
}

.cart-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-meta {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-subtotal {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stepper--lg {
  min-height: 36px;
  padding: 3px;
}

.stepper--lg button {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.stepper--lg .qty-num {
  min-width: 20px;
  font-size: 13px;
}

.cart-empty {
  padding: 34px 20px 16px;
  text-align: center;
}

.cart-empty .shelf-state__icon {
  margin-bottom: 12px;
}

.cart-empty h3 {
  font-size: 17px;
  font-weight: 900;
}

.cart-empty p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 0;
}

.sheet-foot {
  padding: 16px 20px 20px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.summary-row strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sheet-foot .btn {
  margin-top: 12px;
}

.sheet-note {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

/* checkout step */
.checkout {
  padding: 2px 20px 24px;
}

.method {
  margin-top: 16px;
  padding: 0;
  border: 0;
}

.method legend {
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.method__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.method__card {
  position: relative;
  display: block;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.method__card input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.method__text strong {
  display: block;
  padding-right: 12px;
  font-size: 13.5px;
}

.method__text small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.method__card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.method__card:has(input:checked) {
  border-color: var(--red);
  background: var(--red-tint);
  box-shadow: inset 0 0 0 1px var(--red);
}

.method__card:has(input:checked)::after {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 45, 0.14);
}

.method__card:has(input:focus-visible) {
  outline: 3px solid rgba(215, 38, 45, 0.4);
  outline-offset: 2px;
}

.pay-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--red-dark);
  font-size: 11.5px;
  line-height: 1.6;
}

.pay-note svg {
  flex: none;
  margin-top: 1px;
}

.pay-note strong {
  display: block;
  font-size: 12px;
}

.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
}

.checkout-total strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkout .form-error {
  margin-top: 14px;
}

.checkout-submit {
  margin-top: 14px;
}

/* ---------- 成功车票 ---------- */
.success {
  position: fixed;
  inset: 0;
  z-index: 140;
  overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 16px calc(28px + var(--safe-bottom));
  background: var(--red);
  animation: fade-in 0.25s ease;
}

.success::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 253, 248, 0.13) 1px, transparent 1.2px);
  background-size: 18px 18px;
  pointer-events: none;
}

.success__wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: clamp(6px, 4vh, 42px) auto 0;
  animation: rise-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.ticket {
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgba(60, 10, 12, 0.55);
}

.ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.ticket__top strong {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ticket__body {
  padding: 22px 22px 0;
}

.ticket__stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.ticket__stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.ticket h2 {
  margin-top: 12px;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.ticket__lede {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.ticket__no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
}

.ticket__no-label {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticket__no strong {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.ticket__copy {
  flex: none;
  padding: 5px 9px;
  border: 1px solid rgba(215, 38, 45, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--red-deep);
  font-size: 11px;
  font-weight: 700;
}

.ticket__rows {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: 12.5px;
}

.ticket__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ticket__row dt {
  flex: none;
  color: var(--ink-faint);
}

.ticket__row dd {
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ticket__perf {
  position: relative;
  margin: 18px -22px;
  border-top: 1.5px dashed var(--line-strong);
}

.ticket__perf::before,
.ticket__perf::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
}

.ticket__perf::before {
  left: -11px;
}

.ticket__perf::after {
  right: -11px;
}

.ticket__items {
  display: grid;
  gap: 7px;
  font-size: 12.5px;
}

.ticket__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket__item span:first-child {
  color: var(--ink-soft);
}

.ticket__item span:last-child {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.ticket__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid var(--ink);
  color: var(--ink-soft);
  font-size: 12px;
}

.ticket__total strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ticket__barcode {
  height: 36px;
  margin-top: 16px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 11px,
    var(--ink) 11px 14px,
    transparent 14px 17px
  );
  opacity: 0.55;
}

.ticket__barcode-label {
  margin-top: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-align: center;
}

.ticket__foot {
  display: grid;
  gap: 9px;
  padding: 18px 22px 22px;
}

.ticket__foot .btn {
  width: 100%;
}

.ticket__foot-note {
  color: var(--ink-faint);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 200;
  max-width: min(calc(100vw - 32px), 420px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 12.5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 300;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 359px) {
  .product-price {
    font-size: 16px;
  }

  .add-btn {
    width: 32px;
    height: 32px;
  }

  .stepper button {
    width: 25px;
    height: 25px;
  }

  .stepper .qty-num {
    min-width: 15px;
    font-size: 12px;
  }

  .method__grid {
    grid-template-columns: 1fr;
  }

  .cart-bar__hint {
    display: none;
  }
}

@media (min-width: 640px) {
  .brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .hero__art {
    border-radius: 32px;
  }
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .shelf__head {
    margin-bottom: 20px;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 0.96fr 1.04fr;
    gap: clamp(34px, 5vw, 68px);
  }

  .hero__copy {
    order: 1;
  }

  .hero__art {
    order: 2;
  }

  .hero__lede {
    margin-top: 20px;
  }

  .toolbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-block: 11px;
  }

  .search {
    flex: 0 1 310px;
  }

  .stops {
    flex: 1;
    justify-content: flex-end;
    padding: 0;
  }

  .service__steps {
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 30px;
  }

  .service__steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    border-top: 1.5px dashed var(--line-strong);
  }

  .service__step {
    display: block;
    padding: 0;
  }

  .service__step::before {
    display: none;
  }

  .service__num {
    margin-bottom: 14px;
  }

  .service__step > div {
    padding-top: 0;
  }

  .service__step h3 {
    font-size: 16px;
  }

  .service__step p {
    max-width: 28em;
    font-size: 13px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 0.85fr 0.95fr;
    gap: 30px;
  }

  .footer__bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .overlay {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    max-height: min(88vh, 900px);
    border-radius: 26px;
    padding-bottom: 0;
  }

  .sheet__grip {
    display: none;
  }

  .sheet-head {
    padding-top: 22px;
  }
}

@media (max-width: 420px) {
  .route-strip {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .route-strip__inner {
    gap: 8px;
  }

  .brand__meta-en {
    display: none;
  }

  .masthead__inner {
    padding-block: 14px 19px;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__facts {
    padding-top: 4px;
  }
}

@media (max-width: 320px) {
  .route-strip__hours {
    font-size: 9.5px;
  }

  .brand__name {
    font-size: 25px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .cart-bar__stub {
    gap: 8px;
    padding-left: 10px;
  }

  .cart-bar__total {
    font-size: 17px;
  }

  .cart-bar__cta {
    padding: 10px 11px;
    font-size: 12px;
  }
}
