/* Custom styles supplementing Tailwind CSS */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom font stack for Chinese */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Navigation active state */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: #3B82F6;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3B82F6;
}

/* Feature card hover effects */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Step number styling */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Screenshot placeholder styling */
.screenshot-placeholder {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

/* Code snippet styling */
.code-snippet {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background-color: #F3F4F6;
  border-radius: 0.375rem;
  border: 1px solid #E5E7EB;
  display: inline-block;
  user-select: all;
}

/* Button gradient effects */
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #DBEAFE 100%);
}

/* Section dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
  margin: 3rem 0;
}

/* Comparison table styling */
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
  background: white;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .icon-cell {
  text-align: center;
  font-size: 1.5rem;
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-blue {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-green {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-amber {
  background-color: #FEF3C7;
  color: #92400E;
}

/* Icon styling */
.icon-lg {
  width: 3rem;
  height: 3rem;
}

.icon-md {
  width: 2rem;
  height: 2rem;
}

/* Copy button for code snippets */
.copy-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: #3B82F6;
}

.copy-btn:active {
  transform: scale(0.95);
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem;
  background-color: #1F2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-bottom: 0.5rem;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Alert boxes */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.alert-info {
  background-color: #DBEAFE;
  border-left: 4px solid #3B82F6;
  color: #1E40AF;
}

.alert-warning {
  background-color: #FEF3C7;
  border-left: 4px solid #F59E0B;
  color: #92400E;
}

.alert-success {
  background-color: #D1FAE5;
  border-left: 4px solid #10B981;
  color: #065F46;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .screenshot-placeholder {
    min-height: 200px;
  }
}
