<template>
  <div class="app-container home">
    <div class="banner">
      <el-carousel height="1064px" :indicator-position="bannerImgList.length <= 1 ? 'none':'' ">
        <el-carousel-item v-for="item in bannerImgList" :key="item" @click="handleCarousel(item.url)">
          <!--          <img :src="baseUrl + item.image" alt="">-->
          <img :src="item.image" alt=""/>
        </el-carousel-item>
      </el-carousel>
    </div>


    <div class="custom-main-w">
      <div class="custom-title">
        <h5>我们为您提供高性能的算力服务 </h5>
        <p>专业造就品质， 携手共赢，助力企业发展</p></div>
      <div class="resource-list">
        <div class="el-row" style="margin-left: -15px; margin-right: -15px;">
          <div class="el-col el-col-8 is-guttered" style="padding-right: 15px; padding-left: 15px;">
            <div class="resource-item">
              <div class="img"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/10/25/服务-超级计算@1x_20241025140658A015.png"
                  alt=""></div>
              <div class="title">超级计算</div>
              <p class="info">超级计算
                拥有天河一号、天河新一代超级计算机，综合算力200PF，存储超20PB，可提供大规模数值模拟计算和数据分析处理等服务</p>
              <div class="btn-box">
                <button aria-disabled="false" type="button"
                        class="el-button el-button--default is-plain">
                  <span class="">了解详情 </span>
                </button>
              </div>
            </div>
          </div>
          <div class="el-col el-col-8 is-guttered" style="padding-right: 15px; padding-left: 15px;">
            <div class="resource-item">
              <div class="img"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/10/25/服务-人工智能@1x_20241025140651A014.png"
                  alt=""></div>
              <div class="title">人工智能计算</div>
              <p class="info">
                提供各类通用、国产CPU、GPU裸金属服务器，资源独占、性能无损、弹性扩容、安全可靠</p>
              <div class="btn-box">
                <button aria-disabled="false" type="button"
                        class="el-button el-button--default is-plain">
                  <span class="">了解详情 </span>
                </button>
              </div>
            </div>
          </div>
          <div class="el-col el-col-8 is-guttered" style="padding-right: 15px; padding-left: 15px;">
            <div class="resource-item">
              <div class="img"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/10/25/服务-云计算@1x_20241025140605A013.png"
                  alt=""></div>
              <div class="title">云计算</div>
              <p class="info">提供安全稳定及灵活扩展的云计算服务，实现按需扩展CPU、内存、存储和网络资源，有效降低
                IT 成本，提升运维效率，助力核心业务创新。</p>
              <div class="btn-box">
                <button aria-disabled="false" type="button"
                        class="el-button el-button--default is-plain">
                  <span class="">了解详情 </span>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div>
      <div class="service-card" style="background-color: rgb(255, 255, 255);">
        <div class="custom-main-w">
          <div class="custom-title"><h5> 为各行业提供智能化解决方案 </h5>
            <p>适用于政务、金融、旅游、大数据、人工智能、教育、工业等多行业解决方案</p></div>
          <div class="tabs-container">
            <div class="tabs-header">
              <div v-for="(i,index) in tabList" :key="index" @click="handleTab(index)">
                <button :class="activeTabs === index? 'tab-active':''">{{ i }}</button>
                <div v-if="activeTabs === index" class="indicator" style="width: 100%;"></div>
              </div>
            </div>
          </div>

          <el-carousel ref="myCarousel" type="card" height="400px" :autoplay="false" @change="handleCarouselCard">
            <el-carousel-item>
              <div class="swiper-box">
                <div class="swiper-list">
                  <div class="swiper-item"
                       style="background-image: url('http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/10/29/txg-02_20241029161244A040.jpg');">
                    <div class="item"><h3 class="title">数字天心阁</h3>
                      <p class="desc">
                        其展馆面积3000余平方，收藏有大量近代湖湘历史名人相关文物，结合普惠算力服务平台的最新数智科技，打造了沉浸式湖湘文化主题内容体验，是长沙新崛起的一个独具特色的“文化+科技”融合文旅创新项目。</p>
                      <p class="info flex-justify-end"><span class="btn">带你体验领略不一样的天心阁 </span>
                      </p></div>
                  </div>
                </div>
              </div>
            </el-carousel-item>
            <el-carousel-item>
              <div class="swiper-box">
                <div class="swiper-list">
                  <div class="swiper-item"
                       style="background-image: url('http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/07/01/resource1-Z05URL38_20240701145643A048.png');">
                    <div class="item">
                      <h3 class="title">智能审核</h3>
                      <p class="desc">
                        新一代人工智能大模型与AIGC应用高科技企业。自成立以来，始终坚持核心技术自主研发，积累数十项知识产权。通过不断深耕大数据、深度学习和自然语言处理（NLP）等人工智能核心领域技术，构建了通用型AI智能内容处理平台底座，并面向安全测评、内容安全、内容生成等领域研发出四大类产品线，包括大模型与AIGC安全评测、博特翊盾一站式智能内容审核与巡查平台、博特妙笔AI公文写作平台、博特点石智能金融服务平台等多维度、广场景、强能力的人工智能产品与服务。</p>
                      <p class="info flex-justify-end">
                        <span class="btn">智能审核</span>
                      </p>
                    </div>
                  </div>
                </div>
              </div>
            </el-carousel-item>
            <el-carousel-item>
              <div class="swiper-box">
                <div class="swiper-list">
                  <div class="swiper-item"
                       style="background-image: url('http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/07/01/resource2-jp9iLWfp_20240701145658A050.png');">
                    <div class="item"><h3 class="title">智能写作</h3>
                      <p class="desc">
                        集成案例参考、材料查找、A1写作、修改润色、审核校对、文件学习等功能,全方位地辅助公职人员提高创作效率,节省人工编写的时间和精力。</p>
                      <p class="info flex-justify-end"><span class="btn">智能写作一片未来</span>
                      </p></div>
                  </div>
                </div>
              </div>
            </el-carousel-item>
          </el-carousel>

          <div class="view-more-text">
            <button aria-disabled="false" type="button" class="el-button el-button--default is-plain is-round">
              <span class="">查看更多</span></button>
          </div>
        </div>
      </div>
    </div>

    <div class="service-card" style="background-color: rgb(255, 255, 255);">
      <div class="custom-main-w">
        <div class="custom-title"><h5>活动资讯</h5></div>
        <div class="information-top">
          <div class="el-row" style="margin-left: -15px; margin-right: -15px;">
            <div class="el-col el-col-8 is-guttered"
                 style="padding-right: 15px; padding-left: 15px;">
              <div class="info-top-item"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2025/03/10/640_20250310195348A114.jpg"
                  alt="">
                <div class="content">
                  <div class="title">天水文旅智算创新中心启动 | 普惠算力平台助力中小企业数字化转型
                  </div>
                  <div class="date">2025-03-10</div>
                </div>
              </div>
            </div>
            <div class="el-col el-col-8 is-guttered"
                 style="padding-right: 15px; padding-left: 15px;">
              <div class="info-top-item"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/06/25/封面_20240625194417A007.png"
                  alt="">
                <div class="content">
                  <div class="title">媒体聚焦 |
                    新区崭新产业“苗圃”即将“定妆”！湘江创智园预计年底建成投运
                  </div>
                  <div class="date">2024-06-25</div>
                </div>
              </div>
            </div>
            <div class="el-col el-col-8 is-guttered"
                 style="padding-right: 15px; padding-left: 15px;">
              <div class="info-top-item"><img
                  src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/10/29/gszx-2_20241029100921A030.jpg"
                  alt="">
                <div class="content">
                  <div class="title">激活算力促转化！湖南大学大科城先进计算联合创新中心正式成立</div>
                  <div class="date">2024-06-25</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="information-bottom">
          <div class="info-bottom-item flex">
            <div class="content">
              <div class="title">AI在金融领域的崭新应用：智能化金融服务的革新</div>
              <div class="remark">
                引言：随着人工智能（AI）技术的不断发展，金融领域正迎来一场智能化的革命。从智能投资到风险管理，AI正在改变传统金融服务的面貌，为用户提供更为个性化、高效的金融体验。
              </div>
            </div>
            <div class="date">2024-04-28</div>
          </div>
          <div class="info-bottom-item flex">
            <div class="content">
              <div class="title">人工智能赋能金融领域 这场银企交流会提出这些“金点子”</div>
              <div class="remark">推动大数据技术研发应用，让人工智能赋能金融领域发展，重庆在行动</div>
            </div>
            <div class="date">2024-04-28</div>
          </div>
          <div class="info-bottom-item flex">
            <div class="content">
              <div class="title">
                与价值“共声”，银河证券联名财联社将赴AI引领者科大讯飞，洞察新质生产力下一程
              </div>
              <div class="remark">
                AI若以拼音来读，即可读作爱，亦是一种对美好事物的寄托。无疑，AI是新一轮科技革命和产业变革的重要驱动力量，而上市公司则是资本市场高质量发展的重要驱动力量。
              </div>
            </div>
            <div class="date">2024-04-28</div>
          </div>
        </div>
        <div class="view-more-text">
          <button aria-disabled="false" type="button"
                  class="el-button el-button--default is-plain is-round">
            <span class="">更多资讯 </span>
          </button>
        </div>
      </div>
    </div>

    <div>
      <div class="partner-card">
        <div class="custom-main-w">
          <div class="custom-title"><h5>优秀的合作伙伴</h5>
            <p>我们将为用户提供安全、可靠、优质的应用解决方案</p></div>
          <div class="partner-list">
            <div class="el-row" style="margin-left: -15px; margin-right: -15px;">
              <div class="el-col el-col-8 is-guttered"
                   style="padding-right: 15px; padding-left: 15px;">
                <div class="partner-item">
                  <div class="img"><img
                      src="http://ph.xjkcjd.com:18081/prod-api/profile/upload/2024/12/25/智谱_20241225151742A098.png"
                      alt=""></div>
                  <div class="title">北京智谱华章科技有限公司</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="joinus-box">
      <div class="custom-main-w joinus-inner-box">
        <div class="cell-1 left">
          <h5 class="title">
            普惠算力公共服务平台，期待您的加入</h5>
          <p class="desc">
            让我们共同引领行业创新浪潮，共绘算力时代蓝图，成为超算互联网服务领域的佼佼者</p></div>
        <div class="right"><span class="a-btn"> 加入我们</span></div>
      </div>
    </div>

    <div class="content-footer">
      <div class="content-detail">
        <img src="@/assets/images/indexImg/content1.png" alt=""/>
        <div class="name">服务支持</div>
        <div class="more">了解更多 ></div>
      </div>
      <div class="content-detail">
        <img src="@/assets/images/indexImg/content2.png" alt=""/>
        <div class="name">联系我们</div>
        <div class="more">了解更多 ></div>
      </div>
      <div class="content-detail">
        <img src="@/assets/images/indexImg/content3.png" alt=""/>
        <div class="name">如何购买</div>
        <div class="more">了解更多 ></div>
      </div>
    </div>

    <div class="footer">先进计算科技有限公司 沪ICP备18000749号-2</div>

    <el-dialog
        v-model="dialogTableVisible"
        style="width: 80% !important;"
        :title="dialogTitle"
        @close="handleDialogClose"
    >
      <div>
        <iframe v-show="iframeShow" ref="iframe" :src="iframeSrc" width="100%" height="700px"></iframe>
      </div>
    </el-dialog>
  </div>
