* {
    padding: 0;
    margin: 0;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    /*cursor: none;*/
}

body,
html {
    font-family: 'MyLocalFont', Microsoft YaHei, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    font-size: 14px;
    overflow-x: hidden;
    position: relative;
    background: black;
    width: 100vw;
    height: 100vh;
}

#sence {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: -1;
}

#background {
    width: 140%;
    filter: brightness(0.6);
    background-image: url(https://jsd.cdn.zzko.cn/gh/rcy1314/my-photo@master/20230418/09.45yi39hb3xo0.jpg);
    /* 默认背景图片URL */
    background-size: 100%;
    height: 140%;
    position: absolute;
    top: -10vw !important;
    left: -160px !important;
}

#bg {
    width: 120%;
    filter: brightness(0.7);
    background-image: url();
    /* 默认前景图片URL */
    background-size: cover;
    height: 120%;
    position: absolute;
    left: 6.5vw !important;
}

/* 画布尺寸 */
.main {
    /* 设置宽度为990像素 */
    width: 990px;
    /* 设置填充（内边距）：顶部45像素，右侧330像素，底部5像素，左侧17像素 */
    padding: 23px 330px 5px 17px;
    /* 设置背景为一个从左到右的线性渐变，颜色从深灰色（透明度为0.849）到完全透明（在600像素处过渡） */
    /*background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 600px, rgba(0, 0, 0, 0));*/
    /*background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, 0));*/

    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0) 100%);
    /* 设置背景图像的大小，使背景宽度填充整个元素，高度保持不变 */
    background-size: 100% auto;
    /* 设置背景图像不重复 */
    background-repeat: no-repeat;
    /* 设置元素的盒模型，这样元素的宽度、高度和内边距将包括在元素的宽度和高度中 */
    box-sizing: border-box;
    /* 设置元素的最小高度为视口（viewport）的高度，确保元素至少和视口一样高 */
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

.chtitle {
    padding-bottom: 12px;
    font-size: 18px;
    letter-spacing: .2em;
    color: hsla(0, 0%, 100%, .5)
}

.chtitle span {
    color: #fff
}

.chtitle:after {
    content: "";
    display: block;
    width: 10%;
    height: 5px;
    background-color: hsla(0, 0%, 100%, .5);
    margin-top: 10px;
}

#clear {
    background-color: #222222;
    border-radius: 20px;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: 1px #3c3c3c solid;
}

#avatar {
    height: 200px;
    width: 340px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(to right, rgba(34, 34, 34, 0) 0%, rgba(34, 34, 34, 0) 180px, rgba(34, 34, 34) 340px), url('../img/other/logo.jpg');
}

#persontag {
    padding: 20px 20px 20px 80px;
    line-height: 40px;
    font-size: 15.5px;
    position: absolute;
    right: 0;
    top: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(34, 34, 34, 0.6) 80px);
    width: 380px;
    color: rgba(255, 255, 255, 0.8);
}

.find a {
    color: #fff;
    text-decoration: none;
    flex-basis: 120px;
    margin: 0 13px 13px 0;
    position: relative;
    flex-grow: 1;
    transition: 0.3s;
}

.find a:hover {
    flex-grow: 8;
    transition: 0.6s;
}

a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.find {
    width: calc(100% + 20px);
    margin-bottom: 10px;
}

#linkbox {
    display: flex;
    flex-wrap: wrap;
}

.inner span {
    font-size: 0.8em;
    /* 设置文本的基本字体大小 */
}

@media screen and (max-width: 768px) {

    /* 针对手机屏幕尺寸 */
    .inner span {
        font-size: 0.6em;
        /* 在手机尺寸下设置为原始大小的60% */
    }
}

.find .item {
    position: relative;
    height: 80px;
    line-height: 80px;
    transition: all .2s;
    overflow: hidden;
    opacity: 1;
    border-radius: 10px;
    box-shadow: 0 6px 12px -3px var(--color);
}

.item span {
    position: absolute;
    left: 30px;
    letter-spacing: .1em;
    font-weight: bold;
}

.find .item .inner {
    position: relative;
    z-index: 5;
    height: 80%;
}

.find .item .bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    transition: all .15s;
    height: 100%;
}

.find .item i {
    font-size: 80px;
    position: absolute;
    right: 10px;
    bottom: -20px;
    color: rgba(255, 255, 255, 0.35);
    transition: 0.6s;
    filter: blur(10px);
}

.find a:hover i {
    bottom: 0;
    font-size: 35px;
    color: #fff;
    right: 20px;
    filter: blur(0px);
}

.find .item span {
    display: inline-block;
    width: 80px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

.find .item:hover span {
    color: white;
    transition: 0.6s;
}

#persontag .tag {
    display: inline-block;
    transition: 0.3s;
}

#persontag .tag:hover {
    margin: 0 5px;
    transition: 0.6s;
}

