/*
Theme Name: XYLDS
Theme URI: https://www.xylds.com
Description: AI 搜索优化专业主题 - 专注 AI 搜索优化，帮助企业提升搜索排名，突破流量瓶颈
Version: 1.0.0
Author: XYLDS
Author URI: https://www.xylds.com
Text Domain: xylds-theme
Domain Path: /languages
License: GPL-2.0+
*/

/* ============================================================
   TAILWIND CDN loaded via functions.php
   ============================================================ */

/* Base Reset */
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; }
img { max-width: 100%; height: auto; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.75); }
}

/* ============================================================
   AI MODEL CARDS - GLASSMORPHISM EFFECT
   ============================================================ */
.ai-model-card {
  @apply relative overflow-hidden rounded-2xl bg-white/10 backdrop-blur-lg border border-white/20 p-6 transition-all duration-500;
}
.ai-model-card:hover {
  @apply bg-white/20 border-white/40 shadow-2xl -translate-y-1;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO ANIMATIONS
   ============================================================ */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
.float-slow { animation: float-slow 4s ease-in-out infinite; }

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8)); }
}
.icon-glow { animation: glow 2.5s ease-in-out infinite; }

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172554 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  animation: rotate-bg 30s linear infinite;
}
@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   ARTICLE PROSE STYLES
   ============================================================ */
.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
}
.article-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #334155;
}
.article-prose p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  color: #475569;
  font-size: 1.05rem;
}
.article-prose ul,
.article-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: #475569;
}
.article-prose blockquote {
  border-left: 4px solid #93c5fd;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f0f9ff;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #1e40af;
  font-style: italic;
}
.article-prose img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.article-prose a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-prose a:hover {
  color: #1d4ed8;
}
.article-prose code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #334155;
}
.article-prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}
.article-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.article-card .card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .card-thumb img {
  transform: scale(1.05);
}
.article-card .card-body {
  padding: 1.25rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 3px;
  padding: 0 4px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  text-decoration: none;
}
.page-numbers:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}
.page-numbers.current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.page-numbers.prev,
.page-numbers.next {
  min-width: auto;
  padding: 0 16px;
}
.page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .article-prose h2 { font-size: 1.25rem; }
  .article-prose p { font-size: 1rem; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}
