@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&&family=Poppins:wght@400;500;600;700&display=swap);

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
}

body, html {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: #EDEEF0;
    font-family: Poppins, 'Noto Sans TC', sans-serif;
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    max-width: 1000px;
    position: relative;

}

button {
    margin: 0;
    padding: 0;
    border: unset;
    background: none;
}

.內容 {
    padding: 0px 15px;
}

.左右 {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

:root {
    --主文字: #394142;
    --次文字: #8E9394;
}

h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 32px;
    color: var(--主文字);
}

h2 {
    font-size: 15px;
    color: var(--次文字);
}

/* 讀取 */
#讀取 {
    display: flex;
    position: fixed;
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    background: #F4F4F4;
    justify-content: center;
    align-items: center;
    z-index: 30000000;
    transition: 0.5s ease;
    touch-action: none;
    top: 0;
    left: 0;
}

#讀取-旋轉 {
    display: block;
    width: 32px;
    height: 32px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#讀取-旋轉:after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background: url("https://chelinchan.com/src/ic_loading.png");
    background-size: cover;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    100% {
        transform:rotate(360deg);
    }
}

.讀取_離開 {
    opacity: 0;
    visibility: hidden;
}

/* 主題 */
#主題 {
    margin-top: 24px;
}

/* 選單 */
#選單 {
    margin-top: 12px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    /*     display: flex;
        justify-content: space-around; */
    background: #EDEEF0;
    box-shadow: inset 0 -2px 0 0 #D4D7D8;
    display: block;
    padding-left: 15px;
    box-shadow: 0 6px 12px 0 rgba(0,0,0,0.06), inset 0 -2px 0 0 #D4D7D8;
}

.選單-選項 {
    display: inline-flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    /*     padding: 14px 0px; */
    padding-top: 12px;
    padding-bottom: 16px;
    box-sizing: border-box;
    margin: 0px;
    margin-right: 24px;
    /*     border-radius: 8px; */
    color: var(--主文字);
    font-size: 15px;
    cursor: pointer
}

.選單-選項 p {
    margin-left: 8px;
}

.選單-選項.啟用 {
    color: #005BFF;
    box-shadow: inset 0 -2px 0 0 #3170E2;
}

.選單-選項 ion-icon {
    font-size: 18px;
}

/* 統計 */
#統計 {
    margin-top: 24px;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-bottom: 34px;
    box-shadow: inset 0 -2px 0 0 #D4D7D8;
}

#統計.隱藏 {
    display: none;
}

/* #統計:after {
    content: '';
    position: absolute;
    right: 0;
    width: 32px;
    background-image: linear-gradient(270deg, #EDEEF0 0%, rgba(237,238,240,0.00) 100%);
    z-index: 1;
    display: block;
    height: 46px;
    margin-top: -46px;
} */

.一則統計:first-child {
    padding-left: 15px;
}

.一則統計 {
    display: inline-flex;
    flex-direction: column;
    margin-right: 32px;
}

.一則統計:last-child {
    padding-right: 0px;
}

.一則統計-標題 {
    font-size: 13px;
    color: var(--次文字);
    font-weight: 500;
}

.一則統計-內容 {
    margin-top: 4px;
    font-size: 21px;
    color: var(--主文字);
    font-weight: 600;
    height: 20px;
    line-height: 20px;
}

/* 時間軸 */
#時間軸 {
    margin-top: 30px;
}

.時間軸-標題區塊 {
    /*! margin-bottom: 20px; */
    align-items: center;
}

#過濾 {
    display: flex;
    align-items: center;
    color: var(--主文字);
    cursor: pointer;
    position: relative;
}

/* #過濾:hover:after {
    content: '';
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    position: absolute;
    top: -8px;
    left: -8px;
    background: #C7C9CC80;
    border-radius: 8px;
} */

#過濾 ion-icon {
    font-size: 22px;
    line-height: 22px;
    height: 22px;
    display: block;
    z-index: 1;
}

#過濾 span {
    font-size: 15px;
    margin-left: 4px;
    line-height: 15px;
    height: 15px;
    display: block;
    z-index: 1;
}

