/* 成员展示区域 */
.members-section {
  background: #ffffff;
  padding: 60px 0;
  margin: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #4a90e2;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

.members-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}

.members-scroll::-webkit-scrollbar {
  height: 8px;
}

.members-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.members-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.members-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.members-container {
  display: flex;
  gap: 30px;
  padding: 0 40px;
  white-space: nowrap;
}

.member-item {
  flex: 0 0 auto;
  width: 280px;
  position: relative;
  aspect-ratio: 3/4;
  transition: transform 0.3s ease;
}

.member-item:hover {
  transform: translateY(-10px);
}

.member-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.member-item:hover .member-image {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.member-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.member-item:hover img {
  transform: scale(1.05);
}

.member-basic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.member-basic-info p {
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}

.member-name {
  font-size: 1.3rem;
}

.member-number {
  font-size: 1.1rem;
  margin: 4px 0 0;
  opacity: 0.9;
}

.member-nickname {
  font-size: 0.95rem;
  opacity: 0.9;
}

.member-detail {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 35%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 15px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
}

.member-item:hover .member-detail {
  transform: translateY(-100%);
}

.member-detail-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.member-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.member-info-row p {
  margin: 0;
  font-size: 0.8rem;
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 3px;
  color: #666;
  font-weight: 500;
}

.member-quote {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-style: italic;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #888;
  overflow: hidden;
  display: -webkit-box;
  /* -webkit-line-clamp: 2; */
  -webkit-box-orient: vertical;
}

/* 历史页面样式 */
.history-page {
  padding-top: var(--header-height);
}

.history-hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/team-hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #4caf50;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

.story-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
}

.story-image {
  text-align: center;
}

.story-image img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.logo-caption {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin: 0;
}

.timeline-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #4caf50;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  background: #4caf50;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 45%;
  margin: 0 5%;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #4caf50;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* 图片墙 */
.team-gallery {
  position: relative;
}

.gallery-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.gallery-category {
  margin-bottom: 60px;
}

.gallery-category h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 50px; /* 从30px增加到50px */
  text-align: center;
  position: relative;
}

.gallery-category h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #4caf50;
}

#gallery-top,
#gallery-middle,
#gallery-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 40px 30px 40px;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}

.gallery-item:hover .photo-caption {
  background: rgba(255, 255, 255, 0.9);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.section-top h2,
.section-middle h2,
.section-bottom h2 {
  margin-bottom: 20px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  position: relative;
}

.section-top h2::after,
.section-middle h2::after,
.section-bottom h2::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 20px;
  width: 60px;
  height: 3px;
  background: #4a90e2;
  border-radius: 2px;
}
