* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1b2333;
  --muted: #6b7488;
  --line: #e5e9f2;
  --brand: #E60012;
  --brand-dark: #B8000E;
  --ok: #17a673;
  --warn: #d98324;
  --danger: #d94a4a;
  --radius: 14px;
}

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1100px 520px at 12% -8%, #ffe0e2 0%, rgba(255, 224, 226, 0) 62%),
    radial-gradient(900px 480px at 92% 4%, #fff0f1 0%, rgba(255, 240, 241, 0) 58%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 16px 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px;
}

.brand-dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #F5323F, #E60012 55%, #B8000E);
  box-shadow: 0 6px 16px rgba(47, 107, 255, .32);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
}

.panel {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(23, 38, 76, .09), 0 2px 6px rgba(23, 38, 76, .04);
  padding: 26px 24px 22px;
}

.panel.wide { max-width: 660px; }

.panel h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.panel .sub {
  color: var(--muted);
  font-size: 12.6px;
  margin-top: 4px;
  margin-bottom: 18px;
}

label.lbl {
  display: block;
  font-size: 12.4px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"], input[type="tel"], input[type="password"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color .16s, box-shadow .16s, background .16s;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: #ffb3b8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

input::placeholder { color: #a9b0c0; }

.field { margin-bottom: 14px; }

.row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.row .grow { flex: 1; }

.btn {
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, border-color .16s, transform .06s;
}

.btn:hover { background: #f6f8fd; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #F5323F, var(--brand));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(47, 107, 255, .26);
}

.btn-primary:hover { background: linear-gradient(180deg, #E82330, var(--brand-dark)); }

.btn-sm { height: 42px; padding: 0 14px; font-size: 13px; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border: 1px dashed #cfd7e8;
  border-radius: 10px;
  padding: 0 10px;
  background: #f8faff;
  min-width: 132px;
  justify-content: space-between;
}

.captcha-q {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #3a4a6b;
  letter-spacing: .5px;
}

.captcha-refresh {
  border: none;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 0 2px 4px;
}

.msg {
  font-size: 12.6px;
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
}

.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.tip {
  border: 1px solid #dbe6ff;
  background: #f3f7ff;
  color: #41537a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.3px;
  line-height: 1.65;
  margin-top: 14px;
}

.tip b { color: #2c3d61; }

.foot {
  margin-top: 16px;
  font-size: 12.4px;
  color: var(--muted);
  text-align: center;
}

.foot a { color: var(--brand); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.code-input {
  letter-spacing: 9px;
  font-size: 20px;
  text-align: center;
  font-family: ui-monospace, Consolas, monospace;
}

.success-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #e8f9f1;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 4px auto 14px;
}

.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  font-size: 13px;
  margin: 14px 0 4px;
}

.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); word-break: break-all; }

.token-box {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  background: #f4f6fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  word-break: break-all;
  color: #33405c;
  margin-top: 6px;
}

/* ---- 用户中心 ---- */

.acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.acct-id { font-size: 17px; font-weight: 700; }
.acct-sub { font-size: 12.4px; color: var(--muted); margin-top: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 600;
}

.pill-ok { background: #e8f9f1; color: #12805a; }
.pill-warn { background: #fff4e5; color: #b06a10; }
.pill-mute { background: #f0f2f7; color: #6b7488; }
.pill-danger { background: #fdeaea; color: #c23c3c; }

.sect-title {
  font-size: 13px;
  font-weight: 700;
  color: #2b3550;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sect-title .hint { font-weight: 400; font-size: 12px; color: var(--muted); }

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fcfdff;
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-name { font-weight: 600; font-size: 13.4px; }
.item-meta { font-size: 12.2px; color: var(--muted); margin-top: 3px; }

.empty {
  border: 1px dashed #d7deeb;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  color: #97a0b4;
  font-size: 12.6px;
  background: #fafbfe;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: #eaeef7;
  margin-top: 9px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4d84ff, #2f6bff);
}

.activate-row { display: flex; gap: 10px; }
.activate-row input { flex: 1; }

a.link-btn {
  display: inline-block;
  font-size: 12.6px;
  color: var(--brand);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

a.link-btn:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .panel, .panel.wide { max-width: 100%; }
  .wrap { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 22px 12px 40px; }
  .panel { padding: 20px 16px 18px; border-radius: 16px; }
  .row { flex-wrap: wrap; }
  .captcha-box { min-width: 116px; }
}

/* 品牌 LOGO（注册 / 用户中心共用） */
.brand-logo{width:38px;height:38px;border-radius:11px;display:block}
.brand{align-items:center}
.foot-wx{padding:20px 0 26px;text-align:center;font-size:12px;color:#8a93a6}
.foot-wx b{color:#E60012}
