:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #152822;
  background: #f8faf8;
  --ink: #152822;
  --muted: #50635a;
  --line: #d7e1db;
  --accent: #17543c;
  --tint: #e6efe9;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { min-height: 100dvh; margin: 0; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #267956; outline-offset: 4px; }

.wrap { width: min(100% - 80px, 1184px); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; min-height: 72px; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mark { position: relative; display: block; width: 27px; height: 30px; border-radius: 7px; background: var(--accent); }
.mark::before { position: absolute; inset: 6px 8px; border: 1.5px solid #fff; border-radius: 3px; content: ''; }
.mark::after { position: absolute; bottom: 9px; left: 12px; width: 3px; height: 1px; background: #fff; content: ''; }
nav { display: flex; gap: clamp(14px, 4vw, 32px); color: var(--muted); font-size: .875rem; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding: 56px 0 48px; }
.hero:has(.scan[hidden]) { grid-template-columns: minmax(0, 640px); }
.platform { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px; }
h1 { font-size: clamp(2.3rem, 4.4vw, 4.25rem); line-height: 1.13; letter-spacing: -.055em; }
h1 span { white-space: nowrap; }
.lead { max-width: 25em; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.75; }
.actions, .result { margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-weight: 650; font-size: .9375rem; white-space: nowrap; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #113e2c; }
.text-button { display: inline-flex; align-items: center; min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: .9375rem; font-weight: 600; }
.feedback { color: var(--muted); line-height: 1.65; font-size: .875rem; }
.feedback:not(:empty) { margin-top: 10px; }
.text-input { display: block; width: 100%; min-height: 46px; min-width: 0; margin-top: 10px; border: 1px solid #9caf9f; border-radius: var(--radius); padding: 8px 12px; background: #fff; color: var(--ink); }
.result { border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); background: #eef4ef; }
.result label { font-weight: 650; }
.identifier { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(.75rem, 1.6vw, 1rem); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; }
.clipboard-proxy { position: fixed; left: -9999px; top: 0; }

.scan { position: relative; isolation: isolate; min-height: 366px; display: flex; align-items: center; overflow: hidden; border-radius: 24px; background: var(--tint); }
.devices { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scan::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #e3eee7 4%, #e3eee7e6 24%, #e3eee700 67%); content: ''; }
.scan-content { margin: 28px 0 28px clamp(22px, 3.2vw, 46px); }
.scan h2 { font-size: 1.375rem; letter-spacing: -.025em; }
.scan p { margin-top: 4px; color: #3d574b; font-size: .875rem; line-height: 1.55; }
.qr-frame { width: fit-content; margin-top: 16px; padding: 4px; border: 1px solid #cddbd1; border-radius: var(--radius); background: #fff; }
.qr-frame img { display: block; max-width: 100%; object-fit: contain; border-radius: 8px; }
.scan .preview-note { margin-top: 9px; }

.guide { border-top: 1px solid var(--line); padding: 30px 0 44px; }
.guide h2, .faq h2 { font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -.035em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; }
.steps li { display: flex; align-items: flex-start; gap: 13px; counter-increment: step; }
.steps li + li { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(16px, 2.5vw, 34px); }
.steps li:not(:last-child) { padding-inline-end: clamp(16px, 2.5vw, 34px); }
.steps li::before { content: counter(step); flex: 0 0 32px; display: grid; place-items: center; height: 32px; border: 1px solid #cadfd0; border-radius: 9px; background: var(--tint); color: var(--accent); font: 650 .875rem/1 ui-monospace, monospace; }
.steps h3 { font-size: 1rem; margin: 4px 0 5px; }
.steps p, .questions p { color: var(--muted); font-size: .9375rem; line-height: 1.75; }

.faq { display: grid; grid-template-columns: minmax(140px, .36fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 32px 0 42px; border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:last-child { border-bottom: 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 50px; padding: 10px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { flex: none; content: '+'; color: var(--accent); font-size: 1.375rem; font-weight: 400; }
details[open] summary::after { content: '−'; }
.questions p { padding: 0 24px 14px 0; }
.site-footer { padding: 17px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 810px) {
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 26px; padding: 40px 0 36px; }
  .scan { min-height: 330px; }
  .qr-frame img { width: 142px; height: 142px; }
}

@media (max-width: 640px) {
  .bar { min-height: 60px; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; padding-top: 34px; }
  .lead { max-width: none; margin-top: 12px; font-size: 1rem; }
  .actions, .result { margin-top: 22px; }
  .scan { min-height: 284px; border-radius: 18px; }
  .devices { object-position: center 50%; }
  .scan-content { margin: 22px; }
  .guide, .faq { padding: 25px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 19px; }
  .steps li + li, .steps li:not(:last-child) { padding: 0; border: 0; }
  .faq { grid-template-columns: 1fr; gap: 8px; }
}
