/* 错题重做卷 · ICP 备案静态站
   零外部依赖：系统字体栈 + 内联 SVG，无任何 CDN 引用，保证大陆访问完整渲染。
   尺寸只取 Tailwind 刻度，间距只取 2/4/8/12/16/24/32/40/48/64/80/96。 */

:root {
  --ink: #000000;
  --body: #444444;
  --muted: #737373;
  --line: #e5e5e5;
  --soft: #f6f6f6;
  --accent: #1e40af;
  --accent-strong: #1e3a8a;
  --accent-soft: #c7d2fe;
  --dark: #181818;
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  background: #ffffff;
  text-wrap: pretty;
}

h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 浮动导航 ---------- */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}
.nav .brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
}
.nav-links a { color: var(--body); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.btn-sm {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-sm:hover { background: var(--accent-strong); text-decoration: none; }
.btn-sm:active { transform: scale(0.98); }

/* ---------- 分节 ---------- */

section { padding-block: 64px; }
.section-alt { background: var(--soft); }

.kicker {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

h2.section-title {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.section-lead {
  max-width: 680px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 48px 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0.01em;
  max-width: 680px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #000000 30%, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 680px;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- 卡片网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.card .icon {
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- 深色方案条 ---------- */

.solution {
  margin-top: 32px;
  padding: 32px;
  border-radius: 16px;
  background: var(--dark);
  color: #d4d4d4;
}
.solution .kicker { color: var(--accent-soft); }
.solution p {
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
  max-width: 760px;
}

/* ---------- 流程 ---------- */

.step { position: relative; padding-top: 8px; }
.step .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- 标语大字 ---------- */

.tagline { text-align: center; }
.tagline .tag {
  max-width: 680px;
  margin-inline: auto;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--ink);
}
.tagline .tag span {
  opacity: 0.3;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tagline .tag.on span { opacity: 1; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
details {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  line-height: 24px;
  color: var(--muted);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
details[open] summary::after { transform: rotate(45deg); }
details .answer {
  padding-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- 联系 ---------- */

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 16px;
  background: var(--soft);
  margin-top: 32px;
}
.contact-panel p { font-size: 14px; line-height: 20px; color: var(--muted); }
.qr-slot {
  justify-self: center;
  width: 160px;
  height: 160px;
  border: 1.5px dashed #d4d4d4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  background: #ffffff;
}

/* ---------- 页脚 ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding-block: 40px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
footer .foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
footer .foot-links a { color: var(--body); }
footer .beian a { color: var(--body); }
footer p + p { margin-top: 8px; }

/* ---------- 内页（隐私 / 协议 / 404） ---------- */

.page-head {
  padding-block: 96px 24px;
}
.page-head h1 {
  font-size: 36px;
  line-height: 40px;
  margin-bottom: 12px;
}
.page-body {
  padding-block: 24px 96px;
  max-width: 760px;
}
.page-body h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 32px 0 8px;
}
.page-body p, .page-body li {
  font-size: 14px;
  line-height: 24px;
  color: var(--body);
}
.page-body ul { padding-left: 20px; margin: 8px 0; }

.notfound {
  padding-block: 96px;
  text-align: center;
}
.notfound .code {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ---------- 入场动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .tagline .tag span { transition: none; opacity: 1; }
  summary::after { transition: none; }
  .btn, .btn-sm, .card { transition: none; }
}

/* ---------- ≥768px ---------- */

@media (min-width: 768px) {
  section { padding-block: 96px; }
  .hero { padding-block: 64px 96px; }

  h2.section-title { font-size: 36px; line-height: 40px; }
  .hero h1 { font-size: 48px; line-height: 48px; }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .tagline .tag { font-size: 48px; line-height: 48px; }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .contact-panel { grid-template-columns: 1fr auto; padding: 48px; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
}
