/* ══════════════════════════════════════
   NavXD — subscribe.css
   订阅Pro页专用样式 · 沿用站点 CSS 变量
══════════════════════════════════════ */

.sp-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
}

/* ══ SECTION HELPERS ══ */
.sp-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.sp-sec { padding: 56px 0; }
.sp-sec-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.sp-sec-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.3px;
}
.sp-sec-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0 0 40px;
}

/* ══ HEADER ══ */
.sp-head {
  padding: 64px 0 48px;
  background: var(--bg);
}
.sp-head-h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.sp-head-sub {
  font-size: 15px;
  color: var(--text2);
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── Highlight Banner ── */
.sp-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ede9fe;
  border-radius: 14px;
  padding: 18px 22px;
}
.sp-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sp-highlight-body {
  font-size: 14px;
  line-height: 1.65;
  color: #4c1d95;
}
.sp-highlight-body strong {
  font-weight: 700;
  color: #3b0764;
}

/* ══ PRICING CARDS ══ */
.sp-plans-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.sp-card {
  background: var(--bg2, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 28px;
  position: relative;
}
.sp-card-pro {
  border: 2px solid var(--signal, #00e5b0);
  box-shadow: 0 0 0 1px rgba(0, 229, 176, .15), 0 12px 36px rgba(0, 229, 176, .12);
}

/* "推荐" tab */
.sp-card-badge-tab {
  position: absolute;
  top: -12px;
  right: 22px;
  left: auto;
  background: linear-gradient(135deg, var(--signal, #00e5b0), var(--indigo, #5b6cff));
  color: #06110d;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(0, 229, 176, .35);
}

/* Card tiers */
.sp-card-tier {
  font-size: 12px;
  color: var(--text3, #9ca3af);
  font-weight: 500;
  margin-bottom: 14px;
}
.sp-tier-pro {
  color: #5b6cff;
  margin-top: 20px;
}

/* Price */
.sp-card-price {
  font-size: 52px;
  font-weight: 900;
  color: var(--text, #111);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.sp-card-billing {
  font-size: 13px;
  color: var(--text3, #9ca3af);
  margin-bottom: 20px;
}

/* ── Free card: basic features ── */
.sp-feats-basic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.sp-feat-basic {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text, #111);
}
.sp-feat-dot-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* ── Ranking preview ── */
.sp-rank-preview {
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 16px;
  margin-bottom: 20px;
}
.sp-rank-label {
  font-size: 11px;
  color: var(--text3, #9ca3af);
  margin-bottom: 10px;
}
.sp-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #f0f0f0);
  font-size: 14px;
  color: var(--text, #111);
}
.sp-rank-row:last-child { border-bottom: none; }

.sp-rank-num {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg3, #e5e7eb);
  color: var(--text3, #6b7280);
  flex-shrink: 0;
}
.sp-rank-1 { background: #ede9fe; color: #6d28d9; }
.sp-rank-2 { background: var(--bg3, #e5e7eb); color: var(--text2, #374151); }
.sp-rank-3 { background: var(--bg3, #e5e7eb); color: var(--text2, #374151); }

.sp-rank-name { font-size: 14px; }

.sp-rank-locked { opacity: .55; }
.sp-blur-bar {
  display: inline-block;
  height: 14px;
  border-radius: 4px;
  background: var(--border, #d1d5db);
  filter: blur(5px);
  flex-shrink: 0;
}

/* ── Locked features list ── */
.sp-locked-list {
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sp-locked-item {
  font-size: 13px;
  color: var(--text3, #9ca3af);
}

/* ── Pro card: billing toggle ── */
.sp-billing-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.sp-billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 229, 176, .08);
  border: 1px solid rgba(0, 229, 176, .18);
  border-radius: 999px;
  margin-bottom: 20px;
}
.sp-toggle-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2, var(--text2, #6b7280));
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.sp-toggle-btn:hover { color: var(--text, #111); }
.sp-toggle-btn.active {
  background: var(--signal, #00e5b0);
  color: #06110d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 229, 176, .28);
}

/* ── Pro card: features ── */
.sp-pro-feats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.sp-pro-feat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sp-pro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b6cff;
  flex-shrink: 0;
  margin-top: 5px;
}
.sp-pro-feat-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #111);
  margin-bottom: 2px;
  line-height: 1.4;
}
.sp-pro-feat-desc {
  font-size: 12px;
  color: var(--text3, #9ca3af);
  line-height: 1.5;
}

/* Pills */
.sp-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}
.sp-pill-ex   { background: #fef3c7; color: #b45309; }
.sp-pill-date { background: #d1fae5; color: #065f46; }
.sp-pill-new  { background: #d1fae5; color: #065f46; }

/* ── Pro card: CTAs ── */
.sp-cta-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--signal, #00e5b0), var(--indigo, #5b6cff));
  color: #06110d;
  border: 0;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 229, 176, .25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  cursor: pointer;
  box-sizing: border-box;
}
.sp-cta-primary:hover {
  color: #06110d;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 229, 176, .32);
}
.sp-cta-primary:active { transform: translateY(0); }

.sp-cta-ghost {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--text, #111);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: border-color .15s;
  box-sizing: border-box;
}
.sp-cta-ghost:hover { border-color: var(--text3, #9ca3af); color: var(--text, #111); }

.sp-pay-note {
  text-align: center;
  font-size: 12px;
  color: var(--text3, #9ca3af);
  margin: 0;
}

/* ══ FAQ ══ */
.sp-faq { display: flex; flex-direction: column; gap: 12px; }

.sp-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.sp-faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color .15s;
}
.sp-faq-q:hover { color: var(--signal, #00e5b0); }

.sp-faq-icon {
  font-size: 20px;
  font-weight: 600;
  color: var(--signal, #00e5b0);
  transition: transform .25s ease, color .15s;
  flex-shrink: 0;
}
.sp-faq-item.open .sp-faq-icon {
  transform: rotate(45deg);
  color: var(--indigo, #5b6cff);
}
.sp-faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}
.sp-faq-item.open .sp-faq-a { display: block; }

/* ══ WAITLIST MODAL ══ */
.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sp-modal.is-open { display: flex; }

.sp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, .68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: sp-fade-in .18s ease;
}

.sp-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg2, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28),
              0 0 0 1px rgba(0, 229, 176, .08);
  animation: sp-pop-in .22s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes sp-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes sp-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sp-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text3, #9ca3af);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.sp-modal-close:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--text, #111);
}

.sp-modal-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 229, 176, .14);
  color: var(--signal, #00e5b0);
  border: 1px solid rgba(0, 229, 176, .32);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
[data-theme="light"] .sp-modal-badge { color: #009474; }

.sp-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text, #111);
  margin: 0 0 10px;
  letter-spacing: -.3px;
  line-height: 1.3;
}
.sp-modal-desc {
  font-size: 13.5px;
  color: var(--text2, #6b7280);
  line-height: 1.65;
  margin: 0 0 20px;
}
.sp-modal-desc strong {
  color: var(--text, #111);
  font-weight: 700;
}

.sp-modal-form { display: flex; flex-direction: column; gap: 14px; }

.sp-modal-field { display: flex; flex-direction: column; gap: 6px; }
.sp-modal-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2, #6b7280);
  letter-spacing: .02em;
}
.sp-modal-label em {
  font-style: normal;
  color: var(--text3, #9ca3af);
  font-weight: 400;
}

.sp-modal-input,
.sp-modal-textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text, #111);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.sp-modal-input::placeholder,
.sp-modal-textarea::placeholder { color: var(--text3, #9ca3af); }
.sp-modal-input:focus,
.sp-modal-textarea:focus {
  outline: 0;
  border-color: var(--signal, #00e5b0);
  box-shadow: 0 0 0 3px rgba(0, 229, 176, .14);
}
.sp-modal-textarea { resize: vertical; min-height: 56px; }

.sp-modal-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-modal-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text, #111);
  transition: border-color .15s, background .15s;
}
.sp-modal-radio:hover { border-color: var(--text3, #9ca3af); }
.sp-modal-radio input[type="radio"] {
  margin: 0;
  accent-color: var(--signal, #00e5b0);
  flex-shrink: 0;
}
.sp-modal-radio em {
  font-style: normal;
  color: var(--text3, #9ca3af);
  font-size: 12px;
  margin-left: 2px;
}
.sp-modal-radio:has(input:checked) {
  border-color: var(--signal, #00e5b0);
  background: rgba(0, 229, 176, .06);
}

.sp-modal-error {
  padding: 10px 12px;
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

.sp-modal-submit {
  margin-top: 4px;
  margin-bottom: 4px;
}
.sp-modal-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none !important;
}

.sp-modal-privacy {
  text-align: center;
  font-size: 11.5px;
  color: var(--text3, #9ca3af);
  margin: 4px 0 0;
  line-height: 1.5;
}

.sp-modal-success-icon {
  font-size: 48px;
  text-align: center;
  line-height: 1;
  margin-bottom: 14px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 760px) {
  .sp-inner       { padding: 0 20px; }
  .sp-head        { padding: 40px 0 32px; }
  .sp-sec         { padding: 40px 0; }
  .sp-plans-new   { grid-template-columns: 1fr; }
  .sp-card-badge-tab { right: 16px; }
  .sp-highlight   { padding: 14px 16px; gap: 12px; }
  .sp-highlight-icon { width: 38px; height: 38px; font-size: 18px; }
  .sp-card-price  { font-size: 44px; }

  .sp-modal-dialog { padding: 28px 20px 22px; border-radius: 14px; }
  .sp-modal-title  { font-size: 19px; }
}
