:root {
  --main-color: #00a1e9;
  --container-border-radius: 15px;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  background: transparent;
  border: 0;
}

html, body {
  font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft YaHei", STHeiti, serif;
  margin: 0;
  padding: 0;
  color: #323232;
  height: 100vh;
  width: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

img {
  display: block;
}

/*竖线分隔符*/
.divider::before {
  content: '|';
  margin: 0 6px; /* 调整竖线与内容之间的间距 */
  font-size: 16px;
  /*color: var(--main-color);*/
}

.masked-box svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container {
  padding: 30px 40px 40px;
  border-radius: var(--container-border-radius);
  /*background: transparent;*/
  background: rgba(255, 255, 255, 0.07);
  /*backdrop-filter: blur(15px) brightness(1.2);*/
  backdrop-filter: brightness(1.2);
  /*backdrop-filter: brightness(1.2) contrast(0.9);*/
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 2s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  color: #333; /* Ensure text is visible on the glass background */
  width: 80%;
  max-width: 758px;
  top: -10%;
  border-top: 5px solid var(--main-color);
}

h1 {
  font-family: "新宋体", serif;
  font-size: 2em; /* Smaller font size */
  margin-bottom: 20px;
  animation: pulse 1.5s infinite alternate;
  text-align: center;
}

.content {
  text-align: center;
  font-size: 1.3em;
  margin: 40px auto 60px; /* Adjusted margin for spacing */
  color: inherit;
  line-height: 1.5; /* Added line height for spacing */

  /*font: bold 200% Consolas, Monaco, monospace;*/
  border-right: 0.1em solid;
  width: 16em;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(26, end),
  cursor-blink 0.3s step-end infinite alternate;
  animation-fill-mode: forwards;
  /*animation-iteration-count: infinite;*/
  animation-delay: 0s, 3s;
}

.myip {
  /*flex-basis: 100%;*/
  padding: 20px 0 10px 0;
  text-align: center;
  color: #4abf8a;
}

.footer {
  margin: 20px 0;
  font-size: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #7c7c7c;
}

.left {
  flex: 1;
  text-align: left;
}

.right {
  flex: 2;
  /*text-align: right;*/
  display: flex;
  flex-direction: column;
  /*align-items: flex-end;*/
  align-items: center;
}

.copyright {
  order: 1;
}

.copyright a {
  color: inherit;
}

.other {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.other a {
  color: inherit;
  text-decoration: none;
}

.mpsid {
  /*width: 16px; !* Make the icon the same height as the text *!*/
  height: 19px; /* Ensure the icon maintains aspect ratio */
  margin-right: 5px;
}


#ipv46 {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border: #4abf8a 1px dashed;
  color: #4abf8a;
  border-radius: 0 5px 0 var(--container-border-radius);
  position: absolute;
  bottom: -1px;
  left: -1px;
  font-size: 14px;
}

#ipv46 .network {
  display: inline-block;
  height: 17px;
  margin-right: 5px;
}

#dateTime {
  display: inline-block;
  padding: 5px 8px;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 5px 0 var(--container-border-radius) 0;
  position: absolute;
  bottom: -1px;
  right: -1px;
  font-size: 14px;
}

#ipv46 .network img, .mpsid img {
  width: 100%;
  height: 100%;
  /*vertical-align: middle;*/
  /*text-align: center;*/
  object-fit: contain; /* 保持比例 */
}

#ipv46 strong {
  padding: 0 2px;
}


@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .left,
  .right {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .right {
    margin-top: 12px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .other {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }

  #ipv46, #dateTime {
    padding: 5px;
  }

  #ipv46 strong {
    padding: 0 1px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes cursor-blink {
  50% {
    border-color: transparent;
  }
}
