* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #000;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}

/* 导航栏样式 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.nav .wrap {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
}

.nav-logo img {
  height: 48px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 400;
  position: relative;
  padding: 5px 20px;
}

.nav-menu a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-menu a.active:after {
  width: 100%;
}

.language-switch {
  display: flex;
  align-items: center;
  margin-left: 36px;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.language-switch a {
  padding: 6px 20px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.language-switch a:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.language-switch a:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.language-switch a.active {
  background: #e02020;
  color: white;
}

.language-switch a:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: #ddd;
}

.language-switch a:after {
  display: none;
}

/* 头部区域样式 */
.hero {
  background: #000;
  height: 700px;
  position: relative;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 700px;
}

.hero-banner-bg {
  width: 100%;
  height: 100%;
  background-image: url("banner_bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-top: 160px;
}

.hero-logo {
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInDown 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-logo img {
  height: 60px;
}

.hero-title {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

.hero-subtitle {
  font-size: 60px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.hero-partner {
  font-size: 22px;
  margin-bottom: 100px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
  display: flex;
  justify-content: center;
}
.hero-partner img {
  width: 34px;
  height: 34px;
  margin-right: 10px;
}
.hero-partner .text {
  padding-top: 4px;
}
.stats {
  display: flex;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 500;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.2s;
}

.stat-item {
  position: relative;
  padding: 0 60px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 1.5s;
}

.stat-item:nth-child(2) {
  animation-delay: 1.8s;
}

.stat-item:nth-child(3) {
  animation-delay: 2.1s;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 32px;
  background: rgba(255, 255, 255);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-image: url("scroll-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animation Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* System Showcase Section */
.system-showcase {
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
}

.showcase-slider {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 0 80px;
  min-height: 500px;
}

.showcase-track {
  display: flex;
  width: 100%;
  position: relative;
  min-height: 500px;
}

.showcase-item {
  min-width: 100%;
  width: 100%;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.showcase-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.showcase-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-image-container {
  flex: 1.5;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0); /* 开启硬件加速 */
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform, opacity; /* 优化动画性能 */
  transform: translateX(-40px);
  opacity: 0;
}

.showcase-item.active .showcase-image {
  transform: translateX(0);
  opacity: 1;
}

/* Mac 设备展示效果 */
.macbook-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.macbook-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-content {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  overflow: hidden;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* Mac 设备不同角度 */
.angle-front .macbook-frame-img {
  transform: rotateY(0deg) translateZ(0);
}

.angle-left .macbook-frame-img {
  transform: rotateY(-30deg) translateZ(20px);
}

.angle-right .macbook-frame-img {
  transform: rotateY(30deg) translateZ(20px);
}

.angle-back .macbook-frame-img {
  transform: rotateY(180deg) translateZ(0);
}

/* 屏幕内容跟随设备角度变化 */
.angle-front .screen-content {
  transform: rotateY(0deg) translateZ(1px);
}

.angle-left .screen-content {
  transform: rotateY(-30deg) translateZ(21px);
}

.angle-right .screen-content {
  transform: rotateY(30deg) translateZ(21px);
}

.angle-back .screen-content {
  transform: rotateY(180deg) translateZ(1px);
}

.showcase-content {
  flex: 1;
  max-width: 400px;
  padding-right: 10px;
}

/* Showcase Content Animations */
.showcase-content > * {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 确保 showcase-content 内的文字默认可见 */
.showcase-content {
  opacity: 1;
  visibility: visible;
}

.showcase-content h3,
.showcase-content .feature-highlight,
.showcase-content .feature-list,
.showcase-content .feature-stats {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 移除不必要的动画类 */
.showcase-item.animate-in,
.showcase-item.animate-out {
  display: none;
}

/* Dots Navigation */
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #007aff;
  transform: scale(1.2);
}

/* Content Styles */
.showcase-content h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
  font-weight: 600;
}

.showcase-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #007aff;
}

.feature-highlight {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  opacity: 1;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007aff;
  font-weight: bold;
  font-size: 18px;
}

.feature-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.feature-stats .stat {
  text-align: center;
}

.feature-stats .number {
  font-size: 36px;
  font-weight: 600;
  color: #007aff;
  margin-bottom: 8px;
}

.feature-stats .label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .feature-stats {
    justify-content: center;
    gap: 30px;
  }

  .feature-stats .number {
    font-size: 32px;
  }

  .feature-stats .label {
    font-size: 12px;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .showcase-layout {
    gap: 40px;
  }

  .showcase-image-container {
    flex: 1.2;
  }

  .showcase-content {
    flex: 1.2;
  }
}

@media (max-width: 768px) {
  .showcase-layout {
    flex-direction: column;
    gap: 40px;
  }

  .showcase-image-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .showcase-content {
    padding: 0 10px;
    text-align: center;
    max-width: 100%;
  }

  .showcase-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .feature-list li {
    text-align: left;
  }

  .feature-stats {
    justify-content: center;
  }
}

/* 成功案例部分 */
.cases {
  padding: 60px 0;
  text-align: center;
  background: #f5f5f5;
}

.section-title {
  font-size: 32px;
  margin-bottom: 12px;
  color: #333;
  font-weight: 500;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

.case-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 40px;
}

.case-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1;
  max-width: 360px;
  height: 400px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.case-card:hover {
  transform: rotateY(180deg);
}

.case-card-front,
.case-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 40px 30px;
  backface-visibility: hidden;
  border-radius: 12px;
}

.case-card-front {
  background: white;
  z-index: 2;
}

.case-card-back {
  background: linear-gradient(to bottom, #fd6f6f, #353334);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 35px 30px;
  overflow: hidden;
}

.case-card:nth-child(1) .case-card-back {
  background: url("card-1-hover.png") right bottom no-repeat,
    linear-gradient(to bottom, #fd6f6f, #353334);
  background-size: 120px, 100% 100%;
}

.case-card:nth-child(2) .case-card-back {
  background: url("card-2-hover.png") right bottom no-repeat,
    linear-gradient(to bottom, #fd6f6f, #353334);
  background-size: 120px, 100% 100%;
}

.case-card:nth-child(3) .case-card-back {
  background: url("card-3-hover.png") right bottom no-repeat,
    linear-gradient(to bottom, #fd6f6f, #353334);
  background-size: 120px, 100% 100%;
}

.case-card-back .case-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  padding-right: 20px;
  text-indent: 2em;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.case-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.case-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
  font-weight: 500;
}

.case-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-link {
  color: #007aff;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  position: relative;
}

.case-link:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #007aff;
  opacity: 0;
  transition: opacity 0.3s;
}

.case-link:hover:after {
  opacity: 1;
}

/* 联系表单部分 */
.contact {
  padding: 100px 0;
  text-align: center;
  background: #000;
  color: white;
}

.contact .section-title {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
}

.contact .section-subtitle {
  font-size: 24px;
  color: white;
  margin-bottom: 60px;
  font-weight: 300;
}

.contact-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  background: #fff;
  color: #333;
}

.form-input::placeholder {
  color: #999;
  font-size: 16px;
}

.form-input:focus {
  outline: none;
  background: #fff;
}

textarea.form-input {
  width: 100%;
  min-height: 100px;
  padding: 15px 20px;
  resize: none;
}

.submit-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 40px;
  border-radius: 0;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  transition: none;
}

.submit-btn:hover {
  background: #fff;
  transform: none;
}

.contact-subtitle {
  font-size: 32px;
  color: white;
  margin-bottom: 40px;
  font-weight: normal;
}

/* Demo2 缩放效果 */
.demo2-container {
  position: relative;
  overflow: hidden;
}

.demo2-container .showcase-image {
  transform-origin: center;
}

.demo2-container:hover .showcase-image {
  transform: scale(1.05);
}

.demo2-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 122, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.demo2-container:hover::after {
  opacity: 1;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 1;
}

.slider-arrow:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow-prev {
  left: 20px;
}

.slider-arrow-next {
  right: 20px;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow path {
  transition: stroke 0.3s ease;
}

.slider-arrow:hover path {
  stroke: #007aff;
}

/* 提高 z-index 以确保退场动画在其他元素之上 */
.showcase-item[style*="z-index"] {
  visibility: visible !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.data-source {
  width: 100%;
  text-align: left; /* 改为左对齐 */
  color: #666;
  font-size: 12px;
  margin-top: 10px;
  opacity: 0; /* 初始状态隐藏 */
  transform: translateX(-20px); /* 初始位置在左侧 */
  transition: all 0.6s ease; /* 添加过渡效果 */
}

/* 在移动端时保持左对齐 */
@media (max-width: 768px) {
  .data-source {
    text-align: left; /* 确保移动端也是左对齐 */
    padding: 0 10px; /* 可选：添加一些padding，以免贴边 */
  }
}
