.team-section {
    padding: 40px 0;
  }
  
  .team-category {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  
  /* 單人置中排版（只用於計畫主持人 / 共同主持人） */
  .single-layout .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  
  /* 手機 RWD */
  @media (max-width: 992px) {
    .team-grid {
      grid-template-columns: repeat(2, 1fr); /* 中尺寸改兩欄 */
    }
  }
  
  @media (max-width: 576px) {
    .team-grid {
      grid-template-columns: 1fr; /* 手機改單欄 */
    }
  }
  
  /* 若為「單一人」類型就使用 flex 置中 */
    .single-layout .team-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 三欄可自適應 */
        gap: 20px; /* 間距緊湊 */
        justify-content: center;
        padding: 0 16px;
        max-width: 1100px;
        margin: 0 auto;
      }
      
      .team-card {
        width: 100%;
        max-width: 300px; /* 每張卡片最大寬度 */
        text-align: center;
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        background: #fffaf0;
      }
      
  
  /* 圖片 */
  .image-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-bottom: none;
  }
  
  /* 姓名區塊（固定在最下層） */
  .name-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    background: #a8a7a7;
    color: #fff;
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  
  .ch-name {
    font-weight: bold;
    font-size: 16px;
  }
  
  .en-name {
    font-size: 13px;
    color: #eee;
    margin-top: 3px;
  }
  
  /* 浮出資訊 */
  .team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fffaf0;
    transform: translateY(100%);
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    text-align: left;
    transition: transform 0.4s ease-in-out;
    z-index: 2;
    box-sizing: border-box;
    /* ★ 新增以下內容 ★ */
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center;     /* 垂直置中 */
  }
  .team-overlay-content {
    width: 100%;
    max-width: 240px;
  }
  
  
  /* 滑過浮出資訊，並遮住 name-box */
  .team-card:hover .team-overlay {
    transform: translateY(0);
  }
  .team-card:hover .name-box {
    opacity: 0;
  }
  
  /* overlay 裡面 icon + 標題格式 */
  .team-overlay p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
  }
  
  .team-overlay p span {
    font-weight: normal;
  }
  
  .team-overlay ul {
    padding-left: 0;
    list-style: none;
    margin-top: 10px;
  }
  
  .team-overlay ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-weight: normal;
    line-height: 1.4;
    text-align: left;
  }
  
  .team-overlay ul li::before {
    content: '\f111';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 6px;
    color: #555;
  }
  .department-list {
    padding-left: 1.5em;  /* 整體內縮 */
    list-style: none;
    margin: 10px 0;
  }
  .department-list li ,
  .department-list p {
    text-indent: 2em;  /* 開頭空兩格 */
    margin-bottom: 6px;
    text-align: left;
  }
  
  /* RWD：平板 */
  @media (max-width: 992px) {
    .team-card {
      width: 260px;
    }
  
    .image-box img {
      height: 360px;
    }
  }
  
  /* RWD：手機 */
  @media (max-width: 576px) {
    .team-card {
      width: 90%;
    }
  
    .image-box img {
      height: 320px;
    }
  
    .team-overlay {
      font-size: 14px;
      padding: 20px 15px 60px;
    }
  
    .ch-name {
      font-size: 15px;
    }
  
    .en-name {
      font-size: 12px;
    }
  }
  