/* 定价与会员权限页 —— 沿用 global.css 的纯黑终端语言,不自创配色 */

.pricing-main {
  max-width: var(--page-narrow);   /* 定价是营销页,走窄档;三档说明见 global.css */
  margin: 0 auto;
  padding: 28px var(--page-gut) 88px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Hero:免费档单独站一行(TradingView 式) ---------- */
.pr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: center;
  padding: 34px 0 8px;
  border-bottom: 1px solid var(--hair-stroke);
}
.pr-hero-copy { display: flex; flex-direction: column; gap: 12px; }
.pr-hero-copy h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pr-hero-copy p { margin: 0; color: var(--text-secondary); max-width: 46ch; line-height: 1.7; }
.pr-hero-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--hair-stroke);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.pr-free-price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.pr-free-price .amt { font-size: calc(42px * var(--sv-font-scale, 1)); font-weight: 750; letter-spacing: -0.03em; }
.pr-free-price .cur { font-size: calc(20px * var(--sv-font-scale, 1)); color: var(--text-muted); }
.pr-free-price .per { font-size: calc(13px * var(--sv-font-scale, 1)); color: var(--text-muted); }
.pr-hero-note { font-size: calc(12px * var(--sv-font-scale, 1)); color: var(--text-muted); }

/* ---------- 周期切换 ---------- */
.pr-sec-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.pr-sec-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.01em; }
.pr-sec-head p { margin: 0; color: var(--text-secondary); max-width: 58ch; }

.pr-cycle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--hair-stroke);
  border-radius: 999px;
  margin: 0 auto;
}
.pr-cycle button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: calc(13.5px * var(--sv-font-scale, 1));
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}
.pr-cycle button:hover { color: var(--text-primary); }
.pr-cycle button.active { background: var(--accent); color: var(--accent-contrast); }
.pr-cycle .pr-save {
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--up-soft);
  color: var(--up);
}
.pr-cycle button.active .pr-save { background: rgba(0, 0, 0, 0.14); color: var(--accent-contrast); }

/* ---------- 套餐卡 ---------- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.pr-plan {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--hair-stroke);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pr-plan.hot { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.pr-flag {
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 11px;
  border-radius: 999px;
}

/* 当前会员身份直接印在卡上(糖哥 2026-09-01)。
   ⚠️ 位置刻意靠右:操盘手卡上已经有一个 .pr-flag「最多人选」钉在 left:22px,
   两个都靠左会叠在一起 —— 而操盘手恰好是最可能成为"当前方案"的那一档。 */
.pr-plan-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pr-current-flag {
  position: absolute;
  top: -10px;
  right: 22px;
  background: var(--ok, var(--accent));
  color: var(--accent-contrast);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 11px;
  border-radius: 999px;
}
.pr-current-until { font-size: calc(12.5px * var(--sv-font-scale, 1)); color: var(--text-muted); text-align: center; margin-top: -6px; }
.pr-plan-name { font-size: calc(17px * var(--sv-font-scale, 1)); font-weight: 700; display: flex; align-items: center; gap: 9px; }
.pr-tier-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-muted); }
.pr-plan.t1 .pr-tier-dot { background: var(--ice); }
.pr-plan.t2 .pr-tier-dot { background: var(--accent); }
.pr-plan-role { font-size: calc(12.5px * var(--sv-font-scale, 1)); color: var(--text-muted); line-height: 1.6; min-height: 3.2em; }

.pr-price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.pr-price .amt { font-size: calc(36px * var(--sv-font-scale, 1)); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.pr-price .cur { font-size: calc(16px * var(--sv-font-scale, 1)); color: var(--text-secondary); }
.pr-price .per { font-size: calc(13px * var(--sv-font-scale, 1)); color: var(--text-muted); }

.pr-price-sub {
  font-size: calc(12.5px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  border-top: 1px dashed var(--hair-stroke);
  padding-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 3.6em;
}
.pr-price-sub s { color: var(--text-muted); opacity: 0.7; }
.pr-price-sub .save { color: var(--up); font-weight: 650; }

.pr-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: calc(14px * var(--sv-font-scale, 1));
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
}
.pr-btn-primary { background: var(--accent); color: var(--accent-contrast); }
.pr-btn-ghost { background: transparent; border-color: var(--accent-line); color: var(--text-primary); }
.pr-btn:hover { opacity: 0.88; }
.pr-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.pr-plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pr-plan-list li {
  font-size: calc(12.8px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.pr-plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-line);
}
.pr-plan-list li b { color: var(--text-primary); font-weight: 650; }

/* 整条强调:原先靠句中 <b> 加粗,但那会把句子切成多个文本节点,
   i18n 逐节点翻译后拼回去,西语系接缝处没有空格 —— 实测德语拼成
   "39 StandardindikatorenVoll freigeschaltet"、英语 "indicatorsAll unlocked"。
   改成整条一个文本节点、强调落在 li 上,视觉重量与原 <b> 一致。 */
.pr-plan-list li.pr-em { color: var(--text-primary); font-weight: 650; }

/* ---------- 权限对比表 ---------- */
.pr-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair-stroke);
  border-radius: 12px;
  background: var(--bg-panel);
}
.pr-matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: calc(13.2px * var(--sv-font-scale, 1));
}
.pr-matrix thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  text-align: left;
  padding: 11px 15px;
  font-size: calc(11px * var(--sv-font-scale, 1));
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hair-stroke);
  font-weight: 700;
  white-space: nowrap;
}
.pr-matrix thead th.c1 { color: var(--ice); }
.pr-matrix thead th.c2 { color: var(--accent); }
.pr-matrix tbody td {
  padding: 9px 15px;
  border-bottom: 1px solid var(--grid-line);
  vertical-align: top;
  color: var(--text-secondary);
}
.pr-matrix tbody tr:last-child td { border-bottom: 0; }
.pr-matrix tbody tr:hover td { background: var(--bg-tertiary); }
.pr-matrix td.k { color: var(--text-primary); font-weight: 500; width: 30%; }
.pr-matrix td.v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-matrix .on { color: var(--up); font-weight: 650; }
.pr-matrix .off { color: var(--text-muted); opacity: 0.5; }
.pr-matrix .mark { color: var(--accent); font-weight: 700; }
.pr-matrix td.cat {
  background: var(--bg-elevated);
  font-weight: 700;
  font-size: calc(11.5px * var(--sv-font-scale, 1));
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding: 9px 15px;
}
.pr-matrix .hint { display: block; font-size: calc(11.5px * var(--sv-font-scale, 1)); color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

/* ---------- FAQ ---------- */
.pr-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 14px; }
.pr-faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--hair-stroke);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-faq-item h3 { margin: 0; font-size: calc(14px * var(--sv-font-scale, 1)); font-weight: 650; }
.pr-faq-item p { margin: 0; font-size: calc(13px * var(--sv-font-scale, 1)); color: var(--text-secondary); line-height: 1.65; }

.pr-legal {
  border-top: 1px solid var(--hair-stroke);
  padding-top: 20px;
  font-size: calc(12px * var(--sv-font-scale, 1));
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .pr-hero { grid-template-columns: 1fr; }
  .pricing-main { padding: 20px 14px 64px; gap: 42px; }
}

/* 法律条款一行原本横跨 1408px,给个阅读上限(说明见 global.css --read-max 那段) */
.pr-legal { max-width: min(100%, 900px); }
