/* ══════════════════════════════════════════════
   学院烧烤 · 学生端点餐 H5
   ══════════════════════════════════════════════ */

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1c1917;
  --ink2: #7a7068;
  --ink3: #a9a09a;
  --brand: #ff5a1f;
  --brand-2: #ff8a3d;
  --tint: #fff1e8;
  --line: rgba(28, 25, 23, 0.07);
  --line-2: rgba(28, 25, 23, 0.12);
  --dark: #1a120e;
  --dark-2: #241a13;
  --gold: #e8b563;
  --gold-soft: rgba(232, 181, 99, 0.22);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --safe: env(safe-area-inset-bottom, 0px);
  --shadow: 0 6px 24px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 16px 48px rgba(28, 25, 23, 0.14);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #efe9e1;
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body.lock {
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  outline: none;
}

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  /* clip 不会创建滚动容器，顶部栏和左侧分类栏才能正常吸顶 */
  overflow-x: clip;
  transition: background 0.25s ease;
}

@media (min-width: 520px) {
  #app {
    box-shadow: 0 0 60px rgba(28, 25, 23, 0.1);
  }
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ─────────────── 通用 ─────────────── */

.view {
  padding-bottom: calc(150px + var(--safe));
  animation: viewIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 18px 10px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(250, 247, 242, 0));
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.3);
  flex: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 营业状态标：左上角，绿=工作中 / 灰=已打烊 */
.shop-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.shop-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.shop-state.open {
  color: #1a7a4c;
  background: #e6f6ed;
}
.shop-state.open i {
  background: #22a35e;
  box-shadow: 0 0 0 3px rgba(34, 163, 94, 0.16);
}
.shop-state.closed {
  color: #7b746e;
  background: #eeece9;
}
.shop-state.closed i {
  background: #9a938c;
}

/* 打烊提示横幅 */
.closed-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 16px 14px;
  padding: 13px 15px;
  border-radius: var(--r-lg);
  background: #efedea;
  border: 1px solid #e2ddd7;
  color: #5c554f;
}
.closed-banner .cb-ico {
  font-size: 20px;
  opacity: 0.8;
  flex: none;
}
.closed-banner b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #4a443f;
}
.closed-banner small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8b837c;
}

.dining-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.05);
  white-space: nowrap;
}

.dining-pill .chev {
  color: var(--ink3);
  font-size: 10px;
}

/* 活动横幅 */
.banner {
  margin: 2px 16px 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 88% 10%, #2c1a10 0%, #1a120e 62%);
  color: #f2e6d8;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(26, 18, 14, 0.24);
}

.banner::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 181, 99, 0.34), rgba(232, 181, 99, 0) 70%);
}

.banner-txt {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f7e7c8;
}

.banner-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(242, 230, 216, 0.55);
}

.banner-go {
  margin-left: auto;
  position: relative;
  z-index: 1;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c987, var(--gold));
  color: #2a1a0c;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(232, 181, 99, 0.3);
}

/* 美团式点餐：左侧分类 + 右侧菜品 */
.menu-split {
  display: flex;
  align-items: flex-start;
  min-height: 70dvh;
}

.cat-rail {
  position: sticky;
  top: 58px;
  align-self: flex-start;
  width: 92px;
  flex: none;
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  scrollbar-width: none;
  background: #f2eee8;
  padding: 6px 0 16px;
  border-radius: 0 16px 16px 0;
}
.cat-rail::-webkit-scrollbar {
  display: none;
}

.rail-cat {
  position: relative;
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 9px 8px 8px 14px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink2);
  transition: background 0.16s, color 0.16s;
}
.rail-cat span {
  display: block;
  word-break: break-all;
}
.rail-cat i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  color: var(--ink3);
}
.rail-cat.on {
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
}
.rail-cat.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.dish-sections {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 10px;
}
.dish-sec {
  scroll-margin-top: 64px;
}
.dish-sec-title {
  position: sticky;
  top: 58px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 4px 7px;
  margin-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}
