h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*全局样式*/
:root {
    --md-card-border-radius: 12px;
    --md-card-active-border-radius: 24px;
    --background-image-primary: linear-gradient(45deg, #FF38B5 0%, #EC7AFE 100%);
    --background-color-primary: #e135b9;
}
/*覆盖默认值*/
.m-menu__content, .m-card, .m-sheet.m-card, .m-slide-group__wrapper, .m-dialog {
    border-radius: var(--md-card-border-radius);
}

.m-application a {
    color: inherit !important;
    text-decoration: auto;
}

.m-footer a:hover {
    text-decoration: underline;
}

.m-footer {
    display: flex;
    justify-content: center;
    font-size: small;
    padding: .5rem;
    background-image: var(--background-image-primary);
    color: white !important;
}

.m-main {
    padding-bottom: 36px;
    padding-top: 64px;
}
/*导航栏*/
.app-bar-card {
    background-image: var(--background-image-primary);
}

    .app-bar-card > div {
        justify-content: space-between;
        color: white;
    }

    .app-bar-card .logo-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: white !important;
        text-decoration: none !important;
    }

        .app-bar-card .logo-card img {
            height: 40px;
            width: 40px;
            border-radius: 10px;
        }

        .app-bar-card .logo-card .name-card {
            font-size: x-large;
            font-weight: bold;
        }

    .app-bar-card .tabs-card .m-btn__content {
        font-size: larger;
    }

    .app-bar-card .tabs-card {
        display: flex;
        gap: .5rem;
        align-items: center;
    }

.user-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/*用户卡片*/
.user-info-card .head-card img {
    width: 80px;
    border-radius: 50%;
}

