/* CSS Starts Here */
:root {
  --primary-color: #ffb7b7; /* Vibrant Coral/Red */
  --secondary-color: #83c6ff; /* Teal */
  --accent-color: #ffd166; /* Sunny Yellow */
  --neutral-light: #ffffff; /* Very light warm beige/off-white */
  --neutral-dark: #4a4a4a; /* Dark Gray for text */
  --text-color-default: #333333; /* Explicit default text color */
  --border-radius-main: 12px;
  --border-radius-small: 8px;
  --box-shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.07);
  --box-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);

  /* 新增字体大小变量 */
  --font-size-h1: 2.8rem;
  --font-size-h2: 2.4rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.4rem;
  --font-size-p: 1.1rem;
  --font-size-small: 0.95rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: var(--text-color-default); /* USE THE EXPLICIT DEFAULT */
  background-color: var(--neutral-light);
  overflow-x: hidden;
  /* Sanity check for visibility */
  opacity: 1;
  visibility: visible;
  font-size: var(--font-size-p); /* 增加基础字体大小 */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--neutral-dark); /* Default heading color */
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.2;
} /* Color set per section if needed */
h2 {
  font-size: var(--font-size-h2);
  text-align: center;
  line-height: 1.25;
}
h3 {
  font-size: var(--font-size-h3);
  line-height: 1.3;
}
h4 {
  font-size: var(--font-size-h4);
  line-height: 1.3;
}
p {
  margin-bottom: 1rem;
  color: #555;
  font-size: var(--font-size-p);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
  /* color: darken(var(--primary-color), 10%); CSS darken doesn't exist, manually pick */
  color: #e85a5a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.cta-button,
.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cta-button .arrow,
.cta-button-secondary .arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.cta-button:hover .arrow,
.cta-button-secondary:hover .arrow {
  transform: translateX(3px);
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
}
.cta-button i {
  margin-right: 8px;
  font-size: 1.1em;
}
.cta-button:hover {
  background-color: #e85a5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4); /* Using RGBA of primary color */
}

/* Hero按钮特殊样式 */
#heroCtaButton {
  font-size: 1rem;
  white-space: nowrap;
}

.cta-button-secondary {
  background-color: var(--secondary-color);
  color: white;
}
.cta-button-secondary:hover {
  background-color: #3abaa9;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(78, 205, 196, 0.4); /* Using RGBA of secondary color */
}

/* Sections */
section {
  padding: 70px 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(193, 193, 193, 0.85) 0%,
      rgba(255, 255, 255, 0.85) 100%
    ),
    url("bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff; /* Default text color for direct children */
  text-align: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-section h1 {
  color: #fff;
  margin-top: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
} /* Explicitly white for h1 */
.hero-section p {
  font-size: calc(var(--font-size-p) + 0.15rem); /* 增大hero段落字体 */
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-background-shape {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0.5;
  transform: rotate(45deg);
}

.interactive-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

.interactive-form {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 35px;
  border-radius: var(--border-radius-main);
  max-width: 520px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.interactive-form h3 {
  color: var(--primary-color);
  text-align: center;
  font-size: calc(var(--font-size-h3) + 0.1rem);
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
  width: 100%;
}

.interactive-form h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--neutral-dark);
  font-size: var(--font-size-small);
}
.form-group select {
  width: 100%;
  padding: 12px 25px 12px 12px;
  border-radius: var(--border-radius-small);
  border: 1px solid #ddd;
  font-size: 1rem;
  background-color: #fff;
  color: var(--text-color-default);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FF6B6B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25); /* Primary color with alpha */
}
.interactive-form .cta-button {
  width: 100%;
  margin-top: 10px;
  background-color: var(--secondary-color);
}
.interactive-form .cta-button:hover {
  background-color: #3abaa9;
  box-shadow: 0 6px 15px rgba(78, 205, 196, 0.4); /* Secondary color with alpha */
}

