/* ============================================================
   天机阁 · 精致国风主题（全局唯一样式表）
   —— 统一暗金 / 朱红 / 墨色 / 米色；卡片光晕、按钮渐变、
      标题渐变小图标、输入质感、底部导航高亮，风格一致。
   本表为全局样式，所有页面统一 <link> 引用，保证全 App 视觉一致。
   ============================================================ */

/* ---------- 主题色盘 ---------- */
:root {
  /* 主色 */
  --primary-red: #c2403a;      /* 朱红/宫墙红 */
  --deep-red: #8c2420;         /* 深红 */
  --light-red: #d9605a;        /* 亮红 */
  --gold: #d9a85c;             /* 鎏金主色 */
  --light-gold: #f3d591;       /* 淡金/高亮 */
  --dark-gold: #b8863c;        /* 暗金 */
  --ink: #15110c;              /* 墨色 */
  --bg-dark: #15110c;          /* 页面底色 */
  --bg-card: #1d1811;          /* 卡片底色 */
  --text-primary: #ece2cb;     /* 主文字(米色) */
  --text-secondary: #a4967f;   /* 次要文字 */
  --border-gold: rgba(217,168,92,0.28);
  --input-bg: rgba(26,21,15,0.85);
  --shadow-gold: 0 8px 26px rgba(217,168,92,0.16);
  --shadow-red: 0 8px 26px rgba(194,64,58,0.20);
  --cream: rgba(29,24,17,0.92);
  --cream-dark: rgba(18,14,10,0.72);

  /* 别名：兼容各页面内联样式 / 旧引用（保证统一渲染） */
  --gold-light: var(--light-gold);
  --gold-dark: var(--dark-gold);
  --text: var(--text-primary);
  --text2: var(--text-secondary);
  --text-dim: var(--text-secondary);
  --text-muted: var(--text-secondary);
  --border: var(--border-gold);
  --bg: var(--bg-dark);
  --card: var(--bg-card);
  --bg2: #100d09;
  --red: var(--primary-red);
  --red-light: var(--light-red);
  --primary-gold: var(--gold);
  --danger: var(--primary-red);
  --green: #5aa96b;
  --blue: #5a8fd0;
}

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

