.notes-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 120px);
}

.notes-sidebar {
    width: 250px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-category {
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-category:hover {
    background-color: var(--secondary-color);
    border-radius: 6px;
}

.note-category.active {
    background-color: var(--primary-color);
}

.note-category.active .category-header {
    background-color: transparent;
}

.note-category.active h3 {
    color: white;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 6px;
}

.section-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.category-header h3 {
    margin: 0;
    color: var(--text-color);
}

.edit-btn {
    padding: 4px 12px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.edit-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.edit-more button {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 2px dashed var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-more button:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.notes-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-section {
    display: none;
}

.note-section.active {
    display: block;
}

.note-content {
    min-height: 300px;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.note-content.editing {
    border-color: var(--border-color);
    background-color: var(--secondary-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 100px auto;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

.category-list {
    margin: 20px 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-item button {
    padding: 4px 12px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-category-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notes-container {
        flex-direction: column;
    }

    .notes-sidebar {
        width: 100%;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.section-title h2.editing {
    border-color: var(--border-color);
    background-color: var(--secondary-color);
    min-width: 100px;
}

.edit-title-btn {
    padding: 4px 12px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-title-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.search-notes {
    position: relative;
    width: 200px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: var(--secondary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.result-preview {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.result-date {
    font-size: 12px;
    color: #999;
} 