/* Home page - Cartoon Blue Style */

.credimetric-hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
  color: white;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.credimetric-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="150" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="160" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="180" cy="180" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="120" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 25s infinite linear;
}

.credimetric-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.credimetric-hero-text {
  /* overflow: hidden; */
}

.credimetric-hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  animation: bounceInLeft 1s ease-out;
}


@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px); 
  }
  60% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.credimetric-hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
  animation: bounceInLeft 1s ease-out 0.3s both;
}

.credimetric-hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: bounceInLeft 1s ease-out 0.6s both;
  flex-wrap: wrap; 
}

.credimetric-hero-visual {
  animation: bounceInRight 1s ease-out 0.9s both;
  display: flex;
  justify-content: center;
  align-items: center;
  /* overflow: hidden;  */
}

/* 修复右侧动画 */
@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px); 
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.credimetric-hero-icon {
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 3s infinite ease-in-out;
}


@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02); 
  }
}

.credimetric-features {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
  position: relative;
  overflow: hidden; 
}

.credimetric-features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 60,35 85,35 65,55 75,80 50,65 25,80 35,55 15,35 40,35" fill="rgba(116,185,255,0.05)"/></svg>')
    repeat;
  background-size: 150px 150px;
  animation: rotate 30s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.credimetric-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden; /* 防止卡片动画溢出 */
}

.credimetric-feature-card {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(116, 185, 255, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.credimetric-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
}


.credimetric-feature-card:hover {
  transform: translateY(-15px) rotate(1deg);
  box-shadow: 0 30px 60px rgba(116, 185, 255, 0.25);
  border-color: #74b9ff;
}

.credimetric-feature-icon {
  margin-bottom: 2rem;
  position: relative;
}

.credimetric-feature-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.credimetric-feature-description {
  color: #7f8c8d;
  line-height: 1.7;
  font-size: 1.1rem;
}

.credimetric-advantages {
  padding: 120px 0;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  position: relative;
  overflow: hidden; /* 防止背景动画溢出 */
}

.credimetric-advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="75" cy="75" r="6" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>')
    repeat;
  animation: pulse 4s infinite ease-in-out;
}

.credimetric-advantages .credimetric-section-title {
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.credimetric-advantages .credimetric-section-title::after {
  background: white;
}

.credimetric-advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden; /* 防止卡片动画溢出 */
}

.credimetric-advantage-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  color: #2c3e50;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.credimetric-advantage-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(116, 185, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.credimetric-advantage-item:hover::before {
  opacity: 1;
  animation: shine 0.6s ease-in-out;
}

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

/* 减少hover效果的缩放 */
.credimetric-advantage-item:hover {
  transform: translateY(-10px) scale(1.02); /* 减少缩放幅度 */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.credimetric-advantage-number {
  display: inline-block;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(116, 185, 255, 0.4);
  position: relative;
  z-index: 1;
}

.credimetric-advantage-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.credimetric-advantage-description {
  color: #7f8c8d;
  line-height: 1.7;
  font-size: 1.1rem;
}

.credimetric-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.credimetric-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 40 L90 40 L70 60 L80 90 L50 75 L20 90 L30 60 L10 40 L40 40 Z" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  background-size: 100px 100px;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.credimetric-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;

}

.credimetric-cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.credimetric-cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
}

.credimetric-cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* 防止图标动画溢出 */
}

.credimetric-cta-icon {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite ease-in-out;
}

/* 减少bounce动画的幅度 */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); /* 减少跳跃高度 */
  }
}

/* Home page mobile responsive */
@media (max-width: 768px) {
  .credimetric-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 15px;
  }

  .credimetric-hero-title {
    font-size: 3rem;
  }

  .credimetric-hero-icon {
    font-size: 8rem;
  }

  .credimetric-hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .credimetric-cta-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .credimetric-cta-icon {
    font-size: 8rem;
  }

  .credimetric-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .credimetric-advantages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 确保所有容器不超出屏幕宽度 */
  .credimetric-container {
    padding: 0 15px;
  }

  /* 移动端减少动画效果 */
  .credimetric-feature-card:hover {
    transform: translateY(-10px); /* 移除旋转 */
  }

  .credimetric-advantage-item:hover {
    transform: translateY(-5px); /* 减少移动和缩放 */
  }
}

@media (max-width: 480px) {
  .credimetric-hero-title {
    font-size: 2.5rem;
  }

  .credimetric-hero-icon {
    font-size: 6rem;
  }

  .credimetric-feature-card,
  .credimetric-advantage-item {
    padding: 2rem 1.5rem;
  }

  .credimetric-cta-title {
    font-size: 2.2rem;
  }

  .credimetric-cta-icon {
    font-size: 6rem;
  }

  /* 进一步减少小屏幕的padding */
  .credimetric-container {
    padding: 0 10px;
  }

  /* 小屏幕完全禁用hover动画 */
  .credimetric-feature-card:hover,
  .credimetric-advantage-item:hover {
    transform: none;
  }
}
