/* ============================================================
   MindLab 心理测评实验室 · 高端科技感 UI
   深色玻璃拟态 + 霓虹渐变 + 辉光 · H5/桌面自适应
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --bg2: #0d1326;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(140, 180, 255, 0.14);
  --line-strong: rgba(140, 180, 255, 0.3);
  --txt: #e8edf7;
  --txt2: #9aa7c2;
  --txt3: #6b7794;
  --cyan: #22d3ee;
  --purple: #818cf8;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, #22d3ee 0%, #818cf8 55%, #f472b6 100%);
  --grad-cy: linear-gradient(135deg, #22d3ee, #6366f1);
  --radius: 18px;
  --topbar-h: 60px;
  --tabbar-h: 62px;
  --font: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', -apple-system, 'Segoe UI', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 背景特效 ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .32; }
.glow-1 { width: 560px; height: 560px; background: #4338ca; top: -220px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.glow-2 { width: 480px; height: 480px; background: #0891b2; top: 10%; right: -180px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 420px; height: 420px; background: #be185d; bottom: -200px; left: 30%; opacity: .18; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  height: var(--topbar-h); padding: 0 26px;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.logo-icon { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .7)); }
.logo-text i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--txt3); margin-left: 6px; letter-spacing: 1px; }
.top-nav { display: flex; gap: 6px; flex: 1; }
.top-nav a {
  padding: 7px 16px; border-radius: 10px; font-size: 14px; color: var(--txt2);
  transition: all .2s; position: relative;
}
.top-nav a:hover { color: var(--txt); background: var(--panel); }
.top-nav a.active { color: #fff; background: var(--panel-strong); }
.top-nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 2px; background: var(--grad);
  box-shadow: 0 0 8px rgba(34, 211, 238, .8);
}
.top-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.top-right .btn-sm { padding: 7px 16px; }

/* ---------- 底部 Tabbar（移动端） ---------- */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: var(--txt3); transition: color .2s;
}
.tab-ico { font-size: 20px; line-height: 1; }
.tabbar a.active { color: #fff; }
.tabbar a.active .tab-ico { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .9)); color: var(--cyan); }

/* ---------- 布局 ---------- */
.app { max-width: 1080px; margin: 0 auto; padding: 22px 18px calc(var(--tabbar-h) + 40px); min-height: 60vh; }
.page-enter { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0 14px; font-size: 17px; font-weight: 700;
}
.section-title .more { font-size: 12.5px; font-weight: 400; color: var(--txt3); }
.section-title .t-left { display: flex; align-items: center; }
.section-title .t-left::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px; margin-right: 10px;
  background: var(--grad); box-shadow: 0 0 10px rgba(129, 140, 248, .8);
}

/* ---------- 通用组件 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(2, 6, 23, .55); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; font-size: 14.5px; font-weight: 600; color: #fff;
  padding: 12px 26px; border-radius: 14px;
  background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 6px 22px rgba(99, 102, 241, .38);
  transition: all .22s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(99, 102, 241, .5); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: var(--panel-strong); border: 1px solid var(--line-strong);
  box-shadow: none; color: var(--txt);
}
.btn-ghost:hover { box-shadow: 0 6px 18px rgba(34, 211, 238, .18); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 6px 20px rgba(239, 68, 68, .3); }

.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  background: rgba(34, 211, 238, .12); color: var(--cyan); border: 1px solid rgba(34, 211, 238, .25);
}
.tag.purple { background: rgba(129, 140, 248, .12); color: var(--purple); border-color: rgba(129, 140, 248, .3); }
.tag.pink { background: rgba(244, 114, 182, .12); color: var(--pink); border-color: rgba(244, 114, 182, .3); }
.tag.green { background: rgba(52, 211, 153, .12); color: var(--green); border-color: rgba(52, 211, 153, .3); }
.tag.amber { background: rgba(251, 191, 36, .12); color: var(--amber); border-color: rgba(251, 191, 36, .3); }

.input {
  width: 100%; padding: 13px 16px; border-radius: 13px; font-size: 14.5px; color: var(--txt);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.input::placeholder { color: var(--txt3); }

/* ---------- 首页 ---------- */
/* 首页公告条（后台装修可开启） */
.notice-bar {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  padding: 10px 15px; border-radius: 12px; font-size: 13px; color: #c7d2fe;
  background: linear-gradient(90deg, rgba(99, 102, 241, .18), rgba(34, 211, 238, .12));
  border: 1px solid rgba(129, 140, 248, .3);
}
.notice-bar .nb-ic { flex-shrink: 0; }