</template>

<script setup name="Index">
import {banner, assemblyList, informationResourceList, informationList} from '@/api/home.js'
import {ref} from 'vue'

const baseUrl = import.meta.env.VITE_APP_BASE_API
// const baseImgUrl = window.location.origin
const activeTabs = ref(1)
const tabList = ref(['数字天心阁', '智能审核', '智能写作'])
const assemblyData = ref([])

const bannerImgList = ref([])
const list = ref([
  {
    id: 1,
    title: '计算资源',
    titleEH: '/RESOURCE',
    present: '强劲 · 稳定 · 安全的云计算能力 · 助力企业上云',
    assemblyData: [
      // {
      //   title: '天河系列超级计算机',
      //   description: '拥有天河一号、天河新一代超算，综合算力200PF（64位精度），人工智能算力800PF，存储超20PB。可提供科学研究、工程仿真、并行算法及大规模并行应用软件研发。',
      //   router: '/computingResource/resourceList?type=0'
      // },
      // {
      //   title: '天河 天马智算集群',
      //   description: '提供各类通用、国产CPU、GPU裸金属服务器，资源独占、性能无损、弹性扩容、安全可靠',
      //   router: '/computingResource/resourceList?type=1'
      // },
      // {
      //   title: '云计算服务',
      //   description: '提供安全稳定及灵活扩展的云计算服务，实现按需扩展CPU、内存、存储和网络资源，有效降低 IT 成本，提升运维效率，助力核心业务创新。',
      //   router: '/computingResource/resourceList?type=2'
      // }
    ]
  },
  {
    id: 2,
    title: '行业应用',
    titleEH: '/APPLICATION',
    present: '集成机器学习、深度学习、自然语言处理、图像识别等先进技术，为金融、医疗、教育、零售、制造业等多个领域提供智能化解决方案。',
    assemblyData: []
  },
  {
    id: 3,
    title: '生态合作伙伴',
    titleEH: '/PARTNER',
    present: '助力各类“AI+”创新应用，推进企业算力生态建设，促进科创产业集聚发展',
    assemblyData: []
  }
])
const dialogTableVisible = ref(false)
const dialogTitle = ref('')
const iframeSrc = ref('')
const iframeShow = ref(false)
const myCarousel = ref(null)

