/* 修改导航菜单悬停行为 */
.nav>ul>li>div {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 8;
    line-height: normal;
    visibility: hidden;
    opacity: 0;
    transition: all .5s;
    z-index: -999;
  }
  
  /* 当鼠标悬停在特定菜单项上时，只显示该菜单的子菜单 */
  .nav>ul>li:hover>div {
    visibility: visible;
    opacity: 1;
    z-index: 9;
  }
  
  /* 移除原有的全部显示机制 */
  .nav-bj {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    top: 100%;
    width: 100%;
    z-index: -999;
    height: 300px;
    background: rgba(255, 255, 255, .5);
    transition: all 0.5s;
    transform-origin: center top;
  }
  
  .nav>ul>li:hover ~ .nav-bj,
  .nav:hover .nav-bj {
    transform: translateX(-50%) scaleY(1);
    z-index: 1;
  }
  
  /* 标题图标样式 */
  .titName h2 {
    display: flex;
    align-items: center;
  }
  
  .titName h2:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #800E74;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
  }
  
  /* 各版块标题图标 */
  .section2 .titName h2:before {
    -webkit-mask-image: url('images/news.svg');
    mask-image: url('images/news.svg');
  }
  
  .section2-1 .titName h2:before {
    -webkit-mask-image: url('images/notice.svg');
    mask-image: url('images/notice.svg');
  }
  
  .section3 .titName h2:before {
    -webkit-mask-image: url('images/exhibition.svg');
    mask-image: url('images/exhibition.svg');
  }
  
  .section4 .titName h2:before {
    -webkit-mask-image: url('images/collection.svg');
    mask-image: url('images/collection.svg');
  }
  
  .section5 .titName h2:before {
    -webkit-mask-image: url('images/education.svg');
    mask-image: url('images/education.svg');
  }
  
  .section7 .titName h2:before {
    -webkit-mask-image: url('images/extend.svg');
    mask-image: url('images/extend.svg');
  }
  
  .section8 .titName h2:before {
    -webkit-mask-image: url('images/activity.svg');
    mask-image: url('images/activity.svg');
  }
  
  /* 底部社交图标样式 */
  .foot-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .foot-info {
    flex: 1;
  }
  
  .foot-social {
    margin-left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  
  .social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .social-icons .icon-item {
    position: relative;
    margin-right: 25px;
    margin-bottom: 0;
    cursor: pointer;
  }
  
  .social-icons .icon-item img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
  }
  
  .social-icons .icon-item:hover img {
    transform: scale(1.1);
  }
  
  .social-icons .qrcode {
    position: absolute;
    bottom: 20px;
    right: auto;
    top: auto;
    left: 0%;
    transform: translateX(-50%) scale(0);
    background-color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10;
  }
  
  .social-icons .qrcode img {
    width: 120px;
    height: 120px;
  }
  
  .social-icons .icon-item:hover .qrcode {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  
  /* 移动端适配 */
  @media screen and (max-width: 768px) {
    .foot-r {
      flex-direction: column;
    }
    
    .foot-social {
      margin-left: 0;
      margin-top: 20px;
    }
    
    .social-icons {
      flex-direction: row;
    }
    
    .social-icons .icon-item {
      margin-right: 15px;
      margin-bottom: 0;
    }
    
    .social-icons .qrcode {
      right: auto;
      bottom: 40px;
      top: auto;
      left: 50%;
      transform: translateX(-50%) scale(0);
    }
    
    .social-icons .icon-item:hover .qrcode {
      transform: translateX(-50%) scale(1);
    }
  }
  
  /* 友情链接标签式样式 */
  .section9 {
    padding: 0 0px 40px 0px;
    background-image: url(images/s1-bg.png);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;

  }
  
  .friend-links {
    display: flex;
    flex-wrap: wrap;
    margin: 25px 0 0;
  }
  
  .friend-links li {
    width: 20%; /* 一行5个 */
    padding: 0 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .friend-links a {
    display: block;
    width: 100%;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .friend-links a:hover {
    color: #fff;
    background-color: #800E74;
    border-color: #800E74;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(128,14,116,0.2);
  }
  
  /* 移动端适配 */
  @media screen and (max-width: 992px) {
    .friend-links li {
      width: 25%; /* 平板上一行4个 */
    }
  }
  
  @media screen and (max-width: 768px) {
    .friend-links li {
      width: 33.333%; /* 小屏上一行3个 */
    }
  }
  
  @media screen and (max-width: 576px) {
    .friend-links li {
      width: 50%; /* 手机上一行2个 */
    }
  }