/* 首页文章卡片、侧边栏卡片、独立页面框全面半透明化 */
.recent-post-item, .card-widget, #post, #page, #archive, #tag, #category {
  background: rgba(255, 255, 255, 0.75) !important; /* 💡 0.75 代表 75% 的不透明度。数字越小越透明，比如 0.6 */
  backdrop-filter: blur(8px) !important;             /* 💡 毛玻璃模糊度，数字越大越模糊 */
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 完美适配暗黑模式（如果你右上角切换了夜间模式，框框会自动变暗半透明） */
[data-theme="dark"] .recent-post-item, 
[data-theme="dark"] .card-widget, 
[data-theme="dark"] #post, 
[data-theme="dark"] #page, 
[data-theme="dark"] #archive, 
[data-theme="dark"] #tag, 
[data-theme="dark"] #category {
  background: rgba(24, 24, 24, 0.7) !important;    /* 夜间模式下的透明黑底 */
}

/* ==================== 右下角静态宠物挂件样式（完全保留你的原本代码） ==================== */
#custom-static-pet {
  position: fixed;
  bottom: 40px;      /* 距离底部的高度，可以根据需要调整 */
  right: 30px;       /* 距离右侧的距离 */
  width: 190px;       /* 宠物显示的宽度，可以根据你的图片比例调整大小 */
  z-index: 99;       /* 确保显示在网页最上层 */
  cursor: pointer;
  pointer-events: auto;
  
  /* 绑定上下浮动的呼吸动画，4秒一个周期，无限循环 */
  animation: petFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 鼠标放上去时的互动效果：放大并微微发光 */
#custom-static-pet:hover {
  transform: scale(1.15); 
  filter: drop-shadow(0 0 8px rgba(135, 206, 235, 0.8)); /* 悬停时的小高光 */
  animation-play-state: paused; /* 鼠标放上去时暂停浮动，方便看清 */
}

/* 定义上下浮动的呼吸动画 */
@keyframes petFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px); /* 最高向上浮动 8 像素 */
  }
  100% {
    transform: translateY(0px);
  }
}

/* 手机端屏幕太小时自动隐藏，防止挡住文字阅读 */
/* 🟢 替换为这段新代码：让宠物在手机端完美显现 */
@media screen and (max-width: 768px) {
  #custom-static-pet {
    display: block !important;       /* 强行显示 */
    visibility: visible !important;  /* 强行可见 */
    width: 50px !important;          /* 手机端大小 */
    bottom: 140px !important;        /* 👈 显著往上挪高，彻底避开手机端右下角的右侧悬浮菜单 */
    right: 10px !important;          /* 靠边 */
    z-index: 999999 !important;      /* 👈 将层级拉到无限大，确保没有任何东西能挡住它 */
  }
}


/* ============== 🟢 紧接其后新增：古典宣纸砚墨风对话气泡 ============== */
/* ============== 🟢 完美复刻：大方自适应、严格按标点单行排版的气泡 ============== */
#pet-bubble {
  position: fixed;
  transform: translateX(-50%) scale(0.8);      /* 初始微缩，用于弹跳动画 */
  background: rgba(36, 33, 30, 0.94) !important; /* 墨砚黑底色 */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.35);   /* 鎏金细边线 */
  border-radius: 6px;                           /* 优雅的微圆角 */
  
  /* 空间精调：保持大气、饱满的古典书卷感 */
  padding: 12px 20px !important;                /* 上下 12px 留白，左右 20px 舒适大衬里 */
  font-size: 16px !important;                   /* 字号微调至极为精致易读的 16px */
  color: #f3ebd4 !important;                    /* 仿古丝绢白文字 */
  font-family: "Kaiti", "STKaiti", "Noto Serif SC", serif !important; /* 典雅中式楷体 */
  
  /* 🟢 核心修复：彻底扔掉固定宽度，改为由最长的一句话来决定气泡宽度 */
  box-sizing: border-box !important;
  width: max-content !important;                 /* 💡 核心：自动匹配最长那一行的真实宽度，气泡不再干瘪 */
  max-width: 360px !important;                  /* 💡 设定一个安全的自适应最大上限 */
  
  /* 🟢 核心铁律：句子内部绝对不准任何捏造的断行 */
  white-space: pre !important;                  /* 💡 核心：严格只认 JS 传入的 \n 换行，句子内部绝对不准私自折行！ */
  line-height: 1.7 !important;                  /* 舒适的诗集行高 */
  text-align: center !important;                /* 每一行文字水平居中对齐，非常整齐 */
  
  z-index: 1000000 !important;                  /* 确保图层压过一切组件 */
  opacity: 0;
  pointer-events: none;                         /* 鼠标穿透 */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);   /* 悬浮立体阴影 */
  
  /* 贝塞尔曲线微弹动画 */
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 气泡下方的指向小箭头（同步精细化对齐） */
#pet-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(36, 33, 30, 0.94);
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

