/* ==========================================
   index.css - 首页（index.html）独有样式
   ========================================== */

/* 首页轮播 */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #f0f0f0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.slider-arrows button {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 50px;
  pointer-events: auto;
  transition: background 0.3s;
}

.slider-arrows button:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* 关于我们（首页） */
.about .section-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 45px;
}

.about .section-subtitle::before,
.about .section-subtitle::after {
  content: "";
  width: 60px;
  height: 1px;
  background: #ddd;
  margin: 0 15px;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 22px;
  color: #333;
  font-weight: normal;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  line-height: 1.9;
  margin-bottom: 30px;
  text-align: justify;
}

.more-btn {
  display: inline-flex;
  width: 70px;
  height: 42px;
  border: 1px solid #ddd;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 22px;
  transition: all 0.3s;
}

.more-btn:hover {
  border-color: #00a651;
  color: #00a651;
}

/* 案例展示（首页） */
.cases {
  background: #f7f7f7;
}

.cases .section-subtitle {
  margin-bottom: 35px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 10px;
}

/* 案例面板切换 */
.case-panel {
  display: none;
}

.case-panel.active {
  display: block;
}

.case-panel-empty {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 60px 0;
}

.filter-tabs button {
  padding: 8px 28px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  background: #00a651;
  color: #fff;
  border-color: #00a651;
}

/* 联系 CTA */
.cta-banner {
  background: #1a1d21;
  color: #fff;
  text-align: center;
  padding: 42px 0;
}

.cta-banner p {
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cta-banner .highlight {
  color: #00a651;
}

.cta-banner .en {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* 联系我们（首页） */
.contact .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 30px;
}

.contact .section-title .en {
  font-size: 11px;
  color: #999;
}

.contact .section-title::after {
  margin: 10px 0 0;
}

.contact-content {
  display: flex;
  gap: 80px;
}

.contact-content .contact-info {
  flex: 1;
}

.contact-content .contact-info h3 {
  font-size: 17px;
  color: #333;
  margin-bottom: 22px;
  font-weight: normal;
}

.contact-content .contact-info p {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.contact-content .contact-form {
  flex: 1;
}

/* 响应式 */
@media (max-width: 992px) {
  .hero-slider {
    height: 380px;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact .section-title {
    text-align: center;
  }

  .contact .section-title::after {
    margin: 10px auto 0;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 260px;
  }

  .filter-tabs button {
    padding: 6px 18px;
    font-size: 13px;
  }

  .cta-banner p {
    font-size: 16px;
  }
}
