/* ========== PC端首页样式 ========== */

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.banner .swiper {
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(215, 28%, 17%, 0.6), hsla(215, 28%, 17%, 0.3), transparent);
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.banner-text {
  max-width: 600px;
  color: #fff;
}

.banner-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.banner-text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.banner:hover .banner-nav {
  opacity: 1;
}

.banner-nav:hover {
  background-color: hsl(213, 75%, 32%);
}

.banner-prev {
  left: 24px;
}

.banner-next {
  right: 24px;
}

.banner .swiper-pagination-bullet {
  width: 28px !important;
  height: 3px !important;
  border-radius: 2px !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
  transition: all 0.3s;
}

.banner .swiper-pagination-bullet-active {
  background-color: hsl(213, 75%, 32%) !important;
  width: 40px !important;
}

/* 优势区块 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background-color: #fff;
  border: 1px solid hsla(214, 15%, 88%, 0.6);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  border-color: hsla(213, 75%, 32%, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: hsla(213, 75%, 32%, 0.1);
  color: hsl(213, 75%, 32%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  background-color: hsl(213, 75%, 32%);
  color: #fff;
}

.advantage-icon svg {
  width: 28px;
  height: 28px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: hsl(215, 28%, 17%);
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 14px;
  color: hsl(215, 10%, 45%);
  line-height: 1.7;
}

.advantage-num {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: hsla(213, 75%, 32%, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.advantage-card:hover .advantage-num {
  opacity: 1;
}

/* 产品区块 */
.products-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.products-section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: hsl(215, 28%, 17%);
  margin-bottom: 6px;
}

.products-section-header p {
  font-size: 15px;
  color: hsl(215, 10%, 45%);
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(213, 75%, 32%);
  transition: gap 0.2s;
}

.view-more-link:hover {
  gap: 10px;
  color: hsl(213, 75%, 32%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background-color: #fff;
  border: 1px solid hsla(214, 15%, 88%, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: hsla(213, 75%, 32%, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: hsl(210, 20%, 96%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background-color: hsl(213, 75%, 32%);
  border-radius: 999px;
}

.product-info {
  padding: 20px;
}

.product-model {
  font-size: 12px;
  color: hsl(215, 10%, 45%);
  margin-bottom: 6px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: hsl(215, 28%, 17%);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.product-card:hover .product-name {
  color: hsl(213, 75%, 32%);
}

.product-desc {
  font-size: 13px;
  color: hsl(215, 10%, 45%);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(213, 75%, 32%);
  opacity: 0;
  transition: all 0.3s;
}

.product-card:hover .product-link {
  opacity: 1;
}

.products-mobile-more {
  display: none;
  text-align: center;
  margin-top: 32px;
}

/* 新闻区块 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.news-card {
  display: flex;
  background-color: #fff;
  border: 1px solid hsla(214, 15%, 88%, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  border-color: hsla(213, 75%, 32%, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.news-image {
  width: 40%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: hsl(210, 20%, 96%);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(213, 75%, 32%);
  background-color: hsla(213, 75%, 32%, 0.1);
  border-radius: 4px;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: hsl(215, 10%, 45%);
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: hsl(215, 28%, 17%);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-card:hover .news-title {
  color: hsl(213, 75%, 32%);
}

.news-summary {
  font-size: 14px;
  color: hsl(215, 10%, 45%);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(213, 75%, 32%);
  margin-top: 16px;
}

.news-readmore svg {
  transition: transform 0.2s;
}

.news-card:hover .news-readmore svg {
  transform: translateX(4px);
}

/* 广告横幅 */
.ad-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(215, 28%, 17%, 0.7), hsla(215, 28%, 17%, 0.5), hsla(215, 28%, 17%, 0.3));
}

.ad-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.ad-banner-text {
  max-width: 700px;
  color: #fff;
}

.ad-banner-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ad-banner-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* 证书区块 */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.certificate-card {
  background-color: #fff;
  border: 1px solid hsla(214, 15%, 88%, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  border-color: hsla(213, 75%, 32%, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.certificate-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: hsl(210, 20%, 96%);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-name {
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: hsl(215, 28%, 17%);
  line-height: 1.5;
}