function getBanner() {
  banner().then(res => {
    // 筛选条件：showStatus为1的数据
    const validData = res.data.filter(item => item.showStatus === 1);

    // 处理图片字段，只取第一张图片
    validData.forEach(item => {
      // 注意后台字段名为images（复数），需要取第一张图片
      if (Array.isArray(item.images) && item.images.length > 0) {
        item.image = item.images[0];
      } else {
        item.image = ''; // 如果没有图片，设置为空字符串
      }
    });

    // 对筛选后的数据进行排序
    bannerImgList.value = validData.sort(function (a, b) {
      return a.orderNum - b.orderNum
    })
  })
}

function handleTab(val) {
  activeTabs.value = val
  myCarousel.value.setActiveItem(val);
}

function handleCarouselCard(index) {
  activeTabs.value = index
}

getBanner()

function getAssemblyList() {
  assemblyList({type: 0}).then(res => {
    // 筛选条件：showStatus为true的数据
    const filteredData = res.data.filter(item => item.showStatus === true);

    const data = filteredData.sort(function (a, b) {
      return a.orderNum - b.orderNum
    }).map(item => {
      // 处理description字段，去除<p>标签
      if (item.description) {
        item.description = item.description.replace(/<p>/g, '').replace(/<\/p>/g, '')
      }

      // 处理images数组，只取第一张图片
      if (Array.isArray(item.images) && item.images.length > 0) {
        item.image = item.images[0];
      } else {
        item.image = ''; // 如果没有图片，设置为空字符串
      }

      // 处理homeImages数组，只取第一张图片
      if (Array.isArray(item.homeImages) && item.homeImages.length > 0) {
        item.homeImage = item.homeImages[0];
      } else {
        item.homeImage = ''; // 如果没有图片，设置为空字符串
      }

      return item
    })
    assemblyData.value = data.length > 3 ? data.slice(0, 3) : data
    list.value[1].assemblyData = data.length > 3 ? data.slice(0, 3) : data
  })
}

