Header.css 1.16 KB
Newer Older
fisherdaddy's avatar
fisherdaddy committed
1
.no-underline {
fisherdaddy's avatar
fisherdaddy committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    text-decoration: none;
    color: inherit;
  }
  
  .no-underline:hover {
    text-decoration: none;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    object-fit: contain;
  }
  
  .title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6366F1; /* 使用与图片中紫色渐变相近的颜色 */
    transition: color 0.2s ease;
  }
  
  header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }
  
  .logo-title-container {
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .logo-title-container .title {
    display: flex;
    align-items: center;
  }
  
  .logo-title-container:hover .title {
    color: #4F46E5; /* 悬停时稍微深一点的紫色 */
  }
  
  /* 添加一个简单的动画效果 */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* 为移动设备优化 */
  @media (max-width: 768px) {
    .title {
      font-size: 1.3rem;
    }
  }