/* 唤醒气泡时的显示状态 */
#pet-bubble.show {
  opacity: 1 !important;
  transform: translateX(-50%) scale(1) !important;
}

/* ==================== 极简古风双生并排音乐条 ==================== */
#custom-music-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px 0;
  box-sizing: border-box;
  align-items: center;
}

/* ==================== 【左】：集成进度条的古典播放器 ==================== */
#custom-mini-player {
  display: flex;
  align-items: center;
  height: 48px !important;       /* 保持 48px 舒适框体 */
  padding: 0 16px !important;
  background: rgba(36, 33, 30, 0.75) !important; /* 砚墨底色 */
  backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  min-width: 360px;              /* 💡 锁定左侧基础宽度，给进度条留出开阔空间 */
}

/* 歌曲封面 */
#custom-player-cover {
  width: 30px !important;
  height: 30px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin: 0 12px 0 0 !important;
  flex-shrink: 0;
}

/* 歌曲名与歌手 */
.player-info {
  display: flex;
  align-items: center;
  font-family: "Kaiti", "STKaiti", serif !important;
  font-size: 16px !important;
  color: #f3ebd4 !important;
  max-width: 110px;              /* 适当缩减文本最大宽，防止推挤进度条 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.player-splitter {
  margin: 0 4px;
  opacity: 0.5;
}
#custom-player-artist {
  opacity: 0.8;
}

/* 🟢 核心新增：细鎏金可拖拽进度条样式 */
.player-progress-wrapper {
  flex: 1;                       /* 自动伸缩填满中间的空隙 */
  height: 14px;                  /* 拓宽鼠标易点按的隐形热区 */
  display: flex;
  align-items: center;
  margin: 0 14px;
  cursor: pointer;
  position: relative;
}
/* 进度条未播放轨道底色 */
.player-progress-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;                   /* 真实的细线条高度 */
  background: rgba(212, 175, 55, 0.15);
  border-radius: 2px;
}
/* 已播放进度条深浅鎏金填充 */
.player-progress-played {
  height: 4px;
  background: #f3ebd4;           /* 经典古风丝绢白 */
  border-radius: 2px;
  width: 0%;
  position: relative;
  z-index: 2;
}
/* 进度条末端的小滑块（滑过时平滑浮现） */
.player-progress-dot {
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f3ebd4;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
  opacity: 0;
  transition: opacity 0.15s ease;
}
/* 当鼠标移入进度条区域时，小圆点滑块显现出来，提示可以拖动 */
.player-progress-wrapper:hover .player-progress-dot {
  opacity: 1;
}

/* 控制按钮 */
.player-btns {
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(212, 175, 55, 0.6);
  flex-shrink: 0;
}
.player-btns i {
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s ease;
}
.player-btns i:hover {
  color: #f3ebd4;
}

/* ==================== 【右】：秀气古典歌词栏 ==================== */
#custom-lyric-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px !important;
  padding: 0 24px !important;
  background: rgba(36, 33, 30, 0.75) !important; 
  backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.25); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  overflow: hidden;
}

/* 歌词主文本：18px 大气易读 */
#lyric-text {
  font-family: "Kaiti", "STKaiti", "Noto Serif SC", serif !important;
  color: #f3ebd4 !important;
  font-size: 24px !important;
  font-weight: 500;
  text-align: center;
  flex: 1;
  line-height: 46px !important;
  height: 46px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.lyric-icon {
  color: rgba(212, 175, 55, 0.4);
  font-size: 14px;
}

