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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

.header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

#beijing-time {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f1c40f;
}

#map {
    height: 75vh;
    width: 95%;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin: 0 auto 20px;
    width: max-content;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.open {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.closed {
    background-color: #e74c3c;
}

.pending {
    background-color: #f39c12;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.market-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.market-marker:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

.market-marker.open {
    background-color: #27ae60;
}

.market-marker.closed {
    background-color: #c0392b;
}

.market-marker.pending {
    background-color: #d35400;
}

.market-info {
    min-width: 220px;
    text-align: center;
}

.market-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}