/* 让首帧就是深色底，避免每次进页闪出刺眼白底 */
html { background-color: var(--bg-dark); }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "STKaiti", "KaiTi", serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* 墨底 + 细微纸纹 + 四角金红光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 12%, rgba(243,213,145,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 26% 34%, rgba(243,213,145,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 9%, rgba(243,213,145,0.34) 0%, transparent 100%),
    radial-gradient(1px 1px at 63% 46%, rgba(243,213,145,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 21%, rgba(243,213,145,0.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 58%, rgba(243,213,145,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 36% 66%, rgba(243,213,145,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 82%, rgba(243,213,145,0.24) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 76%, rgba(243,213,145,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 88%, rgba(243,213,145,0.18) 0%, transparent 100%),
    radial-gradient(circle at 6% 16%, rgba(217,168,92,0.06) 0%, transparent 34%),
    radial-gradient(circle at 96% 86%, rgba(194,64,58,0.05) 0%, transparent 32%),
    radial-gradient(circle at 60% 40%, rgba(217,168,92,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* 统一主容器 */
.container,
.main-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
  padding-bottom: 82px;
  position: relative;
  z-index: 1;
}

/* ---------- 页面标题(功能页统一) ---------- */
.header {
  text-align: center;
  padding: 28px 0 20px;
  position: relative;
  margin-bottom: 6px;
}

.header h1 {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 45%, var(--dark-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  filter: drop-shadow(0 4px 10px rgba(217,168,92,0.30));
  position: relative;
  padding-bottom: 10px;
}

/* 图标点缀 */
.header h1::before,
.header h1::after {
  content: "❖";
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
  margin: 0 12px;
  font-size: 20px;
  vertical-align: middle;
  opacity: 0.7;
}

/* 标题下渐变金线 */
.header::after {
  content: "";
  display: block;
  width: 132px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.55;
}

.header .subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 3px;
}

/* ---------- 卡片(统一精致) ---------- */
.card {
  background: linear-gradient(165deg, rgba(32,27,19,0.96) 0%, rgba(22,18,12,0.94) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(243,213,145,0.06);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* 顶部渐变金线装饰 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 4%, var(--dark-gold) 30%, var(--light-gold) 50%, var(--dark-gold) 70%, transparent 96%);
  opacity: 0.6;
}

/* 内描边 */
.card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(217,168,92,0.10);
  border-radius: 11px;
  pointer-events: none;
}

/* 卡片悬停：上浮 + 金色光晕 */
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,0.42), 0 0 24px rgba(217,168,92,0.14), inset 0 1px 0 rgba(243,213,145,0.08);
}

.card-title {
  font-size: 18px;
  color: var(--light-gold);
  font-weight: bold;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(217,168,92,0.30);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.card-title::before {
  content: "◆";
  color: var(--gold);
  font-size: 12px;
  text-shadow: 0 0 8px rgba(217,168,92,0.6);
}

/* ---------- 功能卡片网格(首页/功能页) ---------- */
.function-grid,
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.function-card,
.feature-card {
  background: linear-gradient(160deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 15px;
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}

/* 顶部光带 */
.function-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity .22s ease;
}

.function-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4), 0 0 22px rgba(217,168,92,0.16);
}

.function-card:hover::before,
.feature-card:hover::before { opacity: 1; }

.function-card:active,
.feature-card:active { transform: translateY(-1px) scale(.98); }

.function-card.locked::after {
  content: "🔒";
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 15px;
}

.function-icon,
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: radial-gradient(circle, rgba(217,168,92,0.18) 0%, transparent 72%);
  border: 1px solid rgba(217,168,92,0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .22s ease;
}

.feature-card:hover .feature-icon,
.function-card:hover .function-icon { transform: scale(1.10) rotate(-4deg); }

.function-icon svg, .feature-icon svg { width: 26px; height: 26px; }

.function-name,
.feature-name {
  font-size: 15px;
  color: var(--light-gold);
  font-weight: bold;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.function-desc,
.feature-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.function-price {
  font-size: 13px;
  color: var(--gold);
  font-weight: bold;
  margin-top: 8px;
}

.function-card.free .function-price { color: var(--green); }

/* ---------- 首页 顶部Header ---------- */
.app-header {
  background: linear-gradient(180deg, rgba(21,17,12,0.98) 0%, rgba(28,23,16,0.95) 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 13px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(6px);
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(217,168,92,0.16) 0%, rgba(21,17,12,0.9) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(217,168,92,0.18);
}
.header-logo svg { width: 22px; height: 22px; }
.header-title {
  font-size: 20px;
  color: var(--light-gold);
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(217,168,92,0.35);
}
.header-subtitle { font-size: 10px; color: var(--text-secondary); letter-spacing: 1px; margin-top: 2px; }

.login-bar { display: flex; align-items: center; gap: 10px; }
.login-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle, rgba(217,168,92,0.14) 0%, rgba(21,17,12,0.9) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.login-avatar svg { width: 18px; height: 18px; }
.login-text { font-size: 13px; color: var(--text-secondary); }
.login-text strong { color: var(--light-gold); font-weight: 500; }
.login-btn {
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  color: #221a10;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(217,168,92,0.30);
}
.login-bar.logged .login-avatar { border-color: var(--light-gold); }
.login-bar.logged .login-text { color: var(--light-gold); }

/* ---------- 首页 Hero / 八卦 ---------- */
.hero-section { text-align: center; padding: 26px 0 16px; }
.bagua-container { width: 122px; height: 122px; margin: 0 auto 16px; position: relative; }
.bagua-ring {
  width: 100%; height: 100%;
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: inset 0 0 26px rgba(217,168,92,0.12), 0 0 30px rgba(217,168,92,0.10);
  animation: slowRotate 30s linear infinite;
}
@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.bagua-inner {
  width: 84px; height: 84px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(217,168,92,0.12) 0%, transparent 72%);
  animation: slowRotateReverse 20s linear infinite;
}
@keyframes slowRotateReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.bagua-symbol { font-size: 38px; color: var(--light-gold); text-shadow: 0 0 22px rgba(217,168,92,0.55); }

.hero-title {
  font-size: 26px;
  letter-spacing: 6px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 50%, var(--dark-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(217,168,92,0.30));
  margin-bottom: 8px;
}
.hero-desc { font-size: 13px; color: var(--text-secondary); letter-spacing: 2px; }

/* ---------- 分区标题 ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 13px;
  padding-left: 4px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--gold), var(--dark-gold));
  border-radius: 2px;
}
.section-title span {
  font-size: 15px;
  color: var(--light-gold);
  letter-spacing: 2px;
  font-weight: 500;
}

/* ---------- 今日宜忌 / 每日签到 ---------- */
.daily-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(217,168,92,0.16) 0%, rgba(194,64,58,0.12) 100%);
  border: 1px solid rgba(217,168,92,0.34);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30), inset 0 1px 0 rgba(243,213,145,0.08);
  position: relative;
  overflow: hidden;
}
.daily-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
  opacity: 0.6;
}
.daily-left { flex: 1; min-width: 0; }
.daily-title { font-size: 16px; color: var(--light-gold); font-weight: bold; letter-spacing: 1px; margin-bottom: 5px; }
.daily-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.daily-text { font-size: 13px; color: var(--text-primary); line-height: 1.7; }
.daily-right { flex: none; text-align: center; }
.daily-right .btn { margin-bottom: 6px; white-space: nowrap; }
.checkin-info { font-size: 12px; color: var(--text-secondary); width: 92px; }
.checkin-benefits {
  flex-basis: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217,168,92,0.26);
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.2px;
}
.checkin-benefits .cb-g { color: var(--light-gold); font-weight: bold; }

