* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
}

h2 {
    color: #444;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 400;
}

.time-tracker {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.current-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.current-time .time {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.current-time .date {
    font-size: 1.2em;
    opacity: 0.9;
}

.time-recording {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.recording-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-start {
    background: #28a745;
    color: white;
}

.btn-stop {
    background: #dc3545;
    color: white;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-add {
    background: #007bff;
    color: white;
}

.btn-complete {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.recording-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 1.1em;
    color: #555;
}

.recording-info div {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.daily-activities {
    margin-bottom: 40px;
}

.activity-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#activity-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#activity-input:focus {
    outline: none;
    border-color: #667eea;
}

.activities-list {
    display: grid;
    gap: 10px;
}

.activity-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.activity-item.completed {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.activity-item.completed .activity-text {
    text-decoration: line-through;
}

.activity-text {
    font-size: 16px;
    color: #333;
}

.activity-time {
    color: #666;
    font-size: 14px;
}

.history {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.history-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.record-date {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.record-duration {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.record-times {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.record-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.activity-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #dee2e6;
}

.activity-tag.completed {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.no-activities {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

.no-history {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

@media (max-width: 768px) {
    .time-tracker {
        grid-template-columns: 1fr;
    }
    
    .recording-controls {
        justify-content: center;
    }
    
    .recording-info {
        grid-template-columns: 1fr;
    }
    
    .activity-form {
        flex-direction: column;
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .record-header {
        flex-direction: column;
        gap: 10px;
    }
}