/* ================================================================
   广州智熵科技 — 主样式表
   渐进增强：基础样式 IE6+ 可解析，@supports 块为现代浏览器增强
   ================================================================ */

/* --- 重置 --- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  font-family: Arial, 'Inter', -apple-system, sans-serif;
  background: #ffffff;
  color: #1e2a1e;
  line-height: 1.6;
  font-size: 14px; font-size: 0.875rem;
  -webkit-font-smoothing: antialiased;
}

/* ==================================================================
   基础布局（IE6+ float 回退）
   ================================================================== */

/* --- 导航栏 --- */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  height: 78px;
  background: #ffffff; background: rgba(255,255,255,0.85);
  border-bottom: 1px solid #e0ede0;
}
.navbar.scrolled {
  background: #ffffff; background: rgba(255,255,255,0.94);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.navbar-inner {
  max-width: 1280px; margin:0 auto; padding:0 32px;
  height: 100%;
  overflow: hidden; /* clearfix */
}
.nav-logo {
  float: left;
  text-decoration: none; font-weight: 800;
  font-size: 22px; font-size: 1.4rem; letter-spacing: -0.02em;
  color: #1e2a1e;
  line-height: 78px;
  font-family: 'Space Grotesk', Arial, sans-serif;
}
.logo-svg {
  float: left;
  width: 38px; height: 38px;
  /* background: #84F13D;*/
  margin: 20px 10px 0 0;
  box-shadow: 0 4px 12px rgba(132,241,61,0.25);
}
.logo-svg svg {
  width: 24px; height: 24px;
  fill: #1e2a1e;
  margin: 7px 0 0 7px;
}
.nav-links {
  float: right;
  list-style: none;
  padding-top: 22px;
}
.nav-links li { float: left; margin-left: 6px; }
.nav-links a {
  text-decoration: none; color: #4a5a4a; font-weight: 500;
  font-size: 15px; font-size: 0.95rem; padding: 8px 18px;
  transition: all 0.3s ease;
}
.nav-links a:hover { color: #1e2a1e; background: rgba(132,241,61,0.08); background: #f0fde8; }
.nav-cta {
  background: #84F13D !important; color: #1e2a1e !important;
  font-weight: 700 !important; padding: 10px 24px !important;
  box-shadow: 0 4px 14px rgba(132,241,61,0.25);
}

/* --- 英雄区 --- */
.hero {
  padding: 150px 32px 100px;
  background: #f9fdf7; background: linear-gradient(180deg, #f9fdf7 0%, #ffffff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -80px;
  width: 500px; height: 500px;
  background: #f0fde8; background: radial-gradient(circle, rgba(132,241,61,0.08) 0%, transparent 70%);
}
.hero-glow { display: none; }
.hero-inner {
  max-width: 1280px; margin:0 auto;
  overflow: hidden; /* clearfix */
  position: relative; z-index: 2;
}
.hero-left { float: left; width: 48%; }
.hero-right { float: right; width: 48%; text-align: center; }
.hero-circle-outer {
  width: 260px; height: 260px;
  background: #f0fde8; background: radial-gradient(circle, rgba(132,241,61,0.10) 0%, transparent 70%);
  display: inline-block;
}
.hero-circle-inner {
  width: 130px; height: 130px;
  background: #ffffff;
  border: 2px solid #84F13D;
  margin: 65px auto;
  box-shadow: 0 0 30px rgba(132,241,61,0.25);
}
.hero-circle-inner svg {
  fill: #84F13D;
  margin: 35px 0 0 35px;
}
.hero-badge {
  display: inline-block;
  background: rgba(132,241,61,0.08); background: #f0fde8;
  color: #4a7a2a; font-weight: 600;
  font-size: 13px; font-size: 0.85rem;
  padding: 6px 18px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 45px; font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.15;
  color: #1e2a1e; margin-bottom: 20px;
}
.hero h1 .accent { color: #6BC82A; }
.hero p {
  font-size: 19px; font-size: 1.2rem;
  color: #4a5a4a; max-width: 460px; margin-bottom: 36px;
}

/* --- 按钮 --- */
.btn {
  display: inline-block;
  padding: 14px 32px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  font-family: inherit; font-size: 16px; font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
}
.btn-primary {
  background: #84F13D; color: #1e2a1e;
  box-shadow: 0 8px 24px rgba(132,241,61,0.25);
}
.btn-primary:hover { background: #9dff5a; }
.btn-outline {
  background: transparent; color: #1e2a1e;
  border: 2px solid #e0ede0;
}
.btn-outline:hover { border-color: #84F13D; background: rgba(132,241,61,0.08); background: #f0fde8; }

/* --- 通用区块 --- */
.section { padding: 100px 32px; }
.section-off { background: #f9fdf7; }
.section-inner { max-width: 1280px; margin:0 auto; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; font-weight: 600;
  font-size: 13px; font-size: 0.85rem;
  color: #4a7a2a; background: rgba(132,241,61,0.08); background: #f0fde8;
  padding: 5px 18px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: 38px; font-size: 2.4rem;
  font-weight: 800; color: #1e2a1e; margin-bottom: 14px;
}
.section-header p { color: #4a5a4a; max-width: 560px; margin: 0 auto; }

/* --- 服务卡片（float 回退） --- */
.services-grid { overflow: hidden; }
.service-card {
  float: left;
  width: 30%; margin: 0 1.5% 24px 1.5%;
  background: #ffffff; padding: 32px 24px;
  border: 1px solid #eaf5ea;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
}
.service-card:hover { border-color: #84F13D; box-shadow: 0 12px 30px rgba(132,241,61,0.08); }
.service-icon {
  font-size: 32px; font-size: 2rem;
  margin-bottom: 18px; color: #6BC82A;
}
.service-card h3 { font-size: 18px; font-size: 1.125rem; margin-bottom: 6px; }
.service-card p { color: #4a5a4a; }

/* --- 案例卡片（float 回退） --- */
.cases-grid { overflow: hidden; }
.case-card {
  float: left;
  width: 31%; margin: 0 1.16% 24px 1.16%;
  background: #ffffff; border: 1px solid #eaf5ea;
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
}
.case-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.case-img {
  height: 180px;
  background: #f0fde8; background: linear-gradient(135deg, #f0fde8, #e2fbd0);
  text-align: center; line-height: 180px; font-size: 48px; font-size: 3rem;
}
.case-body { padding: 20px; }
.case-body h4 { margin-bottom: 6px; }
.case-body p { color: #4a5a4a; }

/* --- 数据统计（float 回退） --- */
.stats-section { background: #1e2a1e; color: #ffffff; padding: 70px 32px; }
.stats-grid { max-width: 1280px; margin:0 auto; overflow: hidden; }
.stat {
  float: left; width: 25%; text-align: center;
}
.stat h3 {
  font-size: 45px; font-size: 2.8rem;
  font-weight: 800; color: #84F13D;
}
.stat p { color: rgba(255,255,255,0.75); color: #ffffff; }

/* --- 关于我们（float 回退） --- */
.about-values { overflow: hidden; max-width: 700px; margin: 30px auto 0; }
.about-values > div { float: left; width: 30%; margin: 0 1.66% 24px 1.66%; }
.about-values h4 { margin-bottom: 4px; }
.about-values p { color: #4a5a4a; }

/* --- CTA 区块 --- */
.cta-section {
  padding: 90px 32px;
  background: #f9fdf7; background: linear-gradient(180deg, #f9fdf7, #ffffff);
}
.cta-box {
  max-width: 800px; margin:0 auto;
  background: #ffffff; border: 1px solid #eaf5ea;
  padding: 60px 48px; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* --- 客服组件（IE6+ base，float 回退，无 border-radius/animation/flex） --- */
.customer-service {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 1000;
}
.cs-button {
  background: #84F13D;
  color: #1e2a1e;
  border: 2px solid #6BC82A;
  padding: 12px 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  zoom: 1;
}
.cs-button:hover { background: #9dff5a; }
.cs-dialog {
  position: fixed;
  right: 20px;
  bottom: 180px;
  width: 300px;
  background: #ffffff;
  border: 1px solid #e0ede0;
  display: none;
  overflow: hidden;
  zoom: 1;
}
.cs-dialog.active { display: block; }
.cs-header {
  background: #84F13D;
  color: #1e2a1e;
  padding: 15px 20px;
  overflow: hidden;
  zoom: 1;
}
.cs-header h3 {
  float: left;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.close-button {
  float: right;
  background: none;
  border: none;
  color: #1e2a1e;
  cursor: pointer;
  padding: 5px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
}
.close-button:hover { color: #ffffff; }
.cs-content { padding: 20px; }
.cs-info p {
  color: #4a5a4a;
  margin-bottom: 15px;
}
.cs-contact { overflow: hidden; zoom: 1; }
.cs-item {
  text-align: center;
  padding: 15px;
  margin-bottom: 15px;
  background: #f0fde8;
  border: 1px solid #e0ede0;
}
.cs-item i {
  display: block;
  font-size: 24px;
  color: #4a7a2a;
  margin-bottom: 8px;
  font-style: normal;
}
.cs-item p { margin: 4px 0; }
.cs-item .qr-code {
  width: 150px;
  height: 150px;
  margin: 10px auto;
  display: block;
}
.cs-item .email {
  color: #4a7a2a;
  font-weight: 600;
}

/* --- 页脚（float 回退） --- */
.footer { background: #1e2a1e; color: #bccdb8; padding: 60px 32px 30px; }
.footer-inner { max-width: 1280px; margin:0 auto; overflow: hidden; }
.footer-inner > div { float: left; width: 20%; margin-right: 4%; }
.footer a, .footer p {
  color: #bccdb8; text-decoration: none;
  font-size: 14px; font-size: 0.9rem; line-height: 2;
}
.footer a:hover { color: #84F13D; }
.footer h4 { color: #ffffff; margin-bottom: 12px; }
.footer-bottom {
  text-align: center; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid #344034;
  font-size: 13px; font-size: 0.85rem;
}

/* --- 响应式 --- */
@media (max-width: 900px) {
  .hero-inner { max-width: 100%; }
  .hero-left { float: none; width: auto; }
  .hero-right { float: none; width: auto; margin-top: 30px; }
  .stat { width: 50%; margin-bottom: 20px; }
  .footer-inner > div { width: 46%; margin-bottom: 20px; }
  .about-values > div { width: 100%; float: none; margin: 0 0 16px 0; }
  .service-card { width: 46%; margin: 0 2% 24px 2%; }
  .case-card { width: 100%; float: none; margin: 0 0 24px 0; }
}

/* ==================================================================
   @supports 增强（仅现代浏览器，IE 全系忽略整个块）
   ================================================================== */

@supports (display: grid) {
  /* --- 导航栏 → Flexbox --- */
  .navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    overflow: visible;
  }
  .nav-logo {
    float: none;
    display: flex; align-items: center; gap: 10px;
    line-height: normal;
  }
  .logo-svg {
    float: none; margin: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .logo-svg svg { margin: 0; }
  .nav-links {
    float: none; padding-top: 0;
    display: flex; align-items: center; gap: 6px;
  }
  .nav-links li { float: none; margin-left: 0; }

  /* --- 英雄区 → Grid --- */
  .hero-left { float: none; width: auto; }
  .hero-right { float: none; width: auto; text-align: left; }
  .hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    overflow: visible;
  }
  .hero-circle-outer {
    display: flex; align-items: center; justify-content: center;
  }
  .hero-circle-inner {
    display: flex; align-items: center; justify-content: center;
    margin: 0;
  }
  .hero-circle-inner svg { margin: 0; }

  /* --- 服务 → Grid --- */
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
  .service-card { float: none; width: auto; margin: 0; }

  /* --- 案例 → Grid --- */
  .cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
  .case-card { float: none; width: auto; margin: 0; }

  /* --- 统计 → Grid --- */
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .stat { float: none; width: auto; }

  /* --- 关于 → Grid --- */
  .about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about-values > div { float: none; width: auto; margin: 0; }

  /* --- 页脚 → Grid --- */
  .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-inner > div { float: none; width: auto; margin-right: 0; }

  /* 按钮 → inline-flex */
  .btn { display: inline-flex; align-items: center; gap: 8px; }
  .hero-badge { display: inline-flex; align-items: center; gap: 8px; }
  .case-img { display: flex; align-items: center; justify-content: center; line-height: normal; }


  /* 客服增强（border-radius / flex / animation / box-shadow） */
  .cs-button {
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(132,241,61,0.2);
    transition: all 0.3s ease;
  }
  .cs-button:hover {
    box-shadow: 0 6px 16px rgba(132,241,61,0.3);
    transform: translateY(-2px);
  }
  .cs-button i { font-size: 1.2rem; }
  .cs-dialog { border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
  .cs-dialog.active { animation: slideIn 0.3s ease; }
  .cs-header { color: #ffffff; display: flex; justify-content: space-between; align-items: center; }
  .cs-header h3 { float: none; font-size: 1.1rem; }
  .close-button { float: none; color: #ffffff; }
  .cs-contact { display: flex; flex-direction: column; gap: 20px; }
  .cs-item { border: none; border-radius: 8px; }

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

  @media (max-width: 768px) {
    .cs-dialog { width: calc(100% - 40px); bottom: 190px; }
    .cs-button span { display: none; }
    .cs-button { padding: 12px; border-radius: 50%; }
  }
  /* --- 响应式 Grid 覆盖 --- */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .service-card { margin: 0; }
  }
}

@supports (backdrop-filter: blur(1px)) {
  .navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
  }
  .navbar.scrolled {
    background: rgba(255,255,255,0.94);
  }
}

@supports (border-radius: 1px) {
  .logo-svg { border-radius: 9px; }
  .nav-links a { border-radius: 30px; }
  .nav-cta { border-radius: 30px; }
  .hero-badge { border-radius: 30px; }
  .section-badge { border-radius: 30px; }
  .btn { border-radius: 34px; }
  .service-card { border-radius: 14px; }
  .case-card { border-radius: 14px; }
  .cta-box { border-radius: 20px; }
  .hero-circle-outer { border-radius: 50%; }
  .hero-circle-inner { border-radius: 50%; }
  .hero::before { border-radius: 50%; }
}

@supports (transform: translateY(0)) {
  .btn-primary:hover { transform: translateY(-2px); }
  .service-card:hover { transform: translateY(-6px); }
  .case-card:hover { transform: translateY(-6px); }
}

@supports (text-shadow: 0 0 1px black) {
  .hero h1 .accent { text-shadow: 0 2px 12px rgba(132,241,61,0.25); }
  .stat h3 { text-shadow: 0 0 18px rgba(132,241,61,0.25); }
}

