// STYLE 1: DOSSIER — 经典档案袋 · 深色 + 牛皮纸 + 红印章
// 首页布局:档案墙,网格卡片 + 分类筛选
const dossierStyles = {
page: {
background: "#0a0a0a",
color: "#e8e2d0",
minHeight: "100vh",
fontFamily: "'EB Garamond','Noto Serif SC',serif",
},
};
const DossierHeader = () => (
);
const DossierNav = () => {
const items = [
["首页", "HOME", "index.html"],
["分类", "CATEGORY", "category.html"],
["档案库", "ARCHIVE", "archive.html"],
["地图", "MAP", "map.html"],
["标签", "TAG", "tag.html"],
["关于", "ABOUT", "about.html"],
["检索", "SEARCH", "search.html"],
];
return (
);
};
const DossierFilter = ({ active, onChange }) => (
▸ 按案件类型筛选 / FILTER BY CLASSIFICATION
{CATEGORIES.map((c) => {
const on = active === c.k;
return (
);
})}
);
const DossierCard = ({ item, featured = false, rot = 0 }) => {
const statusColor = {
"未结": "#a81515", "进行中": "#c49a3a", "已破": "#5a7a4a",
"已归档": "#a89b78", "悬疑": "#a81515", "封闭": "#6a6257",
"民间": "#8a6f49",
}[item.status] || "#a89b78";
return (
{/* folder tab */}
▸ {item.cat_en} / {item.cat}
{/* red stamp at top right */}
{item.id}
{item.date}
{item.title}
{item.title_en}
{item.excerpt}
{item.tags.map(t => (
#{t}
))}
阅卷 → OPEN FILE
);
};
const MetaRow = ({ label, value, color }) => (
{label}
{value}
);
const DossierFooter = () => (
);
const DossierView = () => {
const [active, setActive] = React.useState("all");
const filtered = active === "all" ? CASES : CASES.filter(c => c.cat === active);
const [hero, ...rest] = filtered;
return (
本期重点 / FEATURED FILE
最后更新 · LAST UPDATED · 2026.04.18 03:17 UTC
{/* featured full-width dossier */}
{hero && (
)}
全部案卷 / CASE FILES · {filtered.length}
排序 ▾ 最新归档
{rest.map((item, i) => (
))}
);
};
const FeaturedDossier = ({ item }) => (
{/* torn tape */}
{/* giant stamp */}
▸ {item.cat_en} / {item.cat}
{item.date}
{item.title}
{item.title_en}
{item.excerpt}
);
window.DossierView = DossierView;