.wx-card { box-sizing:border-box; max-width:720px; background:#fff; color:#1f2937; border:1px solid #e5e7eb; border-radius:12px; padding:24px; margin-bottom:20px; font:14px/1.7 system-ui,-apple-system,"Microsoft YaHei",sans-serif; }
.wx-card h1 { font-size:24px; margin:0 0 12px; }
.wx-card h2 { font-size:18px; margin:0 0 12px; }
.wx-card p { margin:8px 0; }
.wx-muted { color:#64748b; font-size:13px; }
.wx-notice { background:#f1f5f9; border-radius:8px; padding:12px; }
.wx-button { border:0; border-radius:7px; background:#16834b; color:white; font:inherit; cursor:pointer; padding:9px 18px; margin:8px 8px 8px 0; }
.wx-button:disabled { opacity:.5; cursor:default; }
.wx-card [hidden], .wx-widget [hidden] { display:none !important; }
.wx-setting { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:18px 0; }
.wx-setting input[type=checkbox] { appearance:auto; width:20px; height:20px; margin:0; accent-color:#16834b; }
.wx-setting input[type=number] { box-sizing:border-box; background:#fff; color:#1f2937; border:1px solid #cbd5e1; border-radius:6px; height:36px; width:130px; padding:0 8px; }
.wx-setting label { display:flex; align-items:center; gap:10px; color:#1f2937; margin:0; font:inherit; }
.wx-widget { color:#1f2937; font:14px/1.7 system-ui,-apple-system,"Microsoft YaHei",sans-serif; }
.wx-widget img { display:block; width:220px; max-width:100%; height:auto; padding:8px; background:white; margin:12px auto; border:1px solid #e2e8f0; }
.wx-widget [role=status] { white-space:pre-wrap; margin:8px 0; }
.wx-error { color:#b42318; }
.wx-theme-dark .wx-card { max-width:none; background:#2a2d3a; color:#fff; border-color:#333; box-shadow:0 4px 16px rgba(0,0,0,.2); }
.wx-theme-dark .wx-card h2 { color:#6cf0d2; font-size:16px; margin-bottom:20px; }
.wx-theme-dark .wx-widget, .wx-theme-dark .wx-setting label { color:#cfd3e0; }
.wx-theme-dark .wx-notice { background:#202431; border:1px solid #383d51; color:#9aa3b8; }
.wx-theme-dark .wx-button { background:#6cf0d2; color:#1a1d29; }
.wx-theme-dark .wx-button:disabled { background:#555; color:#888; opacity:1; }
.wx-theme-dark .wx-setting input[type=checkbox] { accent-color:#6cf0d2; color-scheme:dark; }
.wx-theme-dark .wx-setting input[type=number] { background:#1a1d29; border-color:#444; color:#fff; }
.wx-theme-dark .wx-setting input[type=number]:focus { border-color:#6cf0d2; outline:none; }
.wx-theme-dark .wx-error { color:#ff7875; }
.wx-login-widget { color:#aeb7cb; text-align:center; }
.wx-login-qr { position:relative; display:grid; place-items:center; width:244px; height:244px; max-width:100%; margin:8px auto 14px; border-radius:12px; background:#202330; }
.wx-login-widget img { width:220px; max-width:100%; margin:0; padding:0; border:0; background:transparent; }
.wx-qr-placeholder { display:grid; place-items:center; color:#626b80; }
.wx-qr-placeholder svg { width:30px; height:30px; }
.has-qr .wx-qr-placeholder { display:none; }
.wx-login-tools { display:flex; align-items:center; justify-content:center; gap:5px; min-height:36px; }
.wx-login-widget [role=status] { margin:0; font-size:13px; line-height:1.7; }
.wx-login-widget .wx-error { color:#ff8b8b; }
.wx-qr-refresh { flex:0 0 32px; display:grid; place-items:center; width:32px; height:32px; padding:6px; border:0; border-radius:50%; background:transparent; color:#929db5; cursor:pointer; }
.wx-qr-refresh svg { width:20px; height:20px; }
.wx-qr-refresh:hover { color:#6cf0d2; background:#343949; }
.wx-qr-refresh:focus-visible { outline:2px solid #6cf0d2; outline-offset:2px; }
.wx-qr-refresh:disabled { cursor:default; opacity:.5; }
.is-loading .wx-qr-refresh svg, .is-loading .wx-qr-placeholder svg { animation:wx-qr-spin 1s linear infinite; }
@keyframes wx-qr-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .is-loading .wx-qr-refresh svg, .is-loading .wx-qr-placeholder svg { animation:none; } }
