/* ---------- 云端简历角标（我的简历页） ---------- */
.cloud-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 2px;
}

/* ============================================================
 * 导航栏用户区
 * ============================================================ */
.nav-user { position: relative; margin-left: 6px; }

.nav-login {
  height: 38px;
  padding: 0 18px;
  border: 1.5px solid var(--primary-line);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, transform .18s;
}
.nav-login:hover { background: var(--primary-soft); transform: translateY(-1px); }

.nav-avatar {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(124, 92, 252, .3);
  transition: transform .18s;
}
.nav-avatar:hover { transform: scale(1.06); }

/* 下拉菜单 */
.nav-menu {
  position: absolute;
  top: 48px; right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(33, 37, 45, .16);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}
.nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--bg-soft);
  margin-bottom: 6px;
}
.nav-menu-head b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.nav-menu-head span { font-size: 12px; color: var(--ink-3); }

.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .16s, color .16s;
}
.nav-menu a:hover { background: var(--primary-soft); color: var(--primary); }

.nav-menu-logout {
  width: 100%;
  padding: 9px 12px;
  border: none; border-radius: 9px;
  background: transparent;
  color: var(--danger);
  font-size: 13.5px; font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .16s;
}
.nav-menu-logout:hover { background: #fff0ef; }

/* ============================================================
 * auth.css — 登录弹窗样式（沿用 theme.css 亮紫主题）
 * ============================================================ */

/* ---------- 遮罩与弹窗 ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(33, 37, 45, .45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.auth-overlay.is-open { opacity: 1; visibility: visible; }

.auth-modal {
  position: relative;
  width: 100%; max-width: 380px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(33, 37, 45, .22);
  padding: 32px 28px 26px;
  transform: translateY(16px) scale(.97);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}
.auth-overlay.is-open .auth-modal { transform: translateY(0) scale(1); }

.auth-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .18s, color .18s;
}
.auth-close:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- 头部 ---------- */
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h3 { font-size: 19px; font-weight: 900; color: var(--ink); margin: 0 0 6px; }
.auth-head p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---------- 表单 ---------- */
.auth-body { display: flex; flex-direction: column; gap: 15px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color .18s, background .18s;
  font-family: inherit;
}
.auth-field input:focus {
  border-color: var(--primary-line);
  background: #fff;
}
.auth-field input::placeholder { color: var(--ink-3); }

/* 行内布局（输入框 + 按钮） */
.auth-row { display: flex; gap: 10px; align-items: stretch; }
.auth-row input { flex: 1; min-width: 0; }

/* ---------- 图形验证码 ---------- */
.auth-captcha-img {
  flex-shrink: 0;
  width: 110px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent;
  transition: border-color .18s;
}
.auth-captcha-img:hover { border-color: var(--primary-line); }
.auth-captcha-img svg { width: 100%; height: 100%; display: block; }
.auth-cap-loading { font-size: 12px; color: var(--ink-3); }

/* ---------- 获取验证码按钮 ---------- */
.auth-btn-code {
  flex-shrink: 0;
  min-width: 108px; height: 44px;
  border: none; border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, opacity .18s;
  white-space: nowrap;
}
.auth-btn-code:hover:not(:disabled) { background: var(--primary-line); }
.auth-btn-code:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 提交按钮 ---------- */
.auth-btn-submit {
  width: 100%; height: 46px;
  border: none; border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(124, 92, 252, .3);
  transition: transform .16s, box-shadow .16s, opacity .16s;
}
.auth-btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 92, 252, .38); }
.auth-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.auth-note {
  text-align: center; font-size: 11.5px; color: var(--ink-3); margin: 0;
}

/* ---------- 提示条 ---------- */
.auth-tip {
  min-height: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  margin: -4px 0;
}
.auth-tip.is-error { color: var(--danger); }
.auth-tip.is-ok { color: var(--ok); }

/* ---------- 蜜罐字段：对真人完全不可见 ----------
   注意：不能用 display:none（部分机器人会跳过），
   用绝对定位移出屏幕 + 零尺寸，机器人照填不误。 */
.auth-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0; height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 轻提示 Toast ---------- */
.auth-toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  z-index: 10000;
  background: rgba(33, 37, 45, .92);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}
.auth-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 小屏适配 ---------- */
@media (max-width: 420px) {
  .auth-modal { padding: 26px 20px 20px; border-radius: 18px; }
  .auth-head h3 { font-size: 17px; }
  .auth-captcha-img { width: 96px; }
  .auth-btn-code { min-width: 92px; font-size: 12px; }
}
