/* 公主连结页面根容器，保持全屏展示不出现滚动条 */
html,
.taro-pcr-page {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.taro-pcr-page * {
  box-sizing: border-box;
}

a {
  cursor: pointer;
  text-decoration: none;
}

a:visited {
  color: #000000;
}

/* 左上角社区名称的渐变文字动画 */
@-webkit-keyframes text-wave-animation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.taro-pcr-left-nav-community {
  display: flex;
  align-items: center;
  position: absolute;
  gap: 10px;
  width: 255px;
  height: 75px;
  user-select: none;
  backdrop-filter: blur(0px);
  z-index: 2023;
}

.taro-pcr-left-nav-community .ta-town-logoAnimation {
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  margin-left: 6px;
  background: transparent;
  z-index: -1;
}

.taro-pcr-left-nav-community img {
  width: 44px;
  height: 44px;
  margin-left: 22px;
}

.taro-pcr-left-nav-community p {
  font-size: 34px;
  font-weight: 800;
  font-family: fangsong, serif;
  background-image: -webkit-linear-gradient(left, #f4c692, #91440c 25%, #f4c692 50%, #91440c 75%, #f4c692);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-background-size: 200% 100%;
  -webkit-animation: text-wave-animation 2s infinite linear;
}

/* 右上角角色名边框，替代原 Less mixin 生成的四角装饰 */
.taro-pcr-right-block {
  position: absolute;
  top: 30px;
  right: 30px;
  user-select: none;
  backdrop-filter: blur(5px);
}

.taro-pcr-right-block p {
  color: #ffffff;
  font-size: 36px;
  padding: 20px;
}

.taro-pcr-right-block .title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 0;
  left: 0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}

.taro-pcr-right-block .title::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 0;
  right: 0;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.taro-pcr-right-block .shadow-title {
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
}

.taro-pcr-right-block .shadow-title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 0;
  bottom: 0;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.taro-pcr-right-block .shadow-title::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: 0;
  bottom: 0;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.taro-pcr-bg {
  pointer-events: none;
}

.taro-pcr-bg video,
.taro-pcr-bg img {
  display: none;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
}

.taro-pcr-logo {
  position: absolute;
  right: 20px;
  bottom: 20px;
  user-select: none;
  z-index: 2023;
}

.taro-pcr-footer {
  position: absolute;
  left: 10px;
  bottom: 10px;
  opacity: 0.5;
  user-select: none;
  font-size: 12px;
  color: #aab8c2;
  mix-blend-mode: difference;
}

.taro-pcr-footer p a {
  color: #aab8c2;
  mix-blend-mode: difference;
}

.taro-pcr-spine-doll {
  position: absolute;
  top: 75px;
  right: 0;
  z-index: 99;
}

/* 小屏幕提示弹窗 */
.taro-pcr-screen-alert {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 200px;
  min-height: 50px;
  padding: 20px;
  z-index: 2023;
  user-select: none;
  border-radius: 15px;
  backdrop-filter: blur(50px);
}

.taro-pcr-screen-alert h2,
.taro-pcr-screen-alert p,
.taro-pcr-screen-alert .row-button a {
  opacity: 0.8;
}

.taro-pcr-screen-alert h2 {
  text-align: center;
  margin-bottom: 15px;
}

.taro-pcr-screen-alert .row-button {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
}

.taro-pcr-screen-alert .row-button a:hover {
  opacity: 1;
}

/* 点赞心形动画，背景图依赖静态资源 heartAnim.png */
.taro-pcr-heart-row {
  position: absolute;
  left: -7px;
  bottom: 35px;
  display: flex;
  align-items: center;
  mix-blend-mode: difference;
  opacity: 0.7;
  cursor: pointer;
}

.taro-pcr-heart-row .heart {
  background: url("/static/images/heartAnim.png") left / 2900% no-repeat;
  height: 50px;
  width: 50px;
}

.taro-pcr-heart-row span {
  margin-left: -13px;
  color: #aab8c2;
  font-family: fantasy;
  font-size: 18px;
  transition: all 0.5s ease;
}

@keyframes heartBlast {
  0% {
    background-position: left;
  }

  100% {
    background-position: right;
  }
}

.taro-pcr-heart-row .heartAnimation {
  display: inline-block;
  animation: heartBlast 0.8s steps(28) 1;
  background-position: right;
}

@media screen and (max-width: 1023px) {
  .taro-pcr-screen-alert {
    min-width: calc(100% - 20px);
    background-color: rgba(255, 255, 255, 0.8);
  }

  .taro-pcr-screen-alert .row-button a:link,
  .taro-pcr-screen-alert .row-button a:visited {
    color: #000;
  }

  .taro-pcr-logo {
    width: 125px;
    height: 35px;
    right: 10px;
    bottom: 10px;
  }

  .taro-pcr-heart-row span {
    font-family: normal;
  }

  .taro-pcr-right-block {
    top: 20px;
    right: 15px;
  }

  .taro-pcr-right-block p {
    font-size: 12px;
    padding: 10px;
  }

  .taro-pcr-right-block .title::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
  }

  .taro-pcr-right-block .title::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-top: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
  }

  .taro-pcr-right-block .shadow-title::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
  }

  .taro-pcr-right-block .shadow-title::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
  }
}
