/* =========================================================
   qi2008 首页轻量版 v9 —— 图片轮播 + 去特效 + 三卡平齐居中 + 恢复默认数据统计 + Hero 文字左对齐 + 标题不换行
   覆盖 assets/css/style.css（首页 head 末尾加载）
   回滚：删除 index.php 中引入本文件的 <link> 即可。
   ========================================================= */

/* ---- 1. 导航：实色，不用毛玻璃 ---- */
.site-header{
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 1px 0 rgba(46,125,50,.10);
  transition: box-shadow .3s ease;
}
.site-header.scrolled{ box-shadow: 0 4px 18px rgba(27,94,32,.10); }
.site-header .logo, .site-header .logo a{ color: var(--green-900); font-weight: 800; }
.main-nav > ul > li > a{ color: #1f2a22; }
.main-nav > ul > li.active > a,
.main-nav > ul > li:hover > a{ color: var(--green-800); }

/* ---- 2. HERO：图片轮播，纯色兜底，文字左对齐，标题不换行 ---- */
.banner{
  height: 520px;
  background: #1b5e20 !important; /* 兜底底色，覆盖 style.css 残留浅色背景 */
  overflow: hidden;
  padding: 0 !important;            /* 覆盖 style.css 残留的 80/60 padding */
}
.banner-slides{ position: relative; height: 100%; }
.banner-slide{
  position: absolute; inset: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* 内容靠左 */
}
.banner-bg-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.banner-slide.banner-bg-1,
.banner-slide.banner-bg-2,
.banner-slide.banner-bg-3{
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.banner-slide::before{
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.12) 100%) !important;
  z-index: 1;
}
.banner-content{
  position: relative;
  text-align: left;
  color: #fff;
  max-width: none;                  /* 标题一行显示时不被宽度截断 */
  margin-left: 8%;
  margin-right: 8%;
  padding: 0;
  background: transparent !important;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  z-index: 2;
}
.banner-content h2,
.banner-content p{ color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.banner-content h2{
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 1px;
  white-space: nowrap;              /* 标题强制一行 */
}
.banner-content p{ font-size: 18px; opacity: .95; }
.banner-content .btn{ margin-top: 20px; }

/* ---- 3. 板块大留白 + 大气标题 ---- */
.section{ padding: 84px 0; }
.section-title{ margin-bottom: 48px; }
.section-title h2{ font-size: 36px; letter-spacing: .5px; }
.section-title .en{ font-size: 13px; letter-spacing: 5px; color: var(--green-500); }
.section-title h2::after{
  width: 72px; height: 5px; border-radius: 3px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  margin-top: 14px;
}

/* ---- 4. 核心优势：三卡平齐、内容居中、外框等高 ---- */
.advantage-grid{
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;           /* 三卡片外框等高 */
}
.advantage-card{
  display: flex;
  flex-direction: column;
  align-items: center;              /* 内容水平居中 */
  text-align: center;               /* 文字居中 */
  padding: 36px 30px; border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(46,125,50,.12);
  box-shadow: 0 8px 24px rgba(27,94,32,.06);
}
.advantage-card .advantage-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  box-shadow: 0 8px 20px rgba(67,160,71,.30);
  font-size: 32px; margin-bottom: 18px;
}
.advantage-card h3{
  font-size: 20px;
  margin: 0 0 14px;
  text-align: center;
}
.advantage-card p{
  text-align: center;
  margin: 0;
}
.advantage-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(27,94,32,.14);
}

/* ---- 5. 产品卡悬浮展厅（轻量） ---- */
.product-grid{ gap: 28px; }
.product-card{
  border-radius: 16px; border: 1px solid rgba(46,125,50,.10);
  background: #fff; overflow: hidden;
  box-shadow: 0 6px 18px rgba(27,94,32,.05);
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover{ transform: translateY(-8px); box-shadow: 0 20px 40px rgba(27,94,32,.12); }
.product-card img{ border-bottom: 1px solid rgba(46,125,50,.08); }
.product-card .info{ padding: 22px; text-align: center; }
.product-card h3{ font-size: 18px; margin-bottom: 8px; }
.product-card .btn{ margin-top: 12px; }

/* ---- 6. 关于我们：左图框兜底背景 ---- */
.about-home{ padding: 0; }
.about-home-img{
  background: #e8f5e9;              /* 兜底浅绿，避免透明/白图隐身 */
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-home-img img{
  max-width: 100%; height: auto; display: block;
}

/* ---- 7. 新闻 / 案例卡片 ---- */
.news-card, .case-card{
  border-radius: 14px;
  border: 1px solid rgba(46,125,50,.10);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover, .case-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(27,94,32,.10);
}

/* ---- 8. CTA / 页脚 ---- */
.cta-section{ background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.footer{ background: #12261a; }

/* ---- 9. 响应式 ---- */
@media (max-width: 900px){
  .banner{ height: 420px; }
  .banner-content{ margin-left: 5%; margin-right: 5%; }
  .banner-content h2{
    font-size: 28px;
    white-space: normal;            /* 移动端允许换行，避免溢出 */
  }
  .banner-content p{ font-size: 15px; }
  .advantage-grid{ grid-template-columns: 1fr; }
  .section{ padding: 60px 0; }
  .section-title h2{ font-size: 28px; }
}
