:root {
  color-scheme: light;
  --accent: #07c160;
  --green: #087343;
  --ink: #17241d;
  --muted: #52635a;
  --line: #dce5df;
  --mint: #eff9f3;
  font: 100%/1.5 Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner {
  max-width: 74rem; margin-inline: auto; padding: .8rem clamp(.8rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.site {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; color: var(--ink); text-decoration: none;
  font-size: 1.05rem; font-weight: 720; letter-spacing: -.04em;
}
.mark { width: 1.95rem; height: 1.95rem; flex: none; }
.language { position: relative; display: inline-flex; align-items: center; }
.language .icon { position: absolute; left: .65rem; width: 1rem; pointer-events: none; }
.language::after {
  content: ""; position: absolute; right: .8rem; width: .36rem; height: .36rem;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); pointer-events: none;
}
select {
  appearance: none; font: inherit; font-size: .82rem; font-weight: 580;
  min-height: 44px; max-width: 100%; padding: .45rem 1.7rem .45rem 2.05rem;
  border: 1px solid var(--line); border-radius: .75rem; background: #fff;
  cursor: pointer; color: var(--ink);
}
main {
  width: min(100% - 2rem, 61rem); margin: clamp(2rem, 6vw, 5rem) auto;
  display: grid; grid-template-areas: "intro" "code" "guide"; gap: 1.65rem;
  align-items: start;
}
.intro { grid-area: intro; }
.identity { display: flex; gap: .55rem; align-items: center; color: var(--muted); font-size: .9rem; }
.identity strong { color: var(--ink); font-weight: 675; }
.flag {
  width: 1.15rem; height: .82rem; border-radius: 2px;
  background: linear-gradient(#ae2539 0 33.333%, white 33.333% 66.667%, #24477d 66.667%);
  box-shadow: inset 0 0 0 1px #0001;
}
.dot { width: 3px; height: 3px; background: #728078; border-radius: 50%; }
h1 { font-size: clamp(2.25rem, 7vw, 3.6rem); line-height: 1.05; letter-spacing: -.055em; margin: .9rem 0 .75rem; text-wrap: balance; }
h1 em { font-style: normal; color: var(--green); }
:lang(zh) h1 { letter-spacing: -.035em; line-height: 1.18; }
.lead { max-width: 34ch; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.55; margin: 0; }
.code {
  grid-area: code; justify-self: center; width: min(100%, 24rem); margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 1.15rem;
  padding: .65rem; box-shadow: 0 8px 32px rgb(23 60 39 / 8%), 0 1px 3px rgb(23 60 39 / 5%);
}
.qr { display: block; width: 100%; height: auto; }
.actions { margin: .55rem .35rem .35rem; }
.save {
  display: flex; gap: .6rem; align-items: center; justify-content: center;
  min-height: 46px; padding: .6rem .8rem; border-radius: .65rem; background: var(--mint);
  color: var(--green); font-weight: 675; font-size: .95rem; text-decoration: none;
}
.save:hover { background: #e2f5e9; }
.guide { grid-area: guide; border-top: 1px solid var(--line); padding-top: 1.45rem; }
.instruction { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.instruction + .instruction { margin-top: 1.25rem; }
.glyph {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid #d6ecdf; border-radius: .78rem;
  color: var(--green); background: var(--mint);
}
.instruction h2 { margin: 0 0 .2rem; font-size: 1.02rem; line-height: 1.45; }
.instruction p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .95rem; }
@media (min-width: 44rem) {
  main {
    width: min(100% - 5rem, 61rem);
    grid-template-areas: "intro code" "guide code";
    grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr; column-gap: clamp(2.25rem, 7vw, 6rem); row-gap: 1.8rem;
  }
  .intro { align-self: end; }
  .code { align-self: center; }
  h1 { margin-top: 1.15rem; }
  h1 em { display: block; }
}
@media (max-width: 23rem) {
  .masthead-inner { flex-wrap: wrap; }
  .site { gap: .35rem; font-size: 1rem; }
  .mark { width: 1.65rem; height: 1.65rem; }
}
@media (forced-colors: active) {
  select { appearance: auto; padding-right: .4rem; }
  .language::after { display: none; }
  .save { border: 1px solid LinkText; }
}
