/* ==========================================================================
   Verlux Global Luxury UI System — Dynamic Island, Command+K & GPU Spotlight
   ========================================================================== */

/* 1. 全站子页面统一悬浮毛玻璃灵动岛导航栏 (与首页 100% 家族同源) */
.vlx-gnav-spacer {
  height: 78px;
}
body.vlx-dark-hero-top .vlx-gnav-spacer {
  display: none;
}

.vlx-gnav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 950;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.vlx-gnav-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 1240px;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.84);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, height 0.25s ease;
}

.vlx-gnav-wrap.scrolled .vlx-gnav-bar {
  max-width: 1080px;
  height: 52px;
  background: rgba(8, 10, 15, 0.94);
  border-color: rgba(235, 100, 42, 0.28);
}

.vlx-gn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.vlx-gn-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vlx-gn-links a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 244, 246, 0.76) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.vlx-gn-links a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
}
.vlx-gn-links a.active {
  color: #ffffff !important;
  background: rgba(235, 100, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(235, 100, 42, 0.42);
  font-weight: 600;
}

.vlx-gn-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vlx-cmdk-trigger {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.vlx-cmdk-trigger:hover {
  border-color: #eb642a;
  color: #ffffff;
  background: rgba(235, 100, 42, 0.12);
}
.vlx-cmdk-kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f4f6;
}

.vlx-gn-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.vlx-gn-btn.ghost {
  color: #e4e4e7 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.vlx-gn-btn.ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff !important; }
.vlx-gn-btn.flame {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff7a3d 0%, #eb642a 100%);
  box-shadow: 0 4px 16px rgba(235, 100, 42, 0.34);
}
.vlx-gn-btn.flame:hover { transform: translateY(-1px); filter: brightness(1.06); }

@media (max-width: 980px) {
  .vlx-gn-links { display: none; }
}

/* ==========================================================================
   2. 全站 Linear / Raycast 级全局命令面板 (Ctrl+K / ⌘K Command Palette)
   ========================================================================== */
#vlxCmdkMask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 16px 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
#vlxCmdkMask.open {
  display: flex;
  animation: vlxCmdFade 0.15s ease;
}
@keyframes vlxCmdFade { from { opacity: 0; } to { opacity: 1; } }

.vlx-cmdk-box {
  width: 100%;
  max-width: 620px;
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(235, 100, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
  color: #f4f4f6;
}

.vlx-cmdk-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  height: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: #121620;
}
.vlx-cmdk-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14.5px;
}
.vlx-cmdk-esc {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  cursor: pointer;
}

.vlx-cmdk-list {
  max-height: 390px;
  overflow-y: auto;
  padding: 8px;
}

.vlx-cmdk-sec {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717a;
  padding: 8px 10px 4px;
  text-transform: uppercase;
}

.vlx-cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.vlx-cmdk-item:hover,
.vlx-cmdk-item.active {
  background: rgba(235, 100, 42, 0.15);
}
.vlx-ci-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vlx-ci-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.vlx-ci-title {
  font-size: 13.2px;
  font-weight: 600;
  color: #f4f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vlx-ci-sub {
  font-size: 11.5px;
  color: #8e96a8;
}
.vlx-ci-right {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: #ffb38a;
  white-space: nowrap;
  flex-shrink: 0;
}

.vlx-cmdk-foot {
  padding: 9px 16px;
  background: #0a0c12;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #71717a;
}

/* ==========================================================================
   3. Linear / Stripe 同款 GPU 鼠标跟随聚光灯边框折射 & 渐进揭幕
   ========================================================================== */
.vlx-spot {
  position: relative;
  overflow: hidden;
}
.vlx-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    360px circle at var(--vlx-mx, 50%) var(--vlx-my, 50%),
    rgba(235, 100, 42, 0.14),
    transparent 65%
  );
}
.vlx-spot:hover::after {
  opacity: 1;
}

.vlx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.vlx-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 全局轻提示 */
#vlxGlobalToast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 10000;
  padding: 9px 18px;
  border-radius: 999px;
  background: #11141d;
  color: #ffffff;
  border: 1px solid rgba(235, 100, 42, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  font-family: "JetBrains Mono", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
#vlxGlobalToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
