
/* 导航按钮（脉冲 + 光边）*/


/* 基础样式 */
.navbar-nav > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  color: #ffffff;
  font-weight: 500;
  border-radius: 6px;
  background: linear-gradient(to bottom, rgba(100,150,255,0.25), rgba(70,120,255,0.2));
  transition: transform 0.6s cubic-bezier(0.25, 1.5, 0.5, 1),
              background 0.4s ease,
              text-shadow 0.4s ease,
              box-shadow 0.4s ease;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* 光晕 */
.navbar-nav > li > a:hover {
  background: linear-gradient(to bottom, rgba(100,180,255,0.5), rgba(70,140,255,0.4));
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
  transform: translateY(-3px) scale(1.02);

  /* 内阴影 + 边缘光晕 */
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.6),
    0 0 12px rgba(100,150,255,0.8),
    0 0 20px rgba(100,150,255,0.5),
    0 0 30px rgba(100,150,255,0.3),
    0 0 0 2px rgba(100,150,255,0.2); /* 半透明边缘光 */

  animation: glowPulse 1.5s infinite alternate;
}

/* 点击凹陷效果 */
.navbar-nav > li > a:active {
  background: linear-gradient(to bottom, rgba(70,120,255,0.4), rgba(100,150,255,0.2));
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  transform: translateY(1px);
  animation: none;
}

/* 脉冲动画 */
@keyframes glowPulse {
  0% {
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.6),
      0 0 8px rgba(100,150,255,0.6),
      0 0 16px rgba(100,150,255,0.4),
      0 0 24px rgba(100,150,255,0.2),
      0 0 0 2px rgba(100,150,255,0.15);
  }
  50% {
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.6),
      0 0 12px rgba(100,150,255,0.8),
      0 0 20px rgba(100,150,255,0.6),
      0 0 28px rgba(100,150,255,0.4),
      0 0 0 2px rgba(100,150,255,0.2);
  }
  100% {
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.6),
      0 0 10px rgba(100,150,255,0.7),
      0 0 18px rgba(100,150,255,0.5),
      0 0 26px rgba(100,150,255,0.3),
      0 0 0 2px rgba(100,150,255,0.15);
  }
}

/* 小屏幕响应式 */
@media (max-width: 768px) {
  .navbar-nav > li > a {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/*
   标题  玻璃感
*/

.post-preview a h2.post-title {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 14px 26px;
  border-radius: 16px;

  /* 半透明背景渐变玻璃 */
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(0,191,255,0.12));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* 边框和内外阴影 */
  border: 2px solid rgba(0,191,255,0.35);
  box-shadow:
    inset 0 2px 10px rgba(255,255,255,0.3),
    inset 0 -2px 8px rgba(0,0,50,0.15),
    0 0 12px rgba(0,191,255,0.2),
    0 0 25px rgba(0,191,255,0.15),
    0 0 40px rgba(0,191,255,0.08);

  transition: all 0.4s ease;
  font-weight: 600;
  color: #1e90ff;
  animation: breatheGlass 4s infinite alternate;
}

/* 悬停效果 */
.post-preview a:hover h2.post-title {
  color: #00bfff;
  transform: scale(1.08);
  text-shadow:
    0 0 10px rgba(0,191,255,0.65),
    0 0 22px rgba(0,191,255,0.45),
    0 0 35px rgba(0,191,255,0.3);
  box-shadow:
    inset 0 3px 12px rgba(255,255,255,0.4),
    inset 0 -3px 10px rgba(0,0,60,0.25),
    0 0 18px rgba(0,191,255,0.5),
    0 0 35px rgba(0,191,255,0.35),
    0 0 50px rgba(0,191,255,0.2);
  animation: none;
}

/* 流光伪元素 */
.post-preview a h2.post-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 40%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.4) 60%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: shine 2.5s linear infinite;
}

/* 流光动画 */
@keyframes shine {
  0% { left: -90%; }
  100% { left: 110%; }
}

/* 微光呼吸动画 */
@keyframes breatheGlass {
  0% {
    box-shadow:
      inset 0 2px 10px rgba(255,255,255,0.3),
      inset 0 -2px 8px rgba(0,0,50,0.15),
      0 0 10px rgba(0,191,255,0.2),
      0 0 20px rgba(0,191,255,0.12),
      0 0 35px rgba(0,191,255,0.08);
  }
  50% {
    box-shadow:
      inset 0 3px 12px rgba(255,255,255,0.35),
      inset 0 -3px 10px rgba(0,0,50,0.2),
      0 0 14px rgba(0,191,255,0.25),
      0 0 28px rgba(0,191,255,0.18),
      0 0 45px rgba(0,191,255,0.12);
  }
  100% {
    box-shadow:
      inset 0 2px 10px rgba(255,255,255,0.3),
      inset 0 -2px 8px rgba(0,0,50,0.15),
      0 0 12px rgba(0,191,255,0.2),
      0 0 25px rgba(0,191,255,0.15),
      0 0 40px rgba(0,191,255,0.1);
  }
}
