@keyframes stepPlay {
  from {
    background-position: 0 0;
  }

  to {
    /* background-position: 0 -91224px; */
    /* background-position: 0 -456.12rem; */
    background-position: 0 -912.24rem;
  }
}

@-webkit-keyframes rotate {
  0% {
    -webkit-transform: rotate(360deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
  }
}

@keyframes rotate {
  0% {
    -webkit-transform: rotate(360deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
  }
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  border: none;
  outline: none;
  display: block;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  outline: none;
}

ol,
ul {
  list-style: none;
}

input,
button {
  font-family: inherit;
}

button {
  color: inherit;
  font: inherit;
  margin: 0;
  border: none;
  text-transform: none;
  -webkit-appearance: button;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: url(../images/bg.jpg) no-repeat center top;
  background-size: cover;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  cursor: default;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: auto !important;
  /* background-color: black; */
  font-family: "Microsoft Yahei", "Helvetica Neue", "Luxi Sans", "DejaVu Sans",
    Arial, "Hiragino Sans GB", STHeiti, PingFangSC-Regular, sans-serif;
}

.loader {
  position: absolute;
  z-index: 200;
  overflow: hidden;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  color: white;
  background-color: #333333;
}

.loader-graph,
.loader-progress {
  overflow: hidden;
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 64px;
  height: 64px;
  margin: -16px 0 0 -32px;
}

.loader-graph {
  color: transparent;
  text-align: center;
  border-top: 5px solid rgba(255, 255, 255, 0.2);
  border-right: 5px solid rgba(255, 255, 255, 0.2);
  border-bottom: 5px solid rgba(255, 255, 255, 0.2);
  border-left: 5px solid #ffffff;
  border-radius: 32px;
  -webkit-animation: rotate 0.72s linear infinite;
  animation: rotate 0.72s linear infinite;
}

.loader-text {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 24px;
  font-size: 16px;
  top: 50%;
  text-align: center;
  margin-top: 1em;
}

.loader-progress {
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
  line-height: 24px;
}

.music {
  position: absolute;
  z-index: 150;
  width: 40px;
  height: 40px;
  right: 5px;
  top: 5px;
}

.music:after {
  content: "\20";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -14px 0 0 -14px;
  width: 28px;
  height: 28px;
  background-size: 28px;
  background-position: 0 -28px;
  background-image: url(../images/music.png);
}

.music.playing:after {
  background-position: 0 0;
}

.page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: url(../images/bg2.jpg) no-repeat center top;
  background-size: 100% auto;
}
.p1 {
  background: url(../images/p1_bg.jpg) no-repeat center top;
  background-size: 100% auto;
}
.p2 {
  background: url(../images/p2_bg.jpg) no-repeat center top;
  background-size: 100% auto;
}
.p11 {
  background: url(../images/p11_bg.jpg) no-repeat center top;
  background-size: 100% auto;
}
.p12 {
  background: url(../images/p1_bg.jpg) no-repeat center top;
  background-size: 100% auto;
}
.page .content {
  width: 100%;
  height: 100%;
  padding-top: 0.5rem;
  display: none;
}
.p11 .content,
.p12 .content,
.p1 .content,
.p2 .content {
  padding-top: 0;
}
.page .content .p1_t1 {
  margin-top: 2.2rem;
  position: relative;
}
.page .content .p1_t2 {
  margin-top: 4.5rem;
  position: relative;
}
.page .content .p11_t1 {
  margin-top: 0.8rem;
}
.page .content .p12_t1 {
  margin-top: 2.2rem;
}
.page .content .p12_t2 {
  margin-top: 4.5rem;
}
.page.p1::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: sweep 6s infinite;
  pointer-events: none;
  z-index: 1;
}

