/* Banner 组件样式 */

.banner {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: 1;
}

.banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}

.banner__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

/* Banner Layout */
.banner-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
  padding: 60px 0;
  transition: all 0.3s ease;
}

.avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.avatar-area {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border-light);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.avatar-frame {
  position: absolute;
  top: -56px;
  left: -56px;
  width: calc(100% + 112px);
  height: calc(100% + 112px);
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 15px var(--shadow-dark));
  transition: transform 0.4s ease;
}

/* 悬浮效果 */
.avatar-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--color-transparent);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.avatar-area:hover::before {
  /* 更精致、更克制的光晕：
     极大缩小了向外扩张的范围（spread 从 10px 降到 4-6px），让光晕更贴合边缘，不再显得臃肿。 */
  transform: scale(1.05);
  box-shadow:
    0 0 6px 4px var(--glow-inner),
    0 0 10px 6px var(--glow-mid),
    0 0 12px 7px var(--glow-outer);
}

.avatar-area:hover .avatar-img {
  transform: scale(1.05);
}

.avatar-area:hover .avatar-frame {
  transform: scale(1.02);
}

/* 头像遮罩动画信息 */
.avatar-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-mask);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow: hidden;
}

.avatar-area:hover .avatar-mask {
  opacity: 1;
  visibility: visible;
}

.anim-item {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-area:hover .anim-item {
  transform: translateY(0);
  opacity: 1;
}

.avatar-mask__top {
  transition-delay: 0.1s;
}
.avatar-mask__middle {
  transition-delay: 0.15s;
  margin: 4px 0;
}
.avatar-mask__bottom {
  transition-delay: 0.2s;
}

.gender-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 2px;
}
.gender-icon.male {
  background: var(--color-male);
}
.gender-icon.female {
  background: var(--color-female);
}

.status-text,
.location-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-white);
}
.status-text.online svg {
  color: var(--color-status-online);
}
.status-text.away svg {
  color: var(--color-status-away);
}
.status-text.offline svg {
  color: var(--color-status-offline);
}

.divider {
  width: 24px;
  height: 1px;
  background: var(--divider-bg);
  margin: 4px auto;
}

.avatar-name {
  font-family:
    "NavFont", "STXingkai", "Xingkai SC", "华文行楷", "Zhi Mang Xing", cursive;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-white);
  text-shadow: 0 2px 4px var(--text-shadow-dark);
  /* 替换为亮色毛玻璃效果 */
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px var(--shadow-light);
  padding: 8px 30px;
  border-radius: 30px;
  min-width: 180px;
  width: max-content;
  text-align: center;
}

/* Center Area */
.center-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.distance-bubble {
  position: absolute;
  top: -90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 8px 24px 8px 8px;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-medium);
  min-width: 180px;
  width: max-content;
}

.distance-bubble:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.distance-icon {
  background: var(--glass-bg-dim);
  width: 36px;
  height: 36px;
  border-radius: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.distance-icon svg {
  width: 24px;
  height: 24px;
}

.distance-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-shadow: 0 1px 3px var(--text-shadow-light);
}

.distance-text .sm {
  font-size: 14px;
  opacity: 0.95;
}

.distance-text .val {
  font-size: 20px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.heart-icon img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 20px var(--heart-shadow));
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 12vh;
  min-height: 100px;
  max-height: 150px;
  pointer-events: none;
  z-index: 2;
}

.parallax use {
  animation: wave 25s linear infinite;
  will-change: transform;
}

.parallax use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: var(--wave-layer1);
}

.parallax use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: var(--wave-layer2);
}

.parallax use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: var(--wave-layer3);
}

.parallax use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: var(--wave-layer4);
}

.parallax use:nth-child(5) {
  animation-delay: -6s;
  animation-duration: 25s;
  fill: var(--color-white);
}

@keyframes wave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }

  .banner-layout {
    padding: 20px 0;
    gap: 30px;
  }

  .avatar-area {
    width: 70px;
    height: 70px;
  }

  .avatar-frame {
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
  }

  .avatar-name {
    font-size: 14px;
    padding: 2px 10px;
  }

  .heart-icon img {
    width: 45px;
    height: 45px;
  }

  .distance-bubble {
    padding: 3px 8px 3px 3px;
    border-radius: 6px;
  }

  .distance-icon {
    width: 20px;
    height: 20px;
  }

  .distance-icon svg {
    width: 10px;
    height: 10px;
  }

  .distance-text .val {
    font-size: 13px;
  }

  .distance-text .sm {
    font-size: 10px;
  }

  .avatar-mask {
    background: var(--bg-mask-mobile);
  }

  .gender-icon {
    width: 18px;
    height: 18px;
  }

  .gender-icon svg {
    width: 12px;
    height: 12px;
  }

  .status-text,
  .location-text {
    font-size: 8px;
  }

  .status-text svg,
  .location-text svg {
    width: 10px;
    height: 10px;
  }
}
