﻿/* ===== Green Nature Theme — home.css ===== */

/* === COMMON === */
.home-title{font-size:var(--hometitle);font-weight:var(--fontblod7);color:var(--fontcolor);line-height:1.25;letter-spacing:-.5px}
.des{font-size:15px;color:var(--summarycolor);margin-bottom:8px;letter-spacing:.2px;text-transform:uppercase;font-weight:var(--fontblod5)}
.home-more{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:var(--fontblod5);color:var(--color);transition:var(--transition);padding:12px 0}
.home-more:hover{gap:12px;color:var(--color-dark)}
.home-more em{font-size:14px;transition:transform .2s}
.home-more:hover em{transform:translateX(4px)}
/* === 1. BANNER === */
.home-banner{position:relative;overflow:hidden}
.home-banner .pcimg{display:block}
.home-banner .pcimg img{display:block;width:100%;height:auto}
.home-banner .mobimg{display:none}
.home-banner .mobimg img{display:none}
.home-banner .swiper-slide{overflow:hidden}
.home-banner .swiper-slide.swiper-slide-active img{animation:bannerZoom 7s forwards}
@keyframes bannerZoom{0%{transform:scale(1)}100%{transform:scale(1.04)}}
.home-banner .banner-animote{position:absolute;bottom:26%;left:8%;color:#fff;opacity:0;max-width:680px;z-index:2}
.home-banner .banner-animote .title{font-size:52px;font-weight:var(--fontblod7);line-height:1.2;text-shadow:0 2px 30px rgba(0,0,0,.25)}
.home-banner .banner-animote .text{margin-top:16px;font-size:17px;line-height:1.7;opacity:.92}
.home-banner .banner-animote .btn{margin-top:32px}
.home-banner .banner-animote .btn .home-more{color:#fff;background:var(--color);padding:14px 32px;border-radius:var(--radius);font-size:15px}
.home-banner .banner-animote .btn .home-more:hover{background:var(--color-dark);gap:14px}
.home-banner .swiper-slide-active .banner-animote{animation:bannerFade .7s ease forwards .4s}
@keyframes bannerFade{0%{opacity:0;transform:translateY(30px)}100%{opacity:1;transform:translateY(0)}}
.banner-pagination{position:absolute;bottom:30px!important;z-index:3;text-align:center}
.home-banner .swiper-pagination-bullet{background:rgba(255,255,255,.35);border-radius:999px;height:4px;opacity:1;overflow:hidden;width:28px;transition:width .3s}
.home-banner .swiper-pagination-bullet::after{background:var(--color-light);border-radius:999px;content:"";display:block;height:100%;width:0}
.home-banner .swiper-pagination-bullet-active{width:48px}
.home-banner .swiper-pagination-bullet-active.cur::after{transition:width 6s linear;width:100%}
.banner-button-next,.banner-button-prev{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:52px;height:52px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);color:#fff;font-size:20px}
.banner-button-next{right:40px}
.banner-button-prev{left:40px}
.banner-button-next:hover,.banner-button-prev:hover{background:var(--color);color:#fff}

/* === 2. ADVANTAGES === */
.home-adv{padding:80px 0;background:#fff}
.home-adv .homeadv-list{margin-top:40px;display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.home-adv .homeadv-list li{background:var(--bglight);padding:36px 28px;border-radius:var(--radius);position:relative;overflow:hidden;cursor:default;transition:var(--transition);border-bottom:3px solid transparent}
.home-adv .homeadv-list li:hover{transform:translateY(-6px);box-shadow:var(--shadow-hover);border-bottom-color:var(--color)}
.home-adv .homeadv-list li .adv-icon{margin-bottom:20px}
.home-adv .homeadv-list li .adv-icon em{font-size:44px;color:var(--color);transition:var(--transition)}
.home-adv .homeadv-list li:hover .adv-icon em{transform:scale(1.1)}
.home-adv .homeadv-list li .adv-title{font-size:18px;font-weight:var(--fontblod6);color:var(--fontcolor);margin-bottom:10px}
.home-adv .homeadv-list li .adv-text{font-size:14px;color:var(--summarycolor);line-height:1.7}

/* === 3. ABOUT === */
.home-about{padding:80px 0;background:var(--bglight)}
.home-about .l-wrap{display:flex;align-items:center;gap:60px}
.about-info{flex:1}
.about-info h1{font-size:var(--hometitle);font-weight:var(--fontblod7);color:var(--fontcolor);margin-bottom:20px}
.about-info .p{font-size:15px;color:var(--summarycolor);line-height:1.8;margin-bottom:24px}
.about-info .list{margin-bottom:28px}
.about-info .list li{margin-bottom:16px}
.about-info .list li .title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:var(--fontblod6);margin-bottom:6px}
.about-info .list li .title em{color:var(--color);font-size:18px}
.about-info .list li .text{font-size:14px;color:var(--summarycolor);line-height:1.7;padding-left:28px}
.about-img{flex:1;border-radius:var(--radius);overflow:hidden}
.about-img video{width:100%;border-radius:var(--radius)}
/* === 4. MAIN PRODUCTS === */
.home-mainproduct{padding:80px 0;background:#fff}
.mainpro-top{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:40px}
.mainpro-title{flex:1}
.mainpro-title .des{margin-top:10px}
.mainpro-button{display:flex;gap:10px}
.mainproduct-button-prev,.mainproduct-button-next{width:46px;height:46px;border:1px solid #e0e0e0;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);font-size:16px;color:var(--fontcolor)}
.mainproduct-button-prev:hover,.mainproduct-button-next:hover{background:var(--color);border-color:var(--color);color:#fff}
#homemainproduct{overflow:hidden;height:680px}
.homepro-list .swiper-slide{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .3s,transform .3s;display:flex;flex-direction:column}
.homepro-list .swiper-slide:hover{box-shadow:var(--shadow-hover)}
.homepro-list .swiper-slide .img.lazy-wrap{background:var(--bglight);flex:1;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.homepro-list .swiper-slide .img.lazy-wrap::after{display:none}
.homepro-list .swiper-slide .img.lazy-wrap img{width:100%;height:100%;object-fit:contain;transition:transform .4s}
.homepro-list .swiper-slide:hover .img.lazy-wrap img{transform:scale(1.05)}
.homepro-list .swiper-slide .info{padding:14px 18px;flex-shrink:0}
.homepro-list .swiper-slide .info .title{font-size:15px;font-weight:var(--fontblod6);color:var(--fontcolor);display:block;margin-bottom:4px;transition:color .2s}
.homepro-list .swiper-slide .info .title:hover{color:var(--color)}
.homepro-list .swiper-slide .info .text{font-size:13px;color:var(--summarycolor);line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.homepro-list .swiper-slide .info .home-more{font-size:13px;padding:4px 0}
.mainproduct-more{text-align:center;margin-top:36px}
.mainproduct-more .home-more{background:var(--bglight);padding:14px 36px;border-radius:var(--radius);transition:var(--transition)}
.mainproduct-more .home-more:hover{background:var(--color);color:#fff}
.mainproduct-more .home-more:hover em{color:#fff}

/* === 5. CASES === */
.home-case{padding:80px 0;background:var(--homebg);overflow:hidden}
.home-case .home-title{color:#fff;text-align:center;margin-bottom:40px}
#homecaseswiper{overflow:hidden;padding:0 60px}
.homecase-list .swiper-slide{border-radius:var(--radius);overflow:hidden;position:relative;cursor:pointer}
.homecase-list .swiper-slide .lazy-wrap{position:relative;overflow:hidden}
.homecase-list .swiper-slide .lazy-wrap::after{content:"";display:block;padding-bottom:62.5%}
.homecase-list .swiper-slide .lazy-wrap img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;transition:transform .5s}
.homecase-list .swiper-slide:hover .lazy-wrap img{transform:scale(1.06)}
.homecase-list .swiper-slide .content{position:absolute;bottom:0;left:0;width:100%;padding:20px 24px;background:linear-gradient(transparent,rgba(0,0,0,.7));display:flex;align-items:center;justify-content:space-between;transition:var(--transition)}
.homecase-list .swiper-slide .content .text a{color:#fff;font-size:16px;font-weight:var(--fontblod5)}
.homecase-list .swiper-slide .content .more{color:#fff;font-size:18px;transition:var(--transition)}
.homecase-list .swiper-slide .content .more:hover{color:var(--color-light)}
.homecase-pagination{margin-top:30px;text-align:center}
.homecase-pagination .swiper-pagination-bullet{background:rgba(255,255,255,.3);width:10px;height:10px;opacity:1;transition:var(--transition)}
.homecase-pagination .swiper-pagination-bullet-active{background:var(--color-light);width:28px;border-radius:5px}
/* === 6. HOT PRODUCTS === */
.home-hotproduct{padding:80px 0;background:var(--bglight)}
.home-hotproduct .home-title{margin-bottom:36px}
#hotproswiper{overflow:hidden}
.hotpro-list .swiper-slide{text-align:center}
.hotpro-list .swiper-slide .img.lazy-wrap{background:#fff;border-radius:var(--radius);overflow:hidden;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.hotpro-list .swiper-slide .img.lazy-wrap::after{padding-bottom:100%}
.hotpro-list .swiper-slide .img.lazy-wrap img{width:100%;height:100%;object-fit:contain;position:absolute;top:0;left:0;transition:transform .4s}
.hotpro-list .swiper-slide:hover .img.lazy-wrap{box-shadow:var(--shadow-hover)}
.hotpro-list .swiper-slide:hover .img.lazy-wrap img{transform:scale(1.06)}
.hotpro-list .swiper-slide .title{display:block;margin-top:14px}
.hotpro-list .swiper-slide .title p{font-size:15px;color:var(--fontcolor);transition:color .2s}
.hotpro-list .swiper-slide .title:hover p{color:var(--color)}
.hotpro-button{display:flex;gap:10px;justify-content:center;margin-top:36px}
.hotpro-button-prev,.hotpro-button-next{width:46px;height:46px;border:1px solid #d0d0d0;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);font-size:16px;color:var(--fontcolor)}
.hotpro-button-prev:hover,.hotpro-button-next:hover{background:var(--color);border-color:var(--color);color:#fff}
/* === 7. NEWS === */
.home-news{padding:80px 0;background:#fff}
.home-news .home-title{margin-bottom:40px}
.homenews-list{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.homenews-item{border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow);transition:var(--transition)}
.homenews-item:hover{transform:translateY(-6px);box-shadow:var(--shadow-hover)}
.homenews-item .img{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.homenews-item .img.lazy-wrap::after{padding-bottom:75%}
.homenews-item .img img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;transition:transform .5s}
.homenews-item:hover .img img{transform:scale(1.05)}
.homenews-item .img .date{position:absolute;top:14px;left:14px;background:var(--color);color:#fff;padding:6px 12px;border-radius:var(--radius);font-size:13px;line-height:1.3;text-align:center;z-index:2}
.homenews-item .img .date span{display:block}
.homenews-item .img .date span:first-child{font-size:22px;font-weight:var(--fontblod7)}
.homenews-item .info{padding:20px 24px}
.homenews-item .info .title{font-size:16px;font-weight:var(--fontblod6);color:var(--fontcolor);margin-bottom:10px;transition:color .2s}
.homenews-item .info .title:hover{color:var(--color)}
.homenews-item .info .text{font-size:14px;color:var(--summarycolor);line-height:1.7;margin-bottom:12px}
.homenews-item .info .more{font-size:14px;color:var(--color);font-weight:var(--fontblod5);transition:var(--transition)}
.homenews-item .info .more:hover{gap:8px;color:var(--color-dark)}
/* === RESPONSIVE 1280px === */
@media(max-width:1280px){
.home-banner .banner-animote .title{font-size:40px}
.home-adv .homeadv-list{grid-template-columns:repeat(2,1fr)}
.homenews-list{grid-template-columns:repeat(2,1fr)}
}

/* === RESPONSIVE 1024px === */
@media(max-width:1024px){
.home-adv,.home-about,.home-case,.home-hotproduct,.home-mainproduct,.home-news{padding:50px 0}
.home-about .l-wrap{flex-direction:column;gap:30px}
.about-img{width:100%}
.home-banner .banner-animote{bottom:20%;left:5%;max-width:90%}
.home-banner .banner-animote .title{font-size:32px}
.home-banner .banner-animote .text{font-size:15px}
.banner-button-next,.banner-button-prev{display:none}
.mainpro-top{flex-direction:column;align-items:flex-start;gap:16px}
#homecaseswiper{padding:0 20px}
#homemainproduct{height:560px}
}

/* === RESPONSIVE 768px === */
@media(max-width:768px){
.home-adv,.home-about,.home-case,.home-hotproduct,.home-mainproduct,.home-news{padding:40px 0}
.home-banner .pcimg,.home-banner .pcimg img{display:none}
.home-banner .mobimg,.home-banner .mobimg img{display:block}
.home-banner .banner-animote{width:90%;left:5%;bottom:10%;padding:0}
.home-banner .banner-animote .title{font-size:18px;line-height:1.3}
.home-banner .banner-animote .text{font-size:12px;line-height:1.5;margin-top:8px}
.home-banner .banner-animote .btn{display:none}
.home-adv .homeadv-list{grid-template-columns:1fr}
.homenews-list{grid-template-columns:1fr}
.mainpro-button{display:none}
#homemainproduct{height:auto}
.homepro-list .swiper-slide{min-height:320px}
.home-hotproduct .hotpro-button .hotpro-button-prev,.home-hotproduct .hotpro-button .hotpro-button-next{width:38px;height:38px}
#homecaseswiper{padding:0 10px}
}
