/* ===== 首页样式 — 绿色自然风 ===== */

/* --- Hero 轮播区域 --- */
.hero {
  position: relative;
  height: min(88dvh, 860px);
  min-height: 620px;
  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(21,59,70,.56) 0%, rgba(10,25,30,.28) 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: 78dvh; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
}
@media(max-width: 768px) {
  .hero { min-height: 460px; height: 72dvh; }
  .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: var(--accent);
  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(36,88,101,.07);
  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(21,59,70,.82) 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(21,59,70,.92) 0%, rgba(36,88,101,.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), #2f6570);
  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; } }

/* --- 品牌知识库与 GEO 内容 --- */
.about-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-info .about-text p + p { margin-top: 12px; }
.knowledge-section {
  background: var(--white) !important;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.knowledge-copy h2 {
  max-width: 700px;
  margin: 18px 0;
  color: var(--dark);
  font-size: 36px;
  line-height: 1.35;
}
.knowledge-copy > p { max-width: 58ch; line-height: 1.9; }
.knowledge-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0;
}
.knowledge-data > div { padding: 20px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.knowledge-data dt { color: var(--green); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.knowledge-data dd { color: var(--text-light); font-size: 13px; }
.knowledge-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.knowledge-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  transition: padding .25s ease, background .25s ease;
}
.knowledge-item:last-child { border-bottom: 0; }
.knowledge-item:hover { padding-left: 28px; color: var(--green); background: var(--green-pale); }
.knowledge-item span { color: var(--accent); font-size: 20px; }
.knowledge-item strong { font-size: 20px; font-weight: 500; }
.knowledge-item em { font-size: 15px; }
.home-faq { background: #fff; }
.faq-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.section-title.section-title-left {
  max-width: 760px;
  margin: 14px 0 0;
  text-align: left;
}
.section-title.section-title-left::after { display: none; }
.faq-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-home-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
}
.faq-home-item:hover { border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.faq-home-item > span { grid-row: 1 / 3; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.faq-home-item h3 { margin-bottom: 8px; font-size: 18px; }
.faq-home-item p { color: var(--text-light); font-size: 14px; line-height: 1.8; }

@media(max-width: 900px) {
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-copy h2 { font-size: 30px; }
}
@media(max-width: 680px) {
  .faq-heading { align-items: flex-start; flex-direction: column; }
  .faq-home-grid { grid-template-columns: 1fr; }
  .faq-home-item { padding: 22px; }
  .knowledge-data { grid-template-columns: 1fr; }
  .knowledge-data > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
}
