:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #1d2926; background: #f4f5f1; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 48px, 960px); margin: 64px auto 32px; }
.intro { margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #476359; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.camera-mark { width: 19px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.camera-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; top: 2.5px; left: 5px; }
h1 { margin: 14px 0 10px; font-size: clamp(30px, 5vw, 40px); letter-spacing: -1px; font-weight: 650; }
.intro p { margin: 0; font-size: 15px; color: #63716b; }
.input-panel { background: #fff; padding: 26px 28px 20px; border: 1px solid #e0e5de; border-radius: 16px; }
label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cbd4cb; border-radius: 8px; background: #fcfdfa; color: inherit; font: inherit; }
select:focus-visible { outline: 3px solid #c8dfd5; border-color: #235c45; }
.model-note { margin: 10px 0 22px; min-height: 18px; color: #64746a; font-size: 12px; line-height: 1.5; }
.input-row { display: flex; gap: 12px; }
input { min-width: 0; width: 100%; height: 52px; padding: 0 16px; border: 1px solid #cbd4cb; border-radius: 8px; font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; background: #fcfdfa; }
input::placeholder { color: #7d8881; font-size: 15px; }
input:focus-visible { outline: 3px solid #c8dfd5; border-color: #235c45; }
input[aria-invalid="true"] { border-color: #ac3931; }
button { flex-shrink: 0; padding: 0 26px; height: 52px; border: 0; border-radius: 8px; background: #235c45; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
button:hover { background: #194a36; }
button:disabled { background: #71877c; cursor: wait; }
a:focus-visible, button:focus-visible { outline: 3px solid #81b69e; outline-offset: 4px; }
.input-notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 13px; min-height: 18px; }
.input-notes p { margin: 0; color: #64746a; font-size: 12px; line-height: 1.5; }
.input-notes .error { color: #a3312c; }
.model-request { border-top: 1px solid #e0e5de; margin-top: 16px; padding-top: 14px; }
.model-request label { margin: 0 0 6px; }
.request-row { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.request-row input { height: 38px; padding: 0 10px; font-size: 16px; }
.request-row input::placeholder { font-size: 13px; }
.request-row button { height: 38px; width: auto; padding: 0 12px; background: #e9f1eb; color: #235c45; font-size: 13px; }
.request-row button:hover { background: #dbe9de; }
.model-request p { margin: 6px 0 0; color: #64746a; font-size: 12px; line-height: 1.5; }
progress { display: block; height: 5px; width: 100%; margin-top: 15px; accent-color: #235c45; border: 0; border-radius: 9px; }
.results-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 16px; }
h2 { margin: 0; color: #64746a; font-size: 13px; font-weight: 400; }
#result-serial { margin-left: 7px; color: #273a30; font-weight: 600; letter-spacing: .5px; word-break: break-all; }
.download-all { display: inline-flex; align-items: center; gap: 8px; color: #235c45; text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 0; }
.zip-label { font-size: 10px; font-weight: 500; padding: 2px 5px; background: #e3e9e0; border-radius: 3px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qr-card { overflow: hidden; border: 1px solid #e0e5de; border-radius: 14px; background: #fff; text-align: center; padding: 19px 12px 12px; }
h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.scan-hint { margin: -4px 0 16px; color: #64746a; font-size: 12px; }
.qr-preview, .qr-preview:hover { display: block; width: 100%; height: auto; padding: 0; border-radius: 0; background: #fff; cursor: zoom-in; }
.qr-viewer-open { overflow: hidden; }
.qr-viewer { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border: 0; background: #fff; color: #1d2926; overflow: hidden; }
.qr-viewer[open] { display: flex; flex-direction: column; gap: 8px; }
.qr-viewer::backdrop { background: #fff; }
.qr-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex-shrink: 0; }
.qr-viewer-label { min-width: 0; }
.qr-viewer-label h2 { color: #1d2926; font-size: 16px; font-weight: 600; }
.qr-viewer-label p { margin: 4px 0 0; color: #64746a; font-size: 12px; overflow-wrap: anywhere; }
.qr-viewer-close { width: auto; height: 44px; padding: 0 16px; border: 1px solid #cbd4cb; background: #f4f5f1; color: #235c45; }
.qr-viewer-close:hover { background: #e3e9e0; }
.qr-viewer-stage { display: grid; place-items: center; flex: 1; min-height: 0; min-width: 0; }
#qr-viewer-canvas { width: 45px; height: 45px; max-width: 100%; max-height: 100%; flex-shrink: 0; }
.save-link { display: block; color: #4d6559; padding: 12px 4px 9px; font-size: 12px; text-decoration: none; }
.save-link:hover, .download-all:hover { color: #122e21; text-decoration: underline; }
footer { margin-top: 28px; color: #738076; font-size: 11px; text-align: center; }
footer span { margin: 0 6px; }
noscript { display: block; padding: 20px 0; color: #a3312c; }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } main { margin-top: 40px; } }
@media (max-width: 480px) { main { width: calc(100% - 32px); margin-top: 32px; } .intro { margin-bottom: 24px; } .input-panel { padding: 20px 18px 17px; } .input-row { flex-direction: column; } button { width: 100%; } .cards { grid-template-columns: 1fr; } .qr-card { padding: 24px 28px 14px; } .qr-card canvas { max-width: 320px; margin: auto; } h3 { font-size: 17px; } .save-link { font-size: 14px; } }
