/* =========================================================
   MqCode 博客 · 35+ 中年码农风格首页定制
   通过 _config.butterfly.yml 的 inject.head 注入
   ========================================================= */

:root {
  --coder-amber: #e0a96d;
  --coder-teal: #2a3f44;
  --coder-dim: rgba(255, 255, 255, 0.78);
}

/* ---------- 首页横幅（full_page）氛围 ---------- */
#page-header.full_page {
  background-color: #11181b;
  background-size: cover;
  background-position: center 30%;
}

#page-header.full_page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 18, 0.92) 0%, rgba(10, 16, 18, 0.45) 45%, rgba(10, 16, 18, 0.15) 100%),
    radial-gradient(circle at 80% 20%, rgba(224, 169, 109, 0.10), transparent 55%);
  z-index: 0;
}

#page-header.full_page #site-info {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 760px;
  padding-left: 8vw;
}

/* 站点标题：等宽字体 + 终端光标感 */
#site-title {
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5f5f5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

#site-title::before {
  content: "~/mqcode $ ";
  color: var(--coder-amber);
  font-weight: 500;
  opacity: 0.85;
}

/* 副标题：打字机 + 注释风格 */
#site-subtitle #subtitle {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  color: var(--coder-dim);
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

#site-subtitle::before {
  content: "// ";
  color: #6f8a8f;
}

/* 社交图标悬浮：琥珀色 */
#site_social_icons .social-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(224, 169, 109, 0.25);
  transition: all 0.25s ease;
}

#site_social_icons .social-icon:hover {
  background: rgba(224, 169, 109, 0.18);
  border-color: var(--coder-amber);
  transform: translateY(-3px);
}

/* 向下滚动指示 */
#scroll-down .scroll-down-effects {
  color: var(--coder-amber);
}

/* ---------- 顶部导航：低调沉稳 ---------- */
#page-header.nav-fixed #nav {
  background: rgba(17, 24, 27, 0.85);
  backdrop-filter: blur(8px);
}

#nav .site-page,
#nav #site-name {
  font-family: "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.5px;
}

/* ---------- 文章卡片：深色边框 + 终端风 ---------- */
#recent-posts .recent-post-item {
  border: 1px solid rgba(224, 169, 109, 0.12);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

#recent-posts .recent-post-item:hover {
  border-color: rgba(224, 169, 109, 0.45);
  transform: translateY(-2px);
}

.recent-post-info .article-title {
  font-family: "JetBrains Mono", Consolas, monospace;
}

/* 分类 / 标签徽标用小等宽 */
#aside-content .card-category-list a,
#aside-content .card-tags .card-tag-list a {
  font-family: "JetBrains Mono", Consolas, monospace;
}

/* ---------- 全局滚动条：极客感 ---------- */
::-webkit-scrollbar-thumb {
  background: #3a4b50;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--coder-amber);
}

/* ---------- 暗色模式增强 ---------- */
[data-theme="dark"] #page-header.full_page {
  background-color: #0c1316;
}

[data-theme="dark"] #site-title,
[data-theme="dark"] #site-subtitle #subtitle {
  color: #e9eef0;
}

/* 小屏：文案居中，渐变减弱以保证可读性 */
@media screen and (max-width: 768px) {
  #page-header.full_page #site-info {
    text-align: center;
    padding-left: 0;
    padding: 0 18px;
  }
  #page-header.full_page::before {
    background: linear-gradient(180deg, rgba(10, 16, 18, 0.45), rgba(10, 16, 18, 0.9));
  }
}