.hero {
  position: relative; border-radius: 24px; overflow: hidden; padding: 40px 34px;
  background: linear-gradient(135deg, rgba(49, 46, 129, .55), rgba(14, 116, 144, .4));
  border: 1px solid var(--line-strong);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%);
}
.hero h1 { font-size: clamp(22px, 4.5vw, 34px); font-weight: 800; line-height: 1.3; position: relative; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 10px; color: var(--txt2); font-size: 14px; position: relative; max-width: 520px; line-height: 1.8; }
.hero .hero-stats { display: flex; gap: 26px; margin-top: 22px; position: relative; flex-wrap: wrap; }
.hero .hs b { font-size: 20px; background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hs span { display: block; font-size: 11px; color: var(--txt3); margin-top: 2px; }

/* 金刚区（固定 8 列一行；窄屏由下方媒体查询改为 4 列两行） */
.nav-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 16px; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 13px 4px 11px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: all .22s; text-align: center;
}
.nav-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.nav-item .ni { font-size: 22px; line-height: 1; filter: drop-shadow(0 0 8px rgba(129, 140, 248, .6)); }
.nav-item span:last-child { font-size: 11.5px; color: var(--txt2); line-height: 1.25; }

/* 轮播 Banner */
.banner-wrap { position: relative; margin-top: 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.banner-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.banner-item {
  min-width: 100%; padding: 30px 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px; cursor: pointer;
}
.banner-item b { font-size: 19px; }
.banner-item span { font-size: 13px; opacity: .85; }
.banner-item .go {
  margin-top: 6px; font-size: 12px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 5px;
}
.banner-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: all .3s; }
.banner-dots i.on { width: 18px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }

/* 测评卡片 */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.test-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; position: relative; overflow: hidden; }
.test-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tc, var(--grad));
  opacity: .9;
}
.test-card .tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.test-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.test-card .tc-brief { font-size: 12.5px; color: var(--txt2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.test-card .tc-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--txt3); }
.test-card .tc-price { margin-left: auto; font-weight: 800; font-size: 14px; background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.test-card .tc-price.free { color: var(--green); }

/* 分类 chips：超出一行自动换行，按数量等宽对齐（不再横向滚动） */
.cate-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; padding: 4px 2px 12px; }
.chip {
  min-width: 0; padding: 9px 8px; border-radius: 20px; font-size: 13px; color: var(--txt2);
  background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: all .2s;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip:hover { color: var(--txt); }
.chip.on {
  color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(129, 140, 248, .3));
  border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 14px rgba(34, 211, 238, .25);
}