/* How It Works Section */
.how-it-works-section {
  background-color: #fff;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.step-item {
  text-align: center;
  padding: 25px;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-main);
  box-shadow: var(--box-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-strong);
}
.step-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.step-icon i {
  font-size: 1.5rem; /* 减小图标大小 */
}
.step-item h4 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem; /* 减小h4字体大小 */
  margin-bottom: 8px;
}
.step-item p {
  font-size: 0.95rem; /* 稍微减小段落文本 */
  margin-bottom: 0;
}

/* Jobs Section */
.jobs-section {
  background-color: var(--neutral-light);
  padding-bottom: 80px;
}
.jobs-section h2 {
  margin-bottom: 40px;
}
.job-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.job-card {
  background-color: #fff;
  border-radius: var(--border-radius-main);
  box-shadow: var(--box-shadow-soft);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--box-shadow-strong);
}
.job-card-icon-bg {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.job-card-icon-bg i {
  font-size: 1.5rem;
}
.job-card h3 {
  margin-bottom: 10px;
  color: var(--neutral-dark);
  font-size: 1.2rem;
}
.job-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #666;
  flex-grow: 1;
}
.job-card .cta-button-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 25px;
}
.job-card .cta-button-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3); /* Primary color with alpha */
}

/* Stats Section */
.stats-section {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    #64d9cf
  ); /* Lighten secondary color manually */
  color: #fff;
  padding: 80px 0;
}
.stats-section h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 40px;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item {
  padding: 20px;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Top Jobs Section */
.top-jobs-section {
  background-color: #f8f4ff; /* 轻紫色背景，与网站色调协调 */
  padding: 70px 0;
}

.top-jobs-header {
  text-align: center;
  margin-bottom: 40px;
}

.top-jobs-header h2 {
  color: var(--neutral-dark);
  margin-bottom: 15px;
}

.top-jobs-header p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #666;
  font-size: 1.1rem;
}

.job-filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.job-filter-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-weight: 600;
  color: #777;
  position: relative;
  transition: all 0.3s ease;
}

.job-filter-tab::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.job-filter-tab.active {
  color: var(--primary-color);
}

.job-filter-tab.active::after {
  width: 100%;
}

.job-filter-tab:hover {
  color: var(--primary-color);
}

.job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  min-height: auto; /* 移除固定最小高度，改为自适应 */
}

/* 使内容自动填充可用空间 */
.job-listings-container {
  position: relative;
}

.job-listing {
  background-color: white;
  border-radius: var(--border-radius-main);
  box-shadow: var(--box-shadow-soft);
  padding: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: none; /* 默认隐藏所有工作 */
}

.job-listing.show {
  display: block; /* 显示选中类别的工作 */
  animation: fadeIn 0.5s ease forwards;
}

.job-listing:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-strong);
}

.job-listing-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.job-company-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
  margin-right: 15px;
  background-color: #f9f9f9;
  padding: 5px;
}

.job-listing-title h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--neutral-dark);
}

