/* 左右的显示 */
.hidden {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 1.6s;
    overflow: hidden;
    background-color: var(--color2);
}

/* 右边的盒子在上层 */
.hidden.inRight {
    z-index: 1;
    width: 100%;
}

/* 左边的盒子在下层 */
.hidden.inLeft {
    z-index: 2;
    width: 0;
}

/* 放页面的盒子 */
.hidden .view {
    width: calc(100vw - var(--aside-size));
    height: 100%;
    position: relative;
}

/* 右边的盒子左边多一个侧边栏大小的边距 */
.hidden.inRight .view {
    margin-left: var(--aside-size);
}

/* 图片加载 */
.hidden .view .image:not(.noload) {
    position: relative;
}

.hidden .view .image:not(.noload)::after {
    content: "";
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    background-color: var(--color1);
    animation: loadMove 1s infinite;
}

@keyframes loadMove {
    50% {
        border-radius: 50%;
        transform: rotate(90deg) scale(.9);
        opacity: .8;
    }

    100% {
        border-radius: 0;
        transform: rotate(180deg) scale(1);
    }
}

.hidden .view .image.loadFin:not(.noload)::after {
    display: none;
}

/* 侧边栏 */
aside {
    width: var(--aside-size);
    height: 100%;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    background: var(--color1);
    transition: left 1.6s;
    animation: asideShow 1s;
}

@keyframes asideShow {
    0% {
        opacity: 0;
        left: calc(var(--aside-size) * -1);
    }
}

aside .image {
    height: 70%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color1)), url("../images/nav.webp") center/cover no-repeat;
}

aside nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    bottom: 6%;
}

aside nav a {
    cursor: pointer;
    text-align: center;
    padding: 10px 20px;
    margin: 8px 0;
    font-size: 1.1rem;
    transition: all .1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    border-radius: 2px;
    position: relative;
}

aside nav a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    display: none;
    opacity: 0;
    border-radius: 2px;
    animation: afterShow .4s;
}

@keyframes afterShow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

aside nav a:not(.selected):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

aside nav a:not(.selected):hover::after {
    display: block;
}

aside nav .selected {
    background-color: var(--color2);
    color: var(--color1);
}

.sections {
    display: none;
}

/* 首页 - start */
.section1 {
    height: 100%;
    position: relative;
    animation: 1s section1Show forwards;
    animation-delay: .5s;
    opacity: 0;
}

@keyframes section1Show {
    0% {
        opacity: 0;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
    }
}

.section1 .background-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, #47f 10%, #fff);
    z-index: 1;
}

.section1 .background-top .one {
    position: absolute;
    width: 100px;
    height: 40px;
    background-color: #fff;
    border-radius: 50px;
    animation: topMove 3s infinite linear;
    animation-delay: var(--delay);
}

@keyframes topMove {
    0% {
        left: -100px;
    }

    100% {
        left: calc(100% + 100px);
    }
}

.section1 .background-top .one::after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    transform: translateY(-20px);
}

.section1 .background-top.a {
    background: linear-gradient(190deg, #1a1b57 40%, #d46c90);
    z-index: 2;
    opacity: 0;
    animation: showA 15s infinite linear;
}

@keyframes showA {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
        height: 100%;
    }

    40% {
        opacity: 1;
        height: 200%;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.section1 .background-top.a .one,
.section1 .background-top.a .one::after {
    background-color: #999;
}

.section1 .background-top.a .two {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 5px 2px #fff;
    position: absolute;
    animation: star 1.5s infinite linear;
    animation-delay: var(--delay);
}

.section1 .background-top.a .stars {
    animation: showStars 15s infinite linear;
    opacity: 0;
}

@keyframes showStars {
    20% {
        opacity: 0;
    }

    40%,
    60% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }
}

@keyframes star {
    0% {
        opacity: .8;
    }

    50% {
        opacity: .2;
    }

    100% {
        opacity: .8;
    }
}

.section1 .background-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 23%;
    z-index: 3;
    animation: backBottom 15s linear infinite;
}

@keyframes backBottom {
    10% {
        filter: none;
    }

    30%,
    50% {
        filter: brightness(.7) grayscale(.1);
    }

    70% {
        filter: none;
    }
}

.section1 .background-bottom .a {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    animation: bottomMove 2s linear infinite;
    z-index: 3;
}

@keyframes bottomMove {
    0% {
        left: -10%;
    }

    100% {
        left: -35%;
    }
}

