/* ===== 首页专用 ===== */

/* 首页隐藏顶部导航 */
body:has(.landing-page) #nav {
  display: none !important;
}

/* 首页隐藏侧栏、页脚、右下角按钮、博客流 */
body:has(.landing-page) #aside-content,
body:has(.landing-page) .aside-content,
body:has(.landing-page) .sticky_layout,
body:has(.landing-page) .card-widget,
body:has(.landing-page) #footer,
body:has(.landing-page) #rightside,
body:has(.landing-page) #sidebar,
body:has(.landing-page) #recent-posts,
body:has(.landing-page) #pagination,
body:has(.landing-page) #post-comment,
body:has(.landing-page) #scroll-down,
body:has(.landing-page) #site-info {
  display: none !important;
}

/* 首页只保留背景图和中间内容 */
body:has(.landing-page),
body:has(.landing-page) #body-wrap,
body:has(.landing-page) #page-header,
body:has(.landing-page) #content-inner,
body:has(.landing-page) .layout,
body:has(.landing-page) .landing-page {
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.landing-page) #content-inner {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 中间主视觉 */
.landing-page {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-center {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  transform: translateY(-2vh);
}

.hero-title {
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.97);
  text-shadow: 0 4px 24px rgba(0,0,0,0.28);
  animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,100% {
    text-shadow: 0 4px 24px rgba(0,0,0,0.28);
  }
  50% {
    text-shadow: 0 6px 36px rgba(255,255,255,0.25);
  }
}

.hero-mini {
  margin: 18px 0 26px;

  font-size: 30px;
  letter-spacing: 6px;
  font-weight: 300;

  color: rgba(255,255,255,0.78);

  text-align: center;

  /* 微渐变（高级感关键） */
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 轻微发光 */
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* 中间按钮 */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  pointer-events: auto;
  margin-bottom: 28px;
  margin-top: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.hero-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
  transform: translateY(-2px) scale(1.03);
}

/* subtitle 区 */
.hero-subtitle {
  margin: 24px 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.block-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  animation: blockBreath 3.6s ease-in-out infinite;
}

.block-line span {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.4s ease;
  animation: blockFloat 2.8s ease-in-out infinite;
}

.block-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.block-text p {
  margin: 0;
}

@keyframes blockBreath {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes blockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

/* 点击浮字 */
.click-float-text {
  position: fixed;
  z-index: 99999;
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: transform 0.9s ease-out, opacity 0.9s ease-out;
}

/* Vanta 画布透明叠加 */
#page-header {
  position: relative;
  overflow: hidden;
}

#page-header canvas {
  opacity: 0.35;
}

/* ===== 首页底部横条 ===== */
.footer-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 44px;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 12px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

/* 分隔符 */
.footer-inner .separator {
  opacity: 0.4;
}

/* 链接 */
.footer-inner a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-inner a:hover {
  color: #fff;
}

/* 公安备案图标 */
.footer-inner img {
  height: 14px;
  vertical-align: middle;
  filter: brightness(0.95);
}