/* ========================================
   Features Section - 原神介绍网站
   ======================================== */

.features-section {
  position: relative;
  z-index: 1;
}

/* Timeline Layout */
.features-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Center Axis */
.features-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-border), var(--color-border), transparent);
}

/* Feature Item */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

.feature-item:last-child {
  margin-bottom: 0;
}

/* Timeline Node */
.feature-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 2px solid var(--color-accent-gold);
  z-index: 2;
  transition: var(--transition-base);
}

.feature-item:hover::before {
  background: var(--color-accent-gold);
  box-shadow: 0 0 20px rgba(230, 180, 34, 0.4);
}

/* Left / Right Alternating */
.feature-item:nth-child(odd) {
  flex-direction: row;
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-item:nth-child(odd) .feature-content {
  text-align: right;
  padding-right: 0;
}

.feature-item:nth-child(even) .feature-content {
  text-align: left;
  padding-left: 0;
}

.feature-item:nth-child(odd) .feature-visual {
  margin-left: auto;
}

.feature-item:nth-child(even) .feature-visual {
  margin-right: auto;
}

/* Content Side */
.feature-content {
  width: calc(50% - 38px);
  flex-shrink: 0;
}

.feature-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* Visual Side (Icon) */
.feature-visual {
  width: calc(50% - 38px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.feature-item:hover .feature-icon-wrap {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow-gold);
  transform: scale(1.05);
}

.feature-icon-wrap svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-accent-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 768px) {
  .features-timeline::before {
    left: 24px;
  }

  .feature-item,
  .feature-item:nth-child(odd),
  .feature-item:nth-child(even) {
    flex-direction: row;
    gap: 24px;
    padding-left: 56px;
  }

  .feature-item::before {
    left: 24px;
  }

  .feature-content,
  .feature-item:nth-child(odd) .feature-content,
  .feature-item:nth-child(even) .feature-content {
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .feature-visual,
  .feature-item:nth-child(odd) .feature-visual,
  .feature-item:nth-child(even) .feature-visual {
    display: none;
  }

  .feature-item {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .feature-item,
  .feature-item:nth-child(odd),
  .feature-item:nth-child(even) {
    padding-left: 44px;
    gap: 16px;
  }

  .features-timeline::before {
    left: 16px;
  }

  .feature-item::before {
    left: 16px;
    width: 12px;
    height: 12px;
  }
}
