 :root{
      --tianyi-blue: #66ccff;
      --tianyi-white: #ffffff;
      --tianyi-gray: #e0f7ff;
      --tianyi-shadow: rgba(126, 207, 255, 0.3);
}
    html, body {
      height: 100%; /* 页面高度撑满整个视口 */
      margin: 0; /* 去除默认外边距 */
      font-family: "思源黑体", sans-serif; /* 设置字体 */
      color: #333; /* 默认文字颜色 */
    }

    /* 去除所有链接的下划线 */
  .a {
    text-decoration: none;
  }

    /* 页面主容器，用于撑满整个页面并吸底页脚 */
    .wrapper {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

.layout {
  display: flex; 
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 20px; /* 主体与侧边栏间距 */
  max-width: 1200px;
  padding: 50px 10px;  
  max-width: auto; /* 限制整体宽度 */ 
  margin: 0 auto; /* 居中 */
}

  .hengfu {
  background-color: #666666;
  padding: 10px;
  display: flex;
  align-items: center;    /* 垂直居中， */
  }

  .hengfu a {
    color: white;
    text-decoration: none;
    margin-right: 20px;   /* 链接之间的间距 */
    margin-left: 25px;
    font-size: 18px;
  }

.hengfu a:hover {
  text-decoration: underline;
  color: #55bbee;
  transition: 0.2s;
}


  .nav-right {
    margin-left: auto;   /* 右对齐 */
    color: white;
    font-size: 18px;
    padding: 0px ;
    margin-right: 30px; 
  }
  .maintext {
    width: 900px;
    background-color: var(--tianyi-white);
    padding: 32px;/* 内边距 */
    border-radius: 15px;
    margin-left: 90px; /* 距离左边50px */
    margin-right: 20px ; /* 距离右边30px */
    box-shadow: 0 0 12px rgba(102, 204, 255, 0.45); /* 添加阴影效果 */

  }

.maintext h1 {
  color: var(--tianyi-blue);
}

.sidebar {
  display: flex;
  flex-direction: column; 
  gap: 20px;        
  margin-right: 10px;   
  margin-left: 10px; /* 靠右对齐 */
}

  .Author {
  width: 250px;
  background-color: var(--tianyi-white);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 5px;   /* 每一行之间隔开 */
  border-radius: 25px;
  box-shadow: 0 0 12px rgba(102, 204, 255, 0.45);

  }

  .Author .img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 圆角*/
    display: block;    /* 作为块级元素 */
    margin: 20px auto 10px auto; /* 上下间距 */
      
  }

.Author .img:hover {
  transform: scale(1.1); /* 鼠标悬停时放大 */
transform: rotateY(15deg) scale(1.05);
  transition: 200ms; /* 平滑过渡效果 */
  transform: scale(1.1) rotate(3deg);
}


.Author .name {
    text-align: center;
    margin-top: 0px;
    font-size: 20px;
}

.Author .links {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 25px;
    margin-top: 2px; 
}

.Author .links .a {
    color: var(--tianyi-blue);
    font-size: 16px;
}

.mulu{
  width: 250px;
  background-color: var(--tianyi-white);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 5px;   /* 每一行之间隔开 */
  border-radius: 25px;
  box-shadow: 0 0 12px rgba(102, 204, 255, 0.45);

}

.tools {
  width: 250px;
  background-color: var(--tianyi-white);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;   /* 每一行之间隔开 */
  border-radius: 25px;
  box-shadow: 0 0 12px rgba(102, 204, 255, 0.45);
}  

/* 夜间模式 */
body.dark {
  background-color: #0f172a;
  color: #e2e8f0;
}

.dark .wrapper {
  background-color: #0f172a;
}

.dark .maintext,
.dark .Author,
.dark .hengfu,
.dark .tools,
.dark .mulu {
  background-color: #1e293b;
  color: #e2e8f0;
}

.dark a {
  color: #38bdf8;
}

.dark .footer {
  background-color: #1e293b;
}


  .footer {
    background-color: var(--tianyi-blue);
    padding: 10px;
    align-items: center;
    margin-top: auto;
    text-align: center; /* 居中显示 */
  }


.mulu ul {
  list-style-type: none; /* 去掉默认的列表样式 */
    gap: 5px;
    padding: 10px;
    margin-top: 10px;
}

.mulu li{
display: flex;
align-items: center;  /* 垂直居中 */
margin-bottom: 6px;  /* 垂直间距 */
padding: 6px;
border-radius: 8px;  /* 圆角 */
}

.mulu li::before {
 content: "•";
 color: var(--tianyi-blue);
 font-size: 18px;
 margin-right: 8px; /* 列表项前的间距 */
 
}

.mulu a {
 text-decoration: none;
 color: var(--tianyi-blue);
}


.mulu li:hover {
  background-color: var(--tianyi-shadow);
  transition: 200ms; /* 平滑过渡效果 */
  transform: scale(1.02); /* 鼠标悬停时放大 */
  transform: translateY(-3px); /* 鼠标悬停时上移 */
}

   .Author .a:hover {
  
   transition: 200ms; /* 平滑过渡效果 */
   transform: scale(1.2); /* 鼠标悬停时放大 */
   transform: translateY(-5px); /* 鼠标悬停时上移 */
   background-color: var(--tianyi-shadow);
   }
  
 .tools button {
  background-color: var(--tianyi-blue);
  color: var(--tianyi-white);
  border-radius: 10px;
  border: none;
  height: 35px;
  cursor: pointer;
 }

  .tools button:hover {
      transition: 200ms;
      transform: scale(1.1);
      background-color: #55bbee;
      transform: translateY(-3px);
  }