html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}
/****************顶部****************/
#header {
    font-size: 16px;
    color: white;
    align-items: center;
    background-color: #1e78dc;
}

.logo {
    height: 80px;
    align-items: center;
    padding: 0 0 0 32px;
    display: flex;
    justify-content: flex-start;
}

.logo span {
    font-size: 24px;
    width: 64px;
    margin-right: 16px;

}
.logo img {

    height: 64px;
}

.logo h1 {
    white-space: nowrap; /* 避免换行 */
    font-size: 32px;
    font-weight: 600;
    margin-left: 32px;
    width: 128px;

}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    background-color: #1450c8;
}

nav {
    display: flex;
    gap: 32px;
    padding: 0 32px 0 0
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #1e78dc;
    font-weight: bold;
}

/*
.divider{
    height:8px;
    box-shadow:3px rgba(0, 0, 0, 0.1);
}
    */

/****************地图****************/
#map {
    height: calc(100vh - 128px);
}
.leaflet-control-attribution {
    display: none !important;
}
/****************污染物类型切换工具条****************/
#type-toolbar {
    position: absolute; 
    top: 136px;
    left: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* 垂直排列按钮 */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.type-button {
    border: 1px solid #ccc;
    background: #f0f0f0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    width: 52px;
    height: 38px;
    align-items: center;
}

.type-button.selected {
    background: #007bff;
    color: white;
    font-weight: bold;
}
/****************时钟工具条****************/
#top-clock {
    position: absolute;
    top: 136px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
}
#top-clock .clock-time {
    font-size: 2.5rem;
    letter-spacing: 2px;
    font-weight: 600;
}
#top-clock .clock-date {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 600;
    margin-top: 2px;
}
/****************地图工具条****************/
/* 工具条样式 */
#toolbar {
    position: absolute;
    top: 136px;
    right: 8px;
    gap: 2px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#toolbar button {
    padding: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#toolbar button:hover {
    color: white;
    background-color: #1450c8;
}
/****************时间滑动条****************/
#timeline-container {
    position: absolute;
    left: 8px;
    bottom: 30px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 380px;
    z-index: 1000;
}

#timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

#play-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

#play-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e78dc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#timestamp {
    font-size: 14px;
    font-weight: 500;
}

#time-buttons {
    display: flex;
    gap: 8px;
}

#date-picker {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

#time-button {
    padding: 4px 12px;
    font-size: 14px;
    background-color: #ECFDF5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#time-button:hover {
    background-color: #D1FAE5;
}

#timeline-slider {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 4px;
    appearance: none;
    outline: none;
}

#timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #1e78dc;
    border-radius: 50%;
    cursor: pointer;
}

#timeline-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #1e78dc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/****************图例****************/
/******** 图例容器 ********/
#gradient-bar-container {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 30px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    gap: 10px;
}

/******** 气体标签 ********/
#gas-label {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/******** 色带容器 ********/
#gradient-bar-wrapper {
    position: relative;
    width: 430px;
    height: 24px;
}

/******** 色带本体 ********/
#gradient-bar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(to right, 
        rgb(49, 54, 149),
        rgb(74, 123, 183),
        rgb(128, 183, 214),
        rgb(189, 226, 238),
        rgb(238, 248, 223),
        rgb(254, 238, 165),
        rgb(253, 191, 113),
        rgb(246, 123, 74),
        rgb(218, 55, 42),
        rgb(165, 0, 38)
    );
}

/******** 刻度数字 ********/
.tick-label {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

/****************底部****************/
#footer {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 5px;
    z-index: 1000;
    font-size: 14px;
    text-align: center;
    color: #1e78dc;
    font-weight: bold;
    /*text-decoration: underline;*/
    /*background-color: rgb(5, 150, 105);*/
}
