/* 清除默认样式 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: #333;
}

.font-small {
    font-size: 0.75rem;
}

html {
    scroll-behavior: smooth;
}

button {
    background-color: rgba(0, 0, 0, 0);
    border: 0;
    cursor: pointer;
}

mark {
    background-color: #ff8c0080;
}

/* 背景 */
/* 背景 */
body {
    font-size: 20px;
    background-image: url('../asset/bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

/* 提示框 */
.modal {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.00, 0.50, 0.15, 1.00);
}


.modal-content {
    height: 60vh;
    width: 50vw;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 0.5rem rgb(222, 222, 222);
    border-radius: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -30vh 0 0 -25vw;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.00, 0.50, 0.15, 1.00);
}

.modal-close {
    height: 1.5rem;
    width: 1.5rem;
    position: relative;
    float: right;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
}

.modal-close img {
    height: 1.5rem;
    width: 1.5rem;
}

.modalTitle {
    height: 2rem;
    border-left: 0.5rem solid rgb(92, 173, 255);
    margin: 2.5rem;
}

.modalTitle p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-left: 0.5rem;
}

.modalHtml {
    height: 40vh;
    margin: 2rem;
    overflow: auto;
}

/* 移动端的边栏 */
.sidebar-inner-cover {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.00, 0.50, 0.15, 1.00);
}

.sidebar-inner {
    height: 100vh;
    width: 50vw;
    backdrop-filter: blur(20px);
    position: absolute;
    left: -5rem;
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.00, 0.50, 0.15, 1.00);
    opacity: 0;
}

.side-card1-inner,
.side-card2-inner,
.side-card3-inner {
    background-image: linear-gradient(to right bottom, rgba(174, 252, 227, 0.5), rgba(136, 186, 170, 0.5));
    /* 页面加载使用的样式 */
    transition: opacity 0.3s ease;
}