#morelink {
    right: 16px;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 5;
}

#background {
    transition: background-image 0.5s ease-in-out;
}

#bg {
    transition: background-image 0.5s ease-in-out;
}

.bt {
    border-radius: 32px;
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    margin: 0 5px;
    height: 32px;
    width: 32px;
    text-align: center;
    line-height: 32px;
    position: absolute;
    transition: 0.1s;
}

.bt:hover {
    transition: 0.1s;
    transform: scale(1.1);
}

.bt i:hover {
    color: white;
}

.bt i {
    display: block;
    font-size: 23px;
    color: rgba(255, 255, 255, 0.5);
}

.workbox {
    height: 200px;
    border-radius: 20px;
    width: 100%;
    white-space: nowrap;
    background-color: #222222;
    overflow-x: auto;
    /* 确保横向滚动正常 */
    overflow-y: hidden;
    /* 隐藏垂直滚动条 */
    box-shadow: inset 0 0 30px rgba(18, 18, 18);
    -webkit-overflow-scrolling: touch;
    /* 使在移动设备上滚动更流畅 */
    scrollbar-width: thin;
    /* Firefox: 设置滚动条宽度 */
    scrollbar-color: #444444 transparent;
    /* Firefox: 滚动条颜色 */
}

/* Webkit 浏览器的滚动条样式 */
.workbox::-webkit-scrollbar {
    height: 8px;
    /* 设置滚动条高度 */
    background: transparent;
    /* 默认背景透明 */
}

.workbox::-webkit-scrollbar-thumb {
    background: transparent;
    /* 默认滚动条透明 */
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}

.workbox:hover::-webkit-scrollbar-thumb {
    background: #444444;
    /* 在悬停时显示滚动条颜色 */
}

#first,
#last {
    width: 60px;
    height: 160px;
    display: inline-block;
    margin: 20px 18px 20px 0;
    background-color: #272727;
    border: 1px #2e2e2e solid;
    position: relative;
    transition: transform 0.3s;
    will-change: transform;
}

#first:hover,
#last:hover {
    transform: scale(1.1);
}

#first {
    border-radius: 0 20px 20px 0;
    border-left: none;
}

#last {
    border-radius: 20px 0 0 20px;
    margin-right: 0;
    border-right: none;
}

#first i,
#last i {
    color: transparent;
    transition: color 0.6s;
    font-size: 30px;
    line-height: 160px;
    width: 58px;
    text-align: center;
    display: block;
}

#first:hover i,
#last:hover i {
    color: rgba(255, 255, 255, 1);
}

.project {
    height: 160px;
    width: 208px;
    background-color: #272727;
    border-radius: 20px;
    display: inline-block;
    margin: 20px 18px 20px 0;
    border: 1px #2e2e2e solid;
    position: relative;
    padding: 20px;
    vertical-align: top;
    transition: transform 0.3s ease;
    will-change: transform;
}

.project:hover {
    transform: scale(1.1);
}

.project i {
    display: block;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.277);
    position: absolute;
    top: 20px;
    right: 30px;
}

.project h3 {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

.project h3:hover {
    text-decoration: underline;
    color: rgb(255, 255, 255);
}

.project p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.language {
    position: absolute;
    bottom: 25px;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.language div {
    display: inline-block;
    font-size: 13px;
}

.language div::before {
    content: '';
    background-color: var(--color);
    height: 10px;
    width: 10px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 5px;
}

.workbox span {
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: .2em;
    font-weight: bold;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    writing-mode: vertical-lr;
    line-height: 50px;
    text-align: center;
    height: 160px;
    transition: transform 0.3s;
    /* 修改过渡效果 */
}

.workbox span:hover {
    transform: scale(1.1);
    /* 鼠标悬停时放大到原来的1.1倍 */
}

#first:hover span,
#last:hover span {
    color: transparent;
    transition: 0.6s;
}

@media screen and (max-width:1400px) {
    #background {
        background-size: 240vh;
    }
}

@media screen and (max-width:720px) {
    .main {
        width: 100vw;
        padding: 10px;
        background: rgba(32, 32, 32, 0.4);
    }

    .find a {
        flex-basis: calc(32vw - 45px);
    }

    @keyframes op2 {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 0.1;
        }
    }

    #background {
        filter: brightness(0.5);
        background-position: center;
        background-size: cover;
        width: 100%;
        height: 100%;
        top: 0 !important;
        left: 0 !important;
    }

    #bg {
        filter: brightness(0.5);
        background-position: center;
        background-size: cover;
        width: 100%;
        height: 100%;
        left: 0 !important;
    }
}

