/* 礼花和成绩单模态窗口样式 */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.result-modal {
    background: linear-gradient(135deg, #2c3e50, #4a69bd);
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .result-modal {
        width: 90%;
        padding: 25px;
    }
}



.modal-overlay.active .result-modal {
    opacity: 1;
}

.result-title {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    animation: pulse 1.5s infinite alternate;
}

@media (max-width: 768px) {
    .result-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .result-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .result-modal {
        width: 85%;
        padding: 20px;
    }

}

.result-content {
    color: #ffffff;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .result-content {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .result-content {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin: 40px 0 20px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 8px 15px;
    margin:0 5px;
    width: 40%;
}

@media (max-width: 768px) {
    .stat-item {
        padding: 12px;
        width: 45%;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 10px;
        width: 48%;
    }
}

.stat-label {
    font-size: 1rem;
    color: #a3c4f3;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 1.3rem;
    }
}

.close-button {
    background: #ffd700;
    color: #2c3e50;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .close-button {
        padding: 10px 25px;
        font-size: 1.1rem;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .close-button {
        padding: 8px 20px;
        font-size: 1rem;
        margin-top: 12px;
    }
}

.close-button:hover {
    background: #ffec8b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 礼花动画 */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    opacity: 0.8;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    }
    to {
        transform: scale(1.05);
        text-shadow: 0 5px 20px rgba(255, 215, 0, 0.8);
    }
}