/* 首页 */
.home-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, #6b8cae 0%, #3d5a73 100%);
}

.home-hero__track {
  position: absolute;
  inset: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-hero__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.home-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  padding: 0 24px;
}

.home-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.home-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.home-hero__dot.is-active,
.home-hero__dot:hover {
  background: #fff;
  border-color: #fff;
}

.home-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  transition: var(--transition);
}

.home-hero__arrow:hover {
  background: rgba(0, 0, 0, 0.45);
}

.home-hero__arrow--prev {
  left: 20px;
}

.home-hero__arrow--next {
  right: 20px;
}

.home-hero__arrow--prev::before,
.home-hero__arrow--next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.home-hero__arrow--prev::before {
  transform: rotate(-135deg);
}

.home-hero__arrow--next::before {
  transform: rotate(45deg);
}

/* 核心价值观 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #dfe6ee, #c5ced8);
}

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

.value-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
  text-align: center;
}

.value-card__desc {
  color: var(--color-text-secondary);
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* 发展历程 */
.timeline-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(15, 20, 30, 0.72), rgba(15, 20, 30, 0.72)),
    url("../images/timeline-bg.jpg") center / cover no-repeat,
    #1e2a3a;
  color: #fff;
  overflow: hidden;
}

.timeline-section .section__title {
  color: #fff;
  margin-bottom: 32px;
}

.timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.timeline__content {
  flex: 1;
}

.timeline__year {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.timeline__text {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.timeline__dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 8px;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  transition: var(--transition);
}

.timeline__dot.is-active,
.timeline__dot:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.timeline__panel {
  display: none;
}

.timeline__panel.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 产品分类 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.product-item {
  text-align: center;
  transition: transform var(--transition);
}

.product-item:hover {
  transform: translateY(-4px);
}

.product-item__img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e8ecef, #cfd6dc);
}

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

.product-item__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-title);
}

/* 新闻动态 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item__date {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.news-item__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.news-item__title a:hover {
  color: var(--color-primary);
}

.news-item__summary {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e8ecef, #cfd6dc);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item:hover .news-item__thumb img {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-item__thumb {
    order: -1;
  }

  .timeline__year {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    height: 280px;
  }

  .home-hero__title {
    letter-spacing: 3px;
    padding: 0 16px;
  }

  .home-hero__arrow {
    width: 36px;
    height: 36px;
  }

  .home-hero__arrow--prev {
    left: 10px;
  }

  .home-hero__arrow--next {
    right: 10px;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline__dots {
    flex-direction: row;
    padding-right: 0;
  }

  .product-grid {
    gap: 20px 12px;
  }
}
