/* ==========================================================================
   会旺影视 · VIP 导购页（/vip）
   --------------------------------------------------------------------------
   设计意图：深色底 + 紫色主色 + 金色点缀，走「官方会员中心」的观感，
   不堆促销贴纸、不用大红大绿。所有尺寸/间距都按 8 的倍数走，保证节奏一致。
   移动端：套餐卡 2×2，购买条吸底；桌面端：套餐卡一行 4 张。

   作用域：全部在 .vp- 前缀下，不碰站内其它组件。
   ========================================================================== */

html, body { background: #0b0d12; }
body.vp-body {
  margin: 0;
  color: #eef1f8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.vp-body a { text-decoration: none; color: inherit; }
body.vp-body img { border: 0; }

.vp-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 96px;
  box-sizing: border-box;
}

/* 顶部氛围光：两层径向渐变，避免大面积纯色显闷 */
.vp-glow {
  position: fixed; inset: 0 0 auto 0; height: 620px; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(660px 340px at 50% -80px, rgba(123,66,224,.42), rgba(123,66,224,0) 70%),
    radial-gradient(520px 280px at 82% 40px, rgba(168,85,247,.18), rgba(168,85,247,0) 72%);
}
.vp-wrap > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.vp-hero { text-align: center; padding: 18px 0 8px; }
.vp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px;
  border-radius: 13px; font-size: 11.5px; font-weight: 700; letter-spacing: 2.2px;
  color: #dcc9ff; background: rgba(123,66,224,.16);
  border: 1px solid rgba(168,85,247,.32);
}
.vp-eyebrow i {
  width: 5px; height: 5px; border-radius: 50%; background: #ffd166;
  box-shadow: 0 0 8px rgba(255,209,102,.9);
}
.vp-h1 {
  margin: 20px 0 0; font-size: 40px; line-height: 1.24; font-weight: 800;
  letter-spacing: -.5px; color: #f6f4ff;
}
.vp-h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #c9a6ff 0%, #ffd166 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vp-sub {
  margin: 14px auto 0; max-width: 640px;
  font-size: 14.5px; line-height: 1.85; color: #98a1b5;
}
.vp-sub b { color: #d9dcE6; font-weight: 600; }
.vp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; }
.vp-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  border-radius: 16px; font-size: 12.5px; color: #b9c0d0;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07);
}
.vp-chip svg { width: 14px; height: 14px; flex: 0 0 auto; color: #8ce0b0; }

/* 已是 VIP 的状态条 */
.vp-vipbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 24px auto 0; max-width: 560px; padding: 14px 18px; border-radius: 12px;
  font-size: 13.5px; color: #ffe9b0;
  background: linear-gradient(180deg, rgba(255,209,102,.14), rgba(255,209,102,.05));
  border: 1px solid rgba(255,209,102,.28);
}
.vp-vipbar b { color: #ffd166; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 权益 ---------- */
.vp-sec { margin-top: 56px; }
.vp-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vp-sec-hd h2 { margin: 0; font-size: 19px; font-weight: 700; color: #f0f2f8; letter-spacing: -.2px; }
.vp-sec-hd p { margin: 0; font-size: 12.5px; color: #6f7788; }

.vp-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vp-perk {
  padding: 18px 16px 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .18s, transform .18s;
}
.vp-perk:hover { border-color: rgba(168,85,247,.34); transform: translateY(-2px); }
.vp-perk-i {
  display: flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 10px; margin-bottom: 12px;
  background: rgba(123,66,224,.18); border: 1px solid rgba(168,85,247,.28);
  color: #c9a6ff;
}
.vp-perk-i svg { width: 17px; height: 17px; }
.vp-perk b { display: block; font-size: 14px; font-weight: 600; color: #eef1f8; margin-bottom: 6px; }
.vp-perk span { display: block; font-size: 12.5px; line-height: 1.7; color: #7f889b; }
.vp-perk span em { font-style: normal; color: #c9a6ff; font-weight: 600; }

/* ---------- 套餐 ---------- */
.vp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vp-plan {
  position: relative; cursor: pointer; text-align: left; padding: 20px 16px 18px;
  border-radius: 16px; box-sizing: border-box; font-family: inherit;
  background: #10131c; border: 1px solid rgba(255,255,255,.08);
  transition: border-color .18s, background .18s, transform .18s;
  /* 四张卡等高，底部说明贴底对齐，不然一列看下来参差不齐 */
  display: flex; flex-direction: column;
}
.vp-plan:hover { border-color: rgba(168,85,247,.36); transform: translateY(-2px); }
.vp-plan.on {
  border-color: transparent;
  background:
    linear-gradient(#12101e, #12101e) padding-box,
    linear-gradient(150deg, #a855f7, #7b42e0 45%, #ffd166) border-box;
  box-shadow: 0 12px 34px rgba(123,66,224,.22);
}
.vp-plan-tag {
  position: absolute; top: -10px; left: 14px; height: 20px; line-height: 20px; padding: 0 9px;
  border-radius: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: #2b1b00; background: linear-gradient(90deg, #ffd166, #ffb703);
  box-shadow: 0 4px 12px rgba(255,183,3,.3);
}
.vp-plan-tag.soft { color: #dcc9ff; background: rgba(123,66,224,.35); box-shadow: none; border: 1px solid rgba(168,85,247,.4); }
.vp-plan-n { font-size: 13px; color: #a9b1c2; font-weight: 600; }
.vp-plan-p {
  display: flex; align-items: baseline; gap: 3px; margin: 10px 0 2px;
  color: #ffd166; font-variant-numeric: tabular-nums;
}
.vp-plan-p i { font-style: normal; font-size: 15px; font-weight: 600; }
.vp-plan-p b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.vp-plan-per { font-size: 11.5px; color: #6f7788; font-variant-numeric: tabular-nums; }
.vp-plan-eq {
  display: block; margin-top: auto; padding-top: 10px; font-size: 11.5px; color: #8b93a6;
  border-top: 1px dashed rgba(255,255,255,.08);
}
.vp-plan-save { align-self: flex-start; }
.vp-plan-eq em { font-style: normal; color: #ffd166; }
.vp-plan-save {
  display: inline-block; margin-top: 8px; padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: #ff9a9a; background: rgba(255,77,79,.14);
}

/* ---------- 购买条 ---------- */
.vp-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(123,66,224,.14), rgba(123,66,224,.05));
  border: 1px solid rgba(168,85,247,.24);
}
.vp-bar-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vp-bar-t { font-size: 13px; color: #a9b1c2; }
.vp-bar-p { font-size: 26px; font-weight: 800; color: #ffd166; font-variant-numeric: tabular-nums; }
.vp-bar-p i { font-style: normal; font-size: 15px; font-weight: 600; margin-right: 1px; }
.vp-bar-d { font-size: 12px; color: #7f889b; }

.vp-pays { display: flex; gap: 8px; margin-left: auto; }
.vp-pay {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 13px;
  color: #b9c0d0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .15s, color .15s, background .15s;
}
.vp-pay:hover { border-color: rgba(255,255,255,.2); }
.vp-pay.on { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(168,85,247,.5); }
.vp-pay svg { width: 16px; height: 16px; }
.vp-pay[data-pay="wxpay"].on { border-color: #07c160; box-shadow: 0 0 0 1px rgba(7,193,96,.35) inset; }
.vp-pay[data-pay="alipay"].on { border-color: #1677ff; box-shadow: 0 0 0 1px rgba(22,119,255,.35) inset; }

.vp-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 30px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #7b42e0, #a855f7);
  box-shadow: 0 10px 26px rgba(123,66,224,.42);
  transition: transform .14s, box-shadow .14s, opacity .14s;
}
.vp-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(123,66,224,.5); }
.vp-buy:active { transform: translateY(0); }
.vp-buy[disabled] { opacity: .6; cursor: default; transform: none; }
.vp-bar-note { width: 100%; margin: 2px 0 0; font-size: 11.5px; color: #6f7788; }

/* ---------- 对比表 ---------- */
.vp-cmp { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.vp-cmp table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vp-cmp th, .vp-cmp td { padding: 13px 14px; text-align: center; }
.vp-cmp th:first-child, .vp-cmp td:first-child { text-align: left; color: #a9b1c2; font-weight: 400; width: 34%; }
/* VIP 列要一眼能看出来是"推荐的那一列" */
.vp-cmp th.vip { border-left: 1px solid rgba(255,209,102,.22); border-right: 1px solid rgba(255,209,102,.22); }
.vp-cmp td.vip { border-left: 1px solid rgba(255,209,102,.14); border-right: 1px solid rgba(255,209,102,.14); }
.vp-cmp thead th {
  background: #12151f; font-weight: 600; font-size: 12.5px; color: #c5ccd9;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vp-cmp thead th.vip { color: #ffd166; background: linear-gradient(180deg, rgba(255,209,102,.12), rgba(255,209,102,.03)); }
.vp-cmp tbody td { border-top: 1px solid rgba(255,255,255,.05); color: #d5dae5; }
.vp-cmp tbody tr:hover td { background: rgba(255,255,255,.022); }
.vp-cmp .yes { color: #7ee2a8; font-weight: 700; }
.vp-cmp .no { color: #5b6478; }
.vp-cmp td.vip { background: rgba(255,209,102,.075); }

/* ---------- FAQ ---------- */
.vp-faq { border-radius: 14px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; background: #0f121a; }
.vp-faq details { border-top: 1px solid rgba(255,255,255,.06); }
.vp-faq details:first-child { border-top: 0; }
.vp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer; font-size: 13.5px; color: #d5dae5; list-style: none;
}
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after {
  content: "+"; flex: 0 0 auto; font-size: 17px; font-weight: 400; color: #6f7788; transition: transform .18s;
}
.vp-faq details[open] summary::after { content: "−"; color: #c9a6ff; }
.vp-faq .a { padding: 0 18px 16px; font-size: 12.8px; line-height: 1.9; color: #818b9e; }
.vp-faq .a b { color: #c9a6ff; font-weight: 600; }

/* ---------- 页脚说明 ---------- */
.vp-foot { margin-top: 32px; text-align: center; font-size: 11.5px; line-height: 2; color: #5b6478; }

/* ---------- 支付弹层 ---------- */
.vp-mask {
  position: fixed; inset: 0; z-index: 10080; display: flex; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box; background: rgba(5,6,10,.78);
  backdrop-filter: blur(6px); animation: vpFade .18s ease both;
}
.vp-mask[hidden] { display: none; }
@keyframes vpFade { from { opacity: 0; } to { opacity: 1; } }
.vp-modal {
  position: relative; width: 344px; max-width: 100%; box-sizing: border-box;
  padding: 26px 22px 18px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, #191428, #12101c 62%, #0f0d18);
  border: 1px solid rgba(160,108,240,.3);
  box-shadow: 0 26px 70px rgba(0,0,0,.72);
  animation: vpUp .24s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes vpUp { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.vp-modal-x {
  position: absolute; right: 12px; top: 10px; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: none; color: #6f6889; font-size: 19px; line-height: 1; cursor: pointer; font-family: inherit;
}
.vp-modal-x:hover { color: #b9b0d0; background: rgba(255,255,255,.06); }
.vp-m-tt { margin: 4px 0 4px; font-size: 16.5px; font-weight: 700; color: #fff; }
.vp-m-sub { margin: 0 0 16px; font-size: 12.5px; color: #8e88a6; }
.vp-m-sub b { color: #ffd166; font-variant-numeric: tabular-nums; }

.vp-qr { display: block; width: 196px; height: 196px; margin: 0 auto; padding: 10px; box-sizing: border-box;
  background: #fff; border-radius: 12px; }
.vp-qr img { display: block; width: 100%; height: 100%; }

.vp-m-state { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 0 0; font-size: 12.5px; color: #9aa3b5; }
.vp-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd166; animation: vpBlink 1.1s infinite; }
@keyframes vpBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.vp-m-tip { margin: 16px 0 0; font-size: 11.5px; line-height: 1.8; color: #5f5878; }
.vp-m-open {
  display: none; width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: 11px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #7b42e0, #a855f7);
}
.vp-m-open.on { display: block; }

/* 支付成功 */
.vp-done { padding: 26px 0 10px; }
.vp-done-i { display: flex; width: 58px; height: 58px; margin: 0 auto 14px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(126,226,168,.12); border: 1px solid rgba(126,226,168,.4); color: #7ee2a8; }
.vp-done-i svg { width: 28px; height: 28px; }
.vp-done b { display: block; font-size: 17px; color: #fff; }
.vp-done span { display: block; margin-top: 8px; font-size: 12.5px; color: #8e88a6; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 860px) {
  .vp-wrap { padding: 28px 16px 110px; }
  .vp-h1 { font-size: 30px; }
  .vp-sub { font-size: 13.5px; }
  .vp-perks { grid-template-columns: repeat(2, 1fr); }
  .vp-plans { grid-template-columns: repeat(2, 1fr); }
  .vp-sec { margin-top: 40px; }
  .vp-cmp { overflow-x: auto; }
  .vp-cmp table { min-width: 520px; }
  /* 移动端购买条吸底 */
  .vp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    background: rgba(12,14,20,.94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.08);
    gap: 10px;
  }
  .vp-bar-l { flex: 1 1 auto; min-width: 0; }
  .vp-bar-p { font-size: 22px; }
  .vp-bar-t, .vp-bar-d { display: none; }
  .vp-pays { margin-left: 0; gap: 6px; }
  /* 窄屏只留图标：文字会让这一行挤到换行 */
  .vp-pay { height: 34px; width: 40px; padding: 0; font-size: 0; justify-content: center; }
  .vp-pay svg { width: 18px; height: 18px; }
  .vp-buy { height: 44px; padding: 0 20px; font-size: 14.5px; flex: 0 0 auto; }
  .vp-bar-note { display: none; }
}
@media screen and (max-width: 380px) {
  .vp-h1 { font-size: 26px; }
  .vp-plan-p b { font-size: 29px; }
}
