/* defaults */
/* =============================================== */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html {
  font-size: 62.5%;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif;
  min-height: 100vh;
  background: linear-gradient(45deg, #5faaff, #7666bd, #86a8e7, #0b75df);
}
a,
a:link {
  font-family: inherit;
  text-decoration: none;
}
/* modal */
/* =============================================== */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 40%, .6);
}
/* using :target */
.modal-container:target {
  display: flex;
}
.modal {
  width: 60rem;
  padding: 4rem 2rem;
  border-radius: .8rem;
  color: var(--light);
  background: var(--background);
  box-shadow: .4rem .4rem 2.4rem .2rem hsla(236, 50%, 50%, 0.3);
  position: relative;
  overflow: hidden;
}
.modal__details {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, .4);
}
.modal__title {
  font-size: 2.2rem;
}
.modal__description {
  margin-top: 2rem;
  font-size: 1.6rem;
  font-style: italic;
}
.modal__text {
  padding: 0 4rem;
  margin-bottom: 4rem;
  font-size: 1.6rem;
  line-height: 2;
}
.modal__text::before {
  content: '';
  position: absolute;
  top: 0%;
  left: 100%;
  transform: translate(-50%, -50%);
  width: 18rem;
  height: 18rem;
  border: 1px solid hsla(0, 0%, 100%, .2);
  border-radius: 100rem;
  pointer-events: none;
}
.modal__btn {
  padding: 1rem 1.6rem;
  border: 1px solid hsla(0, 0%, 100%, .4);
  border-radius: 100rem;
  color: inherit;
  background: transparent;
  font-size: 1.4rem;
  font-family: inherit;
  letter-spacing: .2rem;
  transition: .2s;
  cursor: pointer;
  margin-top: 10px;
}
.modal__btn:hover,
.modal__btn:focus {
  border-color: hsla(0, 0%, 100%, .6);
  transform: translateY(-.2rem);
}
.modal form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
/* footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
.footer form {
  display: flex;
  justify-content: center;
  width: 100%;
}
.footer form div {
  width: 80%;
}
/* top-container */
.top-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.top-container > * {
    display: inline-block;
    margin-right: 10px;
}
/* links */
/* =============================================== */
.link-1 {
  font-size: 1vw;
  text-align: center;
  color: black;
  font-weight: bold;
  border-radius: 100rem;
  user-select: none;
  transition: .2s;
}
.link-1:hover,
.link-1:focus {
  transform: translateY(-.2rem);
}
.link-2 {
  width: 4rem;
  height: 4rem;
  border: 1px solid hsla(0, 0%, 100%, .4);
  border-radius: 100rem;
  color: inherit;
  font-size: 2.2rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .2s;
}
.link-2::before {
  content: '×';
  transform: translateY(-.1rem);
}
.link-2:hover,
.link-2:focus {
  border-color: hsla(0, 0%, 100%, .6);
  transform: translateY(-.2rem);
}
/* Second Version Link */
/* =============================================== */
.second-version-link,
.second-version-link:link {
  color: hsl(236, 50%, 50%);
  padding: .8rem 1.6rem .8rem .2rem;
  border-bottom: 2px solid hsl(236, 50%, 50%);
  font-size: 1.4rem;
  font-weight: bold;
  position: absolute;
  top: 4rem;
  right: 4rem;
}
.second-version-link::after {
  content: '\2197';
  position: absolute;
  top: 0;
  right: 0;
  font-size: .9em;
}
.abs-site-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: hsla(0, 0%, 0%, .6);
  font-size: 1.6rem;
}
/* container */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-container {
  display: grid;
  grid-template-columns: 8vw 8vw 8vw 8vw 8vw;
  grid-template-rows: 2vw;
}
/* custom-textarea */
.custom-textarea {
  width: 80%;
  height: 150px;
  background-color: lightblue;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333333;
}
/* text styles */
.blink-text {
    color: rgb(0, 0, 0);
    animation: blink 10s infinite;
}
.bold-text {
    font-weight: bold;
    color: black;
}
.countdownbold-text {
  font-weight: bold;
  text-align: center;
  color: rgb(244, 189, 63);
  font-size: 1vw;
  text-decoration: underline;
  user-select: none;
}
.rounded-input {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 5px;
}
/* grid-container2 (share module) */
.grid-container2 {
    display: grid;
    grid-template-columns: 20vw 20vw 20vw;
    grid-template-rows: 10vw 10vw 10vw;
    gap: 0.5vw;
}
.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.5em;
    text-align: center;
}
.grid-item2_fx {
  color: rgb(12, 12, 241);
  font-weight: bold;
  font-size: 1.2vw;
  transition: all 0.3s ease;
}
.grid-item2_fx:hover {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  background-color: rgb(175, 109, 234);
  transform: rotate(5deg);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}