/* 彻底关闭任何重叠干扰与左下角原挂件 */
.aplayer-lrc, .aplayer.aplayer-fixed {
  display: none !important;
}

/* ==================== 移动端自适应回弹 ==================== */
@media screen and (max-width: 768px) {
  #custom-music-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  #custom-mini-player, #custom-lyric-bar {
    width: 100% !important;
    min-width: 100% !important;
    height: 42px !important;
  }
  #lyric-text {
    font-size: 15px !important;  
    line-height: 40px !important;
    height: 40px !important;
  }
  .player-progress-wrapper {
    margin: 0 8px;
  }
}

/* ==================== 1. 完全复刻 Fuwari 个人信息卡片 ==================== */

/* 统一卡片的内边距与圆角 */
#aside-content .card-info {
  padding: 22px !important;
  border-radius: 16px !important;
}

/* 头像 100% 填满横向空间并保持方正大圆角 */
#aside-content .card-info .avatar-img,
#aside-content .card-info img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important; /* 强制正方形 */
  border-radius: 12px !important;  /* 精致大圆角 */
  margin: 0 auto 15px auto !important;
  display: block !important;
  object-fit: cover !important;
  animation: none !important;      /* 关闭原生的圆形旋转 */
  transition: transform 0.3s ease-in-out !important;
}

/* 鼠标悬浮在头像上时轻微放大 */
#aside-content .card-info .avatar-img:hover,
#aside-content .card-info img:hover {
  transform: scale(1.03) !important;
}

/* 完美隐藏原生的“文章/标签/分类”数字统计栏 */
#aside-content .card-info .card-info-data,
#aside-content .card-info .site-data,
.card-info-data,
.site-data {
  display: none !important;
}

/* 名字排版加粗 */
#aside-content .card-info .author-info__name {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 10px 0 8px 0 !important;
  text-align: center !important;
}

/* 名字下方精致的极简粉色短线 */
#aside-content .card-info .author-info__name::after {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 3px !important;
  background-color: #ff758f !important; 
  margin: 6px auto 0 auto !important;
  border-radius: 4px !important;
}

/* 👈 核心修改：名字下方的句子样式（颜色变浅，对齐图二） */
#aside-content .card-info .author-info__description {
  text-align: center !important;
  font-size: 0.85rem !important;
  color: #a39094 !important;       /* 👈 使用了优雅的浅粉灰色，让颜色看起来更温和、更浅 */
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding: 0 5px !important;
}

/* 👈 核心修改：加深提亮社交图标（解决 Email 太淡的问题） */
#aside-content .card-info .card-info-social-icons {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

#aside-content .card-info .card-info-social-icons .social-icon {
  background-color: rgba(255, 183, 197, 0.25) !important; /* 稍微加深了一点点方块底色 */
  color: #ff4d6d !important;                               /* 👈 核心：换用更饱满的深粉色，图标瞬间变清晰！ */
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 8px !important;                           /* 圆角小方块 */
  font-size: 1.1rem !important;
  margin: 0 !important;
  display: inline-block !important;
  text-align: center !important;
  transition: all 0.2s ease-in-out !important;
}

/* 鼠标悬浮图标变色并往上微动 */
#aside-content .card-info .card-info-social-icons .social-icon:hover {
  background-color: #ff4d6d !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}


/* ==================== 2. 全站卡片标题美化（粉色侧边竖线） ==================== */
#aside-content .card-widget .item-headline {
  display: flex !important;
  align-items: center !important;
}

#aside-content .card-widget .item-headline i {
  display: none !important;
}

#aside-content .card-widget .item-headline span {
  position: relative !important;
  padding-left: 14px !important;
  font-weight: 700 !important;
}

#aside-content .card-widget .item-headline span::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 15% !important;
  width: 4px !important;
  height: 70% !important;
  background-color: #ff758f !important; 
  border-radius: 4px !important;
}

/* 统一全站卡片垂直间距 */
#aside-content .card-widget {
  margin-bottom: 20px !important;
}