/* 首页特定样式 */
.home-header {
  text-align: center;
  margin: 2rem 0 3rem;
}

.home-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

body.dark-mode .home-header h1 {
  color: #f3f4f6;
}

.home-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .home-header p {
  color: #9ca3af;
}

/* 分类导航 */
.category-nav {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #e5e7eb;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.category-btn.active,
.category-btn:hover {
  background-color: #3b82f6;
  color: white;
}

body.dark-mode .category-btn {
  background-color: #4b5563;
  color: #f3f4f6;
}

/* 最近使用和热门推荐 */
.recent-tools {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}

.recent-tools::-webkit-scrollbar {
  display: none;
}

.recent-tool-card {
  min-width: 150px;
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

body.dark-mode .recent-tool-card {
  background-color: #374151;
}

.recent-tool-card h4 {
  margin: 0.5rem 0;
  color: #3b82f6;
}

.recent-tool-card p {
  font-size: 0.75rem;
  color: #6b7280;
}

body.dark-mode .recent-tool-card p {
  color: #9ca3af;
}

/* 底部 */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

body.dark-mode .footer {
  border-color: #4b5563;
  color: #9ca3af;
}

.footer a {
  color: #3b82f6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.stats {
  margin: 1rem 0;
  font-weight: 500;
}