body {
    display: flex;
    height: 100%;
    margin: 0;
    flex-direction: column;
    background: url('../assets/bg.png') no-repeat center/cover;
    /* 当内容高度大于图片高度时，背景图像的位置相对于 viewport 固定 */
    background-attachment: fixed;
    user-select: none;
    /* 确保 html 和 body 能撑满整个视口 */
}

/*以下为 header */

#header {
    position: sticky;
    display: flex;
    top: 0;
    z-index: 1145;
    transition: transform 0.4s ease-in-out;
}
.header__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    border-bottom: 1px solid #444; 
    backdrop-filter: blur(10px);
    width: 100%;
    top: 0;
}
.header__bar_text {
    display: flex;
    text-decoration: none;
    color: white;
}
.header__bar_lefter {
    display: flex;
    flex-wrap: nowrap;
    margin-right: auto;
}
.header__bar_logo {
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin: 20px
}
.header__bar_logosvg {
    border-radius: 5%;
}
.header__bar_text--logo {
    display: flex;
    padding: 14px 14px 14px 7px;
    width: max-content;
    vertical-align: middle;
    font-size: large;
    font-weight: 1000;
}
.header__bar_title {
    display: flex;
    list-style-type: none;
    align-items: center;
}
.header__bar_text--navtitle {
    white-space: nowrap;
    padding: 14px;
    font-size: large;
    font-weight: 500;
}
.header__bar_nav {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-left: auto;
    padding: 0;
}
.header__bar_nav li {
    display: flex;
}
.header__bar_text--navlist {
    display: inline-block;
    margin: 0;
    padding: 25px 50px;
    transition: background-color 0.4s;
}
.header__bar_text--navlist::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    margin-top: 4px;
    transition: background-color 0.4s;
}
.header__bar_text--navlist:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4facfe;
    margin: 0 auto;
    margin-top: 4px;
    border-radius: 50px;
    transition: background-color 0.4s;
}

/*以下为 main */

.main {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
    /* 添加这行，让 content 区域自动伸展，把 footer 推到底部 */
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}
.main__text {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: -webkit-max-content;
    height: -moz-max-content;
    height: 1200px;
    margin: 50px;
}
.main__text span {
    display: inline-block;
    vertical-align: middle;
    color: white;
    font-size: 140px;
    font-weight: 800;
}

/*以下为 footer */

.footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: rgb(20, 20, 20);
    padding: 20px;
    border-top: 1px solid #444; 
    border-width: 1px;
}
.footer__link--github {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* 内部对齐伪元素 */
    -ms-flex-negative: 0;
        flex-shrink: 0; /* 防止在大屏压缩时图标变小 */
    width: 50px;
    height: 50px;
    border-radius: 100%; 
    background-color: black;
    -webkit-transition: background-color 0.4s;
    -o-transition: background-color 0.4s;
    transition: background-color 0.4s; 
    /* 定位上下文 */
    position: relative;
    margin: 10px 25px 10px 25px;
}
.footer__link--github:hover {
    background-color: #4facfe;
}
.footer__link--github::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: url("/assets/github-logo-icon.svg") no-repeat center/contain;
}
.footer__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;/* 移动端换行适配 */
    gap: 20px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    margin-left: auto;
}
.footer__info_text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    color: white;
    font-size: 15px;
    vertical-align: middle;
}
.footer__info_subset {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center; 
}
.footer__info_icon {
    display: inline-block;
}
.footer__info_icon--lang{
    height: 30px;
    width: 30px;
    background: url("/assets/lang-ico-dark.svg") no-repeat center/cover;
}
.footer__info_subset--copy {
    white-space: nowrap;
}
.footer__info_subset--page {
    white-space: nowrap;
    gap: 3px;/* 应用于父元素 */
}
.footer__info_text--page {
    font-size: 20px;
    font-weight: 750;
}
.footer__info_icon--page {
    background: url("/assets/github-logo-text.svg") no-repeat center/contain;
    height: 16px;
    aspect-ratio: 360 / 97;
}