/* ===== 首页样式 — 绿色自然风 ===== */

/* --- Hero 轮播区域 --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.hero-slider .swiper-wrapper { height: 100%; }
.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider .swiper-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slider .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27,94,32,.5) 0%, rgba(0,0,0,.3) 100%);
  z-index: 1;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 0 24px;
  animation: fadeUp .8s ease both;
}
.hero-slide-content h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-slide-content p {
  font-size: 18px;
  line-height: 1.8;
  opacity: .9;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,.15);
}
/* 分页器 */
.hero-pagination {
  position: absolute;
  bottom: 80px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  opacity: 1;
  transition: all .3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 48px;
}
/* 左箭头 */
.hero-btn-prev {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-btn-prev:hover {
  background: rgba(255,255,255,.3);
}
.hero-btn-prev em {
  font-size: 18px;
  color: #fff;
  transform: rotate(180deg);
}
/* 右箭头 */
.hero-btn-next {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-btn-next:hover {
  background: rgba(255,255,255,.3);
}
.hero-btn-next em {
  font-size: 18px;
  color: #fff;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btns .btn-primary {
  padding: 14px 40px;
  font-size: 16px;
}
.hero-btns .btn-outline {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  padding: 14px 40px;
  font-size: 16px;
}
.hero-btns .btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  animation: float 2s ease-in-out infinite;
}
.hero-scroll em { font-size: 20px; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media(max-width: 1024px) {
  .hero { min-height: 500px; height: 80vh; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
}
@media(max-width: 768px) {
  .hero { min-height: 420px; height: 70vh; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; margin-bottom: 28px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { padding: 12px 28px; font-size: 14px; }
  .hero-scroll { display: none; }
}

/* --- 首页板块通用 --- */
.home-section {
  padding: 80px 0;
}
.home-section:nth-child(even) {
  background: var(--bg-section);
}
@media(max-width: 768px) {
  .home-section { padding: 48px 0; }
}

/* --- 优势板块 --- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.adv-card:hover .adv-icon {
  background: var(--green);
}
.adv-icon em {
  font-size: 28px;
  color: var(--green);
  transition: color var(--transition);
}
.adv-card:hover .adv-icon em { color: var(--white); }
.adv-card .adv-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}
.adv-card .adv-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.adv-card .adv-num {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 48px;
  font-weight: 800;
  color: rgba(46,125,50,.06);
  line-height: 1;
}

@media(max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media(max-width: 600px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-card { padding: 28px 20px; }
}

/* --- 关于我们 --- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-media video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.about-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.about-info .about-text {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.about-feat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-feat-item em {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--green);
  margin-top: 2px;
}
.about-feat-item .feat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.about-feat-item .feat-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

@media(max-width: 1024px) {
  .about-row { grid-template-columns: 1fr; gap: 32px; }
  .about-info h2 { font-size: 26px; }
}

/* --- 产品板块 --- */
.product-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.product-header .left .section-title {
  text-align: left;
  margin-bottom: 8px;
}
.product-header .left .section-title::after { margin: 10px 0 0; }
.product-header .left .section-desc {
  text-align: left;
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: var(--green-light);
}
.product-card .card-img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card .card-img::after { content: ""; display: block; padding-bottom: 100%; }
.product-card .card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .card-img img { transform: scale(1.06); }
.product-card .card-body {
  padding: 20px;
}
.product-card .card-body .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.product-card:hover .card-body .card-title { color: var(--green); }
.product-card .card-body .card-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.product-card .card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  transition: gap var(--transition);
}
.product-card:hover .card-body .card-link { gap: 10px; }
.product-card .card-body .card-link em { font-size: 14px; }

.product-more {
  text-align: center;
  margin-top: 40px;
}

@media(max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .card-body { padding: 14px; }
  .product-card .card-body .card-title { font-size: 14px; }
  .product-card .card-body .card-text { display: none; }
  .product-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media(max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* --- 案例板块 --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.case-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.case-card::after { content: ""; display: block; padding-bottom: 75%; }
.case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.case-card:hover img { transform: scale(1.08); }
.case-card .case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27,94,32,.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 1;
  transition: all var(--transition);
}
.case-card:hover .case-overlay {
  background: linear-gradient(0deg, rgba(27,94,32,.9) 0%, rgba(27,94,32,.2) 100%);
}
.case-card .case-overlay .case-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform var(--transition);
}
.case-card:hover .case-overlay .case-title { transform: translateY(0); }
.case-card .case-overlay .case-link {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  justify-content: center;
  color: #fff;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}
.case-card:hover .case-overlay .case-link {
  opacity: 1;
  transform: translateY(0);
}
.case-card .case-overlay .case-link:hover { background: var(--white); color: var(--green); }

@media(max-width: 1024px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

/* --- 热门产品 --- */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.hot-card {
  text-align: center;
  transition: all var(--transition);
}
.hot-card .hot-img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.hot-card .hot-img::after { content: ""; display: block; padding-bottom: 100%; }
.hot-card .hot-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hot-card:hover .hot-img {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}
.hot-card:hover .hot-img img { transform: scale(1.05); }
.hot-card .hot-name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
}
.hot-card:hover .hot-name { color: var(--green); }

@media(max-width: 1280px) { .hot-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width: 768px) { .hot-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media(max-width: 480px) { .hot-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- 新闻板块 --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.news-card .news-img {
  display: block;
  position: relative;
  overflow: hidden;
}
.news-card .news-img::after { content: ""; display: block; padding-bottom: 65%; }
.news-card .news-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  line-height: 1.2;
}
.news-card .news-date .day {
  font-size: 22px;
  font-weight: 700;
  display: block;
}
.news-card .news-date .month {
  font-size: 12px;
  opacity: .85;
}
.news-card .news-body {
  padding: 20px;
}
.news-card .news-body .news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.news-card:hover .news-body .news-title { color: var(--green); }
.news-card .news-body .news-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.news-card .news-body .news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}
.news-card:hover .news-body .news-link { gap: 10px; }

@media(max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* --- 数据统计条 --- */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  color: #fff;
}
.stat-item .stat-num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-num span { font-size: 24px; }
.stat-item .stat-label {
  font-size: 14px;
  opacity: .8;
}
@media(max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-num { font-size: 32px; }
}
@media(max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }