* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: #0d0d0d;
  color: #f0f0f0;
  font-family: 'Jost', sans-serif;
  overflow: hidden;
}

/* ==================== Prologue 样式 ==================== */
#prologue {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0e0d0d;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.prologue-content {
  text-align: center;
  opacity: 0;
  /* 快速淡入，随后慢慢浮现 */
  animation: flickerFadeIn 7s ease-out forwards;
}

.prologue-content p {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #e2e2e2;
}

.alias-triste {
  font-size: 1.5rem !important;
  margin-bottom: 2.2rem;
}

#skip-btn {
  position: absolute;
  bottom: 40px;
  background: none;
  border: none;
  color: #777777;
  font-family: 'Futura', 'Jost', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeIn 1.5s 0.3s forwards; /* 更快显示 skip 按钮 */
}

#skip-btn:hover {
  color: #ffffff;
}

/* 退出时的慢速淡出闪烁 */
#prologue.fade-out {
  animation: slowFlickerOut 1s forwards;
}

/* 7秒帧动画：减少前面的空白，加快淡入 */
@keyframes flickerFadeIn {
  0% { opacity: 0; filter: blur(12px); }
  10% { opacity: 0.8; filter: blur(6px); } /* 快速显现 */
  20% { opacity: 0.4; filter: blur(8px); } /* 闪烁 */
  45% { opacity: 0.75; filter: blur(2px); }
  70% { opacity: 0.9; filter: blur(1px); }
  100% { opacity: 1; filter: blur(0px); }
}

/* 慢一点淡出 */
@keyframes slowFlickerOut {
  0% { opacity: 1; filter: blur(0px); }
  30% { opacity: 0.6; filter: blur(2px); }
  60% { opacity: 0.25; filter: blur(6px); }
  100% { opacity: 0; filter: blur(14px); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==================== Rachis 主页面样式 ==================== */
#rachis {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #0b0b0b;
}

.brand-header {
  position: absolute;
  top: 40px;
  right: 50px;
  z-index: 10;
}

.brand-header h1 {
  font-family: "Hoefler Text", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #189eb5;
}

/* 右上四分之一：图像展示栏（已微调缩小尺寸） */
.top-right-gallery {
  position: absolute;
  top: 90px;
  right: 50px;
  width: 40vw;  /* 缩小宽度 */
  height: 36vh; /* 缩小高度 */
  overflow: hidden;
  border-radius: 2px;
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.gallery-slider .slide.active {
  opacity: 1;
}

/* 左下角：主导航（精细缩小行距与字距） */
.bottom-left-nav {
  position: absolute;
  bottom: 50px;
  left: 60px;
}

.bottom-left-nav ul {
  list-style: none;
}

.bottom-left-nav li {
  margin-top: 7px; /* 更紧凑的行距 */
}

.bottom-left-nav a {
  color: #b0b0b0;
  text-decoration: none;
  font-family: "Hoefler Text", "Baskerville", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em; /* 字距微小收紧 */
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.bottom-left-nav a:hover {
  color: #ffffff;
  padding-left: 6px;
}
/* ==================== 以下为追加样式 ==================== */


/* 内容展示面板（默认隐藏，点击菜单后滑出/浮现） */
.content-panel {
  position: absolute;
  top: 95px;
  left: 36vw; /* 刚好放在左侧导航与右侧图片之间或叠层展示 */
  width: 32vw;
  height: 75vh;
  background-color: rgba(13, 13, 13, 0.95);
  border-left: 1px solid #222222;
  padding: 30px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(10px);
  overflow-y: auto;
  z-index: 20;
}

.content-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 关闭按钮 */
.close-btn {
  background: none;
  border: none;
  color: #666666;
  font-family: 'Andale Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ffffff;
}

/* 文章切换控制 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-family: "Hoefler Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.article-body {
  font-family: "Hoefler Text", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cccccc;
}
