/*
Theme Name: 铜陵御莱环保科技
Theme URI: http://www.yulaiwater.com
Author: 御莱环保
Version: 1.6
Description: 厌氧颗粒污泥专属企业主题，支持动态产品、新闻、业绩展示，适配移动端
*/

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body {
  font-family:"Microsoft YaHei",sans-serif;
  background:#f7f9fc;
  color:#333;
  line-height:1.8;
}
a {
  text-decoration:none;
  color:#333;
  transition:all 0.3s ease;
}
img {
  max-width:100%;
  height:auto;
  display:block;
}
.container {
  width:1200px;
  margin:0 auto;
  padding:0 15px;
}
@media(max-width:1200px){
  .container {width:100%;}
}

/* 导航栏 */
.header {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.4s ease;
  margin-bottom:15px;
}
.logo {
  display: flex;
            align-items: center;
  color: #0e9c57;
	height: 50px;
  letter-spacing:1px;
}
.logo svg {
	height: 100%;
	width: auto;
	transition: #0e9c57;
}
.logo svg path,.logo svg text{
	fill: #0e9c57;
}
.menu a {
  margin-left:30px;
  font-size:16px;
  color: #333;
  position:relative;
}
.menu a:hover {
  color:#0e9c57 !important;
}
.menu a::after {
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:#0e9c57;
  transition:width 0.3s ease;
}
.menu a:hover::after {
  width:100%;
}
.nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  position: relative;
}
/* --- LOGO 区域 --- */
.home-page .header {
  background: transparent;
  box-shadow: none;
}
.home-page .header.scrolled {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.home-page .logo {
  color: #fff;
}
 .home-page .logo svg {
            height: 100%;
            width: auto;
            transition: #fff;
        }
        .home-page .logo svg path,.logo svg text{
            fill: #fff;
        }
        .home-page .header.scrolled .logo svg path {
            fill: #0e9c57;
        }
        .home-page .header.scrolled .logo svg text {
            fill: #0e9c57;
        }

.home-page .header.scrolled .logo {
  color: #0e9c57;
}
.home-page .menu a {
  color: #fff;
}
.home-page .header.scrolled .menu a {
  color: #333;
}
    
/* 移动端按钮 */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #0e9c57;
  cursor: pointer;
}
.home-page .nav-toggle {
  color: #fff;
}
.home-page .header.scrolled .nav-toggle {
  color: #0e9c57;
}

/* 移动端菜单 */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu a {
    margin: 12px 0 !important;
    color: #333 !important;
    text-align: center;
    font-size: 16px;
  }

  /* 移动端产品：每个独占一行 */
  .products {
    flex-direction: column;
    gap: 20px;
  }
  .product-item {
    max-width: 100%;
    min-width: 100%;
  }
}

/* Banner 全屏宽 + 全屏高 */
.banner {
  width: 100%;
  height: 100vh; /* 关键：一整屏高度 */
  min-height: 520px;
  background: linear-gradient(120deg, rgba(14, 156, 87, 0.7), rgba(22, 169, 199, 0.7)),
                        url('https://images.unsplash.com/photo-1644389355109-15b26f71c36b?q=80&w=1962&fit=crop');
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(transparent, #f7f9fc);
}
.banner-content { max-width: 900px; padding: 0 2rem; }
        .banner h1 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 800; }
        .banner p { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; }

.banner-btns {
  display:inline-block;
  padding:12px 35px;
  background:#fff;
  color:#0e9c57;
  border-radius:50px;
  font-size:16px;
  transition:all 0.3s ease;
}
.banner-btns:hover {
  background:#0e9c57;
  color:#fff;
  transform:translateY(-3px);
}

/* 通用模块 */
.section {
  padding:80px 0;
  background:#fff;
  margin-top:30px;
  border-radius:12px;
  box-shadow:0 2px 18px rgba(0,0,0,0.04);
}
.section-title {
  text-align:center;
  font-size:36px;
  color:#222;
  margin-bottom:18px;
  position:relative;
  padding-bottom:18px;
  font-weight:600;
}
.section-title::after {
  content:"";
  width:80px;
  height:4px;
  background:#0e9c57;
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  border-radius:2px;
}
.section-desc {
  text-align:center;
  max-width:850px;
  margin:0 auto 55px;
  color:#666;
  font-size:16px;
  line-height:1.9;
}

/* 关于我们 */
.about {
  text-align:center;
  font-size:16px;
  max-width:950px;
  margin:0 auto;
  line-height:2;
  color:#555;
}

/* 产品展示 4:3 */
.products {
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin-top:40px;
  justify-content:center;
}
.product-item {
  flex:1;
  min-width:240px;
  max-width:360px;
  background:#f9fbfc;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #f0f0f0;
  transition:all 0.3s ease;
}
.product-item:hover {
  transform:translateY(-8px);
  box-shadow:0 12px 28px rgba(0,0,0,0.08);
  border-color:#0e9c57;
}
.product-thumb {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  background: #e6f3ec;
}
.product-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding:25px;
  text-align: center;
}
.product-title {
  font-size:20px;
  color:#222;
  margin-bottom:12px;
  font-weight:600;
}
.product-desc {
  color:#666;
  font-size:15px;
  line-height:1.8;
  margin-bottom:15px;
}
.product-more {
  color:#0e9c57;
  font-size:15px;
  font-weight:500;
  display:inline-block;
}
.product-more:hover {
  padding-left:8px;
}
.no-product {
  text-align:center;
  padding:40px;
  color:#666;
  font-size:16px;
}

