/* ==========================================================================
   蝉脉会员中心 · 专属样式（独立文件，避免与 style.css 并发互相覆盖）
   风格：黑金沉浸 —— 与浅色主站形成"进入专属空间"的仪式感
   ========================================================================== */

#vipSheet {
  position: fixed; inset: 0; z-index: 9000;
  background: radial-gradient(120% 80% at 50% 0%, #1E1811 0%, #0E0C0A 55%, #080706 100%);
  color: #F3EDE4;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.22,.9,.28,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
  font-size: 15px;
}
#vipSheet.open { transform: translateY(0); }
#vipSheet [hidden] { display: none !important; }

.vip-wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部栏 ---------- */
.vip-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(30,24,17,.96) 0%, rgba(14,12,10,.72) 70%, transparent 100%);
  backdrop-filter: blur(10px);
}
.vip-top h2 {
  margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(135deg, #FFE9B0, #F5C86A 45%, #D99A22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vip-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(245,200,106,.28);
  background: rgba(245,200,106,.10); color: #F5C86A; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.vip-close:active { transform: scale(.92); }

/* ---------- ① 身份卡 ---------- */
.vip-idcard {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 20px 18px 18px; margin-top: 4px;
  background: linear-gradient(140deg, #2A2016 0%, #1A1510 55%, #120F0C 100%);
  border: 1px solid rgba(245,200,106,.22);
  box-shadow: 0 14px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}
.vip-idcard.is-vip {
  background: linear-gradient(140deg, #372913 0%, #241A0F 50%, #14100B 100%);
  border-color: rgba(245,200,106,.55);
  box-shadow: 0 14px 46px rgba(217,154,34,.28), inset 0 1px 0 rgba(255,233,176,.16);
}
.vip-idcard::after {
  content: ''; position: absolute; right: -60px; top: -70px; width: 210px; height: 210px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245,200,106,.20) 0%, transparent 68%);
}
.vip-row1 { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.vip-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: #241E18;
  border: 2px solid rgba(245,200,106,.35);
  box-shadow: 0 0 0 3px rgba(245,200,106,.10);
  transition: box-shadow .4s;
}
.vip-idcard.is-vip .vip-avatar {
  border-color: #F5C86A;
  box-shadow: 0 0 0 3px rgba(245,200,106,.22), 0 0 18px rgba(245,200,106,.45);
}
.vip-who { flex: 1; min-width: 0; }
.vip-nick {
  font-size: 17px; font-weight: 800; color: #F7F1E8;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vip-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  padding: 2px 7px; border-radius: 6px; color: #2A1D06;
  background: linear-gradient(135deg, #FFE9B0, #F5C86A 50%, #D99A22);
  box-shadow: 0 2px 8px rgba(217,154,34,.4);
}
.vip-sub { font-size: 12px; color: #9C8E7B; margin-top: 3px; }

/* 余额 */
.vip-balance { margin-top: 16px; position: relative; z-index: 2; }
.vip-balance .lb { font-size: 12px; color: #9C8E7B; display: flex; align-items: center; gap: 5px; }
.vip-balance .num {
  font-size: 34px; font-weight: 800; line-height: 1.12; margin-top: 2px;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
  background: linear-gradient(135deg, #FFF3D4, #F5C86A 50%, #E0A02E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vip-balance .num .u { font-size: 14px; font-weight: 700; margin-left: 4px; }
.vip-balance .rt { font-size: 11.5px; color: #8A7D6B; margin-top: 3px; }

/* 到期进度 */
.vip-progress { margin-top: 14px; position: relative; z-index: 2; }
.vip-progress .bar { height: 5px; border-radius: 4px; background: rgba(245,200,106,.14); overflow: hidden; }
.vip-progress .bar > i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #D99A22, #F5C86A, #FFE9B0);
  transition: width .8s cubic-bezier(.22,.9,.28,1);
}
.vip-progress .txt { display: flex; justify-content: space-between; font-size: 11.5px; color: #9C8E7B; margin-top: 6px; }

/* 未开通引导 */
.vip-novip-tip { margin-top: 14px; font-size: 12.5px; color: #B8A88F; position: relative; z-index: 2; line-height: 1.6; }
.vip-novip-tip b { color: #F5C86A; }

/* ---------- 通用：区块标题 ---------- */
.vip-sec { margin-top: 22px; }
.vip-sec-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
  font-size: 14.5px; font-weight: 800; color: #EFE7DA;
}
.vip-sec-h i {
  width: 3px; height: 14px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #FFE9B0, #D99A22);
}
.vip-sec-h .more { margin-left: auto; font-size: 12px; font-weight: 500; color: #9C8E7B; cursor: pointer; }

/* ---------- ② 会员套餐 ---------- */
.vip-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.vip-plan {
  position: relative; border-radius: 18px; padding: 16px 14px 14px; cursor: pointer;
  background: linear-gradient(160deg, #221C15, #15120E);
  border: 1.5px solid rgba(245,200,106,.16);
  transition: transform .18s, border-color .25s, box-shadow .25s;
}
.vip-plan:active { transform: scale(.985); }
.vip-plan.on {
  border-color: #F5C86A;
  background: linear-gradient(160deg, #33260F, #1C1610);
  box-shadow: 0 10px 30px rgba(217,154,34,.34), inset 0 1px 0 rgba(255,233,176,.14);
}
.vip-plan .em { font-size: 22px; }
.vip-plan .nm { font-size: 15px; font-weight: 800; color: #F5EFE4; margin-top: 4px; }
.vip-plan .ds { font-size: 11.5px; color: #9C8E7B; margin-top: 2px; }
.vip-plan .pr { margin-top: 11px; display: flex; align-items: baseline; gap: 3px; }
.vip-plan .pr .y { font-size: 13px; color: #F5C86A; font-weight: 700; }
.vip-plan .pr .n { font-size: 27px; font-weight: 800; color: #F5C86A; font-variant-numeric: tabular-nums; }
.vip-plan .bn {
  margin-top: 9px; font-size: 11.5px; color: #C7B48F; line-height: 1.5;
  border-top: 1px dashed rgba(245,200,106,.18); padding-top: 8px;
}
.vip-plan .bn b { color: #F5C86A; }
.vip-plan .ribbon {
  position: absolute; top: -1px; right: -1px;
  font-size: 10px; font-weight: 800; color: #2A1D06; padding: 4px 9px;
  border-radius: 0 17px 0 12px;
  background: linear-gradient(135deg, #FFE9B0, #F5C86A 50%, #D99A22);
}
.vip-plan .tick {
  position: absolute; left: 14px; top: 14px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid rgba(245,200,106,.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
}
.vip-plan.on .tick { background: linear-gradient(135deg,#FFE9B0,#D99A22); border-color: #F5C86A; color: #2A1D06; }

/* 权益清单 */
.vip-benefits {
  margin-top: 11px; border-radius: 15px; padding: 12px 14px;
  background: rgba(245,200,106,.055); border: 1px solid rgba(245,200,106,.12);
}
.vip-benefits li {
  list-style: none; font-size: 12.5px; color: #C4B49B; line-height: 2;
  display: flex; align-items: center; gap: 7px;
}
.vip-benefits li::before { content: '✦'; color: #E0A02E; font-size: 10px; }

/* ---------- ③ 算力豆充值 ---------- */
.vip-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.vip-pack {
  position: relative; border-radius: 15px; padding: 13px 8px 11px; text-align: center; cursor: pointer;
  background: linear-gradient(160deg, #211B15, #141110);
  border: 1.5px solid rgba(245,200,106,.14);
  transition: transform .18s, border-color .25s, box-shadow .25s;
}
.vip-pack:active { transform: scale(.97); }
.vip-pack.on {
  border-color: #F5C86A;
  background: linear-gradient(160deg, #322410, #1B1610);
  box-shadow: 0 8px 26px rgba(217,154,34,.30);
}
.vip-pack .bn { font-size: 11px; color: #9C8E7B; }
.vip-pack .bd {
  font-size: 16px; font-weight: 800; color: #F5C86A; margin-top: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.vip-pack .bp { font-size: 13px; font-weight: 800; color: #EFE7DA; margin-top: 5px; font-variant-numeric: tabular-nums; }
.vip-pack .bg {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 800; color: #2A1D06; padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  background: linear-gradient(135deg, #FFE9B0, #E0A02E);
}
.vip-pack .hot {
  position: absolute; right: -1px; bottom: -1px; font-size: 9px; font-weight: 800;
  color: #2A1D06; padding: 2px 7px; border-radius: 9px 0 14px 0;
  background: linear-gradient(135deg, #FFE9B0, #D99A22);
}

/* 主按钮 */
.vip-cta {
  margin-top: 14px; width: 100%; border: 0; border-radius: 15px; padding: 15px;
  font-size: 15.5px; font-weight: 800; letter-spacing: .4px; cursor: pointer; color: #2A1D06;
  background: linear-gradient(135deg, #FFE9B0 0%, #F5C86A 42%, #D99A22 100%);
  box-shadow: 0 10px 28px rgba(217,154,34,.42);
  transition: transform .16s, box-shadow .25s, filter .25s;
}
.vip-cta:active { transform: scale(.985); }
.vip-cta:disabled { filter: grayscale(.55) brightness(.8); box-shadow: none; cursor: not-allowed; }
.vip-cta.ghost {
  background: transparent; color: #F5C86A;
  border: 1.5px solid rgba(245,200,106,.42); box-shadow: none;
}
.vip-agree { margin-top: 9px; font-size: 11px; color: #7D7263; text-align: center; line-height: 1.6; }

/* ---------- ④ 邀请 ---------- */
.vip-invite-box {
  border-radius: 18px; padding: 15px;
  background: linear-gradient(160deg, #241C13, #15120E);
  border: 1px solid rgba(245,200,106,.18);
}
.vip-invite-code {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.vip-invite-code .cc {
  flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 3px; color: #F5C86A; padding: 11px 14px; border-radius: 12px;
  background: rgba(245,200,106,.09); border: 1px dashed rgba(245,200,106,.35); text-align: center;
}
.vip-copy {
  flex: none; padding: 11px 15px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #2A1D06;
  background: linear-gradient(135deg, #FFE9B0, #E0A02E);
}
.vip-copy:active { transform: scale(.95); }
.vip-invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.vip-invite-stats .st { background: rgba(255,255,255,.035); border-radius: 12px; padding: 10px 4px; }
.vip-invite-stats .st .v { font-size: 17px; font-weight: 800; color: #F5C86A; font-variant-numeric: tabular-nums; }
.vip-invite-stats .st .k { font-size: 11px; color: #9C8E7B; margin-top: 3px; }
.vip-invite-rule {
  margin-top: 12px; font-size: 11.5px; color: #948975; line-height: 1.75;
  border-top: 1px dashed rgba(245,200,106,.16); padding-top: 10px;
}
.vip-invite-rule b { color: #F5C86A; }

/* 邀请记录 */
.vip-inv-list { margin-top: 10px; }
.vip-inv-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 2px;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px;
}
.vip-inv-item:last-child { border-bottom: 0; }
.vip-inv-item .nm { flex: 1; color: #D8CCB9; }
.vip-inv-item .tm { font-size: 11px; color: #7D7263; font-variant-numeric: tabular-nums; }
.vip-inv-item .bdg { font-size: 10.5px; padding: 2px 7px; border-radius: 7px; font-weight: 700; }
.vip-inv-item .bdg.ok { color: #2A1D06; background: linear-gradient(135deg,#FFE9B0,#E0A02E); }
.vip-inv-item .bdg.wait { color: #9C8E7B; background: rgba(255,255,255,.06); }

/* ---------- ⑤ 流水 ---------- */
.vip-ledger { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.028); }
.vip-lg-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.vip-lg-item:last-child { border-bottom: 0; }
.vip-lg-item .ic {
  width: 32px; height: 32px; border-radius: 10px; flex: none; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,200,106,.10);
}
.vip-lg-item .mid { flex: 1; min-width: 0; }
.vip-lg-item .r { font-size: 13px; color: #E2D8C7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-lg-item .t { font-size: 11px; color: #7D7263; margin-top: 2px; font-variant-numeric: tabular-nums; }
.vip-lg-item .d { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vip-lg-item .d.plus { color: #6EE7A8; }
.vip-lg-item .d.minus { color: #F0B27A; }
.vip-empty { padding: 30px 16px; text-align: center; color: #6E6455; font-size: 12.5px; line-height: 1.9; }
.vip-empty .em { font-size: 26px; display: block; margin-bottom: 6px; opacity: .55; }

/* ---------- 支付弹层 ---------- */
.vip-paymask {
  position: fixed; inset: 0; z-index: 9500; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.66); backdrop-filter: blur(3px);
}
.vip-paymask.open { display: flex; }
.vip-pay {
  width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 20px 18px 26px;
  background: linear-gradient(180deg, #221C15 0%, #12100D 100%);
  border-top: 1px solid rgba(245,200,106,.28);
  animation: vipUp .3s cubic-bezier(.22,.9,.28,1);
}
@keyframes vipUp { from { transform: translateY(22px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.vip-pay h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: #F5EFE4; text-align: center; }
.vip-pay .amt { text-align: center; font-size: 30px; font-weight: 800; color: #F5C86A; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.vip-pay .desc { text-align: center; font-size: 12px; color: #9C8E7B; margin-bottom: 16px; }
.vip-pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.vip-pm {
  border-radius: 14px; padding: 13px 10px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.035); border: 1.5px solid rgba(255,255,255,.08);
  transition: border-color .22s, background .22s;
}
.vip-pm.on { border-color: #F5C86A; background: rgba(245,200,106,.10); }
.vip-pm .ic { font-size: 21px; }
.vip-pm .lb { font-size: 12px; color: #D8CCB9; margin-top: 4px; font-weight: 600; }
.vip-qr {
  width: 190px; height: 190px; margin: 0 auto 12px; border-radius: 14px; background: #fff;
  padding: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vip-qr img, .vip-qr canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.vip-qr .ph { font-size: 12px; color: #666; text-align: center; line-height: 1.7; }
.vip-pay-tip { text-align: center; font-size: 12px; color: #9C8E7B; line-height: 1.8; margin-bottom: 14px; }
.vip-pay-tip b { color: #F5C86A; }

/* ---------- 开通特效 ---------- */
#vipFx {
  position: fixed; inset: 0; z-index: 9800; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(circle at 50% 45%, rgba(60,44,16,.92) 0%, rgba(0,0,0,.94) 70%);
}
#vipFx.on { display: flex; }
#vipFxCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vip-fx-core { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.vip-fx-badge {
  width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  background: linear-gradient(135deg, #FFE9B0, #F5C86A 42%, #D99A22);
  box-shadow: 0 0 0 8px rgba(245,200,106,.14), 0 0 60px rgba(245,200,106,.55);
  animation: vipPop .72s cubic-bezier(.2,1.5,.36,1) both;
}
@keyframes vipPop {
  0% { transform: scale(.2) rotate(-25deg); opacity: 0; }
  62% { transform: scale(1.14) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.vip-fx-title {
  font-size: 25px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF6DE, #F5C86A 50%, #D99A22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: vipFadeUp .6s .28s both;
}
.vip-fx-sub { font-size: 14px; color: #C7B48F; line-height: 1.8; animation: vipFadeUp .6s .42s both; }
.vip-fx-sub b { color: #F5C86A; font-variant-numeric: tabular-nums; }
@keyframes vipFadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.vip-fx-shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%);
  animation: vipSweep 1.1s .5s both;
}
@keyframes vipSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* ---------- 轻提示 ---------- */
.vip-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(14px);
  z-index: 9900; max-width: 84vw; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.55; text-align: center;
  background: rgba(32,26,18,.97); color: #F3EDE4;
  border: 1px solid rgba(245,200,106,.30);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .26s, transform .26s;
}
.vip-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 「我的」页入口 ---------- */
.mine-vip-entry {
  margin-top: 14px; border-radius: 18px; padding: 15px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 13px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE6C9 100%);
  border: 1px solid rgba(249,89,1,.20);
  box-shadow: 0 6px 18px rgba(249,89,1,.10);
  transition: transform .18s, box-shadow .25s;
}
.mine-vip-entry:active { transform: scale(.99); }
.mine-vip-entry.is-vip {
  background: linear-gradient(135deg, #2A2015 0%, #1A140E 100%);
  border-color: rgba(245,200,106,.55);
  box-shadow: 0 8px 26px rgba(217,154,34,.30);
}
.mine-vip-entry .mi {
  width: 44px; height: 44px; border-radius: 13px; flex: none; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#FFE9B0,#E0A02E);
}
.mine-vip-entry .mt { flex: 1; min-width: 0; }
.mine-vip-entry .mt .a { font-size: 15px; font-weight: 800; color: #8A4A12; display: flex; align-items: center; gap: 6px; }
.mine-vip-entry .mt .b { font-size: 12px; color: #A0825C; margin-top: 3px; }
.mine-vip-entry.is-vip .mt .a { color: #F5C86A; }
.mine-vip-entry.is-vip .mt .b { color: #9C8E7B; }
.mine-vip-entry .go { font-size: 12.5px; font-weight: 700; color: #C28A2E; flex: none; }
.mine-vip-entry.is-vip .go { color: #E0A02E; }
.mine-vip-entry .vt {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #2A1D06;
  background: linear-gradient(135deg,#FFE9B0,#D99A22);
}

/* 顶部额度条 · 会员金色态 */
#quotaChip.is-vip {
  background: linear-gradient(135deg, #33260F, #1C1610) !important;
  color: #F5C86A !important;
  border: 1px solid rgba(245,200,106,.45) !important;
  box-shadow: 0 0 14px rgba(217,154,34,.30);
}

/* 会员身份：昵称描金 */
.vip-nickname-glow { color: #E0A02E !important; text-shadow: 0 0 10px rgba(217,154,34,.45); }

@media (max-width: 360px) {
  .vip-plans { grid-template-columns: 1fr; }
  .vip-packs { grid-template-columns: repeat(2, 1fr); }
  .vip-balance .num { font-size: 29px; }
}
