/**
 * SUK 咖啡机端 App 样式 (重写版)
 * 设计目标:
 *   - 1920×1080 横屏触摸 (按钮 ≥ 56px 高, 文字 ≥ 14px)
 *   - SUK 黑金品牌 (#0a0806 底 + #c9a961 主金 + #e5c888 亮金 + #f5ecd7 米色)
 *   - 微纹理 + 金属高光 + 温润光晕, 高级零售感
 *   - 流畅过渡 (60fps 优先)
 *
 * 类别覆盖匹配 src/machine.tsx (machine-*, hero-*, menu-*, product-*,
 *   cart-*, pay-*, brew-*, done-*, maint-*, quickpick-*)
 */

:root {
  --gold-1: #f5ecd7;     /* 米色文字 */
  --gold-2: #e5c888;     /* 亮金 */
  --gold-3: #c9a961;     /* 主金 */
  --gold-4: #8a6628;     /* 深金 */
  --gold-5: #4a3618;     /* 暗金 */
  --bg-1: #0a0806;       /* 漆黑底 */
  --bg-2: #1a1410;       /* 深巧克力 */
  --bg-3: #2a1f18;       /* 暖深棕 */
  --bg-card: rgba(26,20,16,0.85);
  --line: rgba(201,169,97,0.18);
  --line-strong: rgba(201,169,97,0.40);
  --line-soft: rgba(201,169,97,0.10);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #3a9ec7;
  --shadow-gold: 0 4px 24px rgba(201,169,97,0.20);
  --shadow-deep: 0 12px 48px rgba(0,0,0,0.55);
}

/* ============== 重置与基础 ============== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }
html, body { margin: 0; padding: 0; }
body.machine-body {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(201,169,97,0.10), transparent 60%),
    radial-gradient(ellipse at 80% 110%, rgba(138,102,40,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  color: var(--gold-1);
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.machine-body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(201,169,97,0.012) 3px, rgba(201,169,97,0.012) 4px);
  z-index: 1;
}
body.machine-body::after {
  /* 角落金色光晕 */
  content: '';
  position: fixed;
  bottom: -180px; right: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,169,97,0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.font-display { font-family: 'Playfair Display', 'Inter', serif; letter-spacing: 0.02em; }
.font-thai { font-family: 'Noto Sans Thai', sans-serif; }
.font-mono { font-family: 'SF Mono', 'JetBrains Mono', Menlo, monospace; }

button { background: none; border: none; color: inherit; cursor: pointer; font-family: inherit; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============== 顶部状态栏 ============== */
.machine-statusbar {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(10,8,6,0.96), rgba(26,20,16,0.85));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  height: 56px;
}
.machine-statusbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.45), transparent);
}
.machine-clock {
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

/* ============== 首页 ============== */
.machine-home {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ----- Hero 轮播 ----- */
.hero-carousel {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 96px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 8s ease-out;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide::after {
  /* 顶部细金线 */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold-3)) 50%, transparent);
  opacity: 0.5;
}
.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-divider {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-3), transparent);
}
.hero-title {
  font-size: 78px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--gold-1);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 26px;
  color: rgba(245,236,215,0.78);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 36px 0;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 22px 48px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(201,169,97,0.42), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(201,169,97,0.55); }
.hero-cta:active { transform: scale(0.97); }
.hero-indicators {
  position: absolute;
  bottom: 36px;
  right: 96px;
  display: flex;
  gap: 12px;
  z-index: 5;
}
.hero-dot {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: rgba(245,236,215,0.25);
  transition: all 0.4s;
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--gold-2);
  width: 60px;
  box-shadow: 0 0 12px rgba(229,200,136,0.6);
}

