:root {
  --eva-red: #C73E3E;
  --eva-blue: #7EB6D9;
  --eva-purple: #6B4FA0;
  --eva-dark-blue: #1b3a5c;
  --eva-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

#site-title,
.site-name,
.post-title,
.article-title {
  font-family: var(--eva-serif);
  font-weight: 900;
  letter-spacing: 0.04em;
}

#site-title {
  text-shadow: 3px 3px 0 var(--eva-red);
}

.post-title {
  position: relative;
  display: inline-block;
}

.post-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 4.5rem;
  height: 4px;
  background: var(--eva-red);
}

.article-title {
  position: relative;
}

.article-title::before {
  content: '';
  position: absolute;
  left: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.15em;
  background: var(--eva-red);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.article-title:hover::before {
  opacity: 1;
}

#recent-posts .recent-post-item,
.layout_page .aside-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#recent-posts .recent-post-item:hover {
  box-shadow: 0 6px 18px rgba(27, 58, 92, 0.18);
}

.flink-list-item:hover {
  border-color: #e8913a !important;
}

#site-subtitle {
  letter-spacing: 0.35em;
  font-family: var(--eva-serif);
}

#footer #footer-wrap {
  letter-spacing: 0.05em;
}

[data-theme='dark'] #site-title {
  text-shadow: 3px 3px 0 rgba(199, 62, 62, 0.75);
}

[data-theme='dark'] #recent-posts .recent-post-item:hover {
  box-shadow: 0 6px 18px rgba(126, 182, 217, 0.12);
}

:root {
  --card-bg: rgba(255, 255, 255, 0.78);
}

[data-theme='dark'] {
  --card-bg: rgba(18, 18, 18, 0.78);
}

#page-header:not(.nav-fixed) #nav {
  background: rgba(13, 27, 42, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#nav img.site-icon {
  height: 36px;
  width: auto;
}

@keyframes eva-loader-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

#site-title,
.post-title,
#site-subtitle {
  transform: scaleY(1.08);
  transform-origin: left bottom;
}

#site-title.quote-ready {
  visibility: visible;
}

@keyframes eva-home-quote-in {
  from {
    opacity: 0;
    transform: translateX(-6rem) scaleY(1.08);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleY(1.08);
  }
}

@keyframes eva-home-signature-in {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html.eva-ready #page-header #site-title.rei-quote {
  animation: eva-home-quote-in 1.4s cubic-bezier(0.45, 0, 0.25, 1) both;
}

#eva-loader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.eva-loading body > *:not(#eva-loader) {
  visibility: hidden !important;
}

html.eva-ready body > *:not(#eva-loader) {
  visibility: visible;
}

html.eva-loader-fading #eva-loader {
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.38s ease !important;
}

html.eva-revealed #eva-loader {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.eva-loader-fading #eva-loader {
    transition: none !important;
  }
}

html.eva-background-fallback #web_bg,
html.eva-background-fallback #page-header.full_page {
  background-color: var(--eva-blue);
}

.eva-background-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

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

#web_bg .eva-background-picture {
  position: fixed;
  z-index: 0;
}

#page-header > .eva-background-picture ~ * {
  position: relative;
  z-index: 2;
}

#page-header:not(.not-top-img)::before {
  z-index: 1;
}

#page-header #site-info {
  text-align: center;
}

#page-header #site-title.rei-quote {
  display: inline-block;
  font-size: 2.8rem;
  line-height: 1.7;
  max-width: 82%;
  margin: 0 auto;
  text-align: center;
  transform-origin: center bottom;
  text-shadow: 2px 2px 0 var(--eva-blue);
}

#rei-signature {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-family: 'Great Vibes', var(--eva-serif), cursive;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 1px 1px 0 var(--eva-blue);
  opacity: 1;
  transform: none;
}

html.eva-loading #page-header #rei-signature {
  opacity: 0;
  transform: translateX(0.8rem);
}

#rei-signature .sig-dash {
  font-family: var(--eva-serif);
}

#rei-signature.sig-ready {
  opacity: 1;
  transform: none;
}

html.eva-ready #rei-signature.sig-ready {
  animation: eva-home-signature-in 0.6s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#page-header #site-title.quote-rei {
  text-shadow: 2px 2px 0 var(--eva-blue);
}

