:root {
  --blue: #1677ff;
  --blue-hover: #4096ff;
  --blue-soft: #e6f4ff;
  --text: #172b4d;
  --secondary: #63758d;
  --muted: #8996a8;
  --border: #e8edf4;
  --page: #f3f6fb;
  --surface: #fff;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(22, 52, 100, .04);
  --brand: var(--blue);
  --ink: var(--text);
  --text-sec: var(--secondary);
  --text-light: var(--muted);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.65 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #0958d9; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, [type=radio], [type=checkbox] { cursor: pointer; }
button { transition: background .18s, border-color .18s, box-shadow .18s; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #91caff; outline-offset: 3px; }
input:not([type=hidden]):not([type=radio]):not([type=checkbox]), select, textarea { border: 1px solid #d9e1ec; border-radius: 6px; color: var(--text); background: #fff; padding: 9px 12px; outline: none; min-width: 0; transition: border-color .18s, box-shadow .18s; }
input:hover, select:hover, textarea:hover { border-color: #69b1ff; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1677ff14; }
input::placeholder, textarea::placeholder { color: #a1adbc; }
input[type=radio], input[type=checkbox] { accent-color: var(--blue); }
h1, h2, h3 { line-height: 1.4; }
.brand-mark { width: 48px; height: 48px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.brand-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-state { text-align: center; padding: 64px 20px; background: #fff; color: var(--secondary); border: 1px dashed #cbdcf2; border-radius: 8px; }
.empty-state strong { display: block; color: var(--text); font-size: 17px; margin: 12px 0 4px; }
.empty-icon { font-size: 32px; color: #91caff; }
.btn, .btn-buy, .search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: white; min-height: 38px; padding: 8px 18px; cursor: pointer; font-weight: 500; text-decoration: none; box-shadow: 0 2px 0 #052f7710; }
.btn:hover, .btn-buy:hover, .search-btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-secondary, .btn-cancel { background: #fff; border: 1px solid #d9e1ec; color: var(--secondary); border-radius: 6px; padding: 8px 18px; cursor: pointer; }
.btn-secondary:hover, .btn-cancel:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.hint, .login-error { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.hint-err, .login-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.hint-empty { background: #fff; border: 1px solid var(--border); color: var(--secondary); }
.sts { display: inline-block; padding: 1px 9px; border: 1px solid; border-radius: 4px; white-space: nowrap; font-size: 12px; }
.sts-ok { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.sts-wait { background: #fff2f0; color: #cf1322; border-color: #ffccc7; }
.sts-pend { background: #fffbe6; color: #d48806; border-color: #ffe58f; }
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: #071a3866; }
.modal-overlay.open, .modal-overlay.active { display: flex; }
.modal-content { background: #fff; border-radius: 12px; width: 480px; max-width: 100%; max-height: 90vh; overflow: auto; padding: 28px; box-shadow: 0 24px 80px #00152930; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.close-btn { border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.close-btn:hover { color: var(--blue); }
@media(max-width: 640px) { input, select, textarea { font-size: 16px; } .modal-overlay { padding: 16px; } .modal-content { padding: 22px; } }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