/* ---------- 快速入口横幅 ---------- */
.quick-banner {
  background: linear-gradient(135deg, rgba(60,45,30,0.55) 0%, rgba(28,23,16,0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick-banner:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(217,168,92,0.14); }
.quick-banner:active { border-color: var(--gold); }
.banner-left { display: flex; align-items: center; gap: 10px; }
.banner-icon {
  width: 38px; height: 38px;
  background: radial-gradient(circle, rgba(217,168,92,0.22) 0%, transparent 72%);
  border: 1px solid rgba(217,168,92,0.20);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.banner-icon svg { width: 20px; height: 20px; }
.banner-title { font-size: 14px; color: var(--light-gold); font-weight: 500; }
.banner-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.banner-arrow { color: var(--gold); font-size: 20px; font-weight: bold; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; position: relative; z-index: 1; }
.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 7px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  background: var(--input-bg);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,168,92,0.14), 0 0 14px rgba(217,168,92,0.08);
  background: rgba(30,25,18,0.92);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(164,150,127,0.55); }
.form-group select option { background: #241e15; color: var(--text-primary); }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ---------- 按钮(统一精致) ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  text-align: center;
  text-decoration: none;
  letter-spacing: 3px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(.96); }

/* 主按钮：朱红渐变 + 金边 + 光晕 */
.btn-primary {
  background: linear-gradient(135deg, #d05048 0%, var(--primary-red) 45%, var(--deep-red) 100%);
  color: var(--light-gold);
  border: 1px solid rgba(243,213,145,0.42);
  box-shadow: 0 6px 18px rgba(194,64,58,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--light-red) 0%, var(--primary-red) 60%, var(--deep-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(194,64,58,0.40), 0 0 18px rgba(217,168,92,0.20), inset 0 1px 0 rgba(255,255,255,0.16);
  filter: brightness(1.04);
}

/* 金色按钮 */
.btn-gold {
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 50%, var(--dark-gold) 100%);
  color: #241a0e;
  border: 1px solid rgba(243,213,145,0.5);
  box-shadow: 0 6px 18px rgba(217,168,92,0.34), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217,168,92,0.44), 0 0 18px rgba(217,168,92,0.24);
  filter: brightness(1.05);
}

/* 描边金按钮 */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  border-color: var(--light-gold);
  color: var(--light-gold);
  background: rgba(217,168,92,0.12);
  box-shadow: 0 0 16px rgba(217,168,92,0.16);
}

