.light-section {
  position: absolute;
  right: 0.3%;
  top: 0;
  width: 5.625vw;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.469vw;        
}

/* ---- 灯泡 ---- */
.light-bulb-wrap {
  position: relative;
  width: 90%;
  aspect-ratio: 260 / 400;
}

/* ---- 光晕 ---- */
.light-glow {
  position: absolute;
  width: 180%;
  aspect-ratio: 1;
  top: 71%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(255, 245, 200, 0.55) 0%,
    rgba(255, 220, 120, 0.35) 15%,
    rgba(255, 190, 60,  0.15) 40%,
    rgba(255, 160, 30,  0.03) 65%,
    transparent 82%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.234vw);   
  box-shadow: 0 0 1.406vw 0.391vw rgba(0, 0, 0, 0.07);
}

/* ---- SVG ---- */
.light-bulb-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.234vw 0.391vw rgba(0, 0, 0, 0.10));
}

/* ---- 开关 ---- */
.light-toggle-wrap {
  width: 45%;
  aspect-ratio: 50 / 18;
  position: relative;
  cursor: pointer;
  z-index: 2;
  flex-shrink: 0;
  margin-top: -0.625vw;   
  overflow: hidden;
  border-radius: 0.938vw;  
}

.light-track {
  width: 100%;
  height: 100%;
  border-radius: 0.938vw;
  background: #cccccc;
  transition: background 0.35s ease;
}

.light-state-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "黑体", "SimHei", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.625vw;    
  line-height: 1;
  font-weight: 700;
  color: rgba(68, 68, 68, 0.65);
  pointer-events: none;
  transition: color 0.35s ease;
  z-index: 2;
  letter-spacing: 0.039vw; 
}

/* ---- 开关圆钮 ---- */
.light-knob {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 4%;
  width: 29%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.156vw 0.391vw rgba(0, 0, 0, 0.16);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.light-toggle-wrap.is-online .light-knob {
  left: calc(100% - 29% - 4%);
}

/* ---- 在线状态 ---- */
.light-toggle-wrap.is-online .light-track {
  background: linear-gradient(90deg, #c4a838, #d4b850);
}

.light-toggle-wrap.is-online .light-state-text {
  color: rgba(34, 34, 34, 0.7);
}

.light-toggle-wrap.is-online .light-glow {
  opacity: 0.85;
}

/* ---- 点击反馈 ---- */
.light-toggle-wrap:active {
  transform: scale(0.94);
  transition: transform 0.12s ease;
}

/* ---- 深色模式 ---- */
@media (prefers-color-scheme: dark) {
  .light-track {
    background: #555;
  }
  .light-state-text {
    color: rgba(204, 204, 204, 0.65);
  }
  .light-toggle-wrap.is-online .light-track {
    background: linear-gradient(90deg, #c4a838, #d4b850);
  }
  .light-toggle-wrap.is-online .light-state-text {
    color: rgba(17, 17, 17, 0.7);
  }
}
