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

body {
  font-family: 'Minecraft', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #e0e0e0;
}

header {
  background-color: #2c2c2c;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

#search-input {
  padding: 0.5rem;
  width: 300px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

#search-button {
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}

#search-button:hover {
  background-color: #45a049;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background-color: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination {
  display: flex;
  align-items: center;
}

.pagination button {
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0.5rem;
}

.pagination button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#page-info {
  margin: 0 1rem;
}

.limit-selector {
  display: flex;
  align-items: center;
}

#limit-select {
  margin-left: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#lands-container {
  position: relative;
  min-height: 400px;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #666;
}

.error-message {
  background-color: #ffdddd;
  color: #f44336;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

#lands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.land-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.land-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.land-card h2 {
  color: #4CAF50;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.land-card h3 {
  color: #2c2c2c;
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.land-info, .land-coords {
  margin-bottom: 1rem;
}

.land-info p, .land-coords p {
  margin-bottom: 0.5rem;
}

.members-list, .permissions-list {
  list-style-type: none;
  margin-left: 1rem;
}

.members-list li, .permissions-list li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.members-list li:before, .permissions-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4CAF50;
}

.members-container, .permissions-container {
  position: relative;
}

.members-tooltip, .permissions-tooltip {
  display: none;
  position: absolute;
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 4px;
  z-index: 100;
  width: 200px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  left: 0;
  top: 100%;
}

.members-container:hover .members-tooltip,
.permissions-container:hover .permissions-tooltip {
  display: block;
}

.more-indicator {
  color: #4CAF50;
  cursor: pointer;
  font-weight: bold;
}

footer {
  background-color: #2c2c2c;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #lands-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  #search-input {
    width: 200px;
  }
}

@media (max-width: 480px) {
  #lands-grid {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .search-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  #search-input {
    width: 100%;
    border-radius: 4px;
  }
  
  #search-button {
    width: 100%;
    border-radius: 4px;
  }
}