#時間軸-過濾 {
    margin-top: 16px;
    background: #E4E5E8;
    box-sizing: border-box;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1.5px #D6D7D8;
    display: none;
}

.時間軸-過濾-選項 {
    display: flex;
    align-items: center;
    height: 36px;
    cursor: pointer;
}

/* .時間軸-過濾-選項:hover .時間軸-過濾-選項-勾選 {
    background: #B7B8BB;
} */

.時間軸-過濾-選項:last-child {
    margin-bottom: 0px;
}

.時間軸-過濾-選項-勾選 {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
    background: #C7C9CC;
}

.時間軸-過濾-選項-勾選.未選中 {
}

.時間軸-過濾-選項-勾選.選中 {
    background: var(--主文字);
    box-shadow: inset 0 0 0 5px #C7C9CC;
}

.時間軸-過濾-選項-說明 {
    font-size: 14px;
    color: var(--主文字);
}

.時間軸-列表-月份 {
    margin-bottom: 48px;
}
.時間軸-列表-月份-內容-一天 {
    background: #FFFFFF;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.03), 0 2px 18px 3px rgba(0,0,0,0.07);
    border-radius: 8px;
    box-sizing: border-box;
    padding: 20px 20px 4px 20px;
    margin-bottom: 16px;
}

.日期 {
    font-size: 28px;
    font-weight: bold;
    line-height: 28px;
    height: 28px;
    display: block;
}

.狀態 {
    font-size: 13px;
    color: var(--次文字);
    line-height: 15px;
}

.時間軸-列表-月份-標題 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.狀態 .有進度 {
    color: #2C8B00;
}

.時間軸-列表-月份-內容-一天-標題 {
    box-shadow: inset 0 -2px 0 0 #D8D8D8;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
}

.時間軸-列表-月份-內容-一天-內容 p {
    margin-top: 16px;
    padding-bottom: 16px;
    font-size: 14px;
    box-shadow: inset 0 -1px 0 0 #D8D8D8;
    color: var(--主文字);
    font-weight: 400;
}

.時間軸-列表-月份-內容-一天-內容 p:last-child {
    margin-bottom: 0px;
    box-shadow: none;
}

/* 筆記 */
#筆記 {
    display: none;
    margin-top: 30px;
}

#筆記-清單 {
    margin-top: 16px;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 12px;
}

.一則筆記 {
    background: #FFFFFF;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.03), 0 2px 18px 3px rgba(0,0,0,0.07);
    border-radius: 8px;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.一則筆記-標題 {
    font-size: 16px;
    color: var(--主文字);
    font-weight: bold;
    margin-bottom: 8px;
}

.一則筆記-預覽 {
    font-size: 12px;
    color: var(--次文字);
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    flex: 1;
}

.一則筆記-時間 {
    font-size: 12px;
    color: var(--主文字);
}



/* 無 token */
#無token {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    padding: 0;
    text-align: center;
}

#無token ion-icon {
    font-size: 64px;
    opacity: 0.4;
    margin-bottom: 24px;
}

#無token p {
    margin-top: 4px;
}

#內容區塊 {
    position: relative;
}

#無token-輸入token {
    background: #ffffff;
    height: 40px;
    border-radius: 40px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    padding: 0px 4px;
    box-sizing: border-box;
}

#tokenInput {
    background: none;
    border: none;
    padding-left: 12px;
    height: 100%;
    border-radius: 40px;
}

#tokenInput:focus {
    outline: none;
}

#登入 ion-icon{
    font-size: 24px;
    height: 24px;
    line-height: 24px;
}

#登入 {
    padding-right: 4px;
    height: 24px;
    line-height: 24px;
}


/* 筆記-檢閱器 */
#筆記-檢閱器 {
    display: none;
    background: #ffffff;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#筆記-檢閱器-按鈕 {
    padding: 32px 24px 24px 24px;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
}

#筆記-檢閱器-內容 {
    height: 100%;
    box-sizing: border-box;
    padding: 0px 24px 80px 24px;
    overflow-y: scroll;
    max-width: 100%;
    width: 100%;
}

#筆記-檢閱器-標題 {
    font-size: 26px;
    font-weight: bold;
    color: var(--主文字)
}

