/* ============================================================
   FanCloud 导航栏：小圆角（近直角）
   原 45° 切角已停用。nav 滚动后会获得 rounded-2xl（--radius × 1.8
   = 28.8px 胶囊），这里统一压成 6px 小圆角；轮廓仍由双层伪元素绘制，
   保持原有的半透明底色、毛玻璃与 1px 描边。
   ============================================================ */

/* 1）清空 nav 自身的圆角背景、毛玻璃、ring，改由伪元素绘制小圆角外形 */
header nav[class*="rounded-2xl"] {
  --fc-radius: 6px;        /* 圆角半径：看着接近直角，但仍有轻微弧度 */
  --fc-bg: 70%;            /* 填充不透明度 */
  --fc-edge: 55%;          /* 边缘不透明度 */

  border-radius: var(--fc-radius) !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;

  position: relative;
  isolation: isolate;      /* 让负 z-index 伪元素停留在 nav 内部 */
}

/* 2）两层叠加：外层画边线，内层画毛玻璃填充并内缩 1px 形成边框 */
header nav[class*="rounded-2xl"]::before,
header nav[class*="rounded-2xl"]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: var(--fc-radius);
}

/* 外框：整块填充为边线色，被内层遮住后只露出 1px 轮廓 */
header nav[class*="rounded-2xl"]::before {
  inset: 0;
  z-index: -2;
  background: color-mix(in srgb, var(--border) var(--fc-edge), transparent);
}

/* 内层：真实底色 + 背景模糊，内缩 1px，圆角同步减 1px */
header nav[class*="rounded-2xl"]::after {
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--fc-radius) - 1px);
  background: color-mix(in srgb, var(--background) var(--fc-bg), transparent);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

/* ------------------------------------------------------------
   首页板块隐藏（备用通道，与 Nginx sub_filter 注入互为兜底）
   隐藏「核心功能（为开发者打造，为规模而设计）」与
   「工作流程（三步快速上手）」两个 section。
   只用属性选择器，避免 Tailwind 的 md:py-32 冒号转义。
   仅首页存在这些 class 组合，其他路由与 /pricing 不受影响。
   ------------------------------------------------------------ */
section[class~="relative"][class~="px-6"][class~="py-24"]:not([class~="border-t"]):not([class~="overflow-hidden"]),
section[class~="border-t"][class~="py-24"] {
  display: none !important;
}
