/* 扬州喀什饭店 · 新疆风情顾客端 */
.customer-page {
  --xj-blue: #d63384;
  --xj-blue-deep: #ad1457;
  --xj-blue-light: #f062a6;
  --xj-gold: #ff9fc8;
  --xj-gold-light: #ffe3ef;
  --xj-red: #e83e8c;
  --xj-red-deep: #bf1e69;
  --xj-cream: #fff7fb;
  --xj-sand: #ffe6f0;
  --xj-card: #ffffff;
  --xj-text: #3a2330;
  --xj-muted: #8a6072;
  --xj-border: #f5c3d6;
  --shadow: 0 4px 20px rgba(216, 27, 96, 0.12);
  --shadow-lg: 0 8px 32px rgba(216, 27, 96, 0.18);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.22, 1.18);
}

.customer-page {
  background: var(--xj-cream);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 159, 200, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(216, 51, 132, 0.08) 0%, transparent 45%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(212, 168, 75, 0.03) 12px,
      rgba(212, 168, 75, 0.03) 13px
    );
  height: 100vh;
  overflow: hidden;
  scrollbar-color: var(--xj-gold) rgba(15, 51, 73, 0.08);
  scrollbar-width: thin;
}

.customer-page ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.customer-page ::-webkit-scrollbar-track {
  background: rgba(15, 51, 73, 0.06);
  border-radius: 999px;
}

.customer-page ::-webkit-scrollbar-thumb {
  border: 2px solid rgba(250, 246, 238, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--xj-gold), var(--xj-red));
}

.customer-page ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e2bb62, var(--xj-red));
}

/* —— 顶部品牌区 —— */
.hero-header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--xj-blue-deep) 0%, var(--xj-blue) 45%, var(--xj-blue-light) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 8px,
      rgba(212, 168, 75, 0.15) 8px,
      rgba(212, 168, 75, 0.15) 9px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.06) 8px,
      rgba(255, 255, 255, 0.06) 9px
    );
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to bottom, transparent, var(--xj-cream));
}

.hero-inner {
  position: relative;
  padding: 10px 50px 12px 14px;
  text-align: center;
  color: #fff;
}

#menuView {
  height: calc(100vh - var(--customer-header-height, 174px));
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.my-orders-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 168, 75, 0.25);
  border: 1px solid rgba(212, 168, 75, 0.5);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--xj-gold-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.my-orders-btn:hover {
  background: rgba(212, 168, 75, 0.4);
}

.my-orders-btn span {
  display: none;
}

@media (min-width: 400px) {
  .my-orders-btn span {
    display: inline;
  }
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-ornament {
  font-size: 10px;
  color: var(--xj-gold-light);
  opacity: 0.85;
  flex-shrink: 0;
}

.shop-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--xj-gold-light);
  opacity: 0.9;
}

.shop-title {
  font-family: "Noto Serif SC", "STSong", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff 0%, var(--xj-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  width: 100%;
  margin-top: 2px;
}

.table-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 auto;
  max-width: 100%;
}

.table-info {
  font-size: 13px;
  color: var(--xj-gold-light);
  margin-bottom: 0;
}

.table-info strong {
  color: #fff;
  font-size: 15px;
}

.table-info:only-child,
.table-bar[style*="none"] + .table-info {
  margin-bottom: 0;
}

.table-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.table-bar input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--xj-text);
}

.table-bar input::placeholder {
  color: #aaa;
}

.table-bar button {
  background: linear-gradient(135deg, var(--xj-gold) 0%, #b8923a 100%);
  color: var(--xj-blue-deep);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* —— 菜单布局 —— */
.layout {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.cat-nav {
  width: 92px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--xj-blue-deep) 0%, var(--xj-blue) 100%);
  overflow-y: auto;
  height: 100%;
  min-height: 0;
  padding: 8px 0;
  box-shadow: 4px 0 16px rgba(15, 51, 73, 0.15);
  z-index: 20;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--xj-gold) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.cat-nav::-webkit-scrollbar {
  width: 5px;
}

.cat-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.cat-nav::-webkit-scrollbar-thumb {
  border: 1px solid rgba(15, 51, 73, 0.38);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--xj-gold-light), var(--xj-gold));
}

.cat-nav button {
  display: block;
  width: calc(100% - 12px);
  margin: 4px 6px;
  padding: 14px 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 10px;
  transition: all 0.2s;
}

