/* =========================================
  1. Hero Slider (index.html specific)
  ========================================= */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  overflow: hidden;
  padding-top: 0;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding-top: 70px;
}

/* Slide 1 Styles */
.hero-container {
  width: 100%;
  max-width: 1600px;
  padding: 0 clamp(60px, 8vw, 150px);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
}

.hero-text {
  flex: 0.8;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 150, 255, 1), 0 0 10px rgba(0, 0, 0, 0.8);
  padding-right: 0;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 2vh;
  margin-left: 0;
  white-space: nowrap;
  opacity: 0;
  line-height: 1.2;
}

.hero-slide.active .hero-text h1 {
  animation: slideInLeft 1s forwards;
}

.hero-text p {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  line-height: 1.6;
  margin-left: 0;
  opacity: 0;
  max-width: 600px;
}

.hero-slide.active .hero-text p {
  animation: slideInUp 1s 0.3s forwards;
}

.hero-chip-box {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  aspect-ratio: 16/9;
  opacity: 0;
  transform: scale(0.8) rotateY(-20deg);
}

.hero-slide.active .hero-chip-box {
  animation: chipEntrance 1.2s 0.5s forwards;
}

.hero-chip-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(0, 150, 255, 0.6);
  display: block;
  transform-style: preserve-3d;
}

/* Slide 2 Styles */
.slide2-container {
  width: 100%;
  max-width: 1600px;
  padding: 0 clamp(60px, 8vw, 150px);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide2-header {
  text-align: center;
  margin-bottom: 5vh;
  opacity: 0;
  margin-top: 3vh;
}

.hero-slide.active .slide2-header {
  animation: fadeInDown 1s 0.2s forwards;
}

.slide2-header h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: normal;
  color: #a0cfff;
  margin-bottom: 10px;
}

.slide2-header h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}

.slide2-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 6vw;
  opacity: 0;
}

.hero-slide.active .slide2-content {
  animation: fadeInUp 1s 0.5s forwards;
}

.globe-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.globe-img-real {
  width: 38vw;
  max-width: 550px;
  min-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 150, 255, 0.5));
  animation: floatGlobe 6s ease-in-out infinite;
}

.features-grid {
  flex: 1.2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vh 2vw;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item.full-width {
  grid-column: span 2;
}

.feature-icon {
  font-size: clamp(28px, 2.5vw, 45px);
  color: #0096ff;
  width: auto;
  min-width: 40px;
  text-align: center;
  line-height: 1.2;
}

.feature-text h3 {
  font-size: clamp(14px, 1.1vw, 24px);
  color: #a0cfff;
  margin: 0 0 5px 0;
  font-weight: normal;
}

.feature-text p {
  font-size: clamp(1.1rem, 1.6vw, 2.5rem);
  margin: 0;
  font-weight: bold;
  line-height: 1.3;
}

/* Arrows & Animations */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.slider-arrow:hover {
  background: rgba(43, 85, 206, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(43, 85, 206, 0.8);
}

.arrow-left {
  left: 30px;
}

.arrow-right {
  right: 30px;
}

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

@keyframes chipEntrance {
  from {
    opacity: 0;
    transform: scale(0.8) rotateY(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes moveDot {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 20px);
  }
}

/* 动画逻辑：卡片宽 340px + 间隙 40px = 380px * 3 = 1140px */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-340px * 3 - 40px * 3));
  }
}

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
  z-index: 20;
  pointer-events: none;
}

/* =========================================
  2. 关于我们 (About Us) & 产品展示
  ========================================= */
.about-section {
  background-color: #f5f7fa;
  padding: 100px 0 60px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.sub-header {
  color: #2b55ce;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.main-header {
  font-size: 42px;
  font-weight: 800;
  color: #222;
  margin: 0;
}

.main-header span {
  color: #2b55ce;
}

.divider-line {
  width: 200px;
  height: 6px;
  background-color: #e0d0ff;
  margin: 20px auto 30px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.divider-line::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 100%;
  background-color: #2b55ce;
  border-radius: 10px;
  top: 0;
  animation: moveDot 2s infinite alternate ease-in-out;
}

.about-desc {
  max-width: 800px;
  text-align: center;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 0 20px;
}

.about-btn-box {
  margin-bottom: 60px;
  text-align: center;
}

.btn-learn-more {
  display: inline-block;
  padding: 10px 40px;
  border: 2px solid #a0b0c0;
  color: #8090a0;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: transparent;
  letter-spacing: 1px;
}

.btn-learn-more:hover {
  border-color: #2b55ce;
  color: #2b55ce;
  background-color: rgba(43, 85, 206, 0.05);
}

.marquee-viewport {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ============ 技术卡片样式重构 ============ */
.tech-card {
  width: 340px;
  height: 480px;
  border-radius: 12px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 43, 150, 0.15);
}

.card-img-box {
  width: 100%;
  height: 48%;
  overflow: hidden;
  position: relative;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover .card-img-top {
  transform: scale(1.08);
}

.card-text-box {
  flex: 1;
  padding: 25px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 12px 0;
  position: static;
  width: auto;
  text-shadow: none;
  letter-spacing: 0.5px;
}

.card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
  3. 合作伙伴 Section
  ========================================= */
.partners-section {
  background-color: #fefefe;
  padding: 100px 0;
  color: #333333;
}

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

/* =========================================
  4. 产品方向 (Product Direction)
  ========================================= */
.product-direction-section {
  background-color: #f4f8fb;
  padding: 80px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.pd-header {
  text-align: center;
  margin-bottom: 50px;
}

.pd-sub-header {
  font-size: 16px;
  font-weight: bold;
  color: #2b55ce;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.pd-main-header {
  font-size: 42px;
  font-weight: 800;
  color: #222;
  margin: 0 0 20px 0;
}

.pd-divider {
  width: 160px;
  height: 4px;
  background: linear-gradient(to right, #d4dffd, #2b55ce, #d4dffd);
  margin: 0 auto 40px auto;
  border-radius: 2px;
  position: relative;
}

.pd-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #2b55ce;
  border-radius: 50%;
  border: 3px solid #fff;
}

.pd-intro-text {
  max-width: 900px;
  margin: 0 auto 70px auto;
  text-align: justify;
  text-align-last: center;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.pd-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.pd-icon-box {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.pd-icon-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
}

.pd-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.pd-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 0 0 15px 0;
}

.pd-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

/* =========================================
  5. 移动端适配
  ========================================= */
@media (max-width: 768px) {
  .hero-container,
  .slide2-container {
    flex-direction: column-reverse;
    gap: 30px;
    padding: 0 20px;
  }

  .slide2-content {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-text {
    text-align: center;
    padding: 0;
  }

  .hero-text h1,
  .slide2-header h1 {
    white-space: normal;
  }

  .slider-arrow {
    display: none;
  }

  .globe-img-real {
    width: 70vw;
    margin-bottom: 20px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partner-logo-box {
    width: 100%;
    max-width: 250px;
  }

  .pd-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pd-content p {
    text-align: center;
  }
}