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: #eaeaea;
  --header-color: #ffffff;
  --bgmh: rgba(41, 41, 41, 0.7);
  --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;
  --shadow: 0 5px 15px -2px rgba(189, 189, 189, 0.1);
  --shadow1: 0 5px 16px 1px rgb(189, 189, 189, 0.1);
}

* {
  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: 100%;
  height: auto;
}

.con1 {
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100vh;
  z-index: 100;
  box-sizing: border-box;
  position: relative;
}

.bj {
  width: 100%;
  height: 100%;
  background: var(--jbs);
  background-size: 600% 600%;
  animation: gradientbj 5s ease infinite;
  position: absolute;
  z-index: -1;
}

@keyframes gradientbj {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.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 50px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.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 10px;
  }

  .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);
  }

}

.d {
  display: block;
  text-align: center;
}

.one {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  font-weight: 600;
  margin: 5px;
  color: var(--title-color);
}

.two {
  font-size: clamp(1rem, 1.3vw, 2rem);
  color: var(--title-color);
}

.two span {
  position: relative;
}

.two span::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #fff;
  animation: blink 1s linear infinite;
}

.two.typing-done span::after {
  display: none;
}

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

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.xh {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.xh svg {
  animation: dtsvg 2s ease infinite;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.xh svg:hover {
  color: #141e30;
}

@keyframes dtsvg {
  0% {
    transform: translateY(0);
    opacity: 1;
    scale: 1;
  }

  50% {
    transform: translateY(30px);
    scale: .8;
    opacity: .3;
  }

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

.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;
}

.con2 {
  width: 100%;
  min-height: 100%;
  display: flex;
  gap: 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-color: var(--background-color);
  padding: 30px;
}

.card {
  width: clamp(300px, 90vw, 900px);
  height: clamp(200px, 35vh, 500px) fit-content;
  border-radius: 10px;
  background-color: var(--header-color);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.card:hover {
  box-shadow: var(--shadow1);
}

p {
  margin: 10px;
  background: linear-gradient(to right, #1f589f, #1f589f) no-repeat;
  background-size: 0 4px;
  background-position: left bottom;
  transition: background-size 1s ease;
}

.title p:hover {
  color: #528bcc;
  background-size: 100% 4px;
}

p a:hover{
  color: #528bcc;
}

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

.txtbody {
  overflow: hidden;
  text-overflow: ellipsis;
  height: fit-content;
  font-size: clamp(1rem, 1.3vw, 2rem);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  box-sizing: border-box;
}