/* No Signal 顾客端 —— 黑金奢华 · Mobile First */

:root {
  --bg: #10100F;
  --bg-2: #1C1B19;
  --gold: #C6A66A;
  --gold-2: #92764B;
  --amber: #B77936;
  --text: #F2EDE3;
  --text-2: #AAA397;
  --line: rgba(198, 166, 106, 0.18);
  --danger: #D86A5B;
  --ok: #7BAE7F;
  --radius: 14px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { min-height: 100vh; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }

.hidden { display: none !important; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(16, 16, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Didot", "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.brand-mark {
  display: inline-block;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 1.35em;
  height: 1.35em;
  line-height: 1.3em;
  text-align: center;
  font-size: 0.72em;
  margin-right: 2px;
}
.table-badge {
  font-size: 13px;
  color: var(--gold);
  border: 1px solid var(--gold-2);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.05em;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.05s;
}
.btn:active { opacity: 0.85; transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--bg-2); color: var(--text); border-color: var(--gold-2); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #16130C; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* 扫码引导 */
.view { padding-bottom: 84px; }
.gate { padding: 48px 24px; text-align: center; }
.gate-title {
  font-family: "Didot", "Times New Roman", "Songti SC", serif;
  font-size: 44px;
  letter-spacing: 0.3em;
  margin: 20px 0 8px;
  color: var(--gold);
}
.gate-sub { color: var(--text-2); margin: 0 0 36px; letter-spacing: 0.1em; }
.gate-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: left;
}
.gate-card label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.gate-card input {
  width: 100%;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--gold-2);
  border-radius: 10px;
  color: var(--text);
  padding: 0 14px;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gate-card input:focus { outline: none; border-color: var(--gold); }
.gate-hint { color: var(--text-2); font-size: 13px; margin-top: 20px; }

/* 分类导航 */
.cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.cat-item.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #16130C;
  border-color: transparent;
  font-weight: 600;
}

/* 商品列表（纯文字，无图片） */
.product-list { padding: 8px 16px 0; }
.product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.product-main { flex: 1; min-width: 0; }
.product-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-name { font-size: 17px; font-weight: 600; }
.product-name-en { font-size: 12px; color: var(--text-2); letter-spacing: 0.02em; margin-top: 2px; }
.product-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { color: var(--amber); font-weight: 700; font-size: 17px; white-space: nowrap; }
.product-add {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  background: transparent;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* 底部购物车栏 */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 19, 17, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-2);
  max-width: 640px;
  margin: 0 auto;
}
.cart-bar-info { display: flex; align-items: baseline; gap: 12px; }
.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--amber);
  color: #16130C;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-total { font-size: 20px; font-weight: 700; color: var(--gold); }

/* 视图标题 */
.view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.view-head h2 { margin: 0; font-size: 18px; letter-spacing: 0.05em; }
.back-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 0;
}

/* 购物车列表 */
.cart-list { padding: 12px 16px; }
.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.cart-row-main { flex: 1; min-width: 0; }
.cart-row-name { font-size: 15px; font-weight: 600; }
.cart-row-note { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.cart-row-price { font-size: 13px; color: var(--amber); margin-top: 4px; }
.cart-row-actions { display: flex; align-items: center; gap: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  background: transparent;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.stepper span { min-width: 22px; text-align: center; font-weight: 600; }
.cart-remove { color: var(--danger); background: transparent; border: 1px solid rgba(216, 106, 91, 0.4); border-radius: 9px; font-size: 13px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.cart-empty { text-align: center; color: var(--text-2); padding: 60px 20px; }
.cart-extra { padding: 12px 16px; }
.cart-extra label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.cart-extra input {
  width: 100%;
  height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--gold-2);
  border-radius: 10px;
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
}
.cart-extra input:focus { outline: none; border-color: var(--gold); }
.cart-submit-wrap { padding: 16px; }

/* 订单 */
.order-content { padding: 20px 16px; }
.order-hero { text-align: center; padding: 20px 0 24px; }
.order-hero .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 30px;
  line-height: 54px;
  margin: 0 auto 14px;
}
.order-no { color: var(--text-2); font-size: 13px; letter-spacing: 0.05em; }
.order-status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-2);
  color: var(--gold);
  font-size: 14px;
}
.order-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.order-card h3 { margin: 0 0 10px; font-size: 14px; color: var(--text-2); letter-spacing: 0.05em; }
.order-line { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.order-line .muted { color: var(--text-2); }
.order-item { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .qty { color: var(--text-2); }
.order-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; color: var(--gold); padding-top: 8px; }

/* 弹层 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-sheet {
  width: 100%;
  max-width: 640px;
  background: var(--bg-2);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  position: relative;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 26px;
  cursor: pointer;
}
.modal-title { font-size: 20px; font-weight: 700; margin: 4px 0 4px; }
.modal-title-en { font-size: 13px; color: var(--text-2); margin: 0 0 10px; }
.modal-desc { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.modal-price { font-size: 20px; color: var(--amber); font-weight: 700; margin: 0 0 16px; }
.modal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-row label { font-size: 14px; color: var(--text-2); }
.modal-note {
  width: 100%;
  height: 46px;
  background: var(--bg);
  border: 1px solid var(--gold-2);
  border-radius: 10px;
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  margin-bottom: 16px;
}
.modal-note:focus { outline: none; border-color: var(--gold); }

/* 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  background: rgba(28, 27, 25, 0.96);
  border: 1px solid var(--gold-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 60;
  max-width: 86%;
  text-align: center;
}

.list-footer-space { height: 20px; }

@media (max-width: 320px) {
  .product-name { font-size: 15px; }
  .brand { font-size: 20px; }
}
