* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f5f8ff;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
  color: #5c6bc0;
}

header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

header p {
  color: #888;
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.band-card {
  background-color: #e8eaf6;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 2px solid #c5cae9;
  cursor: pointer;
  transition: transform 0.2s;
}

.band-card:hover {
  transform: translateY(-4px);
}

.avatar-area {
  width: 100%;
  height: 220px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  color: #999;
}

.avatar-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.band-name {
  color: #5c6bc0;
  font-weight: bold;
  font-size: 16px;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 320px;
}

.modal-content h3 {
  color: #5c6bc0;
  margin-bottom: 15px;
  text-align: center;
}

.member-list {
  max-height: 320px;
  overflow-y: auto;
  margin: 10px 0;
}

.member-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  border-radius: 4px;
}

.member-item:hover {
  background-color: #e8eaf6;
}

.close-btn {
  width: 100%;
  margin-top: 12px;
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #999;
  font-size: 14px;
}

/* 手机自适应 */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .avatar-area {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* 新增：顶部按钮组样式 */
.btn-group {
  margin: 16px 0;
}

.btn-group button {
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 6px;
  transition: background 0.2s;
}

.btn-group button:hover {
  background-color: #4959a8;
}

/* 原有样式保留不变 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f5f8ff;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
  color: #5c6bc0;
}

header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

header p {
  color: #888;
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.band-card {
  background-color: #e8eaf6;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 2px solid #c5cae9;
  cursor: pointer;
  transition: transform 0.2s;
}

.band-card:hover {
  transform: translateY(-4px);
}

.avatar-area {
  width: 100%;
  height: 220px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  color: #999;
}

.avatar-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.band-name {
  color: #5c6bc0;
  font-weight: bold;
  font-size: 16px;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 320px;
}

.modal-content h3 {
  color: #5c6bc0;
  margin-bottom: 15px;
  text-align: center;
}

.member-list {
  max-height: 320px;
  overflow-y: auto;
  margin: 10px 0;
}

.member-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  border-radius: 4px;
}

.member-item:hover {
  background-color: #e8eaf6;
}

.close-btn {
  width: 100%;
  margin-top: 12px;
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #999;
  font-size: 14px;
}

/* 手机自适应 */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .avatar-area {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}