@media screen and (max-width: 570px) {
    #persontag {
        width: 100%;
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(34, 34, 34, 0.4) 100%);
        padding: 20px 20px 20px calc(100vw - 340px);
    }

    .item span {
        left: 10px;
    }

    #persontag {
        z-index: 3;
        opacity: 1;
    }

    .find a {
        flex-basis: calc(45vw - 70px);
    }
}

@media screen and (max-width: 360px) {
    .find .item span {
        font-size: calc(6vw - 8px);
    }

    #persontag {
        font-size: calc(5.5vw - 4px);
        padding-left: 20px;
    }
}

@keyframes op1 {
    0% {
        opacity: auto
    }

    100% {
        opacity: 0;
    }
}

@keyframes op2 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: auto;
    }
}

.ap {
    animation: op2 0.4s;
}

.dap {
    animation: op1 0.4s;
}

#terminal {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999999;
    display: block;
    transition: opacity .3s linear;
    opacity: 0;
    width: 12px;
    height: 12px;
    transform: translate(1px, 1px);
}

.cursor.moving {
    opacity: 1;
}

.cursor::before {
    content: ' ';
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    top: 0;
    left: 0;

    opacity: 1;
    transition: opacity .3s linear;
    box-shadow: rgba(255, 255, 255, 0.5) 0 0 20px;
    transition: opacity 250ms linear, transform 300ms linear, border 300ms linear;
}


.cursor.expand::before {
    transform: scale(3);
    opacity: 0;
}


/* 鼠标样式 */
.node {
    pointer-events: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: block;
    transition: opacity .3s linear;
    opacity: 0;
    z-index: 9999999;
    width: 16px;
    height: 16px;
}

.node.moving {
    opacity: 1;
    z-index: 999999999;
    /* 显示在所有图层最上层 */
}

@media screen and (max-width: 768px),
(display-mode: standalone) {
    * {
        cursor: pointer;
    }

    a {
        cursor: crosshair;
    }

    .button {
        cursor: pointer;
    }
}

.node::before {
    content: ' ';
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: transparent;
    border-radius: 50%;
    top: 0;
    left: 0;
    border: 1px solid #ffffff;
    transform: scale(1);
    opacity: 1;
    transition: opacity 150ms linear, transform 300ms cubic-bezier(0.68, -0.55, 0.27, 1.55), border 300ms linear, background-color 150ms linear;
}


.node.expand::before {
    transform: scale(1.0);
    background-color: #ffffff;
    opacity: 0.2;
}

/* 向下滑动提示 */
.scroll-down {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    opacity: 0.7;
}

.scroll-down span {
    display: block;
    margin-bottom: 5px;
}

.scroll-down svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

@media (max-width: 768px) {
    .scroll-down {
        display: block;
    }
}

/* 数字时钟 */
.clock {
    display: none;
    position: fixed;
    top: 11%;
    right: 29%;
    text-align: center;
    font-size: 19px;
    color: #faf5f5;
    border-radius: 8px;
    overflow-y: hidden;
    overflow-x: hidden;
    border-style: solid;
    border-width: 4px;
    border-color: #d6d5d5bd;
    background-color: #0e0d0dc1;
    padding: 8px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.5s ease-in-out;
    /* 添加transform的过渡效果 */
    transform: scale(1);
    /* 默认缩放比例 */
}

.clock.show {
    opacity: 1;
}

.clock:hover {
    /* 鼠标滑过时的样式 */
    transform: scale(1.1);
    /* 放大10% */
}

@media (min-width: 768px) {
    .clock {
        display: block;
    }
}

/* footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 10px;
    color: #f1ebeb;
    text-align: center;
    display: none;
    /* 初始时隐藏 */
}

#low-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: -9999;
}

.loading {
    /* 定义图片加载动画样式 */
    background-image: url('../assets/logoDiv/Ghosts.gif');
    background-size: cover;
}

/* 引入B站收藏 */
.bilibiliindex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #323232;
    border: 2px solid #212020;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(46, 45, 45, 0.5);
}

.bilibilititle-left,
.bilibilititle-right {
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 20%;
    /* 宽度可以调整，以适应你的布局 */
    margin: 0 10px;
    /* 左右边距 */
    flex-direction: column;
    /* 垂直排列 */
}

.bilibilititle-left img,
.bilibilititle-right img {
    width: 100%;
    /* 设置图片宽度为100%，以填充容器 */
    height: auto;
    /* 保持图片原始高度 */
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

.bilibilititle-left img:hover,
.bilibilititle-right img:hover {
    transform: scale(1.1);
    /* 鼠标悬停时放大1.1倍 */
}

/* 引入游戏容器 */
.gamendex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #323232;
    border: 2px solid #212020;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(46, 45, 45, 0.5);
}

/* 默认隐藏这些元素 */
.pc-only {
    display: none;
}

/* 在PC尺寸（例如宽度大于768px）下显示这些元素 */
@media (min-width: 768px) {
    .pc-only {
        display: block;
    }
}