/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Banner Section */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
}

.banner-desktop {
  display: block;
}

.banner-mobile {
  display: none;
}

/* Top Tag */
.top_tag {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #a5b5bf;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 20;
  text-transform: uppercase;
}

/* Main Area */
.main {
  max-width: 1200px;
  margin: 0 auto 40px;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

/* Swiper Section */
.swiper-section {
  padding: 30px 30px 0;
  background-color: #fff;
}

.swiper-container {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* 显示/隐藏控制类 */
.pc_box {
  display: block;
}

.wap_box {
  display: none;
}

.swiper-image-container {
  flex: 1;
  max-width: 740px;
}

.swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex: 1;
}

.swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

/* 移动端轮播标题样式 */
.slide-title {
  background: #fff;
  color: #333;
  padding: 15px;
  border-radius: 0 0 4px 4px;
}

.slide-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #2c3e50;
}

/* 移动端 Pagination 样式 */
.swiper-pagination {
  position: relative;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #9e9e9e;
  border-radius: 50%;
  margin: 0 4px;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #20b2aa;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(32, 178, 170, 0.6);
}

/* Custom Pagination with Titles */
.swiper-pagination-titles {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title-item {
  padding: 20px 24px;
  color: #fff;
  background: #82c2de;
  border-radius: 4px;
  cursor: pointer;
  /* border-left: 4px solid transparent; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.title-item:last-child {
  margin-bottom: 0;
}

.title-item.active {
  background: linear-gradient(135deg, #20b2aa 0%, #48cae4 100%);
  color: #fff;
  /* border-left-color: #fff; */
  /* transform: translateX(8px); */
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
}

.title-item h3 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  transition: color 0.3s ease;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

/* News Section */
.news-section {
  padding: 50px 30px;
  background-color: #fff;
}

.news-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.news-left h2,
.news-right h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.news-left h2 a,
.news-right h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.news-left h2 a:hover,
.news-right h2 a:hover {
  color: #20b2aa;
}

.news-left h2::after,
.news-right h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #20b2aa, #48cae4);
  border-radius: 2px;
}

/* News List */
.news-list {
  margin-bottom: 40px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
  background: #f6f6f6;
  /* border-bottom: 1px solid #eee; */
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-2px);
}

.news-image {
  flex-shrink: 0;
  width: 270px;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-content h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.news-content h3 a:hover {
  color: #20b2aa;
}

.news-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-content .time {
  font-size: 14px;
  color: #888;
  font-weight: 400;
}

/* Featured Articles */
.featured-articles {
  margin-bottom: 40px;
}

.featured-item {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
  width: 370px;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-item:hover .featured-image img {
  transform: scale(1.05);
}

.featured-item h3 {
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  background: #fff;
}

.featured-item h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.featured-item h3 a:hover {
  color: #20b2aa;
}

.featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Read More Button */
.read-more {
  text-align: right;
}

.read-more a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #20b2aa;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
}

.read-more a:hover {
  color: #48cae4;
  transform: translateX(5px);
}

.icon-more {
  display: inline-block;
  width: 16px;
  height: 16px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns%3D%27http%3A//www.w3.org/2000/svg%27 viewBox='0 0 16 16'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M1.25 8A.75.75 0 0 1 2 7.25h10.19L9.47 4.53a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06l2.72-2.72H2A.75.75 0 0 1 1.25 8' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
/* Footer */
.footer {
  background: linear-gradient(135deg, #9bbce6 0%, #85d6db 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content p {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main {
    margin: 20px;
    margin-top: -30px;
  }

  .swiper-container {
    flex-direction: column;
    gap: 40px;
  }

  .swiper-pagination-titles {
    max-width: 100%;
    padding-left: 0;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
  }

  .title-item {
    flex: none;
    min-width: 250px;
    margin-right: 12px;
    margin-bottom: 0;
  }

  .news-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .banner-desktop {
    display: none;
  }

  .banner-mobile {
    display: block;
  }

  .container {
    padding: 0 15px;
  }

  .main {
    margin: 15px;
    margin-top: -20px;
  }

  .swiper-section {
    padding: 30px 20px 0;
  }

  .news-section {
    padding: 30px 20px;
  }

  /* 移动端显示/隐藏控制 */
  .pc_box {
    display: none;
  }

  .wap_box {
    display: block;
  }

  .swiper {
    height: auto;
    aspect-ratio: auto;
  }

  .swiper-slide img {
    height: auto;
    width: 100%;
    object-fit: cover;
    flex: none;
  }

  .slide-title h3 {
    font-size: 18px;
  }

  /* 移动端 Top Tag 调整 */
  .top_tag {
    top: 0;
    right: 0;
    padding: 3px 6px;
    font-size: 10px;
  }

  .news-left h2,
  .news-right h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .news-item {
    flex-direction: row;
    gap: 15px;
  }

  .news-image {
    width: 40%;
    height: auto;
    border-radius: 2px;
  }

  .news-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
  }

  .news-content h3 {
    font-size: 20px;
  }

  .featured-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .main {
    margin: 0;
    margin-top: 0;
    border-radius: 0;
  }

  .container {
    padding: 0;
  }

  .swiper-section {
    padding: 20px 15px 0;
  }

  .news-section {
    padding: 20px 15px;
  }

  .swiper {
    height: auto;
  }

  .swiper-pagination-titles {
    flex-direction: column;
    overflow-x: visible;
  }

  .title-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    margin-right: 0;
    min-width: auto;
  }

  .title-item h3 {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }

  .news-left h2,
  .news-right h2 {
    font-size: 22px;
  }

  .news-content h3 {
    font-size: 16px;
  }

  .featured-item h3 {
    padding: 15px;
    font-size: 16px;
  }
}
