/* ==========================================================
   灵镜测算 (neon) — 暗夜霓虹 · 深色炫酷
   手机端为主 · 微信卡片式 · 渐变/流光/神秘星辉
   桌面最大宽度 1024px · 图标SVG化 · 纯CSS动效（性能优先）
========================================================== */
:root {
  --c-primary: #8b5cf6;
  --c-primary-2: #a78bfa;
  --c-primary-soft: rgba(139, 92, 246, .14);
  --c-cyan: #22d3ee;
  --c-magenta: #e879f9;
  --c-gold: #f5c34d;
  --c-gold-2: #e8a13c;
  --c-gold-soft: rgba(245, 195, 77, .14);
  --c-bg: #0d0718;
  --c-bg-2: #150b2b;
  --c-card: #171031;
  --c-card-2: #201543;
  --c-text: #eae5f8;
  --c-muted: #9489b5;
  --c-border: rgba(139, 92, 246, .16);
  --c-border-2: rgba(139, 92, 246, .28);
  --c-danger: #fb7185;
  --c-ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --font-serif: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --grad-main: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #0ea5b7 100%);
  --grad-violet: linear-gradient(135deg, #a855f7 0%, #6366f1 60%, #22d3ee 120%);
  --grad-gold: linear-gradient(135deg, #f5c34d 0%, #e8a13c 100%);
  --grad-text: linear-gradient(120deg, #c4b5fd 0%, #a78bfa 40%, #67e8f9 100%);
  --shadow: 0 4px 24px rgba(10, 4, 26, .55), 0 0 0 1px rgba(139, 92, 246, .08);
  --shadow-glow: 0 6px 26px rgba(124, 58, 237, .32);
  --dur: 220ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 15px;
  padding-bottom: 64px;
  min-height: 100vh;
}
a { color: #b7a3f5; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-primary-2); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: 1024px; margin: 0 auto; padding: 0 14px; position: relative; z-index: 1; }
.site-main { padding-top: 20px; }
::selection { background: rgba(139, 92, 246, .4); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- 星辉霓虹背景（纯CSS，性能友好） ---------- */
.neon-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background:
  radial-gradient(1200px 700px at 85% -10%, rgba(124, 58, 237, .28), transparent 60%),
  radial-gradient(1000px 600px at -10% 20%, rgba(34, 211, 238, .12), transparent 55%),
  radial-gradient(900px 700px at 50% 110%, rgba(232, 121, 249, .12), transparent 60%),
  linear-gradient(180deg, #120a26 0%, #0d0718 45%, #0a0512 100%);
}
.nb-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; animation: orbFloat 14s ease-in-out infinite alternate; will-change: transform; }
.nb-orb-a { width: 320px; height: 320px; left: -80px; top: 12%; background: rgba(124, 58, 237, .5); }
.nb-orb-b { width: 260px; height: 260px; right: -60px; top: 42%; background: rgba(34, 211, 238, .3); animation-delay: -5s; }
.nb-orb-c { width: 220px; height: 220px; left: 30%; bottom: -60px; background: rgba(232, 121, 249, .32); animation-delay: -9s; }
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, -34px, 0) scale(1.12); }
}
.nb-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 28% 62%, rgba(167,139,250,.95), transparent 60%),
    radial-gradient(1.8px 1.8px at 46% 28%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.3px 1.3px at 63% 74%, rgba(103,232,249,.9), transparent 60%),
    radial-gradient(1.7px 1.7px at 78% 34%, rgba(232,121,249,.85), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 82%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 84%, rgba(196,181,253,.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 54% 8%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.4px 1.4px at 92% 12%, rgba(167,139,250,.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 34% 92%, rgba(103,232,249,.7), transparent 60%);
  animation: starTwinkle 5s ease-in-out infinite alternate;
}
@keyframes starTwinkle { 0% { opacity: .55; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .nb-orb, .nb-stars, .am-track, .fx-flow { animation: none !important; }
}

/* ---------- 按钮（霓虹渐变） ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  background: rgba(255, 255, 255, .08); color: var(--c-text); line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); opacity: .85; }
.btn-primary { background: var(--grad-violet); color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237, .35); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(124, 58, 237, .5); color: #fff; }
.btn-gold { background: var(--grad-gold); color: #241603; box-shadow: 0 6px 18px rgba(245, 195, 77, .28); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(245, 195, 77, .4); color: #241603; }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; }
.btn-ok { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-cash { background: linear-gradient(135deg, #f59e0b, #f43f5e); color: #fff; box-shadow: 0 6px 18px rgba(244, 63, 94, .3); }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--c-border-2); color: #c9c0e8; }
.btn-ghost:hover { border-color: var(--c-primary); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 14px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 微信式顶栏 ---------- */
.wx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 7, 24, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}
.wx-bar {
  max-width: 1024px; margin: 0 auto; height: 50px; padding: 0 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.wx-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wx-side-left { justify-content: flex-start; }
.wx-side-right { justify-content: flex-end; }
.wx-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px;
  background: none; border: none; color: #d5cdf0; font-size: 15px;
  padding: 6px 10px 6px 2px; cursor: pointer; font-weight: 500; border-radius: 10px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wx-back:hover { background: rgba(255,255,255,.06); color: #fff; }
.wx-title { min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.wx-title-text {
  font-size: 16.5px; font-weight: 600; color: #f0ecfb;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw;
}
.wx-logo { display: inline-flex; align-items: center; gap: 7px; font-size: 16.5px; font-weight: 700; color: #f0ecfb; }
.wx-logo span {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wx-logo-img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 12px rgba(139, 92, 246, .6); }
.wx-share {
  display: inline-flex; align-items: center; gap: 4px; min-height: 34px;
  background: var(--grad-violet); color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 13px; border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .42);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wx-share:active { transform: scale(.94); }
.wx-login { color: var(--c-primary-2); font-size: 14.5px; font-weight: 600; padding: 5px 8px; }
.wx-reg { background: var(--grad-violet); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px; box-shadow: 0 4px 12px rgba(124, 58, 237, .4); }
.wx-avatar {
  width: 27px; height: 27px; border-radius: 50%; background: var(--grad-violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(139, 92, 246, .55);
}
.points-pill {
  background: var(--c-primary-soft); color: var(--c-primary-2); font-weight: 700;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  border: 1px solid var(--c-border);
}

/* ---------- 营销横幅 ---------- */
.promo-bar { background: var(--grad-violet); color: #fff; font-size: 12.5px; position: sticky; top: 50px; z-index: 99; }
.promo-inner { display: flex; align-items: center; gap: 8px; min-height: 38px; flex-wrap: wrap; padding: 5px 14px; max-width: 1024px; margin: 0 auto; }
.promo-text { font-weight: 600; }
.promo-count .countdown { font-weight: 800; }
.promo-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.promo-btn { background: #fff; color: #6d28d9; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.promo-btn-ghost { background: rgba(255,255,255,.18); color: #fff; }
.promo-close { background: none; border: none; color: #fff; opacity: .7; font-size: 14px; cursor: pointer; padding: 2px 4px; }

/* ---------- 底部导航（手机） ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 200;
  width: 100%; max-width: 1024px; display: flex;
  background: rgba(19, 10, 40, .85);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 30px rgba(5, 2, 14, .6);
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 7px; color: #6f6590; font-size: 11px; -webkit-tap-highlight-color: transparent;
  transition: color var(--dur) var(--ease);
}
.bn-item svg { transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.bn-item:active svg { transform: scale(.86); }
.bn-item.active { color: var(--c-primary-2); font-weight: 700; }
.bn-item.active svg { filter: drop-shadow(0 0 7px rgba(139, 92, 246, .9)); }
.bn-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 6px 6px;
  background: var(--grad-violet); box-shadow: 0 0 10px rgba(139, 92, 246, .9);
}
.page-bottom-space { height: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--c-border); background: rgba(10, 5, 18, .6); }
.footer-slim { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 11.5px; color: var(--c-muted); line-height: 1.7; }
@media (min-width: 640px) { .footer-slim { flex-direction: row; justify-content: space-between; } }

/* ---------- 卡片 ---------- */
.card {
  position: relative; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-title h2 { font-size: 15.5px; color: var(--c-text); flex: 1; font-weight: 700; }
.card-title .more, .more { font-size: 12.5px; color: var(--c-muted); }
.section-head { margin: 20px 0 12px; }
.section-head h1 { font-size: 21px; color: var(--c-text); }
.section-head h2 {
  font-size: 16.5px; color: var(--c-text); display: flex; align-items: center; gap: 7px;
}
.section-head h2 .sh-ic {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: var(--grad-violet); box-shadow: 0 4px 12px rgba(124, 58, 237, .4);
}
.section-head p { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; }
.page-head { margin: 16px 0 12px; }
.page-head h1 { font-size: 21px; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.page-head p { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; }

/* ---------- 首页快捷导航（卡片式） ---------- */
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
@media (min-width: 640px) { .quick-nav { grid-template-columns: repeat(6, 1fr); } }
.quick-item {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(33, 19, 70, .9), rgba(23, 16, 49, .95));
  border: 1px solid var(--c-border); border-radius: 15px; padding: 14px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--c-text); font-size: 13px; font-weight: 600; text-align: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quick-item:active { transform: scale(.95); }
.quick-item:hover { border-color: var(--c-border-2); }
.quick-icon {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); border: 1px solid var(--c-border-2);
  box-shadow: inset 0 0 14px rgba(139, 92, 246, .18);
}
.quick-icon svg { width: 24px; height: 24px; color: #c4b5fd; }
.quick-item.gold .quick-icon { background: var(--c-gold-soft); border-color: rgba(245, 195, 77, .35); box-shadow: inset 0 0 14px rgba(245, 195, 77, .2); }
.quick-item.gold .quick-icon svg { color: var(--c-gold); }
.quick-item .qi-sub { font-size: 11px; color: var(--c-muted); font-weight: 400; line-height: 1.2; }

/* ---------- 测算网格 ---------- */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .test-grid { grid-template-columns: repeat(4, 1fr); } }
.test-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(32, 20, 68, .92), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 16px; padding: 8px 8px 11px;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.test-card:active { transform: scale(.965); }
.test-card:hover { border-color: var(--c-border-2); box-shadow: 0 8px 26px rgba(10, 4, 26, .6), 0 0 18px rgba(139, 92, 246, .18); }
.test-thumb { position: relative; }
.test-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50px; background: #1c1138; }
.test-cost {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(8, 4, 18, .68); color: #e7dcff; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--c-border-2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.test-cost.promo { background: var(--grad-gold); color: #241603; border-color: transparent; }
.test-cost.vip-free { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; }
.test-body { display: flex; flex-direction: column; flex: 1; padding: 8px 2px 0; }
.test-name {
  font-size: 14px; font-weight: 700; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.test-blurb, .test-intro { font-size: 11.5px; color: var(--c-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.test-blurb { margin-top: 3px; }
.test-intro { margin-top: 2px; }
.feature-mini { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.feature-mini span { font-size: 10.5px; background: var(--c-primary-soft); color: #b9a8f2; padding: 1px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap; border: 1px solid var(--c-border); }
.test-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 7px; gap: 6px; }
.test-go { font-size: 12px; color: var(--c-primary-2); font-weight: 600; white-space: nowrap; }
.price-orig { font-size: 11px; color: var(--c-muted); text-decoration: line-through; }
.test-icon { line-height: 1; }
.test-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50px; display: block; background: #1c1138; }

/* ---------- 图文介绍区（表单页） ---------- */
.test-info-head {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(160deg, rgba(32, 20, 68, .95), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 16px; padding: 14px; margin: 14px 0 12px;
}
.ti-icon { flex-shrink: 0; }
.ti-img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--c-border-2); box-shadow: 0 0 14px rgba(139, 92, 246, .4); }
.ti-fallback { width: 66px; height: 66px; border-radius: 50%; background: var(--c-primary-soft); border: 1px solid var(--c-border-2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.test-info-head .ti-main { flex: 1; min-width: 0; }
.test-info-head h1 { font-size: 18px; color: var(--c-text); }
.test-info-head p { font-size: 12px; color: var(--c-muted); margin-top: 3px; line-height: 1.6; }
.ti-cost { text-align: right; flex-shrink: 0; }
.ti-cost > div { font-size: 11px; color: var(--c-muted); }
.ti-cost b { font-size: 19px; display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.info-card { margin: 0 0 12px; }
.info-card h3 { font-size: 14.5px; color: var(--c-text); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.info-card .ic-text { font-size: 13px; color: #c5bde0; line-height: 1.85; }
.feature-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-item { display: flex; gap: 10px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; align-items: flex-start; }
.feature-item .fi-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); border: 1px solid var(--c-border-2);
}
.fi-icon svg { width: 19px; height: 19px; color: #c4b5fd; }
.feature-item b { display: block; font-size: 13px; color: var(--c-text); }
.feature-item p { font-size: 11.5px; color: var(--c-muted); margin-top: 2px; line-height: 1.55; }

/* ---------- 开运锦囊（流光边框） ---------- */
.tip-box {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--c-card), var(--c-card)) padding-box,
    linear-gradient(110deg, rgba(139,92,246,.55), rgba(34,211,238,.4), rgba(232,121,249,.55), rgba(139,92,246,.55)) border-box;
  border: 1px solid transparent; border-radius: 16px; padding: 15px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.tip-title { font-size: 14.5px; font-weight: 700; color: var(--c-text); }
.tip-sub { font-size: 11.5px; color: var(--c-muted); margin: 2px 0 10px; }
.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .tip-grid { grid-template-columns: repeat(4, 1fr); } }
.tip-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; padding: 10px 8px; text-align: center; }
.gi-icon { width: 30px; height: 30px; margin: 0 auto; border-radius: 9px; background: var(--c-primary-soft); display: flex; align-items: center; justify-content: center; }
.gi-icon svg { width: 18px; height: 18px; color: #c4b5fd; }
.tip-item b { display: block; font-size: 12.5px; margin-top: 3px; }
.tip-item span { font-size: 11px; color: var(--c-muted); display: block; margin-top: 2px; line-height: 1.5; }

/* ---------- 表单 ---------- */
.form-card { padding: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-item.full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 13px; color: #b9b0d6; margin-bottom: 6px; font-weight: 600; }
.form-item .req { color: var(--c-danger); }
.form-actions { margin-top: 16px; }
.form-tip { font-size: 12px; color: var(--c-muted); }
.form-head { text-align: center; margin-bottom: 16px; }
.form-head h1 { font-size: 20px; color: var(--c-text); }
.form-head p { font-size: 12.5px; color: var(--c-muted); margin-top: 4px; }
.form-foot { text-align: center; font-size: 13px; color: var(--c-muted); margin-top: 14px; }
.auth-card { max-width: 420px; margin: 26px auto; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: inherit;
  color: var(--c-text); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--c-border-2); border-radius: 11px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #6d6489; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-primary); background: rgba(139, 92, 246, .08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .2);
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239489b5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; padding-right: 34px; }
.textarea { min-height: 88px; resize: vertical; line-height: 1.7; }
option { background: #1c1138; color: var(--c-text); }

/* ---------- 搜索条 ---------- */
.filter-bar { display: flex; gap: 10px; margin: 14px 0; }
.search-input { flex: 1; }

/* ---------- 提示条 ---------- */
.flash { border-radius: 12px; border: 1px solid transparent; padding: 10px 13px; font-size: 13px; margin-bottom: 12px; animation: flashIn .35s var(--ease); }
.flash-success { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .3); }
.flash-danger { background: rgba(244, 63, 94, .12); color: #fda4af; border-color: rgba(244, 63, 94, .3); }
.flash-info { background: rgba(139, 92, 246, .14); color: #c4b5fd; border-color: rgba(139, 92, 246, .32); }
.flash-warning { background: rgba(245, 195, 77, .12); color: #fde68a; border-color: rgba(245, 195, 77, .3); }
.flash a { color: inherit; text-decoration: underline; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 徽章 / 标签 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.08); color: var(--c-muted); }
.badge-ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.badge-danger { background: rgba(244, 63, 94, .16); color: #fda4af; }
.badge-info { background: rgba(59, 130, 246, .16); color: #93c5fd; }
.badge-gold { background: var(--c-gold-soft); color: #fde68a; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 11.5px; background: rgba(255,255,255,.07); color: #b9b0d6; }
.tag-ji { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.tag-xiong { background: rgba(244, 63, 94, .16); color: #fda4af; }

.fortune-score-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; }
.fs-label { width: 56px; flex-shrink: 0; color: #b9b0d6; }
.fortune-track { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.fortune-fill { height: 100%; background: var(--grad-violet); border-radius: 999px; box-shadow: 0 0 8px rgba(139, 92, 246, .7); }
.fortune-val { width: 26px; text-align: right; font-weight: 700; color: var(--c-primary-2); }

/* ---------- 会员 CTA ---------- */
.member-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(14,116,144,.9));
  border-radius: 16px; padding: 18px 16px; color: #fff; margin: 18px 0;
  box-shadow: 0 10px 30px rgba(10, 4, 26, .6), 0 0 22px rgba(124, 58, 237, .35);
}
.member-cta h3 { font-size: 15.5px; position: relative; z-index: 1; }
.member-cta p { font-size: 12px; opacity: .92; margin-top: 4px; line-height: 1.65; position: relative; z-index: 1; }
.member-cta .btn { position: relative; z-index: 1; }
.cta-price { text-align: center; flex-shrink: 0; background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(6px); }
.cta-price small { display: block; font-size: 10.5px; opacity: .85; }
.cta-price b { font-size: 20px; color: #ffe08a; display: block; }

/* ---------- 套餐 / 会员卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-grid + .plan-grid { margin-top: 16px; }
.member-sec-title { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 6px; }
.member-sec-title:first-child { margin-top: 0; }
.member-sec-title .ic-inline { color: var(--c-primary); }
.member-sec-title .ic-inline svg { width: 16px; height: 16px; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(165deg, rgba(33, 19, 70, .92), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 15px; padding: 16px 10px 14px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan-card.hot { border-color: rgba(245, 195, 77, .6); box-shadow: 0 8px 26px rgba(245, 195, 77, .14), var(--shadow); }
.plan-card.hot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, rgba(245,195,77,.25) 50%, transparent 70%);
  background-size: 250% 100%; animation: fxFlow 5s linear infinite;
}
@keyframes fxFlow { 0% { background-position: 200% 0; } 100% { background-position: -60% 0; } }
.pc-bonus {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #241603; font-size: 10.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(245, 195, 77, .35); z-index: 2;
}
.pc-price { font-size: 21px; font-weight: 800; margin: 8px 0 2px; color: var(--c-text); }
.pc-price small { font-size: 11.5px; color: var(--c-muted); font-weight: 500; }
.pc-points { font-size: 13px; font-weight: 700; margin-bottom: 4px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.recharge-hint { font-size: 12px; color: var(--c-muted); text-align: center; margin: 14px 0 6px; line-height: 1.7; }

/* ---------- 抽签 ---------- */
.lottery-card { text-align: center; }
.lottery-card .btn { margin-top: 8px; }
.stick-box { padding: 8px 0 12px; }
.stick-level { font-size: 15px; font-weight: 800; color: var(--c-gold); text-shadow: 0 0 12px rgba(245, 195, 77, .5); }
.stick-poem { font-size: 13.5px; font-family: var(--font-serif); margin: 6px 0; color: var(--c-text); }
.stick-detail { background: rgba(255,255,255,.05); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px; text-align: left; margin: 12px 0; }
/* ---------- 每日一签 · 奖励面板 ---------- */
.lottery-page { display: flex; flex-direction: column; gap: 14px; }
.lottery-earn { margin: 4px 0 12px; font-size: 13.5px; color: var(--c-text); }
.lottery-earn b { color: var(--c-gold); font-size: 16px; }
.lottery-earn-sub { color: var(--c-muted); font-size: 12px; }
.lottery-streak-tip { font-size: 13px; color: var(--c-muted); margin-top: 12px; line-height: 1.7; }
.lottery-streak-tip b { color: var(--c-primary-2); }
.lottery-reward { text-align: left; }
.lr-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 12px; }
.lr-title .ic-inline { color: var(--c-primary); }
.lr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lr-streak { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lr-item { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.lr-level { font-size: 12.5px; font-weight: 800; }
.lr-level.lv-shangshang { color: #f5c34d; }
.lr-level.lv-shang { color: #a78bfa; }
.lr-level.lv-zhong { color: #67e8f9; }
.lr-level.lv-xia { color: #fb923c; }
.lr-level.lv-xiaxia { color: #94a3b8; }
.lr-pts { font-size: 12px; color: var(--c-muted); }
.lr-divider { height: 1px; background: var(--c-border); margin: 14px 0; }
.lr-note { font-size: 12px; color: var(--c-muted); margin-top: 12px; text-align: center; }
@media (max-width: 560px) {
  .lr-grid, .lr-streak { grid-template-columns: repeat(3, 1fr); }
  .lr-streak .lr-item:last-child { grid-column: 2 / 3; }
}


/* ---------- 测算结果页 ---------- */
.result-head { margin: 14px 0 12px; }
.result-head h1 { font-size: 18px; color: var(--c-text); }
.rh-meta { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.result-hero {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(160deg, rgba(32, 20, 68, .95), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 16px; padding: 12px; margin-bottom: 12px;
}
.result-hero img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--c-border-2); box-shadow: 0 0 14px rgba(139, 92, 246, .45); }
.rh-name { font-size: 16px; font-weight: 700; color: var(--c-text); }
.rh-params { font-size: 12px; color: var(--c-muted); margin-top: 2px; line-height: 1.6; }
.score-summary {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(160deg, rgba(32, 20, 68, .95), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.score-ring {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 180deg, #a855f7, #22d3ee, #e879f9, #a855f7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(139, 92, 246, .5);
}
.score-ring b { font-size: 22px; color: #fff; line-height: 1; text-shadow: 0 0 8px rgba(0,0,0,.4); }
.score-ring span { font-size: 10.5px; color: #e7dcff; margin-top: 2px; }
.ss-text { flex: 1; min-width: 0; }
.ss-text h3 { font-size: 14px; color: var(--c-text); }
.ss-text p { font-size: 12px; color: var(--c-muted); margin-top: 3px; line-height: 1.6; }
.scores-bars { margin-top: 6px; }
.result-section {
  background: linear-gradient(160deg, rgba(32, 20, 68, .9), rgba(21, 13, 43, .94));
  border: 1px solid var(--c-border); border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.rs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rs-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; background: var(--c-primary-soft);
  border: 1px solid var(--c-border-2);
}
.rs-icon svg { width: 17px; height: 17px; color: #c4b5fd; }
.rs-head h3 { font-size: 14.5px; flex: 1; color: var(--c-text); }
.rs-score { font-size: 11.5px; color: var(--c-muted); }
.rs-body { font-size: 13px; line-height: 1.8; color: #d3cbec; }
.rs-body p { margin-bottom: 6px; }

/* ---------- 用户中心（单列导航，App风格） ---------- */
.panel { display: block; }
.panel-main { min-width: 0; }
.panel-user {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(140deg, rgba(124,58,237,.4), rgba(14,116,144,.3)), var(--c-card);
  border: 1px solid var(--c-border-2); border-radius: 16px; padding: 16px 14px; margin-bottom: 12px;
}
.panel-user::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px 90px at 85% -20%, rgba(255,255,255,.18), transparent 60%);
}
.panel-user .avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; position: relative; z-index: 1;
  background: var(--grad-violet); color: #fff; border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
  box-shadow: 0 0 16px rgba(139, 92, 246, .6);
}
.panel-user b { font-size: 15px; display: block; position: relative; z-index: 1; }
.panel-user span { font-size: 12px; color: #c5bde0; position: relative; z-index: 1; }
.panel-nav { background: rgba(23, 16, 49, .9); border: 1px solid var(--c-border); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.panel-nav a {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  color: #d3cbec; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.panel-nav a:last-child { border-bottom: none; }
.panel-nav a:active { background: rgba(139, 92, 246, .12); }
.panel-nav a.active { color: var(--c-primary-2); font-weight: 700; background: linear-gradient(90deg, rgba(139,92,246,.18), transparent); border-left: 3px solid var(--c-primary); }
.panel-nav .pn-ic {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; background: var(--c-primary-soft);
  border: 1px solid var(--c-border);
}
.panel-nav .pn-ic svg { width: 18px; height: 18px; color: #c4b5fd; }
.panel-nav .pn-arrow { margin-left: auto; color: #6d6489; font-size: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: linear-gradient(165deg, rgba(33, 19, 70, .9), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 13px; padding: 12px 10px; text-align: center;
}
.stat-card b { display: block; font-size: 17px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { font-size: 11.5px; color: var(--c-muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data th { text-align: left; padding: 8px 6px; color: #8f86ad; font-weight: 600; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.data td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; color: #cfc7e8; }
.data tr:last-child td { border-bottom: none; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: 10px; background: rgba(255,255,255,.06); color: #b9b0d6; font-size: 12.5px;
  border: 1px solid var(--c-border); transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pagination a:hover { background: var(--c-primary-soft); color: #fff; }
.pagination .cur, .pagination .current { background: var(--grad-violet); color: #fff; font-weight: 700; border-color: transparent; box-shadow: 0 4px 14px rgba(124, 58, 237, .4); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 26px 10px; color: var(--c-muted); font-size: 13px; }
.em-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: var(--c-primary-soft); border: 1px solid var(--c-border-2); display: flex; align-items: center; justify-content: center; }
.em-icon svg { width: 26px; height: 26px; color: #9d8fd0; }
.notfound { text-align: center; padding: 40px 10px; }

/* ---------- 首页单列 · 热门测算居中 ---------- */
.home-single { display: block; }
.home-test-grid .test-card { padding-bottom: 12px; }
.home-test-grid .test-name { text-align: center; margin-top: 8px; }
.home-test-grid .test-blurb { text-align: center; }
.home-news-head { display: flex; align-items: baseline; justify-content: space-between; }
.home-news-head .more { font-size: 12.5px; color: var(--c-muted); }

/* ---------- 资讯文章列表 ---------- */
.cat-filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.cat-filter::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.06);
  color: #b9b0d6; font-size: 12.5px; font-weight: 600; border: 1px solid var(--c-border);
}
.cat-pill.active { background: var(--grad-violet); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(124, 58, 237, .4); }
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(32, 20, 68, .92), rgba(21, 13, 43, .95));
  border: 1px solid var(--c-border); border-radius: 15px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 6px; color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.article-card:active { transform: scale(.985); }
.article-card:hover { border-color: var(--c-border-2); }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-cat {
  font-size: 11px; color: #c4b5fd; background: var(--c-primary-soft);
  padding: 2px 9px; border-radius: 999px; font-weight: 700; border: 1px solid var(--c-border);
}
.ac-date { font-size: 11.5px; color: var(--c-muted); }
.ac-title { font-size: 15px; font-weight: 700; color: var(--c-text); line-height: 1.5; }
.ac-summary { font-size: 12.5px; color: var(--c-muted); line-height: 1.65; }
.ac-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; font-size: 11.5px; color: var(--c-muted); }
.ac-more { color: var(--c-primary-2); font-weight: 600; }

/* ---------- 文章详情 ---------- */
.article-detail .card { padding: 16px; }
.ad-head { text-align: left; }
.ad-cat { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--c-cyan); background: var(--c-primary-soft); padding: 4px 12px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(34,211,238,.35); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.ad-cat:hover { color: #fff; border-color: var(--c-cyan); transform: translateY(-1px); }
.ad-head h1 { font-size: 20px; color: var(--c-text); line-height: 1.5; margin-top: 10px; }
.ad-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--c-muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); }
.ad-meta .ic-inline { display: inline-flex; align-items: center; }
.ad-meta .ic-inline svg { width: 13px; height: 13px; }
.ad-meta time { color: var(--c-muted); }
.ad-meta .meta-dot { opacity: .5; margin: 0 2px; }
.ad-summary {
  font-family: var(--font-serif);
  font-size: 14px; color: #e4d9ff; line-height: 1.9;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(34,211,238,.07));
  border: 1px solid rgba(139,92,246,.3); border-left: 3px solid var(--c-primary);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.ad-summary::before { content: "✦ 导读"; display: block; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--c-gold); margin-bottom: 6px; }
.ad-body { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 16px; padding: 16px 16px 8px; }
.ad-body p { font-size: 14.5px; color: #d6ceea; line-height: 2; margin-bottom: 14px; text-indent: 2em; }
.ad-body h3 { font-size: 16px; color: var(--c-cyan); margin: 6px 0 10px; padding-left: 10px; border-left: 3px solid var(--c-primary); line-height: 1.5; font-weight: 800; }
.ad-tip { text-align: center; font-size: 11.5px; color: var(--c-muted); margin: 14px 0 4px; }
.rel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.09); font-size: 13.5px; color: #d3cbec;
}
.rel-item:last-child { border-bottom: none; }
.rel-item em { font-style: normal; font-size: 11.5px; color: var(--c-muted); flex-shrink: 0; }
/* ---------- 分享弹层（底部抽屉） ---------- */
.share-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 2, 10, .66);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: maskIn .25s var(--ease);
}
.share-mask[hidden] { display: none; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.share-sheet {
  width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #1d1239, #150b2b);
  border: 1px solid var(--c-border-2); border-bottom: none;
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 44px rgba(4, 2, 10, .8), 0 0 30px rgba(124, 58, 237, .25);
  animation: sheetUp .32s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.share-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.share-sheet-head b { font-size: 16px; color: var(--c-text); }
.share-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.08); color: #b9b0d6; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.share-close:hover { background: rgba(255,255,255,.14); }
.share-preview {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 12px; margin-bottom: 12px;
}
.share-pv-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
.share-pv-info { min-width: 0; }
.share-pv-title { display: block; font-size: 14.5px; color: var(--c-text); }
.share-pv-desc { display: block; font-size: 12px; color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-link-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.share-link-input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 12.5px; color: #c5bde0;
  background: rgba(0,0,0,.28); border: 1px solid var(--c-border-2); border-radius: 11px;
}
.share-copy-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 0 16px; border: none; border-radius: 11px; cursor: pointer;
  background: var(--grad-violet); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
  transition: transform var(--dur) var(--ease);
}
.share-copy-btn:active { transform: scale(.95); }
.share-hint { font-size: 12px; color: var(--c-muted); line-height: 1.8; margin-bottom: 14px; }
.share-hint b { color: var(--c-gold); }
.share-actions { display: flex; gap: 10px; }
.share-act {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 13px 6px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--c-border); color: #d3cbec;
  font-size: 12.5px; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.share-act:active { transform: scale(.96); }
.share-act:hover { background: rgba(255,255,255,.09); border-color: var(--c-border-2); }
.share-act svg { color: #c4b5fd; }
.share-guest { text-align: center; padding: 10px 6px 4px; }
.share-guest-icon {
  width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--c-primary-soft); border: 1px solid var(--c-border-2);
  display: flex; align-items: center; justify-content: center; color: #c4b5fd;
  box-shadow: 0 0 22px rgba(139, 92, 246, .35);
}
.share-guest-title { display: block; font-size: 17px; color: var(--c-text); }
.share-guest-desc { font-size: 12.5px; color: var(--c-muted); line-height: 1.7; margin: 8px 0 16px; }
.share-guest-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px);
  z-index: 400; max-width: 84vw; padding: 10px 18px; border-radius: 999px;
  background: rgba(16, 9, 34, .94); color: #f0ecfb; font-size: 13.5px;
  border: 1px solid var(--c-border-2); box-shadow: 0 8px 28px rgba(4, 2, 10, .7), 0 0 16px rgba(139, 92, 246, .3);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 图标通用 ---------- */
.ic-inline { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; }
.ic-inline svg { width: 1.25em; height: 1.25em; }
.ic-badge {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); border: 1px solid var(--c-border);
}
.ic-badge svg { width: 18px; height: 18px; color: #c4b5fd; }

/* ---------- 响应式：手机端百分比 + 桌面放大（最大宽度1024px） ---------- */
@media (max-width: 374px) {
  .wx-bar { height: 48px; }
  .quick-nav { gap: 8px; }
  .plan-grid { gap: 8px; }
}
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .container { padding: 0 20px; }
  .card { padding: 20px; }
  .test-card { padding: 10px 10px 13px; }
  .test-name { font-size: 15px; }
  .section-head h2 { font-size: 18px; }
  .wx-title-text { max-width: 40vw; }
  .data { font-size: 13.5px; }
  .panel-nav a { padding: 16px 18px; font-size: 15.5px; }
}
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .test-card:hover { transform: translateY(-3px); }
}

/* ---------- 尊重减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 个人中心卡片导航 ---------- */
.uc-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #5741b8, #8b5cf6); color: #fff; margin-bottom: 14px; }
.uc-head.is-vip { background: linear-gradient(135deg, #7a5510, #c9971f 45%, #f0c24d 75%, #b8860b); box-shadow: 0 10px 26px rgba(245, 195, 77, .28); }
.uc-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.55); flex-shrink: 0; }
.uc-avatar svg { width: 30px; height: 30px; }
.uc-head.is-vip .uc-avatar { background: rgba(255,255,255,.3); border-color: #ffe08a; box-shadow: 0 0 0 3px rgba(255,224,138,.28), 0 0 18px rgba(245,195,77,.55); }
.uc-head-info { min-width: 0; }
.uc-head-info b { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.uc-head-info .uc-role { font-size: 12.5px; opacity: .92; }
.uc-head-info .uc-role.is-vip { opacity: 1; font-weight: 700; }
.uc-crown { display: inline-flex; align-items: center; color: #ffe08a; filter: drop-shadow(0 0 6px rgba(255,224,138,.85)); }
.uc-crown svg { width: 18px; height: 18px; }
.uc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.uc-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 13px; color: var(--c-text); transition: transform .2s ease, border-color .2s ease; }
.uc-card:hover { transform: translateY(-2px); border-color: var(--c-primary); }
.uc-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--c-primary-soft); color: var(--c-primary); flex-shrink: 0; }
.uc-ic svg { width: 22px; height: 22px; }
.uc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.uc-info b { font-size: 15px; }
.uc-info span { font-size: 12px; color: var(--c-muted); line-height: 1.5; }
.uc-arrow { color: var(--c-muted); display: flex; align-items: center; flex-shrink: 0; }
.uc-arrow svg { width: 16px; height: 16px; display: block; }
@media (min-width: 720px) { .uc-grid { grid-template-columns: 1fr; } }

/* 会员流光头部 + VIP 徽章 + 渐变字色 */
.uc-head.is-vip { background: linear-gradient(120deg,#5b3a00,#8a5d0a 20%,#d4a017 40%,#ffe08a 50%,#d4a017 60%,#8a5d0a 80%,#5b3a00); background-size: 280% 100%; animation: ucShimmer 4s linear infinite; box-shadow: 0 12px 32px rgba(245,195,77,.35); }
.uc-head.is-vip .uc-avatar { border-color: #ffe08a; box-shadow: 0 0 0 3px rgba(255,224,138,.3), 0 0 22px rgba(255,224,138,.7); }
.uc-head.is-vip .uc-name { background: linear-gradient(90deg,#fff8dd,#ffe08a,#ffd34d,#fff8dd); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ucShimmer 3s linear infinite; }
.uc-vip-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #3a2400; background: linear-gradient(120deg,#f6d365,#fda085,#f6d365); background-size: 200% auto; animation: ucShimmer 2.5s linear infinite; box-shadow: 0 0 12px rgba(255,200,80,.85); }
.uc-vip-badge svg { width: 13px; height: 13px; }
.uc-vip-badge i { font-style: normal; }
.uc-stats a.stat-card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.uc-stats a.stat-card:hover { transform: translateY(-2px); border-color: var(--c-primary, #8b5cf6); }
.uc-stats .stat-card b { display: flex; align-items: center; justify-content: center; gap: 5px; }
@keyframes ucShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 280% 50%; } }
