diff --git a/src/components/TemplateCard/index.css b/src/components/TemplateCard/index.css index 16cfa81..5950851 100644 --- a/src/components/TemplateCard/index.css +++ b/src/components/TemplateCard/index.css @@ -122,15 +122,20 @@ /* 积分悬浮徽章 - 图片右上角 */ .credit-badge { position: absolute; - top: 20px; + top: 12px; right: 12px; z-index: 4; background: rgba(255, 107, 53, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); - border-radius: 12px; - padding: 4px 8px; + border-radius: 10px; + padding: 3px 6px; box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); + display: flex; + align-items: center; + justify-content: center; + min-height: 18px; + line-height: 1; } .credit-text { @@ -138,6 +143,10 @@ font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); + margin: 0; + padding: 0; + line-height: 1; + display: block; } /* 标签悬浮 - 图片底部 */