/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础字体设置 */
body {
  font-family:
    "Source Sans Pro",
    "helvetica",
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* 链接样式 */
a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 列表样式重置 */
ul,
ol {
  list-style: none;
}

/* 图片基础样式 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 表单元素样式重置 */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 导航样式 */
.nav {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  max-width: 1920px;
  margin: 0 auto;
  /* border: 1px solid #e0e0e0; */
}

.nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.nav li {
  position: relative;
  flex: 1;
  text-align: center;
}

.nav a {
  display: block;
  padding: 20px;
  color: #333;
  font-weight: 500;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav a:hover {
  background-color: #f5f5f5;
  color: #000;
  text-decoration: none;
}

.nav a:active,
.nav a.active {
  background-color: #f0f0f0;
  color: #000;
  font-weight: 600;
}

/* 导航项目间的分隔线 */
.nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  width: 1px;
  height: 50%;
  background: #e0e0e0;
}

/* 常用布局容器 */
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.pc_box {
  display: block;
}

.wap_box {
  display: none;
}

.header .banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content h2 {
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 35px;
}

.content h2 a:hover {
  text-decoration: none;
}

/* 标题链接的现代文字效果 */
.content h2 a {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content h2 a:hover {
  text-decoration: none;
  color: #2196f3;
  transform: translateY(-2px) scale(1.05);
}

.content h2 a:active {
  transform: translateY(0) scale(0.98);
}

.section1 .news {
  display: flex;
  background-color: #f1f1f1;
}

.news .img_box {
  display: block;
  width: 437px;
  flex-shrink: 0;
}

.news img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news .news_info {
  padding: 30px 20px;
}

.news .news_info h3 {
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 25px;
  font-weight: 600;
}
.news .news_info p {
  color: #656565;
  font-size: 22px;
  line-height: 30px;
}

.section1 .news_text {
  margin-top: 20px;
  padding: 30px 20px;
  background-color: #2196f3;
}

.section1 .news_text ul {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.section1 .news_text ul::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #dee2e6;
  transform: translateX(-50%);
}

.section1 .news_text li {
  flex: 1;
  padding: 0 20px;
}

.section1 .news_text li:first-child {
  padding-left: 0;
}

.section1 .news_text li:last-child {
  padding-right: 0;
}

.section1 .news_text a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 28px;
  transition: color 0.3s ease;
}

.section1 .news_text a:hover {
  /* color: #ffeb3b; */
  /* text-shadow: 0 0 5px rgba(255, 235, 59, 0.3); */
  text-decoration: underline;
}

.section2 .news {
  display: flex;
  justify-content: space-between;
}

.section2 .news .left {
  width: 610px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.section2 .news .mid {
  width: 200px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background-color: #f1f1f1;
  padding: 25px 22px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
}

.section2 .news .right {
  width: 330px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: space-between;
}

/* Swiper轮播图样式 */
.swiper1 {
  width: 100%;
  height: auto;
  position: relative;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swiper1 .swiper-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff;
  /* border-radius: 8px; */
  overflow: hidden;
}

.swiper1 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.swiper1 .swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper1 .swiper-slide span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 20px 20px;
  color: white;
  font-size: 16px;
  line-height: 1.4;
}

.swiper1 .swiper-slide span a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.swiper1 .swiper-slide span a:hover {
  /* color: #ffeb3b; */
  text-decoration: underline;
}

/* Swiper导航按钮样式 */
.swiper1 .swiper-button-next,
.swiper1 .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper1 .swiper-button-next:hover,
.swiper1 .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.swiper1 .swiper-button-next::after,
.swiper1 .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.section2 .news .left .img_news {
  margin-top: 30px;
  padding: 20px;
  background-color: #f1f1f1;
  display: flex;
  gap: 10px;
}

.section2 .news .left .img_news .img_box {
  width: 340px;
  flex-shrink: 0;
}

.img_box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section2 .news .left .img_news h3 {
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
}

.section2 .news .right .img_news {
  background-color: #f1f1f1;
}

.section2 .news .right .img_news h3 {
  font-size: 22px;
  line-height: 25px;
  font-weight: 400;
  padding: 15px;
}

.section3 .news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.section3 .news .news_box h3 {
  font-size: 28px;
  line-height: 32px;
  font-weight: 500;
}
.section3 .news .news_box h3 a {
  color: #2196f3;
}
.section3 .news .news_box p {
  font-size: 22px;
  color: #656565;
  margin-top: 22px;
}

.section3 .news .news_box:nth-child(2n + 1) {
  background-color: #f1f1f1;
  padding: 20px;
}

.section3 .news .news_box:nth-child(2n) {
  background-color: #2196f3;
  color: #fff;
}

.section3 .news .news_box:nth-child(2n + 1) .img_box {
  display: none;
}

.section3 .news .news_box:nth-child(2n) p {
  display: none;
}

.section3 .news .news_box:nth-child(2n) h3 {
  padding: 15px 20px;
  min-height: 182px;
}
.section3 .news .news_box:nth-child(2n) h3 a {
  color: #fff;
}

.section3 .news .img_box {
  width: 100%;
}

/* News Divider with Pseudo Element */
.mid .text_news:first-child::after {
  content: "";
  display: block;
  height: 1px;
  background: #666;
  margin: 22px 0;
  opacity: 0.6;
}

/* Knowledge Swiper Styles */
.section4 .news {
  position: relative;
}

.section4 .img_box {
  width: 100%;
  overflow: hidden;
}

.swiper2 {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}

.swiper2 .swiper-slide {
  display: flex;
  flex-direction: column;
  /* justify-content: flex-start; */
  /* align-items: center; */
  background: #f1f1f1;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.swiper2 .swiper-slide img {
  width: 100%;
  aspect-ratio: 5 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.swiper2 .swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper2 .swiper-slide span {
  padding: 20px;
}

.swiper2 .swiper-slide span a {
  color: #333;
  text-decoration: none;
  font-size: 24px;
  line-height: 28px;
  font-weight: 400;
  transition: color 0.3s ease;
  display: -webkit-box;
  /* 限制文本行数为2行 */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swiper2 .swiper-slide span a:hover {
  color: #007bff;
}

/* Knowledge Swiper Navigation */
.section4 .swiper-button-next,
.section4 .swiper-button-prev {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.section4 .swiper-button-next:hover,
.section4 .swiper-button-prev:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.section4 .swiper-button-next::after,
.section4 .swiper-button-prev::after {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.section4 .swiper-button-next {
  right: -60px;
}

.section4 .swiper-button-prev {
  left: -60px;
}

.footer {
  margin-top: 100px;
  padding: 40px 0 50px;
  background-color: #2196f3;
  color: #fff;
  text-align: center;
}

.footer .toTop {
  margin-bottom: 20px;
}

.footer .toTop a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 30px;
}

.footer p {
  font-size: 16px;
  line-height: 20px;
}

/* 响应式容器 */
@media (max-width: 1200px) {
  .container {
    width: 100%;
  }
}

/* 移动端基础样式 */
@media screen and (max-width: 768px) {
  /* 调整基础字体大小 */
  html {
    font-size: 16px;
  }

  body {
    font-size: 14px;
    line-height: 1.4;
  }

  /* 移动端容器宽度 */
  .container {
    width: 100%;
    padding: 0 10px;
  }

  /* 移动端链接点击区域优化 */
  a {
    padding: 8px 0;
  }

  .img_box {
    padding: 0;
  }

  /* 移动端表单元素优化 */
  input,
  select,
  textarea {
    font-size: 16px; /* 防止iOS自动放大 */
    max-width: 100%;
  }

  button {
    min-height: 44px; /* 确保可点击区域足够大 */
    padding: 0 15px;
  }

  /* 移动端图片优化 */
  img {
    height: auto;
    max-width: 100%;
  }

  /* 移动端表格响应 */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 移动端间距调整 */
  .mb-mobile {
    margin-bottom: 15px;
  }

  .mt-mobile {
    margin-top: 15px;
  }

  /* 禁用移动端点击高亮 */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .pc_box {
    display: none;
  }

  .wap_box {
    display: block;
  }

  .nav {
    padding: 0 15px;
    border-radius: 0 0 8px 8px;
    background: white;
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(248, 249, 250, 0.95);
    flex-direction: column;
    width: 200px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav ul.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    flex: none;
    text-align: left;
  }

  .nav li:not(:last-child)::after {
    display: none;
  }

  .nav a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    font-size: 16px;
    color: #333;
    transform: none;
    transition: background 0.2s ease;
  }

  .nav a::before {
    display: none;
  }

  .nav li:first-child a {
    border-radius: 10px 10px 0 0;
  }

  .nav li:last-child a {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
  }

  .nav a:hover,
  .nav a:active,
  .nav a.active {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    border-left-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    transform: none;
    font-weight: 600;
  }

  .nav li:last-child a:hover,
  .nav li:last-child a:active,
  .nav li:last-child a.active {
    border-bottom: none;
  }

  /* 确保header容器有相对定位 */
  .header {
    position: relative;
  }

  /* 汉堡菜单按钮 */
  .nav::before {
    content: "☰";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
  }

  .nav::before:hover {
    background: rgba(240, 240, 240, 0.95);
    transform: scale(1.1);
  }

  .nav.active::before {
    content: "✕";
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
  }

  .nav.active::before:hover {
    background: rgba(220, 53, 69, 0.2);
  }

  .swiper1 {
    height: auto;
  }

  .swiper1 .swiper-slide span {
    font-size: 14px;
    padding: 30px 15px 15px;
  }

  .swiper1 .swiper-button-next,
  .swiper1 .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper1 .swiper-button-next::after,
  .swiper1 .swiper-button-prev::after {
    font-size: 14px;
  }

  /* News Divider 移动端样式 */
  .mid .text_news:first-child::after {
    margin: 8px 0;
  }

  /* Knowledge Swiper 移动端样式 */
  .swiper2 {
    height: auto;
    margin: 15px 0;
  }

  .swiper2 .swiper-slide span {
    padding: 12px;
  }

  .swiper2 .swiper-slide span a {
    font-size: 16px;
  }

  .section4 .swiper-button-next,
  .section4 .swiper-button-prev {
    top: 40%;
  }

  .section4 .swiper-button-next {
    right: 10px;
  }

  .section4 .swiper-button-prev {
    left: 10px;
  }

  /* 移动端新闻布局优化 */
  .content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .section1 .news {
    flex-direction: column;
  }

  .news .img_box {
    width: 100%;
  }

  .news .news_info {
    padding: 20px 15px;
  }

  .news .news_info h3 {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 15px;
  }

  .news .news_info p {
    font-size: 16px;
    line-height: 22px;
  }

  .section1 .news_text {
    margin-top: 15px;
    padding: 20px 15px;
  }

  .section1 .news_text ul {
    flex-direction: column;
    gap: 15px;
  }

  .section1 .news_text ul::before {
    display: none;
  }

  .section1 .news_text li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
  }

  .section1 .news_text li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section1 .news_text a {
    font-size: 18px;
    line-height: 22px;
  }

  /* Section2 移动端布局 */
  .section2 .news {
    flex-direction: column;
    gap: 20px;
  }

  .section2 .news .left,
  .section2 .news .mid,
  .section2 .news .right {
    width: 100%;
    gap: 15px;
  }

  .section2 .news .left .img_news {
    margin-top: 20px;
    padding: 0;
    flex-direction: column;
    gap: 0;
  }

  .section2 .news .left .img_news .img_box {
    width: 100%;
  }

  .section2 .news .left .img_news h3 {
    font-size: 18px;
    line-height: 22px;
    padding: 15px;
  }

  .section2 .news .mid {
    padding: 20px 15px;
    font-size: 18px;
    line-height: 22px;
  }

  .section2 .news .right .img_news h3 {
    font-size: 18px;
    line-height: 20px;
    padding: 15px;
  }

  /* Section3 移动端布局 */
  .section3 .news {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section3 .news .news_box h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .section3 .news .news_box p {
    font-size: 16px;
    margin-top: 15px;
  }

  .section3 .news .news_box:nth-child(2n) h3 {
    padding: 15px;
    min-height: auto;
  }

  /* 轮播图移动端优化 */
  .swiper1 {
    height: 250px;
  }

  .swiper1 .swiper-slide img {
    object-fit: cover;
  }

  .swiper1 .swiper-button-next,
  .swiper1 .swiper-button-prev {
    width: 35px;
    height: 35px;
    margin-top: -17.5px;
  }

  .swiper1 .swiper-button-next::after,
  .swiper1 .swiper-button-prev::after {
    font-size: 12px;
  }

  .swiper1 .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }

  /* Knowledge Swiper 移动端优化 */

  .swiper2 .swiper-slide h3 {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 5px;
  }

  .swiper2 .swiper-slide p {
    font-size: 12px;
    line-height: 14px;
  }

  .knowledge_swiper .swiper-button-next,
  .knowledge_swiper .swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  .knowledge_swiper .swiper-button-next::after,
  .knowledge_swiper .swiper-button-prev::after {
    font-size: 10px;
  }

  .footer {
    margin-top: 40px;
  }
}

/* 超小屏幕设备优化 (480px以下) */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  /* 基础字体调整 */
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  /* 标题字体调整 */
  .content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
  }

  /* 导航菜单字体 */
  .nav a {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* 轮播图进一步优化 */

  .swiper2 .swiper-slide h3 {
    font-size: 12px;
    line-height: 14px;
  }

  .swiper2 .swiper-slide p {
    font-size: 11px;
    line-height: 13px;
  }

  /* 新闻内容字体调整 */
  .news .news_info {
    padding: 15px 10px;
  }

  .news .news_info h3 {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 10px;
  }

  .news .news_info p {
    font-size: 14px;
    line-height: 20px;
  }

  .section1 .news_text {
    padding: 15px 10px;
  }

  .section1 .news_text a {
    font-size: 16px;
    line-height: 20px;
  }

  .section2 .news .mid {
    padding: 15px 10px;
    font-size: 16px;
    line-height: 20px;
  }

  .section2 .news .left .img_news h3,
  .section2 .news .right .img_news h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .section3 .news .news_box h3 {
    font-size: 18px;
    line-height: 22px;
  }

  .section3 .news .news_box p {
    font-size: 14px;
    margin-top: 10px;
  }

  /* 按钮和交互元素优化 */
  .swiper1 .swiper-button-next,
  .swiper1 .swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  .swiper1 .swiper-button-next::after,
  .swiper1 .swiper-button-prev::after {
    font-size: 10px;
  }

  .knowledge_swiper .swiper-button-next,
  .knowledge_swiper .swiper-button-prev {
    width: 25px;
    height: 25px;
    margin-top: -12.5px;
  }

  .knowledge_swiper .swiper-button-next::after,
  .knowledge_swiper .swiper-button-prev::after {
    font-size: 8px;
  }

  /* 间距优化 */
  .section1 .news_text ul {
    gap: 10px;
  }

  .section1 .news_text li {
    padding-bottom: 10px;
  }

  .section2 .news {
    gap: 15px;
  }

  .section3 .news {
    gap: 10px;
  }
}

/* 适配刘海屏 */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}