.job-company-name {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.job-listing-details {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.job-detail {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  margin-right: 15px;
  margin-bottom: 8px;
}

.job-detail i {
  color: var(--secondary-color);
  margin-right: 5px;
  font-size: 0.9rem;
}

.job-type {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.job-type.full-time {
  background-color: rgba(78, 205, 196, 0.15);
  color: var(--secondary-color);
}

.job-type.part-time {
  background-color: rgba(255, 209, 102, 0.15);
  color: #e3b44a;
}

.job-level {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
  margin-bottom: 15px;
}

.job-level.entry {
  background-color: rgba(150, 115, 255, 0.15);
  color: #9673ff;
}

.job-level.junior {
  background-color: rgba(255, 107, 107, 0.15);
  color: var(--primary-color);
}

.job-level.advanced {
  background-color: rgba(51, 51, 51, 0.15);
  color: #444;
}

.job-salary {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 5px;
  margin-bottom: 15px;
}

.job-apply-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  margin-top: 5px;
}

.job-apply-button i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.job-apply-button:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.view-all-jobs {
  text-align: center;
  margin-top: 20px;
}

.view-all-jobs .cta-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.view-all-jobs .cta-button:hover {
  background-color: var(--primary-color);
  color: white;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
  .job-listings {
    grid-template-columns: 1fr;
  }

  .job-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 15px;
  }

  .job-filter-tab {
    padding: 8px 10px;
    margin: 0 2px;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .job-cards-container,
  .stats-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .slider-nav.prev {
    left: -5px;
  }
  .slider-nav.next {
    right: -5px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .step-icon i {
    font-size: 1.4rem;
  }

  .step-item h4 {
    font-size: 1.15rem;
  }

  .interactive-form {
    width: 95%;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.55);
  }

  .job-card-icon-bg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .job-card-icon-bg i {
    font-size: 1.4rem;
  }

  .job-card h3 {
    font-size: 1.15rem;
  }

  .job-card p {
    font-size: calc(var(--font-size-small) - 0.05rem);
    margin-bottom: 15px;
  }
}

/* Testimonial Section */
.testimonial-section {
  background-color: #fff;
}
.testimonial-section h2 {
  margin-bottom: 40px;
}
.testimonial-slider {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  overflow: visible;
  padding: 0 30px;
}
.testimonial-card {
  display: none;
  text-align: center;
  padding: 30px;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-main);
  box-shadow: var(--box-shadow-soft);
  margin: 0 10px;
}
.testimonial-card.current {
  display: block;
  animation: fadeInTestimonial 0.6s ease-in-out;
}
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}
.testimonial-card p {
  font-style: normal;
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-color-default);
  line-height: 1.5;
  position: relative;
  padding-top: 15px;
}
.testimonial-card p::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
  position: absolute;
  top: -10px;
  left: 0;
}
.testimonial-card h4 {
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.testimonial-card span {
  font-size: 0.9rem;
  color: #777;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid #eee;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.slider-nav.prev {
  left: 0;
}
.slider-nav.next {
  right: 0;
}
.slider-nav:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

@keyframes fadeInTestimonial {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Logo Slider Section */
.logo-slider-section {
  background-color: var(--neutral-light);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}
.logo-carousel-track {
  display: flex;
  width: calc(200px * 10);
  animation: scrollLogos 30s linear infinite;
}
.logo-carousel-track img {
  height: 45px;
  margin: 0 40px;
  filter: none;
  opacity: 1;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-carousel-track img:hover {
  filter: none;
  opacity: 1;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 5));
  }
}
.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

