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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    padding: 15px 0;
    border-bottom: 2px solid #3498db;
}

.timezone-info {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: normal;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.total-time, .unused-time {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 48%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 10px;
}

.time-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
}

.time-input {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    margin-top: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.consume-btn {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-btn {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.consume-btn:hover {
    background-color: #c0392b;
}

.add-btn:hover {
    background-color: #27ae60;
}    



.reset-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reset-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.test-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.export-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}


.time-history {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.history-item:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .time-display {
        flex-direction: column;
    }
    
    .total-time, .daily-bonus {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    input[type="number"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    button {
        border-radius: 4px;
    }
}