/* ===== 个人中心页面样式 ===== */

/* 页面主容器 */
.profile-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px 60px;
}

/* 用户信息卡片 */
.profile-card {
  background: rgba(20, 20, 60, 0.8);
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.profile-email {
  font-size: 14px;
  color: #8888cc;
  margin: 0 0 8px;
}

.profile-meta {
  font-size: 13px;
  color: #6666aa;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff5252;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-logout:hover {
  background: rgba(255, 82, 82, 0.15);
  border-color: #ff5252;
}

/* 统计卡片行 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(20, 20, 60, 0.6);
  border: 1px solid rgba(100, 100, 255, 0.15);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #8888aa;
  margin-top: 6px;
}

/* 区块卡片 */
.section-card {
  background: rgba(20, 20, 60, 0.7);
  border: 1px solid rgba(100, 100, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.section-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ccccff;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100, 100, 255, 0.1);
}

/* 模块列表 */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-item {
  background: rgba(30, 30, 80, 0.5);
  border: 1px solid rgba(100, 100, 255, 0.1);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.module-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.mod-name {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0ff;
}

.mod-desc {
  font-size: 13px;
  color: #6666aa;
  margin-top: 4px;
}

.mod-status {
  font-size: 13px;
  color: #00e676;
  text-align: right;
  white-space: nowrap;
}

.mod-date {
  display: block;
  font-size: 11px;
  color: #555588;
  margin-top: 2px;
}

.loading-item, .empty-item {
  color: #6666aa;
  justify-content: center;
  font-size: 15px;
}

.empty-item a {
  color: #00d4ff;
  text-decoration: none;
}
.empty-item a:hover {
  text-decoration: underline;
}

/* 设置项 */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(100, 100, 255, 0.08);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-title {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0ff;
}

.setting-desc {
  font-size: 13px;
  color: #6666aa;
  margin-top: 4px;
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.btn-danger {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-danger:hover {
  background: rgba(255, 82, 82, 0.2);
  border-color: #ff5252;
}

/* 导航栏登录按钮覆盖 */
#navUserBtn {
  min-width: 80px;
  text-align: center;
}

/* 响应式 */
@media (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .profile-meta {
    justify-content: center;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-num {
    font-size: 26px;
  }
  .module-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .setting-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