#page-header #site-title.quote-asuka {
  text-shadow: 2px 2px 0 var(--eva-red);
}

#page-header #site-title.quote-shinji {
  text-shadow: 2px 2px 0 var(--eva-purple);
}

#rei-signature.sig-rei {
  text-shadow: 1px 1px 0 var(--eva-blue);
}

#rei-signature.sig-asuka {
  text-shadow: 1px 1px 0 var(--eva-red);
}

#rei-signature.sig-shinji {
  text-shadow: 1px 1px 0 var(--eva-purple);
}

.post-bg#page-header {
  background: transparent !important;
}
.post-bg#page-header::before {
  display: none;
}

#footer {
  background: rgba(126, 182, 217, 0.3) !important;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
#footer .footer-other {
  padding: 4px 20px;
  font-size: 0.65rem;
}
#footer .framework-info {
  display: inline;
}

#rightside-config {
  display: none;
}
.comment-headline span {
  display: none;
}
.comment-headline::after {
  content: ' 留言';
}

.tk-avatar {
  display: none !important;
}
.tk-meta-input .el-input:nth-child(2) {
  display: none !important;
}
.tk-meta-input .el-input:nth-child(3) {
  display: none !important;
}
.tk-meta-input .el-input {
  width: 100% !important;
}
.tk-row.actions {
  margin-left: 0 !important;
}

.not-home-page#page-header {
  height: 60px !important;
  min-height: 60px !important;
  background: transparent !important;
}
.not-home-page#page-header::before {
  display: none;
}

.post-bg#page-header {
  height: 60px !important;
  min-height: 60px !important;
  background: transparent !important;
}

#page-header.not-home-page > .eva-background-picture,
#page-header.not-home-page > #page-site-info,
#page-header.post-bg > .eva-background-picture,
#page-header.post-bg > #post-info,
#page-header.not-top-img > .title-seo {
  display: none !important;
}

#page-header.not-home-page + #content-inner,
#page-header.post-bg + #content-inner {
  margin-top: 0;
}

.full_page#page-header::before {
  display: none;
}

.tk-comments-actions .tk-icon.__comments:last-child {
  display: none !important;
}

/* =========================================================
   卡片改造（方案 B：漂浮倾斜卡片）
   需求文档：style-previews/博客卡片改造需求.md
   仅限首页文章卡片 + 侧边栏卡片，不动背景/加载动画/横幅/导航
   ========================================================= */

/* ---------- 文章卡片 #recent-posts .recent-post-item ---------- */

#recent-posts > .recent-post-items > .recent-post-item {
  border: 1px solid rgba(126, 182, 217, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

#recent-posts > .recent-post-items > .recent-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C73E3E, #7EB6D9 60%, transparent);
  pointer-events: none;
}

#recent-posts > .recent-post-items > .recent-post-item:hover {
  transform: rotate(var(--hover-rotate, 0deg)) scale(1.02);
  border-color: rgba(126, 182, 217, 0.55);
  box-shadow: 0 10px 28px rgba(126, 182, 217, 0.28), 0 0 0 1px rgba(126, 182, 217, 0.15);
}

#recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .article-title {
  font-size: 1.35rem;
}

#recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .article-title::before {
  opacity: 1;
}

#recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .article-title:hover {
  color: #e8913a;
}

#recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .article-meta-wrap > .post-meta-date {
  display: inline-block;
  padding: 0.12em 0.8em;
  border-radius: 20px;
  background: rgba(232, 145, 58, 0.15);
  color: #e8913a;
}

#recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .content {
  -webkit-line-clamp: 3;
}

/* ---------- 侧边栏卡片 #aside-content .card-widget ---------- */

#aside-content .card-widget {
  border: 1px solid rgba(126, 182, 217, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

#aside-content .card-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7EB6D9, transparent);
  pointer-events: none;
}

#aside-content .card-widget:hover {
  transform: rotate(var(--hover-rotate, 0deg)) scale(1.015);
  border-color: rgba(126, 182, 217, 0.55);
  box-shadow: 0 8px 24px rgba(126, 182, 217, 0.24);
}

