/* ============================================================
   臻好酒馆 · 连锁小酒馆小程序 UI 共享样式（v2 精修版）
   设计令牌：深墨夜底 + 暖琥珀金 + 酒红点缀
   ============================================================ */
:root {
  /* 背景层级 */
  --bg: #0C0B10;
  --bg-2: #131118;
  --card: #1B1922;
  --card-2: #24212C;
  --card-3: #2E2A36;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);

  /* 文字层级 */
  --text: #F5F1E9;
  --text-2: #DCD3C4;
  --text-3: #B3A892;
  --text-4: #847A68;
  --text-5: #57503F;

  /* 品牌色 */
  --gold: #E9AE55;
  --gold-2: #C9852F;
  --gold-soft: rgba(233,174,85,0.13);
  --gold-line: rgba(233,174,85,0.42);
  --gold-grad: linear-gradient(135deg, #F0BE6E 0%, #D18A33 100%);
  --wine: #B4473F;
  --wine-soft: rgba(180,71,63,0.16);

  --green: #7FD69A;
  --red: #F0564A;

  /* 圆角 */
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --font: "PingFang SC", "Source Han Sans SC VF", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #050407;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; }

/* 桌面居中手机画布 */
.stage {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 620px at 50% -10%, #1C1620 0%, #050407 62%);
  padding: 24px 0;
}
.phone {
  width: 390px; height: 844px;
  background: var(--bg);
  border-radius: 38px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ---------- 顶部导航 ---------- */
.navbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.nav-back { width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; }
.nav-title { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: .5px; }
.nav-title small { display:block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.nav-right { min-width: 64px; font-size: 12px; color: var(--text-3); text-align: right; }

/* ---------- 底部标签栏 ---------- */
.tabbar {
  flex-shrink: 0; height: 80px; background: #121017;
  border-top: 1px solid var(--line);
  display: flex; padding: 10px 10px 22px;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--text-4); }
.tab .t-ico { width: 25px; height: 25px; border-radius: 9px; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; }
.tab.on { color: var(--gold); }
.tab.on .t-ico { background: var(--gold-soft); }

/* ---------- 按钮 ---------- */
.btn { height: 36px; border-radius: 18px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.btn-line { width: 76px; color: var(--gold); border: 1px solid var(--gold-line); background: rgba(233,174,85,0.06); }
.btn-solid { width: 76px; background: var(--gold-grad); color: #221503; }
.cta { height: 52px; border-radius: 26px; background: var(--gold-grad); color: #221503; font-size: 16px; font-weight: 700; display:flex; align-items:center; justify-content:center; width: 100%; box-shadow: 0 10px 24px rgba(201,133,47,0.28); }
.cta.ghost { background: rgba(255,255,255,0.06); color: var(--text-2); box-shadow: none; border: 1px solid var(--line-2); }

/* ---------- 卡片 / 区块 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.section { margin: 0 20px 20px; }
.sec-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.sec-title .hint { font-size: 11px; color: var(--text-4); font-weight: 400; }

/* ---------- 提示 Toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 130px; transform: translateX(-50%);
  background: rgba(28,25,34,0.96); border: 1px solid var(--gold-line);
  color: var(--text); font-size: 13px; padding: 12px 20px; border-radius: 14px;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.toast.show { opacity: 1; }

/* ---------- 底部弹窗 ---------- */
.modal-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 150;
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%; background: var(--card-2); border-radius: 26px 26px 0 0; padding: 24px 22px 32px;
  transform: translateY(36px); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.modal-mask.show .modal-sheet { transform: translateY(0); }
.modal-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.7; }

/* 滚动区 */
.scroll { flex: 1; overflow-y: auto; }
.scroll::-webkit-scrollbar { width: 0; }

/* 通用小标签 */
.tag { font-size: 11px; color: #C9BFA9; background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 8px; }
