* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #0f0f1a, #1a102f);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(122, 100, 245, 0.15), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(245, 100, 164, 0.1), transparent 40%);
  z-index: -1;
}

/* 登录页 */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-box input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

.login-box input:focus {
  border-color: rgba(144, 110, 255, 0.5);
  background: rgba(144, 110, 255, 0.08);
}

.login-box button {
  padding: 14px;
  background: linear-gradient(90deg, #8065ff, #f564a4);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 6px;
}

.login-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(128, 101, 255, 0.35);
}

#login-msg {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  min-height: 18px;
}

/* 后台布局 */
.sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  z-index: 99;
}

.sidebar h2 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #fff;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu a {
  display: block;
  padding: 13px 16px;
  color: #eee;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.03);
}

.menu a.active,
.menu a:hover {
  background: linear-gradient(90deg, #8065ff, #f564a4);
  color: #fff;
  box-shadow: 0 6px 14px rgba(128, 101, 255, 0.2);
}

.main {
  margin-left: 240px;
  padding: 40px 32px;
  min-height: 100vh;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(144, 110, 255, 0.5);
  background: rgba(144, 110, 255, 0.06);
}

button {
  padding: 12px 20px;
  background: linear-gradient(90deg, #8065ff, #f564a4);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(128, 101, 255, 0.3);
}

/* 列表 */
.avatar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.avatar-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.word-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.word-item a {
  color: #ff6a9e;
  text-decoration: none;
  font-size: 13px;
}