function getResource() {
  informationResourceList().then(res => {
    // 筛选条件：showStatus为true的数据
    const filteredData = res.data.filter(item => item.showStatus === true);

    // 处理information字段，去除<p>标签，并处理图片数组
    const processedData = filteredData.map(item => {
      if (item.information) {
        item.information = item.information.replace(/<p>/g, '').replace(/<\/p>/g, '');
      }

      // 处理images数组，只取第一张图片
      if (Array.isArray(item.images) && item.images.length > 0) {
        item.image = item.images[0];
      } else {
        item.image = ''; // 如果没有图片，设置为空字符串
      }


      return item;
    });

    list.value[0].assemblyData = processedData.length > 3 ? processedData.slice(0, 3) : processedData;
    console.log(list.value[0].assemblyData, 'list.value[0].assemblyData');
  });
}

getAssemblyList()
getResource()

const informationData = ref([])
const informationMainData = ref({})

function getInformation() {
  informationList().then(res => {
    // 筛选条件：showStatus为true的数据
    const filteredData = res.data.filter(item => item.showStatus === true);

    // 按创建时间降序排序（最新的在前）
    const sortedData = filteredData.sort((a, b) => {
      return new Date(b.createTime) - new Date(a.createTime);
    });

    sortedData.forEach(item => {
      item.year = new Date(item.createTime).getFullYear()
      item.month = new Date(item.createTime).getMonth() + 1
      item.month = item.month < 10 ? '0' + item.month : item.month
      item.day = new Date(item.createTime).getDate()
      item.day = item.day < 10 ? '0' + item.day : item.day
      // 使用正则表达式去除所有<p>和</p>标签
      if (item.description) {
        item.description = item.description.replace(/<p>/g, '').replace(/<\/p>/g, '')
      }

      // 处理images数组，只取第一张图片
      if (Array.isArray(item.images) && item.images.length > 0) {
        item.image = item.images[0];
      } else {
        item.image = ''; // 如果没有图片，设置为空字符串
      }
    })
    informationMainData.value = sortedData.length ? sortedData[0] : {}
    const arr = sortedData.length ? sortedData.slice(1, sortedData.length) : []
    informationData.value = arr.length > 3 ? arr.slice(0, 3) : arr
  })
}