.user-info-card {
    display: flex;
    padding: 1rem;
    width: 300px;
    gap: .5rem;
    flex-direction: column;
}

    .user-info-card .head-card {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        align-items: center;
    }

        .user-info-card .head-card .content-card {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .user-info-card .head-card .name-card {
            font-size: larger;
            font-weight: bold;
        }

        .user-info-card .head-card .text-card {
            text-align: center;
            font-size: small;
        }

    .user-info-card .action-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
/*表格*/
.theme--light.m-data-table {
    margin: 3px;
    border-radius: 12px;
}
/*游戏列表*/
.game-list-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.game-item-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .game-item-card img {
        width: 100%;
        border-radius: 12px;
    }

    .game-item-card .name-card {
        font-weight: bold;
    }

    .game-item-card .tags-card {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

        .game-item-card .tags-card > div {
            padding: 0 .5rem;
            font-size: small;
            color: var(--background-color-primary);
        }

        .game-item-card .tags-card > div, .games-page .tag-list-card > div {
            border: 2px solid transparent;
            border-radius: 4px;
            background-clip: padding-box, border-box;
            background-origin: padding-box, border-box;
            background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
        }

            .game-item-card .tags-card > div:hover {
                cursor: pointer;
                background-image: var(--background-image-primary);
                color: white;
            }

.admin-page, .game-list-card {
    max-width: 1200px;
    justify-self: center;
    width: 100%;
    padding: 1rem;
}
/*标签列表*/
.games-page .tag-list-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 0 0 4rem 0;
    width: 50%;
    justify-self: center;
}

    .games-page .tag-list-card > div {
        font-size: large;
        font-weight: bold;
        color: var(--background-color-primary);
        padding: .2rem 1.5rem;
        border-radius: 12px;
    }

        .games-page .tag-list-card > div:hover, .games-page .tag-list-card > div.active {
            cursor: pointer;
            background-image: var(--background-image-primary);
            color: white;
        }
/*主页*/
/*头部*/
.home-head-card {
    display: flex;
    flex-direction: column;
}

    .home-head-card .image-card {
        display: flex;
        position: relative;
    }

        .home-head-card .image-card .img-btn {
            background-image: url(https://res.cngal.org/images/expo/btn_1.png);
            position: absolute;
            left: 63%;
            top: 80%;
            width: 15%;
            height: 7%;
            background-size: contain;
        }

            .home-head-card .image-card .img-btn:hover {
                background-image: url(https://res.cngal.org/images/expo/btn_2.png);
            }

        .home-head-card .image-card img:first-child {
            width: 100%;
        }

        .home-head-card .image-card img:nth-child(2) {
            width: 40%;
        }

    .home-head-card .post-card {
        display: flex;
        justify-content: space-evenly;
        background-image: var(--background-image-primary);
        padding: .5rem;
        font-weight: bold;
        color: var(--m-theme-primary);
        align-items: center;
    }

        .home-head-card .post-card div:nth-child(1) {
            font-size: x-large;
        }

        .home-head-card .post-card div:nth-child(2) {
            font-size: large;
        }

        .home-head-card .post-card .button-card {
            border: 3px solid var(--m-theme-primary);
            padding: .3rem 3rem;
            cursor: pointer;
            transition: .5s;
            border-radius: 15px;
        }

            .home-head-card .post-card .button-card:hover {
                color: white;
                background-color: var(--m-theme-primary);
            }

.cngal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

    .cngal-card span:nth-child(1) {
        background-image: var(--background-image-primary);
        -webkit-background-clip: text;
        -moz-background-clip: text;
        -ms-background-clip: text;
        color: transparent;
        font-size: xxx-large;
        font-weight: bold;
        padding-right: 52rem;
    }

    .cngal-card span:nth-child(2) {
        text-align: center;
        font-size: xx-large;
        font-weight: bold;
        background-image: var(--background-image-primary);
        -webkit-background-clip: text;
        -moz-background-clip: text;
        -ms-background-clip: text;
        color: transparent;
    }

    .cngal-card span:nth-child(3) {
        background-image: var(--background-image-primary);
        -webkit-background-clip: text;
        -moz-background-clip: text;
        -ms-background-clip: text;
        color: transparent;
        font-size: xxx-large;
        font-weight: bold;
        padding-left: 52rem;
    }
/*简介*/
.home-brief-card {
    display: flex;
    flex-direction: column;
}

    .home-brief-card .actions-card {
        display: flex;
        justify-content: space-evenly;
        gap: 2rem;
        padding: 0 2rem;
    }

    .home-brief-card .content-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4rem 2rem;
        gap: 1rem;
    }

    .home-brief-card .title-card {
        font-size: xx-large;
        font-weight: bold;
    }

    .home-brief-card .text-card {
        font-size: larger;
        text-align: center;
    }

        .home-brief-card .text-card a {
            color: var(--m-theme-primary) !important;
            text-decoration: auto;
        }

    .home-brief-card .image-card {
        width: 70%;
        align-self: center;
        border-radius: 12px;
    }
/*赞助商*/
.home-sponsors-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

    .home-sponsors-card .sponsors-card, .home-sponsors-card .media-partners-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
    }

    .home-sponsors-card .title-card {
        font-size: xx-large;
        font-weight: bold;
        padding: 4rem;
    }

    .home-sponsors-card .items-card {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .home-sponsors-card .image-button-card {
        width: 30%;
        border-radius: 12px;
    }

    .home-sponsors-card .media-partners-card .image-button-card {
        width: 22%;
    }
/*图片按钮*/
.image-button-card {
    display: flex;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

    .image-button-card img {
        width: 100%;
        transition: .5s;
    }

    .image-button-card:hover img {
        transform: scale(1.1);
    }

    .image-button-card .name-card {
        position: absolute;
        color: white;
        font-size: xx-large;
        font-weight: bold;
        background-color: #00000036;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
/*下划线*/
.home-page .title-card span, .games-page .title-card span, .lottery-page .title-card span, .contact-card .title-card span, .questionnaires-page .title-card span, .contact-card .title-card span, .questionnaire-detail-page .title-card span, .contact-card .title-card span {
    background: var(--background-image-primary) no-repeat right bottom;
    background-size: 100% 3px;
    transition: background-size 1000ms;
    padding-bottom: .5rem;
}
/*随机推荐*/
.game-random-card .content-card .game-item-card {
    min-width: 250px;
    max-width: 250px;
}

.game-random-card .content-card .m-slide-group__content {
    gap: 1rem;
}

.games-page .title-card, .game-random-card .title-card, .contact-card .title-card {
    display: flex;
    justify-content: center;
    font-size: xx-large;
    font-weight: bold;
    padding: 3rem;
}

.game-random-card .content-card {
    padding: 0 2rem;
}

.game-random-card .title-card {
    padding-bottom: 1rem;
}

.game-random-card .action-card {
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
    padding-bottom: 1rem;
}
/*slide*/
.game-random-card .content-card .m-icon.m-icon {
    border: 4px solid transparent;
    border-radius: 50%;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
    /* padding: .5rem; */
    /* margin: .5rem; */
    color: var(--background-color-primary) !important;
    font-size: 36px;
    transition: .3s;
}

.game-random-card .content-card .m-slide-group__next, .m-slide-group__prev {
    flex: 0 1 90px;
    min-width: 90px;
}

.game-random-card.content-card .m-icon.m-icon--disabled {
    background-image: linear-gradient(to right, #ffffff, #ffffff), linear-gradient(to right, gray, gray);
    color: gray !important;
}

.game-random-card .content-card .m-slide-group__wrapper {
    border-radius: 0px;
}

/*抽奖*/
.lottery-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

    .lottery-page .cngal-card span:nth-child(1) {
        padding-right: 30rem;
    }

    .lottery-page .cngal-card span:nth-child(3) {
        padding-left: 30rem;
    }

    .lottery-page .title-card {
        display: flex;
        justify-content: center;
        font-size: xx-large;
        font-weight: bold;
        padding-bottom: 3rem;
    }

    .lottery-page .booking-card {
        display: flex;
        width: 100%;
        max-width: 800px;
        justify-content: space-between;
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }

    .lottery-page .lottery-tasks-card {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

        .lottery-page .lottery-tasks-card .task-card {
            border: 2px solid transparent;
            background-clip: padding-box, border-box;
            background-origin: padding-box, border-box;
            background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
            border-top-right-radius: 24px;
        }

            .lottery-page .lottery-tasks-card .task-card > div {
                display: flex;
                justify-content: space-between;
                padding: .5rem 1rem;
                background: linear-gradient(45deg, #ff9aec33 0%) no-repeat;
                background-size: calc(100% - 200px) 100%;
                margin: 5px;
                align-items: center;
            }

            .lottery-page .lottery-tasks-card .task-card .name-card {
                font-size: larger;
            }

            .lottery-page .lottery-tasks-card .task-card .action-card {
                border: 2px solid transparent;
                background-clip: padding-box, border-box;
                background-origin: padding-box, border-box;
                background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
                padding: .5rem 3rem;
                display: flex;
                align-items: center;
                color: var(--background-color-primary) !important;
                font-size: larger;
                cursor: pointer;
            }

                .lottery-page .lottery-tasks-card .task-card .action-card:hover, .lottery-page .lottery-tasks-card .task-card .action-card.active {
                    background-image: var(--background-image-primary);
                    color: white !important;
                }

                .lottery-page .lottery-tasks-card .task-card .action-card.active {
                    cursor: inherit;
                }

            .lottery-page .lottery-tasks-card .task-card .content-card {
                display: flex;
                align-items: center;
                gap: 3rem;
            }

                .lottery-page .lottery-tasks-card .task-card .content-card i {
                    border: 2px solid transparent;
                    border-radius: 50%;
                    background-clip: padding-box, border-box;
                    background-origin: padding-box, border-box;
                    background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
                    color: var(--background-color-primary) !important;
                    font-size: 36px;
                    padding: 1rem;
                }

            .lottery-page .lottery-tasks-card .task-card .count-card {
                position: absolute;
                width: 67px;
                text-align: center;
                bottom: -2px;
                background-image: var(--background-image-primary);
                left: 4px;
                color: white;
                line-height: 1;
                font-size: larger;
                border-radius: 4px;
            }

            .lottery-page .lottery-tasks-card .task-card .gift-card {
                border: 2px solid transparent;
                border-radius: 50%;
                background-clip: padding-box, border-box;
                background-origin: padding-box, border-box;
                background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
                padding: 2px;
                position: relative;
            }
/*九宫格*/
.lottery-grid-card {
    width: 100%;
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
    border-radius: 12px;
}

    .lottery-grid-card .head-card {
        display: flex;
        justify-content: flex-end;
    }

    .lottery-grid-card .count-card {
        border: 2px solid transparent;
        background-clip: padding-box, border-box;
        background-origin: padding-box, border-box;
        background-image: linear-gradient(to right, #ffffff, #ffffff), var(--background-image-primary);
        border-radius: 12px;
        margin-right: 1rem;
        margin-top: .5rem;
        margin-bottom: .5rem;
        position: relative;
        padding: .1rem 1rem .1rem 1rem;
    }

        .lottery-grid-card .count-card i {
            position: absolute;
            left: -22px;
            top: -7px;
            font-size: 30px;
            color: var(--background-color-primary) !important;
            background-color: white;
        }

        .lottery-grid-card .count-card div {
            line-height: 1;
        }

    .lottery-grid-card .grid-row-card {
        display: flex;
        gap: .5rem;
    }

    .lottery-grid-card .prize-card {
        width: 33%;
        background-color: rgb(255 154 228 / 20%);
        border-radius: 4px;
        padding: .5rem;
        aspect-ratio: 1;
    }

        .lottery-grid-card .prize-card > div {
            width: 100%;
            height: 100%;
            border: 2px dashed #fe7fd982;
            border-radius: 4px;
            padding: .5rem;
            display: flex;
            flex-direction: column;
            gap: .5rem;
            justify-content: center;
        }

        .lottery-grid-card .prize-card.active {
            background-image: var(--background-image-primary);
        }

            .lottery-grid-card .prize-card.active > div {
                border: 2px dashed var(--background-color-primary);
            }

        .lottery-grid-card .prize-card img {
            width: 100%;
        }

    .lottery-grid-card .lottery-content-card {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: 1rem;
    }

    .lottery-grid-card .grid-col-card {
        width: 33%;
        display: flex;
        flex-direction: column;
    }

        .lottery-grid-card .grid-col-card .prize-card {
            width: 100%;
        }

    .lottery-grid-card .action-card {
        width: 33%;
    }

        .lottery-grid-card .action-card > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-image: var(--background-image-primary);
            border-radius: 50%;
            color: white;
            cursor: pointer;
            aspect-ratio: 1;
        }

            .lottery-grid-card .action-card > div div:nth-child(1) {
                font-size: xxx-large;
            }

        .lottery-grid-card .action-card .points-text-card {
            font-size: small;
        }

        /* 禁用状态的抽奖按钮 */
        .lottery-grid-card .action-card.disabled > div {
            background-image: linear-gradient(135deg, #999999, #666666);
            cursor: not-allowed;
        }

            .lottery-grid-card .action-card.disabled > div:hover {
                background-image: linear-gradient(135deg, #999999, #666666);
            }

    .lottery-grid-card .prize-card .name-card {
        text-align: center;
    }

    .lottery-grid-card .divid-card {
        background-image: var(--background-image-primary);
        height: 2px;
    }
/*抽奖按钮*/
.lottery-action-card {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

    .lottery-action-card .button-card {
        background-image: var(--background-image-primary);
        color: white !important;
        padding: .5rem 2rem;
        font-size: larger;
        border-radius: 12px;
        cursor: pointer;
    }
/*联系我们*/
.contact-card {
    max-width: 800px;
    justify-self: center;
    width: 100%;
    padding: 1rem;
}

    .contact-card a {
        color: var(--m-theme-primary) !important;
    }

        .contact-card a:hover {
            text-decoration: underline;
        }
/*周年庆*/
.lottery-anniversary-card {
    padding-top: 4rem;
}

    .lottery-anniversary-card .brief-card a {
        color: var(--m-theme-primary) !important;
    }

        .lottery-anniversary-card .brief-card a:hover {
            text-decoration: underline;
        }

    .lottery-anniversary-card .brief-card {
        font-size: larger;
        justify-self: center;
        padding-bottom: 3rem;
    }
    /*奖品列表*/
    .lottery-anniversary-card .award-list-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        max-width: 1200px;
    }

    .lottery-anniversary-card .award-card {
        width: 24%;
        background-color: rgb(255 154 228 / 20%);
        border-radius: 4px;
        padding: 0.5rem;
    }

        .lottery-anniversary-card .award-card > div {
            width: 100%;
            height: 100%;
            border: 2px dashed #fe7fd982;
            border-radius: 4px;
            padding: .5rem;
            display: flex;
            flex-direction: column;
            gap: .5rem;
            justify-content: center;
            justify-content: space-between;
        }

    .lottery-anniversary-card img {
        width: 100%;
        border-radius: 12px;
    }

.sponsor-card {
    font-size: small;
}

.nav-drawer-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: .5rem;
}

    .user-info-card .divid-card, .nav-drawer-card .divid-card {
        height: 1px;
        background-image: var(--background-image-primary);
    }
/*分段标题*/
.m-border .m-card__title {
    color: black;
}

.h-100 {
    height: 100%;
}

/*问卷页面样式*/
.questionnaires-page {
    padding: 0 1rem;
    margin-bottom: 4rem;
}

.questionnaire-intro-card .intro-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.questionnaire-list-card {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-card {
    text-align: center;
    padding: 4rem 0;
}

/*问卷卡片样式*/
.questionnaire-item-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 1rem;
    max-width: 600px;
    width: 100%;
}

    .questionnaire-item-card:hover {
        transform: translateY(-2px);
    }

    .questionnaire-item-card .questionnaire-image-card {
        position: relative;
        height: 160px;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }

        .questionnaire-item-card .questionnaire-image-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .questionnaire-item-card .questionnaire-image-card .default-image {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background-image: var(--background-image-primary);
        }

    .questionnaire-item-card .questionnaire-title {
        font-size: 1.2rem;
        font-weight: bold;
        line-height: 1.4;
        padding: 1rem 1rem 0.5rem;
    }

    .questionnaire-item-card .questionnaire-description {
        color: #666;
        line-height: 1.5;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .questionnaire-item-card .questionnaire-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

        .questionnaire-item-card .questionnaire-info .info-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: #888;
        }

    .questionnaire-item-card .questionnaire-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

        .questionnaire-item-card .questionnaire-status .end-time {
            font-size: 0.8rem;
            color: #999;
        }

/*问卷详情页样式*/
.questionnaire-detail-page {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
    align-items: center;
}

.questionnaire-header-card .questionnaire-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.questionnaire-header-card .questionnaire-hero .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .questionnaire-header-card .questionnaire-hero .hero-content .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 2rem;
        border-radius: 12px;
        text-align: center;
        backdrop-filter: blur(10px);
    }

        .questionnaire-header-card .questionnaire-hero .hero-content .hero-overlay .questionnaire-title {
            font-size: 2rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .questionnaire-header-card .questionnaire-hero .hero-content .hero-overlay .questionnaire-description {
            font-size: 1.1rem;
            opacity: 0.9;
        }

.questionnaire-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    justify-content: center;
}

    .questionnaire-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #666;
    }

.progress-card .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/*问题卡片样式*/
.question-answer-card {
    margin-bottom: 1rem;
}

    .question-answer-card .question-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

        .question-answer-card .question-header .question-type {
            display: flex;
            gap: 0.5rem;
        }

    .question-answer-card .question-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .question-answer-card .question-description {
        color: #666;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .question-answer-card .question-answer-area {
        margin: 2rem 0;
    }

    .question-answer-card .question-required-hint {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--m-theme-primary) !important;
        font-size: 0.9rem;
    }

    .question-answer-card .text-hint {
        font-size: 0.8rem;
        color: #999;
        margin-top: 0.5rem;
    }

/*答题区域样式*/
.single-choice-area .m-radio,
.multiple-choice-area .m-checkbox {
    margin-bottom: 0.5rem;
}

.rating-area {
    text-align: center;
    padding: 1rem 0;
}

    .rating-area .rating-question {
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .rating-area .rating-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;
        font-size: 0.8rem;
        color: #666;
    }

.ranking-area .ranking-instruction {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #666;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .ranking-list .ranking-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
    }

        .ranking-list .ranking-item:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }

        .ranking-list .ranking-item .ranking-number {
            background: var(--background-color-primary);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .ranking-list .ranking-item .ranking-text {
            flex: 1;
        }

/*问卷完成页样式*/
.questionnaire-completion-card {
    padding: 0 1rem;
}

.completion-main-card {
    max-width: 600px;
    margin: 0 auto;
}

.success-animation {
    margin-bottom: 2rem;
}

    .success-animation .completion-icon {
        animation: checkmark 0.6s ease-in-out;
    }

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

    50% {
        transform: scale(1.2);
    }

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

.completion-title h2 {
    color: #28a745;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.completion-message {
    margin-bottom: 2rem;
    line-height: 1.6;
}

    .completion-message .custom-thank-message {
        font-size: 1.1rem;
        color: #495057;
    }

    .completion-message .default-thank-message {
        font-size: 1rem;
        color: #6c757d;
    }

.completion-stats {
    margin-bottom: 2rem;
}

    .completion-stats .stat-item {
        text-align: center;
        padding: 1rem;
    }

        .completion-stats .stat-item .stat-number {
            font-size: 1.5rem;
            font-weight: bold;
            color: #495057;
            margin: 0.5rem 0;
        }

        .completion-stats .stat-item .stat-label {
            font-size: 0.9rem;
            color: #6c757d;
        }

.completion-actions {
    margin: 2rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.completion-recommendation {
    margin-top: 2rem;
}

    .completion-recommendation .recommendation-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .completion-recommendation .recommendation-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

.share-content p {
    margin-bottom: 1rem;
    color: #6c757d;
}
/*问卷主页*/

.questionnaires-page .title-card {
    display: flex;
    justify-content: center;
    font-size: xx-large;
    font-weight: bold;
    padding: 3rem;
}

.questionnaires-page .cngal-card span:nth-child(1) {
    padding-right: 45rem;
}

.questionnaires-page .cngal-card span:nth-child(3) {
    padding-left: 45rem;
}

.questionnaire-detail-page .title-card {
    display: flex;
    justify-content: center;
    font-size: xx-large;
    font-weight: bold;
    padding: 2rem;
}

.questionnaire-detail-page > div {
    max-width: 900px;
    width: 100%;
}

.questionnaire-hero p {
    justify-self: center;
}

.questionnaire-detail-page .navigation-card .m-btn__content {
    /*    padding-right: .5rem;*/
}

/* 多选排序题样式 */
.multiple-ranking-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .multiple-ranking-area .selection-area {
        background-color: rgba(0, 0, 0, 0.02);
        border-radius: 8px;
        padding: 16px;
    }

        .multiple-ranking-area .selection-area .selection-instruction {
            font-weight: 500;
            margin-bottom: 16px;
            color: rgba(0, 0, 0, 0.87);
        }

        .multiple-ranking-area .selection-area .option-selection {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

    .multiple-ranking-area .ranking-area .ranking-instruction {
        font-weight: 500;
        margin-bottom: 16px;
        color: rgba(0, 0, 0, 0.87);
    }

    .multiple-ranking-area .no-selection-hint {
        text-align: center;
        padding: 20px;
    }

.ranking-list .ranking-item.selected {
    background-color: rgb(210 25 189 / 8%);
    border-color: rgb(210 25 175 / 30%);
}

.ranking-summary, .ranking-list {
    margin-bottom: 1rem;
}

.ranking-summary-list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* "其他"选项样式 */
.option-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
}

.other-option-input {
    width: calc(100% - 2rem);
    max-width: 500px;
}

/*任务链接*/
.lottery-page .lottery-tasks-card .task-card .name-card a {
    color: var(--m-theme-primary) !important;
}

    .lottery-page .lottery-tasks-card .task-card .name-card a:hover {
        text-decoration: underline !important;
    }
/*导航栏*/
.app-bar-card .m-menu__content, .app-bar-card .m-card, .app-bar-card .m-sheet.m-card, .app-bar-card .m-slide-group__wrapper, .app-bar-card .m-dialog {
    border-radius: 0;
}

.app-bar-card .m-tab {
    min-width: 0;
    max-width: 16.67%;
    padding: 0 16px;
    color: white;
    font-weight: bold;
}

.app-bar-card .m-slide-group__content {
    width: 100%;
}

.app-bar-card .theme--dark.m-tabs > .m-tabs-bar .m-tab:not(.m-tab--active) {
    color: unset;
}

.app-bar-card .m-tabs-slider-wrapper {
    display: none;
}

.app-bar-card .theme--dark.m-tabs .m-tab--active::before, .app-bar-card .theme--dark.m-tabs .m-tab--active:hover::before {
    display: none;
}

.app-bar-card .m-ripple__container {
    display: none;
}

.app-bar-card .m-tab--active::after {
    content: '';
    width: 80%;
    height: 80%;
    background: linear-gradient(158deg, #00A3FF 0%, #5DE2FF 100%) no-repeat;
    border-radius: 10px;
    display: flex;
    opacity: 1 !important;
    z-index: -1;
    left: 10%;
    top: 10%;
    position: absolute;
}

.slotMachine-box {
    min-height: calc(100% - 341px);
    width: 848px;
    margin: 0 auto;
}

.slotMachine {
    background: url(https://res.cngal.org/images/expo/raffleBg.png) no-repeat;
    width: 692px;
    height: 313px;
    position: relative;
}

.slotMachine-btn {
    position: absolute;
    right: -156px;
    top: calc(50% - 66px);
}

.slot {
    width: 106px;
    height: 163px;
    overflow: hidden;
    position: absolute;
    background-color: rgba(250,249,250,1);
    top: 103px;
    border: 1px solid rgba(253,138,197,1);
}

    .slot li {
        display: block;
        width: 106px;
        height: 163px;
        font-size: 72px;
        text-align: center;
        line-height: 163px;
    }

.slot1 {
    left: 185px;
}

.slot2 {
    left: 305px;
}

.slot3 {
    left: 425px;
}

.slot4 {
    left: 545px;
}

.slotAnimation {
    animation: slotSlice 1s linear 0s 1;
}

@keyframes slotSlice {
    0% {
        transform: translateY(0px)
    }

    100% {
        transform: translateY(-4890px)
    }
}

div.prizeTips {
    padding: 1em 0 0;
    text-align: center;
    font-size: 18px;
}

    div.prizeTips > span {
        font-weight: bold;
        color: rgba(253,138,197,1);
        padding: 0 0.5em;
    }

.slotMachine-box ul {
    padding: 0;
}

@media (max-width: 960px) {
    .home-head-card .image-card {
        flex-direction: column;
    }

        .home-head-card .image-card img:first-child, .home-head-card .image-card img:nth-child(2) {
            width: 100%;
        }

    .home-head-card .post-card div:nth-child(1) {
        font-size: inherit;
    }

    .home-head-card .post-card div:nth-child(2) {
        font-size: small;
    }

    .home-head-card .post-card .button-card {
        padding: .3rem 1rem;
    }

    .cngal-card {
        padding: 2rem 1rem;
    }

        .cngal-card span:nth-child(1) {
            font-size: x-large;
            padding-right: 0;
            width: 100%;
        }

        .cngal-card span:nth-child(2) {
            font-size: larger;
        }

        .cngal-card span:nth-child(3) {
            font-size: x-large;
            padding-left: 0;
            width: 100%;
            text-align: right;
        }

    .home-brief-card .actions-card {
        flex-direction: column;
        padding: 0;
    }

    .home-brief-card .content-card {
        padding: 2rem 0;
    }

    .home-brief-card {
        padding: 0 2rem;
    }

    .image-button-card img {
        object-fit: cover;
    }

    .home-brief-card .actions-card .image-button-card {
        height: 5rem;
    }

        .home-brief-card .actions-card .image-button-card:nth-child(1) {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .home-brief-card .actions-card .image-button-card:nth-child(2) {
            border-radius: 0;
        }

        .home-brief-card .actions-card .image-button-card:nth-child(3) {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

    .image-button-card .name-card {
        font-size: x-large;
    }

    .home-brief-card .actions-card {
        gap: 2px;
    }

    .home-brief-card .text-card {
        font-size: large;
    }

    .home-brief-card .image-card {
        width: 100%;
    }

    .home-sponsors-card .items-card {
        flex-direction: column;
        gap: 0;
        row-gap: 1rem;
    }

    .home-sponsors-card .image-button-card {
        width: 100%;
    }

    .media-partners-card .items-card {
        flex-direction: row;
    }

    .home-sponsors-card .media-partners-card .image-button-card {
        width: 48%;
    }

    .home-sponsors-card .sponsors-card, .home-sponsors-card .media-partners-card {
        width: 100%;
        padding: 0 2rem;
    }

    .game-random-card .action-card {
        justify-content: center;
        padding-right: 0;
    }

    .game-random-card .content-card {
        padding: 0;
    }

        .game-random-card .content-card .game-item-card {
            min-width: 120px;
            max-width: 120px;
        }

    .game-item-card .name-card {
        word-break: break-all;
        white-space: pre-wrap;
        font-size: small;
        font-weight: inherit;
    }

    .game-item-card {
        justify-content: space-evenly;
    }

    .games-page .tag-list-card {
        padding: 0 1rem 2rem 1rem;
        width: 100%;
        gap: 1rem;
    }

        .games-page .tag-list-card > div {
            font-size: inherit;
            padding: .1rem 1rem;
        }

    .game-item-card .name-card {
        font-size: inherit;
    }

    .user-info-card {
        padding: 0;
        width: 100%;
    }

    .lottery-page .cngal-card span:nth-child(1) {
        padding-right: 14rem;
    }

    .lottery-page .cngal-card span:nth-child(3) {
        padding-left: 14rem;
    }

    .lottery-grid-card .prize-card .name-card {
        font-size: x-small;
    }

    .lottery-grid-card .prize-card {
        aspect-ratio: inherit;
    }

    .lottery-grid-card .grid-col-card .prize-card {
        min-height: 100%;
    }

    .lottery-grid-card .lottery-content-card {
        padding: 2px
    }

    .lottery-grid-card .prize-card {
        padding: 2px;
    }

        .lottery-grid-card .prize-card > div {
            padding: 2px;
        }

        .lottery-grid-card .prize-card .image-button-card {
            border-radius: 4px;
        }

    .lottery-page .lottery-tasks-card .task-card .action-card {
        padding: .5rem 1rem;
        font-size: inherit;
    }

    .lottery-page .lottery-tasks-card .task-card .content-card {
        gap: 1rem;
    }

        .lottery-page .lottery-tasks-card .task-card .content-card i {
            font-size: 24px;
            padding: .5rem;
        }

    .lottery-page .lottery-tasks-card .task-card .count-card {
        width: 50px;
        left: 0px;
        font-size: inherit;
    }

    .lottery-page .lottery-tasks-card .task-card > div {
        padding: .5rem .5rem;
    }

    .lottery-page .lottery-tasks-card .task-card .name-card {
        font-size: inherit;
        width: calc(100% - 160px);
    }

    .lottery-page .lottery-tasks-card .task-card > div {
        background-size: calc(100% - 100px) 100%;
    }

    .lottery-anniversary-card .brief-card {
        white-space: pre-wrap;
        text-align: center;
    }

    .slotMachine-box {
        transform: scale(0.35) translate(-700px, -200px);
    }

    .lottery-anniversary-card {
        width: 100%;
        overflow: hidden;
    }

        .lottery-anniversary-card .number-card {
            height: 200px;
            overflow: hidden;
        }

        .lottery-anniversary-card .brief-card {
            padding-bottom: 0rem;
        }

    .lottery-page .title-card {
        padding-bottom: 1rem;
    }

    .lottery-anniversary-card .award-card {
        width: 48%;
    }

    .lottery-anniversary-card .award-list-card {
        gap: 0;
        row-gap: 1rem;
        padding-top: 2rem;
    }

    .lottery-anniversary-card .award-card > div {
        justify-content: space-evenly;
    }

    .contact-card .title-card {
        padding: 2rem;
    }

    /*问卷调查*/
    .questionnaires-page,
    .questionnaire-detail-page {
        padding: 1rem 0.5rem 2rem 0.5rem;
    }

    .questionnaire-header-card .questionnaire-hero .hero-overlay {
        padding: 1rem;
    }

        .questionnaire-header-card .questionnaire-hero .hero-overlay .questionnaire-title {
            font-size: 1.5rem;
        }

        .questionnaire-header-card .questionnaire-hero .hero-overlay .questionnaire-description {
            font-size: 1rem;
        }

    .completion-actions {
        flex-direction: column;
        align-items: center;
    }

        .completion-actions .m-btn {
            width: 100%;
            max-width: 280px;
        }

    .questionnaires-page .cngal-card span:nth-child(1) {
        padding: 0;
    }

    .questionnaires-page .cngal-card span:nth-child(3) {
        padding: 0;
    }

    .questionnaire-detail-page .title-card {
        font-size: large;
        padding: .5rem;
    }

    .questionnaire-meta {
        column-gap: .5rem;
        font-size: smaller;
    }

    .question-answer-card .question-title {
        font-size: large;
        margin-bottom: .5rem;
    }

    .question-answer-card .question-answer-area {
        margin: 0;
    }

    .question-answer-card .question-header {
        margin-bottom: 0;
    }

    .ranking-list {
        margin-bottom: .5rem;
    }

        .ranking-list .ranking-item .ranking-number {
            width: 20px;
            height: 20px;
        }

    .other-option-input {
        width: calc(100% - 1rem);
    }

    .ranking-list .ranking-item {
        padding: 0.5rem 1rem;
    }

    .lottery-grid-card .action-card .points-text-card {
        font-size: x-small;
        text-align: center;
        width: calc(100% - 5px);
    }

    .lottery-grid-card .action-card > div div:nth-child(1) {
        font-size: x-large;
    }

    .lottery-page {
        padding-bottom: 2rem;
    }

    .home-head-card .image-card img {
        content: url(https://res.cngal.org/images/expo/mobile_1.png);
    }
    .home-head-card .image-card .img-btn{
        display:none;
    }
}
