#modal{width:min(560px,calc(100vw - 18px));padding:0;max-height:88dvh;background:var(--sheet-bg,var(--surface-solid));color:var(--ink);border:var(--card-border);border-radius:var(--r);box-shadow:var(--card-shadow);overscroll-behavior:contain}#modal::backdrop{background:var(--scrim);backdrop-filter:blur(3px)}.modal-head,.modal-body,.modal-foot{padding:14px 18px}.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-foot{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:0;background:var(--sheet-bg,var(--surface-solid));border-top:1px solid var(--line)}.modal-body>*+*{margin-top:12px}.drawpad{width:100%;max-height:55dvh;object-fit:contain;display:block;touch-action:none;max-width:100%;height:auto;border-radius:8px}.drawpad:not(.signature){width:auto;max-height:52dvh;margin:auto}.signature{border:1px solid var(--line);background:white}.gate .card-b>*+*{margin-top:14px}.gate h2{font-family:var(--font-title,inherit)}#notice{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:99;padding:9px 16px;border-radius:12px;background:#243247;color:white;max-width:90vw;width:max-content;pointer-events:none}.demo-bar .btn{flex-shrink:0}.foot button{padding:4px}.trial-media{display:flex;gap:8px}.modal-body label{display:block}.trial-note{font-size:12px;color:var(--ink-2)}.trial-note a{color:var(--accent)}.gate a.btn{text-decoration:none}.busy-bar{cursor:progress}#app[data-ended] .grid{max-width:980px}
@media(max-width:759px){#modal{margin:auto auto max(6px,env(safe-area-inset-bottom));width:calc(100vw - 12px)}.demo-bar{flex-wrap:wrap}.demo-bar span{min-width:135px}.modal-body input,.modal-body select,.modal-body textarea{font-size:16px}}
/* 体验结束感谢页：仅作用于 #app[data-ended] 与 .thanks */
body:has(#app[data-ended]){background:linear-gradient(180deg,#fbe3c8 0,#fdeed9 38%,#fff6ea 100%) fixed}
#app[data-ended]{--ink:#3d2b20;--ink-2:rgba(61,43,32,.78);--ink-3:rgba(61,43,32,.58);--accent:#c8562e;--accent-ink:#fffaf2;--line:rgba(120,70,40,.18)}
.thanks{--tk-card:#fffaf2;width:100%;box-sizing:border-box;max-width:620px;margin:0 auto;grid-column:1/-1;display:grid;gap:18px;color:var(--ink);font-family:var(--font)}
.thanks .tk-hero{text-align:center;padding:6px 8px 0}
.thanks .tk-art{width:min(330px,86%);height:auto;display:block;margin:0 auto 6px}
.thanks h2{font-family:"Kaiti SC","STKaiti","KaiTi","楷体",var(--font-title,serif);font-size:clamp(30px,8.4vw,42px);font-weight:700;letter-spacing:.06em;line-height:1.3;margin:6px 0 10px;text-wrap:balance}
.thanks .tk-lead{margin:0;color:var(--ink-2);line-height:1.8}
.thanks .tk-note{position:relative;margin:10px 4px 4px;padding:30px 24px 20px;background:#fff3c9;border-radius:6px 6px 22px 6px;box-shadow:0 10px 24px rgba(160,90,40,.16),0 1px 0 rgba(255,255,255,.7) inset;transform:rotate(-.9deg);font-family:"Kaiti SC","STKaiti","KaiTi","楷体",var(--font-title,serif);font-size:18px;line-height:2}
.thanks .tk-note p{margin:0}.thanks .tk-note p+p{margin-top:2px}
.thanks .tk-tape{position:absolute;top:-12px;left:50%;width:84px;height:24px;margin-left:-42px;background:rgba(255,255,255,.55);border:1px solid rgba(160,90,40,.12);transform:rotate(2deg)}
.thanks .tk-part{white-space:nowrap}
.thanks .tk-n{font-size:1.35em;color:var(--accent);margin:0 .1em;font-weight:700}
.thanks .tk-sign{text-align:right;color:var(--ink-3);font-size:15px;margin-top:6px!important}
.thanks .tk-keep,.thanks .tk-after{background:var(--tk-card);border-radius:24px;padding:24px 22px;box-shadow:0 8px 28px rgba(160,90,40,.12)}
.thanks .tk-keep{text-align:center}
.thanks .tk-keep-t{margin:0 0 14px;font-size:16px}
.thanks .btn{border-radius:999px}
.thanks .tk-export{min-height:50px;padding:0 26px;font-size:16px;background:var(--accent);color:var(--accent-ink);border:0;box-shadow:0 6px 16px rgba(200,86,46,.3)}
.thanks .tk-hint{font-size:12.5px;line-height:1.7;color:var(--ink-3);margin:10px 0 0}
.thanks h3{font-family:"Kaiti SC","STKaiti","KaiTi","楷体",var(--font-title,serif);font-size:21px;margin:0 0 10px;letter-spacing:.04em}
.thanks .tk-after p{line-height:1.85;font-size:14.5px;color:var(--ink-2);margin:0 0 16px}.thanks .tk-after p.tk-hint{font-size:12.5px;color:var(--ink-3);margin:10px 0 0}
.thanks .tk-after b{color:var(--ink);white-space:nowrap}
.thanks .tk-ask{min-height:44px;padding:0 22px;background:transparent;border:1.5px solid var(--accent);color:var(--accent);box-shadow:none}
.thanks .tk-code{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line);font-size:13.5px}
.thanks .tk-code summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:var(--ink-2)}
.thanks .tk-code form{margin-top:10px;max-width:320px}
@media(min-width:860px){.thanks{max-width:720px;gap:22px}.thanks .tk-note{padding:36px 40px 24px;font-size:20px}.thanks .tk-keep,.thanks .tk-after{padding:30px 36px}}
@media(prefers-reduced-motion:no-preference){.thanks .tk-steam{animation:tk-steam 4s ease-in-out infinite}.thanks>*{animation:tk-in .6s ease both}.thanks>*:nth-child(2){animation-delay:.1s}.thanks>*:nth-child(3){animation-delay:.2s}.thanks>*:nth-child(4){animation-delay:.3s}}
@keyframes tk-in{from{opacity:0;transform:translateY(8px)}}
@keyframes tk-steam{50%{opacity:.25;transform:translateY(-3px)}}
#app[data-ended] .grid{max-width:none}

.qr-box{text-align:center}.qr-box img{display:block;width:min(240px,64vw);height:auto;margin:0 auto 10px;border-radius:12px}.qr-box .voucher{font-weight:600;letter-spacing:.06em;user-select:all}
