* {
  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;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

header p {
  color: #666;
  font-size: 0.95rem;
}

.search-box {
  margin-bottom: 25px;
}

#search {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

#search:focus {
  border-color: #4a90e2;
}

.stats {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9rem;
}

.resource-list {
  display: grid;
  gap: 16px;
}

.resource-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.resource-card h3 a {
  color: #1a73e8;
  text-decoration: none;
}

.resource-card h3 a:hover {
  text-decoration: underline;
}

.resource-card .desc {
  color: #555;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #eef4ff;
  color: #1a73e8;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: white;
  border-radius: 12px;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #999;
  font-size: 0.85rem;
}