getInformation()

function openAssembly(data) {
  dialogTitle.value = data.title
  iframeSrc.value = data.url
  dialogTableVisible.value = true
  iframeShow.value = true
}

function cancel() {
  dialogTableVisible.value = false
  iframeShow.value = false
}

// 关闭弹窗
function handleDialogClose() {
  iframeSrc.value = null
}

function handleCarousel(url) {
  if (url) {
    window.open(url)
  }
}
</script>

<style scoped lang="scss">
.view-more-text {
  position: sticky;
  text-align: center;
  font-size: 20px;
  color: #000000;
  cursor: pointer;
  padding-bottom: 60px;
  z-index: 2 !important;
}

.new-block {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 41px;

  .new-block-details {
    z-index: 2 !important;
    padding-top: 32px;
  }

  .resourceLogo {
    width: 123px;
    height: 123px;
    margin-bottom: 32px;
    z-index: 2 !important;
  }

  .details-introduce {
    display: flex;
    justify-content: center;
    text-align: center;

    span:first-child {
      font-family: Microsoft YaHei;
      font-weight: bolder;
      font-size: 35px;
      color: #000000;
    }

    span:last-child {
      font-family: YouSheBiaoTiHei;
      font-weight: 400;
      font-size: 42px;
      color: #5E6988;
    }
  }

  .present {
    font-family: Microsoft YaHei;
    font-weight: bolder;
    font-size: 17px;
    color: #010101;
    line-height: 27px;
    text-align: center;
  }
}

.model-box {
  position: relative;

  .light {
    position: absolute;
    z-index: 1;
    width: 100%;
    left: 0;
    top: 12%;
  }
}

.block-light {
  position: absolute;
  z-index: 1 !important;
  width: 1700px;
  height: 900px;
  left: 10px;
  top: 40px;
}

.particulars {
  width: calc(100% - 240px);
  margin: 0 auto;
  cursor: pointer;
}

