/* ============================================
 * 批次2：侧边栏组件
 * 1. 个人卡片升级（状态徽章 + 统计）
 * 2. GitHub 仓库卡片
 * 3. 农历日历
 * 4. 在线人数/访客统计
 * 5. 即时搜索
 * 6. 侧边栏音乐播放器
 * 7. 一言/网易云热评
 * ============================================ */
#aside-content .card-widget {
  margin-bottom: 1rem;
  overflow: hidden;
}
/* ===== 1. 个人卡片 ===== */
#aside-content .card-info {
  position: relative;
}
.author-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  margin: 0.5rem 0;
  border-radius: 999px;
  background: rgba(73,177,245,0.08);
  color: #49b1f5;
  border: 1px solid rgba(73,177,245,0.2);
}
[data-theme="dark"] .author-status {
  background: rgba(107,192,247,0.12);
  color: #8fd0fa;
  border-color: rgba(107,192,247,0.25);
}
.author-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a9e6f;
  animation: status-pulse 2s ease-in-out infinite;
}
.author-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(73,177,245,0.2);
}
[data-theme="dark"] .author-stats {
  border-top-color: rgba(107,192,247,0.2);
}
.author-stats .stat-item {
  text-align: center;
}
.author-stats .stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-color);
}
.author-stats .stat-label {
  font-size: 0.7rem;
  opacity: 0.65;
}
/* ===== 3. 农历日历 ===== */
.card-lunar {
  padding: 1rem;
  text-align: center;
}
.lunar-date {
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.lunar-gregorian {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}
.lunar-day {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--theme-color);
  line-height: 1.2;
}
.lunar-month {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.lunar-jieqi {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.15rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(73,177,245,0.08);
  color: var(--theme-color);
  border: 1px solid rgba(73,177,245,0.2);
}
[data-theme="dark"] .lunar-jieqi {
  background: rgba(107,192,247,0.12);
  border-color: rgba(107,192,247,0.25);
}
/* ===== 4. 在线统计 ===== */
.card-online {
  padding: 0.8rem 1rem;
}
.online-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.8rem;
}
.online-row + .online-row {
  border-top: 1px dashed rgba(73,177,245,0.12);
}
[data-theme="dark"] .online-row + .online-row {
  border-top-color: rgba(107,192,247,0.12);
}
.online-num {
  font-weight: 700;
  color: var(--theme-color);
}
/* ===== 5. 即时搜索 ===== */
.card-search {
  padding: 0.8rem 1rem;
}
.card-search input {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(73,177,245,0.25);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--font-color);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.25s;
}
.card-search input:focus {
  border-color: var(--theme-color);
}
.card-search input::placeholder {
  opacity: 0.5;
}
.search-results {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}
.search-result-item {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.35rem;
  text-decoration: none !important;
  color: var(--font-color);
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.search-result-item:hover {
  background: rgba(73,177,245,0.07);
  border-left-color: var(--theme-color);
}
[data-theme="dark"] .search-result-item:hover {
  background: rgba(107,192,247,0.1);
}
.search-empty {
  font-size: 0.72rem;
  opacity: 0.5;
  padding: 0.3rem 0.5rem;
}
/* ===== 6. fixed 播放器：彻底隐藏全宽歌词层（防遮挡页脚）===== */
body > meting-js .aplayer-lrc,
.aplayer-lrc {
  display: none !important;
}
body > meting-js {
  z-index: 998 !important;
}
/* 列表默认收起，点击才展开 */
.aplayer-list {
  max-height: 240px;
}
/* ===== 侧边栏音乐播放器（若启用）===== */
#aside-content .aplayer {
  margin: 0;
  box-shadow: none;
  border: 1px solid rgba(73,177,245,0.15);
  border-radius: 0.8rem;
  background: #fff !important;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}
[data-theme="dark"] #aside-content .aplayer {
  background: #121212 !important;
  border-color: rgba(107,192,247,0.15);
}
/* ===== 7. 一言 ===== */
.card-yiyan {
  padding: 1rem;
  text-align: center;
}
.yiyan-text {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yiyan-from {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}
.yiyan-refresh {
  margin-top: 0.6rem;
  padding: 0.25rem 0.9rem;
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(73,177,245,0.3);
  background: transparent;
  color: var(--theme-color);
  cursor: pointer;
  transition: all 0.25s;
}
.yiyan-refresh:hover {
  background: rgba(73,177,245,0.08);
}
[data-theme="dark"] .yiyan-refresh {
  border-color: rgba(107,192,247,0.3);
}
[data-theme="dark"] .yiyan-refresh:hover {
  background: rgba(107,192,247,0.1);
}
@-moz-keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@-webkit-keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@-o-keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
