/* ============================================================
   会员权益正式页：状态卡 / 定价 / 权益对比 / FAQ / 客服 modal
   ============================================================ */

.membership-page {
  padding: 12px 16px 60px;
  max-width: 720px; margin: 0 auto; width: 100%;
  animation: rise 0.4s ease both;
}
@media (min-width: 1160px) { .membership-page { padding: 18px 28px 60px; } }

/* ---------- 品牌 Hero ---------- */
.mp-hero {
  text-align: center;
  padding: 34px 24px 30px;
  border-radius: var(--r-xl);
  background: var(--grad-gold);
  color: #3A2A08;
  box-shadow: var(--shadow-float);
  position: relative;
  overflow: hidden;
}
.mp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, rgba(255,255,255,0.5) 0%, transparent 55%);
  pointer-events: none;
}
[data-theme="dark"] .mp-hero { color: #241A05; }
.mp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.mp-hero-badge svg { width: 14px; height: 14px; }
.mp-hero h2 {
  font-size: 27px; font-weight: 900; letter-spacing: 0.02em;
  color: #3A2A08;
}
[data-theme="dark"] .mp-hero h2 { color: #241A05; }
.mp-hero > p {
  font-size: 13.5px; opacity: 0.82; margin-top: 8px; line-height: 1.7;
}

/* ---------- 状态卡（三态） ---------- */
.mp-state-card {
  margin: 22px auto 0;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-pop);
  text-align: center;
  color: var(--ink-1);
}
[data-theme="dark"] .mp-state-card { background: rgba(18, 24, 52, 0.92); color: var(--ink-1); }
.mp-state-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 900;
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  padding: 6px 15px; border-radius: 999px; color: var(--ink-2);
}
.mp-state-badge svg { width: 13px; height: 13px; }
[data-mp-state="pro"] .mp-state-badge {
  background: var(--grad-gold); color: #3A2A08; border-color: transparent;
}
.mp-state-title { font-size: 16px; font-weight: 900; margin-top: 12px; }
.mp-state-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.mp-state-card .mp-btn { margin-top: 14px; width: 100%; }

/* ---------- 按钮 ---------- */
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 900;
  background: var(--grad-brand);
  color: #fff;
  border: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(247, 169, 37, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mp-btn:hover { transform: translateY(-2px); }
.mp-btn:active { transform: translateY(0); }
.mp-btn svg { width: 16px; height: 16px; }
.mp-btn.ghost {
  background: var(--bg-soft); color: var(--ink-2);
  box-shadow: none; border: 1px solid var(--line-strong);
}

/* ---------- 区块 ---------- */
.mp-sec { margin-top: 30px; }
.mp-sec-title {
  font-size: 17px; font-weight: 900; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mp-sec-sub {
  font-size: 12.5px; color: var(--ink-3); text-align: center;
  margin-top: 6px; line-height: 1.7;
}

/* ---------- 定价卡 ---------- */
.mp-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .mp-plans { grid-template-columns: 1fr; gap: 10px; }
}
.mp-plan {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mp-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.mp-plan.hot {
  border: 1.5px solid var(--c-gold);
  box-shadow: var(--shadow-pop);
}
.mp-plan-ribbon {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #3A2A08;
  font-size: 10.5px; font-weight: 900;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(247, 169, 37, 0.4);
}
.mp-plan-name { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.mp-plan-price { margin: 10px 0 12px; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.mp-plan-price b { font-size: 32px; font-weight: 900; color: var(--ink-1); font-family: var(--font-num); }
.mp-plan-price span { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.mp-plan-perks { text-align: left; margin-bottom: 14px; }
.mp-plan-perk {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-2); padding: 4px 0;
}
.mp-plan .mp-btn { width: 100%; padding: 11px 16px; font-size: 13.5px; }

.mp-trial {
  display: block; margin: 18px auto 0;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--c-gold);
  padding: 6px 14px;
}
.mp-trial:hover { text-decoration: underline; }
.mp-price-note {
  font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.7;
}

/* ---------- 权益对比清单 ---------- */
.mp-perk-group {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
}
.mp-perk-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mp-perk-head > svg {
  width: 22px; height: 22px; color: var(--c-gold); flex: none; margin-top: 2px;
}
.mp-perk-head h4 { font-size: 15px; font-weight: 900; }
.mp-perk-head p { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.mp-perk-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px;
  font-size: 11.5px; font-weight: 800; color: var(--ink-3);
  padding: 8px 0 6px; border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.mp-perk-cols span:first-child { text-align: left; }
.mp-perk-cols .pro { color: var(--c-gold); }
.mp-perk-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.6; text-align: center; align-items: center;
}
.mp-perk-row:last-child { border-bottom: none; }
.mp-perk-name { font-weight: 700; color: var(--ink-2); text-align: left; }
.mp-perk-free { color: var(--ink-3); font-weight: 600; }
.mp-perk-pro { color: var(--c-gold); font-weight: 900; }
@media (max-width: 560px) {
  .mp-perk-cols, .mp-perk-row { grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; font-size: 11.5px; }
  .mp-perk-group { padding: 14px; }
}

/* ---------- FAQ ---------- */
.mp-faq { margin-top: 16px; }
.mp-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.mp-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 800; color: var(--ink-1);
  padding: 14px 16px; cursor: pointer; list-style: none;
}
.mp-faq-item summary::-webkit-details-marker { display: none; }
.mp-faq-chev { color: var(--ink-3); transition: transform 0.25s; flex: none; }
.mp-faq-chev svg { width: 15px; height: 15px; }
.mp-faq-item[open] .mp-faq-chev { transform: rotate(180deg); }
.mp-faq-a {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.9;
  padding: 2px 16px 15px;
}

/* ---------- 协议链接 ---------- */
.mp-legal {
  display: flex; justify-content: center; gap: 22px;
  font-size: 12px;
}
.mp-legal a { color: var(--ink-3); cursor: pointer; }
.mp-legal a:hover { color: var(--ink-1); }

/* ---------- 客服 modal ---------- */
.mp-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mp-modal[hidden] { display: none; }
.mp-modal-mask {
  position: absolute; inset: 0;
  background: rgba(10, 17, 48, 0.55);
  backdrop-filter: blur(3px);
}
.mp-modal-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 30px 28px 24px;
  width: 100%; max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-float);
  animation: rise 0.3s ease both;
}
.mp-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft); border: none; cursor: pointer;
  font-size: 17px; color: var(--ink-3); line-height: 1;
}
.mp-modal-close:hover { color: var(--ink-1); }
.mp-modal-badge {
  width: 52px; height: 52px; margin: 0 auto 12px;
  border-radius: 16px; background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(247, 169, 37, 0.4);
}
.mp-modal-badge svg { width: 26px; height: 26px; color: #3A2A08; }
.mp-modal-card h3 { font-size: 18px; font-weight: 900; }
.mp-kf-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin-top: 8px; }
.mp-kf-id {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0;
  font-size: 14px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  border-radius: var(--r-md); padding: 13px 16px;
}
.mp-kf-id b { color: var(--ink-1); font-size: 16px; letter-spacing: 0.02em; }
.mp-kf-copy {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 800; color: var(--c-gold);
  padding: 3px 8px; border-radius: 8px;
}
.mp-kf-copy:hover { background: rgba(247, 169, 37, 0.12); }
.mp-modal-card .mp-btn { width: 100%; padding: 11px 20px; font-size: 13.5px; }
