/* 全局重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* 特性标签 */
.features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.feature {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* 工具网格布局 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* 工具卡片 */
.tool-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
  animation-fill-mode: both;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.tool-card h2 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.tool-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  flex: 1;
  font-size: 0.95rem;
}

.features-list {
  list-style: none;
  margin-bottom: 20px;
}

.features-list li {
  color: #555;
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.9rem;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.tool-link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-align: center;
  font-size: 0.95rem;
}

.tool-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tech-stack {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-tag {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* 页脚 */
footer {
  text-align: center;
  color: white;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

footer p {
  opacity: 0.9;
  margin-bottom: 10px;
}

footer a {
  color: white;
  text-decoration: underline;
}

/* 动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

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

  .features {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tool-card {
    padding: 20px;
  }
}