.section1 .background-bottom .a div {
    width: 30vw;
    height: 30vw;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    background-color: rgb(89, 133, 255);
    transform-origin: center top;
    transform: scale(1.8);
}

.section1 .background-bottom .a.b {
    top: -6vh;
    z-index: 2;
    animation: bottomMove 1s linear infinite;
    animation-delay: -.5s;
}

.section1 .background-bottom .a.b div {
    background-color: rgb(133, 166, 255);
    transform: scale(1.7);
}

.section1 .background-bottom .a.c {
    top: -12vh;
    z-index: 1;
    animation: bottomMove 1.5s linear infinite;
    animation-delay: -1s;
}

.section1 .background-bottom .a.c div {
    background-color: rgb(166, 190, 255);
    transform: scale(1.6);
}

.section1 .moonsun {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    z-index: 2;
    transform: translateY(50%) scale(1) rotate(0deg);
    transform-origin: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: 15s moonsun infinite linear;
    animation-delay: -4s;
}

@keyframes moonsun {
    100% {
        transform: translateY(50%) scale(1) rotate(360deg);
    }
}

.section1 .moonsun .sun {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: yellow;
    box-shadow: 0 0 5px 5px yellow,
        0 0 10px 10px yellow,
        0 0 20px 20px yellow,
        0 0 40px 40px yellow;
}

.section1 .moonsun .moon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border-left: 10px solid #fff;
    border-top: 10px solid #fff;
    position: relative;
}

.section1 .moonsun .moon::after {
    content: "";
    width: 0;
    height: 0;
    border-radius: 50%;
    position: absolute;
    left: 30%;
    top: 30%;
    box-shadow: 0 0 30px 30px rgba(255, 255, 255, 0.2),
        0 0 50px 50px rgba(255, 255, 255, 0.2),
        0 0 70px 70px rgba(255, 255, 255, 0.2);
}

.section1 .text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 5vh;
    z-index: 4;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    font-size: 2.6rem;
    animation: textMove 10s infinite linear;
    left: -100%;
}

