/*
 * 小工具样式
 * 2025-2-28
 * 样式数量1
 * 最后修改2025-2-28
*/
/*公共css样式*/
.widget-box > div {
  margin-bottom: 20px;
}

.widget-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lf-widget {
  padding: 10px;
}
.widget-box .widget-title {
  display: block;
  float: left;
  padding: 0 10px 0 10px;
  height: 30px;
  line-height: 32px;
  text-align: center;
  font-size: 14px;
  border-radius: 6px 6px 0 0;
  background-color: #bae4ff63;
  color: #0765ff;
}

.widget-box .widget-title i {
  color: #0765ff;
  margin-right: 5px;
  font-size: 20px;
}

.widget-box .widget-min {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 0px var(--radius) var(--radius) var(--radius);
}

/*用户登录模块样式*/
.user-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.user-cover {
  position: relative;
  padding-bottom: 50%;
}

.user-cover img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.user-avatar-cover-tag {
  position: relative;
}

.user-avatar-name-desc {
  display: flex;
  flex-direction: row;
  padding: 0px 15px;
  position: relative;
}

.widget-avatar-box,
.widget-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 100%;
}

.widget-avatar-box {
  position: relative;
}

.widget-avatar-img {
  position: absolute;
  bottom: 35px;
}

.widget-name-box {
  margin-left: 10px;
}

.widget-name-box span {
  font-size: 16px;
  font-weight: 600;
}

.widget-desc-box p {
  font-size: 12px;
  color: #777;
}

.widget-desc {
  display: flex;
  flex-direction: column;
}

.user-tag {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 10px;
  flex-direction: column;
}

.widget-tag-box {
  position: relative;
}

.widget-tag-box a {
  padding: 0.15em 0.4em;
  margin: 2px 0px;
  font-weight: 400;
  font-size: 12px;
  display: flex;
  align-items: center;
  border-radius: 2px 0px 0px 2px;
  background: white;
  transition: all 1s;
  position: relative;
  right: -20px;
  bottom: 0px;
  color: #777;
}

.widget-tag-box a i {
  font-size: 13px;
  color: #777;
  margin-right: 2px;
}

.user-login-social-button {
  padding: 10px 15px;
  position: relative;
  margin-top: -25px;
}

.user-login-social-button input {
  width: 100%;
  margin: 0 0 15px;
  padding: 5px 10px 5px 30px;
  height: 32px;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  box-sizing: border-box;
  font-size: 14px;
}

.widget-login-box p {
  position: relative;
}

.widget-login-box p::before {
  position: absolute;
  display: flex;
  font-size: 20px;
  color: #e6e6e6;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
}

.widget-button-box {
  display: flex;
  align-items: center;
}

.widget-button-box div {
  width: 47%;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
}

.widget-button-box div:first-child {
  background-color: #6d89bb;
  margin-right: -10px;
}

.widget-button-box div:last-child {
  background-color: #5fb878;
  margin-left: -10px;
}

