/* NFC 写入面板（nfc- 前缀，自带样式变量，可独立引入） */
.nfc-ov { --nb: #1677ff; --nt: #1f2329; --nm: #6b7280; --nl: #e5e7eb; --nc: #fff; --nf: #f3f5f8; --nok: #52c41a; --ne: #f5222d;
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.nfc-ov.nfc-in { background: rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: dark) { .nfc-ov { --nt: #e8eaed; --nm: #9aa0a6; --nl: #2c3138; --nc: #1a1d21; --nf: #262a30; } }
.nfc-ov, .nfc-ov * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.nfc-sheet { width: 100%; max-width: 520px; background: var(--nc); color: var(--nt); border-radius: 22px 22px 0 0; padding: 8px 20px calc(env(safe-area-inset-bottom) + 20px); transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); max-height: 92dvh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
.nfc-in .nfc-sheet { transform: none; }
.nfc-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--nl); margin: 0 auto 8px; }
.nfc-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nfc-title { margin: 0; font-size: 18px; line-height: 44px; }
.nfc-x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--nm); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 22px; }
.nfc-art { display: flex; justify-content: center; margin: 4px 0 0; }
.nfc-art svg { max-width: 100%; height: auto; }
.nfc-ph { fill: var(--nf); stroke: var(--nm); stroke-width: 2.5; }
.nfc-cam { fill: none; stroke: var(--nm); stroke-width: 2; opacity: .6; }
.nfc-st { fill: var(--nb); }
.nfc-stp { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nfc-w { fill: none; stroke: var(--nb); stroke-width: 3.5; stroke-linecap: round; opacity: .25; }
[data-state="idle"] .nfc-w1, [data-state="busy"] .nfc-w1 { animation: nfc-wave 1.6s ease-in-out infinite; }
[data-state="idle"] .nfc-w2, [data-state="busy"] .nfc-w2 { animation: nfc-wave 1.6s .35s ease-in-out infinite; }
[data-state="ok"] .nfc-w { stroke: var(--nok); opacity: .8; }
[data-state="err"] .nfc-w { stroke: var(--ne); opacity: .6; }
@keyframes nfc-wave { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .nfc-w { animation: none !important; opacity: .6; } .nfc-sheet { transition: none; } }
.nfc-qr { margin-top: 8px; }
.nfc-qrbox { background: #fff; border-radius: 14px; padding: 8px; width: 168px; height: 168px; }
.nfc-qrbox svg { width: 100%; height: 100%; display: block; }
.nfc-state { min-height: 26px; margin: 8px 0 0; text-align: center; font-size: 17px; font-weight: 700; }
.nfc-state:empty { display: none; }
.nfc-state.busy { color: var(--nb); }
.nfc-state.ok { color: var(--nok); }
.nfc-state.err { color: var(--ne); }
.nfc-state.unsupported { color: #d46b08; }
.nfc-info { margin: 8px 0 0; text-align: center; color: var(--nm); font-size: 14px; line-height: 1.6; }
.nfc-url { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--nf); color: var(--nm); font-size: 12px; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; }
.nfc-url:empty { display: none; }
.nfc-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.nfc-btn { font: inherit; font-size: 16px; min-height: 48px; border-radius: 12px; border: 1px solid var(--nl); background: var(--nc); color: var(--nt); cursor: pointer; padding: 0 16px; }
.nfc-btn:active { opacity: .7; }
.nfc-btn.primary { background: var(--nb); border-color: var(--nb); color: #fff; font-weight: 600; }
.nfc-tip { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--nm); text-align: center; }
