* {
  padding: 0;
  margin: 0;
}

:root {
  --primary-color: #4caf50;
  --secondary-color: #8bc34a;
  --dark-color: #2e7d32;
  --light-color: hsla(120, 38%, 67%, 0.7);
  --text-color: #423f3f;
  --background-color: #f5f5f5;
  --card-color: #ffffff;
  --offline-color: #f44336;
}

.minecraft-font {
  font-family: "Minecraft", sans-serif;
  color: #494a52;
}

.server-info h2,
.server-info h3,
.server-info h4 {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.server-info {
  background-color: antiquewhite;
  height: 100%;
  background-image: url("../images/live_bk.png");
  background-repeat: no-repeat;
  background-position: cent;
  background-size: cover;

  align-items: center;
  justify-content: center;

  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.server-status {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-color);
}

.server-status h2 {
  margin-right: 15px;
  margin-bottom: 0;
}

.status-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}

.status-indicator.online {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.status-indicator.offline {
  background-color: var(--offline-color);
  box-shadow: 0 0 10px var(--offline-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  max-height: 300px;
}

.info-card {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 6px;
  width: 600px;
  height: 280px;
  margin: 0 auto;
}

.info-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 两端对齐 */
  height: 89%;
}

.info-card h3 {
  margin-top: 0;
  color: var(--dark-color);
  border-bottom: 1px solid var(--dark-color);
  padding-bottom: 5px;
}

.player-list {
  max-height: 200px;
  overflow-y: auto;
}

.player-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-list li {
  background-image: url("../images/player.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.server-icon-container {
  text-align: center;
}

.server-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.refresh-info {
  text-align: center;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

.hidden {
  display: none !important;
}