.cat-nav button.active {
  background: linear-gradient(135deg, var(--xj-gold) 0%, #c49a3d 100%);
  color: var(--xj-blue-deep);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 168, 75, 0.4);
}

.menu-list {
  flex: 1;
  padding: 12px 14px 16px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--xj-gold) rgba(15, 51, 73, 0.08);
  scrollbar-width: thin;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--xj-blue);
  margin: 16px 0 12px;
  font-family: "Noto Serif SC", serif;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xj-gold), transparent);
}

.section-title span {
  white-space: nowrap;
  padding: 0 4px;
}

/* —— 菜品卡片 —— */
.dish-card {
  display: flex;
  gap: 14px;
  background: var(--xj-card);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--xj-border);
  position: relative;
  overflow: hidden;
  animation: itemFadeUp 0.36s var(--ease-spring) both;
  animation-delay: var(--stagger, 0ms);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease, border-color 0.18s ease;
}

.dish-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-red-deep));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(232, 62, 140, 0.24);
}

.dish-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--xj-gold), var(--xj-red));
  border-radius: 4px 0 0 4px;
}

.dish-card:active:not(.sold-out) {
  transform: scale(0.985);
}

.dish-card:hover:not(.sold-out) {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15, 51, 73, 0.16);
  border-color: rgba(212, 168, 75, 0.7);
}

.dish-card.sold-out {
  opacity: 0.65;
  filter: grayscale(0.3);
}

.dish-card.sold-out::before {
  background: #999;
}

.dish-img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--xj-gold-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dish-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--xj-muted);
  background: linear-gradient(145deg, var(--xj-sand) 0%, #e8dfd0 100%);
  border-color: var(--xj-border);
}

.dish-img.placeholder::before {
  content: "🍖";
  font-size: 32px;
}

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

.dish-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--xj-text);
  line-height: 1.3;
}

.dish-flavors-hint {
  font-size: 11px;
  color: var(--xj-muted);
  margin-top: 4px;
}

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

.dish-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.dish-price {
  color: var(--xj-red);
  font-weight: 800;
  font-size: 20px;
  font-family: "Noto Serif SC", serif;
}

.dish-price::before {
  content: "¥";
  font-size: 14px;
  margin-right: 1px;
}

.btn-add {
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(196, 60, 42, 0.4);
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s ease, filter 0.16s ease;
}

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

.btn-add:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(196, 60, 42, 0.45);
}

.btn-add-pop {
  animation: btnAddPop 0.32s var(--ease-spring);
}

.btn-add:disabled {
  background: #bbb;
  box-shadow: none;
}

.badge-sold,
.badge-nostock {
  font-size: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 500;
}

.badge-sold {
  background: var(--xj-muted);
}

.badge-nostock {
  background: var(--xj-red-deep);
}

/* —— 底部购物车栏 —— */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--xj-blue-deep) 0%, var(--xj-blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 14px;
  z-index: 200;
  box-shadow: 0 -6px 24px rgba(15, 51, 73, 0.35);
  border-top: 2px solid var(--xj-gold);
  transform: translateZ(0);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

.cart-bar:active {
  transform: translateY(1px);
}

.cart-bar.cart-bump {
  animation: cartBump 0.42s var(--ease-spring);
}

.cart-icon {
  position: relative;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--xj-gold) 0%, #b8923a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xj-blue-deep);
  flex-shrink: 0;
  box-shadow: inset 0 -2px 6px rgba(15, 51, 73, 0.16), 0 4px 16px rgba(212, 168, 75, 0.28);
}

.cart-icon-pop {
  animation: cartIconPop 0.46s var(--ease-spring);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--xj-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--xj-blue-deep);
}

.cart-count.count-pop {
  animation: countPop 0.34s var(--ease-spring);
}

.cart-fly-dot {
  position: fixed;
  z-index: 10001;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  box-shadow: 0 3px 12px rgba(196, 60, 42, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform, opacity;
}

.cart-fly-dot::before {
  content: "+";
}

.cart-total {
  flex: 1;
  font-size: 22px;
  font-weight: 800;
  color: var(--xj-gold-light);
}

.cart-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.1em;
}

.btn-checkout {
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(196, 60, 42, 0.45);
  white-space: nowrap;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-checkout:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-checkout:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

/* —— 弹窗 —— */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 51, 73, 0.55);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-mask.closing {
  opacity: 0;
  pointer-events: none;
}

.modal {
  background: var(--xj-card);
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--xj-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.22s var(--ease-spring), opacity 0.18s ease;
}

