* {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: Noto Sans SC, PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif !important;
    min-height: 100vh;
    background-color: #d6f5ff;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 3.5rem;
    background-color: #d6f5ff;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.logo {
    position: relative;
}

.logo:after {
    background-color: #0093ed;
    height: 0.25rem;
    position: absolute;
    bottom: -0.375rem;
    left: 0px;
    width: 0px;
    -webkit-transition-property: all;
    -o-transition-property: all;
    transition-property: all;
    -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition-duration: 0.15s;
    -o-transition-duration: 0.15s;
    transition-duration: 0.15s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    content: "";
}

.logo:hover:after {
    width: 100%;
}

.logo svg {
    display: block;
    height: 1.5rem;
}

@media (min-width: 640px) {
    header {
        height: 4rem;
    }
}

@media (min-width: 768px) {
    header {
        height: 6rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }
    .logo svg {
        height: 2rem;
    }
}

main {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
}

main .wrapper {
    max-width: 1300px;
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.item {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid currentColor;
    background: currentColor;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 0px 0px 0px var(--box-shadow-color);
}

.item:hover {
    transform: translateY(-6px) translateX(-6px);
    box-shadow: 6px 6px 0px var(--box-shadow-color);
}

.item:active {
    transform: translateY(0) translateX(0);
    box-shadow: 0px 0px 0px var(--box-shadow-color);
}

.item .image {
    background: #fff;
    padding: 10px 50px;
    flex-grow: 1;
    flex-shrink: 1;
    height: 61.8%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item .image img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    min-height: 100px;
}

.item .detail {
    background: currentColor;
    padding: 1rem 1rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    min-height: 38.2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item .detail p {
    margin: 0;
    color: #fff;
}

.item .detail .link {
    text-decoration: underline solid rgba(255, 255, 255, 0.301) 2px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.item .detail .link:hover {
    text-decoration: underline solid #ffffff00 2px;
    background: rgba(255, 255, 255, 0.301);
    border-radius: 10px;
    padding: 1px 10px;
}

.item .detail .link area {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.item .detail .title {
    font-size: 1.3rem;
    font-weight: bold;
}

.item .detail .desc {
    font-size: 1.1rem;
    padding-bottom: 0.3rem;
    text-align: justify;
}

.item .detail .url {
    font-size: 1rem;
    text-align: right;
}

/* ITEM COLOR VARS START */

.item,
.item[data-color="blue"] {
    color: #0193ed;
    --box-shadow-color: #027bc7;
}

.item[data-color="cyan"] {
    color: #66becc;
    --box-shadow-color: #59a7b3;
}

.item[data-color="orange"] {
    color: #fc9c3a;
    --box-shadow-color: #e08a33;
}

.item[data-color="pink"] {
    color: #e14ec6;
    --box-shadow-color: #c949b1;
}

.item[data-color="green"] {
    color: #41b349;
    --box-shadow-color: #20894d;
}

.item[data-color="lp_green"] {
    color: #84C402;
    --box-shadow-color: #6A9E02;
}

.item[data-color="brown"] {
    color: #7a5d5c;
    --box-shadow-color: #684f4e;
}

.item[data-color="red"] {
    color: #d64e55;
    --box-shadow-color: #c2474d;
}

.item[data-color="red2"] {
    color: #FF7D86;
    --box-shadow-color: #FE646F;
}

/* ITEM COLOR VARS END */

/* ITEM SPAN VARS START */

.item[data-grid-key="v-2"] {
    grid-row-start: span 2;
}

.item:not([data-grid-key="v-2"]) img {
    max-width: 40%;
}

.item[data-grid-key="h-2"] {
    grid-column-start: span 2;
}

.item[data-grid-key="h-2"] img {
    max-width: 40%;
}

/* ITEM SPAN VARS END */

/* ITEM VARS START */

.item[data-big-title] .title {
    font-size: 2rem;
}

/* ITEM VARS END */

@media (max-width: 1134px) {
    html {
        font-size: 12px;
    }
    .item .image img {
        height: auto;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 20px;
    }
    main .wrapper {
        grid-gap: 1.375rem;
        display: flex;
        flex-direction: column;
        max-width: 500px;
        margin: 20px 0;
    }
    footer {
        max-width: 550px !important;
    }
    main .wrapper .item {
        grid-column-start: unset !important;
        grid-row-start: unset !important;
    }
    html {
        font-size: 16px;
    }
    main .wrapper .item img {
        width: 50%;
    }
}

footer {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #0092edbe;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 20px;
}

footer a {
    color: #0092edbe;
    text-decoration: none;
}

@media (max-width: 1350px) {
    footer {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
}

@media (max-width: 846px) {
    footer .left {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    footer .left-inner {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 570px) {
    footer .left {
        flex-direction: column-reverse;
    }

    footer {
        flex-direction: column;
        justify-content: start;
        align-items: flex-start;
    }
}

@media (min-width: 1920px) {
    footer .left{
        display: flex;
        grid-gap: 10px;
    }
}

/* Coded By 戴兜 With All of Love */
