/* 王十一的网页名片（/wang/，由 deltaecho-miniprogram/scripts/build-card.mjs 生成）：微信外的人和 NFC 卡的落地页，支持 05A–05F 六种正装风格切换。 */
:root {
  --page: #0c1015; --fg: #f1f3f6; --fg-2: rgb(241 243 246 / 0.72); --fg-3: rgb(241 243 246 / 0.48);
  --line: rgb(255 255 255 / 0.09); --surface: rgb(255 255 255 / 0.035); --surface-2: rgb(255 255 255 / 0.065);
  --sheet: #171b22; --accent: #cfd6e0; --danger: #ff7a7a;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; color: var(--fg); font: 15px/1.6 -apple-system, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(128deg, rgb(212 222 235 / 0.065) 0%, rgb(212 222 235 / 0.018) 34%, transparent 62%),
    radial-gradient(ellipse 90% 34% at 50% 6%, rgb(190 204 222 / 0.08), transparent 72%),
    var(--page);
}
[hidden] { display: none !important; }
a { color: inherit; }
.w { width: min(100%, 500px); margin: 0 auto; padding: 20px 20px 0; }
.art {
  display: block; width: 100%; height: auto; border-radius: 5px;
  box-shadow: 0 22px 54px -20px rgb(0 0 0 / 0.9), 0 4px 12px rgb(0 0 0 / 0.6), 0 -1px 0 rgb(255 255 255 / 0.14);
}
.styles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px;
}
.style-btn {
  height: 32px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-3);
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.style-btn[aria-selected="true"] {
  background: rgb(220 226 234 / 0.15); border-color: rgb(224 230 238 / 0.48); color: var(--fg); font-weight: 600;
}
.en-id { display: none; margin-top: 14px; color: var(--fg-2); font-size: 14px; }
html[lang=en] .en-id { display: block; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--fg); background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease; }
.btn:active { transform: scale(0.98); opacity: 0.92; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.titan {
  min-height: 48px; margin-top: 14px; border: 0; border-radius: 9px; color: #0d1117;
  background: linear-gradient(180deg, #e3e7ed 0%, #cfd5de 100%);
  font-size: 16px; font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.72), 0 10px 26px -14px rgb(0 0 0 / 0.75);
}
.titan-sm { border: 0; color: #0d1117; background: linear-gradient(180deg, #e3e7ed 0%, #cfd5de 100%); font-weight: 600; }
.acts { display: flex; gap: 8px; margin-top: 8px; }
.acts .btn { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.facts li { padding: 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.facts b { display: block; font-size: 21px; font-weight: 600; line-height: 1.2; }
.facts span { display: block; margin-top: 4px; color: var(--fg-3); font-size: 12px; line-height: 1.5; }
.rows { margin-top: 20px; padding: 0 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rows div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border: 0; }
.rows dt { color: var(--fg-3); font-size: 12px; }
.rows dd { font-weight: 500; overflow-wrap: anywhere; }
.rows a { text-decoration: none; }
.foot { padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); color: var(--fg-3); font-size: 12px; text-align: center; }
.foot a { color: inherit; text-decoration: none; }
.foot img { vertical-align: -2px; margin-right: 3px; }
.box { width: min(calc(100vw - 32px), 400px); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--fg); background: var(--sheet); box-shadow: 0 28px 80px -24px rgb(0 0 0 / 0.85); }
.box::backdrop { background: rgb(4 5 7 / 0.68); }
.qr-box img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.qr-box form { margin-top: 14px; }
.box h2 { font-size: 19px; line-height: 1.3; }
.sub { color: var(--fg-3); font-size: 13px; }
.box label { display: block; margin-top: 14px; color: var(--fg-2); font-size: 13px; }
.box input, .box textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); background: var(--surface); font-family: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.box input:focus, .box textarea:focus { outline: 0; border-color: var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.box-acts { display: flex; gap: 8px; margin-top: 6px; }
.box-acts .btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .btn, .style-btn { transition: none; } }
