/* ===== 全屏成员展示基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.member-showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* 动态背景层 */
#memberBackgrounds {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.member-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.member-background.active {
  opacity: 1;
}

/* 遮罩层 */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

/* 成员信息容器 */
#memberShowcase #memberInfos {
  position: absolute;
  top: 35%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 800px;
  padding: 2rem;
  z-index: 3;
}

/* 成员信息面板 */
#memberShowcase .member-info {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  position: relative;
}

#memberShowcase .member-info.active {
  opacity: 1;
  transform: translateY(0);
}

/* 名字样式 - 匹配角色名称 */
#memberShowcase .member-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 4.5px #000, 0 0 10px #000, 0 0 15px #000;
  text-align: left;
}

/* 头衔样式 - 匹配角色头衔 */
#memberShowcase .member-title {
  font-size: clamp(1.2rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  color: #ffcc00;
  font-family: "SimSun", "STSong", "Noto Serif SC", serif;
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  text-align: left;
}

/* 标签容器 */
#memberShowcase .member-tags {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* 标签样式 - 与角色标签统一 */
#memberShowcase .tag {
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  font-size: 1.1rem;
  font-family: 'Orbitron', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 114, 255, 0.25);
  transition: background 0.3s;
}

#memberShowcase .tag:hover {
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

/* 介绍文字 - 匹配角色描述 */
#memberShowcase .member-description {
  font-size: clamp(1rem, 2vw, 1.8rem);
  line-height: 1.6;
  max-width: 70%;
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  font-family: "Ma Shan Zheng", cursive;
  text-align: left;
}

/* 照片切换器 */
.member-photo-switcher {
  position: absolute;
  bottom: 15%;
  right: 10%;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.photo-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.photo-thumbnail.active {
  border-color: #ffcc00;
  opacity: 1;
  transform: scale(1.1);
}

.photo-thumbnail:hover {
  opacity: 1;
}

/* 导航按钮 */
.navigation {
  position: absolute;
  bottom: 5%;
  right: 10%;
  display: flex;
  gap: 15px;
  z-index: 3;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* 指示器 */
.member-indicators {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ffcc00;
  transform: scale(1.2);
}

/* 音乐播放器层级保证 */
#music-box {
  z-index: 9999;
}

/* 响应式调整 - 平板设备 */
@media (max-width: 768px) {
  #memberShowcase #memberInfos {
    top: auto;
    bottom: 15%;
    left: 5% !important;
    right: 5% !important;
    transform: none;
    max-width: 90%;
    padding: 0 15px;
  }

  #memberShowcase .member-name {
    font-size: 3.5rem;
  }

  #memberShowcase .member-title {
    font-size: 1.8rem;
  }

  #memberShowcase .member-description {
    font-size: 1.4rem;
    max-width: 100%;
  }

  .member-photo-switcher {
    right: 5%;
    bottom: 12%;
  }

  .photo-thumbnail {
    width: 50px;
    height: 50px;
  }

  .navigation {
    right: 5%;
  }
}

/* 响应式调整 - 移动设备 */
@media (max-width: 480px) {
  #memberShowcase #memberInfos {
    bottom: 20% !important;
    left: 5% !important;
    right: 5% !important;
  }

  #memberShowcase .member-name {
    font-size: 2.8rem;
  }

  #memberShowcase .member-title {
    font-size: 1.5rem;
  }

  #memberShowcase .member-description {
    font-size: 1.2rem;
  }

  .member-photo-switcher {
    bottom: 10%;
    gap: 8px;
  }

  .photo-thumbnail {
    width: 45px;
    height: 45px;
  }

  .navigation {
    bottom: 3%;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  /* 移动端标签样式 */
  .member-tags {
    margin: 0.6rem 0;
    gap: 0.4rem;
  }

  .tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
  }
}