body {
    min-height: 100vh;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    padding: 0.74rem 0.55rem;
    color: #3D3D3D;
    position: relative;
    /* max-width: 7.5rem;
    margin: auto auto!important; */
}
.container {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.32rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
    /* overflow: hidden; */
    padding-top: 0.3rem;
    padding-bottom: 0.8rem;
}
h1 {
    margin-bottom: 2.4rem;
    font-size: 0.4rem;
    font-weight: bold;
    color: #ffffff;
}
.dt{
    width: 4.5rem;
    height: 3.36rem;
    position: absolute;
    top: 0.24rem;
    right: 0;
    z-index: 2;
}
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.screens{
    display: none;
}
.active {
    display: block;
}
.bqk{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.3rem;
}
.bqk img{
    width: 0.3rem;
    height: 0.3rem;
    display: block;
    margin-right: 0.04rem;
}
.bqk p{
    text-align: center; 
    font-size: 0.24rem;
    color: #91B4FF;
}
.game-info {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.2rem;
    color: #6E64FF;
}
.level-grid {
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* gap: 0.2rem; */
    margin-top: 0.68rem;
}
.level-card {
    width: 2.9rem;
    height: 1.8rem;
    background: #ffffff;
    border-radius: 0.24rem;
    padding-top: 0.24rem;
    text-align: center;
    box-shadow: 0 0.04rem 0.1rem 0 rgba(0, 0, 0, 0.1);;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.02rem solid transparent;
    position: relative;
    overflow: hidden;
    background: url(/image/wks.png);
    background-size: 1.2rem 1.2rem;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: center;
    margin: 0 0.2rem 0.2rem 0.2rem;
}
.level-card:nth-child(2n){
    margin-left: 0;
}
.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.08rem 0.15rem rgba(0, 0, 0, 0.15);
}
.level-card.completed {
    background: url(/image/finished.png);
    background-size: 1.2rem 1.2rem;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: center;
}
.level-card.locked {
    cursor: not-allowed;
    background-color: #E8F0FF;
}
.level-card.locked {
    background-image: url(/image/lock.png);
    background-size: 1.2rem 1.2rem;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: center;
}
.level-card h3 {
    font-size: 0.3rem;
    color: #4a5568;
    text-align: left;
    margin-left: 0.3rem;
    line-height: 0.43rem;
    margin-bottom: 0.2rem;
    font-weight: 400;
}
.level-card p {
    width: 1.03rem;
    height: 0.46rem;
    font-size: 0.18rem;
    color: #718096;
    border-radius: 0.5rem;
    text-align: center;
    line-height: 0.46rem;
    margin-left: 0.31rem;
}
.level-card p.fen{
    color: #FF8118;
    line-height: 0.29rem;
    margin-top: 0.1rem;
}
.level-card p.zi{
    width: auto;
    color: #6E64FF;
    line-height: 0.23rem;
    margin-top: 0.12rem;
    text-align: left;
}
.level-indicator {
    padding: 0 0.45rem;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.32rem;
    color: #6E64FF;
    font-weight: bold;
    margin-bottom: 0.39rem;
    /* margin-bottom: 0.44rem; */
}
.level-indicator p{
    width: 1.03rem;
    height: 0.46rem;
    border-radius: 0.5rem;
    font-size: 0.18rem;
    text-align: center;
    line-height: 0.46rem;
    margin-left: 0.24rem;
    font-weight: 400;
}
.question-counter {
    padding: 0 0.45rem;
    text-align: left;
    font-size: 0.2rem;
}
.progress-bar {
    height: 0.1rem;
    background-color: #E8F0FF;
    border-radius: 0.05rem;
    margin: 0.18rem 0.45rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0.05rem;
}
.timer-container {
    width: 1.1rem;
    height: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/image/time.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: absolute;
    top: -0.17rem;
    right: 0.4rem;
    z-index: 9;
}
.timer {
    font-size: 0.3rem;
    font-weight: bold;
    color: #5786FF;
    min-width: 1.1rem;
    text-align: center;
}
.question-container {
    text-align: justify;
    padding: 0 0.45rem;
}
.question-text {
    font-size: 0.3rem;
    padding: 0.26rem 0;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.18rem;
}
.option {
    background-color: #E8F0FF;
    border: none;
    border-radius: 0.5rem;
    padding: 0.28rem;
    font-size: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 0.02rem 0.05rem rgba(0, 0, 0, 0.05);
    color: #3D3D3D;
}
.option:hover {
    background-color: #8294FF;
    transform: scale(1.02);
    color: #ffffff;
}
.option.correct {
    background-color: #5ECD93;
    color: #ffffff;
}
.option.wrong {
    background-color: #FF7875;
    color: #ffffff;
}
.option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    padding: 0 0.45rem;
}
.button {
    background: #DEDEDE;
    border: none;
    border-radius: 0.5rem;
    padding: 0.16rem 0.67rem;
    font-size: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.04rem 0.06rem rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
}
.btna{
    background-color: #8294FF;
    color: #ffffff;
}
.btnb{
    width: 90%;
    margin: auto;
    background-color: #8294FF;
    color: #ffffff;
    margin-top: 0.4rem;
}
.share-button {
    background: #5ECD93;
    color: #ffffff;
    padding: 0.21rem 0.5rem;
}
.btnc{
    background-color: #8294FF;
    color: #ffffff;
    padding: 0.21rem 0.5rem;
    margin-left: 0.66rem;
}
.btnd{
    background-color: #ffffff;
    border: 1px solid #6E64FF;
    padding: 0.21rem 0.5rem;
    color: #6E64FF;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.06rem 0.08rem rgba(0, 0, 0, 0.15);
}
.button:active {
    transform: translateY(0);
}
.button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.difficulty-indicator {
    display: inline-block;
    padding: 0.04rem 0.18rem;
    border-radius: 0.5rem;
    font-size: 0.16rem;
    font-weight: 400;
}
.difficulty-easy {
    background-color: #C5F3DB;
    color: #3FA571!important;
}
.difficulty-medium {
    background-color: #F3E2C5;
    color: #A5773F!important;
}
.difficulty-hard {
    background-color: #F3C5C5;
    color: #A53F3F!important;
}
/* 结果页 */
.result-screen {
    text-align: center;
}
.overk{
    width: 3rem;
    height: 3rem;
    margin: auto;
    position: relative;
    margin-top: -2.36rem;
    z-index: 999;
    /* position: fixed;
    top: 2.36rem;
    left: 0;
    right: 0;
    z-index: 999; */
}
.overimg{
    width: 3rem;
    height: 3rem;
    display: block;
}
.overdh{
    width: 5rem;
    height: 5rem;
    margin: auto;
    position: absolute;
    top: -0.8rem;
    left: -1.1rem;
    z-index: 1000;
    /* position: fixed;
    top: 1.46rem;
    left: 0;
    right: 0;
    z-index: 1000; */
}
.gameover{
    font-size: 0.48rem;
    font-weight: bold;
    /* margin-top: 2.05rem; */
    margin-top: 0.23rem;
}
.score {
    font-size: 0.3rem;
    font-weight: 400;
    margin: 0.23rem auto;
}
.score span{
    font-size: 0.6rem;
    font-weight: bold;
    color: #FF8118;
    margin-left: 0.18rem;
}
.badge {
    width: 2.82rem;
    height: 2.62rem;
    margin: 0 auto 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bronze {
    background-image: url(/image/levela.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.silver {
    background-image: url(/image/levelb.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.gold {
    background-image: url(/image/levelc.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
#badge-description{
    font-size: 0.3rem;
    color: #6E64FF;
    text-align: center;
}
/* 过场动画 */
.interludek{
    width: 90%;
    height: 10rem;
    margin: auto;
}
.interludek img{
    width: 100%;
    height: 100%;
    display: block;
}
.share-success {
    display: none;
    color: #6E64FF;
    font-size: 0.24rem;
    margin-top: 0.2rem;
}
/* .reset-data-btn {
    background: linear-gradient(145deg, #e53e3e, #c53030);
    margin-top: 10px;
    font-size: 14px;
    padding: 10px 15px;
} */