/* ==========================================================================
   自定义样式：还原参考站点的淡紫色渐变背景与卡片质感
   修改后无需重启 hexo server，刷新浏览器即可生效
   ========================================================================== */

:root {
  --sky-gradient: linear-gradient(
    160deg,
    #cdc8f5 0%,
    #b8b0ea 28%,
    #a9a0e4 55%,
    #b4a8e9 78%,
    #cec8f6 100%
  );
}

/* 页面背景：淡紫渐变 */
html body {
  background: var(--sky-gradient) fixed !important;
  background-attachment: fixed !important;
}

#web_bg {
  background: var(--sky-gradient) !important;
  background-image: var(--sky-gradient) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

#web_bg::before,
#web_bg::after {
  display: none !important;
}

/* 卡片：圆角 + 轻投影，贴近截图中的白卡风格 */
.card-widget,
.recent-post-item,
#pagination,
.post,
.page,
#post {
  border-radius: 12px;
}

.card-widget,
.recent-post-item {
  box-shadow: 0 6px 18px rgba(84, 74, 140, 0.1);
  border: none;
}

/* 导航栏在浅色背景上更通透 */
#page-header.nav-fixed #nav,
#nav {
  backdrop-filter: saturate(150%) blur(6px);
}

/* 侧边栏头像圆形留白更柔和 */
.card-widget.card-info .avatar-img img {
  box-shadow: 0 4px 12px rgba(84, 74, 140, 0.18);
}

/* 深色模式下背景改为深紫，避免刺眼 */
[data-theme='dark'] html body,
[data-theme='dark'] #web_bg {
  background: linear-gradient(160deg, #1f1b2e 0%, #2a2440 55%, #1b1828 100%) fixed !important;
}

/* ==========================================================================
   头像静止 & 简介换行
   ========================================================================== */

.avatar-img {
  animation: none !important;
}

.author-info-description {
  white-space: pre-line;
}

/* ==========================================================================
   首页 / 板块页：外层卡片透明，内部直接铺卡片
   ========================================================================== */

#body-wrap.type-home #page,
#body-wrap.type-section #page {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

#body-wrap.type-home #page #article-container,
#body-wrap.type-section #page #article-container {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
}

#body-wrap.type-home #page .page-title {
  display: none;
}

/* 板块页的标题：与首页区块标题风格一致，不再占一张白卡 */
#body-wrap.type-section #page .page-title {
  margin: 0 0 18px 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  color: var(--font-color);
}

/* 区块标题 */
.home-block {
  margin-bottom: 32px;
}

.home-block-title {
  margin: 0 0 14px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--font-color);
}

.home-block-title i {
  margin-right: 8px;
  color: var(--theme-color, #49b1f5);
}

.home-block .recent-post-item {
  margin-bottom: 0;
}

.home-block-more {
  margin-top: 12px;
  text-align: right;
  font-size: 0.86rem;
}

.home-block-more a {
  color: var(--font-color);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.home-block-more a:hover {
  opacity: 1;
  color: var(--theme-color, #49b1f5);
}

.section-list .recent-post-item {
  margin-bottom: 18px;
}

.section-intro {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  color: var(--font-color);
}

.empty-hint {
  padding: 36px 16px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--font-color);
  opacity: 0.7;
  font-size: 0.92rem;
}

/* ==========================================================================
   视频卡片
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  display: block;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(84, 74, 140, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(84, 74, 140, 0.18);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.05rem;
  padding-left: 3px;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.76rem;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 12px;
}

.video-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.94rem;
  color: var(--font-color);
}

.video-source {
  flex: none;
  font-size: 0.76rem;
  color: #00a1d6;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* 日常页：B 站播放器内嵌 */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.video-player {
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  box-shadow: 0 6px 18px rgba(84, 74, 140, 0.1);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 12px;
}

.video-player-meta .video-title {
  font-size: 0.96rem;
  color: var(--font-color);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-open {
  flex: none;
  font-size: 0.82rem;
  color: #00a1d6;
}

/* 「我想」页面的占位块 */
.want-placeholder {
  margin-top: 18px;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  color: var(--font-color);
  opacity: 0.75;
}

.want-placeholder i {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--theme-color, #49b1f5);
}
