* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
    position: relative;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
    position: relative;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.working-title {
    font-size: 32px;
    font-weight: bold;
    color: #e73c7e;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #23a6d5;
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: #23a6d5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #1d8ab0;
    transform: translateY(-2px);
}

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

#end-work {
    background: #e73c7e;
}

#end-work:hover {
    background: #c62e68;
}

.timer {
    font-size: 48px;
    text-align: center;
    margin: 30px 0;
    font-weight: bold;
    color: #333;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.earned-money {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

#earned-amount {
    font-weight: bold;
    color: #23d5ab;
    font-size: 28px;
}

/* 金钱雨动画样式 */
.money-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.money {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: fall linear;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0.7;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    .timer {
        font-size: 36px;
    }
    
    .earned-money {
        font-size: 20px;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    
    #earned-amount {
        font-size: 24px;
    }
    
    .money {
        width: 30px;
        height: 30px;
    }
}

.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(35, 166, 213, 0.2);
    border: 1px solid #23a6d5;
    color: #23a6d5;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    z-index: 2000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.home-link:hover {
    background: #23a6d5;
    color: #fff;
    box-shadow: 0 0 15px rgba(35, 166, 213, 0.5);
    transform: translateY(-2px);
}