.dish-sec-title span {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink3);
  flex: none;
}
.dish-sections .list {
  padding: 0;
  gap: 10px;
}
.dish-sections .dish {
  padding: 11px;
  gap: 10px;
}
.dish-sections .dish-thumb {
  width: 66px;
  height: 66px;
  font-size: 30px;
  border-radius: 14px;
}

/* 菜品卡 */
.list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dish {
  display: flex;
  gap: 13px;
  padding: 13px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.dish.picked {
  box-shadow: 0 6px 22px rgba(255, 90, 31, 0.12);
}

.dish-thumb {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff6ee, #ffeadb);
  display: grid;
  place-items: center;
  font-size: 36px;
  position: relative;
}

.dish-thumb .off-mask {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink3);
}

.dish-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dish-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--brand);
  letter-spacing: 0.5px;
}

.tag.hot {
  background: #fff3e0;
  color: #e07b00;
}

.dish-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.price {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.price i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  margin-right: 1px;
}

.price-origin {
  font-size: 11px;
  color: var(--ink3);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.unit {
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 2px;
}

.minqty {
  position: absolute;
  left: 13px;
  top: 13px;
  transform: translateY(-130%);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.dish-badge-min {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: var(--tint);
  padding: 2px 6px;
  border-radius: 6px;
}

/* 加购控件 */
.add {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.32);
  transition: transform 0.12s;
}

.add:active {
  transform: scale(0.9);
}

.stepper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.stepper .dec {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: #fff;
}

.stepper .inc {
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.28);
}

.stepper .qty {
  min-width: 26px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.stepper button:active {
  transform: scale(0.9);
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 70px 30px;
  color: var(--ink3);
}

.empty .ico {
  font-size: 44px;
  opacity: 0.5;
}

.empty p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ─────────────── 购物车条 ─────────────── */

.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(66px + var(--safe));
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(130px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s;
}

.cartbar.show {
  opacity: 1;
  transform: none;
}

.cartbar.show .cartbar-inner {
  pointer-events: auto;
}

.cartbar-inner {
  pointer-events: none;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(120deg, #241a13, #1a120e);
  display: flex;
  align-items: center;
  padding: 0 6px 0 16px;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(26, 18, 14, 0.34);
  color: #f2e6d8;
}

.cart-ico {
  position: relative;
  font-size: 22px;
  line-height: 1;
  padding-bottom: 2px;
}

.cart-ico .badge {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #1a120e;
}

.cart-total {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.cart-total .t {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.cart-total .d {
  font-size: 10.5px;
  color: rgba(242, 230, 216, 0.5);
}

.cart-go {
  margin-left: auto;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7b3f, var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 90, 31, 0.4);
}

.cart-go:active {
  transform: scale(0.97);
}

/* ─────────────── 底部导航 ─────────────── */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  max-width: 480px;
  margin: 0 auto;
  height: calc(66px + var(--safe));
  padding-bottom: var(--safe);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink3);
  font-size: 10.5px;
  font-weight: 600;
  padding-top: 8px;
  position: relative;
}

.tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab.on {
  color: var(--brand);
}

.tab.on svg {
  stroke-width: 2;
}

.tab .dot {
  position: absolute;
  top: 8px;
  right: 50%;
  margin-right: -14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px #fff;
}

/* ─────────────── 弹层 ─────────────── */

.mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 14, 10, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.26s;
}

.mask.show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 32px 32px 0 0;
  transform: translateY(101%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  box-shadow: 0 -10px 40px rgba(28, 25, 23, 0.14);
}

.sheet.show {
  transform: none;
}

.sheet.full {
  top: 0;
  border-radius: 0;
  max-height: 100dvh;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-2);
  margin: 9px auto 2px;
  flex: none;
}

.sheet-head {
  padding: 8px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.sheet-title {
  font-size: 17px;
  font-weight: 800;
}

.sheet-sub {
  font-size: 12px;
  color: var(--ink3);
  margin-left: auto;
}

.sheet-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4efe9;
  display: grid;
  place-items: center;
  color: var(--ink2);
  font-size: 15px;
  flex: none;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px calc(20px + var(--safe));
  flex: 1;
}

