a Schematic of the light illumination and virus injection strategy for the expression of CaMKIIα-eNpHR or CaMKIIα-mCherry in the LPBN of wild-type mice. b Yellow illumination (589 nm, 1 Hz, 999-ms pulse width, 10 mW) of the LPBN significantly elevates the PWT in response to mechanical stimulation in both Sham-operated and CPN-ligated mice transfected with AAV-CaMKIIα-eNpHR, but not in mice transfected with CaMKIIα-mCherry in the LPBN. c Yellow illumination (589 nm, 1 Hz, 999-ms pulse width, 10 mW) of the LPBN significantly increases the latency of the thermal paw-withdrawal response in the Hargreaves test in both Sham-operated and CPN-ligated mice transfected with AAV-CaMKIIα-eNpHR, but not in mice transfected with CaMKIIα-mCherry in the LPBN. d Schematic of the real-time place preference (RTPP) test. e Representative tracks of RTPP illustrating yellow (589 nm) light-evoked behavioral preference in CPN-ligated mice injected with AAV-CaMKIIα-mCherry (left) or CaMKIIα-eNpHR (right) virus in the LPBN. f, g Quantification of RTPP in CPN-ligated mice before (Pre), during (Light), and after (Post) 10-min yellow illumination of the LPBN in mice injected with AAV-CaMKIIα-mCherry (f) or CaMKIIα-eNpHR (g). h Schematic of the open field test (OFT) before (Pre), during (Light), and after (Post) 5 min photoinhibition (589 nm, 1 Hz, 999-ms pulse width, 10 mW) of LPBNCaMKIIα neurons. i Representative tracks of mice transfected with CaMKIIα-mCherry (left) or CaMKIIα-eNpHR (right) in the LPBN with yellow laser illumination (589 nm) in Sham-operated (upper) or CPN-ligated (lower) wild-type mice. j–m Quantification of total distance moved (j, l) and ratio of time spent in the periphery and center (k, m) in the OFT before (Pre), during (Light), and after (Post) 5 min yellow light illumination of the LPBN in mice transfected with CaMKIIα-mCherry or CaMKIIα-eNpHR in Sham-operated (j, k) and CPN-ligated (l, m) mice. All data are presented as mean ± s.e.m. and error bars represent s.e.m. *P < 0.05, **P < 0.01, and ****P < 0.0001. See also Supplementary Table 1 for further statistical information. Source data are provided as a Source Data file.