/* Extracted from page\research\joint-lab.html */
/* Language Switch — 与网站内容区右侧对齐 */
    .page-banner .container {
      position: relative;
    }
    .lang-switch {
      position: absolute;
      top: 20px;
      right: 0;
      z-index: 10;
      display: inline-flex;
      background: rgba(0, 149, 179, 0.2);
      border-radius: 20px;
      padding: 3px;
    }
    .lang-btn {
      padding: 5px 16px;
      border: none;
      border-radius: 18px;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      background: transparent;
      color: rgba(255,255,255,0.7);
    }
    .lang-btn.active {
      background: #fff;
      color: #0095b3;
    }
    .lang-btn:hover:not(.active) { color: #00c4d6; }

    /* Two Column Layout */
    .page-body {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 48px;
      padding: 56px 0;
    }
    @media (max-width: 960px) {
      .page-body { grid-template-columns: 1fr; gap: 32px; }
    }

    /* ====== 优化后的侧边栏导航 ====== */
    .sidebar-nav {
      position: sticky;
      top: 100px;
      align-self: start;
      background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
      border-radius: 16px;
      padding: 8px 0;
      box-shadow: 0 4px 20px rgba(0, 122, 153, 0.08);
      border: 1px solid rgba(0, 149, 179, 0.1);
    }
    .sidebar-nav .nav-title {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: #0095b3;
      padding: 16px 24px 12px;
      border-bottom: 1px solid rgba(0, 149, 179, 0.1);
      margin-bottom: 8px;
    }
    .sidebar-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .sidebar-nav li { margin: 2px 8px; }
    .sidebar-nav a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 0.9rem;
      color: #3a3a5c;
      text-decoration: none;
      transition: all 0.25s ease;
      font-weight: 500;
      position: relative;
    }
    .sidebar-nav a::before {
      content: '';
      width: 4px;
      height: 0;
      background: linear-gradient(180deg, #0095b3, #00c4d6);
      border-radius: 2px;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      transition: height 0.25s ease;
    }
    .sidebar-nav a:hover {
      background: rgba(0, 149, 179, 0.06);
      color: #0095b3;
      padding-left: 20px;
    }
    .sidebar-nav a.active {
      background: linear-gradient(135deg, rgba(0, 149, 179, 0.12), rgba(0, 196, 214, 0.08));
      color: #0095b3;
      font-weight: 700;
    }
    .sidebar-nav a.active::before {
      height: 24px;
    }
    /* Content Sections */
    .content-section { display: none; }
    .content-section.active { display: block; }
    
    .intro-text {
      font-size: 1.05rem;
      line-height: 2;
      color: #3a3a5c;
      margin-bottom: 24px;
    }

    /* Highlight Box */
    .highlight-box {
      background: linear-gradient(135deg, rgba(0, 122, 153, 0.06), rgba(0, 149, 179, 0.08));
      border-left: 4px solid #0095b3;
      border-radius: 0 10px 10px 0;
      padding: 28px 32px;
      margin: 36px 0;
    }
    .highlight-box p {
      font-size: 0.98rem;
      line-height: 1.9;
      color: #3a3a5c;
      margin: 0;
    }

    /* Section Headers */
    .block-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 48px 0 32px;
    }
    .block-header:first-child { margin-top: 0; }
    .block-header h2 {
      font-size: 1.5rem;
      color: #0a2a5e;
      margin: 0;
      white-space: nowrap;
    }
    .block-header::after {
      content: '';
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, rgba(0, 149, 179, 0.3), transparent);
    }

    /* People Grid */
    .people-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .person-card {
      background: #fff;
      border: 1px solid #e8ecf4;
      border-radius: 12px;
      padding: 24px 20px;
      text-align: center;
      transition: all 0.3s ease;
      box-shadow: 0 2px 12px rgba(0, 149, 179, 0.06);
    }
    .person-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0, 149, 179, 0.12);
      border-color: #0095b3;
    }
    .person-avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0095b3, #00c4d6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: #fff;
      font-weight: 700;
      margin: 0 auto 14px;
      overflow: hidden;
    }
    .person-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .person-name {
      font-size: 1rem;
      font-weight: 700;
      color: #0a2a5e;
      margin-bottom: 4px;
    }
    .person-role {
      font-size: 0.78rem;
      color: #0095b3;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .person-affil {
      font-size: 0.75rem;
      color: #6c7a95;
      line-height: 1.5;
      margin-bottom: 8px;
    }
    .person-research {
      font-size: 0.72rem;
      color: #6c7a95;
      line-height: 1.6;
    }

    /* Research Directions */
    .direction-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 24px;
    }
    .direction-card {
      background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
      border: 1px solid #e8ecf4;
      border-radius: 12px;
      padding: 28px 24px;
      text-align: center;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }
    .direction-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0095b3, #00c4d6);
    }
    .direction-card:nth-child(2)::before {
      background: linear-gradient(90deg, #00a8c6, #00c4d6);
    }
    .direction-card:nth-child(3)::before {
      background: linear-gradient(90deg, #007a99, #0095b3);
    }
    .direction-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0, 149, 179, 0.1);
    }
    .direction-card h4 {
      font-size: 1rem;
      color: #0a2a5e;
      margin-bottom: 10px;
      font-weight: 700;
    }
    .direction-card p {
      font-size: 0.82rem;
      color: #6c7a95;
      line-height: 1.6;
      margin: 0;
    }

    /* Research Achievements Tables */
    .table-wrapper {
      overflow-x: auto;
      margin: 24px 0;
      border-radius: 12px;
      border: 1px solid #e8ecf4;
    }
    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }
    .data-table thead {
      background: linear-gradient(135deg, #0a2a5e, #0d3a6e);
      color: #fff;
    }
    .data-table th {
      padding: 14px 16px;
      text-align: left;
      font-weight: 600;
      font-size: 0.82rem;
      white-space: nowrap;
    }
    .data-table td {
      padding: 12px 16px;
      border-bottom: 1px solid #e8ecf4;
      color: #3a3a5c;
      line-height: 1.5;
    }
    .data-table tbody tr:hover {
      background: rgba(0, 149, 179, 0.04);
    }
    .data-table tbody tr:last-child td {
      border-bottom: none;
    }
    .table-caption {
      font-size: 0.92rem;
      font-weight: 700;
      color: #0a2a5e;
      margin: 32px 0 16px;
      padding-bottom: 8px;
      border-bottom: 2px solid #0095b3;
    }

    /* Events List */
    .event-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .event-card {
      background: #fff;
      border: 1px solid #e8ecf4;
      border-radius: 12px;
      padding: 24px;
      display: flex;
      gap: 20px;
      transition: all 0.3s;
    }
    .event-card:hover {
      box-shadow: 0 8px 24px rgba(0, 149, 179, 0.1);
      border-color: #0095b3;
    }
    .event-date {
      min-width: 72px;
      text-align: center;
      padding: 12px;
      background: linear-gradient(135deg, #0095b3, #00c4d6);
      border-radius: 10px;
      color: #fff;
    }
    .event-date .year {
      font-size: 0.72rem;
      opacity: 0.9;
    }
    .event-date .day {
      font-size: 1.4rem;
      font-weight: 700;
      line-height: 1.2;
    }
    .event-date .month {
      font-size: 0.78rem;
      font-weight: 600;
    }
    .event-info { flex: 1; }
    .event-info h4 {
      font-size: 1rem;
      color: #0a2a5e;
      margin: 0 0 8px 0;
    }
    .event-info p {
      font-size: 0.82rem;
      color: #6c7a95;
      margin: 0;
      line-height: 1.6;
    }
    .event-tag {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 0.72rem;
      font-weight: 600;
      margin-top: 8px;
    }
    .event-tag.conference {
      background: rgba(0, 149, 179, 0.1);
      color: #0095b3;
    }
    .event-tag.seminar {
      background: rgba(0, 196, 214, 0.1);
      color: #00a8c6;
    }

    /* Goal List */
    .goal-list {
      list-style: none;
      padding: 0;
      margin: 20px 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .goal-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 14px 18px;
      background: #fff;
      border-radius: 10px;
      border: 1px solid #e8ecf4;
      font-size: 0.88rem;
      color: #3a3a5c;
      transition: all 0.25s;
    }
    .goal-list li:hover {
      border-color: #0095b3;
      box-shadow: 0 4px 12px rgba(0, 149, 179, 0.08);
    }
    .goal-list li::before {
      content: '✓';
      width: 22px;
      height: 22px;
      min-width: 22px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0095b3, #00c4d6);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
    }
    @media (max-width: 640px) {
      .goal-list { grid-template-columns: 1fr; }
    }

    /* Codex desktop refinement */
    @media (min-width: 901px) {
      .page-banner--jointlab {
        min-height: 410px;
        padding: 96px 0 86px;
      }
      .page-banner--jointlab h1 {
        font-size: clamp(3.15rem, 5.2vw, 4.75rem);
        line-height: 1.04;
        letter-spacing: 0;
      }
      .page-banner--jointlab .banner-subtitle {
        max-width: 860px;
        font-size: 1.16rem;
        line-height: 1.84;
      }
      .page-body {
        grid-template-columns: 310px 1fr;
        gap: 64px;
        padding: 94px 0 112px;
      }
      .sidebar-nav {
        top: 122px;
        border-radius: 8px;
        padding: 18px;
      }
      .sidebar-nav a {
        min-height: 54px;
        padding: 15px 18px;
        border-radius: 8px;
        font-size: 1rem;
      }
      .content-block {
        margin-bottom: 78px;
      }
      .block-header {
        margin-bottom: 34px;
      }
      .block-header h2 {
        font-size: 2.42rem;
        line-height: 1.16;
      }
      .intro-text,
      .content-block p {
        font-size: 1.08rem;
        line-height: 1.88;
      }
      .highlight-box {
        padding: 44px 46px;
        border-radius: 8px;
      }
      .direction-cards,
      .people-grid {
        gap: 26px;
      }
      .direction-card {
        min-height: 260px;
        padding: 34px 30px;
        border-radius: 8px;
      }
      .direction-card h3 {
        font-size: 1.28rem;
      }
      .direction-card p {
        font-size: 0.98rem;
        line-height: 1.76;
      }
      .people-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      .person-card {
        min-height: 270px;
        padding: 28px 22px;
        border-radius: 8px;
      }
      .person-avatar {
        width: 118px;
        height: 132px;
        border-radius: 8px;
        object-fit: cover;
        margin: 0 auto 18px;
      }
      .person-name {
        font-size: 1.08rem;
        line-height: 1.35;
      }
      .person-role {
        font-size: 0.92rem;
        line-height: 1.45;
      }
      .person-affiliation {
        font-size: 0.88rem;
        line-height: 1.5;
      }
      .event-card {
        min-height: 150px;
        padding: 26px 28px;
        border-radius: 8px;
      }
      .event-title {
        font-size: 1.15rem;
        line-height: 1.42;
      }
      .event-desc {
        font-size: 0.98rem;
        line-height: 1.72;
      }
      .goal-list {
        gap: 18px;
      }
      .goal-list li {
        min-height: 72px;
        padding: 20px 24px;
        border-radius: 8px;
        font-size: 1rem;
        line-height: 1.62;
      }
    }

    @media (max-width: 1024px) {
      .people-grid { grid-template-columns: repeat(2, 1fr); }
      .direction-cards { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .people-grid { grid-template-columns: 1fr; }
      .direction-cards { grid-template-columns: 1fr; }
      .page-header::after { font-size: 5rem; }
      .event-card { flex-direction: column; }
    }

/* Mobile containment fixes from screenshot audit */
@media (max-width: 960px) {
  .page-banner--jointlab .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch {
    position: static;
    align-self: flex-end;
    margin-bottom: 18px;
  }

  .page-body.container {
    width: 100%;
    max-width: 100%;
    padding: 34px 16px 58px;
    overflow: hidden;
  }

  .main-content,
  .content-section,
  .content-section > [data-lang] {
    width: 100%;
    min-width: 0;
  }

  .intro-text,
  .highlight-box p,
  .direction-card p,
  .goal-list li,
  .event-info p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .block-header {
    align-items: flex-start;
    margin: 34px 0 22px;
  }

  .block-header h2 {
    white-space: normal;
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.2;
  }

  .highlight-box {
    padding: 22px 20px;
    margin: 26px 0;
  }

  .direction-card,
  .person-card,
  .event-card {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .lang-switch {
    align-self: flex-start;
  }

  .page-banner--jointlab h1 {
    max-width: 100%;
  }
}

/* Unified V5 mobile side navigation */
@media (max-width: 960px) {
  .sidebar-nav {
    position: static;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .sidebar-nav .nav-title,
  .sidebar-nav a::before {
    display: none;
  }

  .sidebar-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    overflow: visible;
    padding: 0;
  }

  .sidebar-nav li {
    min-width: 0;
    margin: 0;
  }

  .sidebar-nav a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--rcm-line);
    border-radius: 8px;
    background: #fff;
    color: #24324a;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sidebar-nav a:hover {
    border-color: rgba(0, 149, 179, 0.42);
    background: rgba(0, 149, 179, 0.06);
  }

  .sidebar-nav a.active {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
  }
}

@media (max-width: 560px) {
  .sidebar-nav ul {
    grid-template-columns: minmax(0, 1fr);
  }
}