/* About Us Section */
.about-us-section {
  background-color: #fff;
  text-align: center;
}
.about-us-section h2 {
  color: var(--secondary-color);
}
.about-us-section p {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Final CTA Section */
.final-cta-section {
  background: linear-gradient(
    -135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.final-cta-section h2 {
  color: #fff;
  font-weight: 700;
}
.final-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}
.final-cta-section .cta-button {
  background-color: #fff;
  color: var(--primary-color);
  padding: 16px 35px;
  font-size: 1.15rem;
}
.final-cta-section .cta-button:hover {
  background-color: var(--neutral-light);
  color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: #333;
  color: #bbb;
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}
footer a {
  color: var(--secondary-color);
}
footer a:hover {
  color: #64d9cf;
} /* Lighten secondary for hover */

/* Animation on Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.delay-1 {
  transition-delay: 0.15s;
}
.animate-on-scroll.delay-2 {
  transition-delay: 0.3s;
}
.animate-on-scroll.delay-3 {
  transition-delay: 0.45s;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2.2rem;
    --font-size-h3: 1.7rem;
    --font-size-h4: 1.3rem;
    --font-size-p: 1.05rem;
  }

  .interactive-form {
    max-width: 480px;
    padding: 25px 30px;
  }

  .steps-container,
  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .testimonial-slider {
    max-width: 90%;
    padding: 0 20px;
  }

  .slider-nav.prev {
    left: 5px;
  }

  .slider-nav.next {
    right: 5px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.2rem;
    --font-size-h2: 1.9rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-p: 1rem;
    --font-size-small: 0.9rem;
  }

  body {
    line-height: 1.6;
  }

  section {
    padding: 50px 0;
  }

  .hero-section {
    min-height: auto;
    padding: 80px 0 50px 0;
  }

  .hero-section p {
    font-size: calc(var(--font-size-p) + 0.1rem);
  }

  .interactive-form {
    width: 95%;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.55);
  }

  .interactive-form h3 {
    font-size: var(--font-size-h3);
  }

  .form-group select {
    padding: 12px 25px 12px 12px;
    background-position: right 10px center;
    font-size: var(--font-size-p);
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .job-cards-container,
  .stats-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .job-card {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat-number {
    font-size: 2.5rem;
  }

  .logo-carousel-track img {
    height: 40px;
    margin: 0 25px;
  }
  .logo-carousel-track {
    width: calc(150px * 10);
    animation-duration: 25s;
  }
  @keyframes scrollLogos {
    100% {
      transform: translateX(calc(-150px * 5));
    }
  }

  .testimonial-slider {
    max-width: 95%;
    padding: 0 15px;
  }

  .testimonial-card {
    padding: 25px 20px;
    margin: 0 5px;
  }

  .slider-nav.prev {
    left: -5px;
  }
  .slider-nav.next {
    right: -5px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-h1: 1.9rem;
    --font-size-h2: 1.7rem;
    --font-size-h3: 1.4rem;
    --font-size-h4: 1.2rem;
    --font-size-p: 1rem;
    --font-size-small: 0.85rem;
  }

  body {
    line-height: 1.5;
  }

  .cta-button,
  .cta-button-secondary {
    padding: 12px 20px;
    font-size: var(--font-size-small);
  }

  #heroCtaButton {
    font-size: 0.9rem;
  }

  .interactive-form .cta-button {
    font-size: var(--font-size-p);
  }

  .form-group label {
    font-size: var(--font-size-small);
  }

  .form-group select {
    font-size: var(--font-size-small);
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: var(--font-size-small);
  }

  .testimonial-card p {
    font-size: var(--font-size-small);
    line-height: 1.5;
  }

  .testimonial-card p::before {
    font-size: 2rem;
    top: -10px;
    left: 0;
  }

  .testimonial-avatar {
    width: 70px;
    height: 70px;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .step-item {
    padding: 15px;
  }

  .step-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .step-icon i {
    font-size: 1.3rem;
  }

  .step-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .step-item p {
    font-size: calc(var(--font-size-small) - 0.05rem);
    margin-bottom: 0;
  }

  .job-filter-tab {
    padding: 8px 8px;
    margin: 0 1px;
    font-size: var(--font-size-small);
  }

  /* 确保最小字体大小不低于14px，保证可读性 */
  .job-detail,
  .job-company-name,
  .job-type,
  .job-level {
    font-size: max(0.85rem, 14px);
  }

  .job-card-icon-bg {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .job-card-icon-bg i {
    font-size: 1.3rem;
  }

  .job-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .job-card p {
    font-size: calc(var(--font-size-small) - 0.05rem);
    margin-bottom: 15px;
  }
}

.title-gradient {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color) 70%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  padding-right: 5px;
}

/* CSS Ends Here */

/* 悬浮WhatsApp图标 */
.floating-whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer; /* 确保鼠标指针为手型 */
}

.floating-whatsapp-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer; /* 确保鼠标指针为手型 */
}

.floating-whatsapp-button i {
  font-size: 32px;
  pointer-events: none; /* 确保图标不会阻止事件冒泡到父元素 */
}

.floating-whatsapp-button a:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 在移动设备上调整尺寸 */
@media (max-width: 768px) {
  .floating-whatsapp-button {
    bottom: 20px;
    right: 20px;
  }

  .floating-whatsapp-button a {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-button i {
    font-size: 28px;
  }
}
