@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(-45deg, #48b22a, #5eda3c, #3a9121, #2d7019);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f5f2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader-content {
  width: 48px;
  height: 48px;
  border: 5px solid #48b22a;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.glow {
  box-shadow: 0 0 20px rgba(72, 178, 42, 0.3);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

.command-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(72, 178, 42, 0.2);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.arrow-icon.active {
  transform: rotate(180deg);
}

.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(72, 178, 42, 0.2);
  transition: border-color 0.3s ease;
  will-change: transform, opacity, box-shadow;
  transform-style: preserve-3d;
  perspective: 1000px;
  color: #333;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(72, 178, 42, 0.15);
  border-color: rgba(72, 178, 42, 0.4);
}

.pulse-on-hover {
  position: relative;
}

.pulse-on-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
}

.shine-effect:hover::before {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

.gradient-bg {
  background: linear-gradient(45deg, #48b22a, #2d7019);
}

.step-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, opacity;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

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

.step-number {
  font-size: 90px;
  font-weight: bold;
  opacity: 0.6;
  position: absolute;
  color: #48b22a;
  top: -20px;
  right: 20px;
  z-index: 5;
}

.highlight-icon {
  will-change: transform, opacity;
  transform-origin: center;
}

.fadeIn {
  opacity: 0;
}

.fadeIn.animate {
  animation: fadeInAnim 0.8s forwards;
}

@keyframes fadeInAnim {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:gap-8 {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:text-left {
    text-align: left;
  }
  .lg\:justify-start {
    justify-content: flex-start;
  }
  .lg\:mt-0 {
    margin-top: 0;
  }
  .lg\:block {
    display: block;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

.menu-icon {
  transition: d 0.2s ease-in-out;
}

#mobileMenu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
}

.testimonial-slide {
  transform: translateX(100%);
  opacity: 0;
}

.cta-button {
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* 页面顶部和底部渐变遮罩 */
body:before, body:after {
  content: "";
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, #f7f5f2 10%, rgba(247, 245, 242, 0));
  pointer-events: none;
}

body:after {
  top: auto;
  bottom: 0;
  background: linear-gradient(to top, #f7f5f2 50%, rgba(247, 245, 242, 0));
}

/* 滚动指示器样式 */
.scroll {
  width: 34px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-family: Roboto, sans-serif;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #333;
  text-align: center;
}

.scroll span {
  display: block;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.scroll svg {
  width: 18px;
  height: 30px;
  animation: scroll 0.95s ease-in-out alternate infinite;
  fill: none;
  stroke: #48b22a;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  stroke-width: 1;
  display: block;
  margin: 0 auto;
}

/* 粒子样式 */
.circle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 40%;
  opacity: 0;
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.14, 0.15, 0.13, 0.99);
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

/* 确保所有部分在滚动时正常显示 */
section {
  position: relative;
  z-index: 1;
}

/* 让粒子容器铺满整个hero部分 */
#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* 添加常规滚动行为 */
html, body {
  scroll-behavior: smooth;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f7f5f2;
  color: #333;
}

/* 让跳转链接有平滑行为 */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* 截图展示样式 */
#screenshots-container {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(72, 178, 42, 0.1);
}

.screenshots-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 450px;
  padding: 0;
}

.screenshots-track {
  position: relative;
  will-change: transform;
  display: flex;
  gap: 20px;
  padding: 20px 0;
}

.screenshot-item {
  position: relative;
  width: 280px;
  height: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screenshot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.screenshot-card img {
  object-fit: contain;
  width: 100%;
  max-height: 400px;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

/* 截图说明 */
.screenshot-caption {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 0 10px;
  color: #333;
}

.screenshot-caption h4 {
  color: #333;
}

/* 当前激活的截图样式 */
.screenshot-card.active {
  box-shadow: 0 25px 50px rgba(72, 178, 42, 0.35);
  z-index: 2;
  transform: translateY(-10px);
}

.screenshot-card.active .screenshot-caption {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动进度条 */
.scroll-progress {
  z-index: 10;
  backdrop-filter: blur(5px);
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
  transition: width 0.1s linear;
}

/* 滚动提示 */
.scroll-hint {
  animation: fadeInOut 2s infinite alternate;
  z-index: 10;
  position: relative;
  margin-top: 10px;
  color: #333;
}

@keyframes fadeInOut {
  from { opacity: 0.3; }
  to { opacity: 0.8; }
}

/* 用户评论区横向滑动样式 */
#testimonials-container {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(72, 178, 42, 0.1);
}

.testimonials-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 400px;
  padding: 0;
}

.testimonials-track {
  position: relative;
  will-change: transform;
  display: flex;
  gap: 20px;
  padding: 20px 0;
}

.testimonial-item {
  position: relative;
  width: 400px;
  height: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(72, 178, 42, 0.1);
}

.testimonial-card.active {
  box-shadow: 0 25px 50px rgba(72, 178, 42, 0.35);
  z-index: 2;
  transform: translateY(-10px);
}

.testimonials-progress {
  z-index: 10;
  backdrop-filter: blur(5px);
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.testimonials-progress-bar {
  transition: width 0.1s linear;
}

.testimonials-scroll-hint {
  animation: fadeInOut 2s infinite alternate;
  z-index: 10;
  position: relative;
  margin-top: 10px;
  color: #333;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .step-card {
    margin-left: 120px;
    width: 70%;
  }
  
  .step-wrapper:nth-child(even) .step-card {
    margin-left: auto;
    margin-right: 120px;
  }
}

@media (max-width: 768px) {
  .step-indicator {
    left: 20px;
    transform: none;
  }
  
  .step-card {
    margin-left: 20px !important; /* 强制覆盖所有步骤卡片的左边距 */
    margin-right: 20px !important; /* 强制覆盖所有步骤卡片的右边距 */
    width: calc(100% - 40px) !important; /* 设置宽度为容器宽度减去左右边距 */
  }
  
  .step-wrapper:nth-child(even) .step-card {
    margin-left: 20px !important; /* 偶数卡片也使用相同的左边距 */
    margin-right: 20px !important;
  }
  
  .usage-svg-container {
    left: 20px;
    transform: none;
    max-width: 60px; /* 减小SVG容器宽度 */
  }
  
  /* 调整路径线的位置 */
  #usage-path-container {
    min-height: 1400px; /* 增大容器高度适应更高的卡片 */
  }
  
  .usage-steps {
    padding-left: 10px; /* 给步骤容器添加左内边距 */
    padding-right: 10px; /* 给步骤容器添加右内边距 */
  }
  
  .screenshot-item {
    width: 230px;
  }
  
  .screenshots-wrapper {
    min-height: 380px;
  }
  
  .testimonial-item {
    width: 320px;
  }
  
  .testimonials-wrapper {
    min-height: 350px;
  }
}

/* 路线图样式 */
#usage-path-container {
  position: relative;
  margin-top: 60px;
  min-height: 1200px;
}

.usage-svg-container {
  position: absolute;
  height: 100%;
  width: 100%;
  max-width: 300px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.usage-path-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.path-line {
  fill: none;
  stroke: #48b22a;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(72, 178, 42, 0.9));
}

.path-ball {
  fill: #48b22a;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(72, 178, 42, 1));
}

.ball-start {
  opacity: 1;
}

.ball-end {
  opacity: 1;
}

/* 步骤容器样式 */
.usage-steps {
  position: relative;
  z-index: 2;
}

.step-wrapper {
  position: relative;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
}

/* 保持原始样式但增加z-index */
.step-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.step-dot {
  width: 20px;
  height: 20px;
  background: #48b22a;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 15px rgba(72, 178, 42, 0.5);
  opacity: 0;
  pointer-events: none;
}

.step-card {
  margin-left: 170px;
  width: 80%;
  max-width: 500px;
  transition: all 0.5s ease;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid rgba(72, 178, 42, 0.2);
}

/* 交替排列卡片 */
.step-wrapper:nth-child(even) .step-card {
  margin-left: auto;
  margin-right: 170px;
}

/* GIF Carousel styles */
.gif-carousel-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gif-carousel,
.gif-carousel-mobile {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 
              0 0 30px rgba(72, 178, 42, 0.2);
  border: 3px solid rgba(72, 178, 42, 0.6);
  transition: all 0.3s ease;
  flex: 1;
}

.gif-carousel:hover,
.gif-carousel-mobile:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(72, 178, 42, 0.3);
  transform: translateY(-5px);
}

/* 修改导航容器为不同的布局样式 */
.carousel-navigation-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* 桌面端导航按钮默认隐藏，悬停时显示 */
.gif-carousel .carousel-nav-btn {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  z-index: 10;
}

.gif-carousel-wrapper:hover .gif-carousel .carousel-nav-btn {
  opacity: 1;
}

.gif-carousel .carousel-nav-btn.carousel-prev {
  left: 10px;
}

.gif-carousel .carousel-nav-btn.carousel-next {
  right: 10px;
}

/* 移动端导航按钮显示在图片下方 */
.gif-carousel-mobile .carousel-nav-btn {
  display: none;
}

/* 为移动端添加底部导航容器 */
.mobile-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
  z-index: 5;
}

/* Navigation button styles */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  background-color: white;
  border: 2px solid rgba(72, 178, 42, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
  color: #333;
  flex-shrink: 0;
  pointer-events: all !important;
  outline: none;
}

.carousel-nav-btn svg {
  pointer-events: none;
}

.carousel-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn:active {
  background-color: rgba(255, 255, 255, 1);
}

.carousel-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.8s ease;
  filter: brightness(1.05) contrast(1.05);
}

.carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 5;
}

.gif-carousel-mobile {
  max-width: calc(100% - 20px);
  width: calc(100% - 20px);
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-nav-btn {
    width: 38px;
    height: 38px;
  }
  
  .carousel-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .gif-carousel-wrapper {
    width: calc(100% - 20px);
    max-width: 100%;
  }
  
  .gif-carousel-mobile {
    max-width: 100%;
  }
}
