/* Worldview Hero */
.worldview-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.ancient-tree-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  animation: tree-pulse 6s infinite ease-in-out;
}

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

.tree-core {
  width: 120px;
  height: 180px;
  background: linear-gradient(to top, #1E493B, #2d6a4f);
  border-radius: 60px 60px 20px 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(30, 73, 59, 0.5);
  animation: tree-grow 4s infinite ease-in-out;
}

@keyframes tree-grow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.05); }
}

.energy-particles::before,
.energy-particles::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold);
  animation: particle-float 4s infinite ease-in-out;
}

.energy-particles::before {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.energy-particles::after {
  top: 40%;
  right: 25%;
  animation-delay: 2s;
}

@keyframes particle-float {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: translateY(-40px) scale(1.5); 
    opacity: 1; 
  }
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Timeline Section */
.civilization-timeline {
  background: linear-gradient(180deg, var(--dark-ink) 0%, rgba(30, 73, 59, 0.08) 50%, var(--dark-ink) 100%);
}

.timeline-interactive {
  max-width: 1100px;
  margin: 80px auto 0;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.2),
    var(--gold),
    rgba(212, 175, 55, 0.2)
  );
}

.era-card {
  display: flex;
  gap: 48px;
  margin-bottom: 80px;
  position: relative;
  transition: all 0.4s ease;
}

.era-card:hover {
  transform: translateX(10px);
}

.era-card:last-child {
  margin-bottom: 0;
}

.era-marker {
  flex-shrink: 0;
  width: 160px;
  text-align: right;
  position: relative;
}

.era-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
}

.era-dot {
  position: absolute;
  right: -28px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--dark-ink);
  border: 3px solid var(--gold);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.era-card:hover .era-dot {
  background: var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.era-dot.pulse {
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
}

.era-content {
  flex: 1;
  background: rgba(16, 20, 24, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
}

.era-card:hover .era-content {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.era-content h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.era-period {
  font-size: 0.95rem;
  color: rgba(245, 237, 224, 0.5);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.era-description {
  color: rgba(245, 237, 224, 0.75);
  line-height: 1.9;
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.era-keywords {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.era-keywords span {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--gold);
}

.era-card.highlight .era-content {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(30, 73, 59, 0.15);
}

.era-card.ultimate .era-content {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(30, 73, 59, 0.2), rgba(212, 175, 55, 0.1));
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

.era-card.ultimate .era-number {
  color: rgba(212, 175, 55, 0.4);
}

/* Tea Realms Overview */
.tea-realms-overview {
  background: var(--dark-ink);
}

.realms-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.realm-preview {
  background: rgba(16, 20, 24, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.realm-preview:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.realm-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realm-atmosphere {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  animation: atmosphere-breathe 5s infinite ease-in-out;
}

.puer-realm .realm-atmosphere {
  background: radial-gradient(circle, rgba(46, 125, 50, 0.4), transparent);
}

.liubao-realm .realm-atmosphere {
  background: radial-gradient(circle, rgba(96, 125, 139, 0.4), transparent);
}

.baicha-realm .realm-atmosphere {
  background: radial-gradient(circle, rgba(176, 190, 197, 0.4), transparent);
}

.anhua-realm .realm-atmosphere {
  background: radial-gradient(circle, rgba(121, 85, 72, 0.4), transparent);
}

@keyframes atmosphere-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.realm-title-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
}

.realm-title-overlay h3 {
  font-size: 1.8rem;
  color: var(--cloud-white);
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.realm-title-overlay p {
  color: rgba(245, 237, 224, 0.7);
  font-size: 0.95rem;
}

.realm-details {
  padding: 28px;
}

.realm-details p {
  color: rgba(245, 237, 224, 0.7);
  line-height: 1.8;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.realm-details strong {
  color: var(--gold);
}

.btn-sm {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  margin-top: 16px;
  display: inline-block;
}

/* Spirit System */
.spirit-system {
  background: linear-gradient(180deg, var(--dark-ink) 0%, rgba(30, 73, 59, 0.1) 50%, var(--dark-ink) 100%);
}

.system-intro {
  max-width: 900px;
  margin: 80px auto 0;
  text-align: center;
}

.system-concept {
  margin-bottom: 60px;
}

.concept-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: icon-bounce 3s infinite ease-in-out;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.system-concept h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.system-concept p {
  color: rgba(245, 237, 224, 0.75);
  line-height: 2;
  font-size: 1.05rem;
  max-width: 750px;
  margin: 0 auto;
}

.spirit-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.mini-spirit-card {
  background: rgba(16, 20, 24, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 28px 20px;
  transition: all 0.3s ease;
}

.mini-spirit-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.mini-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cloud-white);
}

.lingxi-color {
  background: linear-gradient(135deg, #b0bec5, #78909c);
}

.guxuan-color {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.moyin-color {
  background: linear-gradient(135deg, #455a64, #263238);
}

.qianyan-color {
  background: linear-gradient(135deg, #795548, #4e342e);
}

.mini-spirit-card h4 {
  color: var(--cloud-white);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.mini-spirit-card p {
  color: rgba(245, 237, 224, 0.6);
  font-size: 0.88rem;
}

.cta-section {
  margin-top: 32px;
}

/* Core Values */
.core-values {
  background: var(--dark-ink);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.value-card {
  background: rgba(30, 73, 59, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.value-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.value-card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}

.value-card p {
  color: rgba(245, 237, 224, 0.7);
  line-height: 1.8;
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ancient-tree-animation {
    width: 400px;
    height: 400px;
  }

  .tree-core {
    width: 90px;
    height: 140px;
  }

  .timeline-line {
    left: 50px;
  }

  .era-marker {
    width: 100px;
  }

  .era-number {
    font-size: 2rem;
  }

  .era-dot {
    right: -18px;
    width: 13px;
    height: 13px;
  }

  .era-card {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .worldview-hero {
    min-height: 60vh;
  }

  .ancient-tree-animation {
    width: 280px;
    height: 280px;
  }

  .tree-core {
    width: 70px;
    height: 110px;
  }

  .energy-particles::before,
  .energy-particles::after {
    width: 6px;
    height: 6px;
  }

  .timeline-interactive {
    padding-left: 0;
  }

  .timeline-line {
    left: 20px;
  }

  .era-card {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
  }

  .era-marker {
    width: 100%;
    text-align: left;
    padding-left: 45px;
  }

  .era-number {
    font-size: 1.5rem;
  }

  .era-dot {
    left: 12px;
    right: auto;
  }

  .era-content {
    padding: 24px;
  }

  .era-content h3 {
    font-size: 1.5rem;
  }

  .realms-showcase,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .spirit-grid-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}