.sheet-foot {
  flex: none;
  padding: 12px 20px calc(16px + var(--safe));
  border-top: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
}

/* 用餐方式 */
.dining-hero {
  padding: 10px 4px 18px;
  text-align: center;
}

.dining-hero h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.dining-hero p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink3);
}

.dining-opts,
.pack-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dining-opt {
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-2);
  background: #fff;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 118px;
  transition: all 0.18s;
}

.pack-opts .dining-opt {
  padding: 18px 10px;
}

/* 图标加圆形浅底，两个按钮看起来更精致、更对称 */
.dining-opt .ico {
  font-size: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint);
  line-height: 1;
}

.dining-opt .t {
  font-size: 16px;
  font-weight: 800;
}

.dining-opt .d {
  font-size: 11px;
  color: var(--ink3);
}

.dining-opt.on {
  border-color: var(--brand);
  background: var(--tint);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.14);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.table-cell {
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.15s;
}

.table-cell.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.table-cell:active {
  transform: scale(0.95);
}

.other-table {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.other-table input {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  background: #f7f2ec;
  padding: 0 14px;
  font-size: 14px;
}

.btn {
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.12s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-main {
  background: linear-gradient(135deg, #ff7b3f, var(--brand));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 90, 31, 0.28);
}

.btn-main[disabled] {
  background: #e6ded6;
  color: #b3a9a1;
  box-shadow: none;
}

.btn-ghost {
  background: #f4efe9;
  color: var(--ink2);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* 菜品详情 */
.detail-hero {
  height: 168px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #fff6ee, #ffe3cf);
  display: grid;
  place-items: center;
  font-size: 76px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.detail-name {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink2);
}

.detail-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f7f2ec;
  color: var(--ink2);
  font-weight: 600;
}

.chip.warn {
  background: var(--tint);
  color: var(--brand);
}

.combo-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: #fbf7f2;
  border: 1px dashed var(--line-2);
}

.combo-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.combo-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.combo-item b {
  margin-left: auto;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.combo-save {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink3);
}

.combo-save .save {
  color: var(--brand);
  font-weight: 800;
}

.combo-save .off {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.detail-actions .stepper .qty {
  font-size: 17px;
}

.detail-actions .stepper button {
  width: 34px;
  height: 34px;
}

/* 购物车 */
.cart-list {
  display: flex;
  flex-direction: column;
}

.cart-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-emoji {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(160deg, #fff6ee, #ffeadb);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}

.cart-info {
  flex: 1;
  min-width: 0;
}

.cart-nm {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink3);
}

.note-link {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 1px;
}

.note-link.has {
  color: var(--brand);
}

.cart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.cart-line-price {
  font-size: 14.5px;
  font-weight: 800;
}

.cart-rm {
  font-size: 11px;
  color: var(--ink3);
}

.coupon-hint {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: #eefaf1;
  color: #17803d;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

.coupon-hint.warn {
  background: #fff6e6;
  color: #a56a00;
}

.sum-rows {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink2);
}

.sum-row b {
  color: var(--ink);
  font-weight: 700;
}

.sum-row.total {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  padding-top: 4px;
}

.sum-row.total b {
  font-size: 22px;
  color: var(--brand);
  font-weight: 800;
}

.sum-row .minus {
  color: #17803d;
  font-weight: 700;
}

/* 结算页 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  gap: 8px;
}

.nav-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--ink);
}

.nav-title {
  font-size: 16.5px;
  font-weight: 800;
}

.nav-right {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink2);
  font-weight: 600;
}

.card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow);
}

.card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink2);
}

.card-h .edit {
  margin-left: auto;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}

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

.dining-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--tint);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.dining-card .t {
  font-size: 16px;
  font-weight: 800;
}

.dining-card .d {
  font-size: 11.5px;
  color: var(--ink3);
  margin-top: 2px;
}

.dining-card .switch {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 700;
}

.ck-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 13.5px;
}

.ck-item .nm {
  flex: 1;
  min-width: 0;
}

.ck-item .qty {
  color: var(--ink3);
  font-size: 12.5px;
  margin-left: 6px;
}

.ck-item .amt {
  font-weight: 700;
  white-space: nowrap;
}

.ck-note {
  font-size: 11px;
  color: var(--brand);
  margin-top: 2px;
}

.coupon-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}

.coupon-pick .amt {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.coupon-pick .amt small {
  font-size: 11px;
  margin-left: 1px;
}

.coupon-pick .nm {
  font-size: 13.5px;
  font-weight: 700;
}

.coupon-pick .ex {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 2px;
}

.coupon-pick .act {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

.remark-box {
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  background: #f8f4ee;
  padding: 12px 14px;
  font-size: 13.5px;
  resize: none;
  line-height: 1.5;
}

.remark-wrap {
  position: relative;
}

.remark-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 10.5px;
  color: var(--ink3);
}

.checkout-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(14px + var(--safe));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-foot .sum {
  line-height: 1.2;
}

.checkout-foot .sum .l {
  font-size: 11px;
  color: var(--ink3);
}

.checkout-foot .sum .v {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
}

.checkout-foot .btn {
  margin-left: auto;
  padding: 0 30px;
  height: 50px;
}

/* 取餐码 */
.pickup-card {
  margin: 8px 16px 12px;
  border-radius: var(--r-lg);
  background: radial-gradient(140% 120% at 50% 0%, #2c1a10, #1a120e 70%);
  color: #f2e6d8;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(26, 18, 14, 0.28);
}

.pickup-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -70px;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 181, 99, 0.2), transparent 68%);
}

.pickup-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(242, 230, 216, 0.5);
  position: relative;
}

.pickup-code {
  font-size: 62px;
  font-weight: 800;
  letter-spacing: 8px;
  line-height: 1.12;
  margin: 8px 0 2px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(232, 181, 99, 0.34);
  position: relative;
  padding-left: 8px;
}

.pickup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(232, 181, 99, 0.14);
  border: 1px solid var(--gold-soft);
  color: #f0d5a6;
  font-size: 12.5px;
  font-weight: 700;
  position: relative;
}

