body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: #333;
}

h3 {
    color: #444;
    text-align: center;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    width: 100%;
    overflow-x: hidden;


    @media (max-width: 1200px) {
            grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
            grid-template-columns: repeat(1, 1fr);
    }
}

.hour-block {
    position: relative;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 3px;
    min-height: 80px;
    background-color: #f5f5f5;
    position: relative;
    min-width: 0;
    transition: all .2s;

    &:hover {
        background-color: #f0f0f0;
    }
}

.hour-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #666;
}

.keyword-item {
    font-size: 14px;
    width: fit-content;
    padding: 4px 6px;
    margin: 0 0 12px 0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;

    transition: all .2s;

    &:hover {
        transform: scale(1.05);
    }

    &.empty {
        padding: 4px 0 0 0;
        width: 100%;
        text-align: center;
    }
}

.legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
}

#tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 12px #4444;
    word-wrap: break-word;
    padding: 6px;
    border-radius: 6px;
    pointer-events: none;
    font-size: 14px;
    max-width: 300px;
    z-index: 100;
    display: none;
    /* block */

    transition: all .2s ease-out;

    &>strong {
        font-size: 16px;
    }

    &>em {
        font-size: 12px;
    }
}

#blurbox {
    position: fixed;
    z-index: 99;
    /* Safari */
    top: -100dvh;
    width: 100dvw;
    height: 300dvh;
    padding: 10px;
    box-sizing: border-box;
    background-color: #0008;
    backdrop-filter: blur(20px);
    color: #fff;

    display: none;
    /* flex */
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;

    font-size: 16px;

    &>strong {
        margin-bottom: 6px;
        font-size: 20px;
    }
}

.current-hour {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.date-header {
    text-align: center;
    font-size: 18px;
    padding-bottom: 20px;
    color: #333;

}

#preday,
#nextday {
    outline: none;
    border: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    margin: 0 20px;
    font-weight: bold;
    border-radius: 3px;
}