/* 头像容器 */
.profile {
  text-align: center; /* 水平居中 */
  margin-top: 16px; /* 设置上边距，使头像和标题有间隔 */
}

/* 头像样式 */
.avatar {
  width: 60px;  /* 控制头像宽度 */
  height: 60px; /* 控制头像高度 */
  border-radius: 50%;  /* 使头像变为圆形 */
  object-fit: cover;  /* 保证图片不变形 */
  border: 2px solid #ddd;  /* 给头像添加边框 */
}

/* 其他样式 */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f2f3f5;
  color: #333;
}

.container {
  padding: 16px;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  margin-top: 10px;
}

h1 {
  text-align: center;
  font-size: 18px;
  margin: 10px 0;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
}

.group-header h2 {
  font-size: 16px;
  margin: 0;
}

.create-button {
  background-color: #409eff;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-button .icon {
  margin-right: 4px;
  font-size: 14px;
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.group-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 16px 12px; /* 增加垂直padding使按钮更高 */
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: block;
  width: 100%;
  min-height: 90px; /* 设置最小高度 */
}

.group-item:hover {
  background-color: #e6f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.group-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.group-item h3 {
  margin: 8px 0 4px; /* 调整标题边距 */
  font-size: 15px;
  color: #333;
}

.group-item p {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.footer {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 20px 10px;
  line-height: 1.6;
}