#aside-content .card-info .avatar-img {
  border: 3px solid rgba(126, 182, 217, 0.6);
  box-shadow: 0 0 14px rgba(126, 182, 217, 0.35);
}

#aside-content .card-info .site-data {
  border-top: 1px dashed rgba(126, 182, 217, 0.4);
  border-bottom: 1px dashed rgba(126, 182, 217, 0.4);
  padding: 10px 0;
}

#aside-content .card-recent-post .aside-list > .aside-list-item {
  border-bottom: 1px dashed rgba(126, 182, 217, 0.35);
}

#aside-content .card-recent-post .aside-list > .aside-list-item:hover {
  background: rgba(232, 145, 58, 0.08);
}

#aside-content .card-recent-post .aside-list > .aside-list-item:hover .title {
  color: #e8913a;
}

#aside-content .card-webinfo .webinfo-item {
  border-bottom: 1px dashed rgba(126, 182, 217, 0.3);
}

#aside-content .card-webinfo .webinfo-item:last-child {
  border-bottom: none;
}

/* ---------- 移动端适配（≤900px 无 hover，保持默认正） ---------- */

@media screen and (max-width: 900px) {
  #recent-posts > .recent-post-items > .recent-post-item,
  #aside-content .card-widget {
    transform: none;
  }

  #page-header #site-title.rei-quote {
    font-size: 1.9rem;
  }

  #rei-signature {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.eva-ready #page-header #site-title.rei-quote,
  html.eva-ready #rei-signature.sig-ready {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- 深色模式适配 ---------- */

[data-theme='dark'] #recent-posts > .recent-post-items > .recent-post-item {
  border-color: rgba(126, 182, 217, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] #recent-posts > .recent-post-items > .recent-post-item:hover {
  border-color: rgba(126, 182, 217, 0.45);
  box-shadow: 0 10px 28px rgba(126, 182, 217, 0.16);
}

[data-theme='dark'] #aside-content .card-widget {
  border-color: rgba(126, 182, 217, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] #aside-content .card-widget:hover {
  border-color: rgba(126, 182, 217, 0.45);
  box-shadow: 0 8px 24px rgba(126, 182, 217, 0.14);
}

[data-theme='dark'] #recent-posts > .recent-post-items > .recent-post-item .recent-post-info > .article-meta-wrap > .post-meta-date {
  background: rgba(232, 145, 58, 0.12);
  color: #e8913a;
}

/* ---------- 分类/标签筛选卡片 ---------- */

#aside-content .card-filter {
  padding: 16px 20px;
}

#aside-content .card-filter .filter-group {
  margin-bottom: 12px;
}

#aside-content .card-filter .filter-group:last-child {
  margin-bottom: 0;
}

#aside-content .card-filter .filter-group-title {
  margin-bottom: 8px;
  color: var(--eva-blue);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#aside-content .card-filter .filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#aside-content .card-filter .filter-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid rgba(126, 182, 217, 0.25);
  border-radius: 14px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--font-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

#aside-content .card-filter .filter-item:hover {
  border-color: #e8913a;
  color: #e8913a;
  background: rgba(232, 145, 58, 0.08);
}

#aside-content .card-filter .filter-item.selected,
#aside-content .card-filter .filter-item.selected:hover {
  border-color: var(--eva-blue);
  background: var(--eva-blue);
  color: #1b2a3a;
}

#aside-content .card-filter .filter-empty {
  width: 100%;
  color: var(--card-meta);
  font-size: 0.85rem;
  text-align: center;
}

.filter-result-empty {
  padding: 20px;
  text-align: center;
  color: var(--eva-blue);
  font-family: var(--eva-serif);
  letter-spacing: 0.05em;
}

[data-theme='dark'] #aside-content .card-filter .filter-item {
  border-color: rgba(126, 182, 217, 0.2);
  color: var(--font-color);
}

/* ---------- 阅读进度条 ---------- */

#eva-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--eva-blue), var(--eva-red));
  box-shadow: 0 0 8px rgba(126, 182, 217, 0.6);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ---------- 鼠标粒子 ---------- */

