/* 小宇注册/登录 — 对齐首页 hero 气质 */

/* 超宽屏：顶栏 / 页脚 / 内容近全宽 */
.wide-layout {
  --wrap: 100%;
  --wrap-wide: 100%;
  --me-gutter: clamp(12px, 1.2vw, 20px);
}
/* 整页滚动：顶栏不吸顶 */
.wide-layout .planet-nav {
  position: static;
}
.wide-layout .planet-nav .nav-inner,
.wide-layout .planet-footer .wrap,
.wide-layout .auth-page > .wrap {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--me-gutter);
  padding-right: var(--me-gutter);
}

.auth-page {
  min-height: calc(100vh - 74px);
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, #ffffff 0%, #e7f4fd 100%);
  background-size: 200px 200px, auto;
  overflow: hidden;
}
.auth-page .auth-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -60px;
  top: 8%;
  background: radial-gradient(circle, rgba(47, 158, 222, 0.14) 0%, transparent 68%);
  pointer-events: none;
}
.auth-page > .wrap {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 5vw, 72px) var(--me-gutter) 80px;
  width: 100%;
  box-sizing: border-box;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

@media (max-width: 960px) {
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .auth-visual {
    order: -1;
    max-width: min(280px, 70vw);
    margin: 0 auto;
  }
  .auth-visual .cap-line { display: none; }
}
@media (max-width: 560px) {
  .auth-panel { padding: 22px 18px 20px; }
  .auth-code-row {
    grid-template-columns: 1fr;
  }
  .auth-code-row .pill {
    width: 100%;
    justify-content: center;
  }
}

.auth-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #2f4650;
}
.auth-copy h1 em {
  font-style: normal;
  color: #2f9ede;
}
.auth-copy .lead {
  margin: 0;
  font-size: 18px;
  color: #586a71;
  line-height: 1.65;
  max-width: 420px;
  font-weight: 500;
}
.auth-copy .auth-note {
  margin: 28px 0 0;
  font-size: 13px;
  color: #93a3a8;
  line-height: 1.5;
}

.auth-panel {
  background: #fff;
  border: 1px solid #e4ecec;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(29 92 134 / 0.08);
  padding: 32px 32px 28px;
}
.auth-modes {
  display: none;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2f4650;
  margin-bottom: 8px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #2f4650;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  outline: none;
  border-color: #2f9ede;
  box-shadow: 0 0 0 3px #e6f3fd;
}
.auth-field input::placeholder { color: #93a3a8; }

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.auth-code-row .auth-field { margin-bottom: 0; }
.auth-code-row .pill {
  height: 46px;
  padding: 0 16px;
  white-space: nowrap;
}
.auth-code-row .pill::before { content: none; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 13px 22px;
  font-size: 15px;
}
.auth-submit::before { content: none; }

.auth-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: #93a3a8;
}
.auth-foot a {
  color: #1f80c4;
  text-decoration: none;
  font-weight: 600;
}
.auth-foot a:hover { text-decoration: underline; }

.auth-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth-visual img {
  width: min(100%, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(47, 158, 222, 0.18));
}
.auth-visual .cap-name {
  margin: 16px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #2f4650;
}
.auth-visual .cap-name span {
  font-weight: 500;
  color: #5285ad;
  font-size: 13px;
  margin-left: 6px;
}
.auth-visual .cap-line {
  margin: 0;
  font-size: 13px;
  color: #586a71;
  max-width: 260px;
  line-height: 1.5;
}

.auth-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #2f4650;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 90;
  pointer-events: none;
}
.auth-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— 多步注册/登录 —— */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.auth-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #93a3a8;
  min-width: 0;
}
.auth-steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin: 0 10px 0 2px;
  background: #d7e4ea;
  flex-shrink: 0;
}
.auth-steps .auth-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d7e4ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  background: #fff;
  color: #93a3a8;
}
.auth-steps li.is-on { color: #2f4650; }
.auth-steps li.is-on .auth-step-dot {
  border-color: #2f9ede;
  background: #e6f3fd;
  color: #1f80c4;
}
.auth-steps li.is-done { color: #5285ad; }
.auth-steps li.is-done .auth-step-dot {
  border-color: #2f9ede;
  background: #2f9ede;
  color: #fff;
}
.auth-steps li.is-skip { display: none; }

.auth-panel-head {
  margin: 0 0 18px;
}
.auth-panel-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #2f4650;
  letter-spacing: -0.01em;
}
.auth-panel-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #586a71;
}

.auth-step { display: none; }
.auth-step.is-on { display: block; }

