/* =========================================================
   BoBo 官网 · 经验池购买页 / 隐私政策页补充样式
   ---------------------------------------------------------
   - 仅补充 style.css 未覆盖的区块：说明正文、套餐卡、购买表单、二维码占位
   - 颜色全部取自 style.css 的主题变量，深浅色自动适配
   - 响应式断点与 style.css 保持一致（1080 / 768 / 640）
   ========================================================= */

/* ---------------- 说明性正文（为什么收费 / 隐私政策） ---------------- */
.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}

.prose p + p {
  margin-top: 18px;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  font-weight: 600;
}

.prose + .prose {
  margin-top: 18px;
}

.why-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.why-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
}

/* ---------------- 套餐卡片 ---------------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 12px; /* 给推荐档徽标留出上边空间 */
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 14px 32px var(--glow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--glow);
}

.plan-price {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent-2);
  -webkit-text-fill-color: transparent;
}

.plan-meta {
  font-size: 13.5px;
  color: var(--text-2);
}

.plan-meta + .plan-meta {
  margin-top: 2px;
}

.plan-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* 加载中 / 失败态（横跨整行） */
.plan-status {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 34px 20px;
  text-align: center;
  font-size: 14.5px;
  color: var(--text-2);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.plan-status p {
  margin: 0;
}

.plan-status--error {
  border-style: solid;
}

.plan-status--error p {
  color: var(--text);
  font-weight: 600;
}

/* ---------------- 购买表单 ---------------- */
.buy-card {
  display: grid;
  gap: 26px;
}

.buy-step {
  display: grid;
  gap: 10px;
}

.buy-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.buy-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.buy-input::placeholder {
  color: var(--text-3);
}

.buy-input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--glow);
}

.buy-hint {
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text-3);
}

.buy-verified {
  display: grid;
  gap: 26px;
}

/* 状态提示区：为空时整块不占位，避免多余间距 */
.buy-status:empty {
  display: none;
}

.buy-status {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 12px;
}

.buy-status p {
  margin: 0;
}

.buy-status--ok {
  border-left-color: var(--accent-1);
}

.buy-status--warn {
  border-left-color: var(--accent-2);
  color: var(--text);
}

.buy-status .text-link {
  justify-self: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 套餐单选 */
.plan-pick {
  display: grid;
  gap: 10px;
}

.plan-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.plan-pick-item:hover {
  border-color: var(--accent-1);
  color: var(--text);
}

.plan-pick-item.is-selected {
  border-color: var(--accent-1);
  color: var(--text);
  font-weight: 600;
}

.plan-pick-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-1);
  flex-shrink: 0;
}

/* 收款二维码占位（上传图片后在格子里放 <img> 即可） */
.pay-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pay-qr-wrap {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.pay-qr {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 14px;
  box-sizing: border-box;
}

.pay-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* 订单号与密钥 */
.order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.order-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  word-break: break-all;
  user-select: all;
}

.key-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--accent-1);
  border-radius: 10px;
  padding: 12px 16px;
  word-break: break-all;
  user-select: all;
}

/* ---------------- 响应式（与 style.css 断点一致） ---------------- */
@media (max-width: 1080px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
}

@media (max-width: 768px) {
  .buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .buy-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-badge {
    left: auto;
    right: 16px;
    transform: none;
  }
}

/* M1 支付：渠道 Tab 与动态二维码 */
.pay-dynamic {
  margin-top: 12px;
}
.pay-channels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pay-channel {
  flex: 1 1 auto;
  max-width: 180px;
}
.pay-qr-img {
  width: min(220px, 100%);
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.pay-qr-empty {
  width: min(220px, 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #888);
  border: 1px dashed var(--border, #333);
  border-radius: 8px;
}
