
.right {
    /* position: absolute; */
    margin-top: 2%;
    right: -32%;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;

  }
  
  .right nav {
      filter: drop-shadow(0.25rem 0.25rem 0.5rem #0005);
      width: 100%;
      /* max-width: 14rem; */
  }
    
  @keyframes firstShow {
    0%, 100% { transform: perspective(1000px) translate3d(0, 0, 0em); }
    50% { transform: perspective(1000px) translate3d(0, 0, 3em); }
  }
  
  @keyframes show {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
    
  .right ul {
    position: relative;
    /* aperspective: 1000px; */
    list-style: none;
    padding-left: 0;
    box-sizing: border-box;
    border-radius: 1rem;
    transform-style: preserve-3d;
    perspective: 1000px;
    font:
      lighter 1rem Helvetica,
      sans-serif;
  }

  .right ul li {
    height: 3rem;
    display: flex;
    /* background: linear-gradient(#00000005, #0000), #1A1E23; */
    background: linear-gradient(90deg, rgba(42, 80, 62, .25) -3.62%, rgba(14, 44, 30, .25) 102.49%);      
    border-bottom: 1px solid #0001; /* 修复拼写错误 */
    background-clip: padding-box;   /* 修复拼写错误 */
    /* box-shadow: inset 0 0 1rem -0.5rem #0002; */
    transition: transform 0.35s, box-shadow 0.35s, background 0.35s;
    transform: translate3d(0, 0, 0);
    opacity: 0;
    animation: 
      firstShow 0.5s ease-in-out,
      show 0.15s linear forwards;
    
    /* 为不同的子元素设置动画延迟 */
    &:nth-child(1) { animation-delay: 0.50s; }
    &:nth-child(2) { animation-delay: 0.60s; }
    &:nth-child(3) { animation-delay: 0.70s; }
    &:nth-child(4) { animation-delay: 0.80s; }
    &:nth-child(5) { animation-delay: 0.90s; }
    &:nth-child(6) { animation-delay: 1.00s; }
    &:nth-child(7) { animation-delay: 1.10s; }
    &:nth-child(8) { animation-delay: 1.20s; }
    &:nth-child(9) { animation-delay: 1.30s; }
  
    /* 第一个和最后一个元素的圆角处理 */
    &:first-child {
      border-radius: 1rem 1rem 0 0;
    }
    
    &:last-child {
      border-radius: 0 0 1rem 1rem;
    }
    
    /* 鼠标悬停时的动画效果 */
    &:hover, 
    &:focus-within {
        transform: scale(1.1); /* 放大 10% */
        
    }
  }
  
  .right ul li a img {
  width: 35px; 
  height: 35px;
  }

  .right ul li a .string {
  margin-left: 20px;
  font-size: 1.2rem;
  color: #ffffff;
  }

  .right ul #right-links {
    font-weight: bold;
  }
  
  .right ul h2, a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 1rem;
    text-decoration: none;
    color: #ffffff;
  }
  
  .right ul h2 {
    font-size: 1rem;
    font-weight: 400;
  }
  
  .right ul i {
    margin-right: 0.25em;
    width: 1rem;
  }

  @media (max-width: 600px) {
    .right {
        padding: 5px; /* 小屏幕上的内边距 */          
    }

    .string {
        font-size: 1em; /* 在小屏幕上缩小字体 */
    }

    .right img {
        max-width: 80px; /* 可以根据需要设置最大宽度 */
    }
}