.auth-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f9fd;
  border: 1px solid #e0eef8;
  font-size: 12px;
  line-height: 1.5;
  color: #3d6b8a;
}
.auth-hint strong { font-weight: 700; color: #2f4650; }

.auth-error {
  display: none;
  margin: 0 0 12px;
  font-size: 13px;
  color: #c44b4b;
  line-height: 1.4;
}
.auth-error.is-on { display: block; }

/* 行为验证码占位（真机接阿里云 SDK） */
.auth-captcha {
  margin-bottom: 16px;
  border: 1px solid #e4ecec;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafcfd;
}
.auth-captcha-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2f4650;
}
.auth-captcha-label span {
  font-size: 11px;
  font-weight: 500;
  color: #93a3a8;
}
.auth-captcha-track {
  position: relative;
  height: 42px;
  border-radius: 10px;
  background: #eef3f6;
  border: 1px solid #e4ecec;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.auth-captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #d6eefc, #b8e0f7);
  pointer-events: none;
}
.auth-captcha-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #586a71;
  pointer-events: none;
  z-index: 1;
}
.auth-captcha-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d7e4ea;
  box-shadow: 0 2px 8px rgb(29 92 134 / 0.12);
  cursor: grab;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f9ede;
  font-size: 14px;
  line-height: 1;
}
.auth-captcha-knob:active { cursor: grabbing; }
.auth-captcha.is-ok {
  border-color: #9fd0ef;
  background: #f3f9fd;
}
.auth-captcha.is-ok .auth-captcha-track {
  background: #e6f3fd;
  border-color: #9fd0ef;
}
.auth-captcha.is-ok .auth-captcha-text { color: #1f80c4; font-weight: 600; }
.auth-captcha.is-ok .auth-captcha-knob {
  border-color: #2f9ede;
  color: #1f80c4;
}

.auth-consent {
  margin: 4px 0 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #2f9ede;
}
.auth-consent label {
  font-size: 12px;
  line-height: 1.55;
  color: #586a71;
  font-weight: 500;
}
.auth-consent a {
  color: #1f80c4;
  text-decoration: none;
  font-weight: 600;
}
.auth-consent a:hover { text-decoration: underline; }

/* 实人核验 */
.auth-face-qr {
  margin-top: 0;
  padding: 18px 14px;
  border: 1px solid #e4ecec;
  border-radius: 12px;
  background: #fafcfd;
  text-align: center;
}
.auth-face-id {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ecec;
}
.auth-face-id-name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.auth-face-id-no {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #2f4650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.auth-face-hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #2f4650;
}
.auth-face-qr .pill.line {
  margin: 6px 4px 0;
}
.auth-face-qr canvas,
.auth-face-qr-code {
  display: block;
  margin: 0 auto 12px;
  width: 200px;
  height: 200px;
  background: #fff;
}
.auth-face-qr-code img {
  display: block;
  width: 200px;
  height: 200px;
}
.auth-face-status {
  margin: 0 0 10px;
  font-size: 13px;
  color: #586a71;
}
.auth-face-frame {
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px dashed #c5d8e4;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(47, 158, 222, 0.08), transparent 55%),
    #f7fafc;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  text-align: center;
}
.auth-face-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #9fd0ef;
  box-shadow: inset 0 0 0 6px #e6f3fd;
  position: relative;
}
.auth-face-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #d7e8f3;
}
.auth-face-frame p {
  margin: 0;
  font-size: 12px;
  color: #586a71;
  line-height: 1.45;
  max-width: 240px;
}
.auth-face-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.auth-face-actions .pill {
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
}
.auth-face-actions .pill::before { content: none; }
@media (max-width: 420px) {
  .auth-face-actions { grid-template-columns: 1fr; }
}

.auth-demo-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e4ecec;
  font-size: 11px;
  color: #93a3a8;
  line-height: 1.45;
}
.auth-demo-bar button {
  border: none;
  background: none;
  color: #1f80c4;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* 未成年拒绝页 */
.auth-blocked {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 0 64px;
}
.auth-blocked h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  color: #2f4650;
  margin: 0 0 12px;
  font-weight: 700;
}
.auth-blocked .lead {
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.65;
  color: #586a71;
  max-width: 400px;
}
.auth-blocked .auth-panel {
  text-align: left;
  margin-bottom: 20px;
}
.auth-blocked .auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.auth-blocked .auth-actions .pill::before { content: none; }

/* 法务占位页 */
.legal-doc h2 {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2f4650;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #586a71;
}
.legal-doc .legal-meta {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e4ecec;
  font-size: 12px;
  color: #93a3a8;
}

/* me：账号安全卡 */
.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e6f3fd;
  color: #1f80c4;
}
.auth-status-pill.is-warn {
  background: #fff4e5;
  color: #b86e00;
}
.auth-status-pill.is-bad {
  background: #fdecec;
  color: #c44b4b;
}

