/**
 @ *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: #fff;
    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;
    background: #fff;
    text-align: center;
}

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

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

.sponsors {
    background-color: #f8fafc;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.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;
    padding: 20px;
    box-sizing: content-box;
    margin: 8px;
}


.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;
}

.sponsors .signpath {
    font-size: 15px;
    color: #2c5381;
    display: flex;
    flex-direction: row;
    margin: 10px;
}

.sponsors .signpath a {
    font-weight: bold;
    color: #2c5381;
}

.sponsors .signpath img {
    height: 20px;
    width: 20px;
}

.support {
    text-align: center;
}

.support>.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;
    text-align: center;
}

@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;
    }
}

footer {
    background-color: #2c5381;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-info {
    flex: 0 0 300px;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: #ffc832;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.qq-number {
    color: #cbd5e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.qq-number:hover {
    color: #fff;
}

.qq-number i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.copy-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-info h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.footer-info p {
    margin: 10px 0;
    color: #cbd5e0;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .donate-cards {
        grid-template-columns: 1fr;
    }

    .qr-container {
        grid-template-columns: 1fr;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }

    .footer-info {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
    }
}