.side-card1-inner {
    height: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.side-card2-inner {
    height: 40%;
    background-image: linear-gradient(to right bottom, rgba(174, 252, 251, 0.5), rgba(136, 183, 186, 0.5));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.side-card3-inner {
    height: 30%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* 导航栏 */
/* 导航栏 */
.nav-color {
    width: 100%;
    height: 4rem;
    background-color: transparent;
    position: fixed;
    top: -3rem;
    z-index: 10;
    transition: all 0.3s 0.1s;
}

.nav-color:hover {
    top: 0;
    background-color: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.nav-color:not(:hover) {
    transition-delay: 0s;
}


.nav-color-cover {
    width: 80%;
    height: 1rem;
    background-color: rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 0 0 0.5rem 0.5rem;
    position: fixed;
    top: 0;
    left: 10%;
    z-index: 9;
    transition: all 0.1s;
}

.nav-color:hover~.nav-color-cover {
    top: -1rem;
}

.nav-color:not(:hover)~.nav-color-cover {
    transition-delay: 0.3s;
}

.nav-main {
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-main a {
    font-size: 1rem;
    margin: 0 4%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-main a:hover {
    text-shadow: 0 0 0.25rem #999;
}

.nav-main a img {
    opacity: 0.8;
    height: 1rem;
    margin-right: 0.25rem;
}

#searchForm {
    height: 4rem;
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
}

#searchForm input {
    height: 1.5rem;
    width: 12rem;
    font-size: 1rem;
    color: rgb(128, 128, 128);
    background-color: #00000000;
    border: 0;
    outline: 0;
    margin-right: 1rem;
    padding: 0.5rem;
}

#searchForm input:focus {
    background-color: #00000006;
}

#searchForm button img {
    height: 1rem;
    position: relative;
    top: 2px;
}

.list {
    position: absolute;
    top: 1.55rem;
    left: 2rem;
    display: none;
}

.list img {
    height: 1rem;
}

/* opening区 */
.opening {
    height: 100vh;
    width: 100%;
}

.logo {
    height: 80%;
    font-size: 3rem;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 0.5rem rgb(222, 222, 222);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tomain {
    height: 20%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.tomain img {
    height: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tomain img:hover {
    opacity: 0.8;
}

/* 内容区 */
/* 内容区 */
.main {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* 边栏 */
.sidebar {
    width: 20rem;
}

.side-card1,
.side-card2,
.side-card3 {
    width: 90%;
    border-radius: 2rem;
    margin: 1rem auto;
    background-image: linear-gradient(to right bottom, rgba(174, 252, 227, 0.5), rgba(136, 186, 170, 0.5));
    backdrop-filter: blur(20px);
    /* 页面加载使用的样式 */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.side-card1 {
    height: 8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.board-title {
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: rgb(0, 255, 255);
    text-shadow: 0 0 0.25rem rgb(128, 128, 128);
}

.board-content {
    width: 80%;
    font-size: 1rem;
    margin-top: 1rem;
    color: #333;
    cursor: pointer;
}

.side-card2 {
    background-image: linear-gradient(to right bottom, rgba(174, 252, 251, 0.5), rgba(136, 183, 186, 0.5));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.info img {
    height: 6rem;
    border-radius: 2rem;
    border: 0.15rem solid rgba(0, 255, 255, 0.5);
    transition: all 0.3s;
}

.info img:hover {
    border-radius: 3rem;
    transform: scale(1.1);
}

.info-name a {
    font-size: 1.5rem;
    color: rgb(0, 63, 63);
    text-shadow: 0 0 0.25rem rgb(128, 128, 128);
    margin-left: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.info-name a:hover {
    color: rgb(0, 138, 138);
    text-shadow: 0 0 0.25rem rgb(192, 192, 192);
}

.divide {
    width: 80%;
    height: 0.1rem;
    background-color: rgba(255, 228, 243, 0.8);
    box-shadow: 0 0 5px rgb(128, 128, 128);
    margin: 1rem 0;
}

.famous-saying {
    font-size: 1rem;
    color: rgb(152, 255, 231);
    text-shadow: 0 0 5px rgb(128, 128, 128);
    cursor: pointer;
}

.famous-saying.typing::after {
    content: "|";
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    text-shadow: 0 0 0.25rem white;
    /* 可根据需要调整光标样式 */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.article-info {
    width: 60%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

.ainfo1,
.ainfo2,
.ainfo3 {
    border-left: 0.05rem solid rgb(0, 0, 0);
    padding-left: 0.25rem;
}

.ainfo1>a>div,
.ainfo2>a>div,
.ainfo3>a>div {
    color: rgb(0, 0, 0);
}

.ctgrs,
.tgs {
    cursor: pointer;
}

.ctgr {
    background-color: rgb(245, 255, 255);
}

.ctgr,
.tg {
    font-size: 1rem;
    color: rgb(64, 64, 64);
    line-height: 2rem;
    box-shadow: 0 0 0.25rem gray;
    border-radius: 0.25rem;
    margin: 0.5rem;
    display: inline-block;
    cursor: pointer;
    transition: all 0.1s linear;
}

.ctgr:hover,
.tg:hover {
    box-shadow: 0 0 0.45rem gray;
}

.ctgr-nohover,
.tg-nohover {
    color: rgb(64, 64, 64);
    line-height: 2rem;
    box-shadow: 0 0 0.25rem gray;
    border-radius: 0.25rem;
    margin: 0.5rem;
    display: inline-block;
}

.side-card3 {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-title {
    font-size: 1rem;
    color: #333;
}

.link-title>img {
    height: 1.3rem;
    position: relative;
    top: 0.25rem;
}

.link-original {
    width: 90%;
    margin: 1rem 0;
    display: flex;
    justify-content: space-evenly;
}


.link-original>a>img {
    height: 1rem;
}

.link-friendly {
    font-size: 0.8rem;
}

/* 内容 */
.content {
    width: 61rem;
}

.article-example {
    width: 90%;
    height: 20rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    margin: 1rem auto;
    transition: all 0.3s;
    position: relative;
    /* 页面加载使用的样式 */
    opacity: 0;
}

.article-example:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(144, 144, 144, 0.5);
    transform: translateY(-0.2rem);
}

.art-jump {
    display: block;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.art-title {
    font-size: 2rem;
    line-height: 4rem;
    border-bottom: 0.05rem solid rgb(128, 128, 128);
}

.art-title mark {
    font-size: 2rem;
}

.art-intro {
    width: 90%;
    height: 6rem;
    font-size: 1rem;
    line-height: 2rem;
    text-indent: 2rem;
    color: rgb(128, 128, 128);
    margin-top: 1rem;
    overflow: hidden;
}

.art-meta {
    position: absolute;
    bottom: 2rem;
    color: rgb(128, 128, 128);
    font-size: 0.75rem;
}

.tips-example {
    width: 90%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    margin: 1rem auto;
    padding: 2rem;
    transition: all 0.3s;
    /* 页面加载使用的样式 */
    opacity: 0;
}

.tips-example:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(144, 144, 144, 0.5);
    transform: translateY(-0.2rem);
}

.tips-intro {
    font-size: 1rem;
    line-height: 1.5rem;
    padding-bottom: 2rem;
    color: rgb(64, 64, 64);
    overflow: hidden;
}

.tips-meta {
    position: absolute;
    bottom: 2rem;
    color: rgb(128, 128, 128);
    font-size: 0.75rem;
}

.tips-jump {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    color: rgb(128, 128, 128);
    font-size: 0.8rem;
}

/* 页脚 */
/* 页脚 */
.footer {
    width: 90%;
    height: 8rem;
    background-color: rgba(135, 207, 235, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 2rem 2rem 0 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -45%;
    /* 页面加载使用的样式 */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.foot-content {
    height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.icp-info,
.cpr-info {
    font-size: 0.9rem;
    color: rgba(64, 64, 64, 0.5);
    padding-bottom: 1rem;
}

/* 小边栏 */
.small-bar {
    height: 9rem;
    width: 4rem;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.to-top {
    height: 2.5rem;
    width: 2.5rem;
    background-color: rgb(255, 255, 255);
    border-radius: 0.5rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.to-top:hover {
    box-shadow: 0 0 10px rgb(128, 128, 128);
    background-color: rgb(230, 230, 230);
}

.to-top img {
    height: 2.4rem;
    width: 2.4rem;
}

.night-mod {
    height: 2.5rem;
    width: 2.5rem;
    background-color: rgb(255, 255, 255);
    border-radius: 0.5rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.night-mod img {
    height: 1.6rem;
    width: 1.6rem;
}

.night-mod:hover {
    box-shadow: 0 0 10px rgb(128, 128, 128);
    background-color: rgb(230, 230, 230);
}



/* JS使用 */

/* 导航栏 */
.navShow {
    top: 0;
    background-color: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.navCoverHidden {
    top: -1rem;
}

.modalShow {
    background-color: rgba(0, 0, 0, 0.4);
}

.modalContentShow {
    opacity: 1;
    transform: translateY(3vh);
}

.sidebar-inner-coverShow {
    background-color: rgba(0, 0, 0, 0.4);
}

.sidebar-innerShow {
    opacity: 1;
    transform: translateX(5rem);
}

.formMobile {
    position: absolute;
    top: 4rem;
    right: 0;
    transition: all 0.3s cubic-bezier(0.00, 0.50, 0.15, 1.00);
    display: none;
}

.formMobile input {
    height: 2rem;
    width: 15rem;
    font-size: 1.2rem;
    color: rgb(128, 128, 128);
    background-color: #00000025;
    border: 0;
    outline: 0;
    padding: 0.5rem;
}

.formMobile input:focus {
    background-color: #00000039;
}


/* 媒体查询 */

@media screen and (max-width:1600px) {
    .sidebar {
        display: none;
    }

    #searchInput {
        display: none;
    }

    .list {
        display: inline-block;
    }

    .modal-content {
        height: 50vh;
        width: 60vw;
        margin: -25vh 0 0 -30vw;
    }

    .modalHtml {
        height: 30vh;
    }
}

@media screen and (max-width:1300px) {
    .nav-main a p {
        display: none;
    }

    .modal-content {
        width: 70vw;
        margin-left: -35vw;
    }
}

@media screen and (max-width:650px) {
    .info {
        flex-direction: column;
    }

    .modal-content {
        height: 40vh;
        width: 80vw;
        margin: -20vh 0 0 -40vw;
    }

    .modalHtml {
        height: 20vh;
    }
}