#筆記-檢閱器-時間 {
    margin-top: 2px;
    font-size: 16px;
    color: var(--次文字)
}

#筆記-檢閱器-內文 {
    margin-top: 32px;
    font-size: 16px;
    color: var(--主文字);
    line-height: 180%;
    width: 100%;
}

@media screen and (min-width: 1200px) {
    html, body {
        max-width: 100%;
        height: 100%;
        overflow: hidden;
    }

    #資訊 {
        display: flex;
        height: 100%;
    }

    .導覽 {
        flex: 0 0 25%;
        box-sizing: border-box;
        padding: 0px 24px;
    }

    .導覽 .內容 {
        padding: 0;
    }

    #選單 {
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .選單-選項 {
        width: 100%;
        justify-content: left;
        align-items: center;
        box-shadow: none !important;
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .選單-選項 ion-icon{
        font-size: 20px;
    }

    .選單-選項 p {
        font-size: 16px;
        margin-left: 16px;
    }

    .選單-選項:hover {
        background: #E4E5E8;
    }

    .選單-選項:last-child {
        margin: 0px;
    }

    .選單-選項.啟用 {
        background: #D6E4FF;
        box-shadow: inset 0 0 1.5px 0 #3170E2 !important;
    }

    #統計, #選單 {
        white-space: normal;
        margin-top: 24px;
        box-shadow: inset 0 2px 0 0 #D4D7D8;
        padding-top: 24px;
        box-sizing: border-box;
    }

    #統計.隱藏 {
        display: block;
    }

    .一則統計 {
        width: calc(100% / 3);
        margin: 0;
        margin-bottom: 24px;
    }

    .一則統計:first-child {
        padding: 0;
    }

    #時間軸, #筆記 {
        height: 100%;
        overflow: scroll;
        box-shadow: unset;
        width: 100%;
        padding: 0px 24px 0px 24px;
        box-sizing: border-box;
        margin: 0;
        /*         background: #E4E5E8; */
    }

    .時間軸-標題區塊, .筆記-標題區塊 {
        margin: 24px 0px;
    }

    .時間軸-標題區塊 .主文字, .筆記-標題區塊 .主文字{
        font-size: 32px !important;
        font-weight: 500;
    }

    #時間軸-過濾 {
        margin-top: 0;
        margin-bottom: 32px;
    }

    .時間軸-過濾-選項 {
        width: auto;
        display: inline-flex;
        margin-right: 30px;
    }

    .時間軸-列表-月份-標題 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .時間軸-列表-月份-內容 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 15px;
        grid-auto-rows: minmax(min-content, max-content);
    }

    .時間軸-列表-月份-內容-一天 {
        height: auto;
        margin-bottom: 0;
    }

    .一則筆記 {
        transition: 0.15s ease;
        position: relative;
    }

    .一則筆記:after {
        transition: 0.1s ease;
        content: '';
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: block;
        position: absolute;
        border-radius: 8px;
        box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px #ffffff;
    }

    .一則筆記:hover:after {
        box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 5px #D4D7D8;
    }

    .一則筆記-標題 {
        font-size: 20px;
        color: var(--主文字);
        font-weight: bold;
        margin-bottom: 16px;
    }

    .一則筆記-預覽 {
        font-size: 14px;
        color: var(--次文字);
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 16px;
    }

    .一則筆記-時間 {
        font-size: 13px;
        color: var(--主文字);
    }

    #筆記-檢閱器-內容 {
        height: 100%;
        box-sizing: border-box;
        padding: 0px 80px 80px 80px;
        overflow-y: scroll;
        max-width: 780px;
    }

    #筆記-檢閱器-標題 {
        font-size: 42px;
        font-weight: bold;
        color: var(--主文字)
    }

    #筆記-檢閱器-時間 {
        font-size: 20px;
        color: var(--次文字)
    }

    #筆記-檢閱器-內文 {
        margin-top: 32px;
        font-size: 17px;
        color: var(--主文字);
        line-height: 180%;
    }
}


@media screen and (min-width: 1445px) {
    .時間軸-列表-月份-內容 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 15px;
        grid-auto-rows: minmax(min-content, max-content);
    }
}
