/* style‑black.css 公共全局样式 PersonaHub */
:root {
  --bg: #0f0f14;
  --card: #1a1a24;
  --accent: #7c5cff;
  --text: #eee;
  --muted: #8a8a9a;
  --danger: #ff5c5c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
}

/* 渐变标题通用 */
.grad‑h1 {
  background: linear-gradient(90deg, #7c5cff, #ff5ca8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 表单控件通用 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: #11111a;
  border: 1px solid #2a2a3a;
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

button {
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

/* toast通用弹窗提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 9999;
  display: none;
}

/* 隐藏类 */
.hide {
  display: none;
}