body[data-type="todolist"] #web_bg {
    background: var(--anzhiyu-background);
}

body[data-type="todolist"] #page {
    border: 0;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: 0 0 !important;
}

body[data-type="todolist"] #page .page-title {
    display: none;
}

/* Todolist */
#todolist-box {
    margin: 0 10px;
}

#todolist-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0 10px;
}

#todolist-main ul {
    margin: 0;
    padding: 0;
}

#todolist-main li {
    list-style: none;
    font-size: 17px;
    position: relative;
    /* 相对定位以便添加自定义样式 */
    padding-left: 20px;
    /* 为圆圈和对勾预留更多空间，增加间距 */
    margin-bottom: 10px;
    /* 每个任务项下方的间距 */
    border-bottom: 1px solid #ccc;
    /* 任务项下方的横线 */
}

#todolist-left {
    width: 50%;
    padding: 0 8px 0 0;
}

#todolist-right {
    width: 50%;
    padding: 0 0 0 8px;
}

.todolist-item {
    position: relative;
    background: #fae4df;
    border-radius: 12px;
    padding: 10px 1rem 1.2rem;
    border: 2px dashed #f7a796;
    margin-bottom: 1rem;
}

[data-theme=dark] .todolist-item {
    background: #242424;
    border: 2px dashed #51908b;
}

li.todolist-li::before {
    content: '○';
    /* 使用 Unicode 字符表示空心圆 */
    position: absolute;
    left: 0;
    /* 调整此处来控制空心圆与任务文本的水平距离 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #000;
    width: 30px;
    /* 统一宽度确保与对勾位置一致 */
    display: inline-block;
    /* 使用内联块来统一宽度 */
    text-align: center;
    /* 居中对齐 */
}

li.todolist-li-done::before {
    content: '✔';
    /* 使用 Unicode 字符表示打勾的空心圆 */
    position: absolute;
    left: 0;
    /* 调整此处来控制对勾与任务文本的水平距离 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #51908b;
    /* 可根据主题调整颜色 */
    width: 30px;
    /* 统一宽度确保与空心圆位置一致 */
    display: inline-block;
    /* 使用内联块来统一宽度 */
    text-align: center;
    /* 居中对齐 */
}

li.todolist-li i {
    margin-left: 10px;
}

h3.todolist-title {
    margin: 0 !important;
    border-bottom: var(--todo-border);
}

li.todolist-li {
    font-weight: normal;
    margin-left: -10px;
}

li.todolist-li-done {
    font-weight: normal;
    text-decoration: line-through;
    color: #999;
    /* 已完成任务的文本颜色 */
    margin-left: -10px;
    /* 与未完成任务项保持一致 */
}

.todolist-li span {
    margin-left: 5px;
}

.todolist-li-done span {
    margin-left: 5px;
}

.todolist-date {
    font-size: 14px; /* 设置日期字体大小 */
    color: #666; /* 设置日期文本颜色 */
    margin: 0 0 10px; /* 设置日期与任务列表之间的间距 */
    display: block; /* 显示为块元素，独占一行 */
    text-align: left; /* 日期左对齐 */
}

.date-difference {
    font-size: 14px; /* 设置动态计算文本的字体大小 */
    color: #ff6347; /* 设置文本颜色，可以根据需要调整 */
    margin: 5px 0 0; /* 添加上方间距 */
    display: block; /* 显示为块元素，换行显示 */
    font-weight: bold; /* 加粗显示天数差异文本 */
}

.due-date {
    font-size: 14px; /* 设置完成时间文本大小 */
    color: #999; /* 设置文本颜色，与已完成任务颜色一致 */
    margin-left: 10px; /* 与任务内容保持一定的间距 */
    display: inline-block; /* 保持内联块，使其与任务内容在同一行显示 */
    font-style: italic; /* 斜体显示以区分于其他文本 */
}

.todolist-title-with-arrow {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.arrow-icon {
    font-size: 16px;
    margin-right: 10px;
    transition: transform 0.2s ease; /* 添加旋转动画 */
}

.todolist-ul {
    padding-left: 20px; /* 确保内容缩进对齐 */
}
.toggle-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.toggle-button:hover {
    background-color: #e0e0e0;
}


@media screen and (max-width: 700px) {

    #todolist-left,
    #todolist-right {
        width: 100%;
        padding: 0;
    }
}

/* ing-status */
.ing-status {
    display: inline-block;
    margin-left: 10px;
    color: #ff4500;
    font-weight: bold;
    animation: floatAndBlink 1.5s infinite ease-in-out;
}

/* 定义浮动和闪烁的动画 */
@keyframes floatAndBlink {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-5px);
    }
}
/* .ing-status {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6a00, #ff4500, #ff9500);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: floatingAndScaling 2s infinite ease-in-out;
    position: relative;
} */

/* 定义浮动、缩放和颜色渐变的动画 */
/* @keyframes floatingAndScaling {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  
        opacity: 0.8;
    }
} */
