/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', cursive;
    color: #fff;
    overflow: hidden;
  }
  
  .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background1.jpg') no-repeat center center/cover;
    z-index: -1;
    animation: fade 10s infinite;
  }
  
  /* 背景动态切换 */
  @keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
  }
  
  /* 头部样式 */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 50, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .avatar img {
    width: 80px;
    border-radius: 50%;
    border: 2px solid #fff;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
  }
  
  nav ul li a:hover {
    color: #00bfff;
  }
  
  /* 主体内容 */
  main {
    text-align: center;
    margin-top: 150px;
  }
  
  main h1 {
    font-size: 48px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  }
  
  main p {
    font-size: 20px;
    margin: 10px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  }
  
  /* 底部样式 */
  footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 50, 0.6);
    padding: 10px 0;
  }
  
  footer p {
    margin: 5px 0;
  }
  
  .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 5px;
    background-size: cover;
  }
  