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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

header {
  background: #1a1a2e;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

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

#loading {
  text-align: center;
  color: #888;
  font-size: 1.1rem;
  padding: 3rem 0;
}

#error {
  text-align: center;
  color: #c0392b;
  font-size: 1.1rem;
  padding: 3rem 0;
  background: #fdf0ed;
  border-radius: 8px;
}

.group-section {
  margin-bottom: 2rem;
}

.group-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.6rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  background: #eef2f7;
  color: #4a6fa5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
