@charset "utf-8";

/* 使用自定义字体 */
@font-face {
    font-family: "DIY font";
    src: url("HarmonyOS_Sans_SC_Medium.subset.woff2");
}

* {
    margin: 0;
    padding: 0;
    font-family: "DIY font";
    transition: all 0.2s;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 4px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
    scrollbar-arrow-color: red;
}

::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    scrollbar-arrow-color: red;
}

::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
}

body {
    background-color: #E0E0E0;
    /* 禁止鼠标选择文字 */
    user-select: none;
}

/* 定义主盒子 */
#main-box {
    height: 560px;
    width: 800px;
    border-radius: 50px;
    background: #e0e0e0;
    box-shadow: 20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    padding: 30px;
    /* 让盒子居中 */
    margin: 0 auto;
    margin-top: 70px;
}

/* 定义顶部头像及名称、介绍部分 */
#head {
    padding: 16px 0;
    border-radius: 35px;
    background: #e0e0e0;
    box-shadow: inset 5px 5px 10px #bebebe,
        inset -5px -5px 10px #ffffff;
}

/* 定义头像图片样式 */
#touxiang {
    /* 定义头像的高和宽 */
    height: 110px;
    width: 110px;
    /* 让头像变成圆的 */
    border-radius: 50%;
    /* 将图片转换为块元素并居中 */
    display: block;
    margin: 0 auto;
    /* 定义图片默认旋转速度 */
    transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 1s;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    /* 头像呼吸灯 */
    animation: light 4s ease-in-out infinite;
}

/* 呼吸灯颜色变化 */
@keyframes light {
    0% {
        box-shadow: 0 0 4px #f00;
    }

    25% {
        box-shadow: 0 0 16px #0f0;
    }

    50% {
        box-shadow: 0 0 4px #00f;
    }

    75% {
        box-shadow: 0 0 16px #0f0;
    }

    100% {
        box-shadow: 0 0 4px #f00;
    }
}

/* 当鼠标放到图片上时进行旋转 */
#touxiang:hover {
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: scale(0.9) rotate(720deg);
}

/* 定义昵称样式 */
#nick {
    padding: 8px;
    text-align: center;
    font-size: 30px;
}

#time {
    font-size: 20px;
    font-weight: bold;
    color: lightblue;
    text-align: center;
}

/* 定义一段文字样式 */
#info {
    text-align: center;
}

/* Main-1 开源作品 */
#main-1 {
    margin-top: 20px;
    height: 240px;
    width: 226px;
    border-radius: 35px 3px 3px 35px;
    background: #e0e0e0;
    box-shadow: inset 5px 5px 10px #bebebe,
        inset -5px -5px 10px #ffffff;
    float: left;
    margin-right: 30px;
}

/* Main-2 个人信息 */
#main-2 {
    margin-top: 20px;
    height: 240px;
    width: 276px;
    border-radius: 3px;
    background: #e0e0e0;
    box-shadow: inset 5px 5px 10px #bebebe,
        inset -5px -5px 10px #ffffff;
    float: left;
    margin-right: 5px;
    margin-left: 5px;
}

/* 定义个人信息文字格式 */
.main-2-text {
    padding: 11px 20px;
    height: 18px;
    line-height: 18px;
    transition: all 0.5s;
}

.main-2-text:hover {
    transition: all 1s;
    border-radius: 3px;
    /* border-radius: 50px; */
    background: #e0e0e0;
    box-shadow: 5px 5px 10px #bebebe,
        -5px -5px 10px #ffffff;
}

/* Main-3 个人网站 */
#main-3 {
    margin-top: 20px;
    height: 240px;
    width: 226px;
    border-radius: 3px 35px 35px 3px;
    background: #e0e0e0;
    box-shadow: inset 5px 5px 10px #bebebe,
        inset -5px -5px 10px #ffffff;
    float: left;
    margin-left: 30px;
}

/* 页脚样式 */
#footer {
    height: 30px;
    width: 100%;
    background-color: red;
    float: left;
    border-radius: 35px;
    background: #e0e0e0;
    box-shadow: inset 5px 5px 10px #bebebe,
        inset -5px -5px 10px #ffffff;
    padding-top: 8px;
    margin-top: 30px;
    text-align: center;
}

a {
    text-decoration: none;
    color: #03A9F4;
    transition: all 0.5s;
}

a:hover {
    color: orange;
    transition: all 0.5s;
}

/* 定义Main-1 和 Main-3 的标题样式 */
.title {
    text-align: center;
    margin: 0 auto;
    margin-top: 11px;
    font-size: 20px;
}

/* 定义卡片框架 */
.kapian {
    margin: 0 auto;
    margin-top: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #bebebe,
        -5px -5px 10px #ffffff;
    height: 70px;
    width: 180px;
    line-height: 70px;
    transition: all 0.5s;
}

/* 更改卡片内容标题样式 */
.kapian-title {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0px 10px;
    font-size: 17px;
}

.kapian:hover {
    box-shadow: #616161 0 3px 10px;
    transform: translate(calc(0px), calc(0px - 5px));
    /* 上浮效果 */
    transition: all 0.5s;
}

/* 适配手机端 */
@media only screen and (max-width: 639px) {

    /* 定义主盒子 */
    #main-box {
        height: 1100px;
        width: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* 定义一段文字样式 */
    #info {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Main-1 开源作品 */
    #main-1 {
        width: 100%;
        border-radius: 35px 35px 0px 0px;
        margin-right: auto;
        margin-left: auto;
    }

    /* Main-2 个人信息 */
    #main-2 {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    /* Main-3 个人网站 */
    #main-3 {
        width: 100%;
        border-radius: 3px 3px 35px 35px;
        margin-right: auto;
        margin-left: auto;
    }
}