/* ==========================================================
   SendMessage 风格按钮（导航栏适配版）
   保留原按钮的发光边框、图标动画与字母波浪效果
   ========================================================== */

.nav-send-button {
  --primary: #ff5569;
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 10px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 118px;
  width: auto;
  height: 40px;
  white-space: nowrap;
  padding: 6px 12px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #212741;
  background: transparent;
  text-decoration: none !important;
  vertical-align: middle;
}
.nav-send-button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.nav-send-button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.nav-send-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.nav-send-button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.nav-send-button::before {
  content: "";
  inset: 5px 5px 5px 5px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 20px;
  filter: blur(0.5px);
  z-index: 2;
}

.nav-send-button .state {
  padding-left: 26px;
  z-index: 2;
  display: flex;
  position: relative;
}
.nav-send-button .state p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}
.nav-send-button .state p span {
  display: block;
  opacity: 0;
  animation: navSlideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.nav-send-button:hover p span {
  opacity: 1;
  animation: navWave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.nav-send-button .state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #212741;
}
.nav-send-button .state .icon svg {
  overflow: visible;
  width: 18px;
  height: 18px;
}
.nav-send-button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.1);
}

.nav-send-button .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.nav-send-button .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 180deg, transparent 60%, white 80%, transparent 100%);
  animation: navSpin 2s linear infinite;
  animation-play-state: paused;
}
.nav-send-button:hover .outline { opacity: 1; }
.nav-send-button:hover .outline::before { animation-play-state: running; }

.nav-send-button .state--default .icon svg { animation: navLand 0.6s ease forwards; }
.nav-send-button .state--default .icon::before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}

@keyframes navSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes navWave {
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); color: var(--primary); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}
@keyframes navSlideDown {
  0% { opacity: 0; transform: translateY(-20px) translateX(5px) rotate(-90deg); color: var(--primary); filter: blur(5px); }
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); filter: blur(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}
@keyframes navLand {
  0% { transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2); opacity: 0; filter: blur(3px); }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; filter: blur(0); }
}

.header-area .main-nav .nav li { vertical-align: middle; }
.header-area .main-nav .nav li .nav-send-button { margin: 0; }
