/*
 * 官网样式：和插件同一套色板（紫 #7c3aed → 蓝 #2563eb）
 * 只用一个 css 文件，不引任何 CDN——官网要能整包丢到静态目录里直接跑。
 */
:root {
  --brand: #7c3aed;
  --brand-2: #2563eb;
  --grad: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --ok: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: linear-gradient(180deg, #faf5ff 0%, #eff6ff 45%, #f8fafc 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------------------------------------------------------------- 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--muted); font-weight: 600; }
.nav nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: transform .06s, box-shadow .2s, filter .2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, .3); }
.btn-ghost { background: #fff; color: var(--text); border-color: #cbd5e1; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 76px 0 56px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #f5f3ff; color: var(--brand); border: 1px solid #ddd6fe;
}
.hero h1 {
  margin: 20px 0 14px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25;
  color: var(--ink); letter-spacing: -.5px;
}
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 auto; max-width: 680px; font-size: 17px; color: var(--muted); }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

.shot-main {
  margin: 44px auto 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff;
}

/* ---------------------------------------------------------------- 区块 */
section { padding: 64px 0; }
section > .wrap > h2 {
  margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); color: var(--ink); text-align: center;
}
section > .wrap > p.sub { margin: 0 auto 40px; max-width: 640px; text-align: center; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 8px; font-size: 17px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: #f5f3ff; color: var(--brand);
}

/* 两种提报方式对比 */
.mode { position: relative; }
.mode.pick { border-color: #ddd6fe; box-shadow: 0 12px 34px rgba(124, 58, 237, .16); }
.mode .tag {
  position: absolute; top: -12px; right: 20px; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--grad);
}
.mode ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.mode ul li { margin-bottom: 6px; }
.mode .name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--ink); }

/* 截图画廊 */
.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot figcaption { padding: 14px 18px; border-top: 1px solid var(--line); }
.shot figcaption b { display: block; color: var(--ink); font-size: 15px; }
.shot figcaption span { color: var(--muted); font-size: 13px; }

/* 步骤 */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step b { display: block; color: var(--ink); margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 14px; }

