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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  background: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid #e9ecef;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.lang-link:hover {
  background: #f8f9fa;
  color: #007bff;
}

/* Main Content */
.main-content {
  padding: 40px 30px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Section */
.category-section {
  margin-bottom: 60px;
}

.category-header {
  position: sticky;
  top: 0px;
  background: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #007bff;
  margin-bottom: 30px;
  z-index: 50;
}

.category-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  font-size: 36px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.tool-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-header {
  margin-bottom: 15px;
}

.tool-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tool-title:hover {
  color: #007bff;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tool-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

.tool-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-description a {
  text-decoration: none;
}

.tool-description a:hover {
  text-decoration: underline;
}

.tool-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 40px 30px 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  margin: 0 15px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-lang {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-lang a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc3c7;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-lang a:hover {
  background: #34495e;
  color: #fff;
}

.copyright {
  color: #95a5a6;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .page {
    margin: 0;
  }

  .header {
    padding: 15px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .main-content {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .category-title {
    font-size: 20px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-actions {
    flex-direction: column;
  }

  .footer {
    padding: 30px 20px 15px;
  }

  .footer-lang {
    flex-direction: column;
    align-items: center;
  }
}