/* ----- 首页底部快捷区 ----- */
.home-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 48px 32px;
  background: linear-gradient(180deg, transparent, rgba(10,8,6,0.85) 30%, rgba(10,8,6,0.98));
  position: relative;
  z-index: 5;
}
.home-quickpick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quickpick-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.quickpick-label i { color: var(--amber); }
.quickpick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quickpick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, rgba(42,31,24,0.6), rgba(26,20,16,0.85));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.quickpick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--gold-3));
  opacity: 0.7;
}
.quickpick-card:hover {
  border-color: var(--accent, var(--gold-2));
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.quickpick-card:active { transform: scale(0.97); }
.quickpick-img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid rgba(201,169,97,0.35);
}
.quickpick-name {
  color: var(--gold-1);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.3;
}
.quickpick-price {
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

/* ----- 主 CTA ----- */
.home-cta-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 480px;
  padding: 32px 56px;
  background: linear-gradient(135deg, var(--gold-4), var(--gold-3) 50%, var(--gold-2));
  color: var(--bg-1);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(201,169,97,0.5), inset 0 2px 0 rgba(255,255,255,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.home-cta-main:hover { transform: translateY(-2px); }
.home-cta-main:active { transform: scale(0.98); }
.home-cta-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============== 菜单页 ============== */
.menu-page {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.menu-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26,20,16,0.95), transparent);
  backdrop-filter: blur(6px);
}
.menu-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold-2);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.menu-back:hover { border-color: var(--gold-2); background: rgba(201,169,97,0.08); }
.menu-back:active { transform: scale(0.96); }
.menu-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.menu-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  box-shadow: var(--shadow-gold);
  transition: all 0.2s;
}
.menu-cart-btn:hover { transform: translateY(-2px); }
.menu-cart-btn:active { transform: scale(0.95); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 800;
  font-family: monospace;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-1);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.is-active { transform: scale(1); }

/* ----- 分类 Tab ----- */
.menu-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 36px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: rgba(245,236,215,0.65);
  white-space: nowrap;
  font-size: 14px;
  transition: all 0.25s;
  flex-shrink: 0;
}
.menu-tab i { font-size: 22px; }
.menu-tab:hover { color: var(--gold-2); border-color: var(--line-strong); }
.menu-tab.is-active {
  background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(229,200,136,0.10));
  border-color: var(--gold-3);
  color: var(--gold-2);
  box-shadow: 0 4px 16px rgba(201,169,97,0.18);
}
.menu-tab.is-active i { color: var(--gold-2); }

/* ----- 商品网格 ----- */
.menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding: 24px 36px 32px;
  overflow-y: auto;
  align-content: start;
}
.menu-grid::-webkit-scrollbar { width: 8px; }
.menu-grid::-webkit-scrollbar-track { background: rgba(26,20,16,0.5); }
.menu-grid::-webkit-scrollbar-thumb { background: rgba(201,169,97,0.30); border-radius: 4px; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(42,31,24,0.5), rgba(26,20,16,0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--gold-3));
  opacity: 0.85;
  z-index: 2;
}
.product-card:hover {
  border-color: var(--accent, var(--gold-2));
  transform: translateY(-6px);
  box-shadow: 0 18px 56px rgba(0,0,0,0.5), 0 0 0 1px var(--accent, var(--gold-2));
}
.product-card.hidden { display: none; }
.product-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(201,169,97,0.4);
}
.product-popular {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 10px;
  background: rgba(245,158,11,0.95);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.product-name {
  color: var(--gold-1);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.product-name-th {
  color: rgba(201,169,97,0.6);
  font-size: 12px;
  margin-bottom: 8px;
}
.product-desc {
  color: rgba(245,236,215,0.55);
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.product-price .price-num { font-size: 28px; }
.btn-add-cart {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent, var(--gold-3)), var(--gold-2));
  color: var(--bg-1);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s;
}
.btn-add-cart:hover { transform: scale(1.08); }
.btn-add-cart:active { transform: scale(0.92); }

/* ============== 购物车抽屉 ============== */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-drawer.is-active { opacity: 1; pointer-events: auto; }
.cart-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.7);
  backdrop-filter: blur(4px);
}
.cart-drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 460px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-left: 1px solid var(--line-strong);
  box-shadow: -16px 0 64px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.is-active .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-close {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(201,169,97,0.08);
  color: var(--gold-2);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-close:hover { background: rgba(201,169,97,0.18); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(201,169,97,0.4);
  text-align: center;
}
.cart-empty i { font-size: 80px; margin-bottom: 16px; opacity: 0.5; }
.cart-empty p { margin: 4px 0; font-size: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cart-item-name { color: var(--gold-1); font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--gold-2); font-size: 13px; margin-top: 4px; }
.cart-item-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { border-color: var(--gold-2); background: rgba(201,169,97,0.08); }
.cart-qty-num { color: var(--gold-1); font-weight: 700; min-width: 24px; text-align: center; }
.cart-summary {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(10,8,6,0.6);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.cart-divider { height: 1px; background: var(--line); margin: 8px 0; }
.cart-total-row { padding: 8px 0 14px; }
.cart-checkout-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 14px;
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-checkout-btn:active { transform: scale(0.98); }
.cart-checkout-btn:disabled { opacity: 0.4; pointer-events: none; }

/* 飞行加购动画 */
.fly-anchor {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
}
.fly-img {
  position: fixed;
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(201,169,97,0.6);
}

/* ============== 商品详情弹窗 ============== */
.product-modal {
  position: fixed; inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-modal.is-active { opacity: 1; pointer-events: auto; }
.product-modal-mask {
  position: absolute; inset: 0;
  background: rgba(10,8,6,0.7);
  backdrop-filter: blur(6px);
}
.product-modal-panel {
  position: relative;
  margin: 80px auto 0;
  width: 720px;
  max-width: 92vw;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-modal.is-active .product-modal-panel { transform: translateY(0) scale(1); }

/* ============== 支付页 ============== */
.pay-page {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}
.pay-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.pay-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 700;
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.pay-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 32px 36px;
  overflow: hidden;
}
.pay-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.pay-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.pay-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(42,31,24,0.5), rgba(26,20,16,0.85));
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  transition: all 0.25s;
  position: relative;
}
.pay-channel::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent, var(--gold-3));
}
.pay-channel:hover:not(.is-disabled) {
  border-color: var(--accent, var(--gold-2));
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.pay-channel.is-active {
  border-color: var(--accent, var(--gold-2));
  background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(26,20,16,0.85));
  box-shadow: 0 0 0 2px var(--accent, var(--gold-2)), 0 8px 28px rgba(0,0,0,0.45);
}
.pay-channel.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.5);
}
.pay-channel-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent, var(--gold-3)), rgba(255,255,255,0.1));
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.pay-channel-info { display: flex; flex-direction: column; gap: 4px; }
.pay-channel-name { color: var(--gold-1); font-weight: 700; font-size: 18px; }
.pay-channel-tag { color: rgba(201,169,97,0.6); font-size: 12px; letter-spacing: 0.08em; }
.pay-channel-arrow { color: var(--gold-3); opacity: 0.6; font-size: 16px; }

