/* ==========================================================================
   南京华泽环保工程有限公司 · 动态站补充样式
   原站 style.css 保持不变，这里只做增强与修复，避免破坏原有版式
   ========================================================================== */

/* ---------- 1. 首页轮播：原模板依赖 owl-carousel 的 JS，这里改为纯 CSS 定位 ---------- */
.hero-wrap .home-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-wrap .home-slider .slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  background-size: cover;
  background-position: center center;
}

.hero-wrap .home-slider .slider-item.is-active {
  opacity: 1;
}

/* 移动端首页高度收敛，避免一屏全是空白 */
@media (max-width: 767.98px) {
  .hero-wrap {
    height: 620px;
  }
  .hero-wrap .slider-text {
    height: 620px;
  }
  .hero-wrap .slider-text h1 {
    font-size: 32px;
  }
  .hero-wrap.hero-wrap-2 {
    height: 340px;
  }
  .hero-wrap.hero-wrap-2 .slider-text {
    height: 340px;
  }
  .hero-wrap.hero-wrap-2 .slider-text .bread {
    font-size: 28px;
  }
}

/* ---------- 2. 进场动画：原 main.js 缺失导致 .ftco-animate 永远不可见 ---------- */
.ftco-animate.ftco-animated {
  opacity: 1;
  visibility: visible;
  animation-duration: .9s;
  animation-fill-mode: both;
  animation-name: hzhbFadeUp;
}

@keyframes hzhbFadeUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 关闭动画偏好或老浏览器兜底，保证内容可见 */
@media (prefers-reduced-motion: reduce) {
  .ftco-animate { opacity: 1; visibility: visible; }
}

/* ---------- 3. 导航 ---------- */
.ftco-navbar-light.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  background: #141b25 !important;
}

.navbar .navbar-toggler {
  cursor: pointer;
  border-color: rgba(255, 255, 255, .4);
}

/* 没有 bootstrap.js 时，手动切换的折叠菜单 */
#ftco-nav.show {
  display: block;
  background: #141b25;
}

@media (max-width: 991.98px) {
  #ftco-nav.show {
    padding: 10px 0;
  }
}

/* ---------- 4. 正文排版 ---------- */
.article-content {
  font-size: 17px;
  line-height: 2;
  color: #333;
  word-break: break-word;
}

.article-content p {
  margin-bottom: 1.1rem;
}

.article-content img,
.article-content video,
.article-content table {
  max-width: 100%;
  height: auto;
}

.article-content img {
  display: block;
  margin: 1.2rem auto;
  border-radius: 4px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.6rem 0 .9rem;
  line-height: 1.5;
  font-weight: 600;
}

.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.article-content table th,
.article-content table td {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
}

.article-content blockquote {
  border-left: 4px solid #5d8c55;
  background: #f7f9f5;
  margin: 1.2rem 0;
  padding: 12px 18px;
  color: #555;
}

.article-meta {
  color: #8a8a8a;
  font-size: 14px;
  margin-bottom: 20px;
}

.article-meta span {
  margin-right: 18px;
}

/* ---------- 5. 列表卡片 ---------- */
.blog-entry .block-20 {
  display: block;
  height: 220px;
  background-size: cover;
  background-position: center center;
}

.blog-entry .heading {
  min-height: 56px;
}

.blog-entry .heading a {
  font-size: 18px;
  line-height: 1.5;
}

.blog-entry .text {
  padding: 1.4rem 1.2rem;
}

/* 工程业绩卡片 */
.project-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.project-card .thumb {
  height: 190px;
  background-size: cover;
  background-position: center center;
  background-color: #eef2ea;
}

.project-card .body {
  padding: 18px 20px 22px;
}

.project-card .tag {
  display: inline-block;
  font-size: 12px;
  color: #5d8c55;
  border: 1px solid #cfe0c8;
  border-radius: 3px;
  padding: 1px 8px;
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 17px;
  line-height: 1.55;
  min-height: 52px;
  margin-bottom: 8px;
}

.project-card h3 a { color: #1b1b1b; }
.project-card h3 a:hover { color: #5d8c55; }

.project-card .meta {
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 0;
}

/* ---------- 6. 图集 & 证书 ---------- */
.gallery-grid .gallery-item {
  display: block;
  position: relative;
  margin-bottom: 26px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-grid .gallery-item .caption {
  padding: 12px 16px;
  font-size: 14px;
  color: #444;
  text-align: center;
}

/* 简易灯箱 */
.lightbox-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 30px;
  cursor: zoom-out;
}

.lightbox-mask.show { display: flex; }

.lightbox-mask img {
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

/* ---------- 7. 分页 ---------- */
.block-27 ul li a,
.block-27 ul li span {
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
}

/* ---------- 8. 联系页表单 ---------- */
.contact-form .form-control {
  border-radius: 0;
  height: 52px;
  font-size: 15px;
}

.contact-form textarea.form-control {
  height: 150px;
}

.contact-info-card {
  background: #f7f9f5;
  border-left: 3px solid #5d8c55;
  padding: 18px 22px;
  margin-bottom: 16px;
}

.contact-info-card strong {
  display: block;
  color: #2a2a2a;
  margin-bottom: 4px;
}

/* ---------- 9. 侧栏 ---------- */
.sidebar-box .categories li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  list-style: none;
}

.sidebar-box .categories li a {
  color: #333;
  font-size: 15px;
}

.sidebar-box .categories li a:hover { color: #5d8c55; }

/* ---------- 10. 杂项 ---------- */
.pagination-wrap {
  margin-top: 30px;
}

.empty-tip {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 16px;
}

#ftco-loader.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}

img.logo-img {
  max-height: 64px;
  width: auto;
}

.footer-links a {
  color: rgba(255, 255, 255, .5);
}

.footer-links a:hover {
  color: #fff;
}


/* ---------- 4. 头部品牌在窄屏下的收敛 ---------- */
.navbar-brand { max-width: 100%; flex-wrap: nowrap; }
img.logo-img { flex: 0 0 auto; max-width: 200px; height: auto; }
.site-name-wrap { min-width: 0; }
.site-name-en { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 767.98px) {
  .site-name-en { display: none !important; }
  img.logo-img { max-height: 46px; max-width: 140px; }
  .site-name { font-size: 19px; letter-spacing: .5px; }
  .topper { display: none !important; }
  .top .col-sm:last-child { display: none; }
  .top-contact { font-size: 12px; }
  .navbar-brand { width: 100%; }
  .hero-wrap .slider-text h1 { font-size: 27px; line-height: 1.35; }
  .hero-wrap .slider-text .btn-outline-light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.85); }
}

/* ---------- 修复：列表卡片标题与日期在部分环境下不可见 ---------- */
.blog-entry .text,
.blog-entry .text .heading,
.blog-entry .text .heading a,
.blog-entry .text .meta,
.blog-entry .text .meta p,
.blog-entry .text .meta p a {
  visibility: visible;
}

.blog-entry .text .heading a,
.blog-entry .text .meta p a {
  color: #141b25;
}
/* ---------- 兜底：JS 未执行时动画元素也保持可见，避免整块内容空白 ---------- */
.ftco-animate {
  opacity: 1;
  visibility: visible;
}
/* ---------- 主视觉文字对比度：浅色天空上加深阴影，保证可读 ---------- */
.hero-wrap .subheading,
.hero-wrap h1,
.hero-wrap p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 3px 26px rgba(0, 0, 0, .55);
}