/* WA-Checker 用户中心：与官网同一套绿色 */
:root { --green: #2ba44a; --green-ink: #1c7a35; --mint: #eaf6ee; --ink: #17221c; --muted: #5b6b62; --line: #e2e9e4; --bad: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f5f8f6; font: 15px/1.6 "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(43, 164, 74, .5); outline-offset: 2px; }
a { color: var(--green-ink); }
h1, h2, h3, p { margin: 0; }
.top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; }
.mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 11px; }
.sp { flex: 1; }
.lang, .link { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.link { border-color: transparent; color: var(--muted); }
main { max-width: 960px; margin: 0 auto; padding: 24px 20px 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.card h2 { font-size: 17px; margin-bottom: 8px; }
.card h3 { font-size: 14px; margin: 16px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin-top: 12px; }
.notice { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 10px; background: var(--mint); color: var(--green-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.notice.error { background: #fdecec; color: var(--bad); }

/* 登录 / 注册 / 找回密码：左绿色介绍，右表单（参考 WADesk 注册页） */
body.auth-page { background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; }
.auth-side { display: flex; flex-direction: column; gap: 18px; padding: 40px 48px; color: #fff;
  background: radial-gradient(700px 400px at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, #2ba44a, #17703a); }
.brand.light { color: #fff; }
.brand.light .mark { background: #fff; color: var(--green); }
.side-kicker { margin-top: 36px; font-size: 13px; font-weight: 700; letter-spacing: .5px; opacity: .85; }
.side-title { font-size: 30px; line-height: 1.4; }
.side-sub { opacity: .9; }
.side-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 16px; }
.side-points li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.side-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.side-points b { font-size: 15px; }
.side-points span { font-size: 13px; opacity: .85; }
.side-foot { margin-top: auto; font-size: 12px; opacity: .75; }
.auth-main { display: flex; flex-direction: column; padding: 28px 48px; }
.auth-top { display: flex; align-items: center; gap: 12px; }
.auth-top .brand { visibility: hidden; }
.auth-box { width: 100%; max-width: 400px; margin: auto; padding: 24px 0; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.kicker { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--mint); color: var(--green-ink); font-size: 13px; font-weight: 700; }
.warn-box { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 14px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-row .btn { white-space: nowrap; min-width: 116px; }
.btn.block { width: 100%; padding: 12px; margin-top: 16px; font-size: 16px; }
.switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.btn-link { padding: 0; border: 0; background: none; color: var(--green-ink); font: inherit; font-weight: 700; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-link.right { margin-left: auto; font-weight: 600; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top .brand { visibility: visible; }
  .auth-main { padding: 20px; }
}
form { display: grid; gap: 6px; margin-top: 14px; }
label { font-weight: 600; font-size: 13px; margin-top: 6px; }
input { width: 100%; padding: 10px 12px; border: 1px solid #c8d3cc; border-radius: 8px; font: inherit; }
.hint { font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid #c8d3cc; border-radius: 9px; background: #fff; font: inherit; font-weight: 700; text-decoration: none; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { padding: 4px 12px; font-size: 13px; font-weight: 600; }
form .btn { margin-top: 12px; }

/* 用户中心 */
.head-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-card h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--mint); color: var(--green-ink); }
.badge.warn { background: #fff4e5; color: #8a4b00; }
.badge.bad { background: #fdecec; color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { display: grid; justify-items: center; gap: 2px; padding: 18px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { font-size: 24px; }
.stat small { color: var(--muted); font-size: 12px; }
.stat meter { width: 80%; height: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
td:first-child { font-family: Consolas, monospace; word-break: break-all; }
.empty { color: var(--muted); text-align: center; padding: 12px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .card { margin-bottom: 0; }
.contact-lead { margin-top: 10px; font-weight: 600; }
.contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact a { padding: 8px 14px; border-radius: 8px; color: #fff; font-weight: 700; text-decoration: none; background: var(--green); }
.contact a:first-child { background: #229ed9; }
.renewals { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .stats, .grid2 { grid-template-columns: 1fr; } .top { padding: 0 14px; } }
