body {
    /*background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);*/
    min-height: 100vh;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stopwatch-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    /*width: 90%;*/
    /*max-width: 600px;*/
    text-align: center;
}

.display {
    font-size: 5rem;
    font-weight: 700;
    color: #333;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    font-size: 1.2rem;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-start {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    border: none;
}

.btn-pause {
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    border: none;
}

.btn-reset {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border: none;
}

.btn-lap {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    border: none;
}

.laps-container {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(240, 240, 240, 0.7);
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.lap-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: white;
    margin-bottom: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lap-item:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

.lap-number {
    font-weight: bold;
    color: #3498db;
}

.lap-time {
    font-weight: 600;
    color: #2c3e50;
}

.title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    margin-top: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 滚动条样式 */
.laps-container::-webkit-scrollbar {
    width: 8px;
}

.laps-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.laps-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.laps-container::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .display {
        font-size: 3.5rem;
    }

    .controls {
        flex-wrap: wrap;
    }

    .btn {
        flex: 1 0 40%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .display {
        font-size: 2.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 15px;
    }
}