/**
 *Copyright (C), 2025, GOSUN CL
 *file: like-override.css
 *brief: 视评图说主题
 *Theme URI: https://faq7777.com
 *author: 视评图说
 *date: 2025年7月7日
 *version: 7.7.0
 */

/* 个人修复：添加CSS变量定义 */
:root {
  --spt-primary: rgba(47, 134, 255, 1);
  --spt-grad: linear-gradient(135deg, rgba(47, 134, 255, 0.15) 0%, rgba(47, 134, 255, 0.25) 100%);
}

/* 个人修复：合并回到顶部按钮样式,修复重复定义和样式冲突 */
#mzaback {
  position: fixed;
  width: 46px;
  height: 46px;
  right: 16px;
  bottom: 80px;
  background: transparent url("../images/icon_backtop.png") no-repeat center center;
  background-size: 60% auto;
  border-radius: 8px;
  z-index: 9999;
  cursor: pointer;
  display: none;
}

/* 个人修复：修复响应式样式,删除无效百分比 */
@media (max-width: 768px) {
  #mzaback {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  #mzaback {
    width: 30px;
    height: 30px;
    right: 8px;
    bottom: 40px;
    border-radius: 5px;
  }
}

/* 个人修复：合并点赞按钮样式,统一优先级 */
.sptsz-like .icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: url('../images/dz.png') no-repeat center/contain;
}

.sptsz-like.is-liked .icon {
  background-image: url('../images/dz_on.png');
}

.like-bar {
  text-align: center;
  margin: 12px 0 18px;
}

/* 个人修复：合并点赞按钮所有样式,删除重复定义 */
.sptsz-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 4px 11px;
  border-radius: 12px;
  background: var(--spt-grad);
  border: 1px solid rgba(47, 134, 255, 0.55);
  color: var(--spt-primary);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 134, 255, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.sptsz-like:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 134, 255, 0.28);
}

.sptsz-like:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* 个人修复：统一文本和计数样式 */
.sptsz-like span {
  flex: 1 1 auto;
  text-align: center;
  letter-spacing: 0.2px;
  font-size: 0.9em;
  line-height: 1.2;
}

.sptsz-like .count {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--spt-primary);
  border: 1px solid rgba(47, 134, 255, 0.35);
  box-shadow: 0 2px 6px rgba(47, 134, 255, 0.15) inset;
  font-weight: 600;
  font-size: 0.95em;
}
