/* 文本框能量光晕：使用当前模板 footer.jsp 的 --theme-primary。 */
html body .template-energy-control {
    transition: border-color .3s ease, box-shadow .4s ease;
}
html body .template-energy-control:focus {
    border-color: var(--theme-primary, #0754f8) !important;
    outline: none !important;
    animation: template-input-energy-breathe 3s ease-in-out infinite;
}
@keyframes template-input-energy-breathe {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(var(--template-energy-rgb, 7, 84, 248), .09),
                    0 0 24px 4px rgba(var(--template-energy-rgb, 7, 84, 248), .17);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(var(--template-energy-rgb, 7, 84, 248), .13),
                    0 0 38px 8px rgba(var(--template-energy-rgb, 7, 84, 248), .29);
    }
}
@media (prefers-reduced-motion: reduce) {
    html body .template-energy-control:focus {
        animation: none;
        box-shadow: 0 0 0 4px rgba(var(--template-energy-rgb, 7, 84, 248), .09),
                    0 0 24px 4px rgba(var(--template-energy-rgb, 7, 84, 248), .17);
    }
}
