@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* --primary: #0052FF; */
   --primary: #005f14;
  --primary-light: #E5F2FF;
  --secondary: #FF3B30;
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --alt-bg: #F8F9FA;
  --surface: #ffffff;
  --border: #EAECEF;
  --shadow: rgba(0, 0, 0, 0.05);
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gradient-1: #4CC9F0; /* sky blue */
  --gradient-2: #4361EE; /* indigo */
  --gradient-3: #005f14; /* purple */
  /* --gradient-4: #005f14; magenta */
  --transition: all .3s ease;
   --gradient-nav: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  /* 让动态渐变层可见：移除纯色背景并建立层叠上下文 */
  background: transparent;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 自定义鼠标指针（隐藏系统指针） */
body.custom-cursor, body.custom-cursor a, body.custom-cursor button {
  cursor: none;
}

/* Dynamic Gradient Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* 确保在内容后、但不被根背景遮挡 */
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3),
    /* var(--gradient-4), */
    var(--gradient-1));
  background-size: 300% 300%;
  opacity: 0.36;
  filter: blur(80px);
  animation: bodyGradientShift 12s ease infinite;
  will-change: background-position;
}

@keyframes bodyGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 82, 255, 0.22); }
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; 
  z-index: 1000;
  /* Opaque layered background: white overlay + animated gradient */
  background:
    /* Match body perceived opacity: final = 0.32*gradient + 0.68*white */
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    linear-gradient(120deg,
      var(--gradient-1),
      var(--gradient-2),
      var(--gradient-3),
      /* var(--gradient-4), */
      var(--gradient-1));
  background-size: auto, 300% 300%;
  animation: bodyGradientShift 12s ease infinite;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  transition: var(--transition);
  overflow: hidden;
}
.site-header.scrolled {
  border-bottom-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}
.brand { font-size: 26px; font-weight: 700; text-decoration: none; color: var(--text); }
.brand img, .brand-logo { display: block; height: 80px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; transition: color .2s; position: relative; padding: 4px 0; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s ease;
}
 .nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; }
/* 汉堡按钮三条横线样式 */
.nav-toggle {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  margin: 3px 0;
  border-radius: 1px;
  transition: background-color .2s ease;
}
.nav-toggle:hover .icon-bar { background-color: var(--primary); }

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero */
.hero.full-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0;
}
.hero-copy h1 {
  font-size: clamp(48px, 7vw, 72px);
  margin: 0 0 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-copy p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 1000px;
  margin: 20px 48px;
}
.hero-cta { display: flex; justify-content: center; gap: 20px; }

/* Sections */
.section { padding: 120px 0; }
.section.alt { background: var(--alt-bg); }
.section-head { text-align: center; margin-bottom: 80px; }
.section-head h2 {
  font-size: 42px;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }

