.video-background {
    position: fixed; /* 固定定位，确保背景不随页面滚动 */
    top: 0;
    left: 0;
    width: 100vw; /* 视口宽度 */
    height: 100vh; /* 视口高度 */
    overflow: hidden; /* 防止内容溢出 */
    z-index: -1; /* 确保背景层不遮挡前景内容 */
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 确保视频居中 */
    width: 100%; /* 撑满宽度 */
    height: 100%; /* 撑满高度 */
    object-fit: cover; /* 确保视频裁剪时保持宽高比 */
    z-index: -1; /* 确保视频不会遮挡前景内容 */
}

/* 菜单按钮容器样式 */
.menu-button {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border: 1px solid white; /* 初始边框 */
    border-radius: 30px; /* 圆角效果 */
    background-color: transparent; /* 初始透明背景 */
    color: white; /* 文本颜色 */
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.5s ease; /* 背景颜色过渡效果 */
  }
  
  /* 鼠标悬停时背景渐变到红色 */
  .menu-button:hover {
    background-color: #622a1d; /* 红色填充背景 */
  }
  
  /* 菜单文字样式 */
  .menu-text {
    margin-right: 10px;
  }
  
  
  /* 菜单按钮容器样式 */
.menu-button {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border: 1px solid white; /* 初始边框 */
    border-radius: 30px; /* 圆角效果 */
    background-color: transparent; /* 初始透明背景 */
    color: white; /* 文本颜色 */
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.5s ease; /* 背景颜色过渡效果 */
    z-index: 9;
}

/* 鼠标悬停时背景渐变到红色 */
.menu-button:hover {
    background-color: #622a1d; /* 红色填充背景 */
}

/* 菜单文字样式 */
.menu-text {
    margin-right: 10px;
    overflow: hidden; /* 确保动画范围受限 */
    position: relative;
    display: inline-block;
    height: 1em;
    line-height: 1em; /* 与文本高度保持一致 */
    transition: transform 0.3s ease-in-out;
    z-index: 9;
}

.menu-text span {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.menu-text span.inactive {
    transform: translateY(-100%); /* 初始状态隐藏 */
}

.menu-text span.active {
    transform: translateY(0); /* 显示内容 */
}

/* 菜单图标容器样式 */
.menu-icon {
    display: flex;
    gap: 5px; /* 两个点之间的间距 */
    position: relative;
    transition: transform 0.5s ease; /* 旋转过渡效果 */
}

/* 鼠标悬停时图标旋转 */
.menu-button:hover .menu-icon {
    transform: rotate(270deg); /* 图标旋转 270 度 */
}

/* 图标点样式 */
.dot {
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%; /* 圆形 */
    transition: background-color 0.5s ease;
}

/* 鼠标悬停时点颜色变化 */
.menu-button:hover .dot {
    background-color: #ffd700; /* 点颜色变为金色 */
}
/* 激活状态，显示 CLOSE */
.menu-button.active .text-close {
    top: 0; /* 滑入到可见位置 */
    opacity: 1; /* 变得可见 */
}

.menu-button.active .text-menu {
    top: -100%; /* 滑出到不可见位置 */
    opacity: 0; /* 变得透明 */
}

/* 图标旋转时的过渡效果 */
.menu-icon {
    transition: transform 0.5s ease;
}

/* 图标容器样式 */
.icon-container {
    display: flex; /* 使用 flex 布局确保图标和条形水平排列 */
    align-items: center; /* 垂直居中 */
    gap: 10px; /* 图标与黄色条形之间的间距 */
    position: relative; /* 保持相对定位 */
    margin-bottom: 20px; /* 与下方文字保持间距 */
}
/* 菜单容器初始样式 */
.menu-list {
    position: absolute;
    top: 100px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: scale(0.5) rotate(45deg); /* 初始缩小并旋转 */
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* 防止未显示时点击 */
    z-index: 9;
}

/* 菜单项样式 */
.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    overflow: hidden;
}

/* 箭头图片初始样式 */
.arrow-icon {
    position: absolute;
    left: -40px; /* 起始位置在菜单项左侧外 */
    width: 20px; /* 设置箭头宽度 */
    height: auto; /* 自动调整高度 */
    transition: left 0.3s ease; /* 滑动动画 */
}

/* 鼠标悬停效果 */
.menu-item:hover {
    background-color: #894735; /* 黄色背景 */
    border-radius: 50px; /* 变成两端圆形条状 */
    transform: scale(1.5); /* 整体扩大 */
}

.menu-item:hover .arrow-icon {
    left: 10px; /* 向右滑动到菜单项内 */
}

.menu-item:hover .menu-text {
    color: white; /* 文字变为白色 */
    transform: translateX(20px); /* 文字向右移动 */
}

/* 显示菜单时的动画 */
.menu-list.active {
    opacity: 1;
    transform: scale(1) rotate(0); /* 展开到正常大小和角度 */
    pointer-events: auto; /* 允许点击 */
}

