/* 品牌图标：iconfont.cn 项目 2298093「思维导图」，树形层级对应六层固定公排；本地字体离线可用 */
@font-face {
  font-family: 'gp-iconfont';
  src: url('./iconfont.woff2') format('woff2');
  font-display: block;
}
.gp-icon { font-family: 'gp-iconfont' !important; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }
.gp-icon-rank::before { content: '\e614'; }

:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: #202724;
  background: #f4f6f5;
  --green: #17644e;
  --green-dark: #104c3b;
  --green-soft: #e5f0ea;
  --muted: #718079;
  --border: #e0e6e2;
  --amber: #99651c;
  --amber-bg: #fbf5e9;
  --danger: #b4412f;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid var(--border); background: #fff; color: inherit; border-radius: 8px; min-height: 42px; padding: 10px 15px; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #79bca8; outline-offset: 2px; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.4; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }

.shell { max-width: 490px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); position: relative; }
@media (min-width: 800px) { .shell { box-shadow: 0 0 0 1px #e3e9e4; min-height: calc(100vh - 32px); margin-top: 16px; } }

/* ---------- 登录 / 注册 ---------- */
.auth-head { background: var(--green); color: #fff; padding: 46px 24px 34px; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; margin-bottom: 26px; }
.brandmark { background: #fff; color: var(--green); width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 23px; flex: none; }
.brandmark .gp-icon { transform: translateY(1px); }
.brandmark.small { width: 30px; height: 30px; font-size: 17px; border-radius: 6px; }
.auth-head h1 { font-size: 24px; margin-bottom: 8px; }
.auth-head p { color: #d4e8dd; font-size: 12px; line-height: 1.8; }
.auth-body { padding: 22px 24px 34px; }
.auth-card { background: #fff; }
.auth-note { background: var(--amber-bg); color: #805d28; font-size: 12px; line-height: 1.85; padding: 12px 14px; border-left: 3px solid #d5ad66; border-radius: 0 6px 6px 0; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12px; color: #4b5a51; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 44px; border: 1px solid #ccd7d0; border-radius: 7px; background: #fff; padding: 10px 12px; color: inherit; font-size: 14px; }
.field textarea { resize: vertical; rows: 2; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px #17644e1a; }
.field input[readonly] { background: var(--green-soft); border-color: #b9d0c4; color: var(--green-dark); font-weight: 700; letter-spacing: .04em; }
.field .hint { font-size: 11px; color: var(--muted); font-weight: 400; }
.btn { width: 100%; min-height: 46px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: #fff; color: var(--green); border-color: #b9d0c4; }
.btn.link { border: 0; background: transparent; color: var(--green); min-height: 38px; padding: 6px; font-size: 13px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 13px; }
.auth-links button { border: 0; background: transparent; color: var(--green); padding: 4px 0; min-height: 32px; font-size: 13px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.7; color: #4b5a51; margin: 4px 0 20px; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.form-error { color: var(--danger); font-size: 12px; line-height: 1.7; margin: 0 0 14px; min-height: 0; }
.success-box { text-align: center; padding: 14px 4px 6px; }
.success-icon { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 28px; }
.success-box h2 { margin-bottom: 10px; }
.success-box p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.ref-banner { background: var(--green-soft); border: 1px solid #b9d0c4; border-radius: 8px; color: var(--green-dark); font-size: 12px; line-height: 1.8; padding: 10px 14px; margin-bottom: 16px; }
.ref-banner b { font-size: 14px; font-weight: 700; }

/* ---------- 推荐码与推广二维码 ---------- */
.promo-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 16px 18px; }
.promo-code span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.promo-code b { display: block; font-size: 34px; line-height: 1.2; color: var(--green); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.promo-code small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.promo-qr { width: 232px; height: 232px; margin: 18px auto 0; display: block; image-rendering: pixelated; border: 1px solid var(--border); border-radius: 8px; }
.promo-card .muted { margin-top: 12px; }
.promo-card .muted b { color: var(--green); }

/* ---------- 会员中心 ---------- */
.member-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.head-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.identity { display: flex; gap: 11px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 700; flex: none; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.tag { display: inline-block; border-radius: 5px; font-size: 11px; padding: 4px 8px; white-space: nowrap; background: var(--green-soft); color: var(--green); font-weight: 600; }
.tag.amber { background: #fbf1df; color: #8d5c16; }
.tag.gray { background: #edf0ef; color: #68736d; }
.tag.blue { background: #edf2fa; color: #4a638d; }
.tag.red { background: #fbecea; color: var(--danger); }

.hero { background: var(--green); color: #fff; padding: 22px; }
.hero .label { color: #d4e8dd; font-size: 12px; }
.hero .big { font-size: 33px; line-height: 1.25; margin: 9px 0 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero .big small { font-size: 14px; font-weight: 400; margin-left: 6px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid #ffffff30; padding-top: 16px; }
.hero-metrics div span { display: block; color: #d4e8dd; font-size: 11px; margin-bottom: 6px; }
.hero-metrics div strong { font-size: 18px; font-weight: 650; }
.hero-empty { font-size: 14px; line-height: 1.8; margin: 8px 0 4px; }

.section { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.section-title button { border: 0; background: transparent; color: var(--green); font-size: 12px; min-height: 30px; padding: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric .label { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.metric strong { font-size: 23px; line-height: 1.3; font-weight: 650; }
.notice { font-size: 12px; line-height: 1.85; color: #805d28; background: var(--amber-bg); padding: 12px 14px; border-left: 3px solid #d5ad66; }
.notice.info { color: #3c5e51; background: #eef5f1; border-left-color: #79bca8; }
.level-row { padding: 12px 0; border-bottom: 1px solid #eef1ef; }
.level-row:last-child { border-bottom: 0; }
.level-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.level-top strong { font-weight: 650; }
.bar { height: 6px; background: #edf0ee; border-radius: 4px; overflow: hidden; }
.bar i { display: block; background: #4f9076; height: 100%; border-radius: 4px; }
.account-row { padding: 15px 0; border-bottom: 1px solid #eef1ef; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.account-row:last-child { border-bottom: 0; }
.account-row span:first-child { color: var(--muted); flex: none; }
.account-row span:last-child { text-align: right; overflow-wrap: anywhere; }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { padding: 12px 0; border-bottom: 1px solid #eef1ef; font-size: 12px; line-height: 1.8; color: #4b5a51; }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li b { display: block; color: #202724; font-size: 13px; margin-bottom: 3px; }
.footer-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 14px; }
.stack { display: grid; gap: 10px; }

/* ---------- 底部导航 ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 490px); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: #fffffff5; backdrop-filter: blur(14px); z-index: 5; }
.bottom-nav button { border: 0; padding: 4px 0; background: transparent; color: var(--muted); font-size: 11px; display: grid; justify-items: center; gap: 4px; min-height: 48px; }
.bottom-nav button.active { color: var(--green); font-weight: 700; }
.nav-icon { font-size: 19px; line-height: 22px; }

/* ---------- 通用 ---------- */
.loading { text-align: center; color: var(--muted); font-size: 13px; padding: 60px 20px; }
#toast { display: none; position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: #243a2f; color: #fff; padding: 11px 18px; border-radius: 8px; z-index: 30; max-width: 88%; font-size: 13px; line-height: 1.6; text-align: center; box-shadow: 0 8px 30px #0003; }
#toast.show { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
