:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #192b31;
  background: #eef3f5;
  --muted: #566971;
  --teal: #087768;
  --line: #d9e2e5;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { touch-action: manipulation; touch-action: pan-x pan-y; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #168c82; outline-offset: 4px; }
h1:focus:not(:focus-visible) { outline: none; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar a, .plain { text-decoration: none; }
.bar > a:last-of-type, #nav-help { font-size: .88rem; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; }
.mark { position: relative; width: 28px; height: 32px; border-radius: 8px; background: var(--teal); }
.mark::before { content: ""; position: absolute; inset: 6px 8px; border: 1.5px solid white; border-radius: 3px; }
.mark::after { content: ""; position: absolute; width: 4px; height: 1.5px; left: 12px; bottom: 9px; background: white; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
main { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.intro { padding: clamp(30px, 5vw, 64px); align-self: center; min-width: 0; }
h1 { font-size: clamp(2rem, 3.7vw, 3.45rem); line-height: 1.2; letter-spacing: -.04em; }
.intro h1 span { color: var(--teal); }
.lead { color: var(--muted); font-size: 1.04rem; line-height: 1.75; margin-top: 14px; }
#desktop-actions, #mobile-actions { margin-top: 24px; }
.disclosure, .feedback, .retention { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.disclosure { margin-top: 14px; }
.feedback:not(:empty) { margin-top: 12px; }
.button { border: 1px solid transparent; border-radius: 11px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; font-weight: 650; font-size: 1rem; text-decoration: none; }
.primary { color: #fff; background: var(--teal); }
.primary:hover { background: #07665b; }
.secondary { color: var(--teal); border-color: #b5d6cf; background: #f2f9f7; }
.plain { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 4px 0; color: var(--teal); background: transparent; font-size: .95rem; font-weight: 550; }
.plain:hover, .bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wide { width: 100%; }
#scan { position: relative; min-height: 328px; background: #dfeae4; display: grid; align-items: center; justify-items: start; padding: 32px; isolation: isolate; }
.devices { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.qr-card { padding: 12px 12px 10px; border-radius: 14px; background: white; box-shadow: 0 5px 26px #244e3619; text-align: center; }
.qr-card img { display: block; width: 150px; height: 150px; margin: 0 auto; }
.qr-card figcaption { padding-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 550; }
.guide { margin: 34px 0; }
h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 1px 8px 0 42px; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 29px; height: 29px; background: #d9ede8; color: #14685c; border-radius: 50%; font-size: .84rem; font-weight: 700; }
.steps h3 { font-size: 1.02rem; line-height: 1.55; }
.steps p, details p { margin-top: 5px; font-size: .925rem; line-height: 1.7; color: var(--muted); }
.help { padding: 22px 28px 10px; scroll-margin: 14px; }
.help h2 { margin-bottom: 10px; }
details + details { border-top: 1px solid var(--line); }
summary { padding: 16px 0; cursor: pointer; font-weight: 550; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); }
details[open] summary::after { content: "−"; }
details p { margin: -3px 0 16px; }
.narrow { max-width: 510px; margin: 0 auto; }
.heading { text-align: center; padding: 20px 0 25px; }
.heading h1 { font-size: clamp(1.65rem, 4vw, 2.12rem); }
.heading .lead { margin-top: 8px; font-size: 1rem; }
.state-card, .result-card { padding: 26px; }
.vertical { grid-template-columns: 1fr; gap: 20px; margin: 0 0 24px; }
#retry { display: flex; }
.fields { display: grid; gap: 20px; margin: 0 0 26px; }
.fields dt { margin-bottom: 8px; font-size: .9rem; color: var(--muted); }
.value { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 2px 4px 2px 14px; background: #f1f3f5; border-radius: 9px; }
.value span { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 620; line-height: 1.5; }
.value .absent { color: var(--muted); font-weight: 400; }
.field-copy { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: #596e77; }
.field-copy:hover { color: var(--teal); background: #e1ecea; }
.copy-icon { width: 18px; height: 19px; display: inline-block; position: relative; flex: none; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; width: 12px; height: 14px; border: 1.6px solid currentColor; border-radius: 2px; }
.copy-icon::before { left: 1px; top: 1px; clip-path: polygon(0 0,100% 0,100% 20%,22% 20%,22% 100%,0 100%); }
.copy-icon::after { left: 5px; top: 5px; }
.share-actions { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; }
.retention { text-align: center; margin-top: 14px; }
.manual { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #fff; }
.clipboard-proxy { position: fixed; left: -9999px; top: 0; }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 54px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .intro { padding: 26px 22px; }
  #scan { min-height: 215px; padding: 20px; }
  .qr-card img { width: 118px; height: 118px; }
  .guide { margin: 25px 4px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .help, .state-card, .result-card { padding: 20px; }
  .help { padding-bottom: 6px; }
  .heading { padding: 15px 0 20px; }
  .fields { gap: 18px; }
  #mobile-actions .button { width: 100%; }
}
body.handheld .hero { display: block; }
body.handheld .intro { max-width: 600px; margin: auto; }

.install-scan { display: grid; justify-items: center; gap: 6px; margin-top: 18px; }
.install-scan img { display: block; max-width: 100%; height: auto; }
.install-scan figcaption { color: var(--muted); font-size: .86rem; text-align: center; }
