/* 首页 / 落地页样式：与查询页、后台各自独立，互不影响 */
:root {
  --brand: #2563eb;
  --brand2: #7c3aed;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --bg: #f5f7fb;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.glow-a { width: 520px; height: 520px; background: #bfdbfe; top: -180px; left: -140px; }
.glow-b { width: 460px; height: 460px; background: #ddd6fe; top: 240px; right: -180px; }

/* ------------------------------ 顶部导航 ------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 5vw, 48px);
  background: rgba(245, 247, 251, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.badge {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  overflow: hidden; line-height: 1; white-space: nowrap;
}
.brand-name { font-size: 15px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav .link { display: none; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.topnav .link:hover { background: #e8eefc; color: var(--brand); }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .65); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .75); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: #c7d2fe; color: var(--brand); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); height: 38px; font-size: 14px; }

/* ------------------------------ 布局 ------------------------------ */
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px) 56px; }

/* ------------------------------ Hero ------------------------------ */
.hero { padding: clamp(36px, 8vw, 76px) 0 24px; text-align: center; }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #e8eefc; color: #1d4ed8; font-size: 12px; font-weight: 600; letter-spacing: .3px;
}
.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(26px, 5.4vw, 44px);
  line-height: 1.22; letter-spacing: -.5px;
  background: linear-gradient(120deg, #1e3a8a, #4f46e5 55%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro { margin: 0 auto; max-width: 640px; color: var(--ink-2); font-size: clamp(14px, 3.4vw, 16px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 8px; }
.cta .btn { min-width: 168px; }

.stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); margin: 34px 0 0; }
.stats > div { text-align: center; }
.stats dt { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.stats dd { margin: 2px 0 0; font-size: clamp(20px, 5vw, 26px); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------ 区块标题 ------------------------------ */
.sec-head { margin: 56px 0 18px; }
.sec-head h2 { margin: 0 0 6px; font-size: clamp(19px, 4.4vw, 24px); letter-spacing: -.2px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------ 查询入口 ------------------------------ */
.page-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.page-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.page-card:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 16px 30px -22px rgba(37, 99, 235, .55); }
.page-card .pc-head { display: flex; align-items: center; gap: 10px; }
.pc-badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px; flex: none;
}
.pc-name { margin: 0; font-size: 15px; font-weight: 700; }
.pc-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.pc-meta { font-size: 12px; color: var(--muted); }
.pc-go { font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.pc-go:hover { text-decoration: underline; }
.page-empty {
  grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px;
}

/* ------------------------------ 功能 ------------------------------ */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature .fi {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px;
  border-radius: 10px; background: #eef2ff; color: var(--brand); font-size: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ------------------------------ 流程 ------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps .n {
  display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px;
  border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  font-size: 13px; font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ------------------------------ 联系 ------------------------------ */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding: 22px;
  background: linear-gradient(135deg, #1e3a8a, #4f46e5 60%, #6d28d9);
  border-radius: 20px; color: #fff;
}
.contact h2 { margin: 0 0 4px; font-size: 19px; }
.contact p { margin: 0; color: #dbeafe; font-size: 14px; }
.contact .btn-primary { background: #fff; color: #1e3a8a; box-shadow: none; }

/* ------------------------------ 页脚 ------------------------------ */
.footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer .meta a { color: var(--brand); text-decoration: none; }

/* ------------------------------ 响应式 ------------------------------ */
@media (min-width: 720px) {
  .topnav .link { display: inline-block; }
}
@media (max-width: 620px) {
  .glow { display: none; }
  .topbar { padding: 10px 14px; }
  .brand-name { font-size: 14px; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }
  .stats { gap: 18px; }
  .contact { padding: 18px; }
  .contact .btn { width: 100%; }
  .sec-head { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .page-card:hover { transform: none; }
}
