/* About Intro Section */
.hero {
  background: url("../images/about-banner.png");
  height: 520px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: left;
}

/* Hero Animation */
.hero h1,
.hero p {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero h1.animate-in,
.hero p.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero p {
  transition-delay: 0.2s;
}

/* About Intro Section - Refactored */
.about-intro {
  padding: 80px 0;
  background-color: #fff;
}

.intro-header {
  text-align: center;
  margin-bottom: 60px;
}

.intro-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.intro-header .subtitle {
  font-size: 24px;
  /* font-weight: bold; */
  color: #333;
}

.intro-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-text {
  margin-bottom: 80px;
}

.intro-text p {
  font-size: 16px;
  line-height: 2;
  color: #333;
  margin-bottom: 24px;
  text-align: justify;
}

/* Marketing Links Diagram */
.marketing-links-diagram {
  position: relative;
  height: 400px;
  width: 100%;
  margin: 0 auto;
}

.links-layers {
  position: relative;
  width: 100%;
  height: 100%;
  /* Center the stack horizontally */
  display: flex;
  justify-content: center;
}

.link-layer {
  position: absolute;
  width: 320px;
  height: 200px;
  left: 100px; /* Offset to the left side */
}

/* Layer Stacking & Animation */
.link-layer {
  position: absolute;
  width: 320px;
  height: 200px;
  left: 100px;
  opacity: 0;
  transform: translateY(50px); /* Initial state: shifted down */
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.layer-front {
  top: 0;
  z-index: 3;
}

.layer-middle {
  top: 100px;
  z-index: 2;
}

.layer-back {
  top: 200px;
  z-index: 1;
}

/* Diamond Shape Implementation */
.layer-content {
  width: 220px;
  height: 220px;
  /* Create the diamond/isometric plane effect */
  transform: rotateX(60deg) rotateZ(45deg);
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 10px;
}

/* Text on the layer */
.layer-content::after {
  content: attr(data-text); /* Fallback */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateZ(-45deg) rotateX(0deg); /* Counter-rotate? No, easier to just put text in a child */
}

/* Using direct text inside .layer-content which is rotated. 
   We need to counter-rotate the text to make it readable, 
   or place text in a separate non-rotated element.
   
   Better Approach: 
   The text "营销前链路" should look like it's lying on the surface.
   So it should inherit the rotation? 
   In the design, the text is readable, aligned with the bottom-left edge.
*/

.layer-content {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  /* Flexbox centers the text in the rotated square */
}

/* Fix text orientation */
/* Since the square is rotated X and Z, the text is also distorted. 
   To make text readable "standing up" or "flat on surface":
   If flat on surface: leave as is (it will look skewed).
   If standing up: need a child element with inverse transform.
   
   Let's try to make the text readable by counter-rotating Z but keeping X?
   Actually, let's just rotate the text -45deg so it aligns with the screen horizontal axis.
*/
.layer-content {
  /* Reset display to block to handle text transform properly */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* We need to wrap the text in a span in HTML or just target the text node? 
   Can't target text node. Let's assume the text is directly inside.
   The rotation Z(45) makes the square a diamond.
   Text inside is also rotated 45deg.
   We want text to be horizontal (-45deg).
*/
.layer-content {
  /* The text itself needs to be rotated -45deg to be horizontal */
  /* But the parent is also rotated X(60deg) which squashes it vertically. */
  /* To fix the squash, we'd need to scaleY(2) on the text? */
}

/* Let's try a different trick: Use a pseudo-element for the background shape, keep content separate. */
.link-layer {
  /* Reset */
}

.layer-content {
  /* Reset the transform on the container */
  transform: none;
  width: 300px;
  height: 100px;
  background: none;
  box-shadow: none;
  display: block;
  position: absolute;
  top: 50px;
  left: 0;
}

/* The actual shape */
.link-layer::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #2b6eff 0%, #0042c4 100%);
  transform: rotateX(60deg) rotateZ(45deg);
  box-shadow: 10px 10px 30px rgba(0, 66, 196, 0.3);
  border-radius: 15px;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.layer-middle::before {
  background: linear-gradient(135deg, #4aa3ff 0%, #007bff 100%);
}

.layer-back::before {
  background: linear-gradient(135deg, #6ec0ff 0%, #3a9cff 100%);
}

/* Hover effects */
.link-layer:hover::before {
  transform: rotateX(60deg) rotateZ(45deg) translateZ(20px);
  box-shadow: 20px 20px 40px rgba(0, 66, 196, 0.4);
}

/* Text positioning */
.layer-content {
  position: absolute;
  top: 90px;
  left: 80px;
  width: auto;
  height: auto;
  z-index: 5;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transform: rotate(-25deg) skewX(5deg); /* Match diamond edge angle */
}

/* Connector Lines */
.connector-line {
  position: absolute;
  top: 80px; /* Align with visual center of diamond */
  left: 220px; /* Start from right edge of diamond */
  height: 2px;
  background: #0056ff; /* Blue line */
  display: flex;
  align-items: center;
  width: 0; /* Animated later? No, static for now */
  z-index: 4;
}

/* Specific line lengths to reach the labels */
/* Staggered lengths for stepped effect on the right */
.layer-front .connector-line {
  width: 250px;
}
.layer-middle .connector-line {
  width: 300px;
}
.layer-back .connector-line {
  width: 350px;
}

/* The Dot */
.connector-dot {
  width: 8px;
  height: 8px;
  background: #0056ff;
  border-radius: 50%;
  position: absolute;
  left: -4px; /* Center on start of line */
}

/* The Label Box */
.connector-label {
  position: absolute;
  right: -320px; /* Position relative to end of line */
  top: -20px;
  width: 330px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #cce0ff;
  border-left: 4px solid #0056ff;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  font-weight: bold;
  transition: all 0.3s ease;
}

.link-layer:hover .connector-label {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #0056ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .intro-flex-wrapper {
    flex-direction: column;
  }

  .marketing-links-diagram {
    display: none; /* Hide complex diagram on mobile for now, or simplify */
  }

  /* Create a simple list fallback for mobile if needed, but for now just hiding or stacking */
  /* Actually, let's just stack them simply */
  .marketing-links-diagram {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .link-layer {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    margin-bottom: 20px;
  }

  .link-layer::before {
    display: none; /* Remove 3D shape */
  }

  .layer-content {
    position: relative;
    top: 0;
    left: 0;
    color: #0056ff;
    margin-bottom: 10px;
    transform: none;
  }

  .connector-line {
    display: none;
  }

  .connector-label {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-left: 0;
  }
}

/* History Section */
.history-section {
  position: relative;
  width: 100%;
  height: 520px;
  background: #002db3; /* Fallback */
  background-image: url("../images/time.png"); /* Assuming this is the mesh background */
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  padding-top: 100px;
}

/* Add an overlay to ensure text readability if needed, or to match the exact blue tone */
.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(
    circle at 50% 50%,
    rgba(30, 94, 255, 0.8) 0%,
    rgba(0, 45, 179, 0.9) 100%
  ); */
  z-index: 1;
}

.history-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.history-content-wrapper {
  position: relative;
  height: 77%;
}

/* Navigation Arrows */
.history-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.history-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.history-nav-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.prev-btn {
  left: -60px; /* Outside container or adjust */
}

.next-btn {
  right: -60px;
}

/* Static Logo */
.history-logo {
  position: absolute;
  right: 100px; /* Adjusted from 0 to align better */
  top: 80px;
  z-index: 10;
}

.history-logo img {
  height: 60px;
  opacity: 1;
}

/* Panels */
.history-panels {
  position: relative;
  height: 300px;
  width: 70%;
  margin-left: 18px;
  margin-top: 110px;
}

.history-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s;
}

.history-panel.active {
  opacity: 1;
  visibility: visible;
}

.history-panel .year {
  font-size: 48px; /* Increased size */
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  font-family: "Helvetica Neue", Arial, sans-serif; /* Clean thin font */
}

.history-panel .title {
  font-size: 36px;
  /* font-weight: bold; */
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  transition-delay: 0.1s;
}

.history-panel .desc {
  font-size: 16px;
  line-height: 2;
  opacity: 0;
  max-width: 600px;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  transition-delay: 0.2s;
  color: rgba(255, 255, 255, 0.9);
}

.history-panel.active .year,
.history-panel.active .title,
.history-panel.active .desc {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline */
.history-timeline {
  position: absolute;
  bottom: 80px;
  left: 50px;
  right: 50px;
  width: auto; /* Use auto width with left/right */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0 50px; */
}

.timeline-line {
  position: absolute;
  top: 14px; /* Center with smaller dots */
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  cursor: pointer;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80px; /* Fixed height to accommodate animations */
  justify-content: flex-start; /* Align from top */
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 25px; /* Space between dot and text */
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-top: 8px; /* Align with line */
  border: 2px solid transparent;
}

.timeline-year {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: absolute;
  top: 40px; /* Fixed position below dot */
}

/* Active State */
.timeline-item.active .timeline-dot {
  width: 24px;
  height: 24px;
  /* background-color: #0045ff; */
  border: 4px solid #fff;
  opacity: 1;
  margin-top: 2px; /* Center vertically */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.timeline-item.active .timeline-dot::after {
  display: none;
}

.timeline-item.active .timeline-dot::before {
  display: none;
}

.timeline-item.active .timeline-year {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  top: 50px; /* Push down slightly */
}

/* Hover effects */
.timeline-item:not(.active):hover .timeline-dot {
  opacity: 0.8;
  transform: scale(1.2);
}
.timeline-item:not(.active):hover .timeline-year {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .history-nav-btn.prev-btn {
    left: 10px;
  }
  .history-nav-btn.next-btn {
    right: 10px;
  }
  .history-section .container {
    width: 100%;
    padding: 0 60px;
  }
}

/* Service Assurance Section */
.service-assurance {
  padding: 80px 0;
  background: #f9fafb linear-gradient(to bottom, #f9fafb 0%, #fff 100%);
  overflow: hidden;
}

.service-assurance .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-assurance .section-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Sub-module styles */
.assurance-sub-module {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-module {
  margin-top: 80px;
}

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

.sub-module-header h3 {
  font-size: 24px;
  color: #333;
  font-weight: normal;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.sub-module-header h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #1818f5;
  border-radius: 2px;
}

.assurance-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.assurance-column {
  flex: 1;
}

.center-column {
  /* flex: 0 0 450px; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.diagram-box {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 4px;
  background: transparent;
  position: relative;
}

.diagram-box img {
  width: 100%;
  display: block;
}

.assurance-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.assurance-item:last-child {
  margin-bottom: 0;
}

.item-text h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.item-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.item-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Left Column Specifics */
.left-column .assurance-item {
  justify-content: flex-end;
  text-align: right;
  /* padding-right: 20px; */
}

.left-column .item-text {
  margin-right: 20px;
}

/* Right Column Specifics */
.right-column .assurance-item {
  justify-content: flex-start;
  text-align: left;
  /* padding-left: 20px; */
}

.right-column .item-text {
  margin-left: 20px;
}

/* Footer text */
.assurance-footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* Responsive for Service Assurance */
@media (max-width: 1024px) {
  .assurance-content {
    flex-direction: column;
  }
  .center-column {
    margin: 40px 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  .left-column .assurance-item {
    justify-content: center;
    text-align: center;
    flex-direction: column-reverse;
    padding-right: 0;
  }
  .left-column .item-text {
    margin-right: 0;
    margin-top: 10px;
  }
  .right-column .assurance-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding-left: 0;
  }
  .right-column .item-text {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Animations */
.diagram-box {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.diagram-box.animate-in {
  opacity: 1;
  transform: scale(1);
}

.left-column .assurance-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.right-column .assurance-item {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.assurance-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.left-column .assurance-item:nth-child(1) {
  transition-delay: 0.1s;
}
.left-column .assurance-item:nth-child(2) {
  transition-delay: 0.2s;
}
.left-column .assurance-item:nth-child(3) {
  transition-delay: 0.3s;
}

.right-column .assurance-item:nth-child(1) {
  transition-delay: 0.1s;
}
.right-column .assurance-item:nth-child(2) {
  transition-delay: 0.2s;
}
.right-column .assurance-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* Solution Landing Assurance Styles (Merged) */
.landing-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.landing-item {
  flex: 1;
  position: relative;
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.landing-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.landing-item:nth-child(1) {
  transition-delay: 0.1s;
}
.landing-item:nth-child(2) {
  transition-delay: 0.2s;
}
.landing-item:nth-child(3) {
  transition-delay: 0.3s;
}
.landing-item:nth-child(4) {
  transition-delay: 0.4s;
}

.landing-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f8ff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.landing-item:hover .landing-icon-wrapper {
  background: #e1eaff;
  transform: scale(1.05);
}

/* Dashed border effect removed for cleaner look */
.landing-icon-wrapper::before {
  display: none;
}

.landing-icon {
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 1;
}

.landing-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  white-space: nowrap;
}

.landing-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0;
  text-align: justify;
  flex: 1;
  /* 隐藏手动换行，让文本自然换行 */
}

.landing-item p br {
  display: none;
}

.arrow-icon {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: #ccc;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ccc;
  transition: all 0.3s ease;
}

.landing-item:hover .arrow-icon svg {
  stroke: #0056ff;
  transform: translateX(3px);
}

/* Hide arrow for last item */
.landing-item:last-child .arrow-icon {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .landing-item {
    width: 100%;
    max-width: 480px;
    margin-bottom: 0;
  }

  .arrow-icon {
    right: 50%;
    bottom: -32px;
    top: auto;
    transform: translateX(50%) rotate(90deg);
  }

  .landing-item:hover .arrow-icon svg {
    transform: translateX(0) translateY(3px);
  }
}

/* Talent Values Section */
.talent-values {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
}

/* Add subtle background pattern */
.talent-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e1eaff 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: 0;
}

.talent-values .container {
  position: relative;
  z-index: 1;
}

.talent-values .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.talent-values .section-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  position: relative;
  display: inline-block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 0; /* Remove gap for checkerboard effect */
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.values-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.values-item:nth-child(1) {
  transition-delay: 0.1s;
}
.values-item:nth-child(2) {
  transition-delay: 0.2s;
}
.values-item:nth-child(3) {
  transition-delay: 0.3s;
}
.values-item:nth-child(4) {
  transition-delay: 0.4s;
}
.values-item:nth-child(5) {
  transition-delay: 0.5s;
}
.values-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Image Items */
.values-item.image-item {
  background-color: #f0f0f0;
}

.values-item.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.values-item.image-item:hover img {
  transform: scale(1.1);
}

/* Text Items */
.values-item.text-item {
  padding: 50px 40px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}

/* Checkerboard logic for background colors */
.values-item.text-item:nth-child(odd) {
  background: #fff;
}
.values-item.text-item:nth-child(even) {
  background: #f8fbff; /* Very light blue for alternation */
}

/* Hover effect for text items */
.values-item.text-item:hover {
  background: linear-gradient(135deg, #0066ff 0%, #0042c4 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 66, 196, 0.2);
}

.bg-text {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 45px;
  font-weight: 900;
  color: #1818f5; /* Much stronger blue for visibility */
  z-index: 0;
  letter-spacing: 4px;
  pointer-events: none;
  font-family: Arial, sans-serif;
  transition: all 0.4s ease;
  /* opacity: 0.7;  */
}

.values-item.text-item:hover .bg-text {
  color: rgba(255, 255, 255, 0.4); /* More visible white on hover */
  transform: scale(1.05) translateX(-10px);
  opacity: 1;
}

.values-item.text-item h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.values-item.text-item:hover h3 {
  color: #fff;
}

/* Underline for H3 */
.values-item.text-item h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #0056ff;
  margin-top: 12px;
  transition: all 0.4s ease;
}

.values-item.text-item:hover h3::after {
  background: #fff;
  width: 60px;
}

.values-item.text-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  text-align: justify;
  transition: color 0.4s ease;
}

.values-item.text-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .values-item {
    min-height: auto;
  }

  .values-item.image-item {
    height: 300px;
  }

  /* Reset hover effects for mobile */
  .values-item.text-item:hover {
    background: #fff;
  }
  .values-item.text-item:nth-child(even):hover {
    background: #f8fbff;
  }
  .values-item.text-item:hover h3 {
    color: #333;
  }
  .values-item.text-item:hover p {
    color: #666;
  }
  .values-item.text-item:hover h3::after {
    background: #0056ff;
    width: 40px;
  }
}

/* Recruiting Section */
.recruiting-section {
  padding: 80px 0;
  background-color: #f4f8fb; /* Light blue background matching UI */
}

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

.recruiting-section .section-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.recruiting-section .section-header p {
  font-size: 16px;
  color: #666;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.job-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 420px; /* Fixed height */
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  overflow: -moz-scrollbars-none; /* Firefox */

  /* Animation props */
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.3s ease;
}

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

.job-card.animate-in:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Job Card Stagger */
.job-card:nth-child(1) {
  transition-delay: 0.1s;
}
.job-card:nth-child(2) {
  transition-delay: 0.2s;
}
.job-card:nth-child(3) {
  transition-delay: 0.3s;
}
.job-card:nth-child(4) {
  transition-delay: 0.4s;
}
.job-card:nth-child(5) {
  transition-delay: 0.1s;
} /* Row 2 repeats delays */
.job-card:nth-child(6) {
  transition-delay: 0.2s;
}
.job-card:nth-child(7) {
  transition-delay: 0.3s;
}
.job-card:nth-child(8) {
  transition-delay: 0.4s;
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-shrink: 0; /* Prevent header from shrinking */
}

.job-card-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.job-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar for Job Content */
.job-content::-webkit-scrollbar {
  width: 0;
}

.job-content::-webkit-scrollbar-track {
  background: transparent;
}

.job-content::-webkit-scrollbar-thumb {
  background-color: #d0d9f5; /* Light blue matching image */
  border-radius: 10px;
}

.job-content::-webkit-scrollbar-thumb:hover {
  background-color: #3b5de7; /* Active color on hover */
}

.job-block {
  margin-bottom: 20px;
}

.job-block:last-child {
  margin-bottom: 0;
}

.job-block h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.job-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-block ul li {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 4px;
  text-align: justify;
}

.recruiting-footer {
  text-align: left;
  font-size: 14px;
  color: #888;
  margin-top: 20px;
}

/* Responsive for Recruiting */
@media (max-width: 1200px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .recruiting-section .section-header h2 {
    font-size: 28px;
  }
}