.resource-box {
  padding: 44px 66px 0 58px;
  height: 248px;

  .title {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 27px;
    color: #F0A227;
    padding-bottom: 22px;
    z-index: 2 !important;
  }

  .introduce {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 14px;
    color: #FAFBFD;
    line-height: 27px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

.resource-col {
  z-index: 2 !important;
}

.app-container {
  padding: 0;
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
}

.home {

}

.banner {
  position: relative;
  cursor: pointer;
  //margin-bottom: 64px;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.block {
  margin: 0 auto;
  z-index: 4 !important;
  padding-bottom: 60px;
}

.block-title {
  font-weight: bold;
  font-size: 40px;
  color: #303233;
  line-height: 60px;
  text-align: center;
  position: relative;
  z-index: 3 !important;

  .bg-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: DIN, system-ui;
    font-weight: bold;
    font-size: 90px;
    color: rgba(0, 0, 0, 0.02);
  }
}

.block-sub-title {
  font-weight: 400;
  font-size: 14px;
  color: #949899;
  line-height: 22px;
  text-align: center;
  margin-bottom: 48px;
}

.view-more-btn {
  border: 1px solid #C8CBCC;
  border-radius: 2px;
  height: 40px;
  color: #303233;
  z-index: 2 !important;
}

.resource-item {
  height: 434px;
  padding: 60px 60px 0 60px;
  margin-bottom: 24px;
  cursor: pointer;

  &.resource-item-1 {
    background: url("@/assets/images/resource-1.png") no-repeat center center / cover;
  }

  &.resource-item-2 {
    background: url("@/assets/images/resource-2.png") no-repeat center center / cover;
  }

  &.resource-item-3 {
    .desc {
      width: 35%;
    }

    background: url("@/assets/images/resource-3.png") no-repeat center center / cover;
  }
}

.resource-item:hover {
  cursor: pointer;
  box-shadow: 0 0 10px 0 #dbdada;
}

.resource-item, .application-item {

  .title {
    font-weight: bold;
    font-size: 34px;
    color: #303233;
    margin-bottom: 28px;
  }

  .desc {
    font-weight: 400;
    font-size: 14px;
    color: #7e8080;
    margin-bottom: 20px;
    line-height: 1.8;
  }

  .link {
    display: flex;
    align-items: center;
    color: #7e8080;
    font-size: 14px;
  }
}

.application-item {
  height: 436px;
  padding: 50px 60px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  .title {
    margin-bottom: 10px;
  }

  .desc {
    color: #444444;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    max-height: 100px;
    -webkit-box-orient: vertical;
  }

  .link {
    color: #444444;
    justify-content: center;
  }

  .title {
    text-align: center;
  }

  .desc {
    text-align: center;
    width: 300px;
  }
}

.partners {
  height: 434px;
  margin-bottom: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("@/assets/images/indexImg/bg-1.png") no-repeat;

  .title {
    font-weight: bold;
    font-size: 34px;
    color: #303233;
    margin-bottom: 20px;
  }

  .desc {
    font-weight: 400;
    font-size: 14px;
    color: #7e8080;
    margin-bottom: 40px;
    line-height: 1.8;
  }
}

.information-item {
  width: 570px;

  .content {
    font-size: 16px !important;
  }

  //
  //&:hover {
  //  cursor: pointer;
  //
  //  .date {
  //    color: #2E77E3;
  //  }
  //
  //  .title {
  //    color: #2E77E3;
  //  }
  //
  //  .content {
  //    color: #2E77E3;
  //  }
  //}

  &:not(:last-child) {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 2px solid #D6D7D8;
  }

  img {
    margin-top: 25px;
    width: 569px;

  }

  .date {
    font-family: DIN, system-ui;
    color: #949899;
    margin-right: 15px;
  }

  .month-day {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .year {
    font-size: 20px;
  }

  .right {
    min-width: 0;
  }

  .title {
    font-weight: bold;
    font-size: 24px;
    color: #303233;
    margin-bottom: 10px;
    padding-right: 45px;
  }

  .content {
    font-weight: 400;
    font-size: 14px;
    color: #626566;
    padding-right: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    :deep(*) {
      color: #626566 !important;
    }

    :deep(img) {
      display: block;
    }
  }
}

.footer {
  text-align: center;
  padding: 12px 0;
  color: #7C7D7E;
  font-weight: 400;
  font-size: 14px;
  background-color: #303233;
}

.banner-text {
  width: 913px;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%);
}

.banner-text .banner-left div:first-child {
  font-family: Microsoft YaHei;
  font-weight: 300;
  font-size: 75px;
  color: #F8F9FD;
  //line-height: 56px;
  text-indent: 20px;
  //padding-bottom: 16px;

  span {
    //font-family: DIN;
    font-weight: bolder;
  }
}

.banner-text .banner-left div:last-child {
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 20px;
  color: #ECAA1C;
  line-height: 27px;
  text-align: right;
}

.banner-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: Microsoft YaHei;
  color: #ECAA1C;
  padding-left: 34px;
}

