﻿/* ============================================================
   LoYoku Visual Style + Enhanced Anime Blog Theme
   ============================================================ */

:root {
  --loyoku-cyan: #00b4ff;
  --loyoku-cyan-light: #38bdf8;
  --loyoku-primary: #00b4ff;
  --loyoku-primary-dark: #0096d6;
  
  /* 基础文本高对比度色彩（彻底杜绝字发白看不清） */
  --text-title: #0f172a !important;   /* 深墨黑 */
  --text-body: #334155 !important;    /* 饱满墨灰正文 */
  --text-muted: #64748b !important;   /* 辅助信息 */
  
  /* 卡片与面板质感 */
  --card-bg: #ffffff;
  --card-border: rgba(148, 163, 184, 0.22);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(0, 180, 255, 0.06);
  --card-hover-shadow: 0 16px 36px -4px rgba(0, 180, 255, 0.2), 0 0 0 1px rgba(0, 180, 255, 0.3);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", Georgia, Cambria, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 消除所有页面顶端缝隙与异色微横条 */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

body {
  font-family: var(--font-sans) !important;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 180, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(192, 132, 252, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* 顶部导航栏：纯净贴顶，消除顶部任何异色细横条 */
#header-menu {
  top: 0 !important;
  margin: 0 !important;
  border-top: none !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 180, 255, 0.18) !important;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05) !important;
}

#site-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 60%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#site-title::before {
  content: "✦";
  font-size: 15px;
  -webkit-text-fill-color: #00b4ff;
  filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.7));
  animation: star-pulse 2.2s infinite ease-in-out;
}

#header-menu a {
  color: #334155 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
#header-menu a:hover {
  color: #00b4ff !important;
  transform: translateY(-1px);
}

/* ============================================================
   拉高的全景头图 Banner（高度提升至 68vh/640px，无面板纯净排版）
   ============================================================ */
.firefly-hero-banner {
  position: relative;
  overflow: hidden;
  height: 68vh;
  min-height: 580px;
  max-height: 860px;
  background: #090c1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 180, 255, 0.25);
  box-shadow: 0 16px 36px -10px rgba(9, 12, 26, 0.35);
}

/* 背景大图：高精对齐，气势恢宏 */
.firefly-hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  opacity: 0.96;
  filter: contrast(106%) saturate(110%);
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.firefly-hero-banner:hover .firefly-hero-bg-layer {
  transform: scale(1.02);
}

/* 通透自然渐变遮罩：四周暗角与底部过渡，保护中心羽翼与文字对比度 */
.firefly-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(9, 12, 26, 0.25) 0%, rgba(9, 12, 26, 0.65) 100%),
    linear-gradient(to top, rgba(9, 12, 26, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

/* 居中大字排版区：无面板，纯粹、艺术、醒目 */
.firefly-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.firefly-title-group {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 首页主标题两段式设计：
   第一行：ShadowCrane（现代无衬线大字）
   第二行：的个人博客（略小、典雅二次元物语感衬线字体）
*/
.hero-main-title {
  margin: 0 0 18px 0;
  line-height: 1.25;
  text-shadow: 
    0 3px 18px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 180, 255, 0.5);
}

.hero-main-title .title-en {
  display: block;
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main-title .title-cn {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f8fafc;
  margin-top: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* 下方无衬线小字副标题（可在后台随时修改） */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(241, 245, 249, 0.92) !important;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================================
   文章列表与卡片排版（高对比度，黑白分明）
   ============================================================ */

/* 分类胶囊栏 */
#filters {
  padding: 4px 0 12px 0;
  gap: 10px !important;
}

#filters a {
  padding: 6px 18px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#filters a:hover, #filters a.\!text-gray-900 {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #00b4ff 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px -2px rgba(0, 180, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* 文章卡片：左侧渐变光带 + 立体浮雕感 */
#post-list > div {
  background: #ffffff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--card-shadow) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#post-list > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #a855f7 100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

#post-list > div:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--card-hover-shadow) !important;
  border-color: rgba(0, 180, 255, 0.3) !important;
}

#post-list > div:hover::before {
  width: 6px;
  opacity: 1;
}

/* 文章大标题：极清晰墨色 */
#post-list > div h1 a,
#post-list > div h1 {
  color: #0f172a !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

#post-list > div h1 a:hover {
  color: #0284c7 !important;
}

/* 正文摘要：深灰饱满，杜绝发白 */
#post-list > div p {
  color: #334155 !important;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  opacity: 1 !important;
}

/* 分类与标签 */
#post-list > div a[href*="/categories/"],
#post-list > div a[href*="/tags/"] {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  background: #f0f9ff !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
  color: #0369a1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

#post-list > div a[href*="/categories/"]:hover,
#post-list > div a[href*="/tags/"]:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* 卡片作者栏 */
#post-list > div a[href*="/authors/"] {
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

#post-list > div span.tabular-nums {
  color: #64748b !important;
  font-size: 12.5px !important;
  font-family: var(--font-mono) !important;
}

/* ============================================================
   右侧边栏部件
   ============================================================ */
aside > div {
  background: #ffffff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--card-shadow) !important;
  padding: 20px 22px !important;
  margin-bottom: 24px !important;
  transition: all 0.3s ease !important;
}

aside > div:hover {
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.12) !important;
  border-color: rgba(0, 180, 255, 0.3) !important;
}

aside h2 {
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.3) !important;
  margin-bottom: 14px !important;
}

aside li a {
  color: #1e293b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
aside li a:hover {
  color: #0284c7 !important;
}

aside li p, aside li span.tabular-nums {
  color: #64748b !important;
  font-size: 12px !important;
  font-family: var(--font-mono) !important;
}

aside a[href*="/categories/"] span {
  color: #334155 !important;
  font-size: 13.5px !important;
}
aside a[href*="/categories/"] span.tabular-nums {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

aside a[href*="/tags/"] {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
}

aside a[href*="/tags/"]:hover {
  background: #00b4ff !important;
  color: #ffffff !important;
  border-color: #00b4ff !important;
}

/* ============================================================
   星光粒子动画（从顶栏下方开始，不溢出顶栏）
   ============================================================ */
.firefly-particle-container {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 64px);
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}

.firefly-glow-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fde047 20%, rgba(56, 189, 248, 0.8) 60%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.9));
  animation: firefly-float linear infinite, firefly-twinkle ease-in-out infinite alternate;
}

@keyframes firefly-float {
  0% { transform: translateY(calc(100vh - 64px)) translateX(0); }
  100% { transform: translateY(-30px) translateX(25px); }
}

@keyframes firefly-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 0.85; transform: scale(1.2); }
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 8px #00b4ff); }
}

/* 回到顶部按钮 */
#btn-scroll-to-top {
  background: linear-gradient(135deg, #0284c7 0%, #a855f7 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(0, 180, 255, 0.35) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .firefly-hero-banner {
    height: 52vh;
    min-height: 440px;
  }
  .hero-main-title .title-en {
    font-size: 2.5rem;
  }
  .hero-main-title .title-cn {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
}
