:root{
  --brand:#0d6efd;
}

body{ background:#f6f7fb; }

.hero{
  background: linear-gradient(135deg, rgba(13,110,253,.35), rgba(25,135,84,.22)), #111;
}

.text-shadow{ text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.text-white-75{ color: rgba(255,255,255,.75) !important; }

.card-hover{ transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
}

.content-body{
  line-height: 1.8;
  color:#222;
  word-break: break-word;
}

.glossary-link{
  text-decoration: none;
  border-bottom: 1px dashed rgba(13,110,253,.8);
  color: #0d6efd;
}

.img-adapt{
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.img-detail{
  max-height: 460px;
  object-fit: cover;
}

/* ------- 电池热度按钮 ------- */
.battery-btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.battery-btn.charging{ transform: scale(1.06); }

.battery{
  --fill: 0%;
  width: 34px;
  height: 18px;
  border: 2px solid #1b1f24;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  background: #fff;
}

.battery:after{
  content:"";
  position:absolute;
  right:-6px;
  top:50%;
  transform: translateY(-50%);
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background:#1b1f24;
}

.battery:before{
  content:"";
  position:absolute;
  left:2px; top:2px; bottom:2px;
  width: var(--fill);
  background: linear-gradient(90deg, #18a558, #4ade80);
  border-radius: 2px;
  transition: width .2s ease;
}