/* 文章卡片 */
.article-card { padding: 16px 18px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.article-cover { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; box-shadow: inset 0 0 20px rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; font-size:22px; }
.article-card h4 { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.article-card p { font-size: 12px; color: var(--txt2); margin-top: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { font-size: 11px; color: var(--txt3); margin-top: 6px; }

/* ---------- 详情页 ---------- */
.detail-hero { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.detail-hero .dh-bg { position: absolute; inset: 0; opacity: .5; }
.detail-hero .dh-inner { position: relative; padding: 32px 26px; background: linear-gradient(180deg, transparent, rgba(10, 14, 26, .92) 85%); }
.detail-hero h2 { font-size: 21px; font-weight: 800; }
.detail-hero .d-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--txt2); flex-wrap: wrap; }
.detail-body { padding: 22px; margin-top: 16px; line-height: 2; font-size: 14px; color: var(--txt2); }
.detail-body b { color: var(--txt); }
/* 详情页富文本配图（如娱乐玩梗层框架图） */
.detail-body img { display: block; width: 100%; max-width: 100%; height: auto; margin: 14px 0 6px; border-radius: 14px; border: 1px solid var(--line); }
.detail-body .img-cap { display: block; text-align: center; font-size: 12px; color: var(--txt3); margin-bottom: 10px; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- 答题页 ---------- */
.quiz-head { position: sticky; top: calc(var(--topbar-h) + 0px); z-index: 30; padding: 14px 18px; margin-bottom: 16px; background: rgba(13, 19, 38, .9); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--txt2); margin-bottom: 10px; }
.quiz-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--cyan); display: flex; align-items: center; gap: 5px; }
.quiz-timer.warn { color: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.progress { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .7); transition: width .35s cubic-bezier(.4, 0, .2, 1); }
.quiz-card { padding: 30px 24px; }
.quiz-num { font-size: 12.5px; color: var(--txt3); letter-spacing: 1px; }
.quiz-q { font-size: 18px; font-weight: 700; line-height: 1.7; margin: 10px 0 22px; }
/* 图形推理题（如瑞文智商测试） */
.quiz-qimg { margin: -8px 0 18px; text-align: center; }
.quiz-qimg img { max-width: 100%; width: 320px; border-radius: 12px; background: #f3f3f4; }
.option.opt-fig { flex-wrap: nowrap; }
.option .opt-img { width: 74px; height: auto; flex-shrink: 0; border-radius: 8px; background: #f3f3f4; }
@media (max-width: 420px) { .option .opt-img { width: 60px; } }
.option {
  display: flex; align-items: center; gap: 13px; padding: 15px 17px; margin-bottom: 11px;
  border-radius: 14px; cursor: pointer; font-size: 14.5px; line-height: 1.6;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: all .18s;
}
.option:hover { border-color: var(--line-strong); }
.option.sel {
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(129, 140, 248, .16));
  border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 16px rgba(34, 211, 238, .2);
}
.option .opt-idx {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--txt2);
}
.option.sel .opt-idx { background: var(--grad); border: none; color: #fff; }
.quiz-nav { display: flex; gap: 12px; margin-top: 18px; }
.quiz-nav .btn { flex: 1; }

/* ---------- 报告页 ---------- */
.report-hero { border-radius: 22px; padding: 34px 26px; text-align: center; border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.report-hero .r-level { font-size: 13px; letter-spacing: 3px; color: var(--txt2); }
.report-hero .r-title { font-size: 26px; font-weight: 800; margin: 10px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.report-hero .r-score { font-size: 15px; color: var(--txt2); }
.report-hero .r-score b { font-size: 34px; background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-bar { margin-top: 22px; position: relative; height: 12px; border-radius: 7px; display: flex; overflow: hidden; border: 1px solid var(--line); }
.score-bar i { height: 100%; }
.score-bar .marker {
  position: absolute; top: -7px; width: 4px; height: 26px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .9); transition: left .8s cubic-bezier(.4, 0, .2, 1);
}
.dim-row { margin-bottom: 16px; }
.dim-row .dim-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: var(--txt2); }
.dim-row .dim-bar { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dim-row .dim-bar i { display: block; height: 100%; border-radius: 5px; background: var(--grad-cy); box-shadow: 0 0 8px rgba(34, 211, 238, .5); }
.r-section { padding: 22px; margin-top: 16px; line-height: 2; font-size: 14px; color: var(--txt2); }
.r-section h3 { font-size: 15.5px; color: var(--txt); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.r-section h3::before { content: '◆'; font-size: 11px; background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-section .disclaimer { margin-top: 14px; padding: 12px 14px; font-size: 12px; color: var(--txt3); border-left: 3px solid var(--amber); background: rgba(251, 191, 36, .06); border-radius: 8px; line-height: 1.8; }

/* ---------- 个人中心 ---------- */
.me-hero { display: flex; align-items: center; gap: 18px; padding: 26px 22px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff; box-shadow: 0 0 20px rgba(99, 102, 241, .5);
}
.me-info h3 { font-size: 18px; font-weight: 700; }
.me-info .sub { font-size: 12.5px; color: var(--txt2); margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.me-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.me-stat { padding: 18px 12px; text-align: center; }
.me-stat b { font-size: 20px; background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.me-stat span { display: block; font-size: 11.5px; color: var(--txt3); margin-top: 5px; }
.menu { margin-top: 16px; overflow: hidden; }
.menu a { display: flex; align-items: center; gap: 13px; padding: 16px 20px; font-size: 14.5px; border-bottom: 1px solid var(--line); transition: background .2s; cursor: pointer; }
.menu a:last-child { border-bottom: none; }
.menu a:hover { background: var(--panel-strong); }
.menu .mi { width: 34px; height: 34px; border-radius: 11px; background: var(--panel-strong); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.menu .arrow { margin-left: auto; color: var(--txt3); }

/* ---------- 认证页 ---------- */
.auth-wrap { max-width: 400px; margin: 40px auto; padding: 34px 28px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: rgba(255, 255, 255, .04); border-radius: 13px; padding: 5px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-size: 14px; color: var(--txt2); cursor: pointer; }
.auth-tabs a.on { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(99, 102, 241, .4); }
.auth-wrap .input { margin-bottom: 14px; }
.auth-tip { font-size: 12px; color: var(--txt3); margin-top: 14px; line-height: 1.8; text-align: center; }
/* 微信一键登录 */
.wx-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--txt3); font-size: 12px; }
.wx-divider::before, .wx-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .09); }
.wx-login-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; border: none; cursor: pointer; font-size: 14.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 6px 18px rgba(34, 197, 94, .35); transition: transform .15s ease, box-shadow .15s ease; }
.wx-login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 197, 94, .45); }
.wx-login-btn:active { transform: translateY(0); }
.wx-login-btn i { font-style: normal; font-size: 17px; }
.wx-err { background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #fda4af; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px; line-height: 1.6; }

/* ---------- 会员 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { padding: 24px 18px; text-align: center; position: relative; cursor: pointer; }
.plan.hot { border-color: rgba(244, 114, 182, .5); box-shadow: 0 0 24px rgba(244, 114, 182, .15); }
.plan .p-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 13px; font-size: 11px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 700; }
.plan .p-name { font-size: 15px; font-weight: 700; }
.plan .p-price { margin: 13px 0 4px; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .p-price i { font-style: normal; font-size: 13px; color: var(--txt3); -webkit-text-fill-color: var(--txt3); }
.plan .p-desc { font-size: 11.5px; color: var(--txt3); }
.member-banner { border-radius: 20px; padding: 28px; background: linear-gradient(120deg, rgba(49, 46, 129, .6), rgba(190, 24, 93, .35)); border: 1px solid var(--line-strong); margin-bottom: 20px; }
.member-banner h2 { font-size: 20px; } .member-banner p { margin-top: 8px; font-size: 13px; color: var(--txt2); }

/* ---------- 钱包/订单 ---------- */
.wallet-card { border-radius: 22px; padding: 30px; background: linear-gradient(130deg, rgba(14, 116, 144, .5), rgba(49, 46, 129, .5)); border: 1px solid var(--line-strong); }
.wallet-card .w-label { font-size: 12.5px; color: var(--txt2); }
.wallet-card .w-amount { font-size: 38px; font-weight: 800; margin-top: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.recharge-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 18px; }
.r-opt { padding: 15px 6px; text-align: center; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-weight: 700; font-size: 15px; transition: all .2s; }
.r-opt:hover { border-color: var(--line-strong); }
.r-opt.on { background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(129, 140, 248, .22)); border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 14px rgba(34, 211, 238, .25); }
.log-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log-item:last-child { border: none; }
.log-item .l-note { color: var(--txt2); font-size: 12px; margin-top: 3px; }
.log-item .l-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.amt-in { color: var(--green); } .amt-out { color: var(--pink); }

/* ---------- 弹层/Toast ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 18, .7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-mask[hidden] { display: none; }
.modal { width: 100%; max-width: 380px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 22px; padding: 26px; animation: pageIn .25s ease; }
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal .m-row { display: flex; gap: 10px; margin: 12px 0 18px; }
.modal .m-opt { flex: 1; padding: 14px 8px; text-align: center; border-radius: 13px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; background: var(--panel); transition: all .2s; }
.modal .m-opt.on { border-color: rgba(34, 211, 238, .65); background: rgba(34, 211, 238, .12); color: var(--cyan); font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%) translateY(20px);
  z-index: 99; padding: 11px 22px; border-radius: 13px; font-size: 13.5px; max-width: 80vw;
  background: rgba(20, 28, 52, .95); border: 1px solid var(--line-strong); color: var(--txt);
  opacity: 0; pointer-events: none; transition: all .3s; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(248, 113, 113, .5); color: #fca5a5; }

.empty { text-align: center; padding: 60px 20px; color: var(--txt3); font-size: 13.5px; }
.empty .e-ico { font-size: 40px; margin-bottom: 12px; opacity: .7; }
.list-item { padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border: none; }
.article-body { padding: 24px 22px; line-height: 2.1; font-size: 14.5px; color: var(--txt2); }
.article-body h2 { color: var(--txt); font-size: 16.5px; margin: 20px 0 8px; }
.article-body b { color: var(--txt); }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--txt); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.back-btn:hover { border-color: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 社区 / 客服 / 管理后台 ---------- */
.group-card { padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.g-ico { font-size: 28px; filter: drop-shadow(0 0 10px rgba(129, 140, 248, .6)); }
.group-card h3 { font-size: 15.5px; }
.g-desc { font-size: 12.5px; color: var(--txt2); line-height: 1.7; flex: 1; }
.group-hero { display: flex; gap: 16px; align-items: center; padding: 24px 22px; }
.group-hero h2 { font-size: 19px; }
.group-hero p { font-size: 13px; color: var(--txt2); margin-top: 6px; }
.composer { padding: 18px 20px; margin-top: 14px; }
.composer textarea { resize: vertical; }
.post { padding: 18px 20px; margin-top: 14px; }
.post .p-head { display: flex; align-items: center; gap: 11px; }
.post .p-content { margin: 12px 0 0 47px; font-size: 14px; line-height: 1.9; color: var(--txt); }
.replies { margin: 12px 0 0 47px; border-left: 2px solid var(--line); padding-left: 13px; }
.reply { padding: 7px 0; font-size: 13px; color: var(--txt2); }
.reply b { font-size: 12.5px; color: var(--cyan); }
.reply p { margin-top: 3px; line-height: 1.7; }
.reply-bar { display: flex; gap: 9px; margin: 13px 0 0 47px; }
.reply-bar input { flex: 1; }
.service-card { padding: 30px 26px; text-align: center; }
.service-card h3 { margin-top: 12px; font-size: 18px; }
.service-card > p { margin-top: 8px; font-size: 13px; color: var(--txt2); }
.s-row { display: flex; gap: 14px; align-items: flex-start; text-align: left; margin-top: 18px; padding: 15px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.s-row .mi { width: 38px; height: 38px; border-radius: 12px; background: var(--panel-strong); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.s-row b { font-size: 14px; }
.s-row p { font-size: 12.5px; color: var(--txt2); margin-top: 5px; line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.table th { text-align: left; padding: 13px 14px; color: var(--txt3); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: var(--panel); }
.table tr:last-child td { border-bottom: none; }
.ops { white-space: nowrap; }
.op { color: var(--cyan); cursor: pointer; margin-right: 10px; font-size: 12.5px; }
.op.danger { color: var(--red); }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px !important; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .card > label { font-size: 12.5px; color: var(--txt2); }
.form-grid .input, .card > label .input { margin-top: 6px; }
code { background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 6px; font-size: 12px; color: var(--cyan); }
/* 后台内嵌导航：数量少，按内容自适应宽度换行 */
.admin-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }

/* ---------- 支付 / 解锁支付页 ---------- */
.pay-way-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.pay-way {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: all .18s;
}
.pay-way:hover { border-color: var(--line-strong); }
.pay-way.on { border-color: rgba(34, 211, 238, .65); background: rgba(34, 211, 238, .1); }
.pay-way .pw-ic { font-size: 20px; width: 26px; text-align: center; }
.pay-way .pw-txt { flex: 1; text-align: left; }
.pay-way .pw-txt b { font-size: 13.5px; display: block; }
.pay-way .pw-txt small { font-size: 11.5px; color: var(--txt3); }
.pay-way .pw-ck { opacity: 0; color: var(--cyan); font-weight: 700; }
.pay-way.on .pw-ck { opacity: 1; }

.pay-hero { text-align: center; padding: 28px 22px; }
.pay-hero .ph-ic { font-size: 40px; line-height: 1; }
.pay-hero .ph-st { font-size: 15px; font-weight: 700; margin-top: 10px; }
.pay-hero .ph-tt { font-size: 13px; color: var(--txt2); margin-top: 6px; }
.pay-hero .ph-amt { font-size: 34px; font-weight: 800; margin-top: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pay-hero .ph-no { font-size: 11.5px; color: var(--txt3); margin-top: 6px; letter-spacing: .3px; }
.pay-hero .ph-sub { font-size: 12px; color: var(--txt3); margin-top: 10px; }

.pay-qr { display: flex; justify-content: center; padding: 8px 0 14px; }
.pay-qr img { width: 210px; height: 210px; object-fit: contain; border-radius: 16px; background: #fff; padding: 10px; border: 1px solid var(--line-strong); }
.pay-qr-tip { text-align: center; font-size: 13px; line-height: 2; color: var(--txt2); }
.pay-qr-tip b { color: var(--txt); }
.pay-qr-tip .muted { font-size: 12px; color: var(--txt3); }

.pay-upload { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pu-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.pu-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pu-input {
  width: 100%; margin-top: 10px; padding: 11px 13px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--txt); outline: none;
}
.pu-input::placeholder { color: var(--txt3); }
.muted { color: var(--txt3); }
.muted.small { font-size: 11.5px; margin-top: 10px; text-align: center; }

.pay-panel { text-align: center; padding: 6px 0; }
.pay-panel .pp-ic { font-size: 36px; }
.pay-panel .pp-t { font-size: 15px; font-weight: 700; margin-top: 8px; }
.pay-panel .pp-s { font-size: 12.5px; color: var(--txt3); margin: 6px 0 14px; }
.pay-panel .pp-params { font-size: 11.5px; color: var(--txt3); margin-bottom: 14px; word-break: break-all; }

.pay-switch { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pay-switch .ps-title { font-size: 12.5px; color: var(--txt3); margin-bottom: 10px; }
.pay-switch .ps-list { display: flex; flex-wrap: wrap; gap: 8px; }

.pay-note { font-size: 13px; color: var(--txt2); line-height: 1.9; text-align: center; }
.pay-note.small { font-size: 12px; color: var(--txt3); margin-top: 8px; }
.pay-ok { text-align: center; font-size: 13.5px; color: var(--txt2); margin-bottom: 14px; }
.pay-proof-img { display: block; width: 60%; max-width: 240px; margin: 14px auto; border-radius: 12px; border: 1px solid var(--line-strong); }
.pay-hero .ph-orig { font-size: 12px; color: var(--amber); margin-top: 6px; letter-spacing: .2px; }

/* ============================================================
   邀请砍价（砍一刀）
   ============================================================ */
.bargain-card {
  border: 1px solid rgba(251, 191, 36, .28);
  background:
    radial-gradient(520px 200px at 100% 0%, rgba(251, 191, 36, .14), transparent 70%),
    var(--panel);
}
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-t { font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.bc-badge {
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .32);
}
.bc-badge.off { color: var(--txt3); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.bc-price { display: flex; align-items: flex-end; justify-content: space-between; margin: 14px 0 10px; }
.bc-now { display: flex; align-items: baseline; gap: 6px; }
.bc-now span { font-size: 12px; color: var(--txt3); }
.bc-now b {
  font-size: 30px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bc-side { text-align: right; font-size: 12px; color: var(--txt3); line-height: 1.7; }
.bc-side s { color: var(--txt3); }
.bc-side .bc-cut { color: var(--amber); font-weight: 700; }
.bc-bar { height: 8px; background: rgba(255, 255, 255, .08); }
.bc-bar i { background: linear-gradient(90deg, #fbbf24, #f97316); box-shadow: 0 0 12px rgba(251, 191, 36, .55); }
.bc-tip { font-size: 11.5px; color: var(--txt3); margin-top: 8px; }
.bc-tip b { color: var(--amber); }
.bc-btn {
  width: 100%; margin-top: 14px; padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f97316); color: #2a1600;
  box-shadow: 0 10px 26px rgba(251, 146, 60, .34);
}
.bc-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(251, 146, 60, .42); }
.bc-btn:disabled { background: rgba(255, 255, 255, .08); color: var(--txt3); box-shadow: none; transform: none; }
.bc-cuts { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.bc-cuts-t { font-size: 12px; color: var(--txt3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.bc-cuts-t span { color: var(--amber); font-weight: 700; }
.bc-cut-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.bcr-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #2a1600;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.bcr-n { flex: 1; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-cut-row b { color: var(--amber); font-weight: 800; }
.bc-more { font-size: 11.5px; color: var(--txt3); margin-top: 6px; text-align: center; }
.bc-empty { font-size: 12.5px; color: var(--txt3); margin-top: 14px; text-align: center; line-height: 1.8; }
.bc-note {
  margin-top: 12px; padding: 8px 10px; border-radius: 8px;
  font-size: 11.5px; color: var(--txt3); line-height: 1.6;
  background: rgba(148, 163, 184, .1); border: 1px dashed rgba(148, 163, 184, .3);
}
.bargain-hint {
  display: flex; gap: 12px; align-items: center; margin-top: 12px;
  border: 1px solid rgba(251, 191, 36, .26); background: rgba(251, 191, 36, .07);
}
.bargain-hint .bh-ic { font-size: 24px; flex: none; }
.bargain-hint b { font-size: 13.5px; color: var(--amber); }
.bargain-hint p { font-size: 12px; color: var(--txt3); margin-top: 3px; line-height: 1.7; }

/* ---------- 分享抽屉 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 95; background: rgba(4, 8, 18, .68); backdrop-filter: blur(7px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s ease;
}
.sheet {
  width: 100%; max-width: 460px; background: var(--bg2); border: 1px solid var(--line-strong);
  border-bottom: none; border-radius: 24px 24px 0 0; padding: 10px 22px 26px;
  animation: sheetUp .28s cubic-bezier(.22, .8, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-bar { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head b { font-size: 16px; }
.sheet-x {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--txt2); cursor: pointer; font-size: 13px; line-height: 1;
}
.sheet-sub { font-size: 12.5px; color: var(--txt3); margin: 6px 0 16px; }
.sheet-sub b { color: var(--amber); }
.share-qr { display: flex; justify-content: center; margin-bottom: 14px; }
.share-qr img { width: 176px; height: 176px; border-radius: 14px; background: #fff; padding: 9px; border: 1px solid var(--line-strong); }
.share-qr.no-qr { min-height: 92px; }
.share-qr.no-qr::after {
  content: '二维码需联网生成，请直接复制下方链接分享';
  font-size: 12px; color: var(--txt3); text-align: center; line-height: 1.9; padding: 26px 10px;
  border: 1px dashed var(--line-strong); border-radius: 14px; width: 100%;
}
.share-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 13px;
  background: var(--panel); border: 1px solid var(--line);
}
.share-link .sl-u { flex: 1; font-size: 12px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.share-ways button {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; cursor: pointer;
  border-radius: 15px; border: 1px solid var(--line); background: var(--panel); color: var(--txt);
  font-size: 12.5px; font-weight: 600; transition: all .2s;
}
.share-ways button:hover { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .09); transform: translateY(-2px); }
.share-ways button i { font-size: 22px; font-style: normal; }
.sheet-tip { font-size: 11.5px; color: var(--txt3); margin-top: 14px; line-height: 1.8; text-align: center; }

/* ---------- 好友砍价页 ---------- */
.bargain-hero { text-align: center; padding: 22px 16px 18px; }
.bargain-hero .bh-av {
  width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, rgba(251, 191, 36, .3), rgba(249, 115, 22, .12));
  border: 1px solid rgba(251, 191, 36, .4); box-shadow: 0 0 30px rgba(251, 191, 36, .22);
}
.bargain-hero h2 { font-size: 19px; font-weight: 800; }
.bargain-hero p { font-size: 12.5px; color: var(--txt3); margin-top: 7px; }
.cut-flash {
  text-align: center; font-size: 14px; color: var(--amber); font-weight: 700;
  margin-bottom: 12px; padding: 12px; border-radius: 14px;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3);
  animation: cutPop .45s cubic-bezier(.2, 1.3, .4, 1);
}
.cut-flash b { font-size: 20px; }
@keyframes cutPop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bargain-goods .bg-tt { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.bargain-goods .bg-prices { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.bargain-goods .bgp { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--txt3); }
.bargain-goods .bgp s { font-size: 14px; color: var(--txt3); }
.bargain-goods .bgp.now { text-align: right; }
.bargain-goods .bgp.now b {
  font-size: 27px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cut-form .cf-lb { font-size: 12.5px; color: var(--txt2); margin-bottom: 9px; }
.cut-form .pu-input { width: 100%; }
.cut-form .cf-tip { font-size: 11.5px; color: var(--txt3); text-align: center; margin-top: 10px; }
.cut-done { text-align: center; padding: 8px 0 4px; }
.cut-done .cd-ic { font-size: 40px; }
.cut-done b { display: block; font-size: 16px; margin: 8px 0 6px; }
.cut-done p { font-size: 12.5px; color: var(--txt3); }
.cut-done.ok b { color: var(--green); }
.bc-share2 { width: 100%; margin-top: 14px; }
.bargain-cta { text-align: center; }
.bargain-cta .bc-cta-t { font-size: 12.5px; color: var(--txt3); margin-bottom: 10px; }
.bargain-cta .btn { width: 100%; }

/* ---------- 响应式 ---------- */
/* 金刚区 8 个分类：窄屏（含手机）改为 4 列 × 2 行，逐格对齐；分类 chips 同步降为 4 列换行 */
@media (max-width: 900px) {
  .nav-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cate-chips { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) {
  .tabbar { display: none; }
  .app { padding-bottom: 60px; }
}
@media (max-width: 768px) {
  .top-nav { display: none; }
  .topbar { padding: 0 16px; justify-content: space-between; }
  .tabbar { display: flex; }
  .app { padding: 14px 13px calc(var(--tabbar-h) + 30px); }
  .grid-3, .grid-2, .plan-grid, .me-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero { padding: 28px 22px; }
  .hero .hero-stats { gap: 18px; }
  .quiz-card { padding: 22px 17px; }
  .quiz-q { font-size: 16.5px; }
  .recharge-opts { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .detail-hero .dh-inner { padding: 24px 18px; }
  .me-hero { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .nav-item .ni { font-size: 21px; }
  .nav-item span:last-child { font-size: 10.5px; }
}
