/* ============ 访问码输入页 ============ */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bgPage);
  padding: 24px;
  position: relative;
}

.landing-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 20px;
  padding: 48px 40px 40px;
  box-shadow: 0 4px 24px rgba(20, 40, 20, 0.06), 0 30px 60px rgba(20, 40, 20, 0.08);
  border: 1px solid rgba(200, 215, 195, 0.4);
  text-align: center;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.landing-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--accent), var(--accentDark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header);
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(108, 191, 74, 0.3);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.landing-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--header);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.landing-subtitle {
  font-size: 14px;
  color: var(--textMuted);
  margin: 0 0 32px;
}

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

.landing-input-wrap {
  position: relative;
  border-radius: 12px;
  background: var(--bgSoft);
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.landing-input-wrap:focus-within {
  border-color: var(--accentDark);
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 191, 74, 0.1);
}

.landing-input-wrap.has-error {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.04);
}

.landing-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--textFaint);
  font-size: 14px;
  transition: color 0.2s ease;
}

.landing-input-wrap:focus-within .landing-input-icon {
  color: var(--accentDark);
}

.landing-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.landing-input::placeholder {
  color: var(--textFaint);
}

.landing-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.landing-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--danger);
  padding: 8px 0 2px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.landing-btn {
  margin-top: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accentDark));
  color: var(--header);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(108, 191, 74, 0.25);
}

.landing-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 191, 74, 0.35);
}

.landing-btn:active:not(:disabled) {
  transform: translateY(0);
}

.landing-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.landing-footer {
  position: absolute;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--textFaint);
}

.landing-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.landing-admin-link {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 215, 195, 0.3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--textMuted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.landing-admin-link:hover {
  color: var(--accentDeeper);
  border-color: var(--accent);
  background: white;
}

/* 响应式 */
@media (max-width: 480px) {
  .landing-card {
    padding: 36px 24px 32px;
    border-radius: 16px;
  }
  .landing-title {
    font-size: 26px;
  }
  .landing-logo {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}
