--- interface Props { title: string; description?: string; image?: string; link?: string; className?: string; color?: string; spotlightSize?: 'small' | 'medium' | 'large'; spotlightIntensity?: 'subtle' | 'medium' | 'strong'; } const { title, description, image, link, className = "", color = "rgba(75, 107, 255, 0.3)", // 默认是蓝色光晕 spotlightSize = 'medium', spotlightIntensity = 'medium' } = Astro.props; const id = `spotlight-card-${Math.random().toString(36).substring(2, 11)}`; // 计算光晕大小 const sizeMap = { small: '70%', medium: '100%', large: '130%' }; // 计算光晕强度 const intensityMap = { subtle: '0.15', medium: '0.25', strong: '0.4' }; const spotlightSizeValue = sizeMap[spotlightSize]; const spotlightIntensityValue = intensityMap[spotlightIntensity]; ---