/* PixelAMZ 公共样式：浅色清爽。中文用系统字体（国内访问 Google Fonts 不稳定） */
:root {
  --bg: #f5f7fa;
  --paper: #ffffff;
  --ink: #15171c;
  --ink-2: #3a3f4a;
  --muted: #6b717d;
  --line: #e4e7ec;
  --line-2: #eef0f4;
  --blue: #2747e8;
  --blue-ink: #1b34b8;
  --blue-soft: #edf1ff;
  --rec: #f0353b;
  --ok: #138a52;
  --bad: #d22f2f;
  --r-lg: 16px;
  --r: 10px;
  --r-sm: 7px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--blue); color: #fff; font: 500 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn:hover { background: var(--blue-ink); text-decoration: none; }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.line:hover { background: var(--line-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; min-height: 96px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

.msg { min-height: 20px; font-size: 13px; margin-top: 8px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }

/* 登录弹窗 */
.dialog-mask { position: fixed; inset: 0; background: rgba(20, 24, 33, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dialog { width: 100%; max-width: 380px; background: var(--paper); border-radius: var(--r-lg); padding: 28px 24px 22px; position: relative; }
.dialog h3 { margin: 0 0 4px; font-size: 20px; }
.dialog .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
