body {
    font-family: 'Noto Serif SC', serif;
    margin: 0;
    background-color: #E0F7FA;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    box-sizing: border-box;
    padding-top: 80px;
}

.header-container {
    font-family: 'Arial', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

a {
    color: #6B8E23;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-nav {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.main-nav .nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2E8B57;
}

.main-nav .nav-logo:hover {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li a {
    display: block;
    padding: 20px 15px;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #8FBC8F;
    color: white;
    text-decoration: none;
}

.header-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.button-header {
    background-color: #FFF5B7;
    padding: 30px 50px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.button-header:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #FFFAD1;
    border-color: #FFE066;
    text-decoration: none;
}

.button-header:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button-header::before {
    content: "★";
    position: absolute;
    color: #FFD700;
    font-size: 20px;
    left: -20px;
    top: 10px;
    opacity: 0;
    transition: all 0.5s ease;
}

.button-header::after {
    content: "★";
    position: absolute;
    color: #FFD700;
    font-size: 20px;
    right: -20px;
    bottom: 10px;
    opacity: 0;
    transition: all 0.5s ease;
}

.button-header:hover::before {
    left: 15px;
    opacity: 1;
    transform: rotate(360deg);
}

.button-header:hover::after {
    right: 15px;
    opacity: 1;
    transform: rotate(360deg);
}

.button-header h1 {
    margin: 0;
    color: #6B8E23;
    font-size: 2.5em;
    position: relative;
    z-index: 2;
}

.todo-container {
    background: #ffffff;
    color: #333;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
    margin-top: 20px;
}

.todo-container h2 {
    color: #2E8B57;
    margin-top: 0;
}

.date-selector {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #555;
}

#datePicker {
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
}

#listTitle {
    color: #2E8B57;
    margin-top: 0;
    margin-bottom: 20px;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#todoInput {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#addTodoBtn {
    padding: 10px 20px;
    background-color: #8FBC8F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#addTodoBtn:hover {
    background-color: #2E8B57;
}

#todoList {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#todoList li {
    background: #F0FFF0;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

#todoList li:hover {
    background-color: #E0EEE0;
}

#todoList li.completed {
    text-decoration: line-through;
    color: #aaa;
    background-color: #f8f8f8;
}

.delete-btn {
    color: #fa8072;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    padding: 5px;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease-out;
}

.delete-btn:hover {
    background-color: #ffe5e5;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.delete-btn:active {
    transform: translateY(0) scale(1.0);
    box-shadow: none;
    background-color: #fddddd;
}

#todoList li.completed .delete-btn {
    text-decoration: none;
}

.blog-container,
.post-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

.post-item {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.site-footer {
    color: #6B8E23;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    width: 100%;
}

@media (max-width: 768px) {

    body {
        padding-top: 130px;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .main-nav ul {
        width: 100%;
        margin-top: 10px;
    }

    .main-nav ul li {
        flex-grow: 1;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 10px 5px;
    }

    .button-header h1 {
        font-size: 1.8em;
    }

    .button-header {
        padding: 25px 30px;
        width: 80%;
    }

    .todo-container,
    .blog-container,
    .post-content {
        padding: 20px;
        margin-top: 15px;
        width: 80%;
    }

    .input-area {
        flex-direction: column;
        gap: 12px;
    }

    #todoInput,
    #addTodoBtn {
        width: 100%;
        box-sizing: border-box;
    }
}

#log-item {
    background-color: #F0FFF0;
    border-left: 5px solid #2E8B57;
    padding-left: 20px;
    border-radius: 5px;
}

.post-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(46, 139, 87, 0.75), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* --- 番茄钟样式开始 --- */

/* 容器样式，和你的 todo-container 保持一致 */
.pomodoro-container {
    background: #ffffff;
    color: #333;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 450px;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.5s ease;
}

/* 时间显示区域 */
#timer-display {
    font-size: 6em;
    /* 足够大，醒目 */
    font-weight: 900;
    color: #2E8B57;
    /* 使用你的主绿色 */
    margin-bottom: 10px;
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    /* 数字用非衬线体更清晰 */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

/* 模式提示文字 */
#mode-display {
    font-size: 1.2em;
    color: #6B8E23;
    /* 使用你的橄榄绿 */
    margin-bottom: 25px;
    font-weight: 600;
}

/* 控制按钮的容器 */
.pomodoro-container .controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* 按钮通用样式 */
.pomodoro-container .controls button,
.pomodoro-container .mode-switcher button {
    font-family: 'Noto Serif SC', serif;
    font-size: 1em;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pomodoro-container .controls button:hover,
.pomodoro-container .mode-switcher button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pomodoro-container .controls button:active,
.pomodoro-container .mode-switcher button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 各个按钮的颜色 */
#start-btn {
    background-color: #8FBC8F;
    /* 沿用你的 'add' 按钮绿色 */
    color: white;
}

#pause-btn {
    background-color: #FFDAB9;
    /* 可爱的桃色 */
    color: #6B4226;
}

#reset-btn {
    background-color: #ADD8E6;
    /* 温柔的淡蓝色 */
    color: #191970;
}

/* 模式切换按钮组 */
.mode-switcher {
    border-top: 1px dashed #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mode-switcher button {
    background-color: #f0f0f0;
    color: #555;
    padding: 8px 15px;
    font-size: 0.9em;
}

/* --- 番茄钟样式结束 --- */
/* --- 番茄钟日志样式开始 --- */

/* 任务输入框容器 */
.task-input-container {
    margin: 20px 0;
}