/* 支付二维码区 */
.pay-qr-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.10), transparent 70%), rgba(26,20,16,0.7);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  position: relative;
}
.pay-qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pay-qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.pay-qr-content.hidden { display: none; }
.pay-qr-empty.hidden { display: none; }
.pay-qr-canvas-wrap {
  position: relative;
  margin-top: 18px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(201,169,97,0.25), 0 0 0 4px rgba(201,169,97,0.5);
  overflow: hidden;
}
.pay-qr-scan-line {
  position: absolute;
  left: 16px; right: 16px;
  height: 3px;
  top: 16px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  box-shadow: 0 0 12px var(--gold-2);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%   { top: 16px; opacity: 1; }
  50%  { top: calc(100% - 19px); opacity: 1; }
  100% { top: 16px; opacity: 1; }
}
.pay-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}
.pay-mock-btn {
  margin-top: 22px;
  padding: 14px 28px;
  background: rgba(34,197,94,0.12);
  border: 1px dashed rgba(34,197,94,0.4);
  color: var(--green);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.pay-mock-btn:hover { background: rgba(34,197,94,0.2); }

/* ============== 制作中动画页 ============== */
.making-page {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.making-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,169,97,0.10), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(233,123,43,0.05), transparent 50%);
  z-index: -1;
}
.making-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  width: 100%;
  max-width: 880px;
}
.brew-stage {
  margin: 32px 0 28px;
}
.brew-machine {
  position: relative;
  width: 280px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brew-machine-top {
  width: 220px;
  height: 80px;
  background: linear-gradient(180deg, #4a3618, #2a1f18);
  border: 2px solid var(--gold-4);
  border-radius: 16px 16px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
}
.brew-capsule {
  width: 56px; height: 38px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  border-radius: 6px 6px 14px 14px;
  border: 2px solid var(--gold-4);
  position: relative;
  animation: capsule-drop 1s ease-in 0s 1 both;
}
@keyframes capsule-drop {
  0%   { transform: translateY(-80px); opacity: 0; }
  60%  { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.brew-machine-mid {
  position: relative;
  width: 240px;
  height: 120px;
  background: linear-gradient(180deg, #2a1f18, #1a1410);
  border-left: 2px solid var(--gold-4);
  border-right: 2px solid var(--gold-4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  gap: 6px;
}
.brew-jet {
  width: 4px; height: 0;
  background: linear-gradient(180deg, rgba(245,236,215,0.9), rgba(245,236,215,0.2));
  border-radius: 2px;
  animation: jet 1.2s ease-out 1s infinite;
}
.brew-jet-2 { animation-delay: 1.15s; }
.brew-jet-3 { animation-delay: 1.30s; }
@keyframes jet {
  0%   { height: 0; opacity: 0; }
  30%  { height: 88px; opacity: 1; }
  100% { height: 88px; opacity: 0; }
}
.brew-steam {
  position: absolute;
  top: -16px; left: 50%;
  width: 60px; height: 16px;
  background: radial-gradient(ellipse, rgba(245,236,215,0.5), transparent 70%);
  filter: blur(4px);
  transform: translateX(-50%);
  animation: steam 2.4s ease-in-out infinite;
}
@keyframes steam {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.7; transform: translateX(-50%) translateY(-12px); }
}
.brew-machine-bot {
  width: 240px;
  height: 100px;
  background: linear-gradient(180deg, #1a1410, #0a0806);
  border: 2px solid var(--gold-4);
  border-radius: 6px 6px 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.brew-cup {
  position: relative;
  width: 110px; height: 86px;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--gold-3);
  border-top-width: 0;
  border-radius: 0 0 50% 50% / 0 0 30% 30%;
  overflow: hidden;
}
.brew-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, #6b3818 0%, #2a1408 100%);
  transition: height 1.5s ease-out;
}
.brew-foam {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, #f5ecd7, #d4b888);
  border-radius: 100% 100% 0 0;
  transition: all 1s ease-out;
}
.brew-cup.is-filled .brew-fill { height: 78%; }
.brew-cup.is-filled .brew-foam { height: 12%; bottom: 78%; }

.brew-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 0 16px;
  width: 100%;
  max-width: 720px;
}
.brew-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.brew-step.is-active { opacity: 1; }
.brew-step.is-done { opacity: 0.7; }
.brew-step-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(201,169,97,0.10);
  border: 2px solid var(--line-strong);
  color: var(--gold-3);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.brew-step.is-active .brew-step-icon {
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  border-color: var(--gold-2);
  box-shadow: 0 0 0 6px rgba(201,169,97,0.20), 0 8px 24px rgba(201,169,97,0.40);
  animation: pulse-step 1.6s ease-in-out infinite;
}
.brew-step.is-done .brew-step-icon {
  background: rgba(34,197,94,0.12);
  border-color: var(--green);
  color: var(--green);
}
@keyframes pulse-step {
  0%, 100% { box-shadow: 0 0 0 6px rgba(201,169,97,0.20), 0 8px 24px rgba(201,169,97,0.40); }
  50%      { box-shadow: 0 0 0 12px rgba(201,169,97,0.10), 0 8px 28px rgba(201,169,97,0.55); }
}
.brew-step-name { color: var(--gold-1); font-size: 14px; font-weight: 700; margin-top: 8px; }
.brew-step-th { color: rgba(201,169,97,0.55); font-size: 11px; margin-top: 2px; }
.brew-step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
  margin: 0 -8px;
  position: relative;
  top: -28px;
}

.brew-progress {
  width: 100%;
  max-width: 540px;
  height: 6px;
  background: rgba(201,169,97,0.10);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 24px;
}
.brew-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-4), var(--gold-2));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(229,200,136,0.6);
  transition: width 0.3s;
}
.brew-progress-text {
  margin-top: 10px;
  color: var(--gold-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
}

/* ============== 完成页 ============== */
.done-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.done-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.done-icon { width: 140px; height: 140px; }
.done-svg { width: 100%; height: 100%; }
.done-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: draw-circle 0.8s ease-out 0.1s forwards;
}
.done-check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw-check 0.5s ease-out 0.7s forwards;
}
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }
.done-cup {
  position: relative;
  margin-top: 32px;
}
.done-steam {
  position: absolute;
  top: -36px; left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}