.modal-mask.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-mask.closing .modal {
  transform: translateY(12px) scale(0.98);
  opacity: 0;
}

.modal-head {
  padding: 18px 16px;
  border-bottom: 1px solid var(--xj-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, var(--xj-sand) 0%, var(--xj-card) 100%);
}

.modal-head h2 {
  font-size: 18px;
  font-family: "Noto Serif SC", serif;
  color: var(--xj-blue);
}

.modal-close {
  background: none;
  font-size: 28px;
  color: var(--xj-muted);
  padding: 4px 8px;
  line-height: 1;
}

.modal-body {
  overflow-y: auto;
  padding: 12px 16px;
  flex: 1;
  scrollbar-color: var(--xj-gold) rgba(15, 51, 73, 0.08);
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--xj-border);
  animation: itemFadeUp 0.3s var(--ease-spring) both;
  animation-delay: var(--stagger, 0ms);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(18px) scale(0.98);
}

.cart-section {
  padding: 4px 0 8px;
}

.cart-section + .cart-section {
  margin-top: 12px;
  border-top: 1px solid var(--xj-border);
  padding-top: 14px;
}

.cart-section-title {
  margin-bottom: 8px;
  color: var(--xj-red);
  font-size: 14px;
  font-weight: 800;
}

.cart-order-group {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--xj-border);
  border-radius: 12px;
  background: rgba(246, 237, 220, .45);
}

.cart-order-title {
  margin-bottom: 4px;
  color: var(--xj-blue);
  font-size: 13px;
  font-weight: 800;
}

.cart-item-readonly {
  opacity: .78;
}

.qty-readonly {
  min-width: 48px;
  text-align: center;
  color: var(--xj-muted);
  font-weight: 700;
}

.cart-summary {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--xj-sand);
  animation: itemFadeUp 0.3s var(--ease-spring) both;
  animation-delay: var(--stagger, 0ms);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--xj-muted);
}

.cart-summary strong {
  color: var(--xj-red);
}

.cart-summary-total {
  margin-top: 4px;
  border-top: 1px solid var(--xj-border);
  color: var(--xj-text) !important;
  font-weight: 800;
}

.cart-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--xj-text);
}

.cart-item-flavor {
  font-size: 12px;
  color: var(--xj-red);
  margin-top: 2px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--xj-sand);
  color: var(--xj-blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  border: 1px solid var(--xj-border);
  transition: transform 0.14s var(--ease-spring), background 0.14s ease;
}

.qty-control button:active {
  transform: scale(0.9);
  background: var(--xj-gold-light);
}

.qty-control input {
  width: 54px;
  height: 32px;
  border: 1px solid var(--xj-border);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  color: var(--xj-text);
}

.modal-foot {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--xj-border);
  background: var(--xj-sand);
}

.modal-foot textarea {
  width: 100%;
  border: 1px solid var(--xj-border);
  border-radius: 12px;
  padding: 12px;
  resize: none;
  margin-bottom: 12px;
  background: #fff;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  color: #fff;
  padding: 15px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 16px rgba(196, 60, 42, 0.35);
}

.flavor-picker {
  padding: 20px 18px 24px;
  position: relative;
}

.modal-decor {
  height: 4px;
  background: linear-gradient(90deg, var(--xj-blue), var(--xj-gold), var(--xj-red), var(--xj-gold), var(--xj-blue));
  border-radius: 2px;
  margin-bottom: 16px;
}

.flavor-picker h3 {
  font-size: 18px;
  font-family: "Noto Serif SC", serif;
  color: var(--xj-blue);
  margin-bottom: 4px;
  text-align: center;
}

.modal-hint {
  font-size: 13px;
  color: var(--xj-muted);
  margin-bottom: 14px;
  text-align: center;
}

.flavor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.flavor-options button {
  padding: 10px 18px;
  border-radius: 22px;
  border: 2px solid var(--xj-border);
  background: #fff;
  font-size: 14px;
  color: var(--xj-text);
  transition: transform 0.16s var(--ease-spring), background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.flavor-options button:active {
  transform: scale(0.96);
}

.flavor-options button.choice-pop {
  animation: choicePop 0.28s var(--ease-spring);
}

.flavor-options button.selected {
  border-color: var(--xj-gold);
  background: linear-gradient(135deg, #fff5fa 0%, #ffe6f0 100%);
  color: var(--xj-red-deep);
  font-weight: 700;
}

.single-flavor-note {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--xj-muted);
  background: var(--xj-sand);
}

.quantity-picker {
  display: grid;
  grid-template-columns: 44px minmax(88px, 1fr) 44px;
  gap: 10px;
  margin: 0 0 18px;
}

.quantity-picker button,
.quantity-picker input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--xj-border);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.quantity-picker button {
  color: var(--xj-red);
  background: var(--xj-sand);
}

