/* ==========================================================================
   VedicMath AI — 站点全局样式（纯本地，无任何外部字体/CDN 依赖）
   ========================================================================== */

:root {
  --bg: #06070f;
  --bg2: #0a0d1e;
  --panel: rgba(255, 255, 255, 0.045);
  --panel2: rgba(255, 255, 255, 0.08);
  --line: rgba(140, 160, 255, 0.16);
  --text: #e9ecff;
  --muted: #98a2c8;
  --brand: #7c5cff;
  --brand2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --radius: 18px;
  --maxw: 1180px;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg: #f5f6fc;
  --bg2: #ffffff;
  --panel: rgba(18, 24, 68, 0.04);
  --panel2: rgba(18, 24, 68, 0.07);
  --line: rgba(24, 34, 96, 0.14);
  --text: #111634;
  --muted: #5a6382;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：AI 风格的渐变光晕 + 网格 */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(124, 92, 255, 0.30), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(34, 211, 238, 0.20), transparent 60%),
    radial-gradient(700px 500px at 60% 105%, rgba(52, 211, 153, 0.14), transparent 62%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(150, 170, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 170, 255, 0.075) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 78%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- 顶栏导航 */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 14px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-size: 17px; box-shadow: 0 6px 20px rgba(124, 92, 255, .45);
  font-family: var(--mono);
}
.logo small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .18em; }

.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .menu > .drop > button {
  font: inherit; font-size: 14.5px; color: var(--muted);
  padding: 9px 13px; border-radius: 11px; border: 0; background: transparent; cursor: pointer;
  transition: color .18s, background .18s;
}
.menu > a:hover, .menu > .drop > button:hover, .menu > a.active { color: var(--text); background: var(--panel); }
.menu > a.active { box-shadow: inset 0 -2px 0 var(--brand2); }

.drop { position: relative; }
.drop > button::after { content: "▾"; font-size: 10px; margin-left: 7px; opacity: .7; }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(880px, 92vw);
  background: color-mix(in srgb, var(--bg2) 96%, transparent);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 14px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
}
.drop:hover .drop-panel, .drop.open .drop-panel { display: grid; transform: translateX(-50%) translateY(0); }
.drop-col h5 { margin: 2px 0 8px; font-size: 12px; letter-spacing: .14em; color: var(--brand2); text-transform: uppercase; }
.drop-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 8px; border-radius: 9px; }
.drop-col a:hover { color: var(--text); background: var(--panel); }
.drop-col .sub { font-size: 11.5px; color: var(--muted); opacity: .8; padding: 6px 8px 0; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
}
.icon-btn:hover { background: var(--panel2); }
.burger { display: none; }

/* ------------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 13px; font-size: 14.5px; font-weight: 650;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); background: var(--panel2); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #a855f7 45%, var(--brand2));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, .38);
}
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------- 通用容器块 */
main { padding-bottom: 70px; }

section { padding: 62px 0; }
section.tight { padding: 38px 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand2);
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .26);
  padding: 6px 12px; border-radius: 999px;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(23px, 3vw, 33px); letter-spacing: -.015em; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; color: var(--muted); }
p.lead { font-size: 17px; color: var(--muted); max-width: 74ch; }
strong { color: var(--text); }
.grad { background: linear-gradient(100deg, var(--brand) 5%, #c084fc 40%, var(--brand2) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .5); background: var(--panel2); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(34, 211, 238, .22));
  border: 1px solid var(--line);
}

.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted);
}
.pill.b { color: var(--brand2); border-color: rgba(34, 211, 238, .35); }
.pill.p { color: #c4b5fd; border-color: rgba(124, 92, 255, .4); }
.pill.g { color: var(--ok); border-color: rgba(52, 211, 153, .38); }
.pill.y { color: var(--warn); border-color: rgba(251, 191, 36, .4); }

/* -------------------------------------------------------------------- Hero */
.hero { padding: 74px 0 34px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.panel-mock {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel2); display: block; }
.mock-top i:first-child { background: #fb7185; }
.mock-top i:nth-child(2) { background: #fbbf24; }
.mock-top i:nth-child(3) { background: #34d399; }
.mock-line {
  font-family: var(--mono); font-size: 14px; padding: 9px 12px; border-radius: 11px;
  background: var(--panel); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px;
}
.mock-line .tag { color: var(--brand2); font-size: 11.5px; }
.mock-line .val { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------------ 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; font-family: var(--mono); color: var(--text); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------- 步骤 / 公式 / 表 */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { position: relative; padding: 0 0 14px 46px; color: var(--muted); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .3));
  border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700;
}
.steps li:last-child { padding-bottom: 0; }

.eq {
  font-family: var(--mono); background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--brand2); border-radius: 12px; padding: 12px 14px;
  margin: 12px 0; color: var(--text); font-size: 14px; overflow-x: auto; white-space: pre-wrap;
}
.eq b { color: var(--brand2); }
.eq .hi { color: var(--warn); }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--panel); border-radius: 12px; padding: 14px 16px; margin: 14px 0;
}
.callout.ai { border-left-color: var(--brand2); }
.callout.warn { border-left-color: var(--warn); }
.callout.ok { border-left-color: var(--ok); }
.callout h4 { margin: 0 0 6px; font-size: 14.5px; }
.callout p:last-child { margin-bottom: 0; }