.right-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
}
.right-menu .right-menu-box {
  width: 0.5rem;
  padding: 0.4rem 0;
  background-color: rgba(218, 232, 250, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition: width 0.3s ease-in-out, height 0.3s ease-in-out,
    border-radius 0.3s ease-out, background-color 0.3s linear;
  border-top-left-radius: 0.1rem;
  border-bottom-left-radius: 0.1rem;
}
.right-menu .right-menu-box.open {
  width: 1.4rem;
  height: 100%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.right-menu .right-menu-box .menu-item {
  width: 100%;
  height: 0.54rem;
  font-size: 0.25rem;
  text-align: center;
  color: #cad2e1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.right-menu .right-menu-box .menu-item::before {
  content: "";
  display: block;
  width: 0.24rem;
  height: 0.24rem;
  background-color: rgba(205, 212, 242, 0.7);
  border-radius: 50%;
  border: 0.05rem solid #ffffff;
}
.right-menu .right-menu-box .menu-item.active {
  /* background-color: #d4e2f6; */
  background-color: rgba(89, 144, 220, 0.2);
}
.right-menu .right-menu-box .menu-item.active::before {
  content: "";
  display: block;
  width: 0.36rem;
  height: 0.36rem;
  background: url(../images/icon.png) no-repeat center center;
  background-size: 0.36rem auto;
}

.right-menu .right-menu-box .nav-item-child-menu {
  width: 0.1rem;
  height: 0.1rem;
  border-radius: 50%;
  background-color: #ffffff;
  display: none;
}
.right-menu .right-menu-box.open .nav-item-child-menu {
  display: block;
}

.right-menu .right-menu-box.open .menu-item {
  background-color: #ffffff;
}
.right-menu .right-menu-box.open .menu-item.active {
  background-color: #5990dc;
  color: #ffffff;
}
.right-menu .right-menu-box.open .menu-item::before {
  width: 100%;
  background: none;
  width: 0;
  height: 0;
  position: absolute;
  border: none;
  border-radius: 0;
}

.right-menu .right-menu-box.open .menu-item::after {
  width: 100%;
  background: none;
}
.right-menu .right-menu-box.open .menu-item.m1::after {
  content: "首 页";
}
.right-menu .right-menu-box.open .menu-item.m2::after {
  content: "主论坛";
}
.right-menu .right-menu-box.open .menu-item.m3::after {
  content: "分论坛";
}
.right-menu .right-menu-box.open .menu-item.m4::after {
  content: "论坛介绍";
}
.right-menu .right-menu-box.open .menu-item.active::before {
  content: "";
  display: block;
  width: 0.36rem;
  height: 0.36rem;
  background: url(../images/icon.png) no-repeat center center;
  background-size: 0.36rem auto;
  left: -0.18rem;
}
.flowing-box {
  position: absolute;
  width: 5.78rem;
  top: 1.25rem;
  left: 0.85rem;
  height: 0.5rem;
  transform: skewX(-20deg);
}

.border-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.border-effect span {
  position: absolute;
  display: block;
}

.border-effect span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  animation: animate1 2s linear infinite;
  animation-delay: 0s;
}

@keyframes animate1 {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.border-effect span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  animation: animate2 2s linear infinite;
  animation-delay: 0.5s;
}

@keyframes animate2 {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

.border-effect span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  animation: animate3 2s linear infinite;
  animation-delay: 1s;
}

@keyframes animate3 {
  0% {
    right: -100%;
  }
  100% {
    right: 100%;
  }
}

.border-effect span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  animation: animate4 2s linear infinite;
  animation-delay: 1.5s;
}

@keyframes animate4 {
  0% {
    bottom: -100%;
  }
  100% {
    bottom: 100%;
  }
}

.border-effect span {
  box-shadow: 0 0 5px rgba(250, 232, 158, 1);
}

.border-effect span:nth-child(1) {
  background: linear-gradient(90deg, transparent, rgba(250, 232, 158, 1));
}

.border-effect span:nth-child(2) {
  background: linear-gradient(180deg, transparent, rgba(250, 232, 158, 1));
}

.border-effect span:nth-child(3) {
  background: linear-gradient(270deg, transparent, rgba(250, 232, 158, 1));
}

.border-effect span:nth-child(4) {
  background: linear-gradient(360deg, transparent, rgba(250, 232, 158, 1));
}

#light-effect {
  stroke-dasharray: 50 1000;
  stroke-dashoffset: 1050;
  animation: move-light 4s linear infinite;
}

@keyframes move-light {
  to {
    stroke-dashoffset: 0;
  }
}

.golden-text {
  position: relative;
  width: 100%;
  height: 1.15rem;
  text-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.5); /* Adding shadow for depth */
}

/* 原始PNG图层 - 保持原色 */
.golden-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/p1_t1.png");
  background-size: 100% 100%;
  z-index: 2;
}

/* 高对比度光效图层 */
.golden-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 10%,
    rgba(255, 230, 180, 0.3) 25%,
    rgba(255, 240, 200, 0.9) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 240, 200, 0.9) 60%,
    rgba(255, 230, 180, 0.3) 75%,
    transparent 90%
  );
  background-size: 200% 200%;
  mask-image: url("../images/p1_t1.png");
  -webkit-mask-image: url("../images/p1_t1.png");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mix-blend-mode: hard-light;
  animation: shimmer 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; /* Modified easing */
  z-index: 1;
  opacity: 0.85;
}

@keyframes shimmer {
  0% {
    background-position: 200% 100%;
  }
  100% {
    background-position: -200% -100%;
  }
}

.shimmer-box {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer2 3s infinite;
}

@keyframes shimmer2 {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
