* {
    margin: 0;
    padding: 0;
}


#outer {
    display: flex;
    flex-wrap: wrap; /* 允许内容在必要时换行 */
    margin: 0;
    padding: 0;
}

#left, #right {
    border: 1px solid #ccc; /* 添加边框 */
    padding: 10px; /* 添加内边距 */
    box-sizing: border-box; /* 确保padding和border不被添加到元素的总宽度中 */
    display: inline-block; /* 使元素成为块级元素 */
    height: 600px; /* 使元素填充满其父元素 */
    position: relative;
}

#left {
    width: 60%;
    background-color: #eef0c1;
}

#right {
    width: 40%;
    background-color: wheat;
}

ul {
    list-style-type: none;
    padding: 0;
}

#outer li {
    margin: 10px 0;
    border-bottom: 1px solid #ccc;
}

#toggleButtons {
    display: none;
}

.taskName {
    display: inline-block;
    margin-left: 44px; /* 设置左边距为44像素 */
    /* 限制a标签中的字数为22，多出的部分用...显示 */
    overflow: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 溢出的文本用省略号显示 */
    white-space: nowrap; /* 文本不换行 */
}

.ufTaskName {
    width: 600px;
}

.fTaskName {
    width: 350px;
}

.a_task {
    text-decoration: none;
    font-size: 22px;
    margin: 10px;
    font-weight: bold;
}

#task_title {
    text-align: center;
    font-family: 华文行楷;
    font-size: 44px;
    color: #255bc4;
    padding-bottom: 22px;
    background-color: #eecdee;
    font-weight: bold;
    margin: 0;
}


#toggleCompletedTasks {
    margin-left: 22px
}

#toggleAddTask, #toggleCompletedTasks {
    background-color: #eded63;
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    border: 1px solid #ccc;
}

#add_result {
    margin: 10px;
    color: red;
    font-size: 18px
}

#toggleButtons {
    padding-bottom: 22px;
    text-align: center;
    background-color: #eecdee
}

#toggleButtons > h4 {
    margin: 0px;
    padding: 10px;
    font-family: 华文行楷;
    font-weight: bold;
    font-size: 22px;
    color: #255bc4;
}

#taskListTitle {
    margin: 10px;
    text-align: center;
}

.taskNum {
    display: inline-block;
    text-align: left;
    margin-bottom: 10px;
}

#right > h2 {
    text-align: center;
}

#taskList, #completedTaskList {
    margin-top: 33px;
    font-size: 18px;
    font-family: 楷体;
    font-weight: bold;
    color: #255bc4;
}


#addTaskBtn {
    padding: 3px 10px 3px 10px;
    border-radius: 5px;
    background-color: tomato;
    color: white;
    font-size: 18px;
}

.pageNumShow {
    font-size: 18px;
    font-weight: bold;
    color: #255bc4;
    font-family: 楷体;
}

#ufTotalPageNum, #fTotalPageNum {
    display: none;
}

.taskStatus {
    margin-right: 22px;
    position: absolute;
    right: 2px;
}

#addTaskDiv {
    text-align: center;
    width: 100%;
    vertical-align: middle;
}

#completedTaskList {
    color: red;
}

#taskList > li {
    line-height: 16px;
    position: relative;
    vertical-align: center;
}

#completedTaskList li {
    line-height: 22px;
}

#nav_f, #nav_add {
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 35%;
}

.task_str {
    text-align: center;
    font-weight: bold;
    color: red;
    margin: 0;
    background-color: #eecdee;
    padding-bottom: 22px;
}

body {
    background-color: #eecdee;
}
.line {
    height: 1px;
    border: 1px solid #ccc;
}

#ufPageNav, #fPageNav {
    width: 100%;
    padding: 10px 100px 10px 100px;
    bottom: 0px;
    position: absolute;
}
/* 响应式布局 当屏幕宽度大于1024px时,让未完成任务列表所在的div和完成任务列表所在的div都显示 */
@media (min-width: 1024px) {
    #left, #right {
        display: inline-block
    }
    #taskInput {
        width: 500px;
        margin-right: 30px;
    }
}

/* 响应式布局 */
@media (max-width: 1023px) {
    #footer{
        font-size: 9px;
        bottom:0px;
    }
    #outer {
        flex-direction: column;
    }
    #taskInput{
        font-size: 16px;
        width: 160px;
        margin-right: 10px;
    }
    .a_task{
        font-size: 16px;
        margin: 0px;
    }
    #addTaskBtn{
        font-size: 16px;
    }
    #task_title {
        display: none;
    }

    #task_str {
        display: none
    }

    #left, #right {
        width: 100%; /* 在小屏幕上，左右两侧占满整个宽度 */
    }

    #toggleButtons {
        display: block;
    }

    .taskName {
        width: 300px;
        margin-left: 10px;
    }

    #ufPageNav, #fPageNav {
        width: 95%;
        padding: 10px 5px 10px 5px;
        bottom: 0px;
    }
    .taskStatus{
        display: none;
    }
    .pageNumShow{
        padding: 10px 10px 0px 10px;
    }
    #taskList > li, #completedTaskList > li {
        line-height: 16px;
    }
}


