/* Index Page - 语义化样式 */

/* 页面容器 */
.index-page {
  background-color: white;
  color: #111827;
}

/* 轮播图区域 */
.hero-section {
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
}

/* PC端轮播图高度 */
/* .hero-swiper {
  height: 650px;
} */

/* 移动端轮播图高度 - 降低高度避免图片拉伸 */
/* @media (max-width: 767px) {
  .hero-swiper {
    height: 200px; 
  }
} */

.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 移动端图片优化 - 确保图片正确显示 */
@media (max-width: 767px) {
  .hero-image-mobile {
    object-fit: cover;
    object-position: center;
  }
}

/* 响应式图片显示控制 */
/* 默认（PC端 >768px）：显示桌面端图片，隐藏移动端图片 */
.hero-image-desktop {
  display: block;
}

.hero-image-mobile {
  display: none;
}

/* 手机端（≤768px）：显示移动端图片，隐藏桌面端图片 */
@media (max-width: 768px) {
  .hero-image-desktop {
    display: none;
  }
  
  .hero-image-mobile {
    display: block;
  }
}

/* PC端（>768px）：明确显示桌面端图片，隐藏移动端图片 */
@media (min-width: 769px) {
  .hero-image-desktop {
    display: block;
  }
  
  .hero-image-mobile {
    display: none;
  }
}

/* 轮播图底部标签导航 */
.carousel-tab-nav {
  background-color: white;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* 默认隐藏 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* 显示状态 */
.carousel-tab-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 767px) {
  .carousel-tab-nav {
    display: none;
  }
}

.carousel-tabs {
  display: flex;
  width: 100%;
}

.carousel-tab {
  padding: 1rem;
  border-top: 4px solid transparent;
  flex: 1;
  cursor: pointer;
  transition: all 0.3s;
  background-color: transparent;
}

.carousel-tab:hover {
  background-color: #f9fafb;
}

.carousel-tab.active {
  border-top-color: #1d4ed8;
  background-color: #f9fafb;
}

.carousel-tab-content {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.carousel-tab-image-wrapper {
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  height: 3.5rem;
  width: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-tab-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.carousel-tab-info {
  display: flex;
  flex-direction: column;
}

.carousel-tab-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.carousel-tab-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.2s;
}

.carousel-tab:hover .carousel-tab-title {
  color: #1d4ed8;
}

.carousel-tab.active .carousel-tab-title {
  color: #1d4ed8;
}

/* 特色产品与技术区域 */
.featured-products-section {
  padding-top: 0.5rem;
  padding-bottom: 0;
  background-color: white;
}

.featured-products-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .featured-products-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .featured-products-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-title {
  font-size: 1.875rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.applications-container .section-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* 特色产品轮播容器 */
.products-swiper-container {
  position: relative;
  padding-bottom: 1.5rem;
}

.products-swiper {
  overflow: hidden;
}

.products-swiper .swiper-slide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  height: auto;
}

@media (max-width: 1023px) {
  .products-swiper .swiper-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.products-swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  text-align: center;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto;
}

.products-swiper-pagination .swiper-pagination-bullet {
  margin: 0 4px;
  background-color: #d1d5db !important;
  opacity: 1 !important;
}

.products-swiper-pagination .swiper-pagination-bullet-active {
  background-color: #1d4ed8 !important;
  opacity: 1 !important;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-image-wrapper {
  background-color: #f9fafb;
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.product-title {
  font-size: 0.875rem;
  color: #1f2937;
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.product-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.product-title-arrow {
  flex-shrink: 0;
  color: inherit;
}

.product-card:hover .product-title {
  color: #1d4ed8;
  text-decoration: underline;
}

.view-more-link {
  margin-top: 2rem;
  text-align: center;
}

.view-more-link a {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s;
}

.view-more-link a:hover {
  color: #1d4ed8;
}

/* 应用领域区域 */
.applications-section {
  padding-top: 0.5rem;
  padding-bottom: 0;
  background-color: white;
}

.applications-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .applications-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .applications-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 应用领域轮播容器 */
.applications-swiper-container {
  position: relative;
  padding-bottom: 1.5rem;
}

.applications-swiper {
  overflow: hidden;
}

.applications-swiper .swiper-slide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  height: auto;
}

@media (max-width: 1023px) {
  .applications-swiper .swiper-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.applications-swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  text-align: center;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto;
}

.applications-swiper-pagination .swiper-pagination-bullet {
  margin: 0 4px;
  background-color: #d1d5db !important;
  opacity: 1 !important;
}

.applications-swiper-pagination .swiper-pagination-bullet-active {
  background-color: #1d4ed8 !important;
  opacity: 1 !important;
}

/* 应用领域卡片样式（复用产品卡片样式） */
.application-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.application-card:hover {
  transform: translateY(-2px);
}

.application-image-wrapper {
  background-color: #f9fafb;
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.application-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.application-title {
  font-size: 0.875rem;
  color: #1f2937;
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
}

.application-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.application-title-arrow {
  flex-shrink: 0;
  color: inherit;
}

.application-card:hover .application-title {
  color: #1d4ed8;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .application-item-image-wrapper {
    height: 120px;
  }

  .application-item-title {
    font-size: 0.75rem;
  }
}

/* 关于我们区域 */
.about-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: white;
}

@media (max-width: 768px) {
  .about-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .about-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .about-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
  }
}

.about-image-wrapper {
  width: 100%;
  height: 400px;
}

@media (min-width: 768px) {
  .about-image-wrapper {
    width: 50%;
  }
}

.about-image-container {
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .about-text-wrapper {
    width: 50%;
  }
}

.about-subtitle {
  font-size: 1.25rem;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-description {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 2rem;
  text-align: justify;
}

.about-link {
  color: #1d4ed8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: text-decoration 0.2s;
}

.about-link:hover {
  text-decoration: underline;
}

.about-link-icon {
  font-size: 1.125rem;
  margin-left: 0.5rem;
}

/* 新闻资讯区域 */
.news-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #f9fafb;
}

.news-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .news-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .news-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.news-list {
  max-width: 64rem;
  margin: 0 auto;
}

.news-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.news-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .news-card {
    flex-direction: row;
  }
}

.news-thumbnail {
  width: 100%;
  height: 8rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-thumbnail {
    width: 12rem;
    height: 8rem;
  }
}

.news-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-thumbnail-image {
  transform: scale(1.1);
}

.news-content {
  flex: 1;
}

.news-meta {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-category {
  font-size: 0.875rem;
  color: #1d4ed8;
  font-weight: 700;
}

.news-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.news-title {
  font-size: 1.125rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.news-card:hover .news-title {
  color: #1d4ed8;
}

.news-summary {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.75rem;
  color: #1d4ed8;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid #1d4ed8;
  border-radius: 0.125rem;
  transition: all 0.2s;
}

.news-read-more:hover {
  color: white;
  background-color: #1d4ed8;
}

.news-view-more {
  margin-top: 2.5rem;
  text-align: center;
}

.news-view-more-link {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.news-view-more-link:hover {
  color: #1d4ed8;
}

