img {
    vertical-align: bottom;
}

#index--Loading{
    position: fixed;
    background-color: black;
    width: 100%;
    height: 100%;

    opacity: 1;

    z-index: -50;

    animation: loadingFadeOut 0.3s linear 1;
    animation-play-state: paused;
}

#index--LoadingImg{
    width: 100%;
    height: 100%;
    background: url(../images/loading.png) no-repeat center;    
    animation: loadingImgRotate 1s ease-in-out infinite;
}
@keyframes loadingImgRotate{
    0%{
        background-size: 100px 100px;
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }
    30%{
        background-size: 128px 128px;
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }
    100%{
        background-size: 100px 100px;
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}
@keyframes loadingFadeOut {
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}

#index--BackVideo {
    position: relative;
    height: 100dvh;
}

.backvideo {
    position: fixed;
    /*float: left;*/
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    z-index: -100;
}

@media screen and (min-aspect-ratio: 16/9) {
    .backvideo {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-aspect-ratio: 16/9) {
    .backvideo {
        width: auto;
        height: 100%;
    }
}


#index--Header {
    position: absolute;
    z-index: 100;
    width: 100%;
    height: auto;
}

#index--Header::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 100%);
    top: 0;
    height: 100px;
}

#index--HeaderName {
    margin: auto;
    position: relative;
    top: calc(50vh - 128px);
    font-size: 60px;
    color: #fffdee;
    text-align: center;
    width: 1024px;
    height: 256px;

    text-indent: -99999px;
    /* 让文字向前缩进从而不显示在网页中，但通过文字来进行SEO */
    background-image: url(../images/NameLogo01.png);
}

#index--HeaderNavi {
    position: absolute;
    top: 0;
    right: 27px;
    margin-top: 39px;
    list-style: none;
}

.indexNaviItem {
    display: inline-block;
    /* padding: 0 0 0 14px; */
    background: url(../images/Spacer.webp) no-repeat right center;
    background-size: auto 60% !important;
}

#index--NaviLogo--1,
#index--NaviLogo--2,
#index--NaviLogo--CV,
#index--NaviLogo--3,
#index--NaviLogo--4 {
    display: inline-block;
    text-indent: -9999px;
    margin: 0 calc(100dvw * (30 / 1440));
    /* margin: 0 30px; */
    background-size: 100% auto !important;
    background-position: left center;
    background-repeat: no-repeat;

    transition: background-image 0.4s;
}

#index--NaviLogo--1 {
    background-image: url(../images/NaviLogo01.png);
    width: calc(0.3 * 545px);
    max-width: calc(20dvw * (545 / 1440));
}

#index--NaviLogo--1:hover {
    background-image: url(../images/NaviLogo01_hover.png);
}

#index--NaviLogo--2 {
    background-image: url(../images/NaviLogo02.png);
    width: calc(0.3 * 419px);
    max-width: calc(20dvw * (419 / 1440));
}
#index--NaviLogo--2:hover {
    background-image: url(../images/NaviLogo02_hover.png);
}
#index--NaviLogo--CV{
    background-image: url(../images/NaviLogo_CV.png);
    width: calc(0.3 * 419px);
    max-width: calc(20dvw * (419 / 1440));
}
#index--NaviLogo--CV:hover{
    background-image: url(../images/NaviLogo_CV_hover.png);
}
#index--NaviLogo--3 {
    background-image: url(../images/NaviLogo03.png);
    width: calc(0.3 * 545px);
    max-width: calc(20dvw * (545 / 1440));
}

#index--NaviLogo--3:hover {
    background-image: url(../images/NaviLogo03_hover.png);
}

#index--NaviLogo--4 {
    background-image: url(../images/NaviLogo04.png);
    width: calc(0.3 * 798px);
    max-width: calc(20dvw * (798 / 1440));
}

#index--NaviLogo--4:hover {
    background-image: url(../images/NaviLogo04_hover.png);
}

main,
section,
ul {
    display: block;
}

#container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

#index--Contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
}

#index--Contents::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 100%);
    top: 0;
    height: 500px;
}

#index--Contents::after {
    background-color: rgba(0, 0, 0, .5);
    top: 500px;
    height: calc(100% - 500px + 50px);
}

#index--Header::before,
#index--Contents::before,
#index--Contents::after {
    content: "";
    position: absolute;
    width: 100%;
    z-index: -1;
}

#index--Projects,
#index--Skills,
#index--About {
    position: relative;
    height: auto;
}

#index--Projects {
    margin-top: 200px;
}

#index--Skills {
    margin-top: 100px;
}

#index--About {
    margin-top: 100px;
}


.indexContentHeader {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.indexTitle {
    width: 400px;
    height: 250px;
    margin: 0 20px 0 0;
    text-indent: -9999px;
    /* 让文字向前缩进从而不显示在网页中，但通过文字来进行SEO */
}

.indexInfo {
    height: 250px;
    margin: 0 0 0 20px;
    font-size: 24px;
}

#index--ProjectsTitle {
    background-image: url(../images/ProjectsLogo.webp);
}