.eva-particle {
  position: fixed;
  z-index: 9997;
  border-radius: 50%;
  background: rgba(232, 145, 58, 0.7);
  box-shadow: 0 0 6px rgba(232, 145, 58, 0.8);
  pointer-events: none;
  animation: eva-particle-fade 1s ease-out forwards;
  contain: layout style paint;
}

@keyframes eva-particle-fade {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 0), -40px) scale(0.4);
  }
}

/* =========================================================
   细节优化：封面 4:3 + 分类胶囊加粗 + meta 橙色 + 标签橙色
   ========================================================= */

/* ---------- 1. 首页封面：区域 4:3 + 边缘淡出半透明（桌面端） ---------- */

@media screen and (min-width: 769px) {
  #recent-posts > .recent-post-items > .recent-post-item .post_cover {
    width: 260px;
    height: 195px;
    flex-shrink: 0;
  }

  #recent-posts > .recent-post-items > .recent-post-item .post_cover .post-bg {
    object-fit: cover;
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
  }
}

/* ---------- 2. 分类/标签筛选胶囊：加粗统一颜色 ---------- */

#aside-content .card-filter .filter-item {
  border-width: 2px;
  border-color: var(--eva-blue);
  color: var(--eva-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

#aside-content .card-filter .filter-item:hover {
  border-color: #e8913a;
  color: #e8913a;
  background: rgba(232, 145, 58, 0.08);
}

/* ---------- 4. 文章页标签：加粗橙色 ---------- */

#post .tag_share .post-meta__tags {
  border: 2px solid #e8913a;
  color: #e8913a;
  font-size: 0.95em;
  font-weight: 600;
}

#post .tag_share .post-meta__tags:hover {
  background: #e8913a;
  color: #fff;
}

/* =========================================================
   统一 hover 变色为橙色（覆盖主题默认蓝色/白色 hover）
   ========================================================= */

#nav a:hover,
#nav span.site-page:hover,
#page-header.nav-fixed #nav a:hover,
#page-header.nav-fixed #nav span.site-page:hover,
#page-header.nav-fixed #nav #blog-info:hover,
#nav #toggle-menu:hover,
#sidebar #sidebar-menus .menus_items .site-page:hover,
#aside-content .aside-list > .aside-list-item .content > .title:hover,
#aside-content .aside-list > .aside-list-item .content > .comment:hover,
.search-dialog .search-nav .search-close-button:hover,
#recent-posts .recent-post-item > .recent-post-info > .article-title:hover {
  color: #e8913a;
}

/* ---------- EVA local search panel ---------- */

#local-search .search-dialog {
  position: fixed;
  overflow: hidden;
  width: 680px;
  max-width: calc(100vw - 32px);
  margin-left: -340px;
  border: 1px solid rgba(126, 182, 217, 0.62);
  border-top: 3px solid var(--eva-red);
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.32), 0 0 0 1px rgba(199, 62, 62, 0.12), inset 0 0 32px rgba(126, 182, 217, 0.04);
}

#local-search .search-dialog::before {
  position: absolute;
  top: 8px;
  right: 20px;
  color: var(--eva-blue);
  content: 'NERV // LOCAL SEARCH';
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  opacity: 0.78;
  pointer-events: none;
}

#local-search .search-dialog::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--eva-blue));
  content: '';
  opacity: 0.7;
  pointer-events: none;
}

#local-search .search-nav {
  position: relative;
  margin-bottom: 20px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(126, 182, 217, 0.32);
}

#local-search .search-nav::before {
  display: inline-block;
  margin-right: 8px;
  color: var(--eva-red);
  content: '●';
  font-size: 0.72rem;
  text-shadow: 0 0 8px rgba(199, 62, 62, 0.65);
}

#local-search .search-dialog-title {
  color: var(--eva-blue);
  font-family: var(--eva-serif);
  font-size: 1.08em;
  font-weight: 900;
  letter-spacing: 0.16em;
}

#local-search .search-nav::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4.5rem;
  height: 3px;
  background: var(--eva-red);
  content: '';
}

#local-search .search-close-button {
  position: relative;
  z-index: 1;
  color: var(--eva-red);
  outline: none;
}

#local-search .search-close-button:focus-visible {
  outline: 2px solid #e8913a;
  outline-offset: 4px;
}

#local-search .local-search-input {
  position: relative;
  padding-top: 20px;
}