.text-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 15px;
  color: #ECAA1C;
  //line-height: 20px;
  //padding-bottom: 8px;

  .text-right-del {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .exclamation-point {
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 42px;
    font-style: italic;
    padding-left: 9px;
  }
}

.text-bottom {
  font-family: Copperplate Gothic Light;
  font-weight: 400;
  font-size: 24px;
  color: #ECAA1C;

  span {
    font-weight: bolder;
  }
}

.content-footer {
  width: 100%;
  height: 218px;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 190px;

  .content-detail {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 100%;
    max-width: 1520px;
    cursor: pointer;

    .name {
      line-height: 32px;
      font-size: 24px;
      color: #333333;
      text-align: center;
    }

    .more {
      line-height: 22px;
      font-size: 16px;
      color: #333333;
      margin-top: 16px;
      text-align: center;
    }
  }

  img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }
}

.iframe-container {
  position: absolute;
  top: 10%;
  left: 6%;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
}

:deep(.el-dialog__body) {
  padding-top: unset !important;
}

.el-tabs {
  --el-border-color-light: #2E77E3;
  --el-tabs-header-height: 48px;

  :deep(.el-tabs__content) {
    overflow: visible
  }

  :deep(.el-tabs__active-bar) {
    display: none;
  }

  :deep(.el-tabs__item) {
    --el-font-size-base: 16px;
    padding-left: 24px !important;
    padding-right: 24px !important;

    &.is-active {
      color: #ffffff;
      background-color: #2E77E3;
    }
  }
}

.custom-title {
  padding: 80px 0 50px;
  text-align: center
}

.custom-title h5 {
  font-size: 30px;
  font-weight: 700;
  line-height: 2
}

.custom-title p {
  color: #9a9a9a;
  font-size: 20px;
  line-height: 2
}

.view-more-text {
  position: sticky;
  text-align: center;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  padding-bottom: 100px;
  z-index: 2 !important
}

.view-more-text .el-button {
  padding: 20px 30px
}

.banner-container {
  position: relative;
  cursor: pointer
}

.banner-container img {
  display: block;
  width: 100%;
  height: 100%
}

.banner-container .img-div {
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 800px;
  height: 100%
}

.banner-container .el-carousel__button {
  height: 8px;
  width: 60px;
  border-radius: 4px
}

.banner-container .el-carousel__arrow {
  width: 46px;
  height: 46px;
  font-size: 30px;
  font-weight: 700;
  background-color: #b5aeae96;
  opacity: .5
}

.resource-list {
  margin: 0 45px;
  padding-bottom: 150px
}

.resource-item {
  padding: 50px 40px;
  background-color: #fff;
  border: 1px solid #CECECE;
  border-radius: 15px
}

//.resource-item :hover {
//  box-shadow: 0 0 10px #dbdada
//}

.resource-item .img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center
}

.resource-item .img img {
  width: auto;
  max-height: 100%;
  max-width: 100%;
  display: inline-block
}

.resource-item .title {
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  height: 80px;
  line-height: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: #333
}

.resource-item .info {
  font-weight: 400;
  font-size: 16px;
  color: #666;
  line-height: 28px;
  margin-top: 9px;
  margin-bottom: 20px;
  height: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical
}

.resource-item .btn-box {
  text-align: center
}

.resource-item .btn-box .el-button {
  height: 45px;
  width: 120px;
  background-color: #1f4aae;
  border-radius: 10px;
  color: #fff;
  cursor: pointer
}

