/* ===== 首页样式 ===== */

/* Hero Banner */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(139,115,85,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) { width: 4px; height: 4px; left: 10%; top: 20%; animation-delay: 0s; }
.hero-particle:nth-child(2) { width: 2px; height: 2px; left: 25%; top: 60%; animation-delay: 1.5s; }
.hero-particle:nth-child(3) { width: 3px; height: 3px; left: 45%; top: 30%; animation-delay: 3s; }
.hero-particle:nth-child(4) { width: 2px; height: 2px; left: 60%; top: 70%; animation-delay: 0.8s; }
.hero-particle:nth-child(5) { width: 5px; height: 5px; left: 75%; top: 15%; animation-delay: 2.2s; }
.hero-particle:nth-child(6) { width: 3px; height: 3px; left: 85%; top: 50%; animation-delay: 4s; }
.hero-particle:nth-child(7) { width: 2px; height: 2px; left: 50%; top: 80%; animation-delay: 1.2s; }
.hero-particle:nth-child(8) { width: 4px; height: 4px; left: 15%; top: 85%; animation-delay: 3.5s; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-40px) scale(1.5); }
  90% { opacity: 0.1; }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title .gold {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-visual-rings {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.2);
  transform: translate(-50%, -50%);
  animation: ringExpand 6s ease-out infinite;
}

.hero-ring:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 160px; height: 160px; animation-delay: 0.8s; }
.hero-ring:nth-child(3) { width: 220px; height: 220px; animation-delay: 1.6s; }
.hero-ring:nth-child(4) { width: 280px; height: 280px; animation-delay: 2.4s; }

@keyframes ringExpand {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  filter: drop-shadow(0 0 20px rgba(201,169,110,0.4));
  animation: float 3s ease-in-out infinite;
}

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

/* 每日一签 */
.daily-quote-section {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.daily-quote {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.daily-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 180px;
  color: rgba(201,169,110,0.06);
  line-height: 1;
  pointer-events: none;
}

.daily-quote:hover {
  border-color: var(--accent-bronze);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.quote-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.quote-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.quote-author-info {
  display: flex;
  flex-direction: column;
}

.quote-author-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.quote-author-bio {
  font-size: 12px;
  color: var(--text-muted);
}

.quote-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

/* 精选推荐 */
.featured-section {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bronze);
}

.featured-card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.featured-card-image .card-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .card-img-bg {
  transform: scale(1.05);
}

.featured-card-image .card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.8) 0%, transparent 60%);
}

.featured-card-image .card-tag-top {
  position: absolute;
  top: 16px;
  left: 16px;
}

.featured-card-body {
  padding: 20px 24px 24px;
}

.featured-card-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* 主题卡片背景图 */
.card-bg-greek {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.card-bg-chinese {
  background: linear-gradient(135deg, #1a1814 0%, #2c1e16 50%, #1a1410 100%);
}

.card-bg-renaissance {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #1a1414 100%);
}

.card-bg-industrial {
  background: linear-gradient(135deg, #141a1e 0%, #1a2a30 50%, #0d1a20 100%);
}

.card-bg-enlightenment {
  background: linear-gradient(135deg, #1a1a24 0%, #1e2230 50%, #141828 100%);
}

.card-bg-war {
  background: linear-gradient(135deg, #1a1414 0%, #2a1a1a 50%, #1a1010 100%);
}

/* 统计区域 */
.stats-section {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-bronze);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 40px 16px;
  }
  .hero-title {
    font-size: 32px;
  }
  .daily-quote {
    padding: 32px 24px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
