refactor: 去掉纸叠亮边——删 stack-1/stack-2 与死代码 .sem-shadow,全组件统一复用 shadow-hard/shadow-hard-lift 唯一投影配方;E2E 新增「基础组件投影统一」契约(data-comp 钩子 + 计算值全等)

This commit is contained in:
cqh963852 committed 2026-10-06 13:45:10 +08:00
1 parent 789c8ac5bc
commit b528b5396a
17 files changed
+33 -22

No files matched your search

@@ -68,11 +68,11 @@ export function MemphisCard({ chapter, entry, compact = false }: { chapter: Chap
<a
ref={boxRef}
href={`#ch${chapter.id}`}
data-comp="course-card"
className="group relative block rounded-[14px] border-2 border-ink bg-paper p-[11px] no-underline
shadow-[0_3px_0_var(--color-stack1),0_5px_0_var(--color-stack2),7px_8px_0_var(--color-ink)]
transition-transform duration-150 focus-visible:outline-none
hover:-translate-y-[3px] hover:shadow-[0_3px_0_var(--color-stack1),0_5px_0_var(--color-stack2),10px_11px_0_var(--color-ink)]
focus-visible:-translate-y-[3px] focus-visible:shadow-[0_3px_0_var(--color-stack1),0_5px_0_var(--color-stack2),10px_11px_0_var(--color-ink)]"
shadow-hard transition-transform duration-150 focus-visible:outline-none
hover:-translate-y-[3px] hover:shadow-hard-lift
focus-visible:-translate-y-[3px] focus-visible:shadow-hard-lift"
onMouseEnter={() => setLocked(true)}
onMouseLeave={() => setLocked(false)}
onFocus={() => setLocked(true)}