.service-card {
  background-color: #fff;
  margin-bottom: 30px
}

.tabs-container {
  display: flex;
  flex-direction: column
}

.tabs-header {
  display: flex;
  width: 900px;
  margin: 0 auto;
  justify-content: space-around;
  //display: flex;
  //position: relative;
  //overflow-x: auto;
  //white-space: nowrap
}

//.tabs-header div {
//  display: flex;
//  justify-content: space-around;
//}

.tabs-header button {
  display: block;
  padding: 5px 0;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  margin: 0 auto;
  font-size: 22px;
  transition: all .3s ease
}

.tabs-header button :hover {
  color: #1f4aaf
}

.tabs-header .tab-active {
  color: #1f4aaf;
  position: relative
}

.indicator {
  //position: absolute;
  //bottom: 0;
  height: 2px;
  background-color: #1f4aaf;
  transition: transform .3s ease
}

.swiper-box {
  //width: 900px;
  height: 400px;
  //position: relative;
  //overflow: hidden;
  margin: 40px 0
}

.swiper-box .swiper-list {
  //display: flex;
  //width: 99999px;
  //height: 100%;
  //overflow-x: auto;
  //position: absolute;
  //top: 0;
  //left: -300px;
  //transition: all .3s
}

.swiper-box .swiper-list .swiper-item {
  //width: 900px;
  height: 100%;
  margin-right: 40px;
  border-radius: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover
}

.swiper-box .swiper-list .swiper-item :last-child {
  margin-right: 0
}

.swiper-box .swiper-list .swiper-item .item {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  padding: 30px 20px 60px 20px;
  color: #fff;
  background-color: #00000026
}

.swiper-box .swiper-list .swiper-item .title {
  font-size: 22px;
  font-weight: 600;
  height: 40px;
  line-height: 40px;
  padding-bottom: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.swiper-box .swiper-list .swiper-item .desc {
  font-size: 16px;
  line-height: 28px;
  height: 112px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical
}

.swiper-box .swiper-list .swiper-item .info {
  margin: 20px 0 0
}

.swiper-box .swiper-list .swiper-item .btn {
  border: 1px solid #fff;
  padding: 5px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 20px;
}

.iframe-container {
  position: absolute;
  top: 10%;
  left: 6%
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0
}

.el-dialog__body {
  padding-top: unset !important
}

.partner-card {
  background: #fff
}

.partner-list {
  margin: 0 45px;
  padding-bottom: 80px
}

.partner-item {
  margin: 30px 40px;
  cursor: pointer
}

.partner-item .img {
  width: 160px;
  height: 70px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center
}

.partner-item .img img {
  width: auto;
  max-height: 100%;
  max-width: 100%;
  display: inline-block
}

.partner-item .title {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  margin: 10px auto 0;
  height: 36px;
  line-height: 36px;
  overflow: hidden;
  color: #333
}

.information-bottom {
  padding: 80px 0 40px
}

.info-top-item {
  position: relative;
  height: 400px;
  overflow: hidden
}

.info-top-item :hover {
  cursor: pointer
}

.info-top-item .content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 10px 10px;
  background-color: #10101080;
  color: #fff;
  padding: 14px 20px;
  text-overflow: ellipsis
}

.info-top-item .title {
  height: 40px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}

.info-top-item img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover
}

.info-bottom-item {
  margin-bottom: 40px
}

.info-bottom-item :hover {
  cursor: pointer
}

.info-bottom-item:hover .title, .info-bottom-item:hover .remark, .info-bottom-item:hover .date {
  color: #2c53ad
}

.info-bottom-item .content {
  flex: 1;
  width: 75%;
  padding-right: 200px
}

.info-bottom-item .title {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
  line-height: 30px;
  height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.info-bottom-item .remark {
  font-size: 16px;
  color: #9a9a9a;
  overflow: hidden;
  line-height: 24px;
  max-height: 48px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}

.info-bottom-item .date {
  font-family: DIN, system-ui;
  margin: 0 15px 0 30px;
  line-height: 40px;
  height: 40px;
  font-size: 16px
}

</style>