@keyframes textMove {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

/* 首页 - end */

/* 文章 - start */
.section2 {
    height: 100%;
    overflow: auto;
}

.section2 .wap {
    position: relative;
}

.section2 .wap .type {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: show 0.5s forwards;
    animation-delay: .5s;
    padding-top: 50px;
}

.section2 .wap .type .item {
    padding: 8px 18px;
    background-color: #fff;
    margin: 0 15px;
    cursor: pointer;
    border-radius: 2px;
    transition: all .1s;
}

.section2 .wap .type .item.selected,
.section2 .wap .type .item:hover {
    background-color: var(--color1);
    color: #fff;
}

.section2 .wap ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.section2 .wap ul li {
    flex: 0 0 auto;
    width: 48.5%;
    box-sizing: border-box;
    display: flex;
    margin-bottom: 30px;
    padding: 18px;
    background-color: #fff;
    border-radius: 2px;
    cursor: pointer;
    transition: all .1s;
    box-sizing: border-box;
    box-shadow: 0 0 0 3px transparent;
    animation: show 0.5s forwards;
    animation-delay: calc(var(--delay) * .1s + .5s);
    opacity: 0;
}

@keyframes show {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.section2 .wap ul li:hover {
    box-shadow: 0 0 0 2px var(--color1);
}

.section2 .wap ul li .image {
    flex: 2;
    height: 136px;
    object-fit: cover;
}

.section2 .wap ul li .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.section2 .wap ul li .text {
    flex: 3;
    padding: 0 12px;
    margin-left: 6px;
}

.section2 .wap ul li .text h4 {
    font-size: 1.4rem;
    font-weight: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.section2 .wap ul li .text p {
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    height: 42px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.section2 .wap ul li .text div {
    margin-top: 20px;
}

.section2 .wap ul li .text div span {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.section2 .wap ul li .text div span:first-of-type {
    margin-bottom: 5px;
}

.section2 .wap .paging {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-bottom: 50px;
}

.section2 .wap .paging .p {
    margin: 0 10px;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: all .1s;
    animation: show 0.5s forwards;
    animation-delay: calc(var(--delay) * .05s + .5s);
    opacity: 0;
}

.section2 .wap .paging .p:hover,
.section2 .wap .paging .selected {
    background-color: var(--color1);
    color: #fff;
}

.section2 .detail {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color2);
    overflow: hidden;
    transition: all .5s;
    overflow: hidden;
}

.section2 .detail .wap {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.section2 .detail .wap .back {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-top: 50px;
}

.section2 .detail .wap .back span:first-child {
    padding-right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

.section2 .detail .wap .back span:first-child i {
    display: inline-block;
    font-style: normal;
    padding-right: 6px;
    transition: all .1s;
}

.section2 .detail .wap .back span:first-child:hover i {
    transform: translateX(-5px);
}

.section2 .detail .wap .back span:last-child {
    border-left: 1px solid #666;
    padding-left: 15px;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.section2 .detail .wap .content {
    flex: 1;
    height: 0;
    margin-top: 30px;
    padding-bottom: 100px;
    overflow: auto;
}

.section2 .detail .wap .content h3 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    font-weight: normal;
}

.section2 .detail .wap .content .info {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.section2 .detail .wap .content .info span {
    color: #666;
    margin-right: 15px;
    font-size: 1rem;
}

.section2 .detail .wap .content .info span:last-of-type {
    margin-right: 0;
}

.section2 .detail .wap .content .text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    text-indent: 2.2rem;
}

.section2 .detail .wap .content .image {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.section2 .detail .wap .content .image img {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
    /*max-height: 600px;*/
    margin: 0 20px;
    border-radius: 2px;
}

.section2 .detail .wap .content .video {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.section2 .detail .wap .content .video video {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 400px;
    margin: 0 20px;
    border-radius: 2px;
}

.section2 .detail.show {
    top: 0;
}

/* 文章 - end */

/* 关于我 - start */
.section3 {
    height: 100%;
    position: relative;
}

.section3 .wap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section3 .wap .image {
    flex: 0 0 auto;
    height: 600px;
    width: 35%;
    min-width: 300px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: show 1s forwards;
    animation-delay: .5s;
    border-radius: 2px;
}

.section3 .wap .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imgScale 2.5s;
    position: absolute;
    z-index: 1;
}

.section3 .wap .image .clip {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    mix-blend-mode: screen;
}

.section3 .wap .image .clip p {
    font-size: 10rem;
    width: 100%;
    height: 100%;
    background-color: #ddd;
    color: var(--color1);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
}

.section3 .wap .image .clip span {
    width: 500px;
    height: 500px;
    background-color: var(--color1);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    animation: clipShow .5s forwards ease-in-out;
    transform: scale(0);
    animation-delay: 1.5s;
}

@keyframes clipShow {
    100% {
        transform: scale(2);
        background-color: #000;
    }
}

@keyframes imgScale {
    0% {
        transform: scale(10);
    }
}

.section3 .wap .info {
    margin-left: 30px;
}

.section3 .wap .info .group {
    margin-top: 40px;
    border-radius: 2px;
    border: 3px dotted #999;
}

.section3 .wap .info .group:first-child {
    margin-top: 16px;
}

.section3 .wap .info .group h4 {
    font-size: 1.2rem;
    transform: translateY(-50%);
    display: inline-block;
    margin-left: 20px;
    border: 3px dotted var(--color1);
    padding: 5px 10px;
    background-color: var(--color2);
    color: var(--color1);
}

.section3 .wap .info .group span {
    display: block;
    margin-top: 5px;
}

.section3 .wap .info .group p {
    line-height: 1.8;
    margin-top: 5px;
}

.section3 .wap .info .group .content {
    padding: 0 20px 15px;
    margin-top: -12px;
    letter-spacing: 1px;
    text-align: justify;
}

.section3 .show {
    opacity: 0;
    animation: show .5s forwards;
    animation-delay: calc(var(--delay) * .2s + .5s);
}

/* 关于我 - end */

/* 个人推荐 - start */
.section4 {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(138, 187, 243);
    opacity: 0;
    animation: showa 1s forwards;
    animation-delay: .5s;
}

@keyframes showa {
    0% {
        opacity: 0;
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        opacity: 1;
    }
}

.section4 .background {
    --size: 2500px;
    width: var(--size);
    height: var(--size);
    border-radius: 45%;
    background-color: var(--color2);
    position: absolute;
    top: calc(var(--size) / -1.2);
    z-index: 1;
    animation: backgroundMove 2s infinite linear;
}

@keyframes backgroundMove {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(90deg);
    }
}

.section4 .back,
.section4 .next {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background-color: var(--color1);
    color: #fff;
    opacity: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    transition: all .1s;
}

.section4 .back {
    left: 0;
}

.section4 .next {
    right: 0;
}

.section4:hover .back {
    opacity: .6;
    left: 20px;
}

.section4:hover .next {
    opacity: .6;
    right: 20px;
}


.section4 .back:hover,
.section4 .next:hover {
    color: #fff;
    opacity: 1;
}

.section4 .wap {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    z-index: 3;
    height: max-content;
}

.section4 .wap .card {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    display: flex;
    padding: 40px;
    --size: 420px;
    animation: cardShow .8s forwards;
    transform-origin: center bottom;
    opacity: 0;
}

@keyframes cardShow {
    0% {
        opacity: 0;
        transform: rotate(-30deg) translateX(-500px);
    }

    100% {
        opacity: 1;
    }
}

@keyframes cardHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(30deg) translateX(500px);
    }
}

@keyframes cardShow1 {
    0% {
        opacity: 0;
        transform: rotate(30deg) translateX(500px);
    }

    100% {
        opacity: 1;
    }
}

@keyframes cardHide1 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(-30deg) translateX(-500px);
    }
}

.section4 .wap .card .image {
    flex: 0 0 auto;
    width: var(--size);
    height: var(--size);
}

.section4 .wap .card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.section4 .wap .card .video {
    flex: 0 0 auto;
    width: var(--size);
    height: var(--size);
}

.section4 .wap .card .video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.section4 .wap .card .text {
    margin-left: 30px;
    /* height: var(--size); */
}

.section4 .wap .card .text .title {
    display: flex;
    align-items: flex-start;
}

.section4 .wap .card .text .title span {
    flex: 0 0 auto;
    padding: 9px;
    background-color: var(--color1);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border-radius: 2px;
}

.section4 .wap .card .text .title h4 {
    font-size: 2rem;
    margin-left: 10px;
    letter-spacing: 1px;
}

.section4 .wap .card .text .sort {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #333;
}

.section4 .wap .card .text .sort .star {
    width: 20px;
    height: 16px;
    fill: transparent;
    stroke-width: 2;
    stroke: #333;
}

.section4 .wap .card .text .sort .star.selected {
    fill: red;
    stroke: red;
}

.section4 .wap .card .text .sort .star svg {
    transform-origin: left top;
    transform: scale(0.16);
}

.section4 .wap .card .text p {
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: justify;
}

.section4 .wap .card .text a button {
    padding: 10px 20px;
    border: none;
    outline: none;
    color: #fff;
    background-color: var(--color1);
    border-radius: 2px;
    margin-top: 30px;
    cursor: pointer;
    position: relative;
}

.section4 .wap .card .text a button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 0;
    transition: all .1s;
}

.section4 .wap .card .text a button:hover:after {
    opacity: .15;
}

.section4 .wap .btns {
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.section4 .wap .btns li {
    flex: 0 0 auto;
    width: 15px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    margin-right: 10px;
    transition: all .2s;
    cursor: pointer;
    animation: show .5s forwards;
    opacity: 0;
}

.section4 .wap .btns li:last-child {
    margin-right: 0;
}

.section4 .wap .btns li.selected {
    width: 40px;
    background-color: rgba(255, 255, 255, .9);
}

/* 个人推荐 - end */

/* 作品分享 - start */
.section5 {
    height: 100%;
    overflow: auto;
    background: linear-gradient(150deg, var(--color2), var(--color1));
    opacity: 0;
    animation: showa 1s forwards;
    animation-delay: .5s;
}

.section5 .wap ul {
    display: flex;
    flex-direction: column;
    padding: 100px 0;
}

.section5 .wap ul li {
    box-shadow: 0 0 0 3px var(--color1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 50px;
}

.section5 .wap ul li .title {
    height: 50px;
    width: 100%;
    background-color: var(--color1);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section5 .wap ul li .title p {
    font-size: 1.4rem;
    margin-left: 20px;
    font-weight: bold;
}

.section5 .wap ul li .title .btn {
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: #fff;
    border-radius: 2px;
    margin-right: 20px;
    transition: all .1s;
    cursor: pointer;
}

.section5 .wap ul li .title .btn:hover {
    background-color: #fff;
    color: var(--color1);
}

.section5 .wap ul li .title .btn.load {
    display: none;
}

.section5 .wap ul li .body {
    --heihgt: 550px;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all .3s;
    background-color: #fff;
}

.section5 .wap ul li .body iframe {
    width: 100%;
    height: var(--heihgt);
}

.section5 .wap ul li.selected .body {
    height: var(--heihgt);
}

.section5 .wap ul li.selected .title .btn.look {
    display: none;
}

.section5 .wap ul li.selected .title .btn.load {
    display: inline-block;
}

/* 作品分享 - end */