.done-steam span {
  display: block;
  width: 6px; height: 6px;
  background: rgba(245,236,215,0.5);
  border-radius: 50%;
  margin: 2px 0;
  filter: blur(2px);
  animation: rise 2.4s ease-in-out infinite;
}
.done-steam span:nth-child(2) { animation-delay: 0.4s; }
.done-steam span:nth-child(3) { animation-delay: 0.8s; }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(0); }
  50%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-32px); }
}
.done-home-btn {
  margin-top: 36px;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 14px;
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
}
.done-home-btn:active { transform: scale(0.97); }

/* ============== 维护登录 ============== */
.maint-login-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.maint-login-card {
  width: 480px;
  max-width: 96vw;
  padding: 40px 36px 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
}
.maint-login-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}
.maint-pin-display {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 12px;
}
.pin-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: rgba(0,0,0,0.4);
  transition: all 0.2s;
}
.pin-dot.is-filled {
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  border-color: var(--gold-2);
  box-shadow: 0 0 12px rgba(229,200,136,0.6);
  transform: scale(1.05);
}
.pin-dot.is-error {
  background: rgba(239,68,68,0.6);
  border-color: var(--red);
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.maint-pin-msg {
  text-align: center;
  color: rgba(245,236,215,0.65);
  font-size: 13px;
  margin-bottom: 24px;
  min-height: 20px;
  letter-spacing: 0.06em;
}
.maint-pin-msg.is-error { color: var(--red); }
.maint-pin-msg.is-success { color: var(--green); }
.maint-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.maint-key {
  height: 64px;
  background: linear-gradient(180deg, rgba(42,31,24,0.5), rgba(26,20,16,0.85));
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gold-1);
  font-size: 26px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s;
}
.maint-key:hover { border-color: var(--gold-2); background: rgba(201,169,97,0.10); }
.maint-key:active { transform: scale(0.94); background: rgba(201,169,97,0.20); }
.maint-key-action { color: var(--red); }
.maint-key-back { color: var(--amber); }
.maint-login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ============== 维护主菜单 ============== */
.maint-home-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 28px 36px 32px;
}
.maint-home-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.maint-session {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 999px;
  color: var(--green);
}
.maint-logout-btn {
  margin-left: 12px;
  padding: 6px 14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: var(--red);
  border-radius: 8px;
  font-size: 12px;
}
.maint-logout-btn:hover { background: rgba(239,68,68,0.2); }
.maint-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.maint-module {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(42,31,24,0.6), rgba(26,20,16,0.95));
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.maint-module::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.maint-module::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.maint-module:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}
.maint-module:hover::after { opacity: 0.10; }
.maint-module:active { transform: scale(0.985); }
.maint-module-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,0.05));
  color: white;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.maint-module-title {
  color: var(--gold-1);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.maint-module-th { color: rgba(201,169,97,0.6); font-size: 12px; margin-bottom: 8px; }
.maint-module-desc { color: rgba(245,236,215,0.55); font-size: 13px; line-height: 1.4; }
.maint-module-arrow { color: var(--accent); font-size: 22px; opacity: 0.7; }
.maint-module-danger .maint-module-title { color: #fca5a5; }

.maint-status-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(26,20,16,0.6), rgba(10,8,6,0.85));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.maint-stat { display: flex; flex-direction: column; align-items: center; }
.maint-stat-label {
  color: rgba(201,169,97,0.55);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.maint-stat-value {
  color: var(--gold-1);
  font-size: 20px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  margin-top: 4px;
}

/* ============== 维护弹窗 ============== */
.maint-modal {
  position: fixed; inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.maint-modal.is-active { opacity: 1; pointer-events: auto; }
.maint-modal-mask {
  position: absolute; inset: 0;
  background: rgba(10,8,6,0.75);
  backdrop-filter: blur(6px);
}
.maint-modal-panel {
  position: relative;
  margin: 64px auto 0;
  width: 720px;
  max-width: 92vw;
  max-height: calc(100vh - 128px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.maint-modal.is-active .maint-modal-panel { transform: translateY(0) scale(1); }
.maint-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.maint-modal-title {
  color: var(--gold-2);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.maint-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.maint-modal-footer {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.maint-form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.maint-form-row:last-child { border-bottom: none; }
.maint-form-label { color: var(--gold-2); font-size: 14px; font-weight: 600; }
.maint-form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold-1);
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
}
.maint-form-input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(229,200,136,0.20); }
.maint-form-hint { color: rgba(201,169,97,0.55); font-size: 11px; margin-top: 4px; }

.maint-btn-primary {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
  color: var(--bg-1);
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 0.06em;
  transition: transform 0.15s;
}
.maint-btn-primary:active { transform: scale(0.97); }
.maint-btn-primary:disabled { opacity: 0.4; pointer-events: none; }
.maint-btn-ghost {
  padding: 12px 22px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 10px;
  background: transparent;
}
.maint-btn-ghost:hover { background: rgba(201,169,97,0.08); }
.maint-btn-danger {
  padding: 12px 22px;
  background: linear-gradient(135deg, #b91c1c, var(--red));
  color: white;
  font-weight: 700;
  border-radius: 10px;
}
.maint-btn-danger:hover { box-shadow: 0 8px 24px rgba(239,68,68,0.4); }

.maint-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.maint-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  background: rgba(26,20,16,0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.maint-action-card:hover { border-color: var(--gold-2); background: rgba(201,169,97,0.06); }
.maint-action-card .ico { color: var(--gold-2); font-size: 22px; margin-bottom: 8px; }
.maint-action-card .ttl { color: var(--gold-1); font-weight: 700; font-size: 16px; }
.maint-action-card .dsc { color: rgba(245,236,215,0.55); font-size: 12px; margin-top: 4px; }

/* ============== Toast ============== */
.machine-toast {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(26,20,16,0.98), rgba(42,31,24,0.98));
  border: 1px solid var(--gold-3);
  border-radius: 12px;
  color: var(--gold-1);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-deep);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.machine-toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.machine-toast.is-success { border-color: var(--green); color: #d1fae5; }
.machine-toast.is-success i { color: var(--green); }
.machine-toast.is-error { border-color: var(--red); color: #fecaca; }
.machine-toast.is-error i { color: var(--red); }
.machine-toast.is-info i { color: var(--blue); }

/* ============== 响应式: 紧凑屏 (1280×800) ============== */
@media (max-width: 1366px) {
  .hero-title { font-size: 56px; }
  .hero-subtitle { font-size: 20px; }
  .hero-slide { padding: 0 64px; }
  .home-cta-main { min-width: 380px; padding: 24px 40px; font-size: 26px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .maint-modules { grid-template-columns: 1fr; }
  .maint-status-bar { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   补充组件样式 (商品详情弹窗 / 选项 / 数量 / 维护参数 / 清洗 / 远程 / 出厂)
   ============================================================ */

/* 商品详情弹窗 */
.product-modal { position: fixed; inset: 0; z-index: 9000; display: none; }
.product-modal.is-open { display: block; }
.product-modal-mask { position: absolute; inset: 0; background: rgba(10,8,6,0.85); backdrop-filter: blur(8px); }
.product-modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, 92vw); max-height: 90vh; overflow: hidden;
  background: linear-gradient(140deg, #1a1410 0%, #0a0806 100%);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: var(--suk-radius-lg);
  box-shadow: 0 32px 96px rgba(0,0,0,0.8), inset 0 1px 0 rgba(229,200,136,0.1);
  display: flex; flex-direction: column;
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.product-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,8,6,0.7); border: 1px solid rgba(201,169,97,0.3);
  color: var(--suk-gold-bright); cursor: pointer; font-size: 22px;
  transition: all .2s;
}
.product-modal-close:hover { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #ef4444; }
.product-modal-img {
  height: 320px; background: #1a1410 center/cover no-repeat;
  position: relative;
  border-bottom: 1px solid rgba(201,169,97,0.2);
}
.product-modal-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0) 50%, rgba(10,8,6,0.85) 100%);
}
.product-badge-lg { font-size: 16px; padding: 8px 18px; top: 24px; left: 24px; }
.product-modal-body { padding: 28px 36px; overflow-y: auto; flex: 1; }
.product-modal-name { font-size: 32px; color: var(--suk-gold-bright); font-weight: 700; letter-spacing: 0.02em; }
.product-modal-name-th { font-size: 16px; color: rgba(201,169,97,0.6); margin-top: 4px; }
.product-modal-desc { color: rgba(245,236,215,0.75); font-size: 16px; margin-top: 10px; line-height: 1.5; }
.product-modal-options { margin-top: 24px; display: grid; gap: 16px; }
.opt-row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; }
.opt-label {
  color: var(--suk-gold); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.opt-label .fa-circle-dot { font-size: 10px; color: var(--suk-gold); }
.opt-values { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-pill {
  padding: 10px 22px; border-radius: 999px;
  background: rgba(42,31,24,0.55); border: 1px solid rgba(201,169,97,0.25);
  color: rgba(245,236,215,0.7); cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: all .2s;
  min-width: 72px; min-height: 44px;
}
.opt-pill:hover { border-color: var(--suk-gold); color: var(--suk-gold-bright); }
.opt-pill.is-active {
  background: linear-gradient(135deg, var(--suk-gold), var(--suk-gold-dim));
  color: #0a0806; border-color: var(--suk-gold-bright);
  box-shadow: 0 6px 18px rgba(201,169,97,0.35);
}
.product-modal-qty {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: rgba(42,31,24,0.4); border-radius: 14px;
  border: 1px solid rgba(201,169,97,0.18);
}
.qty-ctrl { display: inline-flex; align-items: center; gap: 14px; }
.qty-ctrl-sm .qty-btn { width: 32px; height: 32px; font-size: 12px; }
.qty-ctrl-sm .qty-val { min-width: 30px; font-size: 16px; }
.qty-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,169,97,0.15); border: 1px solid rgba(201,169,97,0.3);
  color: var(--suk-gold-bright); cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--suk-gold); color: #0a0806; }
.qty-btn:active { transform: scale(0.92); }
.qty-val { min-width: 40px; text-align: center; font-size: 22px; font-weight: 700; color: var(--suk-gold-bright); }
.product-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(201,169,97,0.15);
  gap: 20px;
}
.product-modal-price { display: flex; flex-direction: column; }
.product-modal-add-btn {
  flex: 1; max-width: 360px;
  padding: 18px 32px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--suk-gold-bright), var(--suk-gold));
  color: #0a0806; font-size: 18px; font-weight: 800; letter-spacing: 0.05em;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(201,169,97,0.4);
  transition: transform .15s;
}
.product-modal-add-btn:hover { transform: translateY(-2px); }
.product-modal-add-btn:active { transform: translateY(0); }

/* 购物车数量徽章动效 */
.menu-cart-btn { position: relative; }
.menu-cart-btn.is-bump { animation: cartBump .55s ease; }
@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-6deg); }
  60% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1); }
}
.cart-count.is-zero { opacity: 0.4; }