#local-search .local-search-input::before {
  position: absolute;
  top: 0;
  left: 14px;
  color: var(--eva-red);
  content: 'AT FIELD // QUERY';
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  opacity: 0.82;
  pointer-events: none;
}

#local-search .local-search-input input {
  padding: 9px 14px;
  border: 1px solid rgba(126, 182, 217, 0.78);
  border-radius: 4px;
  background: rgba(126, 182, 217, 0.08);
  box-shadow: inset 0 -2px 0 rgba(199, 62, 62, 0.18);
  caret-color: var(--eva-red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#local-search .local-search-input input:focus,
#local-search .local-search-input input:focus-visible {
  border-color: var(--eva-blue);
  background: rgba(126, 182, 217, 0.14);
  box-shadow: 0 0 0 3px rgba(126, 182, 217, 0.16), 0 0 16px rgba(126, 182, 217, 0.18);
  outline: none;
}

#local-search .local-search-input input::placeholder {
  color: var(--card-meta);
  opacity: 0.92;
}

#local-search #loading-database {
  margin: 8px 0 20px;
  padding: 10px 12px;
  border: 1px dashed rgba(126, 182, 217, 0.45);
  background: rgba(126, 182, 217, 0.06);
  color: var(--card-meta);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: left;
}

#local-search #loading-database i {
  margin-right: 6px;
  color: var(--eva-red);
}

#local-search .search-dialog > hr {
  margin: 18px 0 14px;
  border: 0;
  border-top: 1px solid rgba(126, 182, 217, 0.2);
}

#local-search .search-dialog > hr::before,
#local-search .search-dialog > hr:hover::before {
  display: none;
}

#local-search #local-search-results:empty + #local-search-pagination + #local-search-stats:empty::before {
  display: block;
  margin: 18px 0 4px;
  padding: 30px 18px;
  border: 1px dashed rgba(126, 182, 217, 0.35);
  background: linear-gradient(135deg, rgba(126, 182, 217, 0.06), transparent 62%);
  color: var(--card-meta);
  content: '●  READY FOR QUERY  //  等待输入指令';
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
}

#local-search #local-search-results:empty + #local-search-pagination + #local-search-stats:empty::after {
  display: block;
  margin: 0 auto;
  width: 54px;
  height: 2px;
  background: var(--eva-red);
  box-shadow: 0 0 10px rgba(199, 62, 62, 0.45);
  content: '';
}

#local-search .search-result-list {
  overflow-y: auto;
  margin: 0;
  padding: 0 4px 2px 0;
  max-height: min(52vh, 430px);
  scrollbar-color: rgba(126, 182, 217, 0.7) transparent;
  scrollbar-width: thin;
}

#local-search .search-result-list .local-search-hit-item {
  margin: 8px 0;
  padding: 12px 14px 11px 12px;
  border: 1px solid rgba(126, 182, 217, 0.24);
  border-left: 3px solid rgba(199, 62, 62, 0.76);
  border-radius: 3px;
  background: rgba(126, 182, 217, 0.045);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#local-search .search-result-list .local-search-hit-item:hover {
  border-color: rgba(126, 182, 217, 0.8);
  border-left-color: var(--eva-blue);
  background: rgba(126, 182, 217, 0.1);
  box-shadow: 0 4px 14px rgba(126, 182, 217, 0.14);
}

#local-search .search-result-list .local-search-hit-item a {
  min-width: 0;
}

#local-search .search-result-list .local-search-hit-item a:hover,
#local-search .search-result-list .local-search-hit-item a:focus-visible {
  color: #e8913a;
}

#local-search .search-result-list .local-search-hit-item .search-result-title {
  display: block;
  overflow: hidden;
  color: var(--font-color);
  font-family: var(--eva-serif);
  font-size: 1.03em;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#local-search .search-result-list .local-search-hit-item .search-result {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--card-meta);
  font-size: 0.84em;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#local-search .search-result-list .local-search-hit-item mark,
#local-search .search-result-list .local-search-hit-item .search-keyword {
  padding: 0 2px;
  border-radius: 2px;
  background: rgba(232, 145, 58, 0.24);
  color: inherit;
  box-shadow: inset 0 -2px 0 rgba(232, 145, 58, 0.78);
}

