body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--text1);
  scroll-behavior: smooth;
}

:root {
  --svgwd: 20px;
  --jbs: linear-gradient(-45deg, #ffffff, #454e74, #2a4670, #0c40);
  --text1: Source Han Serif CN VF;
  --text2: Maple Mono CN ExtraBold;
  --background-color: #eceff3;
  --text-color: #737373;
  --title-color: #1f2025;
  --header-color: #ffffff;
  --bgmh: rgba(206, 206, 206, 0.8);
  --theme-transition-duration: 0.3s;
  --theme-transition-timing-function: ease;
  --shadow: 0 5px 15px -2px rgb(0, 0, 0, 0.1);
  --shadow1: 0 5px 20px 2px rgb(0, 0, 0, 0.2);
}

[data-theme="dark"] {
  --jbs: linear-gradient(-45deg, #2c3e50, #141e30, #243b55);
  --background-color: #18191e;
  --text-color: #6e6e6e;
  --header-color: #1f2025;
  --title-color: #858585;
  --bgmh: rgba(56, 56, 56, 0.8);
  --shadow: 0 5px 15px -2px rgba(189, 189, 189, 0.1);
  --shadow1: 0 5px 20px 2px rgb(189, 189, 189, 0.2);
}

* {
  transition: background-color var(--theme-transition-duration) var(--theme-transition-timing-function),
    color var(--theme-transition-duration) var(--theme-transition-timing-function),
    border-color var(--theme-transition-duration) var(--theme-transition-timing-function),
    fill var(--theme-transition-duration) var(--theme-transition-timing-function),
    stroke var(--theme-transition-duration) var(--theme-transition-timing-function);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: rgb(165, 165, 165);
}

/* 整个滚动条 */
::-webkit-scrollbar {
  width: 4px;
}

/* 滚动条的轨道（背景） */
::-webkit-scrollbar-track {
  background: transparent;
}

/* 滚动条的滑块（可拖动的部分） */
::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 2px;
}

/* 当鼠标悬停在滑块上时 */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::-webkit-scrollbar-corner {
  display: none;
}

.con {
  width: 100vw;
  height: 100% fit-content;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header {
  width: 100%;
  height: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  color: var(--title-color);
  background-color: transparent;
  backdrop-filter: blur(10px);
  padding: 0 14.5vw;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.header.hidden {
  transform: translateY(-100%);
}

.left {
  display: flex;
  align-items: center;
  font-family: var(--text2);
  font-size: clamp(10px, 2vw, 20px);
}

.left img {
  --wh: clamp(40px, 6vw, 70px);
  width: var(--wh);
  height: var(--wh);
}

.right {
  display: flex;
  gap: 3vw;
  font-size: clamp(8px, 2vw, 20px);
  font-weight: 600;
}

.right a {
  position: relative;
  white-space: nowrap;
}

.right a::before,
.right a::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #1f589f;
  transition: width 0.3s ease;
}

.right a::before {
  left: 50%;
}

.right a::after {
  right: 50%
}

.right a:hover::before,
.right a:hover::after {
  width: 50%;
}

.menu {
  display: none;
  color: var(--title-color);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu.active {
  transform: rotate(-90deg);
}

@media (max-width: 768px) {
  .header {
    padding: 0 14vw;
  }

  .menu {
    display: flex;
  }

  .right {
    width: 100vw;
    height: auto;
    position: absolute;
    top: 47px;
    left: 0;
    gap: 0;
    margin-top: 20px;
    background: rgb(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;

  }

  .right div {
    width: 90vw;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: menulist 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }

  .right div:hover {
    background: rgb(0, 0, 0, 0.4);
  }

  .right a:hover::before,
  .right a:hover::after {
    width: 0;
  }

  @keyframes menulist {
    0% {
      transform: translateY(-100%);
      height: 0;
      opacity: 0;
    }

    100% {
      transform: translateY(0);
      height: 40px;
      opacity: 1;
    }
  }

  @keyframes menulistgb {
    0% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }

  .right.closing {
    animation: menulistgb 0.4s ease-in-out;
  }

  .right div:hover {
    background: rgb(0, 0, 0, 0.4);
  }

}

.tool {
  position: fixed;
  bottom: 30px;
  right: 10px;
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  animation: svgcx .5s linear;
}

@keyframes svgcx {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.page {
  width: var(--svgwd);
  height: var(--svgwd);
  padding: 10px;
  border-radius: 50%;
  background-color: var(--bgmh);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--title-color);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.page:hover {
  background-color: rgba(22, 22, 22, 0.8);
}

.tool svg {
  width: var(--svgwd);
  height: var(--svgwd);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--title-color);
  background-color: var(--bgmh);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.tool svg:hover {
  background-color: rgba(22, 22, 22, 0.8);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 15vh;
  width: 70%;
  padding: 20px;
  background-color: var(--header-color);
  box-shadow: var(--shadow);
}

p{
  margin: 10px;
}

.title,.download p{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1rem, 1.2vw, 2rem);
  letter-spacing: 3px;
  font-weight: 600;
}

.title {
  border-bottom: 1px solid var(--title-color);
}

.txtbody {
  display: flex; 
  border-bottom: 1px solid var(--text-color);
  line-height: 50px;
}

.download{
  border-bottom: 1px solid var(--title-color);
}

li {
  text-decoration: underline;
  line-height: 50px;
}

li a:hover {
  color: #002f64;
}

