* {
    margin: 0;
    padding: 0;
    /* 设置自动内减 */
    box-sizing: border-box;
    /* 设置所有文本标签的样式为none */
    text-decoration: none;
}

html {
    /* 设置页面平滑滚动 */
    scroll-behavior: smooth;
}

li {
    list-style: none;
}

/* --------------------背景和内容-------------------- */
.box-backdrop {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    background-image: url('../resources/image/001.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    transition: 1s;
    z-index: -1;
}

.box-backdrop div {
    color: #fff;
    text-align: center;
}

.box-backdrop h1 {
    font-family: '楷体';
    font-size: 100px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid #fff;
    margin-top: 10px;
    border-radius: 5px;
    letter-spacing: 2px;
    transition: .2s;
}

.btn:hover {
    transform: scale(.9);
    background-color: rgba(255, 255, 255, 0.2);
}

/* --------------------头部导航栏-------------------- */
.box-head {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    margin: 10px 10px;
    padding: 0 20px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    align-items: center;

    z-index: 9999;
}

.userFM {
    width: 15%;
}

.userFM img {
    vertical-align: middle;
    border-radius: 50%;
    width: 60px;
}

.userFM span {
    padding: 0 5px;
    font-weight: 600;
}

/* 搜索 */
.box-head .search {
    width: 35%;
}

.box-head .search .search-box {
    padding: 0 15px;
    width: 360px;
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
    background-color: rgba(250, 250, 250, 0.2);
    border: 2px solid #ccc;
    outline: none;
    color: white;
    /* 光标颜色 */
    caret-color: white;
}

.box-head .search .search-box:hover {
    background-color: rgba(250, 250, 250, 0.4);
}

.box-head .search .search-btn {
    width: 80px;
    height: 40px;
    color: #fff;
    border-radius: 10px;
    background-color: rgba(250, 250, 250, 0.4);
    border: 2px solid #ccc;
}

.box-head .search .search-btn:hover {
    background-color: rgba(250, 250, 250, 0.6);
}

/* 导航栏 */
.nav {
    width: 50%;
    line-height: 80px;
    text-align: right;
}

.nav a {
    display: inline-block;
    width: 100px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    margin-left: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .2s;
}

.nav .nav-head {
    border-bottom: 4px solid #22ff00;
}

.nav .nav-login {
    background-color: rgba(0, 162, 255, 0.5);
}

.nav a:hover {
    transform: scale(.9);
    box-shadow: 1px 2px 10px 5px rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
}

.nav .nav-login:hover {
    transform: scale(.9);
    box-shadow: 1px 2px 10px 5px rgba(1, 145, 255, 0.5);
    background-color: rgba(0, 145, 255, 0.5);
}

/* --------------------内容部-------------------- */
.box-content {
    margin-top: 100vh;
    padding: 40px 100px;
    border-radius: 20px 20px 0 0;
    background-color: #eee;
}

.box-content h1 {
    color: #4fc2ff;
    text-align: center;
}

.author-blog-box {
    overflow: auto;
}

.author-blog-box ul {
    display: flex;
    /* padding-left: 800px; */
    justify-content: center;
}

.author-blog-box a {
    display: inline-block;
    overflow: hidden;
    width: 200px;
    height: 260px;
    margin: 10px;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 1px 1px 10px rgba(118, 118, 118, 0.5);
    transition: .2s;
}

.author-blog-box a:hover {
    transform: scale(.9);
    box-shadow: 1px 1px 10px 5px rgba(118, 118, 118, 0.5);
}

.author-blog-box img {
    width: 200px;
    height: 100px;
}

.author-blog-box h2 {
    color: #000;
    font-size: 18px;
    font-weight: 800;
}

.author-blog-box p {
    color: #ccc;
    font-size: 12px;
}

/* --------------------底部-------------------- */
.about {
    background-color: #fff;
    overflow: hidden;
}

.about h1 {
    margin: 50px 0 20px;
    font-size: 40px;
    font-family: '楷体';
    text-align: center;
}

.about h2 {
    font-size: 24px;
    text-align: center;
    font-weight: 400;
}

.about h2 span {
    font-family: 'HarmonyOS';
}

.about div {
    text-align: center;
    margin: 10px;
}

.about .btn {
    color: #000;
    border: 1px solid #000;
}

.about .btn:hover {
    transform: scale(.9);
    background-color: rgba(255, 255, 255, 0.2);
}

@font-face {
    font-family: 'HarmonyOS';
    src: url('../font/HarmonyOS_Sans.ttf');
}

/* --------------------侧边滚动条-------------------- */
/* 设置滚动条的宽度和背景色 */
::-webkit-scrollbar {
    width: 0px;
    margin-bottom: 20px;
    background-color: #c9c9c9;
}

/* 设置滚动条的滑块颜色和形状 */
::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
}