/* SEO文章列表样式 */
.sec-seo-articles {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.seo-article-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.seo-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.seo-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.seo-article-card:hover::before {
  transform: scaleX(1);
}

.article-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #ffffff;
}

.article-date {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
}

.seo-article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px 0;
  color: #111827;
}

.seo-article-card h3 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-article-card h3 a:hover {
  color: #3b82f6;
}

.article-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-link:hover {
  color: #2563eb;
  transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sec-seo-articles {
    padding: 60px 0;
  }

  .seo-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-article-card {
    padding: 24px;
  }

  .seo-article-card h3 {
    font-size: 16px;
  }

  .article-excerpt {
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .seo-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .seo-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .sec-seo-articles {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  }

  .seo-article-card {
    background: #1f2937;
    border-color: #374151;
  }

  .seo-article-card h3,
  .seo-article-card h3 a {
    color: #f9fafb;
  }

  .seo-article-card h3 a:hover {
    color: #60a5fa;
  }

  .article-excerpt {
    color: #9ca3af;
  }

  .article-date {
    background: #374151;
    color: #9ca3af;
  }

  .article-link {
    color: #60a5fa;
  }

  .article-link:hover {
    color: #93c5fd;
  }
}