/* —— 简洁注册/登录卡（少装饰） —— */
.auth-simple {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 16px 64px;
  background: #f7fafc;
}
.auth-simple-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e4ecec;
  border-radius: 12px;
  padding: 28px 24px 22px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.auth-simple-brand {
  text-align: center;
  margin-bottom: 20px;
}
.auth-simple-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}
.auth-simple-brand h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #2f4650;
  font-family: inherit;
  letter-spacing: 0;
}
.auth-simple-brand p {
  margin: 0;
  font-size: 13px;
  color: #93a3a8;
  line-height: 1.45;
}
.auth-simple .auth-panel-head h2 {
  font-size: 16px;
}
.auth-simple .auth-steps {
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 4px 0;
}
.auth-simple .auth-steps li + li::before {
  width: 16px;
  margin: 0 6px 0 2px;
}
.auth-simple .auth-hint {
  font-size: 12px;
  padding: 8px 10px;
}
.auth-simple .auth-face-frame {
  min-height: 120px;
  padding: 14px;
}
.auth-simple .auth-face-ring {
  width: 56px;
  height: 56px;
}
.auth-simple-switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: #586a71;
}
.auth-simple-switch a {
  color: #1f80c4;
  font-weight: 600;
  text-decoration: none;
}
.auth-simple-switch a:hover {
  text-decoration: underline;
}
.auth-simple-nav {
  width: 100%;
  max-width: 400px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.auth-simple-nav a {
  color: #586a71;
  text-decoration: none;
}
.auth-simple-nav a:hover {
  color: #1f80c4;
}

/* —— 桌面浏览器标准登录/注册页 —— */
.auth-web {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f8;
  font-family: var(--sans, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif);
  color: #1f2329;
  -webkit-font-smoothing: antialiased;
}
.auth-web-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.auth-web-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex-shrink: 0;
}
.auth-web-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1f2329;
  text-decoration: none;
}
.auth-web-home {
  font-size: 13px;
  color: #646a73;
  text-decoration: none;
}
.auth-web-home:hover { color: #1f80c4; }
.auth-web-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
}
.auth-web-form {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #dee0e3;
  border-radius: 8px;
  padding: 32px 28px 28px;
  box-sizing: border-box;
}
.auth-web-form h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2329;
}
.auth-web-sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: #646a73;
}
.auth-web-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #8f959e;
}
.auth-web-steps li.is-on {
  color: #1f80c4;
  font-weight: 600;
}
.auth-web-steps li.is-done {
  color: #646a73;
}
.auth-web .auth-field {
  margin-bottom: 14px;
}
.auth-web .auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2329;
  margin-bottom: 6px;
}
.auth-web .auth-field input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #bbbfc4;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2329;
  background: #fff;
}
.auth-web .auth-field input:focus {
  outline: none;
  border-color: #2f9ede;
  box-shadow: 0 0 0 2px rgba(47, 158, 222, 0.2);
}
.auth-web-code {
  display: flex;
  gap: 8px;
}
.auth-web-code input {
  flex: 1;
  min-width: 0;
}
.auth-web-code-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #bbbfc4;
  border-radius: 6px;
  background: #fff;
  color: #1f2329;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.auth-web-code-btn:hover:not(:disabled) {
  border-color: #2f9ede;
  color: #1f80c4;
}
.auth-web-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-web-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8f959e;
}
.auth-web-btn {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border: none;
  border-radius: 6px;
  background: #2f9ede;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.auth-web-btn:hover {
  background: #1f80c4;
}
.auth-web-btn-ghost {
  background: #fff;
  color: #1f2329;
  border: 1px solid #bbbfc4;
  margin-top: 8px;
}
.auth-web-btn-ghost:hover {
  background: #f5f6f8;
  border-color: #8f959e;
}
.auth-web-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.auth-web-switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: #646a73;
}
.auth-web-switch a {
  color: #1f80c4;
  text-decoration: none;
  font-weight: 600;
}
.auth-web-switch a:hover {
  text-decoration: underline;
}
.auth-web-foot {
  flex-shrink: 0;
  padding: 16px 0 24px;
  text-align: center;
  font-size: 12px;
  color: #8f959e;
}
.auth-web-foot a {
  color: #646a73;
  text-decoration: none;
}
.auth-web-foot a:hover {
  color: #1f80c4;
}
.auth-web-foot span {
  margin: 0 6px;
}
.auth-web .auth-captcha {
  margin-bottom: 14px;
}
.auth-web .auth-consent {
  margin: 4px 0 12px;
}
.auth-web .auth-step {
  display: none;
}
.auth-web .auth-step.is-on {
  display: block;
}
.auth-web .auth-error {
  margin-bottom: 10px;
}

/* 登录后样式见 me.css；此处仅保留 auth 页与通用 toast/modal 依赖 */
