872ad8cf3b
参考文献 now sits in the header to the right of 论文 and 模板 — the library is drawn *from* rather than worked in, so it is a button one step away. Its own second-level menu marks out 文献列表 / 新增文献 / 标签管理 and then lists the tags themselves, read from their store, so a label can be picked straight from the rail. A tag in the rail links to `/references?tag=<id>`, which makes the query parameter part of the view rather than hidden filter state: the table's own selector writes the same parameter, so the two cannot disagree and a filtered view is a link someone can be sent. The form keeps the order the feature intends — a tag is created before it is applied, so no stored reference can point at a label that is not there — and the citation count in a row opens the answer it exists to give (which paper, which paragraph, which quoted passage). Tag colours are painted from the row rather than a class map: the palette is the writer's, and the chip has to be that hue in the table, in the rail and in the picker.