/* 顶栏登录（对齐老官网） */
.header-auth { position: relative; }
.header-login-link {
  font-size: clamp(13px, 0.8vw, 15px); color: var(--text-secondary, #A0A0A0); font-weight: 500;
  cursor: pointer; transition: .2s; user-select: none;
}
.header-login-link:hover { color: var(--gold, #E8C820); }
.header-auth--on { display: block; }
.header-avatar-wrap {
  position: relative; display: flex; align-items: center; gap: 4px;
  cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: .2s;
}
.header-avatar-wrap:hover,
.header-avatar-wrap.is-open { background: rgba(255,255,255,.06); }
.header-avatar-wrap img {
  width: clamp(34px, 2.4vw, 38px); height: clamp(34px, 2.4vw, 38px); border-radius: 50%; object-fit: cover;
  background: #fff; display: block;
}
.header-avatar-arrow { font-size: 11px; color: var(--text-muted, #666); }
.header-user-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 120px; background: #12121F; border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 120;
}
.header-user-menu.is-open { display: block; }
.header-user-menu a {
  display: block; padding: 11px 16px; font-size: 13px; color: #fff;
  transition: .15s; white-space: nowrap;
}
.header-user-menu a:hover { background: #181828; color: var(--gold, #E8C820); }

/* 登录弹层（白底，与老站一致） */
body.auth-modal-open { overflow: hidden; }
.login_bg_mask {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.55);
}
.login_bg_mask.is-open { display: block; }
.login_form_con {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(485px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  overflow-y: auto; background: #fff; z-index: 2001;
}
.login_form_con.is-open { display: block; }
.login_form_close_img {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: #666; cursor: pointer;
}
.login_form_top { padding: 50px 0 30px; }
.login_form_title h3 {
  font-size: 22px; font-weight: 600; color: #333; margin-bottom: 24px; text-align: left;
}
.login_form_left { padding: 0 50px 20px; }
.login_form_input {
  width: 100%; margin-bottom: 20px; position: relative;
}
.login_form_input input {
  width: 100%; height: 50px; border: 1px solid #d8d8d8; font-size: 16px;
  padding: 0 15px; border-radius: 0; box-sizing: border-box; color: #333;
}
.login_form_input input:focus { outline: none; border-color: #999; }
.login_form_phonenum input { padding-left: 103px; }
.login_form_areacode {
  position: absolute; top: 0; left: 0; width: 88px; height: 50px;
  font-size: 16px; color: #333; line-height: 50px; text-align: center; background: #d8d8d8;
}
.login_form_verify {
  position: absolute; right: 0; top: 0; height: 50px; padding: 0 12px;
  border: none; background: #f5f5f5; color: #333; font-size: 14px; cursor: pointer;
}
.login_form_verify:disabled { color: #999; cursor: not-allowed; }
.login_form_forget_con {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px; font-size: 14px;
}
.login_form_forget_con .light_grey,
.login_form_forget { color: #999; cursor: pointer; }
.login_form_forget_con .light_grey:hover,
.login_form_forget:hover { color: #333; }
.login_form_btn {
  height: 50px; font-size: 18px; color: #fff; background: #323232;
  text-align: center; line-height: 50px; letter-spacing: 6px; cursor: pointer;
}
.login_form_btn:hover { background: #1a1a1a; }
.login_form_left_bottom { margin-top: 24px; }
.login_form_third_title { font-size: 14px; color: #666; margin-bottom: 10px; }
.login_form_third_pic img { width: 36px; height: 36px; opacity: .85; }
.login-policy { margin-top: 16px; font-size: 12px; color: #999; line-height: 1.6; }
.login-policy a { color: #666; text-decoration: underline; }
.login_form_back {
  cursor: pointer; padding: 0 50px 0; font-size: 16px; color: #999; margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.auth-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 3000; padding: 10px 18px; border-radius: 8px; font-size: 14px;
  background: rgba(30,30,30,.92); color: #fff; display: none;
}
.auth-toast.is-show { display: block; }
.auth-logout-modal {
  display: none; position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 24px;
}
.auth-logout-modal.is-open { display: flex; }
.auth-logout-dialog {
  width: min(400px, 100%); background: #fff; border-radius: 8px; padding: 28px 24px 20px;
}
.auth-logout-dialog p { font-size: 15px; color: #333; line-height: 1.6; margin-bottom: 20px; }
.auth-logout-actions { display: flex; justify-content: flex-end; gap: 12px; }
.auth-logout-actions button {
  padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none;
}
.auth-logout-cancel { background: #eee; color: #333; }
.auth-logout-confirm { background: #323232; color: #fff; }

@media (max-width: 768px) {
  .login_form_left { padding: 0 24px 20px; }
  .login_form_back { padding: 0 24px; }
}
