:root {
    --headfont-size: 20px;
    --headfont-size-small: 18px;
    --margin-size: 40px;
}

body {
    font-family: 'Microsoft YaHei', 'STHeiti', sans-serif;
}

.nav-bar {
    display: flex;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 1px;
}

.logo {
    height: 36px;
    margin-right: 20px;
    margin-left: 10px;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-weight: 100
}

.nav-links li {
    display: inline-block;
    margin-right: var(--margin-size);
    position: relative;
    font-weight: 200
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: var(--headfont-size);
}

.nav-links p {
    color: #fff;
    text-decoration: none;
    font-size: var(--headfont-size);
    margin-right: 20px;
}

.sub-menu {
    display: block;
    position: absolute;
    background-color: #333;
    padding: 10px;
    list-style-type: none;
    left: 0;
    top: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.sub-menu a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: var(--headfont-size-small);
    white-space: nowrap;
}

.sub-menu p {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: var(--headfont-size-small);
    white-space: nowrap;
}

.nav-links li:hover .sub-menu {
    opacity: 1;
    max-height: 200px;
}

.titleImg img {
    width: 400px;
    height: auto;
    margin-left: auto;
}

.titleImg {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.bigfnt p {
    font-size: 60px;
    margin-top: 172px;
    white-space: nowrap;
}

.bigfnt {
/*    display: flex;
    margin-left: auto;*/
    margin-right: auto;
}

.cursor {
    border-right: 2px solid;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.titleImg h1 {
    white-space: nowrap;
    font-weight: 330;
}

.titleImg p {
    font-weight: 330;
}

body {
    background-color: #F0F0F0;
}

.blog-post {
    background-color: rgba(255, 255, 255, 0.8);  /* 微透明的白色 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);  /* 边缘阴影 */
    width: 50%;  /* 宽度 */
    padding: 20px;  /* 内边距 */
    margin: auto;  /* 居中 */
}

.blog-post p {
    font-size: 17px;
    white-space: normal;
}

.blog-post {
    white-space: normal;
}

.center-div {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.code-block {
    font-family: 'Consolas', monospace;
    background-color: #333;
    color: #fff;
    padding: 10px;
}