.grid-item2 {
    display: block;
    text-align: center;
    justify-content: center;
    font-size: 0.5vw;
    user-select: none;
}
/* plgrid-container (comment module) */
.plgrid-container {
  position: absolute;
  top: 50px;
}
.grid-container3 {
    display: grid;
    grid-template-columns: 60vw;
    grid-template-rows: 2vh 30vh 2vh 45vh;
    gap: 0.5vw;
}
.grid-item3 {
    padding: 0.5vw;
    text-align: center;
}
.grid-item3dm {
  display: flex;
  padding: 0.5vw;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.grid-Video {
  width: 13vw;
  height: 13vw;
  border-radius: 50%;
  object-fit: cover;
}
video {
  transform: translateZ(0);
}
.grid-container4 {
  display: grid;
  grid-template-columns: 0vw 56vw 4vw;
  grid-template-rows: 2vw;
  gap: 1vw;
}
.grid-item4left {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0vw;
}
.grid-item4right {
  padding: 0vw;
  text-align: left;
}
/* xlxunselectable */
.xlxunselectable {
  text-align: center;
  font-size: 1.2vw;
  user-select: none;
  width: 100%;
  margin: 0 auto;
}
/* mxpunselectable */
.mxpunselectable {
  text-align: center;
  font-size: 20px;
  user-select: none;
  width: 100%;
  margin: 0 auto;
}
/* button styles */
.buttoncolor {
  border-radius: 5px;
  background-color: transparent;
  border-style: none;
  color: black;
  font-weight: bold;
  height: 4vh;
}
.buttoncolor2 {
  border-radius: 5px;
  background-color: transparent;
  border-style: none;
  color: black;
  font-weight: bold;
  height: 4vh;
  font-size: 22px;
  transform: rotate(-30deg);
}
button:active,
button:focus {
  border-style: none;
  outline: none;
}
/* input styles */
.inputstyle {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  justify-content: left;
  width: 40vw;
  height: 35px;
  transition: width 0.5s ease;
  border-style: none;
}
.inputstyle2 {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  justify-content: left;
  width: 100%;
  height: 35px;
  border-style: none;
}
input:active,
input:focus {
  border-style: none;
  outline: none;
}
/* image container */
.image-container{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.unselectable {
  user-select: none;
}
/* pingpong ball */
.pingpong-ball {
  position: absolute;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
/* barrage */
#barrage-container {
  width: 800px;
  height: 400px;
  border: 1px solid #ccc;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.barrage-item {
  position: absolute;
  white-space: nowrap;
  font-size: 12px;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: rgba(32, 8, 250, 0.5);
  animation: barrage-move 8s linear;
  text-align: center;
}
/* animations */
@keyframes barrage-move {
  from {
      left: 80%;
  }
  to {
      left: -200px;
  }
}
@keyframes blink {
  0% {
      opacity: 0;
  }
  50% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}
/* 广告按钮样式 */
.ad-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
.ad-button:hover {
  background-color: #3367d6;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}