/* 企业业绩 */
.achievement {
  background:#fff;
}
.achievement-box {
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  margin-top:50px;
  justify-content:center;
}
.achievement-item {
  flex:1;
  min-width:200px;
  text-align:center;
  padding:35px 20px;
  background:#f9fbfc;
  border-radius:12px;
  transition:all 0.3s ease;
  border:1px solid #f0f0f0;
}
.achievement-item:hover {
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(14,156,87,0.1);
  border-color:#0e9c57;
}
.achievement-num {
  font-size:42px;
  font-weight:bold;
  color:#0e9c57;
  margin-bottom:15px;
}
.achievement-text {
  font-size:18px;
  color:#333;
  font-weight:500;
}

/* 服务 */
.services {
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  margin-top:40px;
}
.service {
  flex:1;
  min-width:320px;
  background:#f9fbfc;
  padding:40px 30px;
  border-radius:12px;
  text-align:center;
  border:1px solid #eee;
  transition:all 0.3s ease;
}
.service:hover {
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  border-color:#0e9c57;
}
.service h3 {
  margin:18px 0;
  color:#0e9c57;
  font-size:20px;
  font-weight:600;
}
.service p {
  color:#666;
  line-height:1.7;
}

/* 首页新闻 */
.home-news {
  background:#f9fbfc;
}
.home-news-box {
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  margin-top:40px;
}
.home-news-item {
  flex:1;
  min-width:350px;
  background:#fff;
  padding:28px;
  border-radius:10px;
  border:1px solid #f0f0f0;
  transition:all 0.3s ease;
}
.home-news-item:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}
.home-news-time {
  color:#0e9c57;
  font-size:14px;
  font-weight:bold;
  margin-bottom:10px;
}
.home-news-title {
  font-size:19px;
  margin-bottom:12px;
  line-height:1.6;
  color:#222;
}
.home-news-title a {
  color:#222;
}
.home-news-title a:hover {
  color:#0e9c57;
}
.home-news-excerpt {
  color:#666;
  font-size:15px;
  line-height:1.8;
  margin-bottom:15px;
}
.home-news-more {
  text-align:center;
  margin-top:50px;
}
.home-news-btn {
  display:inline-block;
  padding:12px 35px;
  background:#0e9c57;
  color:#fff;
  border-radius:50px;
  font-size:16px;
  transition:all 0.3s ease;
}
.home-news-btn:hover {
  background:#0b8a4c;
  transform:translateY(-3px);
}

/* 联系 */
.contact {
  text-align:center;
  font-size:18px;
  color:#444;
  line-height:2.2;
}
.contact p {
  margin-bottom:10px;
}

/* 新闻列表 */
.news-list {
  margin-top:30px;
}
.news-item {
  padding:25px;
  border-bottom:1px solid #f0f0f0;
  border-radius:8px;
  transition:all 0.3s ease;
  margin-bottom:15px;
  background:#fff;
}
.news-item:hover {
  background:#f9fbfc;
  padding-left:35px;
}
.news-item .time {
  color:#0e9c57;
  font-size:14px;
  font-weight:bold;
  margin-bottom:8px;
}
.news-item h2 {
  font-size:22px;
  margin-bottom:10px;
}
.news-item h2 a {
  color:#222;
}
.news-item h2 a:hover {
  color:#0e9c57;
}
.news-excerpt {
  color:#666;
  line-height:1.7;
}
.pagination {
  display:flex;
  justify-content:center;
  margin-top:50px;
  gap:10px;
}
.pagination a,
.pagination span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:6px;
  background:#fff;
  border:1px solid #eee;
  color:#333;
  font-size:15px;
  transition:all 0.3s ease;
}
.pagination a:hover {
  background:#0e9c57;
  color:#fff;
  border-color:#0e9c57;
}
.pagination .current {
  background:#0e9c57;
  color:#fff;
  border-color:#0e9c57;
  font-weight:bold;
}

/* 详情 */
.single-news .content,
.single-product .content {
  font-size:17px;
  line-height:2;
  color:#444;
  padding:20px 0;
}
.single-news h1,
.single-product h1 {
  font-size:32px;
  line-height:1.4;
  color:#222;
}
.back-btn {
  display:inline-block;
  color:#0e9c57;
  font-weight:bold;
  margin-top:30px;
  transition:all 0.3s ease;
}
.back-btn:hover {
  padding-left:8px;
}

/* 底部 */
.footer {
  background:#222;
  color:#fff;
  text-align:center;
  padding:45px 0;
  margin-top:40px;
}
.footer p {
  margin-bottom:10px;
  opacity:0.85;
  font-size:15px;
}