* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 平滑滚动效果 */
}

/* 载入动画 */
#loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* From Uiverse.io by andrew-demchenk0 */
.glitch {
    position: relative;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 5px;
    z-index: 1;
    animation: shift 1s ease-in-out infinite alternate;
}

.glitch:before,
.glitch:after {
    display: block;
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch:before {
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #8b00ff;
    z-index: -1;
}

.glitch:after {
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: #00e571;
    z-index: -2;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    to {
        transform: translate(0);
    }
}

@keyframes shift {

    0%,
    40%,
    44%,
    58%,
    61%,
    65%,
    69%,
    73%,
    100% {
        transform: skewX(0deg);
    }

    41% {
        transform: skewX(10deg);
    }

    42% {
        transform: skewX(-10deg);
    }

    59% {
        transform: skewX(40deg) skewY(10deg);
    }

    60% {
        transform: skewX(-40deg) skewY(-10deg);
    }

    63% {
        transform: skewX(10deg) skewY(-5deg);
    }

    70% {
        transform: skewX(-50deg) skewY(-20deg);
    }

    71% {
        transform: skewX(10deg) skewY(-10deg);
    }
}

@keyframes shrink-and-fade {
    0% {
        transform: scale(1);
        /* opacity: 1; */
    }

    100% {
        transform: scale(0);
        /* opacity: 0; */
    }
}

.shrink-and-fade {
    animation: shrink-and-fade 0.5s ease-in-out forwards;
}


/* 载入动画 */






/* 导航 */
.daohang {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    background-color: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    /* 初始透明 */
    transition: opacity 0.3s ease;
    /* 渐变效果 */
    pointer-events: none;
    /* 初始时不可点击 */
}

.daohang-else {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    background-color: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 1;
    /* 初始透明 */
}

/* 导航容器样式 */
.menu {
    padding: 0rem;
    /* 内边距 */
    background-color: rgba(255, 255, 255);
    /* 背景 */
    opacity: 0.3;
    /* 默认透明度为0.2 */
    transition: opacity 0.6s ease;
    /* 添加平滑过渡效果 */
    position: absolute;
    /* 改为绝对定位，可自由调整位置 */
    top: -10px;
    /* 距离顶部 */
    left: 10px;
    /* 距离左侧 */
    margin: 0;
    /* 居中外边距 */
    display: flex;
    /* 弹性布局 */
    justify-content: center;
    /* 居中对齐子元素 */
    border-radius: 12px;
    /* 圆角 */
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0.075);
    /* 阴影效果 */
    max-width: 400px;
    /* 最大宽度 */
    margin: 20px auto;
    /* 外边距，居中显示 */
}

.menu:hover {
    opacity: 1;
}

/* 导航链接样式 */
.link {
    display: inline-flex;
    /* 内联弹性布局 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    width: 50px;
    /* 初始宽度 */
    height: 40px;
    /* 高度 */
    border-radius: 8px;
    /* 圆角 */
    position: relative;
    /* 相对定位 */
    z-index: 1;
    /* 层级 */
    overflow: hidden;
    /* 溢出隐藏 */
    transform-origin: center left;
    /* 变换原点 */
    transition: width 0.2s ease-in;
    /* 宽度过渡动画 */
    text-decoration: none;
    /* 移除下划线 */
    color: inherit;
    /* 继承文字颜色 */
}

/* 伪元素：hover 时的背景 */
.link:before {
    position: absolute;
    /* 绝对定位 */
    z-index: -1;
    /* 放在内容下方 */
    content: "";
    /* 空内容 */
    display: block;
    /* 块级元素 */
    border-radius: 8px;
    /* 圆角 */
    width: 100%;
    /* 宽度 100% */
    height: 100%;
    /* 高度 100% */
    top: 0;
    /* 顶部对齐 */
    transform: translateX(100%);
    /* 初始向右偏移 */
    transition: transform 0.2s ease-in;
    /* 变换动画 */
    transform-origin: center right;
    /* 变换原点 */
    background-color: transparent;
    /* 灰色背景 */
}

/* hover 和 focus 状态 */
.link:hover,
.link:focus {
    outline: 0;
    /* 移除轮廓 */
    width: 130px;
    /* 展开宽度 */
}

/* hover 时伪元素动画 */
.link:hover:before,
.link:focus:before {
    transform: translateX(0);
    /* 移动到原位 */
}

/* 图标容器 */
.link-icon {
    width: 28px;
    /* 图标宽度 */
    height: 28px;
    /* 图标高度 */
    display: block;
    /* 块级显示 */
    flex-shrink: 0;
    /* 不缩小 */
    left: 10px;
    /* 左边距 */
    right: 10px;
    position: absolute;
    /* 绝对定位 */
}

/* SVG 图标样式 */
.link-icon svg {
    width: 30px;
    /* SVG 宽度 */
    height: 30px;
    /* SVG 高度 */
}

/* 文字标题样式 */
.link-title {
    transform: translateX(100%);
    /* 初始向右偏移 */
    transition: transform 0.2s ease-in;
    /* 变换动画 */
    transform-origin: center right;
    /* 变换原点 */
    display: block;
    /* 块级显示 */
    text-align: center;
    /* 文字居中 */
    text-indent: 28px;
    /* 文字缩进，与图标对齐 */
    width: 100%;
    /* 宽度 100% */
}

/* hover 时文字动画 */
.link:hover .link-title,
.link:focus .link-title {
    transform: translateX(0);
    /* 移动到原位 */
    opacity: 1;
    /* 完全不透明 */
}

/* 点击时背景闪烁 */
.link.clicked:before {
    animation: clickFlash 0.4s ease-in-out;
    background-color: rgba(43, 43, 43, 0.5);
    /* 闪烁时的颜色 */
}

@keyframes clickFlash {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}



/* 导航 */
/* 流体背景 */
.background-container {
    position: fixed;
    /* 固定位置 */
    bottom: 0;
    /* 放在底部，你可以改为 top/left/right 等 */
    left: 0;
    /* 放在左侧 */
    width: 100%;
    /* 宽度占满 */
    height: 100%;
    /* 高度占满 */
    z-index: -1;
    /* 放在最底层 */
    pointer-events: none;
    /* 不占空间，不影响鼠标事件 */
    overflow: hidden;

}

/* Canvas 样式 */
#backgroundCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 确保其他内容显示在上面 */
.content {
    position: relative;
    z-index: 1;
}

.fog-layer {
    position: absolute;
    /* 绝对定位，覆盖在画布上 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* 根据需要调整宽度 */
    height: 100%;
    /* 根据需要调整高度 */
    background: rgba(255, 255, 255, 0.1);
    /* 半透明雾面颜色 */
    backdrop-filter: blur(80px);
    /* 雾面模糊强度 */
    -webkit-backdrop-filter: blur(80px);
    /* 兼容 Safari */
    border-radius: 20px;
    /* 圆角效果 */
    z-index: 1;
    /* 确保在画布上方 */
}

/* 流体背景 */

/* 固定锚点 */
#target-section1 {
    /* width: 30px;
    height: 20px;
    background-color: #f0ff; */
    position: absolute;
    top: 700px;
}

/* 固定锚点 */