.quantity-picker input {
  background: #fff;
  color: var(--xj-text);
}

.phone-modal input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  border: 1px solid var(--xj-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.flavor-picker .btn-confirm {
  width: 100%;
  background: linear-gradient(135deg, var(--xj-gold) 0%, #b8923a 100%);
  color: var(--xj-blue-deep);
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.loading,
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--xj-muted);
  font-size: 14px;
}

.loading::before {
  content: "✦";
  display: block;
  font-size: 24px;
  color: var(--xj-gold);
  margin-bottom: 12px;
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

/* —— 下单成功 —— */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--xj-blue-deep) 0%, var(--xj-blue) 40%, var(--xj-cream) 100%);
}

.success-card {
  background: var(--xj-card);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  border: 2px solid var(--xj-gold);
  box-shadow: var(--shadow-lg);
}

.success-page.success-pop .success-card {
  animation: successCardPop 0.5s var(--ease-spring) both;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--xj-gold) 0%, #b8923a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--xj-blue-deep);
}

.success-card h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  color: var(--xj-blue);
  margin-bottom: 8px;
}

.success-shop {
  font-size: 15px;
  color: var(--xj-gold);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.success-card > p:last-of-type {
  color: var(--xj-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.success-card button {
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  color: #fff;
  padding: 14px 40px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(196, 60, 42, 0.35);
}

/* —— 我的订单 —— */
.orders-modal {
  max-height: 90vh;
}

.order-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--xj-border);
  animation: itemFadeUp 0.32s var(--ease-spring) both;
  animation-delay: var(--stagger, 0ms);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-item-id {
  font-size: 12px;
  color: var(--xj-muted);
}

.order-item-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.order-item-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.order-item-status.cooking {
  background: #e3f2fd;
  color: #1565c0;
}

.order-item-status.served {
  background: #e8f5e9;
  color: #2e7d32;
}

.order-item-status.cancelled {
  background: #fafafa;
  color: #9e9e9e;
}

.order-item-status.paid {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
}

.order-item-time {
  font-size: 11px;
  color: var(--xj-muted);
  margin-bottom: 6px;
}

.order-item-dishes {
  font-size: 13px;
  color: var(--xj-text);
  line-height: 1.5;
}

.order-item-total {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--xj-red);
  margin-top: 6px;
}

.my-orders-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--xj-muted);
  font-size: 14px;
}

.my-orders-empty::before {
  content: "📋";
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
}

/* 订单合计费用 */
.orders-summary {
  background: linear-gradient(135deg, var(--xj-blue) 0%, var(--xj-blue-deep) 100%);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.orders-summary-title {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.orders-summary-total {
  font-size: 32px;
  font-weight: 800;
  font-family: "Noto Serif SC", serif;
  color: var(--xj-gold-light);
}

.orders-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--xj-gold) 0%, #b8923a 100%);
  color: var(--xj-blue-deep);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.grand-total-amount {
  font-size: 22px;
  font-family: "Noto Serif SC", serif;
}

/* 订单已完成页面 */
.order-completed {
  text-align: center;
  padding: 40px 20px;
}

.order-completed-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
}

.order-completed-title {
  font-size: 24px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
  font-family: "Noto Serif SC", serif;
}

.order-completed-msg {
  font-size: 14px;
  color: var(--xj-muted);
  margin-bottom: 30px;
}

.btn-new-order {
  background: linear-gradient(135deg, var(--xj-red) 0%, var(--xj-red-deep) 100%);
  color: #fff;
  padding: 14px 40px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(196, 60, 42, 0.35);
}

@keyframes itemFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes btnAddPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes cartBump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@keyframes cartIconPop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.18) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes countPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes choicePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes successCardPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-page *,
  .customer-page *::before,
  .customer-page *::after,
  .modal-mask,
  .modal,
  .cart-fly-dot {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 480px) {
  .shop-title {
    font-size: 32px;
  }

  .menu-list {
    padding: 16px 20px;
  }

  .dish-card {
    padding: 16px;
  }
}
