body {
  margin: 0;
  padding: 0 0 48px 0;
  background: #f6f6f6;
  color: #222;
  font-family: 'Montserrat', sans-serif;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  z-index: 100;
  padding: 0 2rem;
  box-sizing: border-box;
  border-bottom: 1.5px solid #f0f0f0;
}
.portfolio-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-right: auto;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.portfolio-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-left: 0.15em;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
}
.navbar {
  margin-left: auto;
  display: flex;
  gap: 2.2rem;
}
.navbar a {
  color: #444;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.navbar a.active,
.navbar a:hover {
  color: #1565c0;
  background: rgba(0, 0, 0, 0.04);
}
.team-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 120px;
  margin-bottom: 32px;
  color: #333;
  letter-spacing: 0.01em;
}
.team-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: nowrap;
  max-width: none;
  margin: 0 auto 40px auto;
  padding: 0 1.5rem;
  min-height: 500px;
}
.team-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(80, 120, 180, 0.08);
  border: 2px solid #e0e0e0;
  width: 290px;
  min-width: 220px;
  max-width: 320px;
  padding: 2.2rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.13);
  border: 2px solid #1565c0;
  transform: translateY(-6px) scale(1.03);
}
.team-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 12px rgba(80, 120, 180, 0.13);
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
  letter-spacing: 0.01em;
}
.team-id {
  font-size: 1.08rem;
  color: #666;
  margin-bottom: 0.2em;
}
.team-role {
  font-size: 1.08rem;
  color: #1565c0;
  margin-bottom: 1.1em;
  font-weight: 500;
}
.team-socials {
  display: flex;
  gap: 18px;
  margin-bottom: 1.1em;
}
.team-socials img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6f6f6;
  box-shadow: 0 1px 6px rgba(80, 120, 180, 0.06);
  transition: transform 0.18s;
  cursor: pointer;
}
.team-socials img:hover {
  transform: scale(1.13);
  background: #e6f0ff;
}
.team-toggle {
  background: #1565c0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 1.02rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  margin-bottom: 0.7em;
  transition: background 0.18s;
}
.team-toggle:hover {
  background: #0d47a1;
}
.team-detail {
  display: none;
  background: #fafdff;
  border-radius: 10px;
  padding: 1em 1em 1em 1em;
  font-size: 1.01rem;
  color: #333;
  margin-top: 0.2em;
  width: 100%;
  text-align: left;
  box-shadow: 0 1px 6px rgba(80, 120, 180, 0.06);
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-sizing: border-box;
  padding-left: 2rem;
}
.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.footer-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-left: 0.15em;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
}
.scroll-top-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.scroll-top-btn img {
  width: 32px;
  height: 32px;
  display: block;
  margin: auto;
  pointer-events: none;
}
.scroll-top-btn:hover {
  background: #e6f0ff;
  box-shadow: 0 6px 24px rgba(0, 123, 255, 0.18);
}
main {
  margin-top: 110px;
}
@media (max-width: 1100px) {
  .team-grid {
    gap: 1.2rem;
    max-width: 98vw;
    padding: 0.5rem;
  }
  .team-card {
    width: 98vw;
    max-width: 350px;
    min-width: 160px;
    padding: 1.2rem 0.7rem 0.7rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .header {
    height: 48px;
    padding: 0 0.4rem;
  }
  .portfolio-title {
    font-size: 0.9rem;
    margin-right: auto;
  }
  .navbar {
    gap: 0.5rem;
  }
  .navbar a {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
  }
  .team-title {
    font-size: 1.2rem;
    margin-top: 60px;
    margin-bottom: 18px;
  }
  .team-grid {
    gap: 0.5rem;
    padding: 0.2rem;
  }
  .team-card {
    width: 98vw;
    max-width: 98vw;
    min-width: 120px;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 10px;
  }
  .team-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }
  .team-name {
    font-size: 1rem;
  }
  .team-id,
  .team-role {
    font-size: 0.85rem;
  }
  .team-socials img {
    width: 18px;
    height: 18px;
  }
  .team-toggle {
    font-size: 0.85rem;
    padding: 0.3em 0.7em;
    border-radius: 5px;
  }
  .team-detail {
    font-size: 0.85rem;
    border-radius: 5px;
    padding: 0.5em 0.5em 0.5em 0.5em;
  }
  .footer-bar {
    height: 38px;
    padding-left: 0.5rem;
  }
  .footer-title {
    font-size: 1rem;
  }
  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
  .scroll-top-btn img {
    width: 20px;
    height: 20px;
  }
}