table.data { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.data th { background: var(--panel2); color: var(--text); font-weight: 650; }
table.data td { color: var(--muted); }
table.data tr:hover td { background: var(--panel); }

details.acc { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); padding: 12px 16px; margin: 10px 0; }
details.acc summary { cursor: pointer; font-weight: 650; color: var(--text); }
details.acc[open] summary { margin-bottom: 10px; }

ul.tick { list-style: none; padding: 0; margin: 10px 0; }
ul.tick li { padding-left: 26px; position: relative; color: var(--muted); margin-bottom: 7px; }
ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

ul.dot { padding-left: 20px; color: var(--muted); }
ul.dot li { margin-bottom: 7px; }

/* --------------------------------------------------------------- 标签页 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tabs button {
  font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(124, 92, 255, .32);
}
.tabpane { display: none; }
.tabpane.on { display: block; animation: fade .3s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 交互控件 */
.field { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.field label { font-size: 13.5px; color: var(--muted); }
input[type="number"], input[type="text"], select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; min-width: 120px;
  outline: none; font-family: var(--mono);
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
input.ok { border-color: var(--ok); }
input.bad { border-color: var(--err); }
select { font-family: var(--sans); }

.result { margin-top: 14px; }
.result .line { font-family: var(--mono); font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--panel); margin-bottom: 7px; }
.big-ans { font-family: var(--mono); font-size: 26px; font-weight: 800; color: var(--brand2); }

.meter { height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; margin: 10px 0; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .3s; }

.quiz-q { font-family: var(--mono); font-size: 30px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 14px; }
.kv { display: flex; flex-wrap: wrap; gap: 10px; }
.kv > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); font-family: var(--mono); font-size: 15px; }

