/* === 页面基础样式 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    background-color: black;
    font-family: sans-serif;
  }
  
  /* === Header 样式 === */
  header {
    background-color: rgba(255, 255, 255, 1);
    height: 65px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 23px;
  }
  h1 {
    color: black;
    position: absolute;
    margin: 0;
    font-size: 20px;
    left: 50px;
    top: 0;
    line-height: 70px;
    display: flex;
    align-items: center;
    width: auto;
    z-index: 1000;  /* 确保标题在 header 内 */
    font-weight: 500;

    font-size: 22px;
}
h1::after {
    content: "AI for Creative Innovation Design Joint Lab"; /* 默认显示英文 */.
    font-family: 'Roboto', sans-serif;
  }
  
  h1:hover::after {
    content: attr(data-text); /* 悬停时替换成 data-text 里的中文 */
  }
  
  
  /* 添加 logo 样式 */
  h1::before {
    content: "";
    background-image: url("images/logo.png");
    background-size: contain; /* 让 logo 适应 */
    background-repeat: no-repeat;
    width: 55px; /* 适当调整 logo 大小 */
    height: 55px;
    display: inline-block;
    position: relative; /* 改为 relative，避免被覆盖 */
    z-index: 100;
    margin-right: 10px; /* 让 logo 和文字之间有间距 */
  }
  header ul {
    position:absolute;
    right:2vw;
    top:0;
    line-height:70px;
    font-weight: 500;
    font-size:20px;
    
  }
  header li {
    display: inline;
    margin-right: 1.5vw;
  }
  header a {
    position: relative;
    color:#808080;
    text-decoration: none;
    display: inline-block; 
    Line-height: 40px;
    padding: 0 10px; 
    box-sizing: border-box; 
    
}
header a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -5px; /* 左移 5px */
    right: -5px; 
    bottom: 0;
    background-color: black;
    border-radius: 18px;
    opacity: 0;           
    transition: opacity 0.3s ease; 
    z-index: -1; 
              
    /* width: 100%;
    height: 100%; */
}

header a:hover::after {
    opacity: 1;  
    padding: 4px 4px;
}

header a:hover {
    /* text-decoration: underline; */
    color: white;         
}

  .menu {
    display: none;
  }
  
  /* === 响应式 Header 菜单 === */
  @media screen and (max-width: 768px) {
    header ul {
      display: none;
      position: absolute;
      top: 90px;
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      text-align: center;
      padding: 10px 0;
    }
    .menu {
      display: block;
      background-color: black;
      color: white;
      font-size: 20px;
      position: absolute;
      top: 20px;
      left: 20px;
      border: none;
      cursor: pointer;
      padding: 5px 10px;
      border-radius: 10px;
      z-index: 1000;
    }
    header ul li {
      display: block;
      margin: 5px 0;
    }
    header ul li a {
      display: block;
      font-size: 18px;
      padding: 10px 0;
    }
    h1 {
      font-size: 18px;
      left: 100px;
      top: 25px;
      line-height: normal;
    }
  }
  
  /* === Team Display 主区域样式（左右结构） === */
  .team-display {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 100px 20px;
    /* background-image: url("images/3.png"); */
    background-color: white;
    background-size: contain;
    background-position: center;
    min-height: 100vh;
    gap: 40px;
  }
  
  /* === 筛选栏样式：左侧纵向排列 === */
  .filter-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* 可通过 top/left/margin 控制位置 */
    min-width: 180px;
    margin-left: 25px; 
    margin-right: 80px;
  }
  .filter-controls button {
    margin-bottom: 15px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: black;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .filter-controls button.active {
    background-color: black;
    color: white;
  }
  
  /* === 成员展示区：右侧多列排布 === */
  .team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 60px;
    flex: 1;
  }
  
  /* === 每个成员卡片样式 === */
  .team-member {
    width: 300px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-align: center;
    text-decoration: none;   
  }
  

  .team-member a {
    text-decoration: none;
    color: inherit; /* 避免覆盖文字颜色 */
  }
  
  .team-member:hover {
    transform: scale(1.03);
    
  }
  .team-member img {
    width: 100%;
    height: auto;
    display: block;
    border: 6px solid white; /* ★ 照片内框线 */
    box-sizing: border-box;
  }
  .team-member .info {
    padding: 10px;
    color: black;
  }
  .team-member .info h3 {
    margin: 8px 0 4px;
    font-size: 18px;
  }
  .team-member .info p {
    margin: 0;
    font-size: 14px;
    color: #333;
  }
  
  /* === 响应式：小屏幕筛选栏上移，图片居中 === */
  @media screen and (max-width: 768px) {
    .team-display {
      flex-direction: column;
      align-items: center;
    }
    .filter-controls {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 30px;
    }
    .team-container {
      justify-content: center;
    }
  }
  