/* 邀请 */
.invite { background: var(--grad); border-radius: 22px; padding: 40px; color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.invite h2 { margin: 0 0 10px; font-size: 28px; }
.invite p { margin: 0 auto 22px; max-width: 620px; opacity: .92; }
.invite .code-box {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; padding: 10px 16px;
  font-family: Consolas, Monaco, monospace; font-size: 16px; font-weight: 700;
}
.invite .btn-ghost { background: #fff; border-color: #fff; color: var(--brand); }

/* 联系方式 */
.contact { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact .card { text-align: center; }
.contact .qr { width: 168px; height: 168px; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; background: #f8fafc; }
.contact .val { font-weight: 700; color: var(--ink); font-size: 16px; word-break: break-all; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 30px; background: rgba(255, 255, 255, .6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
footer .links { display: flex; gap: 18px; font-size: 14px; }
footer small { color: var(--muted); }

/* 文档页（隐私 / 条款） */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.doc h2 { margin: 28px 0 10px; font-size: 20px; color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 22px; color: var(--muted); }
.doc li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .nav nav { display: none; }
  section { padding: 46px 0; }
  .invite { padding: 28px 20px; }
}


/* ══════════════════════════════════════════════════════════════
   高级感覆盖层
   与插件同一套品牌语言：紫 #7c3aed → 蓝 #2563eb。
   只覆盖观感，不改结构，追加在最后所以优先级天然最高。
   ══════════════════════════════════════════════════════════════ */
:root {
  --b1: #7c3aed;
  --b2: #2563eb;
  --ink: #0f172a;
  --sub: #64748b;
  --line: #e9edf5;
  --paper: #fff;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 12% -8%, #7c3aed14, #0000 60%),
    radial-gradient(900px 460px at 92% 2%, #2563eb12, #0000 55%),
    #fbfcfe;
  -webkit-font-smoothing: antialiased;
}

/* 顶栏：滚动时是一层毛玻璃，不再是死板的白条 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #eef1f7;
  background: #ffffffd9;
  backdrop-filter: saturate(1.6) blur(12px);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(120deg, var(--b1), var(--b2));
  -webkit-background-clip: text;
  background-clip: text;
  color: #0000;
}

/* 主视觉：大标题压字距，副标题拉开呼吸 */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.8px;
}

/* 标题里的强调词交给渐变，比纯色更有层次 */
.hero h1 em,
.hero h1 span.accent {
  font-style: normal;
  background: linear-gradient(120deg, var(--b1), var(--b2));
  -webkit-background-clip: text;
  background-clip: text;
  color: #0000;
}

.hero p {
  max-width: 62ch;
  color: var(--sub);
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 1.8;
}

.badge {
  border: 1px solid #7c3aed2e;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed14, #2563eb12);
  color: var(--b1);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* 按钮：主操作渐变 + 悬浮微抬，次操作描边 */
.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow: 0 12px 26px -12px #7c3aedd9;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px #7c3aede6;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border: 1px solid #dfe5ef;
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--b1);
  color: var(--b1);
}

/* 卡片：渐变描边 + 分层投影，hover 抬起 */
.card,
.mode,
.step,
.doc,
.faq > * {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow:
    0 12px 30px -22px #0f172a2e,
    0 2px 6px -4px #0f172a12;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover,
.mode:hover,
.step:hover {
  transform: translateY(-3px);
  border-color: #ddd3fb;
  box-shadow:
    0 22px 44px -24px #4c1d9540,
    0 4px 10px -6px #0f172a1a;
}

/* 两种提报方式：顶部一道渐变条做区分 */
.mode {
  position: relative;
  overflow: hidden;
}

.mode:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b1), var(--b2));
}

/* 步骤序号做成渐变圆点 */
.step {
  position: relative;
}

.steps .step h3:before,
.step > .n {
  color: #fff;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px #7c3aeda6;
}

/* 截图：加边加影，避免直接贴在背景上 */
.shot,
.shot-main {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px -26px #0f172a4d;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.shot:hover,
.shot-main:hover {
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 26px 56px -28px #0f172a5c;
}

/* 邀请与联系：淡品牌底，和普通卡片区分开 */
.invite,
.contact {
  border: 1px solid #e6e2fb;
  border-radius: 18px;
  background:
    radial-gradient(700px 260px at 8% 0%, #7c3aed12, #0000 60%),
    linear-gradient(180deg, #fbfaff, #fff);
}

/* 章节标题统一节奏 */
section > .wrap > h2,
section h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* 键盘可达性：焦点环用品牌色，别用浏览器默认的蓝框 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--b1);
  outline-offset: 3px;
  border-radius: 12px;
}

/* 尊重系统的减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  .card,
  .mode,
  .step,
  .shot,
  .shot-main,
  .btn {
    transition: none;
  }

  .card:hover,
  .mode:hover,
  .step:hover,
  .shot:hover,
  .shot-main:hover,
  .btn-primary:hover {
    transform: none;
  }
}


/* ══ 新首页补充：旧版没有的几个类 ══════════════════════════════ */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13.5px;
}

.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.hero .meta,
.meta {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 12px;
}

.hero {
  text-align: center;
}

.hero .badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 22px;
  font-size: 12.5px;
}

.hero .shot-main {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 44px auto 0;
}

section {
  padding-block: clamp(40px, 6vw, 72px);
}

section h2 {
  text-align: center;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card,
.mode {
  padding: 22px 20px;
}

.card h3,
.mode h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
}

.card p,
.mode p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.invite {
  padding: 36px 28px;
  text-align: center;
}

.invite h2 {
  margin-bottom: 10px;
}

.invite > p {
  max-width: 52ch;
  margin: 0 auto;
  color: #64748b;
  line-height: 1.8;
}

.invite .cta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.qr-box {
  margin-top: 26px;
}

.qr-box img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 10px;
  border: 1px solid var(--line, #e9edf5);
  border-radius: 12px;
  background: #fff;
}

.doc {
  display: block;
  padding-block: 26px;
  text-align: center;
  border-radius: 0;
  border: 0;
  border-top: 1px solid #eef1f7;
  background: #0000;
  box-shadow: none;
  color: #94a3b8;
  font-size: 13px;
}

.doc a {
  color: #94a3b8;
  margin-left: 16px;
  text-decoration: none;
}

.doc a:hover {
  color: var(--b1, #7c3aed);
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}
