html {
  font-family: "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  user-select: none;
}

.selector {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.dark-mode {
  --link-color: #bfa7a7;
  --theme-color: #4d525a;
  --shadow-right-bottom-color: #343046;
  --shadow-left-top-color: #3c3636;
  --input-right-bottom-color: #6d6d6d;
  --input-left-top-color: #939393;
  --return-button-color: #DCB6A3;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

body {
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  background-color: var(--theme-color);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.dark-mode .card {
  position: relative;
  transform-style: preserve-3d;
  width: 360px;
  height: 560px;
  border-radius: 30px;
  box-shadow: 12px 12px 22px var(--shadow-right-bottom-color),
    -12px -12px 22px var(--shadow-left-top-color);
  transform: rotateY(0deg);
  transition: 1s cubic-bezier(0.83, 0, 0.17, 1);
  background: linear-gradient(to bottom, #212125 0%, #212125 100%);
}

.dark-mode .card:hover {
  background-color: #fdfdfd;
  box-shadow: 20px 20px 60px var(--shadow-right-bottom-color),
    -20px -20px 60px var(--shadow-left-top-color);
}

.dark-mode .card.turn-to-back {
  transform: rotateY(180deg);
  box-shadow: -20px 20px 20px var(--shadow-right-bottom-color),
    20px -20px 20px var(--shadow-left-top-color);
  width: 80%;
}

.dark-mode .card-front,
.dark-mode .card-back {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: #212125;
  overflow: hidden;
}

/* 正面 */

.dark-mode .card-front {
  position: absolute;
}

.dark-mode .card-back {
  transform-style: preserve-3d;
  transform: rotateY(180deg);
}

.dark-mode .card-front img {
  width: 100%;
  opacity: .8;
}

.dark-mode .card-front .desc {
  width: 80%;
  padding: 2.5px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.dark-mode .card-front .desc .text {
  font-size: 20px;
  color: #ae7272;
}

.dark-mode .card-front .desc .link {
  font-size: 20px;
  position: relative;
  left: auto;
  top: auto;
  top: 0;
  display: inline-block;
}

.dark-mode .card-front .desc img {
  width: 25px;
  height: 25px;
  left: 10px;
  top: 5px;
  position: relative;
}

.dark-mode .card-front .desc span {
  display: inline-block;
  align-items: center;
}

.dark-mode .card-front form {
  flex: 1;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.dark-mode .card-front .desc .link[target="_blank"] {
  position: relative;
  left: auto;
  top: -5px;
  display: inline-block;
}


.dark-mode .card-front form #media-url {
  border: none;
  border-radius: 15px;
  padding: 17px;
  background-color: #e1e1e1;
  box-shadow: 6px 6px 12px #5f350b,
    -6px -6px 12px #5f350b;
  font-size: 15px;
  font-weight: bold;
  max-width: 200px;
}

.dark-mode .card-front form #media-url:focus {
  outline-color: rgba(228, 211, 155, 0.86);
}

.dark-mode .card-front form #media-url:hover {
  background: #cbcbcb;
}

.dark-mode .card-front form .apis {
  width: 105%;
  line-height: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #ae7272;
}

.dark-mode .card-front form .play {
  padding: 8px 25px;
  color: #ffffff;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: #DCB6A3;
  box-shadow: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #d36f31;
  font-size: 15px;
  transition: all 0.5s ease;
}

.dark-mode .card-front form .play:hover {
  letter-spacing: 3px;
  background-color: hsl(35, 59%, 49%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(168, 93, 37) 0px 7px 29px 0px;
}

.dark-mode .card-front form .play:active {
  letter-spacing: 3px;
  background-color: hsl(40, 64%, 54%);
  color: hsl(36, 34%, 29%);
  box-shadow: rgb(202, 146, 78) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.dark-mode .radio-buttons-container {
  display: flex;
  position: relative;
  background-color: #e7e7e7f7;
  box-shadow: 0 0 1px 0 rgb(224 181 24 / 15%), 0 6px 12px 0 rgb(224 149 24 / 15%);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 18px;
}

.dark-mode .radio-button {
  position: relative;
  z-index: 0;
}

.dark-mode .radio-button input[type="radio"] {
  display: none;
}

.dark-mode .radio-button__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 2px 13px;
  font-size: 14px;
  color: black;
  font-weight: 500;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.dark-mode .radio-button__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ad480f;
  border-radius: 99px;
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode .radio-button input[type="radio"]:checked + .radio-button__label {
  color: #ffffff;
}

.dark-mode .radio-button input[type="radio"]:checked + .radio-button__label::before {
  opacity: 1;
  transform: scale(1);
}

.dark-mode .tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f37500;
  color: #fff;
  padding: 4.5px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in, visibility 0.15s ease-in;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.dark-mode .radio-button__label:hover::after {
  opacity: 1;
  visibility: visible;
}

.dark-mode .audio-play-button {
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;
  outline: none;
  margin-left: 10px;
  background-image: url('../public/cxk.jpg?v=1.0.1');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.dark-mode .audio-play-button:hover {
  opacity: 0.8;
}

.dark-mode .history-button,
.dark-mode .so {
  display: inline-block;
  padding: 5px 10px;
  border: 0;
  border-radius: 100px;
  background-color: #ad480f;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
}

.dark-mode .history-button:hover,
.dark-mode .so:hover {
  background-color: #b93306;
  box-shadow: 0 0 20px #b4823d;
  transform: scale(1.1);
}

.dark-mode .history-button:active,
.dark-mode .so:active {
  background-color: #75414e;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  box-shadow: none;
  transform: scale(0.98);
}

.dark-mode .tutorial-button,
.dark-mode .btn-shine {
  position: relative;
  margin: 0;
  padding: 6px 15px;
  outline: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #ad480f;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  color: #ffffff00;
  font-weight: 400;
  font-family: inherit;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.switch {
  font-size: 16px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dda42a;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.3em;
  bottom: 0.3em;
  background-color: yellow;
  transition: .4s;
}

.switch input:checked+.slider:before {
  background-color: #224e8a;
  border-radius: 50px;
  box-shadow: inset 9px -1px 1px 0px white;
}

.switch input:checked+.slider {
  background-color: #224e8a;
}

.switch input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

.switch input:checked+.slider:before {
  transform: translateX(1.5em);
}

.dark-mode .tutorial-button span {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.dark-mode .tutorial-button:hover {
  animation: rotate624 0.7s ease-in-out both;
}

.dark-mode .tutorial-button:hover span {
  animation: storm1261 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

@keyframes rotate624 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }

  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

@keyframes storm1261 {
  0% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }

  25% {
    transform: translate3d(4px, 0, 0) translateZ(0);
  }

  50% {
    transform: translate3d(-3px, 0, 0) translateZ(0);
  }

  75% {
    transform: translate3d(2px, 0, 0) translateZ(0);
  }

  100% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
}

.dark-mode .tutorial-button {
  border: 1px solid;
  overflow: hidden;
  position: relative;
}

.dark-mode .tutorial-button span {
  z-index: 20;
}

.dark-mode .tutorial-button:after {
  background: #e74919;
  content: "";
  height: 155px;
  left: -75px;
  opacity: 0.4;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: -10;
}

.dark-mode .tutorial-button:hover:after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.dark-mode .announcement-card {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300px;
  padding: 20px;
  background: #333333;
  border-radius: 20px;
  box-shadow: 0 8px 12px rgb(0 0 0 / 53%);
  z-index: 1000;
  font-family: Arial, sans-serif;
  transform: translate(-50%, -50%);
  text-align: center;
}

.dark-mode .announcement-card h2 {
  margin: 0 0 10px 0;
  font-size: 22px;
  color: #ffffff;
}

.dark-mode .announcement-card a {
  color: #8d5443;
}

.dark-mode .announcement-card p {
  font-size: 14px;
  color: #d79469;
}

.dark-mode .announcement-card span {
  font-size: 14px;
  color: #ff8383;
}

.dark-mode .announcement-card button {
  padding: 10px 15px;
  background: #bd7560;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin: 0 auto;
  display: block;
}

.dark-mode .announcement-card button:hover {
  background: #bf876bee;
}

.dark-mode .group-button {
  background-color: #DAB6A4;
  border: none;
  border-radius: 10px;
  padding: 2.5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
}

.dark-mode .group-button:hover {
  background-color: #c09280;
}

.dark-mode .vl-button-wrapper {
  position: relative;
}

.dark-mode .vl-hover-button {
  padding: 7px 14px;
  background-color: #b88308;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 100px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
}

.dark-mode .vl-hover-button:hover {
  background-color: #956f1d;
}

.dark-mode .vl-popup-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: -48%;
  width: 300px;
  background-color: #ffe7b7;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.dark-mode .vl-popup-content2 {
  display: none;
  position: absolute;
  bottom: 100%;
  left: -198%;
  width: 300px;
  background-color: #ffe7b7;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.dark-mode .vl-button-wrapper:hover .vl-popup-content {
  display: block;
}

.dark-mode .vl-button-wrapper:hover .vl-popup-content2 {
  display: block;
}

.dark-mode .vl-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dark-mode .vl-link-item {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.dark-mode .vl-link-item:hover {
  background-color: #f0d9b3;
}

.dark-mode .vl-link-icon {
  margin-right: 10px;
  object-fit: contain;
}

.dark-mode .vl-link-text {
  color: #4a5568;
  text-decoration: none;
  font-size: 20px;
  top: -2px;
  position: relative;
}

.dark-mode .vl-audio-button {
  grid-column: span 2;
  background-color: #4299e1;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.dark-mode .vl-audio-button:hover {
  background-color: #3182ce;
}

.dark-mode .history-button-wrapper {
  position: relative;
  display: inline-block;
}

.dark-mode .history-popup {
  display: none;
  position: fixed;
  left: 22px;
  background-color: #d0d0d0;
  min-width: 300px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 8px;
  z-index: 1;
  border-radius: 20px;
  max-height: 150px;
  overflow-y: auto;
  animation: fadeIn 0.5s;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dark-mode .history-popup::-webkit-scrollbar {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dark-mode .history-popup.open {
  display: block;
}

.dark-mode .history-popup h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #333;
  font-size: smaller;
  font-weight: bold;
  text-align: center;
}

.dark-mode .history-popup ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.dark-mode .history-popup li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.dark-mode .history-popup li:last-child {
  border-bottom: none;
}

.dark-mode .history-popup a {
  color: #4e2705;
  text-decoration: none;
  font-size: 15px;
}

.dark-mode .history-popup a:hover {
  text-decoration: none;
  color: #a75107;
}


.dark-mode .history-popup a {
  transition: color 0.3s;
}

.dark-mode #clear-button {
  position: absolute;
  right: 5px;
  top: 20%;
  transform: translateY(-50%);
  background: #fcae89;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: none;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  transition: background-color 0.3s ease;
}

.dark-mode #clear-button:hover {
  background-color: #ed601f;
}

.dark-mode #clear-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


/* 背面 */
.info-box {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
  border-radius: 16px;
  color: #333;
  font-family: 'Arial', sans-serif;
  text-align: center;
  width: 80%;
  max-width: 300px; 
  opacity: 0; 
}

.info-box.show {
  top: 100px;
  opacity: 0.85; 
}

.info-box.hide {
  top: -100%;
  opacity: 0;
}

.info-box p {
  margin: 0;
  font-size: 16px;
}

.info-box-close {
  background-color: #e8a378;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.info-box-close:hover {
  background-color: #bf7c52;
}

@media screen and (max-width: 668px) {
  .info-box {
    max-width: 250px; 
  }

  .info-box.show {
    top: 130px; 
  }
}

.dark-mode .card .card-back {
  display: flex;
  flex-direction: column;
}

.dark-mode .card .card-back .player {
  flex: 9;
  width: 100%;
}

.dark-mode .card .card-back .button-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.dark-mode .card .card-back .return,
.dark-mode .card .card-back .timer {
  padding: 1.5px 12px;
  color: hsl(33, 86%, 16%);
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: #EBB694;
  box-shadow: none;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  background: #d36f31;
  font-size: 15px;
  transition: all 0.5s ease;
}

.dark-mode .card .card-back .button-container .return {
  margin: auto;
  left: 30%;
  font-size: 15px;
}

.dark-mode .card .card-back .return:hover,
.dark-mode .card .card-back .timer:hover {
  letter-spacing: 3px;
  background-color: hsl(35, 59%, 49%);
  color: hsl(36, 34%, 29%);
  box-shadow: rgb(168, 93, 37) 0px 7px 29px 0px;
}

.dark-mode .card .card-back .return:active,
.dark-mode .card .card-back .timer:active {
  letter-spacing: 3px;
  background-color: hsl(40, 64%, 54%);
  color: hsl(36, 34%, 29%);
  box-shadow: rgb(202, 146, 78) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.dark-mode .copyright {
  text-align: center;
  font-size: 13px;
  position: fixed;
  bottom: 6px;
}

.dark-mode .copyright p,
.dark-mode .copyright span,
.dark-mode .copyright a {
  color: #af8072;
}

.dark-mode .copyright :not(.author-link) {
  color: #bfa7a7;
}

.dark-mode .copyright p {
  margin: 0;
}

.dark-mode .copyright .cprt {
  display: none;
}

.dark-mode .copyright .author-link {
  display: inline-block;
  font-weight: bolder;
  padding: 0 4px;
  color: rgba(228, 63, 90, .8);
  background-color: rgba(255, 255, 255, .8);
  border-radius: 4px;
  transition: .3s ease-in-out;
}

.dark-mode .contact-button {
  background-color: #75414e;
  border: none;
  border-radius: 10px;
  padding: 2.5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
}

.dark-mode .contact-button:hover {
  background-color: #b8694a;
}



/* 横向时画面比例 */

/* iPhone 6 & 横屏*/
@media screen and (max-width: 667px) and (orientation: landscape) {
  .dark-mode .card.turn-to-back {
    height: 94vh;
  }

  .dark-mode .card .card-back .player {
    flex: 8.5;
  }

  .dark-mode .card .card-back .button-container {
    flex: 1.5;
  }

  footer {
    display: none;
  }

  input[type="radio"] {
    margin-top: -2px;
  }
}

/* iPhone 12 Pro Max & 横屏*/
@media screen and (min-width: 668px) and (max-width: 926px) and (orientation: landscape) {
  .dark-mode .card.turn-to-back {
    width: 62.8%;
    height: 90vh;
  }

  .dark-mode .card .card-back .player {
    flex: 8.5;
  }

  .dark-mode .card .card-back .button-container {
    flex: 1.5;
  }

  footer {
    display: none;
  }

  input[type="radio"] {
    margin-top: -2px;
  }
}

/* iPad及以上 & 横屏*/
@media screen and (min-width: 927px) {
  .dark-mode .card.turn-to-back {
    height: 78vh;
    width: 150vh;
  }

  .dark-mode .copyright .cprt {
    display: inline;
  }

  .copyright .author-link:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, .1);
  }

  .copyright .author-link:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, .1);
  }

  input[type="radio"] {
    margin-top: -2px;
  }
}

/* iPhone5、5c、5s、SE不显示footer */
@media screen and (max-width: 320px) {
  footer {
    display: none;
  }
}