From 7f727d72e65f100ee05a0a1a7401d5419728cc3f Mon Sep 17 00:00:00 2001 From: Orion Date: Fri, 11 Sep 2026 17:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(core):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=82=AC=E5=81=9C=E5=8A=A8=E6=95=88=E4=B8=8E=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 细化卡片悬停效果,区分嵌套卡片与外层卡片的位移幅度 * 规范卡片 hover 交互,确保统一的动画曲线与过渡时间 * 修复健康卡片悬停后的位置偏移与交互反馈 * 统一列表行交互样式,移除不必要的阴影以优化视觉体验 --- src/assets/style/main.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/assets/style/main.css b/src/assets/style/main.css index 241f933..9b8b981 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -489,6 +489,12 @@ html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); } border-color: transparent !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; } +/* Nested cards use the demo's lighter 2px lift; outer cards keep 4px. */ +.theme-2026-card .theme-2026-card-hover:hover, +.theme-2026-card-hover.fcb-lifecycle-card:hover, +.theme-2026-card-hover .fcb-secondary-card:hover { + transform: translateY(-2px) !important; +} /* Keep every dashboard card on the same 300ms pastel hover curve. */ .theme-2026-card-hover { @@ -524,15 +530,18 @@ button:not(:disabled):hover { filter: brightness(1.025); } .border-gray-100, .border-gray-200, .border-gray-300, .border-gray-600, .border-gray-700 { border-color: #d5e1e5 !important; } .bg-red-600, .bg-red-500 { background-color: #d99a9c !important; } .hover\\:bg-red-700:hover { background-color: #c9888b !important; } -.animate-spin-slow { animation: none !important; } .fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); } .fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; } /* Final interaction overrides: no row shadow trails, visible health-card motion. */ .fcb-health-card { + transform: translateY(0) !important; transition-duration: 380ms !important; transition-timing-function: ease !important; } +.fcb-health-card:hover { + transform: translateY(-4px) !important; +} .fcb-list-row { transition: background-color 260ms ease-out !important; box-shadow: none !important;