/* Index CSS */

#indexBody{
    justify-content: center;
    background-image: url(/img/stars.png);
    background-repeat: repeat;
}

#topImgDiv{
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 18rem;
}

#topImg{
    position: inherit;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 18rem;
}

#topTextSpan{
    position: absolute;
    top: 45%;
    left: 4.2rem;
    width: auto;
    height: auto;
}

.topText{
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 2.6rem;
    font-size: 3.8rem;
    color: #f3e7ff;
    line-height: 1.2;
}

#topButton{
    position: relative;
    top: 0.28rem;
    left: 0.28rem;
    display: block;
    width: 9.3rem;
    height: 3.3rem;
    text-decoration: none;
    background-image: url("/img/topButton.png");
    background-size: cover;
}

#topButtonFilledImg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

#topButton:hover #topButtonFilledImg{
    opacity: 1;
}

#topButtonText{
    position: absolute;
    left: 1.7rem;
    top: 0.7rem;
    font-size: 1.3rem;
    color: #d1a0fe;
    transition: color 0.3s;
    z-index: 1;
}

#topButton:hover #topButtonText{
    color: #ffffff;
}

#topGradientImg{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5.9rem;
}

#serverShowDiv{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 30rem;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

#serverShowTitle{
    position: relative;
    font-size: 1.8rem;
    color: #f3e7ff;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

/* 查询媒体决定显示哪些内容 */
@media screen and (min-width: 992px) {
    #serverShowBox {
        display: flex;
        position: relative;
        width: 90%;
        aspect-ratio: 1 / 0.38;
        height: auto;
        background-color: #0b1420;
        margin: 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 0.8rem;
    }
    #serverShowBoxNarrow {
        display: none;
    }
}
@media screen and (max-width: 991px) {
    #serverShowBox {
        display: none;
    }
    #serverShowBoxNarrow {
        display: block;
        position: relative;
        width: 83%;
        height: auto;
        background-color: #0b1420;
    }
}

.serverShowItem{
    position: relative;
    left: 0;
    top: 0;
    flex: 1 1 0;
    height: 100%;
    box-sizing: border-box;
    text-emphasis: none;
    overflow: hidden;
}

.serverShowItem:first-child {
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
}

.serverShowItem:last-child {
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
}

.serverShowImg{
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s;
    overflow: hidden;
}

.serverShowItem:hover #serverShowMoreImg{
    opacity: 0.7;
}

.serverShowInfo{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    display: block;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s, bottom 0.8s;
}

.serverShowItem:hover .serverShowInfo{
    opacity: 1;
    bottom: 20%;
}

.serverShowInfoTitle{
    position: absolute;
    display: inline-block;
    bottom: 51%;
    left: 0;
    font-size: 1.8rem;
    color: #d1a0fe;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.serverShowInfoText{
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 0;
    font-size: 1.0rem;
    color: #f3e7ff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.4;
}

#serverShowMore{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.serverShowItem:hover #serverShowMore{
    opacity: 1;
}

#serverShowMoreIcon{
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: auto;
}

#serverShowMoreText{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #f3e7ff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.serverShowItemNarrow{
    position: relative;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.7rem;
    background-color: #f3e7ff;
    border-radius: 3rem;
    padding: 0;
    overflow: hidden;
}

.serverShowImgNarrow{
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1.8 / 1;
    opacity: 1;
    transition: opacity 0.3s;
    overflow: hidden;
}

.serverShowItemNarrow:hover .serverShowImgNarrow{
    opacity: 0.85;
}

.serverShowInfoNarrow{
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 87%;
    height: 45%;
    display: block;
}

.serverShowInfoTitleNarrow{
    position: absolute;
    display: inline-block;
    top: 0;
    left: 0;
    font-size: 2.8rem;
    color: #d1a0fe;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9);
}

.serverShowInfoTextNarrow{
    position: absolute;
    display: inline-block;
    top: calc(2.8rem + 10%);
    left: 0;
    font-size: 1.6rem;
    color: #f3e7ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1.4;
}

#serverShowMoreNarrow{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    aspect-ratio: 1 / 0.06;
    display: flex;
    background-color: rgba(155, 146, 163, 0);
    transition: background-color 0.3s;
}

#serverShowMoreNarrow:hover{
    background-color: rgba(155, 146, 163, 0.2);
}

#serverShowMoreIconNarrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 60%;
    height: 60%;
    width: auto;
}

#serverShowMoreTextNarrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 42%;
    font-size: 1.2rem;
    color: #d1a0fe;
}

#footDiv{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; 
    display: block;
    justify-content: center;
}

#footImg{
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    bottom: 0;
}

#footLogo{
    position: absolute;
    bottom: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 7%;
    height: auto;
}

#footTitle{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 10%;
    height: auto;
}

#bottomInfoBox{
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}