.menu-list.active .menu-item {
    transform: rotate(0); /* 逐项旋转到正常角度 */
}
.menu-link {
    text-decoration: none; /* 去掉超链接的下划线 */
    color: inherit; /* 继承父元素的颜色 */
    display: block; /* 使链接区域覆盖整个子元素 */
}

.menu-link:hover .menu-item {
    transform: scale(1.05); /* 保持悬停特效 */
    transition: transform 0.3s ease; /* 平滑过渡 */
}


/* logo样式 */
.icon {
    width: 50px; /* Logo 的宽度 */
    height: 50px; /* Logo 的高度 */
    display: block; /* 确保占据单独空间 */
}

/* 黄色条形初始样式 */
.yellow-bar {
    width: 40px; /* 初始为水平长条 */
    height: 8px; /* 高度较小 */
    background-color: #f8c629;
    transform-origin: center; /* 以中心点为旋转基点 */
    transform: rotate(0deg); /* 初始状态为水平 */
    transition: transform 0.3s ease; /* 平滑过渡效果 */
    display: inline-block;
  }
  

/* 动效文字初始样式 */
.text {
    opacity: 0; /* 初始透明 */
    transform: translateX(-20px); /* 初始位置向左偏移 */
    font-size: 2rem; /* 字体大小 */
    font-family: "pastiche-brush", sans-serif;
    color: white; /* 白色文字 */
    position: relative; /* 保持相对定位 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 动画平滑过渡 */
}

/* 鼠标悬停时的黄色条形动画 */
.text-section:hover .yellow-bar {
    transform: rotate(90deg); /* 旋转 90 度，变成竖直 */
  }

.text-section:hover .text {
    opacity: 1; /* 显示文字 */
    transform: translateX(0); /* 文字滑动回初始位置 */
}


/* 设置文本块样式 */
.text-section {
    position: absolute; /* 绝对定位 */
    right: 18%; /* 右侧边距 */
    top: 22%; /* 距顶部的高度 */
    color: #ffffff; /* 字体颜色为白色 */
    text-align: left; /* 左对齐文本 */
    font-family: 'Arial', sans-serif; /* 设置字体 */
    line-height: 1.4; /* 行高 */
    max-width: 400px; /* 设置文本块最大宽度 */
    z-index: 10;
}

/* 设置主标题样式 */
.text-section h1 {
    font-size: 3rem; /* 字体大小 */
    margin: 0; /* 移除默认外边距 */
    font-weight: 300; /* 细字体 */
}
.text-section h3 {
    font-size: 6rem; /* 字体大小 */
    margin: 0; /* 移除默认外边距 */
    
}

/* 高亮的部分 */
.text-section h1.highlight {
    color: #ffffff; /* 特殊颜色 */
    font-size: 4rem; /* 字体更大 */
    font-weight: bold; /* 粗体 */
    margin-top: 10px; /* 添加顶部间距 */
}

/* 段落样式 */
.text-section p {
    font-size: 1rem; /* 段落字体大小 */
    margin-top: 20px; /* 段落顶部间距 */
    color: #d1d1d1; /* 浅灰色字体 */
    line-height: 1.6; /* 段落行距 */
}

/* 鼠标轨迹 Canvas 样式 */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 在视频背景上方，但在文字下方 */
    pointer-events: none; /* 确保鼠标事件穿透 */
  }

  .container {
    position:fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

    background-color: #ffffff00;
    overflow: hidden;
    filter: contrast(5);
    z-index: 2;
  }
.container div {
  position: absolute;
  justify-content: center;
  width: 18rem;
  height: 18rem;
  border-radius: 100%;
  background-color: #4d677591;
  filter: blur(1.5rem);
}
  .container div:nth-child(1) {

    transform: translateX(-60%);
  }

  .container div:nth-child(2) {
    transform: translateX(80%);
  }
  /* 第1个小球 */
.container .ball:nth-child(1) {
    width: 375px;
    height: 360px;
    top: 40%;
    left: 50%;
  }
  
  /* 第2个小球 */
  .container .ball:nth-child(2) {
    width: 175px;
    height: 188px;
    top: 38%;
    left: 46%;
  }
  
  /* 第3个小球 */
  .container .ball:nth-child(3) {
    width: 90px;
    height: 88px;
    top: 36%;
    left: 88%;
  }
    /* 第4个小球 */
    .container .ball:nth-child(4) {
        width: 90px;
        height: 88px;
        top: 6%;
        left: 8%;
      }
    /* 第5个小球 */
    .container .ball:nth-child(5) {
        width: 50px;
        height: 68px;
        top: 76%;
        left: 48%;
      }
  /* 第6个小球 */
  .container .ball:nth-child(6) {
    width: 135px;
    height: 140px;
    top: 69%;
    left: 24%;
  }
    /* 第7个小球 */
    .container .ball:nth-child(7) {
        width: 200px;
        height: 188px;
        top: 79%;
        left: 18%;
      }
          /* 第8个小球 */
    .container .ball:nth-child(8) {
        width: 30px;
        height: 48px;
        top: 86%;
        left: 76%;
      }
      
  