/* 善亮 AI 助手 · 站点样式（纯静态，零依赖） */
:root {
  --bg: #0b1020;
  --bg-soft: #121a30;
  --card: #16203a;
  --card-2: #1b2745;
  --line: #26324f;
  --text: #eaeefb;
  --muted: #a4b0cc;
  --brand: #4f7cff;
  --brand-2: #7aa2ff;
  --gold: #f5b942;
  --ok: #35c98a;
  --warn: #ffb020;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(4, 8, 20, .45);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, .86);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: linear-gradient(135deg, var(--brand), #9b7bff);
  display: grid; place-items: center; font-size: 15px; color: #fff;
}
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 15px;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--card); }
.nav a.btn-ghost { border: 1px solid var(--line); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 6px 10px; font-size: 16px; cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 11px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #6f5bff); color: #fff; box-shadow: 0 8px 20px rgba(79, 124, 255, .28); }
.btn-gold { background: linear-gradient(135deg, #f7c25a, #e59d1b); color: #2a1c00; box-shadow: 0 8px 20px rgba(245, 185, 66, .22); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% auto -10%; height: 420px;
  background: radial-gradient(closest-side, rgba(79, 124, 255, .26), transparent);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: 10%; width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(155, 123, 255, .18), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-block; font-size: 13px; color: var(--brand-2);
  border: 1px solid rgba(79, 124, 255, .38); background: rgba(79, 124, 255, .10);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #9fc0ff, #bda6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .meta { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- 区块 ---------- */
section.block { padding: 54px 0; }
.section-title { font-size: 28px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 30px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico { font-size: 24px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border-color: rgba(245, 185, 66, .55); background: linear-gradient(180deg, #1d2540, #171f38); position: relative; }
.plan .tag {
  position: absolute; top: -12px; left: 22px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #f7c25a, #e59d1b); color: #2a1c00;
  padding: 3px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 17px; }
.plan .price { font-size: 34px; font-weight: 700; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .desc { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; font-size: 14.5px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: #cfd8ee; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.no { color: #76829d; }
.plan li.no::before { content: "·"; color: #76829d; }

/* ---------- 提醒 / 风险 ---------- */
.notice {
  border-left: 3px solid var(--warn); background: rgba(255, 176, 32, .08);
  padding: 14px 18px; border-radius: 10px; color: #f0e2c8; font-size: 14px;
}
.notice.risk { border-color: var(--danger); background: rgba(255, 107, 107, .08); color: #f6d7d7; }
.notice b { color: #fff; }

/* ---------- 表单 ---------- */
.form-card { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 15px;
  background: #0e1730; border: 1px solid var(--line); color: var(--text);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 124, 255, .18); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 15px;
}
.tabs button.on { background: var(--card); color: var(--text); border-color: var(--brand); }

.msg { font-size: 14px; margin-top: 12px; min-height: 20px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); }

.qr-box { text-align: center; margin: 16px 0; }
.qr-box img { width: 220px; margin: 0 auto; border-radius: 12px; background: #fff; padding: 8px; }
.order-no { font-family: ui-monospace, Consolas, monospace; background: #0e1730; border: 1px dashed var(--line); padding: 8px 12px; border-radius: 9px; display: inline-block; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--muted); }
.faq-item[open] summary::after { content: "－"; }
.faq-item .ans { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }

/* ---------- 底部 ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 40px; color: var(--muted); font-size: 13.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.site-footer h4 { color: var(--text); font-size: 14.5px; margin: 0 0 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; line-height: 1.9; }

/* ---------- 工具 ---------- */
.center { text-align: center; }
.mt24 { margin-top: 24px; }
.mt12 { margin-top: 12px; }
.hide { display: none !important; }

/* 邀请码 / 推荐（2026-09-13） */
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.invite-state { font-size: 13px; margin: 6px 0 0; min-height: 18px; color: var(--muted); }
.invite-state.ok { color: var(--ok); font-weight: 600; }
.invite-state.err { color: var(--danger); }
.field label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.field label.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.invite-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-link code { font-family: ui-monospace, Consolas, monospace; background: #0e1730; border: 1px dashed var(--line); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; word-break: break-all; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .price-grid { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 48px 0 36px; }
  .section-title { font-size: 23px; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #0d1426; border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
  }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero .cta .btn { width: 100%; }
  body { font-size: 15.5px; }
}
