* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: url('/images/bankgroud.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    outline: 10px solid #fff;
    outline-offset: -10px;
}

.scene {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.logo-img {
    position: absolute;
    top: 2vmin;
    left: 3vmin;
    z-index: 5;
    height: 15vmin;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0.5vmin 0.5vmin 1vmin rgba(0, 0, 0, 0.3));
    border-radius: 2vmin;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 50vmin;
    margin: 12vmin auto 0;
    padding: 3vmin 4vmin;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2vmin;
    box-shadow: 0 1vmin 5vmin rgba(135, 206, 235, 0.5),
                0 0 0.5vmin rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(2vmin);
}

.login-title {
    text-align: center;
    font-size: 3.2vmin;
    color: #1565C0;
    margin-bottom: 2vmin;
    letter-spacing: 0.4vmin;
    font-weight: bold;
}

.form-row {
    margin-bottom: 1.8vmin;
    display: flex;
    align-items: center;
}

.form-row label {
    font-size: 2vmin;
    color: #4682B4;
    width: 10vmin;
    flex-shrink: 0;
}

.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    height: 4vmin;
    padding: 0 1.5vmin;
    font-size: 2vmin;
    border: 0.25vmin solid #87CEEB;
    border-radius: 1vmin;
    background: rgba(240, 249, 255, 0.8);
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 1vmin rgba(30, 144, 255, 0.4);
}

.agreement-row {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5vmin;
    color: #4682B4;
    margin-bottom: 2vmin;
    white-space: nowrap;
}

.agreement-row input[type="checkbox"] {
    width: 1.8vmin;
    height: 1.8vmin;
    margin-right: 0.6vmin;
    cursor: pointer;
}

.agreement-row label {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.agreement-row a {
    color: #1E90FF;
    text-decoration: none;
    cursor: pointer;
}

.agreement-row a:hover {
    text-decoration: underline;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 3vmin;
    margin-bottom: 2vmin;
}

.btn {
    padding: 1vmin 4vmin;
    font-size: 2.2vmin;
    border: none;
    border-radius: 1.5vmin;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-start {
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
    box-shadow: 0 0.5vmin 2vmin rgba(30, 144, 255, 0.4);
}

.btn-start:hover {
    transform: translateY(-0.3vmin);
    box-shadow: 0 1vmin 3vmin rgba(30, 144, 255, 0.5);
}

.btn-register {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    color: #1E90FF;
    box-shadow: 0 0.5vmin 2vmin rgba(135, 206, 235, 0.4);
}

.btn-register:hover {
    transform: translateY(-0.3vmin);
    box-shadow: 0 1vmin 3vmin rgba(135, 206, 235, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mole-game {
    margin-top: 1.5vmin;
    text-align: center;
    display: none;
}

.mole-game.active {
    display: block;
}

.mole-title {
    font-size: 1.8vmin;
    color: #4682B4;
    margin-bottom: 1vmin;
    display: block;
}

.mole-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.8vmin;
    width: 42vmin;
    height: 30vmin;
    margin: 0 auto;
    padding: 1vmin;
    background: rgba(139, 105, 20, 0.6);
    border-radius: 1.5vmin;
    border: 0.4vmin solid #5D4410;
}

.mole-cell {
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1vmin;
}

.mole-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1vmin;
}

.mole-cell.hit img {
    filter: brightness(0.7) saturate(0.6);
}

.score-display {
    font-size: 2.2vmin;
    color: #4682B4;
    margin-top: 1.5vmin;
    display: none;
}

.mole-game.active .score-display {
    display: block;
}

.score-display span {
    color: #FF6347;
    font-weight: bold;
    font-size: 2.8vmin;
}

@media (max-width: 60vmin) {
    .login-container {
        width: 88vmin;
        margin-top: 10vmin;
        padding: 4vmin 5vmin;
    }
    .form-row label {
        width: 15vmin;
        font-size: 2.8vmin;
    }
    .button-row {
        gap: 3vmin;
    }
    .logo-img {
        height: 12vmin;
    }
}

@media (max-height: 50vmin) {
    .login-container {
        margin-top: 6vmin;
        padding: 3vmin 5vmin;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 70vmin;
    max-width: 70vmin;
    height: 80vmin;
    border-radius: 1.2vmin;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1vmin 4vmin rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vmin 2.5vmin;
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: #fff;
}

.modal-title {
    font-size: 1.8vmin;
    font-weight: bold;
}

.modal-close {
    font-size: 2.8vmin;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.8vmin;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    flex: 1;
    width: 100%;
    border: none;
}

.modal-footer {
    padding: 1.5vmin 2.5vmin;
    text-align: center;
    border-top: 0.1vmin solid #eee;
    background: #f8f9fa;
}

.modal-footer .btn {
    padding: 1vmin 4vmin;
    font-size: 1.6vmin;
}

.toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.toast.show {
    display: flex;
}

.toast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    animation: toastFadeIn 0.25s ease;
}

@keyframes toastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toast-dialog {
    position: relative;
    width: 55vmin;
    max-width: 90vmin;
    background: #fff;
    border-radius: 2.5vmin;
    box-shadow: 0 2vmin 6vmin rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: toastPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastPopIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 2vmin;
    padding: 3vmin 4vmin;
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    color: #fff;
}

.toast.error .toast-header {
    background: linear-gradient(135deg, #FF4D4F, #FF7875);
}

.toast.success .toast-header {
    background: linear-gradient(135deg, #52C41A, #73D13D);
}

.toast.warn .toast-header {
    background: linear-gradient(135deg, #FA8C16, #FFC53D);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6vmin;
    height: 6vmin;
    border-radius: 50%;
    font-weight: bold;
    font-size: 3.5vmin;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.toast-title {
    font-size: 3vmin;
    font-weight: bold;
    letter-spacing: 0.3vmin;
}

.toast-body {
    padding: 5vmin 4vmin;
    text-align: center;
    background: #fafafa;
}

.toast-msg {
    font-size: 3vmin;
    color: #333;
    line-height: 1.6;
}

.toast-footer {
    padding: 3vmin 4vmin;
    text-align: center;
    background: #fff;
}

.toast-btn {
    padding: 1.8vmin 6vmin;
    font-size: 2.8vmin;
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: #fff;
    border: none;
    border-radius: 1.5vmin;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 0.5vmin 2vmin rgba(30, 144, 255, 0.4);
}

.toast-btn:hover {
    transform: translateY(-0.3vmin);
    box-shadow: 0 1vmin 3vmin rgba(30, 144, 255, 0.5);
}

.toast-btn:active {
    transform: translateY(0);
}