.pickup-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(232, 181, 99, 0.14);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(242, 230, 216, 0.5);
  position: relative;
}

.pickup-cd {
  margin-top: 10px;
  font-size: 12px;
  color: #f0c987;
  position: relative;
}

/* 订单进度 */
.steps {
  display: flex;
  margin: 6px 0 2px;
  padding: 14px 6px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 10.5px;
  color: var(--ink3);
}

.step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: #f1ece6;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink3);
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f1ece6;
}

.step:first-child::before {
  left: 50%;
}

.step:last-child::before {
  right: 50%;
}

.step.done .dot {
  background: var(--brand);
  color: #fff;
}

.step.done::before {
  background: var(--brand);
}

.step.on .dot {
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.step.on {
  color: var(--brand);
  font-weight: 800;
}

.step.done {
  color: var(--ink2);
}

/* 订单列表 */
.order-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 15px 16px;
  margin: 0 16px 11px;
  box-shadow: var(--shadow);
}

.order-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink3);
}

.order-status {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  background: #f4efe9;
  color: var(--ink2);
}

.order-status.awaiting_pay {
  background: var(--tint);
  color: var(--brand);
}

.order-status.making,
.order-status.paid {
  background: #fff3e0;
  color: #c96a00;
}

.order-status.ready {
  background: #eaf6ee;
  color: #17803d;
}

.order-status.completed {
  background: #f4efe9;
  color: var(--ink3);
}

.order-status.cancelled {
  background: #f4efe9;
  color: var(--ink3);
  text-decoration: line-through;
}

.order-mid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 11px 0 8px;
}

.order-code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.order-where {
  font-size: 12px;
  color: var(--ink2);
  background: #f7f2ec;
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 600;
}

.order-amt {
  margin-left: auto;
  font-size: 17px;
  font-weight: 800;
}

.order-items-txt {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-foot .btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-left: auto;
}

/* 我的 */
.profile {
  margin: 4px 16px 14px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #241a13, #1a120e);
  color: #f2e6d8;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.profile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 181, 99, 0.2), transparent 70%);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, #f0c987, #e8b563);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  z-index: 1;
}

