/* ============================================================
   zailiu-auth.css — 登录弹窗样式
   ============================================================ */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}

.auth-modal {
  background: var(--z-bg-surface, #fff);
  border: 1px solid var(--z-border-light, #e5e7eb);
  border-radius: var(--z-radius-xl, 16px);
  padding: 32px 28px 24px;
  max-width: 400px;
  width: calc(100vw - 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
  animation: authSlideIn .3s ease;
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--z-text-dim, #9ca3af);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}

.auth-close:hover {
  color: var(--z-text-primary, #1f2937);
  background: var(--z-bg-hover, #f3f4f6);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--z-text-primary, #1f2937);
  margin: 12px 0 6px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--z-text-primary, #1f2937);
  margin-bottom: -10px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--z-border, #d1d5db);
  border-radius: var(--z-radius-md, 8px);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--z-text-primary, #1f2937);
  background: var(--z-bg-surface, #fff);
  transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--z-brand-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.auth-submit {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--z-radius-md, 8px);
  background: var(--z-brand-primary, #2563eb);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  margin-top: 4px;
}

.auth-submit:hover {
  background: var(--z-brand-dark, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }

.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--z-text-secondary, #6b7280);
  margin: 0;
}

.auth-switch a {
  color: var(--z-brand-primary, #2563eb);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-footer-text {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--z-border-light, #e5e7eb);
}

/* Footer "coming soon" placeholder (site-wide, theme-safe) */
.footer-coming-soon { color: var(--z-text-dim); opacity: .75; font-size: 0.82rem; }
.footer-coming-soon small { font-size: 0.65rem; opacity: 0.8; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.language-select-wrap {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--z-border-light, #d7dde5);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--z-text-secondary, #566274);
}

.language-select-wrap:focus-within {
  border-color: var(--z-brand-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.language-globe {
  color: var(--z-brand-primary, #2563eb);
  font-size: 17px;
  line-height: 1;
}

.language-select {
  max-width: 112px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--z-text-primary, #1f2937);
  font: 600 13px/1.2 inherit;
  cursor: pointer;
}

.footer-disclaimer {
  max-width: 560px;
  color: var(--z-text-dim, #7a8492);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 980px) {
  .nav-links { gap: var(--z-space-4, 16px); }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 768px) {
  .language-select-wrap { margin-left: auto; }
  .language-select { max-width: 92px; }
  .footer-disclaimer { max-width: none; text-align: left; }
}