.game-stage {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  text-align: center; min-height: 210px; display: grid; align-content: center; gap: 8px;
}
.game-stage .q { font-family: var(--mono); font-size: 36px; font-weight: 800; }
.game-stage .hint { color: var(--muted); font-size: 13.5px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: 26px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 13px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 90; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------ 价格卡片 */
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan .price { font-family: var(--mono); font-size: 34px; font-weight: 800; color: var(--text); }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan.popular { border-color: rgba(124, 92, 255, .6); background: linear-gradient(180deg, rgba(124, 92, 255, .13), var(--panel)); }
.plan .ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(38deg); width: 130px; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 0; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.plan ul { list-style: none; padding: 0; margin: 10px 0 18px; }
.plan ul li { padding-left: 24px; position: relative; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan ul li.off::before { content: "—"; color: var(--muted); }

/* --------------------------------------------------------------- AI 助手 */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; border: 0;
  padding: 14px 20px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #a855f7 50%, var(--brand2)); color: #fff;
  font: inherit; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px rgba(124, 92, 255, .45);
}
.chat {
  position: fixed; right: 22px; bottom: 86px; z-index: 81; width: min(380px, 92vw);
  background: color-mix(in srgb, var(--bg2) 97%, transparent);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: none;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}
.chat.on { display: block; }
.chat header { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.chat header .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.chat .body { height: 290px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; }
.msg.bot { background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-bottom-right-radius: 5px; }
.msg code { font-family: var(--mono); background: rgba(124, 92, 255, .16); padding: 1px 5px; border-radius: 6px; }
.chat .send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat .send input { flex: 1; min-width: 0; }
.chat .quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.chat .quick button {
  font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.chat .quick button:hover { color: var(--text); }

/* ----------------------------------------------------------------- 页脚 */
footer.site { border-top: 1px solid var(--line); padding: 42px 0 34px; margin-top: 30px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
footer.site h5 { font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--brand2); margin: 0 0 10px; }
footer.site a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
footer.site a:hover { color: var(--text); }
footer.site .bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 面包屑 */
.crumb { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumb a:hover { color: var(--text); }

/* -------------------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  .hero-grid, .g2, .g3, .g4, .stats, footer.site .cols { grid-template-columns: 1fr; }
  .g3.two, .g4.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burger { display: grid; }
  .menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: color-mix(in srgb, var(--bg2) 99%, transparent); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; gap: 2px; display: none;
  }
  .menu.open { display: flex; }
  .drop-panel { position: static; transform: none; width: 100%; display: none; grid-template-columns: 1fr; }
  .drop.open .drop-panel { display: grid; transform: none; }
  .drop:hover .drop-panel { display: none; }
  .drop.open:hover .drop-panel { display: grid; }
}
@media (max-width: 560px) {
  .g3.two, .g4.two { grid-template-columns: 1fr; }
  .quiz-q, .game-stage .q { font-size: 26px; }
  section { padding: 46px 0; }
}

/* -------------------------------------------------------------- 通用表格（无 class 的 table） */
main table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
main table th, main table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
main table th { background: var(--panel2); color: var(--text); font-weight: 650; }
main table td { color: var(--muted); }
main table tr:hover td { background: var(--panel); }
main table a { color: var(--brand2); }

/* -------------------------------------------------------------- 价格卡（pricing.html） */
.price {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  position: relative; transition: transform .18s ease, border-color .18s ease;
}
.price:hover { transform: translateY(-4px); border-color: rgba(140, 160, 255, .38); }
.price h3 { margin: 0; font-size: 17px; }
.price .amt { font-family: var(--mono); font-size: 38px; font-weight: 800; color: var(--text); line-height: 1.05; }
.price .amt span { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.price ul { margin: 6px 0 16px; }
.price .btn { margin-top: auto; justify-content: center; }
.price.featured { border-color: rgba(124, 92, 255, .6); background: linear-gradient(180deg, rgba(124, 92, 255, .13), var(--panel)); }
.price .pill { align-self: flex-start; }

/* -------------------------------------------------------------- 工具页补充元素 */
.line { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.result .line { font-size: 14px; }
.mark { font-size: 13px; font-weight: 700; margin-left: 4px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 12px; }
.q { font-family: var(--mono); font-size: 34px; font-weight: 800; letter-spacing: .02em; margin: 8px 0 14px; }
.game-stage { min-height: 120px; }
.kv.jc, .field.jc { justify-content: center; }
details.acc .line { font-family: var(--sans); background: none; padding: 0; }

/* ==========================================================================
   增量样式：语言切换 / 币种切换 / 注册登录页 / 收费页强化
   （以下均为新增类，不影响既有页面既有类名的表现）
   ========================================================================== */

/* ---------------------------------------------------------- 语言切换按钮 */
.lang-btn { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.lang-btn .t-zh { display: none; }
html[data-lang="en"] .lang-btn .t-en { display: none; }
html[data-lang="en"] .lang-btn .t-zh { display: inline; }
html[data-lang="en"] { --sans: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }

/* ---------------------------------------------------------- 币种切换按钮 */
.cur-switch {
  display: inline-flex; gap: 6px; padding: 4px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
}
.cur-switch button {
  font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 14px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.cur-switch button:hover { color: var(--text); }
.cur-switch button.on {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 20px rgba(124, 92, 255, .3);
}
html[data-cur="USD"] .cur-inr { display: none; }
html[data-cur="INR"] .cur-usd { display: none; }

/* ------------------------------------------------- 注册 / 登录页（双栏） */
.auth-wrap {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 26px; align-items: start;
  padding: 30px 0 64px;
}
.auth-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 22px; background: var(--panel); padding: 28px 26px 26px;
}
.auth-card h1 { font-size: 25px; margin: 10px 0 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.oauth-row { display: flex; gap: 10px; }
.oauth-btn { width: 100%; justify-content: center; gap: 10px; }
.oauth-btn[disabled], .oauth-btn.is-off { opacity: .62; cursor: not-allowed; }
.oauth-btn .g-dot {
  width: 16px; height: 16px; border-radius: 4px;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}
.oauth-note { font-size: 12px; color: var(--muted); margin: 8px 0 14px; }
.or-sep {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 12px; letter-spacing: .12em; margin: 10px 0 16px;
}
.or-sep::before, .or-sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 13px; font-weight: 650; color: var(--muted); }
.form-row input, .form-row select {
  font: inherit; font-size: 15px; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
}
.form-row input:focus, .form-row select:focus {
  outline: none; border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 3px rgba(124, 92, 255, .16);
}
.form-row .sub { font-size: 12px; color: var(--muted); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: 13px; color: var(--muted); }
.form-check input { margin-top: 3px; }
.form-msg { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; margin: 0 0 14px; }
.form-msg[hidden] { display: none; }
.form-msg.err { border-color: rgba(251, 113, 133, .5); background: rgba(251, 113, 133, .12); color: #ffd8df; }
.form-msg.ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); color: #cbf7e6; }
[data-theme="light"] .form-msg.err { color: #8c1330; }
[data-theme="light"] .form-msg.ok { color: #0b5c43; }
.auth-alt { font-size: 13.5px; color: var(--muted); margin: 18px 0 0; }
.auth-alt a { color: var(--brand2); font-weight: 650; }
.auth-mini { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.member-bar {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px;
  font-size: 13px; color: var(--muted); background: var(--panel2);
}
.member-bar[hidden] { display: none; }
.member-bar b { color: var(--text); }

/* 右侧营销面板（参照 speedmath.in 的登录/注册页结构） */
.mk-panel {
  border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px;
  background: linear-gradient(180deg, rgba(124, 92, 255, .15), var(--panel));
}
.mk-panel .mk-title { font-size: 23px; font-weight: 800; margin: 8px 0 8px; line-height: 1.3; }
.mk-panel .mk-lead { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.mk-stats div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); }
.mk-stats b { display: block; font-family: var(--mono); font-size: 20px; line-height: 1.2; }
.mk-stats span { font-size: 11px; letter-spacing: .07em; color: var(--muted); }
.mk-feats { display: grid; gap: 12px; margin-top: 16px; }
.mk-feats .f { border-left: 3px solid var(--brand2); padding-left: 12px; }
.mk-feats b { display: block; font-size: 14.5px; }
.mk-feats p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------ 收费页强化组件 */
.promo-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  border: 1px dashed rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .1);
  border-radius: 16px; padding: 14px 18px; margin: 18px 0;
}
.promo-bar b { color: var(--warn); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price .plan-tag { margin: 0; font-size: 12.5px; color: var(--muted); }
.price .amt-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price .was { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.price .perday { font-size: 12.5px; font-weight: 650; color: var(--brand2); }
.price .badge-off {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #05130f;
  background: linear-gradient(135deg, #34d399, #22d3ee);
}
.price.featured .badge-off { background: linear-gradient(135deg, #fbbf24, #fb7185); color: #2a1006; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 4px 8px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare th, .compare td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover { background: var(--panel2); }
.compare td.yes { color: var(--ok); font-weight: 700; }
.compare td.no { color: var(--muted); }
.compare td.mid { text-align: center; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust .t { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--panel); }
.trust b { display: block; margin-bottom: 4px; font-size: 14.5px; }
.trust p { margin: 0; font-size: 13.5px; color: var(--muted); }
.faq-wrap { max-width: 900px; }

@media (max-width: 980px) {
  .auth-wrap, .plan-grid, .trust { grid-template-columns: 1fr; }
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mk-stats { grid-template-columns: 1fr; }
  .auth-card, .mk-panel { padding: 22px 18px; }
}


/* ------------------------------------------------ 多币种价格显示（跟随 html[data-cur]） */
html[data-cur="USD"] .p-inr { display: none !important; }
html[data-cur="INR"] .p-usd { display: none !important; }
html[data-cur="USD"] .w-inr { display: none !important; }
html[data-cur="INR"] .w-usd { display: none !important; }

/* ------------------------------------------------ 注册/登录页补充 */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.auth-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; background: var(--panel); }
.auth-card h1 { margin: 6px 0 4px; font-size: 26px; }
.auth-card .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.auth-alt { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.auth-alt a { font-weight: 650; }
.oauth-row { display: grid; gap: 10px; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.or-sep::before, .or-sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent-row input { margin-top: 3px; }
.form-msg.err { color: #fca5a5; }
.form-msg.ok { color: var(--ok); }
.mk-panel { border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; background: linear-gradient(160deg, rgba(34, 211, 238, .08), transparent 60%), var(--panel); }
.mk-panel h2 { margin: 8px 0 6px; font-size: 24px; }
.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.nav-reg.active { background: var(--brand); color: #05130f; }
.member-bar { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.plan-cta { display: grid; gap: 10px; }
.plan-cta .btn { width: 100%; text-align: center; }
.price .amt-line { min-height: 44px; }
.cur-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
