* {
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.bg span:not(.bg span:last-child) {
    width: var(--size);
    height: var(--size);
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    backdrop-filter: saturate(50%) blur(5px);
    -webkit-backdrop-filter: saturate(50%) blur(5px);
    background-image: radial-gradient(circle, var(--round-color), transparent);
}

.bg .bg-round-one {
    top: -48px;
    right: -96px;
    --size: 400px;
    --round-color: rgba(110, 155, 255, 0.7);
}

.bg .bg-round-two {
    left: -80px;
    bottom: -80px;
    --size: 480px;
    --round-color: rgba(235, 120, 125, 0.7);
}

.bg .bg-heart {
    top: 32px;
    left: 32px;
    position: absolute;
}

.bg .bg-heart svg {
    filter: blur(5px);
}

main {
    top: 50%;
    left: 50%;
    width: 80%;
    height: 65%;
    padding: 15px;
    position: absolute;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    backdrop-filter: saturate(50%) blur(5px);
    animation: w-h-a1 0.5s ease-out 7s forwards;
    -webkit-backdrop-filter: saturate(50%) blur(5px);
    box-shadow: 20px 0 100px 0 rgba(100, 100, 100, 0.2);
}

.main-body {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 20px 0 100px 0 rgba(100, 100, 100, 0.2);
    -webkit-backdrop-filter: saturate(50%) blur(5px);
    backdrop-filter: saturate(50%) blur(5px);
    animation: w-h-a1 0.5s ease-out 7s forwards;
}

.main-body div {
    z-index: 10;
    position: absolute;
    --absolute-margin: 15px;
}

.main-body div:not(.main-body div:last-child) {
    opacity: .7;
    transform: rotate(var(--rotate-val));
}

.main-body div svg {
    width: 28px;
}

.main-body .top-6 {
    top: var(--absolute-margin);
}

.main-body .bottom-6 {
    bottom: var(--absolute-margin);
}

.main-body .right-6 {
    right: var(--absolute-margin);
}

.main-body .left-6 {
    left: var(--absolute-margin);
}

.main-body .rotate-\[90deg\] {
    --rotate-val: 90deg;
}

.main-body .rotate-\[-90deg\] {
    --rotate-val: -90deg;
}

.main-body .rotate-\[180deg\] {
    --rotate-val: 180deg;
}

.main-body div:last-child {
    gap: 5px;
    display: flex;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    padding: calc(var(--absolute-margin) * 3);
}

.main-body div:last-child svg {
    width: 20px;
}

.main-body div:last-child span {
    color: rgb(239 68 68 / 1);
}

.main-content {
    top: 15px;
    display: flex;
    position: absolute;
    align-items: center;
    border-radius: 20px;
    justify-content: center;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 100px 0 rgba(195, 195, 195, 0.2);
    -webkit-backdrop-filter: saturate(50%) blur(5px);
    backdrop-filter: saturate(50%) blur(5px);
}

.main-content .hero-hello-svg {
    width: 60%;
}

.hero-hello-svg .path {
    fill: none;
    stroke: #333;
    stroke-width: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-hello-svg .path-1 {
    stroke-dasharray: 1850 2000;
    stroke-dashoffset: 1851;
    animation: draw-path-d1b523ab 4s linear 0.5s forwards, show-dot-d1b523ab 0.1s linear 5s forwards;
}

.hero-hello-svg .path-2 {
    stroke-dasharray: 260 1000;
    stroke-dashoffset: 261;
    animation: draw-path-d1b523ab 1s linear 4.5s forwards;
}

.hero-hello-svg .path-3 {
    stroke-dasharray: 100 1000;
    stroke-dashoffset: 101;
    animation: draw-path-d1b523ab 1s linear 5.5s forwards;
}

.hero-hello-svg .path-4 {
    stroke-width: 0;
    animation: show-dot-d1b523ab 0.5s linear 6s forwards;
}

@keyframes draw-path-d1b523ab {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes show-dot-d1b523ab {
    to {
        stroke-width: 18px;
    }
}

nav {
    top: 0px;
    left: 50%;
    width: 90%;
    position: absolute;
    transform: translateX(-50%);
}

.nav-line {
    width: 50%;
    opacity: .5;
    height: 10px;
    display: block;
    cursor: pointer;
    margin: 0px auto;
    margin-top: 15px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 2px 4px 22px #005eeb33;
    border: .5px solid rgb(100 100 100 / 20%);
}

.nav-body {
    left: 50%;
    top: 15px;
    width: 50%;
    min-height: 10px;
    position: absolute;
    transform: translateX(-50%);
}

.nav-body ul {
    opacity: 0;
    display: none;
    padding: 0px 15px;
    align-items: center;
    transform: scale(0);
    justify-content: space-around;
}

.active {
    height: 22px;
    padding: 15px 20px;
    transition: padding 2s ease-in-out,height 2s ease-in-out;
}

nav .active ul {
    display: flex;
    transform: scale(1);
    animation: navShow 2s ease-in-out forwards;
}

@keyframes navShow {
    from {
        opacity: 0;
        padding: 0px 15px;
    }

    to {
        opacity: 1;
        padding: 15px 20px;
    }
}

.nav-body li {
    all: unset;
    line-height: 22px;
}

.nav-body li a {
    all: unset;
    cursor: pointer;
}

footer {
    width: 100%;
    bottom: 0px;
    padding: 10px;
    position: absolute;
}

footer span {
    font-size: 12px;
    color: rgb(100 100 100 / 20%);
}

footer a {
    all: unset;
    cursor: pointer;
    color: rgb(100 100 100 / 20%);
}

footer a:hover,
.nav-body li a:hover {
    color: rgb(110 155 255 / 70%);
}

/* 自适应 */
/* 超小屏幕 */
@media screen and (max-width:768px) {
    .bg .bg-round-one {
        right: -50px;
        --size: 200px;
    }

    .bg .bg-round-two {
        --size: 300px;
        bottom: 10px;
    }

    .bg .bg-heart {
        top: 96px;
        left: -5px;
        width: 200px;
        height: 200px;
    }

    main {
        width: 70%;
        height: 50%;
    }

    footer {
        position: initial;
    }
}

/* 小屏幕 */
@media screen and (min-width:768px) and (max-width:1170px) {
    .main-body div {
        --absolute-margin: 25px;
    }

    .main-body div svg {
        width: 48px;
    }

    .main-body div:last-child {
        gap: 10px;
    }

    .main-body div:last-child svg {
        width: 50px;
    }

    .main-body div:last-child span {
        font-size: 38px;
    }

    .main-content .hero-hello-svg {
        width: 75%;
    }

    footer {
        display: flex;
        justify-content: center;
    }

    footer span {
        font-size: 18px;
    }
}