.widget-button-box span {
  background: white;
  width: 35px;
  height: 35px;
  border-radius: 100%;
  display: flex;
  font-size: 14px;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.widget-social-ul {
  text-align: center;
  margin-top: 10px;
}

.widget-social-ul a {
  border-radius: 100%;
  float: none;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  cursor: pointer;
  margin: 3px 5px;
}

.widget-social-ul i {
  font-size: 20px;
  color: white;
}

.widget-social-ul .smartphone {
  background-color: #107cd2;
}

.widget-social-ul .qq {
  background-color: #1296db;
}

.widget-social-ul .wechat {
  background-color: #24b76a;
}

.widget-social-ul .baidu {
  background-color: #4e6ef2;
}

.widget-social-ul .github {
  background-color: black;
}

.user-show-button {
  display: flex;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.button-text {
  opacity: 0;
  margin-right: calc(-1 * ((100% - 15px) / 5));
  transition: opacity 0.3s ease, margin-right 0.8s ease;
  /* 添加 margin-right 过渡 */
}

.user-show-button:hover .button-text {
  margin-right: 0px;
  opacity: 1;
  transition: opacity 0.3s ease, margin-right 0.8s ease;
  /* 保持一致的过渡 */
  color: #409eff;
}

.user-show-button:hover i {
  color: #409eff;
  transition: all 0.3s ease;
}

.user-show-button i {
  font-size: 20px;
}

.widget-ball-list.active {
  height: 100px;
  padding: 0px 10px;
}

.widget-ball-list {
  height: 0;
  overflow: hidden;
  padding: 0px 10px;
  transition: height 1s;
}

.widget-ball-list a {
  padding: 5px 10px 10px 15px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  position: relative;
}

.widget-ball-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 5px;
  top: 10px;
  border-radius: 10px;
  background-color: #409eff;
}

.user-publish-button {
  display: flex;
  padding: 10px 15px;
  justify-content: space-around;
  margin-top: -25px;
}

.user-publish-button a {
  padding: 5px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  color: #969696;
  transition: all 0.3s ease;
}

.user-publish-button a i {
  margin-right: 3px;
  color: #969696;
  transition: all 0.3s ease;
}

.user-publish-button a:hover {
  background-color: #0765ff;
  color: white;
}

.user-publish-button a:hover i {
  color: white;
}

.ArticleList {
  padding: 10px 0px;
}

.widget-user-article-picture {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 62%;
  width: 100%;
  border-radius: var(--radius);
}

.widget-user-article-picture > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.widget-user-article-picture img {
  width: 100%;
  height: 100%;
}

.widget-article-title {
  position: absolute;
  bottom: -17px;
  font-size: 10px;
  overflow: hidden;
  height: 17px;
  background: #22222259;
  padding: 3px;
  color: white;
  transition: all 0.3s ease;
}

.widget-user-article-picture:hover .widget-article-title {
  bottom: 0px;
  transition: all 0.3s ease;
}

/* 骨架屏样式(用于迟缓加载swiper) */
.ArticleList-skeleton {
  width: 100%;
  justify-content: space-around;
  max-height: 96px;
  height: 100px;
  max-width: 147px;
  padding: 10px 0px;
}

.ArticleList-skeleton .swiper-wrapper {
  display: flex;
  transform: translate3d(-100px, 0px, 0px);
}

.ArticleList-skeleton .swiper-wrapper .swiper-slide {
  margin-right: 5px;
}

.skeleton-item {
  width: 100px;
  height: 150px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/*用户登录模式结束*/
/*热门文章样式开始*/
.widget-article-box {
  margin-bottom: 10px;
}

.widget-hot-article-picture {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 62%;
  width: 100%;
}

.widget-hot-article-picture > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.widget-hot-article-picture img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.widget-hot-article-content p {
  font-size: 15px;
  max-height: 40px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.widget-hot-article-content p:hover {
  color: #0765ff;
  transition: all 0.3s ease;
}

.widget-hot-article-effect {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 5px;
}

.widget-hot-article-effect span {
  color: #969696;
}

.widget-hot-article-effect span:nth-child(1) i {
  color: #969696;
  font-size: 16px;
  margin-right: 3px;
}

.widget-hot-article-picture > a:nth-child(2) span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  color: white;
  padding: 3px;
  font-size: 11px;
}

.widget-hot-article-picture > a:nth-child(2) span > i {
  margin-left: 3px;
  color: white;
  font-size: 16px;
}

.widget-article-box:nth-child(n + 3) {
  display: flex;
  justify-content: space-between;
}

.widget-article-box:nth-child(n + 3) .widget-hot-article-picture {
  padding-top: 24%;
  max-width: 100px;
  max-height: 65px;
  display: block;
}

.widget-article-box:nth-child(n + 3) div:nth-child(1) {
  margin-right: 5px;
}
/*热门文章样式结束*/
/*热门图片样式开始*/
.widget-picture-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.widget-picture-box {
  position: relative;
  width: 48%;
}
.widget-picture-block {
  width: 100%;
  height: 100%;
  max-height: 210px;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}
.widget-picture-block a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.widget-picture-block img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}
.widget-picture-content {
  margin-top: 5px;
  font-size: 12px;
  max-height: 30px;
  overflow: hidden;
}
.widget-picture-content a {
  color: #777;
}
.widget-picture-content:hover a {
  color: #0765ff;
}
.widget-picture-block span {
  position: absolute;
  bottom: 5px;
  right: -55px;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  color: white;
  padding: 2px 4px;
  transition: all 1s ease;
}
.widget-picture-block:hover span {
  right: 5px;
  transition: all 1s ease;
}
.widget-picture-block span i {
  color: rgb(240 130 129);
  font-size: 16px;
  margin-right: 3px;
}
/*热门图片样式结束*/
/*侧边栏音乐播放器样式开始*/
.widget-music-wrapper {
  padding: 15px 20px;
}
.widget-music-play {
  display: flex;
  flex-direction: column;
}
.widget-music-picture {
  position: relative;
  max-width: 260px;
  max-height: 260px;
  min-height: 260px;
  min-width: 260px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
}
.widget-music-picture a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.widget-music-picture img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.widget-music-header {
  display: flex;
  font-size: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.widget-music-header i {
  color: #969696;
}
.music-linke-mode-blog span {
  margin: 0px 5px;
}
.widget-music-lyrics-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.widget-music-lyrics-content * {
  color: #777;
}
.widget-music-lyrics-content h2 {
  font-size: 25px;
}
.widget-music-lyrics-content p {
  font-size: 16px;
}
.widget-music-lyrics-content span {
  margin: 10px 0px;
  max-height: 40px;
  overflow: hidden;
}
.music-star-end-time {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.music-star-end-time span {
  color: #777;
}
.widget-music-noop {
  margin-bottom: 20px;
}
.widget-music-noop .widget-noop {
  width: 100%;
  height: 5px;
  background-color: #bae4ff63;
  border-radius: 5px;
  margin-bottom: 5px;
  position: relative;
}
.widget-music-noop .musci-cur {
  position: relative;
  height: 5px;
  background-color: #0765ff;
  width: 25%;
}
.widget-music-noop .musci-cur span {
  width: 10px;
  height: 10px;
  background-color: #0765ff;
  border-radius: 50%;
  top: -3px;
  right: 0px;
  position: absolute;
}
.widget-music-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 35px;
}
.widget-music-button .ri-netease-cloud-music-fill {
  color: #da1826;
}
.widget-music-button .ri-play-large-fill {
  color: #0765ff;
}

/*侧边栏音乐播放器样式结束*/
