:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #111827;
  --button-ink: #ffffff;
  --header-bg: rgba(246, 247, 249, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 72px 0 calc(120px + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--bg);
  font-family: "Times New Roman", Georgia, "Songti SC", "Microsoft YaHei", serif;
}

button {
  font: inherit;
  cursor: pointer;
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 18px;
}

header img {
  width: 52px;
}

header button,
.hero button,
.bottom button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--button-ink);
  background: var(--accent);
  font-weight: 900;
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
}

.hero {
  padding: 52px 20px 26px;
}

.hero > span {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;
  min-height: 2.04em;
  font-size: clamp(42px, 12vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 500;
}

.type-cursor {
  display: inline-block;
  width: 0.07em;
  height: 0.78em;
  margin-left: 0.06em;
  transform: translateY(0.08em);
  background: var(--ink);
  animation: cursor-blink 0.9s steps(1) infinite;
}

.type-cursor.is-done {
  opacity: 0;
  animation: none;
}

.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 16px;
}

.cards article,
.section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.cards article {
  padding: 18px;
}

.cards small {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.cards strong {
  display: block;
  margin: 10px 0;
  font-size: 38px;
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
}

.cards p,
.section span,
.section p {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin: 12px 16px;
  padding: 22px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
}

.section ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.section li {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.section b {
  font-size: 18px;
}

.compact p {
  font-size: 17px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.bottom {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 18;
}

.bottom button {
  width: 100%;
  min-height: 54px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.shade {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.46);
}

.dialog {
  position: relative;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--panel);
  text-align: center;
}

.dialog > button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 26px;
}

.dialog h2 {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 500;
}

.qr-image {
  width: 170px;
  height: 170px;
  display: block;
  margin: 18px auto;
  border: 8px solid #fff;
  object-fit: contain;
  background: #fff;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 760px) {
  body {
    padding-bottom: 56px;
  }

  main {
    width: 720px;
    margin: 0 auto;
  }

  .header-inner {
    width: 720px;
    padding: 0 20px;
    margin: 0 auto;
  }

  .bottom {
    display: none;
  }
}