/* Service Grid */
.grid-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.card-service {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 82, 255, 0.12);
}
/* 点击时也给少量放大反馈 */
.card-service:active {
    transform: translateY(-2px);
}
.card-icon {
    font-size: 48px;
    margin-bottom: 24px;
}
.card-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: inline-block;
}
.card-service h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
}
.card-service p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: stretch;
}
.split-layout.reverse .split-content { order: 2; }
.split-layout.reverse .split-media { order: 1; }
.split-content .section-title {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.3;
}
.split-content p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
/* 让分栏中的媒体内容居中显示（水平+垂直） */
.split-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-media img {
  max-width: 100%;
  /* border-radius: 24px; */
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

/* KPI cards grid for About section */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.kpi-card {
  border-radius: 16px;
  padding: 28px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.kpi-icon {
  margin-bottom: 10px;
}
.kpi-icon .icon {
  width: 36px;
  height: 36px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inline layout for KPI card with image on the left and text on the right */
.kpi-card.kpi-inline {
  flex-direction: row;
  align-items: center;
}
.kpi-card.kpi-inline .kpi-icon {
  margin: 0 12px 0 0;
}
.kpi-card.kpi-inline .kpi-icon img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
}
.kpi-card.kpi-inline .kpi-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-card.kpi-inline h3 { margin: 0; }
.kpi-card.kpi-inline p { margin: 0; }
.kpi-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.kpi-card p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}
.kpi-red .kpi-icon { color: #D94C4C; }
.kpi-teal .kpi-icon { color: #4CB0C2; }
.kpi-dark .kpi-icon { color: #333; }
.kpi-green .kpi-icon { color: #5BC29D; }

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

/* Six-image gallery grid: two rows, three columns, uniform sizing */
.gallery-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  height: auto;
  gap: 12px;
  justify-items: center;
  align-items: center;
}
.gallery-tiles img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* 保证横向完整显示，不被裁切 */
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Single-row variant: center the row within the parent height */
.gallery-tiles.three {
  grid-template-rows: 1fr;
  align-content: center;
}

/* Products section: spacing between the two product blocks and tighter column gap
   - Adds vertical space between the first and second split-layout
   - Reduces the column gap for the second block to bring images closer to text */
#products .split-layout + .split-layout {
  margin-top: 64px;
  gap: 64px;
}

@media (max-width: 1024px) {
  #products .split-layout + .split-layout {
    margin-top: 40px;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  #products .split-layout + .split-layout {
    margin-top: 32px;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .gallery-tiles { height: auto; }
}
@media (max-width: 768px) {
  .gallery-tiles { height: auto; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.6;
}
.checklist li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 600;
  font-size: 20px;
  top: -2px;
}

/* Features Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    transition: background .3s ease;
}
.feature-item:hover {
    background: var(--surface);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary);
}
.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}
.feature-item p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Contact */
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-form { display: grid; gap: 24px; }
.form-group-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--alt-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
}
.contact-form button { width: 100%; }

/* Contact form status messages */
.form-status {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  background: var(--alt-bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  /* align-items: flex-start; */
  gap: 16px;
}
.footer-brand img{
  width: 80px;
  height: 80px;
  margin-left: 0px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.addr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin-right: 8px;
}
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin-right: 8px;
}
.addr-icon svg {
  width: 100%; height: 100%;
  stroke: #183D6F; /* 深蓝近似示例色 */
  stroke-width: 2;
}
.addr-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-icon svg { width: 100%; height: 100%; stroke: #183D6F; stroke-width: 2; }
.footer-slogan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #183D6F;
  font-style: italic;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.footer-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 320px;
}
.footer-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-slogan a { color: #183D6F; text-decoration: underline; }
.footer-slogan {
  margin-top: 8px;
  font-size: 20px;
  color: var(--text);
  display: flex;
}
.footer-strong {
  font-weight: 700;
}
.footer-copy {
  font-size: 15px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
  width: 100%;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll[data-animation="fade-in"] {
    transform: translateY(20px);
}
.animate-on-scroll[data-animation="fade-in-up"] {
    transform: translateY(40px);
}
.animate-on-scroll[data-animation="fade-in-left"] {
    transform: translateX(-40px);
}
.animate-on-scroll[data-animation="fade-in-right"] {
    transform: translateX(40px);
}
.animate-on-scroll[data-animation="jump-in"] {
    transform: translateY(50px) scale(0.95);
}

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

/* 保证服务卡片在滚动动画可见后，悬停仍可放大（避免上面规则覆盖） */
.card-service.animate-on-scroll.is-visible:hover {
  transform: translateY(-6px) scale(1.06) !important;
  box-shadow: 0 20px 50px rgba(0, 82, 255, 0.16);
}


/* Responsive */
@media (max-width: 1024px) {
    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .split-layout.reverse .split-content { order: 1; }
    .grid-services { grid-template-columns: 1fr 1fr; }
    .grid-features { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-header { overflow: visible; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    /* 与 body/头部一致的层叠背景：半透明白叠加动态渐变 */
    background:
      linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
      linear-gradient(120deg,
        var(--gradient-1),
        var(--gradient-2),
        var(--gradient-3),
        var(--gradient-1));
    background-size: auto, 300% 300%;
    animation: bodyGradientShift 12s ease infinite;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); text-align: center; color: var(--text); }
  .nav-links a:last-child { border-bottom: none; }
  /* 移动端：仅隐藏未选中的下划线，选中项显示 */
  .nav-links a:not(.active)::after { display: none; }
  .nav-links a.active::after { display: block; }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  
  .hero.full-screen { min-height: 80vh; padding: 80px 0; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }
  .section-head h2 { font-size: 34px; }

  .grid-services { grid-template-columns: 1fr; }
  .grid-features { grid-template-columns: 1fr; }
  .form-group-split { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}