/* ===== 亮化效果图设计系统 - 通用主题样式 ===== */

:root {
  --bg-1: #070b2f;
  --bg-2: #0c123c;
  --bg-3: #121b4f;
  --panel: rgba(20, 26, 60, 0.82);
  --panel-strong: rgba(12, 18, 48, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef3ff;
  --muted: #96a3c8;
  --primary: #2cb8ff;
  --secondary: #6a3cff;
  --accent: #8e5dff;
  --danger: #ff6b7a;
  --success: #16c784;
  --warning: #ffb938;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 184, 255, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(106, 60, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== Toast 通知 ===== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(20, 26, 60, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  pointer-events: auto;
  animation: toastIn 0.3s ease both;
  max-width: min(90vw, 480px);
  text-align: center;
}

.toast.error {
  border-color: rgba(255, 107, 122, 0.4);
}

.toast.success {
  border-color: rgba(22, 199, 132, 0.4);
}

.toast.hide {
  animation: toastOut 0.28s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-16px) scale(0.94); }
}

/* ===== 加载指示器 ===== */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 表单基础 ===== */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
