/* ============================================
   AI Game Tools Daily - 翠绿主题样式
   清理版本 - 去除重复定义
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* 翠绿配色 */
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --cyan-500: #06b6d4;
  
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  
  --accent: var(--emerald-500);
  --accent-light: var(--emerald-400);
  --accent-glow: rgba(16, 185, 129, 0.15);
}

/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, var(--slate-950) 0%, #0a1f1a 50%, var(--slate-950) 100%);
  background-attachment: fixed;
  color: var(--slate-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Layout Components ---------- */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Site Header ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-800);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-100);
  line-height: 1.25;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--emerald-400);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-400);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--emerald-300);
  background-color: var(--emerald-900);
}

.nav-link.active {
  color: var(--emerald-400);
  background-color: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 42rem;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--emerald-400);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--slate-100);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--emerald-400) 0%, var(--teal-400) 50%, var(--cyan-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--slate-300);
  line-height: 1.625;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--emerald-400);
}

.update-badge .pulse {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--emerald-500);
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.scroll-link {
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.scroll-link:hover {
  color: var(--emerald-300);
}

/* ---------- Today Section ---------- */
.today-section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-100);
}

.section-date {
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* ---------- Article Cards ---------- */
.articles-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  background: linear-gradient(135deg, var(--slate-800) 0%, rgba(6, 78, 59, 0.3) 100%);
  border: 1px solid var(--slate-700);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-500);
}

.article-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-summary {
  color: var(--slate-300);
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-700);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--emerald-300);
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Category Badges ---------- */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.category-ai-art { background: linear-gradient(135deg, #ec4899, #f472b6); color: white; }
.category-ai-code { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }
.category-ai-audio { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: white; }
.category-ai-3d { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.category-ai-animation { background: linear-gradient(135deg, #06b6d4, #22d3ee); color: white; }
.category-ai-tools { background: linear-gradient(135deg, var(--emerald-500), var(--teal-400)); color: white; }

/* ---------- Archive Section ---------- */
.archive-preview {
  padding: 4rem 0;
  border-top: 1px solid var(--slate-800);
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-100);
}

.view-all {
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--emerald-300);
}

.archive-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.archive-item-compact:hover {
  border-color: var(--emerald-500);
  background: var(--slate-700);
}

.archive-date-compact {
  font-size: 0.875rem;
  color: var(--emerald-400);
  font-weight: 500;
}

.archive-title-compact {
  flex: 1;
  margin-left: 1rem;
  color: var(--slate-300);
  font-size: 0.875rem;
}

.archive-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--slate-500);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--slate-800);
}

.site-footer p {
  text-align: center;
  color: var(--slate-500);
  font-size: 0.875rem;
}

/* ---------- Empty State ---------- */
.empty-state {
  padding: 4rem 0;
  text-align: center;
}

.empty-message {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 0.5rem;
}

.empty-subtitle {
  color: var(--slate-400);
}

/* ---------- Article Content (Post Page) ---------- */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--slate-100);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--slate-300);
}

.article-content a {
  color: var(--emerald-400);
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--emerald-300);
}

.article-content .article-meta {
  margin-bottom: 1rem;
}

.article-content .article-footer-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-700);
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-950);
}

::-webkit-scrollbar-thumb {
  background: var(--emerald-800);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-700);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
}
