/* 健康VIP中心 H5 - 金色主题
   色板来源：开发文档 表20；尺寸按 375px 设计稿（小程序 rpx ÷ 2） */
:root {
  --gold: #C9A227;
  --gold-deep: #8A6D1B;
  --gold-light: #E6C86B;
  --champagne: #F3E3B8;
  --warm-white: #FBF8F1;
  --ink: #1E1A14;
  --sub-text: #6B6255;
  --line: #E7DCC4;
  --success: #2F7D5D;
  --warning: #C05621;
  --danger: #B3261E;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { max-width: 480px; margin: 0 auto; background: #EDE7DA; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  background: var(--warm-white);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* 顶部导航栏（浅金，与小程序一致） */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 44px; background: var(--champagne);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.navbar .back { position: absolute; left: 12px; font-size: 22px; color: var(--ink); cursor: pointer; }
.navbar .title { font-size: 16px; font-weight: 600; color: var(--ink); }

/* 页面容器 */
.page-wrap { padding: 12px 14px 80px; min-height: calc(100vh - 104px); }

/* 通用卡片 */
.card { background: #FFF; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }

/* 黑金鎏金会员卡 */
.gold-card {
  background:
    linear-gradient(112deg, transparent 24%, rgba(230,200,107,0.05) 36%, rgba(243,227,184,0.20) 50%, rgba(230,200,107,0.05) 64%, transparent 76%),
    linear-gradient(180deg, rgba(201,162,39,0.14) 0%, rgba(201,162,39,0) 42%),
    linear-gradient(0deg, rgba(138,109,27,0.20) 0%, transparent 32%),
    linear-gradient(135deg, #17130F 0%, #2A2116 50%, #3A2F1E 100%);
  border: 1px solid var(--gold-deep);
  border-radius: 10px;
  color: var(--champagne);
  position: relative; overflow: hidden;
}
.gold-card::after {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,200,107,0.28) 0%, rgba(201,162,39,0.08) 45%, rgba(201,162,39,0) 72%);
  pointer-events: none;
}

/* 文字层级 */
.t-display { font-size: 32px; font-weight: 600; }
.t-title { font-size: 24px; font-weight: 600; }
.t-subtitle { font-size: 20px; font-weight: 500; }
.t-body { font-size: 16px; }
.t-aux { font-size: 14px; color: var(--sub-text); }
.t-mini { font-size: 12px; color: var(--sub-text); }
.gold-text { color: var(--gold); }
.muted-text { color: var(--sub-text); }
.status-ok { color: var(--success); }
.status-warn { color: var(--warning); }
.status-danger { color: var(--danger); }

/* 按钮 */
.btn-primary {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #C9A227 0%, #8A6D1B 100%);
  color: #1E1A14; font-weight: 600; font-size: 16px;
  padding: 12px 0; border-radius: 8px; cursor: pointer; border: none;
}
.btn-primary.disabled { opacity: 0.45; background: #CFC6B4; }
.btn-ghost {
  display: block; text-align: center; background: #FFF;
  color: var(--gold-deep); border: 1px solid var(--gold);
  font-size: 15px; padding: 10px 0; border-radius: 8px; cursor: pointer;
}

/* 标签 */
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--champagne); color: var(--gold-deep); }
.tag-gold { background: linear-gradient(135deg, #C9A227, #8A6D1B); color: #1E1A14; font-weight: 600; }
.tag-line { background: #FFF; border: 1px solid var(--gold); color: var(--gold-deep); }

/* 分区标题 */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.section-title { font-size: 17px; font-weight: 600; padding-left: 10px; position: relative; }
.section-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #E6C86B, #8A6D1B); }
.section-more { font-size: 13px; color: var(--sub-text); cursor: pointer; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }

/* 空态 */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 50px 20px; color: var(--sub-text); }
.empty-state .empty-icon { font-size: 48px; color: var(--line); margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; margin-bottom: 16px; }

/* 底部 tabBar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 56px; z-index: 100;
  background: #FFF; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: pointer; color: #9A9182; }
.tabbar .tab.active { color: var(--gold); }
.tabbar .tab img { width: 24px; height: 24px; }
.tabbar .tab span { font-size: 11px; margin-top: 2px; }

/* 底部固定操作栏 */
.bottom-bar {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #FFF;
  border-top: 1px solid var(--line); padding: 9px 14px; z-index: 90;
}
.disclaimer { text-align: center; font-size: 11px; color: var(--sub-text); margin-top: 16px; opacity: 0.8; }

/* 加载动画 */
.loading-spinner { width: 24px; height: 24px; border: 3px solid var(--champagne); border-top-color: var(--gold-deep); border-radius: 50%; margin-bottom: 12px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