.avatar:active {
  transform: scale(0.96);
}

.profile-nm {
  font-size: 18px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.profile-sub {
  font-size: 11.5px;
  color: rgba(242, 230, 216, 0.5);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.menu-group {
  margin: 0 16px 12px;
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  width: 100%;
  text-align: left;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row:active {
  background: #fbf8f4;
}

.menu-row .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f7f2ec;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.menu-row .val {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-row .val .badge-n {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ─────────────── 摇签（深色） ─────────────── */

.draw-page {
  min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% 0%, #2a1a10 0%, #1a120e 55%, #140d09 100%);
  color: #f2e6d8;
  padding-bottom: calc(34px + var(--safe));
  position: relative;
  overflow: hidden;
}

.draw-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(232, 181, 99, 0.5), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(232, 181, 99, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 84% 62%, rgba(232, 181, 99, 0.3), transparent),
    radial-gradient(1px 1px at 32% 74%, rgba(232, 181, 99, 0.28), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.draw-nav {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  z-index: 5;
}

.draw-nav .nav-back {
  color: #f2e6d8;
}

.draw-nav .ttl {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}

.draw-nav .rules {
  margin-left: auto;
  font-size: 12.5px;
  color: rgba(242, 230, 216, 0.6);
  border: 1px solid rgba(232, 181, 99, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
}

.draw-head {
  text-align: center;
  padding: 6px 30px 0;
  position: relative;
  z-index: 4;
}

.draw-head h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 4px;
  font-weight: 800;
  color: #f7e7c8;
  text-shadow: 0 0 30px rgba(232, 181, 99, 0.2);
}

.draw-head p {
  margin: 9px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(242, 230, 216, 0.42);
}

/* 签筒 */
.tube-wrap {
  position: relative;
  width: 220px;
  height: 340px;
  margin: 6px auto 0;
  z-index: 3;
}

.tube-wrap.shaking {
  animation: tubeShake 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  transform-origin: 50% 92%;
}

@keyframes tubeShake {
  0% { transform: rotate(0) translateX(0); }
  10% { transform: rotate(-9deg) translateX(-7px); }
  22% { transform: rotate(8deg) translateX(6px); }
  34% { transform: rotate(-7deg) translateX(-5px); }
  46% { transform: rotate(7deg) translateX(5px); }
  58% { transform: rotate(-5deg) translateX(-4px); }
  70% { transform: rotate(4deg) translateX(3px); }
  82% { transform: rotate(-2deg) translateX(-1px); }
  100% { transform: rotate(0) translateX(0); }
}

.tube-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 181, 99, 0.16), rgba(232, 181, 99, 0) 66%);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.sticks {
  position: absolute;
  left: 50%;
  bottom: 180px;
  width: 0;
  height: 0;
  z-index: 1;
}

.stick {
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 8px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #c39a68, #f0d8b3 40%, #d8b187 72%, #a97c4e);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transform-origin: bottom center;
}

.stick::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 3px;
  background: #b03a2a;
  opacity: 0.85;
  border-radius: 1px;
}

.stick.s1 { height: 132px; transform: rotate(-13deg) translateX(-2px); }
.stick.s2 { height: 150px; transform: rotate(-6deg) translateX(2px); }
.stick.s3 { height: 141px; transform: rotate(1deg); }
.stick.s4 { height: 156px; transform: rotate(8deg) translateX(-1px); }
.stick.s5 { height: 128px; transform: rotate(15deg) translateX(2px); }

.tube-body {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 132px;
  height: 170px;
  transform: translateX(-50%);
  border-radius: 10px 10px 34px 34px / 10px 10px 46px 46px;
  background: linear-gradient(90deg, #5b3520 0%, #8a5230 18%, #c1865a 46%, #a26c43 66%, #6b4025 88%, #4d2c19 100%);
  box-shadow: inset 0 -22px 34px rgba(0, 0, 0, 0.42), inset 0 12px 22px rgba(0, 0, 0, 0.3),
    0 18px 30px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.tube-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  height: 22px;
  background: linear-gradient(180deg, rgba(232, 181, 99, 0.32), rgba(232, 181, 99, 0.06));
  border-top: 1px solid rgba(255, 228, 186, 0.24);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.tube-band {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 228, 186, 0.36);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: rgba(255, 232, 196, 0.7);
  letter-spacing: 0;
  background: rgba(0, 0, 0, 0.12);
}

.tube-mouth {
  position: absolute;
  left: 50%;
  bottom: 168px;
  width: 132px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #1c1008 0%, #3a2113 62%, #6b4025 100%);
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.75), 0 -2px 6px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.tube-lip {
  position: absolute;
  left: 50%;
  bottom: 168px;
  width: 132px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(193, 134, 90, 0.95), #7d4a2b);
  clip-path: inset(52% 0 0 0);
  z-index: 4;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.tube-shadow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 176px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 72%);
  filter: blur(2px);
  z-index: 0;
}

.stick.fly {
  animation: stickFly 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes stickFly {
  0% { transform: rotate(1deg) translateY(0); }
  40% { transform: rotate(12deg) translateY(-38px) translateX(6px); }
  100% { transform: rotate(16deg) translateY(-30px) translateX(10px); }
}

/* 抽签按钮 */
.draw-btn-wrap {
  padding: 4px 40px 0;
  position: relative;
  z-index: 5;
}

.draw-btn {
  width: 100%;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6d79b, #e8b563 55%, #d8a04a);
  color: #34200c;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(232, 181, 99, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, opacity 0.2s;
}

.draw-btn:active {
  transform: scale(0.985);
}

.draw-btn[disabled] {
  background: rgba(232, 181, 99, 0.14);
  color: rgba(242, 230, 216, 0.5);
  box-shadow: none;
  border: 1px solid rgba(232, 181, 99, 0.18);
}

.draw-btn.pending {
  background: linear-gradient(135deg, #3a2a1a, #2a1d12);
  color: #f0c987;
  border: 1px solid rgba(232, 181, 99, 0.4);
  box-shadow: none;
}

.draw-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: rgba(242, 230, 216, 0.3);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 5;
  line-height: 1.7;
}

/* 深色弹层 */
.sheet.dark {
  background: var(--dark-2);
  color: #f2e6d8;
  border-top: 1px solid rgba(232, 181, 99, 0.16);
}

.sheet.dark .sheet-handle {
  background: rgba(232, 181, 99, 0.25);
}

.sheet.dark .sheet-close {
  background: rgba(232, 181, 99, 0.1);
  color: #e8b563;
}

.sheet.dark .sheet-title {
  color: #f7e7c8;
}

.sheet.dark .sheet-foot {
  background: var(--dark-2);
  border-top: 1px solid rgba(232, 181, 99, 0.14);
}

.dark-mask {
  background: rgba(8, 5, 3, 0.72);
}

/* 抽签结果 */
.res-hero {
  text-align: center;
  padding: 6px 0 16px;
}

.res-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(232, 181, 99, 0.14);
  color: #f0c987;
  border: 1px solid rgba(232, 181, 99, 0.3);
}

.res-badge.used {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 230, 216, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.res-badge.expired {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 230, 216, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.res-badge.lose {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 230, 216, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.res-prize {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f7e7c8;
  text-shadow: 0 0 26px rgba(232, 181, 99, 0.28);
}

.res-desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(242, 230, 216, 0.45);
  line-height: 1.6;
  padding: 0 8px;
}

.code-grid {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0 6px;
  user-select: none;
  -webkit-user-select: none;
}

.code-cell {
  width: 36px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 181, 99, 0.24);
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  color: #f0d5a6;
}

.code-tip {
  text-align: center;
  font-size: 10.5px;
  color: rgba(242, 230, 216, 0.32);
  margin-bottom: 16px;
}

.cbar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(242, 230, 216, 0.45);
}

.cbar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(232, 181, 99, 0.12);
  overflow: hidden;
}

.cbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8b563, #f6d79b);
  transition: width 0.4s linear;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(232, 181, 99, 0.12);
  margin-top: 14px;
  font-size: 13px;
  color: #f0c987;
  width: 100%;
  text-align: left;
}

.link-row .arrow {
  margin-left: auto;
  opacity: 0.5;
}

.rule-list {
  counter-reset: r;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.rule-list li {
  counter-increment: r;
  position: relative;
  padding: 11px 0 11px 30px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 230, 216, 0.62);
  border-bottom: 1px solid rgba(232, 181, 99, 0.08);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list li::before {
  content: counter(r);
  position: absolute;
  left: 0;
  top: 12px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(232, 181, 99, 0.32);
  color: #e8b563;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 套餐详情（深色） */
.combo-hero {
  padding: 8px 0 4px;
}

.combo-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.combo-price {
  font-size: 30px;
  font-weight: 800;
  color: #f7e7c8;
}

.combo-price small {
  font-size: 14px;
  margin-right: 2px;
}

.combo-origin {
  font-size: 12.5px;
  color: rgba(242, 230, 216, 0.34);
  text-decoration: line-through;
}

.combo-off {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 90, 31, 0.16);
  color: #ff9c6e;
  border: 1px solid rgba(255, 90, 31, 0.3);
  padding: 3px 8px;
  border-radius: 7px;
}

.combo-spec {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(242, 230, 216, 0.45);
}

.combo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.combo-cell {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(232, 181, 99, 0.14);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(242, 230, 216, 0.8);
}

.combo-cell b {
  margin-left: auto;
  color: #f0d5a6;
  font-weight: 800;
}

.combo-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(232, 181, 99, 0.07);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(242, 230, 216, 0.5);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(20, 14, 10, 0.9);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 74vw;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}

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

.toast.err {
  background: rgba(160, 34, 12, 0.94);
}

/* 骨架 */
.skel {
  background: linear-gradient(90deg, #f1ece6 25%, #f8f4ef 37%, #f1ece6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.dark-mode {
  background: #140d09;
}

/* 菜单底部提示 */
.menu-tip {
  margin: 18px 16px 0;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink3);
}

.hide {
  display: none !important;
}

/* 摇签页纵向分布：签筒自动占中，按钮贴近底部 */
.draw-page {
  display: flex;
  flex-direction: column;
}

.tube-wrap {
  margin: auto;
}

.draw-head {
  padding-top: 2px;
}

.draw-btn-wrap {
  padding-top: 8px;
}

/* 签筒细节微调：筒口更薄、筒身收窄底部 */
.tube-mouth,
.tube-lip {
  bottom: 172px;
  height: 34px;
}

.tube-lip {
  clip-path: inset(56% 0 0 0);
}

.tube-body {
  border-radius: 10px 10px 26px 26px / 10px 10px 36px 36px;
}

.tube-mouth {
  background: radial-gradient(ellipse at 50% 42%, #150b05 0%, #2a1810 68%, #5b3722 100%);
}

/* ═══════════ 搭配菜品（卷饼加菜 / 面加浇头） ═══════════ */
.addon-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: #f3faf4;
  border: 1px dashed #bfe3c4;
}

.addon-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #2f7d43;
  display: flex;
  align-items: center;
  gap: 6px;
}

.addon-box h4 small {
  font-size: 11px;
  font-weight: 500;
  color: #7aa888;
  margin-left: auto;
}

.addon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}

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

.addon-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.addon-price {
  font-size: 11.5px;
  color: #e2622b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stepper.sm .qty {
  min-width: 24px;
  text-align: center;
}

.addon-total {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed #bfe3c4;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--ink3);
}

.addon-total b {
  color: #e2622b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 购物车里的搭配明细 */
.cart-addons {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.cart-addons span {
  font-size: 11px;
  color: #2f7d43;
  background: #eef8ef;
  border-radius: 6px;
  padding: 2px 6px;
}

.cart-addons em {
  font-style: normal;
  color: #e2622b;
  font-weight: 700;
}

/* 结算页的搭配明细 */
.ck-addons {
  font-size: 11.5px;
  color: #2f7d43;
  margin-top: 3px;
  line-height: 1.55;
}

.ck-addons em {
  font-style: normal;
  color: #e2622b;
  font-weight: 700;
}
