.techstack-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
  padding: 24px;
  border: 2px solid var(--accent-alpha-30);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px var(--accent-alpha-10);
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  font-size: 36px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.techstack-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tech-item {
  display: inline-flex;
}

.tech-badge-link {
  text-decoration: none;
  display: inline-flex;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Segoe UI', system-ui, sans-serif;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.tech-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 8px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  background-color: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  width: 52px;
}

.badge-icon img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.badge-icon-placeholder {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.badge-text {
  padding: 0 8px 0 6px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
}

/* 响应式设计 */

@media (max-width: 768px) {
  .techstack-section {
    padding: 16px 10px;
  }

  .section-title {
    font-size: 28px;
  }
  
  .techstack-container {
    padding: 12px 10px;
  }
  
  .tech-items {
    gap: 4px;
  }
  
  .tech-badge {
    height: 30px;
    font-size: 16px;
  }
  
  .badge-icon {
    padding: 0 4px 0 5px;
    height: 30px;
    width: 42px;
  }
  
  .badge-icon img {
    width: 28px;
    height: 28px;
  }
  
  .badge-icon-placeholder {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .badge-text {
    padding: 0 6px 0 4px;
    height: 30px;
    line-height: 30px;
  }
}

@media (max-width: 480px) {
  .techstack-section {
    padding: 14px 8px;
  }

  .techstack-container {
    padding: 10px 8px;
  }
}
