/* ===== 登录状态栏 ===== */
.auth-bar { position: relative; flex-shrink: 0; padding-top: 3px; }
.auth-login-btn {
  font-size: 12px; color: var(--accent, #1a1a1a); cursor: pointer;
  border: 1px solid var(--accent, #1a1a1a); border-radius: 6px;
  padding: 3px 10px; white-space: nowrap;
}
.auth-login-btn:active { opacity: 0.7; }
.auth-user {
  font-size: 12px; color: var(--accent, #1a1a1a); cursor: pointer;
  font-weight: 600; white-space: nowrap;
}
.auth-dropdown {
  position: absolute; right: 0; top: calc(100% + 4px);
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 6px 0; z-index: 60; min-width: 110px;
}
.auth-dropdown-item {
  padding: 9px 16px; font-size: 13px; color: #555; cursor: pointer;
}
.auth-dropdown-item:active { background: #f5f5f5; }

/* ===== 登录/注册弹窗 ===== */
.auth-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
}
.auth-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18); overflow: hidden;
}
.auth-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 0;
}
.auth-tabs { display: flex; gap: 20px; }
.auth-tab {
  font-size: 15px; font-weight: 600; color: #bbb; cursor: pointer;
  padding-bottom: 8px; border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--accent, #1a1a1a); border-color: var(--accent, #1a1a1a); }
.auth-modal-close {
  font-size: 22px; color: #bbb; cursor: pointer; line-height: 1;
  padding: 0 0 8px; flex-shrink: 0;
}
.auth-modal-close:active { color: #666; }
.auth-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.auth-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 14px; outline: none;
}
.auth-input:focus { border-color: var(--accent, #1a1a1a); }
.auth-error { font-size: 13px; color: #dc2626; min-height: 16px; }
.auth-submit-btn {
  width: 100%; padding: 12px; background: var(--accent, #1a1a1a);
  color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.auth-submit-btn:active { opacity: 0.85; }
.auth-submit-btn:disabled { opacity: 0.5; cursor: wait; }
