/* ==========================================================================
   卡卷核销商城 H5 · 基础样式（主题变量 / 重置 / 公共组件）
   ========================================================================== */

:root {
  /* 主色：金 */
  --gold: #C9A24D;
  --gold-deep: #B48A2E;
  --gold-light: #E8D391;
  --gold-bg: #FDF6E7;
  --gold-border: #F1E5C9;

  /* 文字 */
  --ink: #1A1A1A;
  --ink-2: #5C5C5C;
  --ink-3: #9C9C9C;
  --ink-4: #B8B8B8;

  /* 面/线 */
  --bg: #F2F1EF;
  --card: #FFFFFF;
  --panel: #FBFBF9;
  --line: #F0EEE9;
  --line-warm: #EFE7D6;

  --radius: 14px;
  --tabbar-h: 58px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #E7E6E4;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
}

h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
svg { display: block; }

/* ---------- 页面容器 ---------- */
.app {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.page { padding: 12px 12px 16px; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
}

/* ---------- 卡片标题栏（热门商品 / 店铺公告 / 常见问题 共用） ---------- */
.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
}

.panel__icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel__icon svg { width: 14px; height: 14px; }

.panel__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.panel__action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.panel__action svg { width: 14px; height: 14px; }

/* ---------- 底部导航栏 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  max-width: 430px;
  display: flex;
  background: #FFFFFF;
  border-top: 1px solid #EDEDED;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 6px;
  color: #A6A6A6;
  font-size: 11.5px;
  line-height: 1.4;
}

.tabbar__item svg { width: 24px; height: 24px; }

.tabbar__item.is-active { color: var(--gold); }

/* ---------- 占位页（导航已就位，内容待开发） ---------- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: calc(100vh - var(--tabbar-h) - env(safe-area-inset-bottom, 0px));
  padding: 40px 28px 60px;
  text-align: center;
}

.ph__icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: #FFFFFF;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(160, 140, 90, 0.12);
}

.ph__icon svg { width: 30px; height: 30px; }

.ph__title { font-size: 17px; font-weight: 700; }
.ph__desc { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

.ph__back {
  margin-top: 6px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