.btn-block { display: block; width: 100%; }
.btn-small { padding: 8px 16px; font-size: 14px; letter-spacing: 1px; border-radius: 9px; }

/* ---------- 结果展示 ---------- */
.result-box {
  background: rgba(24,20,14,0.72);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 15px;
  color: var(--text-primary);
}
.result-box h3 {
  color: var(--light-gold);
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(217,168,92,0.30);
  padding-bottom: 8px;
  font-size: 17px;
}
.result-box h4 {
  color: var(--gold);
  margin: 14px 0 6px;
  font-size: 15px;
}

/* ---------- 会员状态条 ---------- */
.member-bar {
  background: linear-gradient(135deg, #d05048 0%, var(--primary-red) 45%, var(--deep-red) 100%);
  color: var(--light-gold);
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-red);
  border: 1px solid rgba(243,213,145,0.30);
  position: relative;
  z-index: 1;
}
.member-bar .member-type { font-weight: bold; font-size: 15px; letter-spacing: 1px; }
.member-bar .member-expire { font-size: 12px; opacity: 0.85; cursor: pointer; }

/* ---------- 印章 ---------- */
.seal {
  display: inline-block;
  width: 62px; height: 62px;
  border: 3px solid var(--primary-red);
  border-radius: 50%;
  color: var(--primary-red);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 56px;
  transform: rotate(-15deg);
  opacity: 0.85;
  font-family: "STKaiti", "KaiTi", serif;
  box-shadow: 0 0 16px rgba(194,64,58,0.30);
}

