/* ============================================================
   AAPOKER龙湖店 — 全局样式
   设计语言：暗夜金奢（Dark & Gold）
   ============================================================ */
:root {
  --bg: #0c0c0e;
  --bg-2: #131316;
  --card: #17171b;
  --card-2: #1e1e23;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f2ede2;
  --text-2: #b8b2a4;
  --text-3: #7d7869;
  --gold: #d9a45b;
  --gold-2: #f0c982;
  --gold-deep: #b07f3c;
  --gold-grad: linear-gradient(135deg, #f0c982 0%, #d9a45b 45%, #b07f3c 100%);
  --green: #3fb97c;
  --red: #e5604f;
  --blue: #5b8fd9;
  --radius: 16px;
  --radius-s: 10px;
  --tabbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 6px 20px rgba(217, 164, 91, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #050506;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* 手机容器：桌面端居中显示手机框 */
#phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 500px) {
  #phone {
    height: min(920px, 96dvh);
    margin-top: calc((100dvh - min(920px, 96dvh)) / 2);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 8px #101013;
  }
}

#app { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; }
#app::-webkit-scrollbar { display: none; }

.page { min-height: 100%; animation: pageIn 0.28s cubic-bezier(0.22, 0.9, 0.32, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 通用组件 ---------------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; fill: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 22px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
  user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn-gold { background: var(--gold-grad); color: #241703; box-shadow: var(--shadow-gold); }
.btn-dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost { background: transparent; border: 1px solid rgba(217, 164, 91, 0.5); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 10px; line-height: 16px; font-weight: 600;
  background: rgba(217, 164, 91, 0.14); color: var(--gold);
  border: 1px solid rgba(217, 164, 91, 0.35);
}

.price { font-family: "DIN Alternate", "Bahnschrift", -apple-system, sans-serif; font-weight: 700; color: var(--gold); }
.price::first-letter { font-size: 0.72em; margin-right: 1px; }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 40px; color: var(--text-3); text-align: center; gap: 14px;
}
.empty svg { width: 110px; height: 110px; opacity: 0.5; }
.empty p { font-size: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius-s); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------- Toast ---------------- */
#toast-wrap { position: absolute; left: 0; right: 0; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 999; pointer-events: none; }
.toast {
  background: rgba(20, 20, 24, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: var(--text);
  padding: 10px 20px; border-radius: 24px; font-size: 14px;
  box-shadow: var(--shadow); animation: toastIn 0.25s ease, toastOut 0.3s ease 1.7s forwards;
  max-width: 80%; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* ---------------- 弹层（底部动作面板） ---------------- */
#overlay { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
#overlay.open { pointer-events: auto; }
.mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-2); border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line);
  padding: 20px 18px calc(18px + var(--safe-b));
  animation: sheetUp 0.3s cubic-bezier(0.24, 1, 0.36, 1);
  max-height: 82%; display: flex; flex-direction: column;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 14px; }
.sheet-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

/* ---------------- 顶部导航 ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; height: 52px; padding: 0 12px;
  background: rgba(12, 12, 14, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar .nav-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text); border-radius: 50%; }
.navbar .nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.navbar .nav-right { width: 36px; }

/* ---------------- 底部 TabBar ---------------- */
#tabbar {
  display: none;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(15, 15, 18, 0.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 50;
}
#tabbar.show { display: flex; }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 11px; transition: color 0.2s; position: relative;
}
.tab-item svg { width: 24px; height: 24px; }
.tab-item.active { color: var(--gold); }
.tab-item.active::before {
  content: ""; position: absolute; top: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--gold-grad);
}
.tab-badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- 首页 ---------------- */
.home-hero { position: relative; height: 300px; overflow: hidden; }
.home-hero img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.25) 0%, rgba(12, 12, 14, 0.05) 40%, rgba(12, 12, 14, 0.92) 88%, var(--bg) 100%);
}
.home-brand { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; z-index: 2; }
.home-brand .brand-logo {
  font-size: 34px; font-weight: 800; letter-spacing: 5px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: "Georgia", "Times New Roman", serif;
}
.home-brand .brand-sub { margin-top: 4px; font-size: 12px; letter-spacing: 6px; color: var(--text-2); }
.home-brand .brand-suits { margin-top: 8px; color: var(--gold); opacity: 0.85; font-size: 13px; letter-spacing: 10px; }

