/* ========== 1. 首页专属魔法 ========== */
body.is-home {
  overflow: hidden !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.is-home #navbar,
body.is-home nav.navbar {
  display: none !important;
}

body.is-home #board {
  display: none !important;
}

body.is-home footer {
  display: none !important;
}

body.is-home header,
body.is-home .head-inner {
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background-image: url("/img/default.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #181c27 !important;
}

body.is-home .mask,
body.is-home .banner-mask {
  background-color: transparent !important;
  display: none !important;
}

/* ========== 2. 首页热区 ========== */
.hotspot-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
}

.custom-hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.custom-hotspot:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px dashed rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
}

/* ========== 3. 子页面细节适配 ========== */
/* 为了平滑过渡，子页面的 header 取消主题默认的 position fixed，改用动画控制 */
body:not(.is-home) header {
  position: relative !important;
  top: 0 !important;
}

/* 保证子页面的 header 背景图正常显示 */
body:not(.is-home) header {
  background-image: url("/img/default.png");
  background-size: cover;
  background-position: center;
}

/* ========== 文章正文首行缩进 ========== */
/* 针对 Fluid 主题的文章正文区域 */
.markdown-body p {
  text-indent: 2em; /* 首行缩进 2 个字符 */
  margin-bottom: 1em; /* 段落之间留一点空隙，看着更舒服 */
}

/* 如果你发现列表（无序/有序）也被缩进了，可以取消列表的缩进 */
.markdown-body ul,
.markdown-body ol,
.markdown-body li {
  text-indent: 0;
}

/* ========== 档案库时间轴分类标签 ========== */
.custom-category-tags {
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
}

.custom-category-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px; /* 像胶囊一样的圆角 */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  /* 颜色由 JS 动态赋予，这里不加默认颜色 */
}

/* 暗黑模式适配 */
[data-user-color-scheme="dark"] .custom-category-badge {
  background-color: rgba(41, 217, 255, 0.15);
  border-color: rgba(41, 217, 255, 0.4);
  color: #5bc0de;
}

/* ========== 大图文字质感优化 ========== */
.banner-text {
  /* 给文字加一点轻微的发光和阴影，使其在复杂背景中更清晰 */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

.banner-text h1 {
  /* 主标题（如：书页） */
  font-weight: 700;
  letter-spacing: 4px; /* 字间距拉大，更有电影感 */
}

.banner-text h2 {
  /* 打字机副标题 */
  font-size: 1.2rem;
  margin-top: 10px;
  letter-spacing: 2px;
  font-weight: 400;
  opacity: 0.9;
}