#local-search .search-result-list .local-search-hit-item[value]::before {
  margin-right: 8px;
  min-width: 22px;
  color: var(--eva-red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72em;
  font-style: normal;
  letter-spacing: 0.04em;
}

#local-search #loading-database,
#local-search #local-search-stats {
  color: var(--card-meta);
}

#local-search #local-search-stats {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

#local-search #local-search-stats hr {
  margin: 14px 0 9px;
  border: 0;
  border-top: 1px solid rgba(126, 182, 217, 0.2);
}

#local-search #local-search-stats .search-result-stats {
  padding-left: 10px;
  border-left: 2px solid var(--eva-red);
}

#local-search #local-search-stats > .search-result-stats {
  padding: 14px 12px;
  border: 1px dashed rgba(199, 62, 62, 0.56);
  border-left: 3px solid var(--eva-red);
  background: rgba(199, 62, 62, 0.055);
  color: var(--card-meta);
}

[data-theme='dark'] #local-search .search-dialog {
  border-color: rgba(126, 182, 217, 0.48);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(199, 62, 62, 0.18), inset 0 0 32px rgba(126, 182, 217, 0.04);
}

[data-theme='dark'] #local-search .local-search-input input {
  background: rgba(18, 18, 18, 0.52);
}

[data-theme='dark'] #local-search .search-result-list .local-search-hit-item {
  background: rgba(18, 18, 18, 0.36);
}

@media screen and (max-width: 768px) {
  #local-search .search-dialog {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  #local-search .search-dialog::before {
    right: 16px;
    font-size: 0.5rem;
  }

  #local-search .search-nav {
    padding-right: 0;
  }

  #local-search .local-search-input input {
    max-width: 100%;
  }

  #local-search .search-result-list {
    max-height: calc(100vh - 265px);
  }

  #local-search .search-result-list .local-search-hit-item .search-result-title {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #local-search .local-search-input input,
  #local-search .search-result-list .local-search-hit-item {
    transition: none;
  }

  #local-search .search-result-list .local-search-hit-item:hover {
    transform: none;
  }
}

#sidebar #sidebar-menus .menus_items .site-page:hover {
  background: rgba(232, 145, 58, 0.12);
  box-shadow: 0 2px 8px rgba(232, 145, 58, 0.2);
}

#nav #toggle-menu:hover {
  color: #e8913a !important;
}

#nav .site-page:not(.child):after {
  background-color: #e8913a;
}

/* 深色模式：主页背景保持 banner 原貌，不被黑色遮罩压暗 */
[data-theme='dark'] #web_bg:before {
  content: none;
}

/* 头像卡片下 文章/标签/分类 hover 橙色 */
#aside-content .card-info .site-data > a:hover div {
  color: #e8913a !important;
}

/* 头像卡片下 文章/标签/分类：不可点击、不可选中 */
#aside-content .card-info .site-data > a {
  pointer-events: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  text-decoration: none;
}

/* ---------- 首页文章卡片右上角 EVA 贴纸 ---------- */

#recent-posts > .recent-post-items > .recent-post-item .eva-sticker {
  position: absolute;
  top: 8px;
  right: 4px;
  z-index: 2;
  width: 70px;
  height: 70px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(var(--eva-sticker-rotate, 0deg));
  transition: transform 0.3s ease;
}

#recent-posts > .recent-post-items > .recent-post-item:hover .eva-sticker {
  transform: rotate(var(--eva-sticker-rotate, 0deg)) scale(1.05) !important;
}

/* ---------- NERV 时钟（侧边栏顶部） ---------- */

#aside-content .card-nerv-clock {
  text-align: center;
  padding: 18px 20px;
}

#aside-content .card-nerv-clock .nerv-clock-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

#aside-content .card-nerv-clock .nerv-clock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eva-red);
  box-shadow: 0 0 8px rgba(199, 62, 62, 0.8);
  animation: nerv-dot-pulse 1.6s ease-in-out infinite;
}

#aside-content .card-nerv-clock .nerv-clock-title {
  font-family: var(--eva-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--eva-blue);
}

#aside-content .card-nerv-clock .nerv-clock-time {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--eva-blue);
  margin-bottom: 6px;
}