/* 购物车条目 */
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  padding: 14px; align-items: center;
  background: rgba(42,31,24,0.45); border: 1px solid rgba(201,169,97,0.15);
  border-radius: 12px; margin-bottom: 10px;
}
.cart-item-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item-name { color: var(--suk-gold-bright); font-weight: 700; font-size: 15px; }
.cart-item-opts { color: rgba(201,169,97,0.55); font-size: 11px; margin-top: 2px; }
.cart-item-price { color: var(--suk-gold); font-size: 13px; margin-top: 4px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item-line-total { color: var(--suk-gold-bright); font-weight: 700; font-size: 15px; }
.cart-item-rm {
  background: transparent; border: 0; color: rgba(239,68,68,0.6); cursor: pointer;
  font-size: 12px;
}
.cart-item-rm:hover { color: #ef4444; }

/* 按钮加载态 */
.is-loading { opacity: 0.6; pointer-events: none; }

/* 飞行加购小球 (.fly-ball 动画) - 仅依赖 transition */

/* 维护登录摇晃 */
.maint-login-page.is-shake .maint-login-card { animation: shake .5s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(12px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}
.pin-dot.is-filled {
  background: var(--suk-gold-bright);
  box-shadow: 0 0 12px var(--suk-gold-bright), 0 0 24px rgba(229,200,136,0.4);
}
.maint-pin-msg.is-info { color: var(--suk-info); }
.maint-pin-msg.is-success { color: var(--suk-success); }
.maint-pin-msg.is-error { color: var(--suk-danger); }

/* 维护会话标签 */
.maint-session.is-super, .maint-session #maint-session-mode.is-super {
  color: #ef4444;
  text-shadow: 0 0 6px rgba(239,68,68,0.5);
}

/* 参数调整 */
.param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.param-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: rgba(42,31,24,0.45); border: 1px solid rgba(201,169,97,0.18);
  border-radius: 14px;
}
.param-row label {
  color: var(--suk-gold-bright); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.param-unit { font-size: 11px; color: rgba(201,169,97,0.5); font-weight: 500; letter-spacing: 0.1em; }
.param-row input {
  background: rgba(10,8,6,0.6); border: 1px solid rgba(201,169,97,0.3);
  color: var(--suk-gold-bright); font-size: 22px; font-weight: 700;
  padding: 12px 16px; border-radius: 10px; outline: none;
  font-family: 'Inter', monospace;
  text-align: center;
}
.param-row input:focus { border-color: var(--suk-gold); box-shadow: 0 0 0 3px rgba(201,169,97,0.15); }
.param-hint { font-size: 11px; color: rgba(201,169,97,0.55); }

/* 清洗清单 */
.clean-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.clean-card {
  text-align: left; padding: 24px;
  background: linear-gradient(140deg, rgba(42,31,24,0.7), rgba(26,20,16,0.5));
  border: 1px solid rgba(201,169,97,0.2);
  border-radius: 16px;
  cursor: pointer; transition: all .25s;
  position: relative; overflow: hidden;
}
.clean-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent, var(--suk-gold));
}
.clean-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.clean-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.clean-card-name { font-size: 18px; font-weight: 800; color: var(--suk-gold-bright); }
.clean-card-th { font-size: 13px; color: rgba(201,169,97,0.6); margin-top: 2px; }
.clean-card-desc { font-size: 13px; color: rgba(245,236,215,0.65); margin-top: 8px; line-height: 1.5; }

