/* 行业动态列表（industry.html）与详情（industryDetail.html） */

.industry-news-section {
  width: 15rem;
  margin: 0.6rem auto;
}

.industry-news-section .section-title {
  margin-bottom: 0.4rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  width: 92%;
  margin: auto;
}

.news-list > a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card {
  display: flex;
  align-items: flex-start;
  background-color: #ffffff;
  padding: 0.3rem 0.2rem;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  border-bottom: 0.01rem solid #edbe48;
}

.news-card:hover {
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-right: 0.3rem;
  border-radius: 0.05rem;
  overflow: hidden;
  background: #f5f5f5;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 0.22rem;
  color: #edbe48;
  margin: 0 0 0.15rem 0;
  line-height: 0.32rem;
}

.news-title .news-intit {
  padding-bottom: 0.06rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  font-size: 0.18rem;
  color: #444444;
  line-height: 0.28rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-link {
  color: #723fba;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.18rem;
  display: inline-block;
  margin-top: 0.08rem;
}

.more-link:hover {
  color: #5a2f8f;
}

.news-date {
  font-size: 0.18rem;
  color: #434343;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.3rem;
  align-self: flex-start;
}

.news-arrow {
  flex-shrink: 0;
  margin-left: 0.2rem;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-arrow img {
  width: 0.23rem;
  height: 0.23rem;
  object-fit: scale-down;
}

/* 分页 */
.industry-pagination {
  margin: 0.5rem auto 0.8rem;
  width: 92%;
}

.industry-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-pagination a,
.industry-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.44rem;
  height: 0.44rem;
  padding: 0 0.12rem;
  font-size: 0.18rem;
  border: 0.01rem solid #ddd;
  border-radius: 0.04rem;
  text-decoration: none;
  color: #444;
  background: #fff;
}

.industry-pagination a:hover {
  border-color: #edbe48;
  color: #723fba;
}

.industry-pagination .current {
  background: #edbe48;
  border-color: #edbe48;
  color: #333;
  font-weight: 500;
}

.industry-pagination .dots {
  border: none;
  background: transparent;
}

/* 文章详情 industryDetail.html */
.article-detail {
  width: 14rem;
  margin: 0 auto;
  background-color: #fff;
}

.article-title {
  font-size: 0.26rem;
  color: #444444;
  text-align: center;
  margin-bottom: 0.34rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.18rem;
  color: #444444;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.article-source,
.article-date,
.article-views {
  color: #666;
}

.article-see {
  display: flex;
  align-items: center;
  gap: 0.06rem;
}

.article-see img {
  width: 0.24rem;
  height: 0.24rem;
  object-fit: contain;
}

.comparison-image {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.4rem 0;
  position: relative;
}

.main-comparison {
  height: 4rem;
}

.secondary-comparison {
  height: 3rem;
}

.comparison-left,
.comparison-right {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.comparison-left img,
.comparison-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-comparison .comparison-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  font-weight: bold;
  color: #ff0000;
  background-color: rgba(255, 255, 255, 0.9);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.2);
}

.secondary-comparison .comparison-vs {
  display: none;
}

.comparison-label {
  position: absolute;
  bottom: 0.2rem;
  padding: 0.08rem 0.15rem;
  font-size: 0.18rem;
  color: #ffffff;
  font-weight: 500;
  z-index: 5;
}

.label-left {
  left: 0.2rem;
  background-color: rgba(0, 123, 255, 0.8);
}

.label-right {
  right: 0.2rem;
  background-color: rgba(255, 0, 0, 0.8);
}

.article-content {
  margin: 0.5rem 0;
  padding: 0 0.2rem;
}

.article-content .article-paragraph,
.article-content p {
  font-size: 0.18rem;
  color: #444444;
  line-height: 0.36rem;
  margin: 0 0 0.3rem 0;
  text-align: left;
}

.article-content .article-paragraph:last-child,
.article-content p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
  .industry-news-section {
    width: 100%;
    padding: 0 0.15rem;
  }

  .news-card {
    padding: 0.25rem;
  }

  .news-image {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.2rem;
  }

  .news-title {
    font-size: 0.28rem;
  }

  .news-description {
    font-size: 0.26rem;
    line-height: 0.4rem;
  }

  .article-detail {
    width: 100%;
    padding: 0.3rem 0.15rem;
  }

  .article-title {
    font-size: 0.36rem;
    line-height: 0.5rem;
  }

  .article-meta {
    font-size: 0.2rem;
    gap: 0.15rem;
  }

  .main-comparison {
    height: 3rem;
  }

  .secondary-comparison {
    height: 2.5rem;
  }

  .main-comparison .comparison-vs {
    font-size: 0.4rem;
    width: 0.6rem;
    height: 0.6rem;
  }

  .comparison-label {
    font-size: 0.16rem;
    padding: 0.06rem 0.12rem;
  }

  .article-content .article-paragraph,
  .article-content p {
    font-size: 0.28rem;
    line-height: 0.44rem;
  }
}