#index--SkillsTitle {
    background-image: url(../images/SkillsLogo.webp);
}

#index--AboutTitle {
    background-image: url(../images/AboutLogo.webp);
}

.indexInfo01 {
    margin: 80px 0 0 0;
}

.indexInfo02 {
    margin: 0 0 0 -40px;
}

.indexInfo03 {
    margin: 0 0 0 -80px;
}

.indexInfo04 {
    margin: 0 0 0 -120px;
}

.indexInfo01,
.indexInfo02,
.indexInfo03,
.indexInfo04,
.indexInfo05 {
    position: relative;
    display: block;
    font-size: 24px;
}

.indexContentMenu {
    margin: auto;
    width: 100%;
}

.indexContentMenuRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    margin: 40px 0 0 0;
}

.indexContentMenuItem01 {
    width: 700px;
    height: 350px;
}

.indexContentMenuItem02 {
    width: 460px;
    height: 350px;
}

.indexContentMenuItem03 {
    width: 1420px;
    height: 350px;
}
.indexContentMenuItem01,.indexContentMenuItem02,.indexContentMenuItem03{
    margin: 2px 10px;
}

.indexContentMore {
    width: 100%;
    max-width: 1436px;
    margin: 10px auto;
}

.indexContentMoreBox {
    display: flex;
    justify-content: flex-end;
}

.indexContentMoreButton {
    font-size: 24px;
    text-decoration: none;
    margin-left: auto;
    width: fit-content;
    opacity: 1;
}

.indexContentMoreButton:hover {
    opacity: 0.5;
}

.indexContentMenuCell{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    background-size: auto;
}
#index--MenuCell01{
    background: url(../images/MenuItem_01.png) no-repeat center;
}
#index--MenuCell02{
    background: url(../images/MenuItem_02.png) no-repeat center;
}
#index--MenuCell03{
    background: url(../images/MenuItem_03.png) no-repeat center;
}
#index--MenuCell04{
    background: url(../images/MenuItem_04.png) no-repeat center;
}
#index--MenuCell05{
    background: url(../images/MenuItem_05.png) no-repeat center;
}
#index--MenuCell06{
    background: url(../images/MenuItem_06.png) no-repeat center;
}
#index--MenuCell07{
    background: url(../images/MenuItem_07.png) no-repeat center;
}
#index--MenuCell08{
    background: url(../images/MenuItem_08.png) no-repeat center;
}

.indexContentMenuCellInner{    
    box-sizing: border-box; /* 以border范围作为width和height的尺寸衡量标准 */
    border-image: url(../images/MenuItemBorder02.png) 64 fill repeat;
    border-style: solid;
    border-width: 35px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;

    transition-duration: 0.25s;
}
.indexContentMenuCellInner:hover{    
    background-color: rgba(0, 0, 0, 0.7);
}
.indexContentMenuCellHeader{
    position: relative;
    text-indent: -99999px;    
    width: 100%;
    height: 120px;
    top: 80px;
    transition-duration: 0.25s;
}
.indexContentMenuCellInner:hover .indexContentMenuCellHeader{
    top: 0px;
} 
.indexContentMenuCellText{
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 160px;
    top: 0;
    padding-top: 60px;
    font-size: 28px;
    opacity: 0;
    transition-duration: 0.25s;
}
.indexContentMenuCellInner:hover .indexContentMenuCellText{
    padding-top: 20px;
    opacity: 1;
}
#index--MenuCell01 .indexContentMenuCellInner .indexContentMenuCellHeader{  
    background: url(../images/MenuItemHeader_01.png) no-repeat center;
}
#index--MenuCell02 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_05.png) no-repeat center;
}
#index--MenuCell03 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_03.png) no-repeat center;
}
#index--MenuCell04 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_04.png) no-repeat center;
}
#index--MenuCell05 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_02.png) no-repeat center;
}
#index--MenuCell06 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_06.png) no-repeat center;
}
#index--MenuCell07 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_07.png) no-repeat center;
}
#index--MenuCell08 .indexContentMenuCellInner .indexContentMenuCellHeader{
    background: url(../images/MenuItemHeader_08.png) no-repeat center;
}
.indexContentMenuButton{
    float: right;
    background: url(../images/MenuItemButton.png) no-repeat center;
    background-size: 100% auto;
    position: relative;
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 50px;
    opacity: 0;
    transition-duration: 0.25s;
}
.indexContentMenuCellInner:hover .indexContentMenuButton{
    right: 0px;
    opacity: 1;
}

.indexContentAbstract{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 50px auto 0 auto;
    width: fit-content;
}
.indexContentAbstractLine{
    margin: 0 auto;
    width: fit-content;
    font-size: 36px;
    font-weight: 200;
    font-style: italic;
}
.indexContentMaintext{
    margin: 30px auto;
    width: 100%;
    max-width: 1436px;    
}