/* ==========================
   GLOBAL STYLES
========================== */
body {
  background: radial-gradient(circle at top left, #050B14, #0b1a2a);
  color: #E9F3FF;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* 可选：添加轻微噪点/纹理 */
body::before {
  content: "";
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 2px, transparent 2px);
  background-size: 25px 25px;
}


.section {
  padding: 100px 5%;
  position: relative;
}

.section h2 {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #84d5ff, #d0b3ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* ==========================
   HERO SECTION
========================== */
.services-hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(0,168,255,0.2), transparent 60%);
  position: relative;
}

.services-hero:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  background: url('../assets/grid.svg');
  opacity: 0.08;
  pointer-events: none;
}

.services-hero h1 {
  font-size: 68px;
  font-weight: 800;
  background: linear-gradient(120deg, #00eaff, #8e5bff);
  -webkit-background-clip: text;
  color: transparent;
}

.services-hero p {
  width: 60%;
  max-width: 780px;
  margin: 20px auto 40px;
  font-size: 19px;
  color: #bcdcff;
  line-height: 1.7;
}

.services-scroll-hint {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 20px;
}

/* ==========================
   SERVICE GRID
========================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
    .service-card { padding: 32px; border-radius: 22px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(12px); position: relative; }
    .service-card i { font-size: 38px; margin-bottom: 18px; color: #58d0ff; }
    .service-card h3 { margin-bottom: 12px; font-size: 22px; font-weight: 700; }
    .service-card p { font-size: 15px; opacity: 0.9; line-height: 1.6; }
    .service-card img{ width: 100%; max-width: 280px; max-height: 250px; border-radius: 14px; display: block; margin: 12px auto; }
    .tab-btn { padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); background: rgba(45, 168, 245, 0.05); border-radius: 8px; cursor: pointer; margin-right: 10px;color: #f8fafa;  transition: .25s; }
    .tab-btn.active { background: linear-gradient(90deg,#00eaff,#8f57ff); color: #fff; }
    .tab-content { display: none; margin-top: 12px; }
    .tab-content.active { display: block; }
    .tab-img { width: 100%; max-width: 280px; max-height: 250px; border-radius: 14px; display: block; margin: 12px auto; }
    .inquire-btn { margin-top: 16px; color: #f8fafa; padding: 8px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgb(67, 138, 219); cursor: pointer; }
.tab-img:hover {
  transform: scale(1.05);
  transition: 0.35s;
}


/* CTA button inside card */
.service-card .cta-mini {
  margin-top: 16px;
  font-size: 14px;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  transition: 0.2s;
}

.service-card .cta-mini:hover {
  background: rgba(0,200,255,0.3);
  border-color: rgba(0,200,255,0.7);
}


.show-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap; /* 不换行，保证横排 */
  margin-top: 30px;
}

.show-item {
  width: 300px; /* ✅ 限制每张图片容器大小 */
  height: 220px; /* ✅ 固定展示窗口比例 */
  overflow: hidden; /* ✅ 超出裁剪，避免图片变形 */
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  transition: .3s ease;
}

.show-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ 保持比例、不拉伸 */
  transition: .35s;
}

.show-item:hover img {
  transform: scale(1.05);
}



/* ==========================
   CONTACT / INQUIRY BANNER
========================== */
.ask-banner {
  background: linear-gradient(120deg, rgba(0,195,255,0.25), rgba(147,75,255,0.25));
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  padding: 60px;
  text-align: center;
  border-radius: 28px;
  margin-top: 120px;
  transition: 0.35s ease;
}

.ask-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,190,255,0.25);
}

.ask-banner h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ask-banner p {
  opacity: 0.8;
  font-size: 18px;
}

.ask-banner .cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  background: linear-gradient(90deg, #00eaff, #8f57ff);
  color: #fff;
  transition: 0.25s;
}

.ask-banner .cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,183,255,0.4);
}

/* ==========================
   ANIMATIONS
========================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s cubic-bezier(.18, .82, .29, 1);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   MOBILE / RESPONSIVE
========================== */
@media(max-width: 800px) {
  .services-hero h1 {
    font-size: 46px;
  }
  .services-hero p {
    width: 90%;
  }
}

.fa-dna {
  transition: transform 0.3s ease;
}

.fa-dna:hover {
  transform: scale(1.3) rotate(10deg);
  color: #00eaff; /* 可加颜色变化 */
}

.fa-flask {
  transition: transform 0.3s ease;
}

.fa-flask:hover {
  transform: scale(1.3) rotate(10deg);
  color: #00eaff; /* 可加颜色变化 */
}


.fa-cogs {
  transition: transform 0.3s ease;
}

.fa-cogs:hover {
  transform: scale(1.3) rotate(10deg);
  color: #00eaff; /* 可加颜色变化 */
}