/* ---------- 加载 ---------- */
.loading { text-align: center; padding: 30px; }
.loading-spinner {
  display: inline-block;
  width: 42px; height: 42px;
  border: 3px solid rgba(217,168,92,0.20);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(217,168,92,0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
.tj-loading-content { color: #2a241a; }

/* ---------- 返回按钮 ---------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  background: rgba(29,24,17,0.6);
  transition: border-color .2s, background .2s, transform .2s;
}
.back-btn::before { content: "←"; font-size: 18px; }
.back-btn:hover { border-color: var(--gold); background: rgba(217,168,92,0.10); transform: translateX(-2px); }

/* ---------- 会员卡片(普通/权益) ---------- */
.member-card {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(32,27,19,0.96) 0%, rgba(22,18,12,0.94) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.member-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--light-gold) 50%, transparent);
  opacity: 0.5;
}
.member-card.highlight {
  border-color: var(--primary-red);
  box-shadow: 0 0 26px rgba(194,64,58,0.22), 0 6px 18px rgba(0,0,0,0.35);
}
.member-card .price {
  font-size: 38px;
  color: var(--light-gold);
  font-weight: bold;
  margin: 12px 0;
  text-shadow: 0 2px 10px rgba(217,168,92,0.30);
}
.member-card .price span { font-size: 16px; color: var(--text-secondary); }
.member-card .features { text-align: left; margin: 16px 0; }
.member-card .features li {
  list-style: none;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.member-card .features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: bold;
  margin-right: 9px;
  text-shadow: 0 0 8px rgba(217,168,92,0.5);
}

/* ---------- 会员页：用户资料 / 快捷操作 ---------- */
.user-profile {
  background: linear-gradient(165deg, rgba(32,27,19,0.96) 0%, rgba(22,18,12,0.94) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}
.user-profile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(135deg, rgba(194,64,58,0.85), rgba(140,36,32,0.85));
  opacity: 0.55;
}
.user-profile::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
  opacity: 0.6;
}
.user-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: radial-gradient(circle, rgba(217,168,92,0.18) 0%, rgba(20,16,11,0.9) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  position: relative; z-index: 1;
  font-size: 34px;
  color: var(--light-gold);
  box-shadow: 0 0 18px rgba(217,168,92,0.24);
}
.user-name { font-size: 19px; color: var(--light-gold); font-weight: bold; position: relative; z-index: 1; letter-spacing: 1px; }
.user-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 11px;
  margin-top: 8px;
  position: relative; z-index: 1;
  letter-spacing: 1px;
}
.badge-free { background: rgba(164,150,127,0.18); color: var(--text-secondary); border: 1px solid var(--border-gold); }
.badge-vip { background: rgba(194,64,58,0.22); color: var(--light-red); border: 1px solid rgba(217,90,90,0.5); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.action-btn {
  background: linear-gradient(165deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.action-btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 22px rgba(217,168,92,0.16); }
.action-btn:active { transform: scale(.97); }
.action-btn.primary {
  background: linear-gradient(135deg, #d05048 0%, var(--deep-red) 100%);
  border-color: rgba(243,213,145,0.42);
  box-shadow: 0 6px 18px rgba(194,64,58,0.30);
}
.action-btn .icon { font-size: 26px; }
.action-btn .label { font-size: 13px; color: var(--text-primary); letter-spacing: 1px; }
.action-btn.primary .label { color: var(--light-gold); font-weight: bold; }

/* 功能列表 */
.func-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.func-item {
  background: linear-gradient(165deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 13px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.func-item:hover { transform: translateX(3px); border-color: var(--gold); box-shadow: 0 6px 16px rgba(217,168,92,0.14); }
.func-item:active { transform: scale(.98); }
.func-item .left { display: flex; align-items: center; gap: 13px; }
.func-item .icon { font-size: 22px; }
.func-item .info .title { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.func-item .info .desc { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
.func-item .arrow { color: var(--gold); font-size: 19px; font-weight: bold; }

/* ---------- name.html 分类卡片 ---------- */
.category-list { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.category-card {
  background: linear-gradient(160deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.6;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,0.4), 0 0 22px rgba(217,168,92,0.16); }
.category-card:hover::before { opacity: 1; }
.category-card:active { transform: scale(.97); border-color: var(--gold); }
.category-icon {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  background: radial-gradient(circle, rgba(217,168,92,0.15) 0%, transparent 72%);
  border: 1px solid rgba(217,168,92,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s ease;
}
.category-card:hover .category-icon { transform: scale(1.08) rotate(-4deg); }
.category-icon svg { width: 32px; height: 32px; }
.category-name { font-size: 19px; color: var(--light-gold); font-weight: bold; letter-spacing: 3px; margin-bottom: 8px; }
.category-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.category-price {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 18px;
  background: rgba(217,168,92,0.12);
  border: 1px solid rgba(217,168,92,0.30);
  border-radius: 20px;
  font-size: 14px;
  color: var(--light-gold);
  font-weight: bold;
}

/* ---------- 名字列表 ---------- */
.name-list { margin-top: 16px; }
.name-item {
  background: linear-gradient(165deg, rgba(32,27,19,0.92) 0%, rgba(20,16,11,0.94) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 11px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.name-item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--dark-gold));
  opacity: 0.6;
}
.name-item:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(217,168,92,0.12); }
.name-item .name {
  font-size: 19px;
  font-weight: bold;
  color: var(--light-gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.name-item .name-info { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.name-item .wuxing-tag {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(217,168,92,0.16);
  color: var(--light-gold);
  border-radius: 6px;
  font-size: 12px;
  margin-right: 6px;
}

/* ---------- 合盘 / 五行 ---------- */
.hepan-score { text-align: center; padding: 20px; }
.hepan-score .score {
  font-size: 50px;
  font-weight: bold;
  color: var(--light-gold);
  text-shadow: 0 2px 10px rgba(217,168,92,0.35);
}
.hepan-score .score-label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.bazi-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.bazi-pillar {
  text-align: center;
  padding: 12px 4px;
  background: rgba(26,21,15,0.8);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  transition: border-color .2s ease;
}
.bazi-pillar:hover { border-color: var(--gold); }
.bazi-pillar .pillar-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 7px; }
.bazi-pillar .gan { font-size: 22px; font-weight: bold; color: var(--light-gold); margin-bottom: 4px; }
.bazi-pillar .zhi { font-size: 19px; color: var(--gold); }
.wuxing-display {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 14px;
  background: rgba(26,21,15,0.7);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
}
.wuxing-item { text-align: center; }
.wuxing-item .wuxing-name { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
.wuxing-item .wuxing-count { font-size: 12px; color: var(--text-secondary); }
.wuxing-jin { color: #d8d8d8; }
.wuxing-mu { color: #6cbb6c; }
.wuxing-shui { color: #6caee6; }
.wuxing-huo { color: #e26b6b; }
.wuxing-tu { color: #d9a85c; }

/* ---------- Tab 切换 / 提示 ---------- */
.tabs {
  display: flex;
  background: rgba(26,21,15,0.7);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.tab-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all .25s ease;
  letter-spacing: 1px;
}
.tab-item.active {
  background: linear-gradient(135deg, #d05048 0%, var(--deep-red) 100%);
  color: var(--light-gold);
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(194,64,58,0.30);
}
.tips {
  background: rgba(217,168,92,0.07);
  border-left: 3px solid var(--gold);
  padding: 11px 14px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0 10px 10px 0;
  line-height: 1.7;
}

/* ---------- Toast ---------- */
.toast,
.tj-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29,24,17,0.96);
  color: var(--light-gold);
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  z-index: 1000;
  font-size: 14px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-width: 82%;
  text-align: center;
  line-height: 1.5;
}
.toast.show, .tj-toast.show { opacity: 1; }
.tj-toast.success { background: rgba(90,169,107,0.94); }
.tj-toast.error { background: rgba(194,64,58,0.94); }
.tj-toast.warning { background: rgba(217,168,92,0.94); }

/* ---------- 兑换码弹窗(member) ---------- */
.redeem-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.redeem-modal-overlay.show { display: flex; }
.redeem-modal {
  background: linear-gradient(165deg, rgba(35,29,20,0.99) 0%, rgba(22,18,12,0.99) 100%);
  border: 1px solid rgba(217,168,92,0.45);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 26px rgba(217,168,92,0.12);
  position: relative;
}
.redeem-modal::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
  opacity: 0.6;
}
.redeem-modal-title { font-size: 18px; color: var(--light-gold); font-weight: bold; text-align: center; margin-bottom: 16px; letter-spacing: 2px; }
.redeem-modal-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-gold);
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.redeem-modal-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,168,92,0.16); }
.redeem-modal-input::placeholder { color: rgba(164,150,127,0.5); letter-spacing: 1px; text-transform: none; font-size: 14px; }
.redeem-modal-hint { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 8px; }
.redeem-modal-btns { display: flex; gap: 10px; margin-top: 18px; }
.redeem-modal-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  transition: transform .16s ease, filter .16s ease;
}
.redeem-modal-btn:active { transform: scale(.97); }
.redeem-modal-btn.cancel { background: rgba(164,150,127,0.16); color: var(--text-secondary); border: 1px solid var(--border-gold); }
.redeem-modal-btn.confirm { background: linear-gradient(135deg, #d05048 0%, var(--deep-red) 100%); color: var(--light-gold); box-shadow: 0 4px 14px rgba(194,64,58,0.30); }

/* ---------- pay.html 会员风格组件（统一） ---------- */
.page-header { text-align: center; padding: 28px 0 20px; }
.page-header h1 {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 45%, var(--dark-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  filter: drop-shadow(0 4px 10px rgba(217,168,92,0.30));
  padding-bottom: 10px;
}
.page-header::after {
  content: "";
  display: block;
  width: 132px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.55;
}
.page-header .subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 10px; letter-spacing: 3px; }

.feature-notice {
  background: linear-gradient(135deg, rgba(194,64,58,0.16), rgba(194,64,58,0.06));
  border: 1px solid rgba(194,64,58,0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.feature-notice .feature-name { color: var(--light-red); font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.feature-notice .feature-price { color: var(--light-gold); font-size: 22px; font-weight: bold; }
.feature-notice .feature-tip { color: var(--text-secondary); font-size: 13px; margin-top: 8px; }

.member-plans { display: flex; gap: 10px; margin-bottom: 20px; }
.plan-card {
  flex: 1;
  background: linear-gradient(165deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.plan-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(217,168,92,0.16); }
.plan-card.selected {
  border-color: var(--light-gold);
  background: linear-gradient(165deg, rgba(217,168,92,0.20) 0%, rgba(217,168,92,0.06) 100%);
  box-shadow: 0 6px 24px rgba(217,168,92,0.24);
}
.plan-card .plan-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #d05048 0%, var(--deep-red) 100%);
  color: var(--light-gold);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(194,64,58,0.30);
}
.plan-card .plan-name { color: var(--light-gold); font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.plan-card .plan-price { color: var(--text-primary); font-size: 26px; font-weight: 800; }
.plan-card .plan-price span { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.plan-card .plan-unit { color: var(--text-secondary); font-size: 12px; margin-top: 5px; }
.plan-card .plan-save { color: var(--green); font-size: 11px; margin-top: 6px; }

.benefits-card {
  background: linear-gradient(165deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.benefits-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-gold), transparent); opacity: .5;
}
.benefits-title { color: var(--light-gold); font-size: 16px; font-weight: bold; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.benefit-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(217,168,92,0.10); }
.benefit-item:last-child { border-bottom: none; }
.benefit-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(217,168,92,0.22), rgba(217,168,92,0.06));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.benefit-text { flex: 1; }
.benefit-name { color: var(--text-primary); font-size: 14px; font-weight: 500; }
.benefit-desc { color: var(--text-secondary); font-size: 12px; margin-top: 3px; }

.pay-section { text-align: center; margin-top: 24px; }
.pay-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d05048 0%, var(--primary-red) 45%, var(--deep-red) 100%);
  color: var(--light-gold);
  font-size: 18px;
  font-weight: bold;
  border: 1px solid rgba(243,213,145,0.42);
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(194,64,58,0.34);
  letter-spacing: 3px;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.pay-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 26px rgba(194,64,58,0.42); }
.pay-btn:active { transform: scale(.98); }
.pay-tip { color: var(--text-secondary); font-size: 12px; margin-top: 12px; line-height: 1.7; }

.single-buy { text-align: center; padding: 16px; background: rgba(194,64,58,0.10); border-radius: 12px; margin-bottom: 20px; }
.single-buy .price { color: var(--light-gold); font-size: 28px; font-weight: bold; }
.single-buy .desc { color: var(--text-secondary); font-size: 13px; margin-top: 6px; }

.code-section { text-align: center; padding: 16px; border-top: 1px solid var(--border-gold); margin-top: 20px; }
.code-section a { color: var(--gold); font-size: 14px; text-decoration: none; }

.pay-method-list { display: flex; gap: 12px; }
.pay-method {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  background: linear-gradient(165deg, rgba(32,27,19,0.95) 0%, rgba(20,16,11,0.96) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pay-method:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 6px 16px rgba(217,168,92,0.14); }
.pay-method.selected { border-color: var(--light-gold); background: linear-gradient(165deg, rgba(217,168,92,0.14) 0%, rgba(217,168,92,0.03) 100%); }
.pay-method-icon { font-size: 24px; }
.pay-method-name { flex: 1; color: var(--text-primary); font-size: 14px; font-weight: 500; }
.pay-method-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  color: #241a0e;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
  opacity: 0;
  transition: opacity .25s ease;
  box-shadow: 0 2px 8px rgba(217,168,92,0.4);
}
.pay-method.selected .pay-method-check { opacity: 1; }

.feature-option {
  background: linear-gradient(165deg, rgba(32,27,19,0.92) 0%, rgba(20,16,11,0.94) 100%);
  border: 2px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.feature-option:hover, .feature-option.selected {
  background: rgba(217,168,92,0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217,168,92,0.14);
}

/* ---------- 支付弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-content {
  background: linear-gradient(165deg, rgba(35,29,20,0.99) 0%, rgba(22,18,12,0.99) 100%);
  border: 1px solid rgba(217,168,92,0.45);
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 26px rgba(217,168,92,0.12);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(217,168,92,0.20); }
.modal-title { color: var(--light-gold); font-size: 16px; font-weight: bold; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 26px; cursor: pointer; padding: 0; width: 30px; height: 30px; line-height: 1; }
.modal-body { padding: 20px; text-align: center; }
.qr-code-box {
  width: 200px; height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.qr-code-box img { width: 100%; height: 100%; }
.pay-amount { color: var(--light-gold); font-size: 34px; font-weight: bold; margin-bottom: 8px; }
.pay-amount span { font-size: 18px; }
.pay-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }
.pay-btn-confirm {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2fae5a 0%, #24924a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  letter-spacing: 2px;
}
.pay-btn-confirm.alipay { background: linear-gradient(135deg, #2f7fff 0%, #1c5fd0 100%); }

/* ---------- 底部导航(统一) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(21,17,12,0.97) 0%, rgba(15,12,8,0.99) 100%);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease;
}
.nav-item:active { transform: scale(.94); }
.nav-item.active { background: rgba(217,168,92,0.10); }
.nav-item.active svg { color: var(--light-gold); filter: drop-shadow(0 0 6px rgba(217,168,92,0.6)); }
.nav-item.active .nav-label { color: var(--light-gold); font-weight: bold; }
.nav-item svg {
  width: 22px; height: 22px;
  color: var(--text-secondary);
  transition: color .2s ease;
}
.nav-label { font-size: 10px; color: var(--text-secondary); transition: color .2s ease; letter-spacing: 0.5px; }

/* ---------- 其他通用 ---------- */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0.75;
}
.footer::before {
  content: "❖ ❖ ❖";
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  letter-spacing: 8px;
  opacity: 0.5;
}
.hidden { display: none !important; }

.share-guide {
  background: rgba(29,24,17,0.99);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}
.share-guide-title { font-size: 20px; font-weight: bold; text-align: center; color: var(--light-gold); margin-bottom: 20px; }
.share-guide-tips { background: var(--input-bg); border: 1px solid var(--border-gold); border-radius: 11px; padding: 16px; margin-bottom: 20px; }
.share-guide-tips p { font-size: 14px; color: var(--text-primary); line-height: 2.2; margin: 0; }
.share-guide-tips strong { color: var(--light-gold); }
.share-guide button[disabled] { opacity: 0.6; cursor: not-allowed; }
.share-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }

.badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #d05048 0%, var(--deep-red) 100%);
  color: var(--light-gold);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 11px;
  font-weight: normal;
  margin-left: 6px;
  vertical-align: middle;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* 管理页/表格/代码列表 */
.redeem-section { margin-top: 20px; }
.redeem-input-group { display: flex; gap: 8px; }
.redeem-input-group input {
  flex: 1; padding: 12px; border: 1.5px solid var(--border-gold);
  border-radius: 10px; font-size: 15px; text-transform: uppercase;
  background: var(--input-bg); color: var(--text-primary);
}
.redeem-input-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,168,92,0.14); }

/* 滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }

/* 页面淡入 */
/* 仅对 body(内容)做柔和淡入；html 保持深色不透明底，杜绝白屏闪烁 */
body { animation: pageFade .28s ease; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 响应式 ---------- */
@media (max-width: 360px) {
  .function-grid, .feature-grid { grid-template-columns: 1fr; }
  .header h1 { font-size: 25px; }
  .form-row { flex-direction: column; gap: 0; }
  .member-plans { flex-direction: column; }
}
