body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f5; /* 稍微深一点的背景色 */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

button {
    background-color: #007aff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#notesList {
    display: grid;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.note-card {
    background: rgba(255, 255, 255, 0.9); /* 增加不透明度 */
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 增加阴影 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* 增加卡片之间的间距 */
}

.note-info {
    flex-grow: 1;
}

.note-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333; /* 更深的文字颜色 */
}

.note-date {
    font-size: 14px;
    color: #666; /* 更深的日期颜色 */
}

#noteEditorOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#noteEditor {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#noteTitle, #noteContent {
    width: 100%;
    border: none;
    background-color: transparent;
    margin-bottom: 15px;
    font-size: 16px;
}

#noteTitle {
    font-size: 20px;
    font-weight: 600;
}

#noteContent {
    height: 200px;
    resize: vertical;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.secondary {
    background-color: #8e8e93;
}

.secondary:hover {
    background-color: #636366;
}

.note-actions button {
    padding: 5px 10px;
    font-size: 14px;
}

.edit-btn, .delete-btn {
    padding: 6px 10px;
    font-size: 12px;
    margin-left: 5px;
}

.edit-btn {
    background-color: #4CAF50; /* 绿色 */
}

.edit-btn:hover {
    background-color: #45a049;
}

.delete-btn {
    background-color: #f44336; /* 红色 */
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

@media (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        margin-bottom: 10px;
    }

    .note-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-actions {
        margin-top: 10px;
    }

    #noteEditor {
        width: 95%;
        padding: 15px;
    }

    #noteContent {
        height: 150px;
    }
}

/* 在文件末尾添加以下样式 */

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.page-btn {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-btn:hover {
    background-color: #0056b3;
}

.page-btn.active {
    background-color: #0056b3;
}

.page-ellipsis {
    margin: 0 5px;
    color: #333;
}

#noteEditorOverlay {
    display: none;
}

#noteEditorOverlay.show {
    display: flex;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

#pagination {
    transition: opacity 0.3s ease;
}