/* ---------------------------------------------------------------
 * 站点级自定义样式（butterfly 主题）
 * 通过 _config.butterfly.yml 的 inject.head 引入，不改主题源码。
 * 建议：只写覆盖规则，用 .post / .card-widget / :root 等选择器提高优先级。
 * ------------------------------------------------------------- */

/* 示例：正文字号与行高
.post-content {
  font-size: 16px;
  line-height: 1.85;
}
*/

/* 注意：不要添加顶部/底部/侧边渐变条（用户明确要求） */

/* ===============================================================
 * 侧边栏作者卡高亮
 * =============================================================== */

.card-widget.card-info {
  position: relative;
  background: linear-gradient(160deg, rgba(80, 93, 109, 0.16) 0%, rgba(73, 177, 245, 0.10) 45%, rgba(215, 227, 239, 0.20) 100%);
  border: 1px solid rgba(80, 93, 109, 0.22);
  box-shadow: 0 10px 26px -14px rgba(80, 93, 109, 0.55);
}


/* 头像描边 + 光晕 */
.card-widget.card-info .avatar-img {
  box-shadow: 0 0 0 4px rgba(73, 177, 245, 0.22), 0 10px 22px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-widget.card-info .avatar-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 4px rgba(73, 177, 245, 0.45), 0 14px 26px -10px rgba(0, 0, 0, 0.55);
}

/* 昵称渐变字 */
.card-widget.card-info .author-info-name {
  background: linear-gradient(90deg, #505d6d, #49b1f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 按钮跟随同一套配色 */
.card-widget.card-info #card-info-btn,
.card-widget.card-info .card-info-btn {
  display: block;
  margin-top: 14px;
  padding: 0;
  color: #fff;
  text-align: center;
  line-height: 2.4;
  border-radius: 7px;
  background: #505d6d;
  transition: background 0.3s ease;
}

.card-widget.card-info .card-info-btn + .card-info-btn {
  margin-top: 10px;
}

.card-widget.card-info .card-info-btn span {
  padding-left: 10px;
}

.card-widget.card-info #card-info-btn:hover,
.card-widget.card-info .card-info-btn:hover {
  background: #49b1f5;
  color: #fff;
}

/* 作者卡：三个按钮并排一行 */
.card-widget.card-info .card-info-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.card-widget.card-info .card-info-buttons .card-info-btn {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 2.2;
}

.card-widget.card-info .card-info-buttons .card-info-btn i {
  font-size: 15px;
}

.card-widget.card-info .card-info-buttons .card-info-btn span {
  display: none;
}

/* 暗色模式 */
[data-theme="dark"] .card-widget.card-info {
  background: linear-gradient(160deg, rgba(73, 177, 245, 0.14) 0%, rgba(80, 93, 109, 0.20) 60%, rgba(20, 24, 30, 0.55) 100%);
  border-color: rgba(73, 177, 245, 0.25);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .card-widget.card-info .author-info-name {
  background: linear-gradient(90deg, #d7e3ef, #49b1f5);
  -webkit-background-clip: text;
  background-clip: text;
}

/* 作者卡：隐藏「文章 / 标签 / 分类」统计（主题里是硬编码的 .site-data） */
.card-widget.card-info .site-data {
  display: none;
}

/* 首页其它卡片：统一蓝色描边（作者卡除外，它有自己的高亮样式） */
.recent-post-items .recent-post-item,
.aside-content .card-widget:not(.card-info) {
  border: 1px solid rgba(73, 177, 245, 0.25);
}


/* 文章标题悬停颜色统一为 #49b1f5 */
.article-title:hover,
.article-title:focus,
.pagination-related:hover,
.pagination-related:focus,
.aside-list-item .content .title:hover,
.aside-list-item .content .title:focus {
  color: #49b1f5;
}
