/* e:\renren\css\custom.css */

/* 所有文件共用样式 */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.active {
  opacity: 1;
  transform: translateY(0);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9e237b;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* aboutus.html 独有样式 */
.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background-color: #e6d3e2;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
}

/* index.html 独有样式 */
.store-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.store-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.store-detail.active {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

/* service.html 独有样式 */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  transition: transform 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal.active .modal-content {
  transform: translateY(0);
}

/* stores.html 独有样式 */
.store-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.store-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.store-detail.active {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

/* joinus.html 独有样式 */
    /* 动画基础样式 */
    .animate-on-scroll {
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.6s ease-out;
    }

    .animate-in {
      opacity: 1;
      transform: translateY(0);
    }

    /* 不同方向的动画 */
    .animate-from-left {
      transform: translateX(-50px);
    }

    .animate-from-right {
      transform: translateX(50px);
    }

    .animate-scale {
      transform: scale(0.9);
    }

    /* 动画延迟 */
    .delay-100 {
      transition-delay: 100ms;
    }

    .delay-200 {
      transition-delay: 200ms;
    }

    .delay-300 {
      transition-delay: 300ms;
    }

    .delay-400 {
      transition-delay: 400ms;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    .support-tab-content.active {
      display: block;
    }

    .franchise-tab-content {
      display: none;
    }

    .franchise-tab-content.active {
      display: block;
    }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}