/**
@author: @Fgaoxing
*/

:root,
body,
html {
    margin: 0;
    padding: 0;
}

/* Make box-sizing predictable across browsers */
*,
*::before,
*::after {
    box-sizing: border-box;
}

header {
    width: 100%;
    height: 75px;
    background-color: #2c5381;
    display: -webkit-box;
    /* Old iOS/Android */
    display: -ms-flexbox;
    /* IE10 */
    display: -webkit-flex;
    /* Safari 6.1+ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

header>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    height: 100%;
}

header .left {
    font-size: 30px;
    padding: 0 20px;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Old Firefox */
    -ms-user-select: none;
    /* IE10+ */
    user-select: none;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    height: 100%;
    align-content: center;
}

.container {
    background-color: #2c5381;
    width: 100%;
    height: calc(100vh - 255px);
    max-height: 450px;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Content area */
.container .content {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    margin: 0 auto;
    font-family: 'Noto Sans SC', 'Noto Sans', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Helvetica Neue', 'Arial', sans-serif;
    /* 优先 Noto（可商用） */
}

.container .content .right {
    align-items: center;
    display: flex;
    justify-content: center;
}

.container .content .left {
    width: 50%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}


.container .content .left h1 {
    color: #fff;
    /* fallback */
    /* Older browsers don't support clamp(): provide sensible fallback first */
    font-size: 6rem;
    font-size: -webkit-clamp(5rem, 0.5rem + 2.5vw, 10rem);
    font-size: clamp(5rem, 0.5rem + 2.5vw, 10rem);
    margin: 0;
}

.container .content .left h2 {
    color: #fff;
    font-size: 3.5rem;
    font-size: -webkit-clamp(3rem, 0.5rem + 2.5vw, 5rem);
    font-size: clamp(3rem, 0.5rem + 2.5vw, 5rem);
    margin: 0;
}

.container .content .left .buttons {
    display: flex;
    align-items: stretch;
    justify-content: center;
    user-select: none;
    text-decoration: none;
    /* max-content not supported everywhere; use auto with inline-flex to shrink to content */
    display: inline-flex;
    width: auto;
    margin-top: 10px;
}

.container .content .left .buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-decoration: none;
    padding: 10px;
    cursor: pointer;
}

.container .content .left .buttons .downbtn {
    background-color: #ffc832;
    color: #000;
}

.container .content .left .buttons .githubtn {
    background-color: #fff;
    color: #000;
    fill: currentColor;
}

.container .content .right code {
    overflow: hidden;
    /* max-content/height: max-content can be unsupported in older engines */
    display: inline-block;
    width: auto;
    height: auto;
    background-color: #0d1927;
    color: #fff;
}

.container .content .right code span {
    background-color: #000;
    padding: 5px;
    width: 100%;
    display: block;
}

.container .content .right code pre {
    margin: 10px 15px;
}

.features {
    background-color: #efefef;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.features>.content {
    height: 100%;
    width: 100%;
    max-width: 1200px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

.features .card {
    width: 33%;
    height: 100%;
    border-right: 1px solid #bbb;
    padding: 20px;
    box-sizing: border-box;
}

.features .card h3 {
    margin: 0;
    margin-bottom: 10px;
}

.features .card:first-child {
    border-left: 1px solid #bbb;
}

.sponsors {
    width: 100%;
    height: 60px;
}

.sponsors>.content {
    height: 100%;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

.sponsors>.content a {
    height: 30px;
    filter: contrast(0.5);
    opacity: .7;
    width: max-content;
    transition: opacity .3s, filter .3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.sponsors>.content a:hover {
    filter: none;
    opacity: 1;
}

.sponsors>.content img {
    height: 100%;
    width: auto;
    /* fit-content fallback */
}

.sponsors>.content span {
    user-select: none;
    color: #000;
    margin-left: 10px;
    font-size: 25px;
    font-weight: 600;
    font-family: 'Noto Sans SC', 'Noto Sans', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Helvetica Neue', 'Arial', sans-serif;
}

@media (max-width: 768px) {
    .container .content {
        flex-direction: column;
    }

    .container .content>* {
        width: 100% !important;
    }

    .container .content .left {
        align-items: center;
        text-align: center;
    }

    .container .content .right {
        opacity: 0;
        user-select: none;
    }

    .sponsors .content {
        flex-wrap: wrap;
    }

    .sponsors>.content a {
        width: 50%;
        margin: 10px 0;
    }
}

@media (max-width: 425px) {
    .features {
        height: auto;
    }

    .features>.content {
        flex-direction: column;
    }

    .features .card {
        width: 100%;
        height: 125px;
        border: none !important;
        border-bottom: 1px solid #bbb !important;
    }

    .sponsors .content {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .sponsors>.content a {
        margin: 10px;
    }
}