/* ===== 字体 ===== */
@font-face {
  font-family: 'GalaxieXII';
  src: url('/fonts/SCM-Galaxie-XII-1.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'XiXianTingMingTi';
  src: url('/fonts/XiXianTingMingTi-1.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
body {
  font-family: 'GalaxieXII', 'XiXianTingMingTi', sans-serif;
}
h1,h2,h3,h4,h5,h6 { font-family: inherit; font-weight: normal; }

/* ===== 字体 ===== */
@font-face {
  font-family: 'GalaxieXII';
  src: url('/fonts/SCM-Galaxie-XII-1.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'XiXianTingMingTi';
  src: url('/fonts/XiXianTingMingTi-1.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
body {
  font-family: 'GalaxieXII', 'XiXianTingMingTi', sans-serif;
}
h1,h2,h3,h4,h5,h6 { font-family: inherit; font-weight: normal; }

/* ===== 首字下沉 ===== */
.dropcap-simple {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  margin-right: 0.1em;
  font-weight: normal;
  color: var(--primary);
}

/* ===== 题记 ===== */
.post-content blockquote.excerpt,
.entry-content blockquote.excerpt {
  margin: 2em 0;
  padding: 1.2em 2em;
  border-left: 4px solid #8c7b6b;  
  background: rgba(128,128,128,0.08);
  font-style: normal;
  font-weight: bold !important;
  color: #5e5e5e;
  letter-spacing: 0.03em;
}

/* ===== 正文中的英文在上、中文在下字块 ===== */
.stack-word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  vertical-align: bottom;
  line-height: 1.2;
}

.stack-en {
  font-family: 'GalaxieXII', sans-serif;
  font-size: 0.9em;
  line-height: 1;
}

.stack-cn {
  font-family: 'ShanHaiChaoFengSong', serif;
  font-size: 0.9em;
  line-height: 1;
}

/* 默认 / 日间模式：显示日间内容，隐藏夜间内容 */
.theme-art .art-night,
.theme-text .text-night {
  display: none !important;
}

.theme-art .art-day,
.theme-text .text-day {
  display: block !important;
}

/* 夜间模式：PaperMod 当前用的是 html[data-theme="dark"] */
html[data-theme="dark"] .theme-art .art-day,
html[data-theme="dark"] .theme-text .text-day {
  display: none !important;
}

html[data-theme="dark"] .theme-art .art-night,
html[data-theme="dark"] .theme-text .text-night {
  display: block !important;
}

/* 修复 story-nav 最后一篇文章 Previous 链接飘上去 */
.story-nav-empty {
  flex: 1;        /* 占据剩余空间 */
  display: block; /* 保证占位元素是块级 */
}

/* =========================
   story-nav 美化：左右等宽版
   ========================= */

.story-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.story-nav-prev,
.story-nav-next,
.story-nav-empty {
  min-height: 5.2rem;
  box-sizing: border-box;
  border-radius: 1.1rem;
}

/* 有链接的块 */
.story-nav-prev,
.story-nav-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 245, 0.95);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

/* 左右文字方向 */
.story-nav-prev {
  text-align: left;
  align-items: flex-start;
}

.story-nav-next {
  text-align: right;
  align-items: flex-end;
}

/* 上面的小字 */
.story-nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.58;
  margin-bottom: 0.35rem;
}

/* 下面的标题 */
.story-nav-title {
  font-size: 1.05rem;
  line-height: 1.35;
  text-underline-offset: 0.18em;
}

/* hover */
.story-nav-prev:hover,
.story-nav-next:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* 空位：占同样大小，但淡一点 */
.story-nav-empty {
  display: block;
  background: rgba(230, 230, 230, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =========================
   夜间模式
   PaperMod 当前使用 html[data-theme="dark"]
   ========================= */

html[data-theme="dark"] .story-nav-prev,
html[data-theme="dark"] .story-nav-next {
  background: rgba(46, 46, 51, 0.95);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .story-nav-prev:hover,
html[data-theme="dark"] .story-nav-next:hover {
  background: rgba(60, 60, 67, 1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .story-nav-empty {
  background: rgba(60, 60, 67, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 手机端：上下排列 */
@media (max-width: 640px) {
  .story-nav {
    grid-template-columns: 1fr;
  }

  .story-nav-empty {
    display: none;
  }

  .story-nav-prev,
  .story-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* =========================
   MV差分双图展示
   ========================= */

.mv-art-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 1.1rem;
  align-items: center;
  margin: 2.2rem 0 2.6rem;
}

.mv-art-card {
  margin: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--entry);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.mv-art-card img {
  display: block;
  width: 100%;
  height: auto;
}

.mv-art-main {
  transform: rotate(-0.6deg);
}

.mv-art-sub {
  transform: rotate(1.2deg);
  opacity: 0.92;
}

.mv-art-card:hover {
  transform: translateY(-3px) rotate(0deg);
  transition: transform 0.2s ease;
}

/* 夜间模式 */
html[data-theme="dark"] .mv-art-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

/* 手机端改成上下排列 */
@media (max-width: 720px) {
  .mv-art-duo {
    grid-template-columns: 1fr;
  }

  .mv-art-main,
  .mv-art-sub {
    transform: none;
  }
}

/* 通用MV段落 */
.mv-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
  margin: 2em 0;
}

/* 左右交错 */
.mv-left figure { order: 1; }
.mv-left .mv-text { order: 2; }

.mv-right figure { order: 2; }
.mv-right .mv-text { order: 1; }

/* 图片样式 */
.mv-art-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
}

.mv-art-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-1deg); /* 图片斜一点 */
}

.mv-right .mv-art-card img {
  transform: rotate(1deg);
}

/* 悬停放大 */
.mv-art-card:hover img {
  transform: scale(1.03) rotate(0deg);
}

/* 手机端自适应 */
@media (max-width: 720px) {
  .mv-section {
    grid-template-columns: 1fr;
  }
  .mv-left figure, .mv-left .mv-text,
  .mv-right figure, .mv-right .mv-text {
    order: unset;
  }
  .mv-art-card img { transform: none; }
}

/* =========================
   音乐播放器美化
   ========================= */

.music-box-color {
  margin: 2rem 0 2.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(245, 245, 245, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.music-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.music-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.music-song {
  font-size: 1rem;
  text-align: right;
}

.music-player {
  width: 100%;
  display: block;
}

/* 夜间模式 */
html[data-theme="dark"] .music-box-color {
  background: rgba(46, 46, 51, 0.92);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

/* ===== 首字下沉 ===== */
.dropcap-simple {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  margin-right: 0.1em;
  font-weight: normal;
  color: var(--primary);
}

/* ===== 题记 ===== */
.post-content blockquote.excerpt,
.entry-content blockquote.excerpt {
  margin: 2em 0;
  padding: 1.2em 2em;
  border-left: 4px solid #6b8c7c;  
  background: rgba(128,128,128,0.08);
  font-style: normal;
  font-weight: bold !important;
  color: #5e5e5e;
  letter-spacing: 0.03em;
}

/* ===== 正文中的英文在上、中文在下字块 ===== */
.stack-word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  vertical-align: bottom;
  line-height: 1.2;
}

.stack-en {
  font-family: 'GalaxieXII', sans-serif;
  font-size: 0.9em;
  line-height: 1;
}

.stack-cn {
  font-family: 'ShanHaiChaoFengSong', serif;
  font-size: 0.9em;
  line-height: 1;
}

/* 默认 / 日间模式：显示日间内容，隐藏夜间内容 */
.theme-art .art-night,
.theme-text .text-night {
  display: none !important;
}

.theme-art .art-day,
.theme-text .text-day {
  display: block !important;
}

/* 夜间模式：PaperMod 当前用的是 html[data-theme="dark"] */
html[data-theme="dark"] .theme-art .art-day,
html[data-theme="dark"] .theme-text .text-day {
  display: none !important;
}

html[data-theme="dark"] .theme-art .art-night,
html[data-theme="dark"] .theme-text .text-night {
  display: block !important;
}

/* 修复 story-nav 最后一篇文章 Previous 链接飘上去 */
.story-nav-empty {
  flex: 1;        /* 占据剩余空间 */
  display: block; /* 保证占位元素是块级 */
}

/* =========================
   story-nav 美化：左右等宽版
   ========================= */

.story-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.story-nav-prev,
.story-nav-next,
.story-nav-empty {
  min-height: 5.2rem;
  box-sizing: border-box;
  border-radius: 1.1rem;
}

/* 有链接的块 */
.story-nav-prev,
.story-nav-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 245, 0.95);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

/* 左右文字方向 */
.story-nav-prev {
  text-align: left;
  align-items: flex-start;
}

.story-nav-next {
  text-align: right;
  align-items: flex-end;
}

/* 上面的小字 */
.story-nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.58;
  margin-bottom: 0.35rem;
}

/* 下面的标题 */
.story-nav-title {
  font-size: 1.05rem;
  line-height: 1.35;
  text-underline-offset: 0.18em;
}

/* hover */
.story-nav-prev:hover,
.story-nav-next:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* 空位：占同样大小，但淡一点 */
.story-nav-empty {
  display: block;
  background: rgba(230, 230, 230, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =========================
   夜间模式
   PaperMod 当前使用 html[data-theme="dark"]
   ========================= */

html[data-theme="dark"] .story-nav-prev,
html[data-theme="dark"] .story-nav-next {
  background: rgba(46, 46, 51, 0.95);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .story-nav-prev:hover,
html[data-theme="dark"] .story-nav-next:hover {
  background: rgba(60, 60, 67, 1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .story-nav-empty {
  background: rgba(60, 60, 67, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 手机端：上下排列 */
@media (max-width: 640px) {
  .story-nav {
    grid-template-columns: 1fr;
  }

  .story-nav-empty {
    display: none;
  }

  .story-nav-prev,
  .story-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* =========================
   MV差分双图展示
   ========================= */

.mv-art-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 1.1rem;
  align-items: center;
  margin: 2.2rem 0 2.6rem;
}

.mv-art-card {
  margin: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--entry);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.mv-art-card img {
  display: block;
  width: 100%;
  height: auto;
}

.mv-art-main {
  transform: rotate(-0.6deg);
}

.mv-art-sub {
  transform: rotate(1.2deg);
  opacity: 0.92;
}

.mv-art-card:hover {
  transform: translateY(-3px) rotate(0deg);
  transition: transform 0.2s ease;
}

/* 夜间模式 */
html[data-theme="dark"] .mv-art-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

/* 手机端改成上下排列 */
@media (max-width: 720px) {
  .mv-art-duo {
    grid-template-columns: 1fr;
  }

  .mv-art-main,
  .mv-art-sub {
    transform: none;
  }
}

/* 通用MV段落 */
.mv-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
  margin: 2em 0;
}

/* 左右交错 */
.mv-left figure { order: 1; }
.mv-left .mv-text { order: 2; }

.mv-right figure { order: 2; }
.mv-right .mv-text { order: 1; }

/* 图片样式 */
.mv-art-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
}

.mv-art-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-1deg); /* 图片斜一点 */
}

.mv-right .mv-art-card img {
  transform: rotate(1deg);
}

/* 悬停放大 */
.mv-art-card:hover img {
  transform: scale(1.03) rotate(0deg);
}

/* 手机端自适应 */
@media (max-width: 720px) {
  .mv-section {
    grid-template-columns: 1fr;
  }
  .mv-left figure, .mv-left .mv-text,
  .mv-right figure, .mv-right .mv-text {
    order: unset;
  }
  .mv-art-card img { transform: none; }
}

/* =========================
   音乐播放器美化
   ========================= */

.music-box-color {
  margin: 2rem 0 2.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(245, 245, 245, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.music-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.music-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.music-song {
  font-size: 1rem;
  text-align: right;
}

.music-player {
  width: 100%;
  display: block;
}

/* 夜间模式 */
html[data-theme="dark"] .music-box-color {
  background: rgba(46, 46, 51, 0.92);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

/* ===== 字体 ===== */
@font-face {
  font-family: 'GalaxieXII';
  src: url('/fonts/SCM-Galaxie-XII-1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Angellita';
  src: url('/fonts/Angellita-demo-2.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Authentica';
  src: url('/fonts/Authentica-2.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BellamyStevenson';
  src: url('/fonts/Bellamy-Stevenson-2.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YOzRS';
  src: url('/fonts/YOzRS-90-3.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MkPOP';
  src: url('/fonts/851MkPOP-100-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AnthonyHouston';
  src: url('/fonts/Anthony-Houston-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DianYingZiMuTi';
  src: url('/fonts/dianyingzimuti-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FengYaShiSong';
  src: url('/fonts/FengYaShiSong-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FRSCRIPT';
  src: url('/fonts/FRSCRIPT.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GuDianMingChaoKai';
  src: url('/fonts/web/gudianmingchaokai-2.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'hpsimplifiedhans';
  src: url('/fonts/hpsimplifiedhans-light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KleeOne';
  src: url('/fonts/KleeOne-Regular-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KurewaGothic';
  src: url('/fonts/KurewaGothicCjkTc-Light-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MKantzley';
  src: url('/fonts/MKantzley-1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MTCORSVA';
  src: url('/fonts/MTCORSVA.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NanMingTi';
  src: url('/fonts/NanMingTi-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OldEngl';
  src: url('/fonts/OLDENGL.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VINERITC';
  src: url('/fonts/VINERITC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'XiXianTingMingTi';
  src: url('/fonts/XiXianTingMingTi-1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YeZiGongChangShanHaiChaoFengSong';
  src: url('/fonts/YeZiGongChangShanHaiChaoFengSong-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JiuXiMingFanJian-2';
  src: url('/fonts/JiuXiMingFanJian-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HanaMeatball-Medium-2';
  src: url('/fonts/HanaMeatball-Medium-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'R-PMingLiU-TW-2';
  src: url('/fonts/R-PMingLiU-TW-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YaMingTiC-2';
  src: url('/fonts/YaMingTiC-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HomuraM';
  src: url('/fonts/01HomuraM-ExtraLight-2.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Additional display faces. Registration only; no global font override. */
@font-face {
  font-family: 'Pristina';
  src: url('/fonts/PRISTINA.TTF') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vivaldi';
  src: url('/fonts/VIVALDII.TTF') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Font261';
  src: url('/fonts/261-1.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'AiWoZheYuWoLaoLong';
  /* Full-glyph WOFF2 compatibility copy; original TTF is untouched. */
  src: url('/fonts/web/aiwozheyuwolaolong.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* =========================
   对应 class
========================= */

.font-galaxie { font-family: 'GalaxieXII', serif; }
.font-angellita { font-family: 'Angellita', serif; }
.font-authentica { font-family: 'Authentica', serif; }
.font-bellamy { font-family: 'BellamyStevenson', serif; }
.font-yozrs { font-family: 'YOzRS', serif; }
.font-mkpop { font-family: 'MkPOP', serif; }
.font-anthony { font-family: 'AnthonyHouston', serif; }
.font-dianying { font-family: 'DianYingZiMuTi', serif; }
.font-fengya { font-family: 'FengYaShiSong', serif; }
.font-frscript { font-family: 'FRSCRIPT', serif; }
.font-gudian { font-family: 'GuDianMingChaoKai', serif; }
.font-hpsimplified { font-family: 'hpsimplifiedhans', serif; }
.font-kleeone { font-family: 'KleeOne', serif; }
.font-kurewa { font-family: 'KurewaGothic', serif; }
.font-mkantzley { font-family: 'MKantzley', serif; }
.font-mtcorsva { font-family: 'MTCORSVA', serif; }
.font-nanming { font-family: 'NanMingTi', serif; }
.font-oldengl { font-family: 'OldEngl', serif; }
.font-vineritc { font-family: 'VINERITC', serif; }
.font-xixian { font-family: 'XiXianTingMingTi', serif; }
.font-yezi { font-family: 'YeZiGongChangShanHaiChaoFengSong', serif; }
.font-homura {font-family: 'HomuraM', serif; }

/* 使用示例：
   <p class="font-fengya">中文段落用风雅楷书</p>
   <h2 class="font-bellamy">英文标题使用 Bellamy Stevenson</h2>
*/

/* 网站插图统一样式 */
.art-image {
  text-align: center;
}

.art-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 20px;
}

/* ☀️ Light: outer paper, shared by every page type */
html[data-theme="light"] {
    background-color: #ded8ca !important;
    background-image:
        linear-gradient(rgba(222,216,202,0.65), rgba(222,216,202,0.65)),
        url('/images/textures/paper01.png');
    background-repeat: repeat;
    background-size: auto, 900px auto;
    min-height: 100%;
}

html[data-theme="light"] body {
    min-height: 100vh;
    background-color: transparent !important;
    background-image: none !important;
}

html[data-theme="light"] .main {
    background-color: #e8e1d2 !important;
    background-image:
        linear-gradient(rgba(232, 225, 210, 0.55), rgba(232, 225, 210, 0.55)),
        url('/images/textures/paper03.png');
    background-repeat: repeat;
    background-size: auto, 800px auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* 🌙 Dark: the same outer paper with the existing dark overlay */
html[data-theme="dark"] {
    background-color: #151412 !important;
    background-image:
        linear-gradient(rgba(6, 6, 5, 0.82), rgba(6, 6, 5, 0.82)),
        url('/images/textures/paper01.png');
    background-repeat: repeat;
    background-size: auto, 900px auto;
    min-height: 100%;
}

html[data-theme="dark"] body {
    min-height: 100vh;
    background-color: transparent !important;
    background-image: none !important;
}

html[data-theme="dark"] .main {
    background-color: #211e19 !important;
    background-image:
        linear-gradient(rgba(33, 30, 25, 0.9), rgba(33, 30, 25, 0.9)),
        url('/images/textures/paper03.png');
    background-repeat: repeat;
    background-size: auto, 800px auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
}

/* 逃逸者档案页取消 main 纸张 */
body:has(.esc-card-wrap) .main {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* =========================
   Escapement Footer
   ========================= */

.esc-footer {
    text-align: center;
    padding: 45px 0 35px;
    opacity: 0.85;
}


.esc-footer-title {
    font-family: "OldEnglish", serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}


.esc-footer-text {
    font-family: "Courier New", serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    opacity: 0.75;
}

@font-face {
    font-family: "OldEnglish";
    src: url("/fonts/OLDENGL.TTF") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Bellamy Stevenson";
    src: url("/fonts/Bellamy-Stevenson-2.otf") format('opentype');
    font-display: swap;
}

/* =========================
   Header Logo
   ========================= */

.logo {
    position: relative;
}

.logo::before {
    content: "";
    position: absolute;

    left: -65px;
    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 55px;

    background-image: url("/images/icon/ESP-ORG-2.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    pointer-events: none;
}

.logo {
    font-family: "OldEnglish", serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   Header bilingual swap
   ========================= */

.nav-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;

    height: 2.6em;
    overflow: hidden;

    line-height: 1.3;
}

.nav-en,
.nav-cn {
    display: block;
    height: 1.3em;
    text-align: center;

    transition: transform 0.35s ease;
}

/* 中文默认小一点 */
.nav-cn {
    font-family: "XiXianTingMingTi", serif;
    font-size: 0.85em;
    opacity: 0.8;
}

/* hover交换 */

.nav-wrap:hover .nav-en {
    transform: translateY(100%);
}

.nav-wrap:hover .nav-cn {
    transform: translateY(-100%);
}

.menu a span.active,
.nav-wrap.active,
.nav-wrap.active .nav-en,
.nav-wrap.active .nav-cn {
    text-decoration: none !important;
}

.main {
    margin-top: 70px !important;
}

.nav-cn {
    margin-top: 3px;
}

/* =========================
   Page Title
   ========================= */

.post-title {
    font-family: "VINERITC", serif;
    font-size: 1.55rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    line-height: 1.6;
    margin-bottom: 45px;
}

.post-title::first-letter {
    font-size: 1.1em;
}

/* =========================
   Archive Page Title
   ========================= */

.post-title {
    font-weight: normal;
}

/* Escapist archive title */

.escapist-header .title-en {
    font-family: "MKantzley", cursive !important;
    font-size: 2.4rem;
}

.escapist-header .title-cn {
    font-family: "YeZiGongChangShanHaiChaoFengSong", serif !important;
}

/* =========================
   Section page title
   ========================= */

.page-header h1 {
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-weight: normal;
}

.page-header .title-cn {
    font-family: "YeZiGongChangShanHaiChaoFengSong", serif;
    font-size: 2.3rem;
}

.page-header .title-en {
    font-family: "MKantzley", cursive;
    font-size: 2.4rem;
}

/* =========================
   Shared secondary surfaces
   Paper remains on html/.main; text and navigation containers stay clear.
   ========================= */

:root {
    --secondary-surface-color: transparent;
    --secondary-surface-image: none;
}

/*
 * Semantic containers only. Buttons, tags, code blocks, images and character
 * quick-nav bars are intentionally excluded because their fills carry meaning.
 */
.main :is(
    .paper-secondary-surface,
    .post-entry,
    .archive-entry,
    .searchResults li,
    details.toc,
    details.toc summary,
    .share-buttons,
    .paginav,
    .paginav a,
    .profile-card,
    .ability-box,
    .secret-box,
    .secret-box summary,
    .secret-content,
    .relation-card,
    .voice-card,
    .connection-panel,
    .module-card,
    .story-card,
    .story-back-link,
    .story-nav a,
    .story-nav-empty,
    .archive-strip,
    .curtain-empty,
    .curtain-story-card,
    .media-card,
    .music-box,
    .music-box-color,
    .tarot-keywords span,
    .tarot-meaning
) {
    background-color: var(--secondary-surface-color) !important;
    background-image: var(--secondary-surface-image) !important;
}

/* Interactive and expanded states must not restore var(--entry)/var(--border). */
[data-theme] .main :is(
    .paper-secondary-surface,
    .post-entry,
    .archive-entry,
    .searchResults li,
    details.toc,
    details.toc summary,
    .share-buttons,
    .paginav,
    .paginav a,
    .profile-card,
    .ability-box,
    .secret-box,
    .secret-box summary,
    .secret-content,
    .relation-card,
    .voice-card,
    .connection-panel,
    .module-card,
    .story-card,
    .story-back-link,
    .story-nav a,
    .story-nav-empty,
    .archive-strip,
    .curtain-empty,
    .curtain-story-card,
    .media-card,
    .music-box,
    .music-box-color,
    .tarot-keywords span,
    .tarot-meaning
):is(:hover, :focus, :focus-visible, :focus-within, :active),
[data-theme] .main :is(details.toc, .secret-box)[open],
[data-theme] .main :is(details.toc, .secret-box)[open] summary {
    background-color: var(--secondary-surface-color) !important;
    background-image: var(--secondary-surface-image) !important;
}

/* Remove pale decorative overlays attached to secondary cards, not images. */
.main :is(.story-card, .curtain-card, .media-module, .tarot-module)::before {
    background-color: var(--secondary-surface-color) !important;
    background-image: var(--secondary-surface-image) !important;
}

/* =========================
   Escapist Archive hover
   Keep the card clear at rest; reveal each character color inside the card.
   ========================= */

.amada-page   { --archive-accent-rgb: 242, 146, 30; }
.aoi-page     { --archive-accent-rgb: 48, 44, 157; }
.cutlery-page { --archive-accent-rgb: 44, 214, 160; }
.harala-page  { --archive-accent-rgb: 255, 65, 179; }
.laken-page   { --archive-accent-rgb: 109, 255, 214; }
.leo-page     { --archive-accent-rgb: 52, 201, 238; }
.luka-page    { --archive-accent-rgb: 252, 111, 160; }
.lycia-page   { --archive-accent-rgb: 170, 52, 238; }
.mio-page     { --archive-accent-rgb: 20, 36, 253; }
.miracle-page { --archive-accent-rgb: 162, 255, 250; }
.nozomi-page  { --archive-accent-rgb: 60, 222, 254; }
.ottilia-page { --archive-accent-rgb: 111, 252, 137; }
.strohl-page  { --archive-accent-rgb: 230, 189, 26; }
.takyo-page   { --archive-accent-rgb: 157, 76, 44; }
.ting-page    { --archive-accent-rgb: 255, 130, 62; }

.main .archive-section .archive-strip {
    box-shadow: none !important;
}

/* The overlay sits below the image/text, so the tint stays inside the card. */
.main .archive-section .archive-strip::after {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background-color: transparent !important;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(var(--archive-accent-rgb), 0.06) 68%,
        rgba(var(--archive-accent-rgb), 0.22) 100%
    ) !important;
    opacity: 0;
    transition: opacity 0.28s ease;
}

[data-theme] .main .archive-section .archive-strip:is(:hover, :focus-visible, :focus-within) {
    box-shadow: none !important;
}

.main .archive-section .archive-strip:is(:hover, :focus-visible, :focus-within)::after {
    opacity: 1 !important;
}

.main .archive-section .archive-strip-img {
    position: relative;
    z-index: 2;
}