.home-member {
  margin: -30px 16px 0; position: relative; z-index: 3;
  background: linear-gradient(150deg, #23231f 0%, #17171b 60%);
  border: 1px solid rgba(217, 164, 91, 0.35);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.home-member .hm-top { display: flex; align-items: center; justify-content: space-between; }
.home-member .hm-title { font-size: 17px; font-weight: 700; }
.home-member .hm-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.home-entries { display: flex; margin-top: 18px; }
.home-entry { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-entry + .home-entry { border-left: 1px solid var(--line); }
.home-entry .he-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(217, 164, 91, 0.1); border: 1px solid rgba(217, 164, 91, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.home-entry:active .he-icon { transform: scale(0.92); }
.home-entry .he-icon svg { width: 30px; height: 30px; }
.home-entry .he-name { font-size: 15px; font-weight: 600; }
.home-entry .he-en { font-size: 10px; color: var(--text-3); letter-spacing: 1px; }

.home-section { margin: 22px 16px 0; }
.home-section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.home-section-title h3 { font-size: 17px; font-weight: 700; }
.home-section-title h3::before { content: ""; display: inline-block; width: 4px; height: 15px; border-radius: 2px; background: var(--gold-grad); margin-right: 8px; vertical-align: -2px; }
.home-section-title .more { font-size: 12px; color: var(--text-3); }

.store-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.store-bar .sb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-bar .sb-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-bar .sb-dist { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.store-bar .sb-all { font-size: 12px; color: var(--text-2); white-space: nowrap; }

.hot-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-card { flex: 0 0 132px; }
.hot-card .hc-img { width: 132px; height: 132px; border-radius: var(--radius-s); object-fit: cover; border: 1px solid var(--line); }
.hot-card .hc-name { font-size: 13px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-card .hc-price { font-size: 15px; margin-top: 2px; }

.home-announce {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(217, 164, 91, 0.08); border: 1px solid rgba(217, 164, 91, 0.22);
  border-radius: var(--radius-s); padding: 12px 14px; font-size: 12.5px; color: var(--text-2);
}
.home-announce .icon { color: var(--gold); flex: 0 0 auto; margin-top: 2px; }

.home-footer { text-align: center; padding: 30px 0 20px; color: var(--text-3); font-size: 11px; letter-spacing: 2px; }

/* ---------------- 点单页 ---------------- */
.menu-header { position: sticky; top: 0; z-index: 30; background: rgba(12, 12, 14, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.menu-store { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; }
.menu-store .ms-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.menu-store .ms-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-store .ms-dist { font-size: 11px; color: var(--text-3); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.dine-toggle { margin-left: auto; display: flex; background: var(--card-2); border-radius: 17px; padding: 2px; border: 1px solid var(--line); flex: 0 0 auto; }
.dine-toggle button { height: 30px; padding: 0 14px; border-radius: 15px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all 0.2s; }
.dine-toggle button.on { background: var(--gold-grad); color: #241703; box-shadow: var(--shadow-gold); }

.notice-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12px; color: var(--text-2); }
.notice-bar .icon { color: var(--gold); flex: 0 0 auto; }
.notice-bar .nb-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar .nb-more { color: var(--text-3); flex: 0 0 auto; }

.menu-body { display: flex; align-items: flex-start; }
.cat-nav { position: sticky; top: 0; width: 88px; flex: 0 0 88px; padding: 8px 0 140px; }
.cat-nav .cn-item {
  position: relative; padding: 13px 6px; text-align: center; font-size: 13.5px; color: var(--text-2);
  transition: color 0.2s;
}
.cat-nav .cn-item.on { color: var(--gold); font-weight: 700; }
.cat-nav .cn-item.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: var(--gold-grad);
}
.prod-list { flex: 1; min-width: 0; padding: 4px 12px 140px; }
.prod-cat-title { font-size: 14px; font-weight: 700; color: var(--text-2); padding: 12px 2px 4px; }

.prod-item { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.prod-item:last-child { border-bottom: none; }
.prod-img-wrap { position: relative; flex: 0 0 96px; }
.prod-img { width: 96px; height: 96px; border-radius: var(--radius-s); object-fit: cover; background: var(--card); }
.prod-img-wrap .tag { position: absolute; top: 0; left: 0; border-radius: 10px 0 10px 0; border: none; padding: 2px 8px; background: rgba(12, 12, 14, 0.72); backdrop-filter: blur(4px); }
.prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-name { font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-sales { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.prod-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.prod-price { font-size: 19px; }
.prod-price .p-unit { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 2px; }

.add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-grad); color: #241703;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow-gold); transition: transform 0.12s;
}
.add-btn:active { transform: scale(0.85); }
.spec-btn {
  height: 30px; padding: 0 13px; border-radius: 15px;
  background: var(--gold-grad); color: #241703; font-size: 12px; font-weight: 700;
  box-shadow: var(--shadow-gold); transition: transform 0.12s;
}
.spec-btn:active { transform: scale(0.92); }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 26px; height: 26px; border-radius: 50%; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.stepper .st-minus { border: 1px solid rgba(217, 164, 91, 0.5); color: var(--gold); }
.stepper .st-plus { background: var(--gold-grad); color: #241703; }
.stepper .st-num { min-width: 16px; text-align: center; font-size: 14px; font-weight: 600; }

/* 购物车悬浮条 */
.cart-bar {
  position: absolute; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 40;
  display: flex; align-items: center; height: 54px; border-radius: 27px;
  background: rgba(28, 28, 32, 0.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 164, 91, 0.3); box-shadow: var(--shadow);
  padding: 0 6px 0 12px; animation: cartUp 0.25s ease;
}
@keyframes cartUp { from { transform: translateY(20px); opacity: 0; } }
.cart-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(217, 164, 91, 0.14); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.cart-icon svg { width: 21px; height: 21px; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-total { flex: 1; margin-left: 12px; }
.cart-total .ct-price { font-size: 19px; }
.cart-total .ct-hint { font-size: 10px; color: var(--text-3); }
.cart-submit { height: 42px; padding: 0 24px; border-radius: 21px; background: var(--gold-grad); color: #241703; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-gold); }

/* 购物车面板 */
.cart-panel .cp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cart-panel .cp-title { font-size: 16px; font-weight: 700; }
.cart-panel .cp-clear { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.cart-panel .cp-list { overflow-y: auto; max-height: 46dvh; }
.cp-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.cp-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.cp-item .ci-info { flex: 1; min-width: 0; }
.cp-item .ci-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-item .ci-spec { font-size: 11px; color: var(--text-3); }
.cp-item .ci-price { font-size: 15px; width: 66px; }

/* 规格弹窗 */
.spec-prod { display: flex; gap: 12px; margin-bottom: 16px; }
.spec-prod img { width: 76px; height: 76px; border-radius: var(--radius-s); object-fit: cover; }
.spec-prod .sp-name { font-size: 16px; font-weight: 700; }
.spec-prod .sp-price { font-size: 19px; margin-top: 6px; }
.spec-group { margin-bottom: 16px; }
.spec-group .sg-name { font-size: 13px; color: var(--text-2); margin-bottom: 9px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.spec-opt {
  padding: 7px 16px; border-radius: 18px; font-size: 13px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text-2);
  transition: all 0.15s;
}
.spec-opt.on { border-color: var(--gold); color: var(--gold); background: rgba(217, 164, 91, 0.1); font-weight: 600; }
.spec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ---------------- 商品详情 ---------------- */
.pd-hero { position: relative; }
.pd-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-hero .pd-back {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(12, 12, 14, 0.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff;
}
.pd-hero .pd-idx { position: absolute; right: 14px; bottom: 26px; padding: 2px 10px; border-radius: 12px; background: rgba(12, 12, 14, 0.55); font-size: 11px; color: #fff; }
.pd-card {
  position: relative; margin-top: -18px; background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 20px 16px 16px; min-height: 200px;
}
.pd-name { font-size: 20px; font-weight: 800; }
.pd-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.pd-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.pd-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.pd-price { font-size: 27px; }
.pd-price .p-unit { font-size: 12px; color: var(--text-3); font-weight: 400; }
.pd-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.pd-detail-text { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.pd-attrs { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pd-attrs .row { display: flex; }
.pd-attrs .k { width: 72px; color: var(--text-3); flex: 0 0 auto; }
.pd-attrs .v { color: var(--text-2); }

.pd-bar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(15, 15, 18, 0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.pd-icon-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font-size: 10px; padding: 0 4px; }
.pd-icon-btn svg { width: 22px; height: 22px; }
.pd-icon-btn .cart-badge { top: -3px; right: -2px; }
.pd-actions { flex: 1; display: flex; gap: 10px; }
.pd-actions .btn { flex: 1; height: 42px; }

/* ---------------- 结算页 ---------------- */
.co-section { margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.co-label { font-size: 13px; color: var(--text-2); margin-bottom: 10px; font-weight: 600; }
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.table-opt { height: 38px; border-radius: var(--radius-s); background: var(--card-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); transition: all 0.15s; }
.table-opt.on { border-color: var(--gold); color: var(--gold); background: rgba(217, 164, 91, 0.12); }
.time-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.time-opt { padding: 8px 14px; border-radius: var(--radius-s); background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.time-opt.on { border-color: var(--gold); color: var(--gold); background: rgba(217, 164, 91, 0.12); }

.co-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.co-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.co-item .ci-info { flex: 1; min-width: 0; }
.co-item .ci-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item .ci-spec { font-size: 11px; color: var(--text-3); }
.co-item .ci-qty { font-size: 13px; color: var(--text-2); width: 36px; text-align: center; }
.co-item .ci-price { width: 64px; text-align: right; font-size: 15px; }

.remark-input {
  width: 100%; min-height: 64px; background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 12px; font-size: 13px; color: var(--text); resize: none;
}
.remark-input::placeholder { color: var(--text-3); }

.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); padding: 4px 0; }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 15px; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.sum-row.total .price { font-size: 21px; }

.co-bar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(15, 15, 18, 0.95); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.co-bar .co-total { flex: 1; }
.co-bar .co-total .price { font-size: 22px; }
.co-bar .co-total .ct-hint { font-size: 10px; color: var(--text-3); }
.co-bar .btn { padding: 0 34px; }

/* 支付弹窗 */
.pay-amount { text-align: center; padding: 12px 0 20px; }
.pay-amount .price { font-size: 38px; }
.pay-amount .pa-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.pay-way { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--line); }
.pay-way .pw-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(63, 185, 124, 0.15); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 20px; }
.pay-way .pw-name { flex: 1; font-size: 15px; font-weight: 600; }
.pay-way .pw-sub { font-size: 11px; color: var(--text-3); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* ---------------- 订单页 ---------------- */
.order-tabs { display: flex; gap: 4px; padding: 10px 14px; position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 14, 0.92); backdrop-filter: blur(12px); }
.order-tab { padding: 7px 14px; border-radius: 17px; font-size: 13px; color: var(--text-2); background: var(--card); border: 1px solid var(--line); }
.order-tab.on { color: var(--gold); border-color: rgba(217, 164, 91, 0.5); background: rgba(217, 164, 91, 0.1); font-weight: 600; }

.order-card { margin: 0 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.order-card .oc-store { font-size: 14px; font-weight: 700; }
.order-card .oc-status { font-size: 12.5px; font-weight: 600; }
.oc-status.st-pending_pay { color: var(--gold); }
.oc-status.st-preparing { color: var(--blue); }
.oc-status.st-ready { color: var(--green); }
.oc-status.st-completed { color: var(--text-3); }
.oc-status.st-cancelled { color: var(--text-3); }
.oc-items { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.oc-items::-webkit-scrollbar { display: none; }
.oc-items img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.oc-items .oc-more { width: 52px; height: 52px; border-radius: 8px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2); flex: 0 0 auto; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; }
.oc-foot .oc-total { font-size: 13px; color: var(--text-2); }
.oc-foot .oc-total .price { font-size: 17px; margin-left: 4px; }
.oc-btns { display: flex; gap: 8px; }

/* 订单详情 */
.od-status {
  padding: 26px 18px 60px;
  background: linear-gradient(160deg, rgba(217, 164, 91, 0.18), rgba(12, 12, 14, 0) 70%);
}
.od-status .ods-title { font-size: 21px; font-weight: 800; }
.od-status .ods-sub { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.pickup-card {
  margin: -46px 14px 0; background: var(--card); border: 1px solid rgba(217, 164, 91, 0.35);
  border-radius: var(--radius); padding: 18px; text-align: center; position: relative; z-index: 2;
  box-shadow: var(--shadow);
}
.pickup-card .pc-label { font-size: 12px; color: var(--text-3); }
.pickup-card .pc-code { font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--gold); font-family: "DIN Alternate", "Bahnschrift", monospace; margin-top: 4px; }
.pickup-card .pc-table { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.od-section { margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.od-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.od-info-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); padding: 3px 0; }
.od-info-row .v { color: var(--text-2); max-width: 65%; text-align: right; word-break: break-all; }
.od-actions { display: flex; gap: 10px; padding: 16px 14px calc(20px + var(--safe-b)); }
.od-actions .btn { flex: 1; }

/* ---------------- 存酒 ---------------- */
.storage-card { margin: 0 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.storage-card .sc-main { display: flex; gap: 12px; }
.storage-card img { width: 72px; height: 72px; border-radius: var(--radius-s); object-fit: cover; }
.storage-card .sc-info { flex: 1; min-width: 0; }
.storage-card .sc-name { font-size: 15px; font-weight: 700; }
.storage-card .sc-no { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.storage-card .sc-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-2); margin-top: 6px; }
.sc-progress { margin-top: 12px; }
.sc-progress .scp-bar { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.sc-progress .scp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold-grad); }
.sc-progress .scp-text { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.storage-card .sc-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sc-status-pill { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.sc-status-pill.stored { color: var(--green); background: rgba(63, 185, 124, 0.12); }
.sc-status-pill.finished { color: var(--text-3); background: var(--card-2); }
.storage-fab { margin: 16px 14px calc(20px + var(--safe-b)); }

/* 存酒表单 */
.form-item { margin-bottom: 16px; }
.form-item .fi-label { font-size: 13px; color: var(--text-2); margin-bottom: 9px; font-weight: 600; }
.wine-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); margin-bottom: 9px; transition: all 0.15s; }
.wine-opt.on { border-color: var(--gold); background: rgba(217, 164, 91, 0.08); }
.wine-opt img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.wine-opt .wo-name { flex: 1; font-size: 14px; font-weight: 600; }
.wine-opt .wo-price { font-size: 13px; color: var(--text-3); }
.store-opt { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); margin-bottom: 9px; }
.store-opt.on { border-color: var(--gold); background: rgba(217, 164, 91, 0.08); }
.store-opt .so-name { font-size: 14px; font-weight: 600; }
.store-opt .so-addr { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ---------------- 会员码 ---------------- */
.member-wrap { padding: 18px 16px calc(30px + var(--safe-b)); }
.member-card {
  background: linear-gradient(165deg, #26241e 0%, #17171b 55%);
  border: 1px solid rgba(217, 164, 91, 0.4); border-radius: 20px;
  padding: 24px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.member-card::before {
  content: "♠"; position: absolute; right: -18px; top: -30px; font-size: 130px;
  color: rgba(217, 164, 91, 0.06);
}
.mc-user { display: flex; align-items: center; gap: 12px; }
.mc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-grad); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #241703; border: 2px solid rgba(240, 201, 130, 0.5);
}
.mc-user .mc-name { font-size: 17px; font-weight: 700; }
.mc-user .mc-level { display: inline-block; margin-top: 4px; font-size: 10px; padding: 2px 9px; border-radius: 9px; background: rgba(217, 164, 91, 0.16); color: var(--gold); border: 1px solid rgba(217, 164, 91, 0.4); }
.mc-codes { background: #fff; border-radius: 14px; margin-top: 20px; padding: 20px 16px; text-align: center; }
.mc-codes canvas { image-rendering: pixelated; }
.mc-codes .mc-refresh { font-size: 11px; color: #999; margin-top: 10px; }
.mc-stats { display: flex; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.mc-stat { flex: 1; text-align: center; }
.mc-stat + .mc-stat { border-left: 1px solid var(--line); }
.mc-stat .mcs-num { font-size: 21px; font-weight: 800; color: var(--gold); font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.mc-stat .mcs-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mc-tip { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 16px; }

/* ---------------- 我的 ---------------- */
.me-head { padding: 26px 18px 56px; background: linear-gradient(165deg, rgba(217, 164, 91, 0.2), rgba(12, 12, 14, 0) 75%); }
.me-user { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--gold-grad); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #241703; border: 2px solid rgba(240, 201, 130, 0.5); }
.me-user .me-name { font-size: 19px; font-weight: 800; }
.me-user .me-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.me-user .me-edit { margin-left: auto; color: var(--text-3); font-size: 12px; }
.me-assets {
  margin: -42px 14px 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; padding: 16px 0; position: relative; z-index: 2;
}
.me-asset { flex: 1; text-align: center; }
.me-asset + .me-asset { border-left: 1px solid var(--line); }
.me-asset .ma-num { font-size: 19px; font-weight: 800; color: var(--gold); }
.me-asset .ma-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.me-grid { margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.me-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 0; color: var(--text-2); font-size: 12px; }
.me-cell svg { width: 26px; height: 26px; color: var(--gold); }
.me-list { margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.me-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.me-row:last-child { border-bottom: none; }
.me-row svg { width: 20px; height: 20px; color: var(--gold); }
.me-row .mr-arrow { margin-left: auto; color: var(--text-3); }
.me-logout { margin: 16px 14px calc(24px + var(--safe-b)); }

/* ---------------- 登录 ---------------- */
.login-hero { text-align: center; padding: 64px 0 30px; }
.login-hero .brand-logo { font-size: 38px; font-weight: 800; letter-spacing: 6px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Georgia, serif; }
.login-hero .brand-sub { margin-top: 8px; font-size: 12px; letter-spacing: 7px; color: var(--text-2); }
.login-form { padding: 10px 28px; }
.login-item { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 4px; }
.login-item svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
.login-item input { flex: 1; font-size: 16px; color: var(--text); }
.login-item input::placeholder { color: var(--text-3); }
.login-item .code-btn { font-size: 13px; color: var(--gold); white-space: nowrap; }
.login-btn { margin-top: 34px; }
.login-tip { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 18px; line-height: 1.8; }

/* ---------------- 门店列表 ---------------- */
.store-item { margin: 0 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.store-item .si-head { display: flex; justify-content: space-between; align-items: flex-start; }
.store-item .si-name { font-size: 15px; font-weight: 700; flex: 1; }
.store-item .si-dist { font-size: 12px; color: var(--gold); white-space: nowrap; margin-left: 10px; }
.store-item .si-addr { font-size: 12px; color: var(--text-2); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.store-item .si-hours { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.store-item .si-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------------- 优惠券 ---------------- */
.coupon-card { display: flex; margin: 0 14px 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.coupon-card .cc-left { flex: 0 0 108px; background: linear-gradient(150deg, rgba(217, 164, 91, 0.25), rgba(217, 164, 91, 0.08)); display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px dashed rgba(217, 164, 91, 0.4); }
.coupon-card .cc-amount { font-size: 26px; font-weight: 800; color: var(--gold); font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.coupon-card .cc-amount i { font-style: normal; font-size: 14px; }
.coupon-card .cc-min { font-size: 10px; color: var(--text-2); }
.coupon-card .cc-right { flex: 1; padding: 14px; }
.coupon-card .cc-title { font-size: 14px; font-weight: 700; }
.coupon-card .cc-expire { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* 搜索结果 */
.search-bar { display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 19px; height: 38px; padding: 0 14px; margin: 0 14px 4px; }
.search-bar svg { width: 16px; height: 16px; color: var(--text-3); }
.search-bar input { flex: 1; font-size: 13px; }
.search-bar input::placeholder { color: var(--text-3); }