/* 远程协助 */
.remote-block {
  padding: 20px 24px;
  background: rgba(42,31,24,0.45); border: 1px solid rgba(201,169,97,0.18);
  border-radius: 14px;
}
.remote-line {
  color: rgba(245,236,215,0.85); font-size: 15px; padding: 8px 0;
  border-bottom: 1px dashed rgba(201,169,97,0.12);
}
.remote-line:last-child { border-bottom: 0; }
.anim-pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.remote-actions {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* 恢复出厂 */
.factory-warning {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 14px;
  color: #fca5a5;
}
.factory-warning .fa-triangle-exclamation { font-size: 36px; color: #ef4444; flex-shrink: 0; }
.factory-confirm { margin-top: 24px; }
.factory-input {
  width: 100%; padding: 16px 20px;
  background: rgba(10,8,6,0.6); border: 2px solid rgba(239,68,68,0.4);
  color: #fca5a5; font-size: 20px; font-weight: 700;
  border-radius: 12px; outline: none;
  font-family: 'Inter', monospace; letter-spacing: 0.08em;
}
.factory-input:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

/* 通用按钮 */
.maint-btn-primary {
  background: linear-gradient(135deg, var(--suk-gold-bright), var(--suk-gold));
  color: #0a0806; border: 0; padding: 12px 24px; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(201,169,97,0.35);
  transition: transform .15s;
}
.maint-btn-primary:hover { transform: translateY(-1px); }
.maint-btn-ghost {
  background: rgba(42,31,24,0.6); color: rgba(201,169,97,0.85);
  border: 1px solid rgba(201,169,97,0.3);
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.maint-btn-ghost:hover { color: var(--suk-gold-bright); border-color: var(--suk-gold); }
.maint-btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff; border: 0; padding: 12px 24px; border-radius: 10px;
  font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(239,68,68,0.4);
  transition: transform .15s;
}
.maint-btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }
.maint-btn-danger:not(:disabled):hover { transform: translateY(-1px); }
.maint-modal-x {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; color: rgba(201,169,97,0.6); border: 0;
  cursor: pointer; font-size: 16px; margin-left: auto;
}
.maint-modal-x:hover { color: #ef4444; }

/* 支付通道选中态 */
.pay-channel.is-active {
  border-color: var(--accent, var(--suk-gold));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, rgba(42,31,24,0.6)), rgba(26,20,16,0.6));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}
