html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* ✅ 禁止横向滚动 */
}

/* 加载像素字体（可选） */
@font-face {
  font-family: 'FusionPixelCN';
  src: url('../fusionpixel-hans.woff2') format('woff2');
  font-display: swap;
}

.current-tag-label {
  position: fixed;
  top: 12px;
  left: 16px;
  font-family: 'FusionPixelCN', monospace;
  font-size: 22px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 255, 224, 0.5);
  background: none;
  padding: 4px 10px;
  border-radius: 0;
  z-index: 100;
  pointer-events: none;
}

/* 背景图容器 */
.background-container {
  position: fixed;      /* ✅ 关键修改：固定在视口 */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;    
  overflow: hidden;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 面部互动区域 */
.face-area {
  position: absolute;
  width: 8%;
  aspect-ratio: 1 / 1;
  pointer-events: auto;
  z-index: 10;
}

.face-highlight {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 255, 224, 0.7);
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.face-info {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #00ffe0;
  font-family: "Press Start 2P", monospace;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.face-highlight:hover {
  opacity: 1;
}

.face-highlight:hover + .face-info {
  opacity: 1;
  transform: translateX(0);
}

/* 可选动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 4px #00ffe0;
  }
  50% {
    box-shadow: 0 0 12px #00ffe0;
  }
  100% {
    box-shadow: 0 0 4px #00ffe0;
  }
}

h1 {
  margin-bottom: 2rem;
  color: white;
  font-family: 'FusionPixelCN', monospace;
  font-size: 36px;
  text-shadow: 0 0 6px #00ffe0;
  left: 30px;
  top: 10px;
  position: fixed;
  z-index: 2;
}

.novel-list {
  margin: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  overflow: visible;        /* ✅ 允许溢出 */
  position: relative;       /* ✅ 提供定位上下文 */
}

.novel-item {
  display: block;
  text-decoration: none;
  color: #f0f0f0;
  border: 1px solid #f0f0f0;
  padding: 1.5rem 2rem;
  margin: 1.5rem;
  border-radius: 0.8rem;
  width: 360px;
  transition: background 0.3s, transform 0.2s;
  position: relative;       /* ✅ 使 z-index 可用 */
  z-index: 1;                /* ✅ 默认层级 */
}

.novel-item:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px rgba(0, 255, 224, 0.4);
  transform: scale(1.02);
}

h2 {
  font-family: "Press Start 2P", monospace, 'FusionPixelCN', monospace, sans-serif;
  text-shadow: 0 0 12px rgba(0, 255, 224, 0.8);
}

.novel-item .summary {
  font-size: 0.9rem;
  color: rgba(0, 255, 224, 0.6);
  margin-top: 0.5rem;
  line-height: 1.5;
  font-family: 'FusionPixelCN', monospace, sans-serif;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.novel-content {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
  padding: 0 1rem;
}

.back-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: 'FusionPixelCN', monospace, sans-serif; /* 像素字体 */
  font-size: 14px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 255, 224, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.5;
  text-align: center;
  z-index: 9999;
  text-decoration: none;
  user-select: none;
}

.back-button:hover {
  text-shadow: 0 0 6px #ff4e4e;
  transform: scale(1.05);
}