/* 任务输入框样式，参考你的 todoInput */
#task-input {
    width: 80%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    color: #6B8E23;
    transition: all 0.3s ease;
}

#task-input:focus {
    outline: none;
    border-color: #8FBC8F;
    box-shadow: 0 0 8px rgba(143, 188, 143, 0.5);
}

#task-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}


/* 日志容器 */
.log-container {
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

.log-container h2 {
    color: #2E8B57;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px dashed #E0F7FA;
    padding-bottom: 10px;
}

/* 日志列表 */
#pomodoro-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: 400px;
    /* 如果日志太多，可以出现滚动条 */
    overflow-y: auto;
}

/* 单条日志样式 */
#pomodoro-log-list li {
    background: #F0FFF0;
    /* 使用你喜欢的淡绿色 */
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}



.edit-btn {
    background-color: #FFDAB9;
    /* 可爱的桃色，和休息模式颜色呼应 */
    color: #8B4513;
    /* 搭配的深棕色文字 */
    border: none;
    padding: 4px 12px;
    /* 调整内边距，让它更像个标签 */
    font-size: 0.85em;
    font-weight: 600;
    /* 文字稍微加粗 */
    border-radius: 12px;
    /* 圆角是可爱的关键！ */
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease-in-out;
    /* 让所有变化都带上动画 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edit-btn:hover {
    background-color: #FFCFAF;
    /* 悬停时颜色变亮一点 */
    transform: translateY(-2px) scale(1.05);
    /* 向上浮动并放大，增加交互感 */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.edit-btn:active {
    transform: translateY(0) scale(1);
    /* 点击时恢复原状 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 确保按钮和时间戳在同一行 */
.log-details div {
    display: flex;
    align-items: center;
}

#pomodoro-log-list li:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#pomodoro-log-list li:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


#pomodoro-log-list li:hover {
    background-color: #e6f7e6;
}

/* 任务文本 */
.task-text {
    color: #333;
    font-weight: 600;
}

/* 时间戳 */
.log-time {
    color: #aaa;
    font-size: 0.85em;
    flex-shrink: 0;
    /* 防止时间被压缩换行 */
}

/* --- 番茄钟日志样式结束 --- */
/* --- 番茄钟设置样式 --- */
.settings-container {
    border-top: 1px dashed #ccc;
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    justify-content: space-around;
    gap: 15px;
    align-items: center;
}

.settings-container h4 {
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    color: #6B8E23;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item label {
    font-size: 0.9em;
    color: #555;
}

.setting-item input[type="number"] {
    width: 50px;
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

/* 修改日志样式以容纳更多信息 */
#pomodoro-log-list li {
    flex-direction: column;
    /* 垂直排列 */
    align-items: flex-start;
    /* 左对齐 */
    gap: 5px;
    /* 元素间距 */
}

.log-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.task-text {
    font-size: 1.1em;
    /* 任务文本稍大一些 */
}

.log-time {
    font-size: 0.8em;
    /* 时间戳小一点 */
}

.log-duration {
    font-size: 0.9em;
    color: #2E8B57;
    /* 绿色，突出显示时长 */
    font-weight: bold;
    align-self: flex-end;
    /* 靠右对齐 */
}

/* --- 样式美化: 任务输入框 --- */

/* 任务输入框容器 */
.task-input-container {
    margin: 15px 0 25px 0;
    /* 调整上下边距 */
}

/* 任务输入框样式 (美化版) */
#task-input {
    width: 85%;
    /* 稍微加宽一点 */
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    /* 边框颜色变柔和 */
    border-radius: 25px;
    /* 改为圆角胶囊形状 */
    font-size: 1em;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    color: #6B8E23;
    transition: all 0.3s ease-in-out;
    background-color: #fdfdfd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    /* 添加内阴影，更有质感 */
}

#task-input::placeholder {
    /* 修改提示文字样式 */
    color: #b0b0b0;
    font-style: italic;
}

#task-input:focus {
    outline: none;
    border-color: #8FBC8F;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(143, 188, 143, 0.6);
    /* 聚焦时发光效果 */
}

#task-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    box-shadow: none;
}


/* --- 样式美化: 时间设置 --- */

.settings-container {
    border-top: 1px dashed #e0e0e0;
    /* 分割线颜色变淡 */
    margin-top: 25px;
    padding: 20px 15px 10px 15px;
    /* 调整内边距 */
    display: flex;
    justify-content: space-between;
    /* 改为两端对齐，更好看 */
    align-items: center;
    background-color: #fafdfa;
    /* 给设置区域一个淡淡的背景色 */
    border-radius: 12px;
    /* 添加圆角 */
    gap: 10px;
}

.settings-container h4 {
    /* 我们把标题去掉，直接用 label，更简洁 */
    display: none;
}

.setting-item {
    display: flex;
    flex-direction: column;
    /* 让文字和输入框垂直排列 */
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    /* 让每个item平分空间 */
}

.setting-item label {
    font-size: 0.9em;
    color: #555;
    font-weight: 600;
}

.setting-item input[type="number"] {
    width: 80%;
    /* 宽度自适应 */
    max-width: 70px;
    /* 但不要太宽 */
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    /* 输入框也加圆角 */
    font-size: 1.1em;
    text-align: center;
    font-family: 'Arial', sans-serif;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
    /* 隐藏增减箭头 (Firefox) */
}

/* 隐藏增减箭头 (Chrome, Safari, Edge) */
.setting-item input[type="number"]::-webkit-outer-spin-button,
.setting-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: #FFDAB9;
    /* 聚焦时用可爱的桃色 */
    box-shadow: 0 0 8px rgba(255, 218, 185, 0.7);
}