#aside-content .card-nerv-clock .nerv-clock-time .nerv-clock-s {
  color: var(--eva-red);
}

#aside-content .card-nerv-clock .nerv-clock-date {
  font-family: var(--eva-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--eva-blue);
  opacity: 0.85;
}

@keyframes nerv-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- 访客定位距离卡片（头像卡下方） ---------- */

#aside-content .card-visitor-dist {
  text-align: center;
  padding: 16px 20px;
}

#aside-content .card-visitor-dist .visitor-dist-loading {
  font-size: 0.85rem;
  color: var(--card-meta);
}

#aside-content .card-visitor-dist .visitor-dist-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--eva-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--eva-blue);
  margin-bottom: 6px;
}

#aside-content .card-visitor-dist .visitor-dist-icon {
  font-size: 1rem;
}

#aside-content .card-visitor-dist .visitor-dist-place {
  font-family: var(--eva-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eva-blue);
  margin-bottom: 4px;
}

#aside-content .card-visitor-dist .visitor-dist-line {
  font-family: var(--eva-serif);
  font-size: 0.82rem;
  color: var(--card-meta);
}

#aside-content .card-visitor-dist .visitor-dist-num {
  color: var(--eva-red);
  font-weight: 700;
  margin-left: 4px;
}

/* ---------- EVA 抽签（头像卡下方） ---------- */

#aside-content .card-eva-fortune {
  text-align: center;
  padding: 16px 20px;
}

#aside-content .card-eva-fortune .fortune-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--eva-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--eva-blue);
  margin-bottom: 10px;
}

#aside-content .card-eva-fortune .fortune-icon {
  font-size: 1.1rem;
}

#aside-content .card-eva-fortune .fortune-hint {
  font-size: 0.8rem;
  color: var(--card-meta);
  margin-bottom: 10px;
}

#aside-content .card-eva-fortune .fortune-btn {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--eva-blue);
  border-radius: 18px;
  background: transparent;
  color: var(--eva-blue);
  font-family: var(--eva-serif);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

#aside-content .card-eva-fortune .fortune-btn:hover {
  background: var(--eva-blue);
  color: #fff;
}

#aside-content .card-eva-fortune .fortune-level {
  font-family: var(--eva-serif);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  animation: fortune-pop 0.5s ease;
}

#aside-content .card-eva-fortune .fortune-quote {
  font-family: var(--eva-serif);
  font-size: 0.95rem;
  color: var(--font-color);
  line-height: 1.6;
  margin-bottom: 4px;
}

#aside-content .card-eva-fortune .fortune-sig {
  font-family: 'Great Vibes', var(--eva-serif), cursive;
  font-size: 1.1rem;
  color: var(--eva-blue);
  margin-bottom: 8px;
}

#aside-content .card-eva-fortune .fortune-advice {
  font-size: 0.82rem;
  color: var(--card-meta);
}

#aside-content .card-eva-fortune .fortune-already {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--eva-red);
}

@keyframes fortune-pop {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* Compact adjacent-article links. Scoped to post navigation, never home cards. */
#pagination.pagination-post {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  margin-top: 28px;
  background: transparent;
  box-shadow: none;
}
#pagination.pagination-post > .pagination-related {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(126,182,217,.8);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--font-color);
}
#pagination.pagination-post > .pagination-related .cover,
#pagination.pagination-post > .pagination-related .info-2 { display: none; }
#pagination.pagination-post > .pagination-related .info { min-width: 0; }
#pagination.pagination-post > .pagination-related .info-1,
#pagination.pagination-post > .pagination-related:hover .info-1 {
  position: static;
  transform: none;
  opacity: 1;
  padding: 0;
  color: inherit;
}
#pagination.pagination-post .info-item-1,
#pagination.pagination-post .info-item-2 {
  display: inline;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}
#pagination.pagination-post .info-item-1::after { content: '：'; }
#pagination.pagination-post .info-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
#pagination.pagination-post > a:hover { color: #e8913a; border-color: #e8913a; }
#pagination.pagination-post > a:focus-visible { outline: 2px solid #e8913a; outline-offset: 4px; }
#article-container em { font-style: italic; font-synthesis: weight style; }
