/* 显存工坊 · 定价页（对齐原站版式，价格改为原站 10%） */
:root {
  --violet: #7950f2;
  --violet-9: #5f3dc4;
  --violet-1: #e5dbff;
  --blue: #228be6;
  --blue-9: #1971c2;
  --bg: #f1f3f5;
  --border: #e9ecef;
  --border-strong: #dee2e6;
  --text: #212529;
  --text-2: #495057;
  --text-3: #868e96;
  --text-4: #adb5bd;
  --green: #40c057;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 380px at 50% -120px, rgba(121, 80, 242, .16), rgba(121, 80, 242, 0) 70%),
    radial-gradient(700px 320px at 8% 30%, rgba(121, 80, 242, .07), rgba(121, 80, 242, 0) 70%),
    radial-gradient(700px 320px at 95% 26%, rgba(121, 80, 242, .06), rgba(121, 80, 242, 0) 70%),
    #fff;
  color: var(--text); font-family: var(--font); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 300; height: 48px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px; background: #fff; border-bottom: 1px solid var(--border-strong);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-mark { width: 22px; height: 22px; color: var(--violet); }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
  padding: 7px 12px; text-decoration: none; color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--violet-9); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn { height: 30px; padding: 0 14px; border-radius: 6px; border: 0; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); }
.btn-login { background: var(--violet-1); color: var(--violet-9); }
.btn-register { background: var(--violet); color: #fff; }
.lang-pill {
  width: 34px; height: 30px; border-radius: 15px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer;
}

/* 主体 */
.pricing-page { padding: 56px 24px 0; }
.pricing-inner { max-width: 1080px; margin: 0 auto; }
.pricing-title { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 700; text-align: center; letter-spacing: -.3px; }
.pricing-sub { margin: 14px auto 0; max-width: 760px; text-align: center; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

/* 计费控件：年付 switch + 订阅/一次性通行证 分段 */
.billing-bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; width: 30px; height: 18px; border-radius: 9px; background: #dee2e6; transition: background .15s;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--violet); }
.switch input:checked + .switch-track::after { transform: translateX(12px); }
.switch-label { font-size: 13px; color: var(--text-2); }

.billing-seg { display: flex; gap: 2px; padding: 3px; background: #f1f3f5; border-radius: 8px; }
.billing-tab {
  height: 28px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.billing-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* 卡片 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 66px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 26px 26px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.plan-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.plan-name.tint-pro { color: #1c7ed6; }
.plan-name.tint-plus { color: var(--violet-9); }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 22px; font-weight: 600; }
.plan-price .num { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.plan-price .per { color: var(--text-3); font-size: 13px; font-weight: 500; }
.plan-note { margin-top: 8px; color: var(--text-4); font-size: 12px; min-height: 17px; }
.plan-desc { margin-top: 12px; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.plan-feats { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.plan-feats .ck { flex: 0 0 auto; margin-top: 1px; }
.plan-feats .ck svg { width: 16px; height: 16px; display: block; }
.plan-feats .ck.gray { color: var(--text-4); }
.plan-feats .ck.blue { color: #339af0; }
.plan-feats .ck.violet { color: var(--violet); }
.plan-cta {
  margin-top: 20px; height: 34px; width: 100%; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: var(--font); border: 0;
}
.plan-cta.gray { background: #f1f3f5; color: var(--text-3); cursor: default; }
.plan-cta.blue { background: var(--blue); color: #fff; }
.plan-cta.blue:hover { background: var(--blue-9); }
.plan-cta.violet { background: var(--violet); color: #fff; }
.plan-cta.violet:hover { background: var(--violet-9); }

/* FAQ */
.pricing-faq { max-width: 820px; margin: 60px auto 0; }
.pricing-faq h2 { margin: 0 0 22px; font-size: 20px; font-weight: 700; text-align: center; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px; border: 0; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text); text-align: left; font-family: var(--font);
}
.faq-q .chev { transition: transform .18s; color: var(--text-3); display: flex; }
.faq-q .chev svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 17px; color: var(--text-2); font-size: 13px; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 66px; }
.footer-inner {
  max-width: 1248px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-3); font-size: 12px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-3); text-decoration: none; }
.footer-links a:hover { color: var(--violet-9); }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  background: #212529; color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 500;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .pricing-page { padding: 32px 16px 0; }
  .pricing-title { font-size: 26px; }
  .billing-bar { gap: 14px; }
  .billing-tab { padding: 0 10px; }
}
