/* 全站共用样式：浅色、移动优先（大部分访客从微信内置浏览器进来） */

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --fg: #171a21;
  --dim: #5c6675;
  --line: #e5e9f2;
  --brand: #2a5cff;
  --brand-2: #7c3aed;
  --ok: #0f9d58;
  --warn: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 8px 24px rgba(20, 30, 60, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

img { max-width: 100%; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; color: var(--fg); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--dim); font-size: 15px; padding: 7px 11px; border-radius: 9px; white-space: nowrap;
}
.site-nav a:hover { background: #eef1f8; color: var(--fg); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: #eaefff; font-weight: 600; }
/* 导航里的主按钮：.site-nav a 的深灰字色会盖掉 .btn-primary 的白字，这里显式提回白色 */
.site-nav a.btn-primary {
  color: #fff; background: linear-gradient(100deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px rgba(42, 92, 255, .28);
}
.site-nav a.btn-primary:hover {
  color: #fff; background: linear-gradient(100deg, #1e49d8, #6a2bd4);
  box-shadow: 0 6px 18px rgba(42, 92, 255, .36);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 14px rgba(42, 92, 255, .25);
}
.btn-ghost { background: #fff; border-color: var(--line); color: var(--fg); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- 区块 ---------- */
section.block { padding: 52px 0; }
section.block.tight { padding: 34px 0; }
.section-title { font-size: 25px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.01em; }
.section-sub { color: var(--dim); margin: 0 0 26px; font-size: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 10px;
  background: #eaefff; color: var(--brand); font-weight: 700; font-size: 14px;
}

/* ---------- 首页英雄区 ---------- */
.hero { padding: 56px 0 20px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .04em;
  color: var(--brand); background: #eaefff; border-radius: 999px;
  padding: 5px 13px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5.2vw, 42px); line-height: 1.24; margin: 0 0 16px;
  letter-spacing: -.02em;
}
.hero p.lede { font-size: 17px; color: var(--dim); margin: 0 0 24px; max-width: 62ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card .num::before { counter-increment: step; content: counter(step); }

/* ---------- 扫码登录区 ---------- */
.login-box {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.qr-box {
  width: 200px; height: 200px; flex: 0 0 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-box .ph { color: var(--dim); font-size: 13px; text-align: center; padding: 0 14px; }
.login-info { flex: 1 1 280px; min-width: 0; }
.login-info h2 { margin: 0 0 8px; font-size: 19px; }
#qr-status { color: var(--dim); font-size: 15px; margin: 0 0 14px; min-height: 3em; }
#qr-status.warn { color: var(--warn); }
#qr-status.ok { color: var(--ok); }

/* ---------- 联系方式 ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line);
  align-items: baseline; flex-wrap: wrap;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { color: var(--dim); font-size: 14px; min-width: 84px; }
.contact-list .value { font-weight: 600; font-size: 16px; word-break: break-all; }

/* ---------- 效果示例图 ---------- */
.demo-wrap { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.demo-shot {
  width: 262px; flex: 0 0 262px; margin: 0 auto;
  padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 14px 44px rgba(20, 30, 60, .15);
}
.demo-shot img { display: block; width: 100%; height: auto; border-radius: 20px; }
.demo-shot figcaption {
  text-align: center; color: var(--dim); font-size: 13px;
  padding: 9px 4px 3px; line-height: 1.5;
}
.demo-text { flex: 1 1 320px; min-width: 0; }
.demo-text ul { margin: 0; padding-left: 20px; color: var(--dim); font-size: 15px; line-height: 2; }
.demo-text ul strong { color: var(--fg); }

/* ---------- 常见问题 ---------- */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--dim); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 11px 0 0; color: var(--dim); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 32px 0 40px; margin-top: 20px;
}
.site-footer .row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: space-between; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-footer .meta { color: var(--dim); font-size: 13.5px; line-height: 1.8; margin: 16px 0 0; }
.site-footer .contact-line { color: var(--dim); font-size: 14px; }

.note {
  background: #f3f5fb; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 17px; color: var(--dim); font-size: 14.5px;
}
.note strong { color: var(--fg); }

@media (max-width: 620px) {
  .site-header .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px; }
  .site-nav a { padding: 6px 9px; font-size: 14px; }
  section.block { padding: 38px 0; }
  .qr-box { width: 100%; height: 200px; flex: 1 1 100%; }
  .demo-shot { width: 240px; flex: 1 1 240px; }
}
