/* 全站共用登录条 */
.site-auth-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 60;
}
.site-auth-bar:not(.is-inline) {
  position: fixed;
  top: 0;
  right: 12px;
  height: 56px;
}
.site-auth-bar.is-inline {
  position: relative;
  height: auto;
  margin-left: 12px;
}
.site-auth-input {
  height: 32px;
  width: 100px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #f3f4f6;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}
.site-auth-input::placeholder {
  color: rgba(243, 244, 246, 0.45);
}
.site-auth-input:focus {
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.18);
}
.site-auth-btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #111827;
  background: linear-gradient(90deg, #67e8f9, #86efac);
}
.site-auth-btn:hover {
  opacity: 0.9;
}
a.site-auth-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.site-auth-btn-ghost {
  background: transparent !important;
  color: inherit !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.site-auth-bar.is-hud .site-auth-btn-ghost {
  color: #00d2ff !important;
  border-color: rgba(0, 210, 255, 0.35);
}
.site-auth-bar.is-game .site-auth-btn-ghost {
  color: #c4b5fd !important;
  border-color: rgba(155, 106, 241, 0.4);
}
.site-auth-bar.is-library .site-auth-btn-ghost {
  color: #d4b57a !important;
  border-color: rgba(212, 181, 122, 0.4);
}
.site-auth-bar.is-ink .site-auth-btn-ghost,
.site-auth-bar.is-home .site-auth-btn-ghost {
  color: #c4a574 !important;
  border-color: rgba(196, 165, 116, 0.4);
}
.site-auth-msg {
  font-size: 11px;
  color: #f472b6;
  max-width: 220px;
}
.site-auth-status {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.08);
}

/* 产业 HUD */
.site-auth-bar.is-hud .site-auth-input {
  border-radius: 0;
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.04);
  color: #e8f4ff;
  height: 33px;
  width: 115px;
}
.site-auth-bar.is-hud .site-auth-btn {
  border-radius: 0;
  height: 33px;
  clip-path: polygon(5px 0%, 100% 0%, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0% 100%, 0% 5px);
  background: linear-gradient(90deg, #00d2ff, #00ffa3);
  color: #020c14;
  letter-spacing: 1px;
}
.site-auth-bar.is-hud .site-auth-msg {
  color: #ff6b35;
}

/* 游戏 */
.site-auth-bar.is-game .site-auth-input {
  border-color: rgba(155, 106, 241, 0.35);
  background: rgba(20, 16, 50, 0.85);
  color: #f5f3ff;
}
.site-auth-bar.is-game .site-auth-input::placeholder {
  color: #8b7fb5;
}
.site-auth-bar.is-game .site-auth-btn {
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
  color: #1a1030;
}

/* 工具馆 */
.site-auth-bar.is-library .site-auth-input {
  border-color: rgba(212, 181, 122, 0.4);
  background: rgba(26, 20, 16, 0.85);
  color: #f0e6d6;
  border-radius: 2px;
}
.site-auth-bar.is-library .site-auth-btn {
  background: linear-gradient(90deg, #d4b57a, #e8d4a8);
  color: #1a1410;
  border-radius: 2px;
}

/* 关于 */
.site-auth-bar.is-ink .site-auth-input {
  border-color: rgba(196, 165, 116, 0.35);
  background: rgba(16, 19, 26, 0.9);
  color: #ebe6dc;
  border-radius: 2px;
}
.site-auth-bar.is-ink .site-auth-btn {
  background: linear-gradient(90deg, #c4a574, #e0c9a0);
  color: #10131a;
  border-radius: 2px;
}

/* 首页 */
.site-auth-bar.is-home .site-auth-input {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(22, 24, 28, 0.92);
  color: #f5f5f4;
}
.site-auth-bar.is-home .site-auth-btn {
  background: linear-gradient(90deg, #c9a84c, #e2c56a);
  color: #16181c;
}

@media (max-width: 1100px) {
  .site-auth-bar .site-auth-input {
    width: 80px;
  }
}
@media (max-width: 720px) {
  .site-auth-bar:not(.is-inline) .site-auth-input {
    display: none;
  }
}

/* —— 注册弹窗 —— */
.site-auth-register-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0;
  max-width: min(400px, calc(100vw - 32px));
  width: 100%;
  height: fit-content;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #14181f;
  color: #f3f4f6;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.site-auth-register-dialog::backdrop {
  background: rgba(6, 8, 12, 0.62);
  backdrop-filter: blur(4px);
}
.site-auth-register-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 18px;
  margin: 0;
}
.site-auth-register-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-auth-register-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.site-auth-register-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.site-auth-register-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
.site-auth-register-desc {
  margin: 0;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.5;
}
.site-auth-register-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.site-auth-register-field > span {
  opacity: 0.75;
}
.site-auth-register-field input {
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.site-auth-register-field input:focus {
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.18);
}
.site-auth-register-msg {
  margin: 0;
  font-size: 12px;
  color: #f472b6;
  line-height: 1.4;
}
.site-auth-register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.site-auth-register-actions .site-auth-btn {
  min-width: 88px;
}

.site-auth-register-dialog.is-hud {
  border-color: rgba(0, 210, 255, 0.35);
  background: #061018;
  color: #e8f4ff;
  border-radius: 0;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
}
.site-auth-register-dialog.is-hud .site-auth-register-field input {
  border-radius: 0;
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.04);
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}
.site-auth-register-dialog.is-hud .site-auth-register-msg {
  color: #ff6b35;
}

.site-auth-register-dialog.is-game {
  border-color: rgba(155, 106, 241, 0.4);
  background: #16122a;
  color: #f5f3ff;
}
.site-auth-register-dialog.is-game .site-auth-register-field input {
  border-color: rgba(155, 106, 241, 0.35);
  background: rgba(20, 16, 50, 0.85);
}

.site-auth-register-dialog.is-library {
  border-color: rgba(212, 181, 122, 0.4);
  background: #1a1410;
  color: #f0e6d6;
  border-radius: 4px;
}
.site-auth-register-dialog.is-library .site-auth-register-field input {
  border-radius: 2px;
  border-color: rgba(212, 181, 122, 0.4);
  background: rgba(26, 20, 16, 0.85);
}

.site-auth-register-dialog.is-ink,
.site-auth-register-dialog.is-home {
  border-color: rgba(196, 165, 116, 0.4);
  background: #12151c;
  color: #ebe6dc;
  border-radius: 4px;
}
.site-auth-register-dialog.is-ink .site-auth-register-field input,
.site-auth-register-dialog.is-home .site-auth-register-field input {
  border-radius: 2px;
  border-color: rgba(196, 165, 116, 0.35);
  background: rgba(16, 19, 26, 0.9);
}
.site-auth-register-dialog.is-home .site-auth-register-field input:focus,
.site-auth-register-dialog.is-ink .site-auth-register-field input:focus {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.18);
}

