/* ============ 左上角齿轮按钮 ============ */
.settings-btn {
  position: fixed;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.settings-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: rotate(45deg) scale(1.05);
  border-color: var(--wu-red);
}
.settings-btn.logged-in::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5DC97D;
  box-shadow: 0 0 6px #5DC97D;
}

/* ============ 登录浮层 ============ */
.settings-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}
.settings-overlay.show { display: flex; }
.settings-card {
  background: linear-gradient(145deg, #181818, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--wu-red);
  border-radius: 8px;
  padding: 28px 26px 24px;
  width: 360px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: settingsPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes settingsPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.settings-close {
  position: absolute; top: 8px; right: 10px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 18px;
  cursor: pointer;
}
.settings-close:hover { color: var(--text-light); }
.settings-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 4px;
  color: var(--wu-red);
  margin-bottom: 14px;
  font-weight: 700;
}

.auth-step-title {
  font-size: 16px; font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}
.auth-step-sub {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
.auth-input:focus {
  outline: none;
  border-color: var(--wu-red);
  background: rgba(255, 255, 255, 0.1);
}
.auth-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.auth-btn-primary {
  background: var(--wu-red);
  color: #fff;
}
.auth-btn-primary:hover { background: #ff1a2c; }
.auth-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-dim);
}
.auth-btn-ghost:hover {
  border-color: var(--text-light);
  color: var(--text-light);
}
.auth-msg {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1px;
  min-height: 14px;
  margin-top: 4px;
}
.auth-msg.is-error { color: #ff6666; }

/* ============ 已登录视图 ============ */
.auth-userblock {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  margin-bottom: 14px;
}
.auth-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 22px;
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-username { font-size: 14px; font-weight: 700; color: var(--text-light); }
.auth-usersub { font-size: 11px; color: var(--text-mute); letter-spacing: 1px; }

/* ============ 身份选择列表 ============ */
.auth-identity-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.auth-identity-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  color: var(--text-light);
  transition: all 0.2s;
}
.auth-identity-row:hover {
  background: rgba(230, 0, 18, 0.12);
  border-color: var(--wu-red);
}
.auth-identity-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.auth-identity-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.auth-identity-text { flex: 1; }
.auth-identity-title { font-size: 13px; font-weight: 600; }
.auth-identity-sub { font-size: 10px; color: var(--text-mute); letter-spacing: 1px; }
