* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    background: url('https://raw.githubusercontent.com/your-username/your-repo/main/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.traffic-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.traffic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.traffic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-item {
    text-align: center;
    padding: 20px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.info-item:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.info-item h3 {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-item p {
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 600;
}

.countdown {
    font-size: 1em !important;
    color: var(--warning-color) !important;
    margin-top: 10px;
    font-weight: 500 !important;
}

.progress-container {
    width: 100%;
    height: 24px;
    background-color: rgba(238, 238, 238, 0.9);
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--success-color);
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.progress-info span {
    display: inline-block;
    padding: 0 4px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: progressAnimation 1s linear infinite;
}

@keyframes progressAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

#refresh-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#refresh-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

#refresh-btn:active {
    transform: translateY(0);
}

#refresh-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

#refresh-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .traffic-card {
        padding: 20px;
    }
    
    .traffic-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item p {
        font-size: 1.2em;
    }
} 