/* FancyTeams 首页 — 与详情页样式对齐 */

/* 根滚动容器关掉 scroll anchoring（详见 .ft-page 上的注释） */
html{
  overflow-anchor: none;
}

.ft-page{
  background: #ffffff;
  min-height: 100vh;
  /* 关掉 Chrome 的 scroll anchoring。
     筛选区吸顶时 padding 有过渡动画，section 高度在变；浏览器为了"视觉稳定"
     会自动微调 scrollY，结果反而把吸顶哨兵抖回视口，导致 is-stuck 在加/去
     之间反复跳。关掉它就稳定了。 */
  overflow-anchor: none;
}

.ft-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #ececef;
}
.ft-header-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ft-brand{
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-right: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  letter-spacing: -0.005em;
}
.ft-brand-mark{ font-size: 22px; line-height: 1; }
.ft-brand-name{ font-size: 16px; color: #1d1d1f; font-weight: 500; }
.ft-brand-sub{
  font-size: 14px;
  color: #86868b;
  font-weight: 400;
  display: none;
}
@media (min-width: 768px) {
  .ft-brand-sub{ display: inline; }
}
.ft-submit{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.ft-submit:hover{ opacity: .85; }
.ft-submit:active{ transform: scale(.96); }

/* hero 装饰入场动画（4 个 emoji + 手写体 V1.0）。
   - 用独立的 scale / translate 属性，不用 transform: scale()/translate() —— 因为
     每个 emoji 已经有 transform: rotate(...) 设位姿，再写 transform 会覆盖掉。
   - bezier(0.34, 1.56, 0.64, 1) 是 back-out：第二控点 y=1.56 自然产生 ~10% 过冲，
     就是 "弹" 的那个手感（不需要在 keyframes 里写 1.1 中间帧）。
   - 初始隐藏状态写在静态规则上 → SSR 渲染时元素就是隐藏的，避免 FOUC（hydrate
     前先看到完整再消失）。
   - .ft-hero.is-in-view 由 IntersectionObserver 在 hero 进视口时一次性加上。 */
@keyframes ft-hero-deco-in {
  from { opacity: 0; scale: 0.3; translate: 0 8px; }
  to   { opacity: 1; scale: 1;   translate: 0 0;   }
}
.ft-hero-deco,
.ft-hero-deco--v1 {
  opacity: 0;
  scale: 0.3;
  translate: 0 8px;
  transform-origin: center center;
}
.ft-hero.is-in-view .ft-hero-deco,
.ft-hero.is-in-view .ft-hero-deco--v1 {
  animation: ft-hero-deco-in 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* 错峰 100ms：顺时针 cool(↖) → map(↗) → pumpkin(↘) → earth(↙)，V1.0 压轴 */
.ft-hero.is-in-view .ft-hero-deco--cool    { animation-delay: 0ms; }
.ft-hero.is-in-view .ft-hero-deco--map     { animation-delay: 100ms; }
.ft-hero.is-in-view .ft-hero-deco--pumpkin { animation-delay: 200ms; }
.ft-hero.is-in-view .ft-hero-deco--earth   { animation-delay: 300ms; }
.ft-hero.is-in-view .ft-hero-deco--v1      { animation-delay: 420ms; }
/* 偏好减少动效：跳过整段，元素直接落位可见 */
@media (prefers-reduced-motion: reduce) {
  .ft-hero-deco,
  .ft-hero-deco--v1 {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    animation: none;
  }
}

/* hero */
.ft-main{
  padding-top: 56px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hero 上的装饰 emoji 用负 left/right 戳出 hero box，
     窄屏时会触发水平滚动，这里裁掉。clip 比 hidden 干净，不影响 fixed 子元素。 */
  overflow-x: clip;
}
.ft-hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  max-width: 720px;
  text-align: center;
  position: relative;
}
.ft-hero-deco{
  position: absolute;
  font-size: 30px;
  line-height: 1;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "PingFang SC", system-ui, sans-serif;
  transition: transform .25s cubic-bezier(.2, 0, 0, 1);
}
.ft-hero-deco--cool    { top: -52px; left:  -30px; transform: rotate(-22.4deg); }
.ft-hero-deco--earth   { top:  99px; left:  -50px; transform: rotate(4.6deg); }
.ft-hero-deco--map     { top: -52px; right: -60px; transform: rotate(23.1deg); }
.ft-hero-deco--pumpkin { top:  74px; right: -80px; transform: rotate(22.1deg); }
/* hover: 各自保留原 rotate，叠加 scale。
   不能简单写 .ft-hero-deco:hover { transform: scale(...) } —— 会覆盖掉 rotate。 */
.ft-hero-deco--cool:hover    { transform: rotate(-22.4deg) scale(1.25); }
.ft-hero-deco--earth:hover   { transform: rotate(4.6deg)   scale(1.25); }
.ft-hero-deco--map:hover     { transform: rotate(23.1deg)  scale(1.25); }
.ft-hero-deco--pumpkin:hover { transform: rotate(22.1deg)  scale(1.25); }
/* V1.0 是 .ft-hero-title 的子元素 —— 锚到 title 文字的右上角，
   不再依赖 hero 宽度或具体标题内容。改标题文字 / 字号都不用动它。 */
.ft-hero-deco--v1{
  position: absolute;
  left: 100%;
  bottom: 100%;
  margin-left: 11px;
  margin-bottom: -9px;
  pointer-events: none;
  user-select: none;
  font-family: "Hannotate SC", "Snell Roundhand", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  color: #df645a;
  transform: rotate(-8.25deg);
  transform-origin: left bottom;
  white-space: nowrap;
}
/* 中等屏（侧栏 + hero 接近 720px content area 时）：装饰收一收，
   字号缩小，避免 🎃/🗺️ 顶到内容右边缘，V1.0 也跟着标题位置收回。 */
@media (max-width: 1024px){
  .ft-hero-deco{ font-size: 24px; }
  .ft-hero-deco--cool    { top: -48px; left:  -10px; }
  .ft-hero-deco--earth   { top:  86px; left:  -16px; }
  .ft-hero-deco--map     { top: -48px; right: -16px; }
  .ft-hero-deco--pumpkin { top:  64px; right: -24px; }
  .ft-hero-deco--v1{ font-size: 19px; }
}
/* 手机：4 个 emoji 装饰直接隐藏（标题前用 🗺️ 替代），只保留 V1.0 手写体。
   注：filter-row 的手机布局规则（seg 左 / pill 右 / 分隔线隐藏）必须放在
   .ft-filter-sep 基础规则之后（同 specificity 源码顺序赢），见文件末尾 ≤720 块。 */
@media (max-width: 720px){
  .ft-hero-deco{ display: none; }
  .ft-hero-deco--v1{
    font-size: 21px;
    margin-left: 6px;
    margin-bottom: -6px;
  }
}
.ft-hero-eyebrow{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #86868b;
  margin: 0;
  text-transform: uppercase;
}
.ft-hero-title{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  margin: 0;
  /* V1.0 装饰锚在右上角，需要 title 自己作为定位上下文 */
  position: relative;
}
.ft-hero-tag{
  font-size: 16px;
  line-height: 1.5;
  color: #86868b;
  font-weight: 400;
  margin: 0;
}

/* 文案随视口切换：移动端长文案截断成短版。两个 span 同时挂 JSX，CSS 控显隐。
   !important 是必要的：utility 类要能覆盖任意组件 display（比如 .ft-promo-banner
   设的 inline-flex，不加 !important 会因源码顺序赢过这条规则）。 */
.is-mobile-only{ display: none !important; }
@media (max-width: 720px){
  .is-desktop-only{ display: none !important; }
  .is-mobile-only{ display: inline !important; }
}

/* grid — 整体瀑布流
   - 卡片按 index % columnCount 分到 N 个独立 .ft-grid-col 里，列内 cards 按内容高度
     自然堆叠，列之间不强制行对齐。
   - 严格保序：卡片 N 永远落在列 ((N-1) % columnCount) 的固定位置 —— 后台调顺序前端
     视觉位置可预测。
   - 列数由 JS 根据视口决定（getColumnCount），CSS 这里只管容器宽度 / 边距。
     断点 1312 / 720 与 JS 保持同步。 */
.ft-grid{
  margin: 48px auto 0;
  width: 100%;
  max-width: 1075px;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  /* 默认 visible，is-pre-measured 时 opacity:0 隐藏直到客户端测完视口 */
  opacity: 1;
  transition: opacity .15s ease;
}
/* 客户端测量真实视口前 grid 保持透明，避免用户看到 SSR 默认 1 列 →
   hydrate 后 desktop 改成 2/3 列的可见 reflow。详见 HomePage.jsx 里 measured 状态。 */
.ft-grid.is-pre-measured{ opacity: 0; }
.ft-grid-col{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ft-grid-col > .ft-card{
  /* 覆盖 team.css 里 .t4 的 height:100%（详情页全屏铺满需要，列表卡片按内容高度）。 */
  height: auto;
}

@media (max-width: 720px){
  /* 移动端顶边距砍半（64 → 32），padding 改用 vw —— 容器宽度自适应。 */
  .ft-grid{ padding: 0 6.5vw; margin-top: 32px; }
  /* 移动端 title 字号 = 5% 视口宽（5vw） */
  .ft-hero-title{ font-size: min(7.5vw, 39px); }
  /* 注意：.ft-filter-pill 的移动端尺寸规则放在文件末尾的 pill 基础规则之后，
     避免被后续基础规则（line ~886 的 height:48 等）覆盖。 */
}

/* card — 整卡白底 + Airbnb 风阴影做分割
   hover 效果复用详情页 .t4-topcard：柔和阴影分层 + 轻微抬升 */
.ft-card{
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 32px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 44px -10px rgba(0, 0, 0, 0.10);
  transition:
    box-shadow .2s cubic-bezier(.2,0,0,1),
    transform .15s cubic-bezier(.2,0,0,1);
}
/* 覆盖式 anchor —— 整张卡可点，但不嵌套 social <a>。
   爬虫能拿到 /team/<slug> 的真 href，social 链接通过 z-index 浮在上面。 */
.ft-card-cover{
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.ft-card-cover:focus-visible{
  outline: 2px solid #007aff;
  outline-offset: -2px;
}
.ft-card-foot a,
.ft-card-foot .t4-brief-soc,
.ft-card-foot .t4-brief-soc *{
  position: relative;
  z-index: 2;
}
.ft-card:hover{
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 22px 56px -10px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

/* card body — 上半部 */
.ft-card-body{
  padding: 24px 22px 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-card-head{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-card-head-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ft-card-logo{
  width: 48px;
  height: 48px;
  /* object-fit: cover 让 logo 完全填充容器、视觉无缝隙（SVG 自带的透明边距也会
     被等比放大到溢出，效果上看 logo 主体顶到容器边缘）。代价：宽 / 字标 logo
     会被裁掉左右两端。border-radius 12 软圆角；inset box-shadow 描出容器边界。 */
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 0.5px #EFEFEF;
}
.ft-card-id{ min-width: 0; }
.ft-card-open{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #86868b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
/* 取消进入图标的 hover 反馈 */
.ft-card:hover .ft-card-open{
  background: #f5f5f7;
  color: #86868b;
}
.ft-card:hover .ft-card-open svg{
  transform: none;
}
.ft-card-open svg{
  transition: transform .2s ease;
}
.ft-card-name{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  line-height: 1.3;
}
.ft-card-tag{
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
  color: #86868b;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* chips: 复用 .t4-chip 但稍小 */
.ft-card-chiprow{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ft-card-chiprow .t4-chip{
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}
.ft-card-chiprow .ft-chip-link{
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.ft-card-chiprow .ft-chip-link:hover{
  background: #f5f5f7;
  border-color: #d2d2d7;
}
.ft-card-chiprow .ft-chip-link svg{
  color: #86868b;
}

/* card news 区 — 下半部（保持白色，无色块） */
.ft-card-news{
  padding: 16px 22px 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ft-card-news{ gap: 16px; padding: 16px 22px 22px; }
.ft-card-news .t4-brief-news{
  gap: 10px;
}
.ft-card-news .t4-brief-news-link:hover{ opacity: 1; }
.ft-card-news .t4-brief-news-link:hover .arr{ transform: none; }
.ft-card-news .t4-brief-news-link{
  grid-template-columns: auto 1fr;
  font-size: 13px;
  column-gap: 10px;
}
.ft-card-news .t4-brief-news-row .src{ font-size: 13px; }
.ft-card-news .t4-brief-news-row .t{ font-size: 13px; }

.ft-card-foot{
  margin-top: 4px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 头像更小、圆形 */
.ft-card-foot .t4-brief-av{
  width: 28px !important;
  height: 28px !important;
  box-shadow: inset 0 0 0 0.5px #EFEFEF;
}
.ft-card-foot .t4-brief-pmeta .nm{ font-size: 13px; }
.ft-card-foot .t4-brief-pmeta .rl{ font-size: 11.5px; }

/* 社交图标：复用详情页 .t4-brief-soc 但移除背景色（图标 svg 自带颜色）
   主页不再添加 hover/rotation 反馈，点击直接进入详情 */
.ft-card-foot .t4-brief-soc > *{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: none;
  transform-origin: center;
  background: transparent;
  border: 0;
  transition: none;
  box-shadow: none;
}
.ft-card-foot .t4-brief-soc > *:hover,
.ft-card-foot .t4-brief-soc > *:active,
.ft-card-foot:hover .t4-brief-soc > *,
.ft-card:hover .t4-brief-soc > *,
.ft-card-foot .t4-brief-person:hover .t4-brief-soc > *,
.ft-card-foot .t4-brief-person:hover .t4-brief-soc > *:hover{
  transform: none;
  box-shadow: none;
}
.ft-card-foot .t4-brief-soc > * img{
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
}

/* ============================================================
   SEARCH + FILTERS
   ============================================================ */
/* 吸顶判定用的零高度哨兵：紧贴在 .ft-search-section 之前。
   IntersectionObserver 监听它进出视口 → 决定 is-stuck，跟元素自身尺寸完全解耦。
   margin-top 接管了 section 原来的 32px 上间距，这样哨兵的底边正好落在
   section 的"自然顶部"上：当哨兵刚滚出视口顶时，section 也刚好开始吸顶，
   class 切换不会比真正吸顶提前。 */
.ft-search-sentinel{
  width: 1px;
  height: 0;
  margin: 32px 0 0;
  padding: 0;
  pointer-events: none;
}
/* 移动端 hero ↔ 筛选区间距砍半（32 → 16） */
@media (max-width: 720px){
  .ft-search-sentinel{ margin-top: 16px; }
}
.ft-search-section{
  width: 100%;
  max-width: 720px;
  padding: 12px 24px;
  /* margin-top 已经搬到 .ft-search-sentinel；section 自身从哨兵正下方开始 */
  /* 也排除自己作为 scroll anchor 候选，多一层保险 */
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 吸顶：滚动到顶部时停留 */
  position: sticky;
  top: 0;
  z-index: 20;
  align-self: center;
  transition:
    padding .32s cubic-bezier(.22,1,.36,1),
    box-shadow .2s ease;
}
/* 用 ::before 铺一层全宽毛玻璃背景，避免改变 sticky 元素自身宽度引起跳动。
   z-index 0：留在 section 的 z-index 20 stacking context 平面里、靠源码顺序
   走在 filter row 后面（::before 源码先 → 视觉在下）。原来的 -1 会把 ::before
   推到 section 平面之下，某些祖先的 overflow / stacking 设定可能把它整层裁掉
   或盖住，反而看不见。pointer-events: none 已经禁掉点击，不需要 -1 来避让。 */
.ft-search-section::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  margin-left: -50vw;
  width: 100vw;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  /* bg 常驻 opacity 1：原本依赖 .is-stuck 切换淡入淡出，但 IntersectionObserver
     在某些状态下不触发 is-stuck（已通过 DevTools 排查到 isStuck=false 但 sentinel
     早就滚出视口）。改成常驻：自然态时 bg 落在白色页面之上不可见，吸顶时盖住
     滚动内容形成毛玻璃效果，视觉上跟之前一致，不再依赖 JS 状态。 */
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
/* 吸顶后：仅压缩 padding，不改变宽度 */
.ft-search-section.is-stuck{
  padding: 10px 24px;
}
.ft-search-section::after{
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  bottom: 0;
  height: 1px;
  background: rgba(0,0,0,0.06);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.ft-search-section.is-stuck::after{ opacity: 1; }

/* 行内 pills：吸顶后整行收紧 */
.ft-search-section .ft-filter-row{
  position: relative;
  z-index: 1;
  transition: gap .32s cubic-bezier(.22,1,.36,1);
}
.ft-search-section.is-stuck .ft-filter-row{
  gap: 20px;
  /* 20 - 10 (.ft-filter-pill+pill margin) = 10，pill-pill 维持 10 不变 */
}

/* 单个 pill：吸顶后高度/宽度/字号同步缩小 */
.ft-filter-pill{
  transition:
    width .32s cubic-bezier(.22,1,.36,1),
    height .32s cubic-bezier(.22,1,.36,1),
    padding .32s cubic-bezier(.22,1,.36,1),
    border-radius .32s cubic-bezier(.22,1,.36,1),
    font-size .32s cubic-bezier(.22,1,.36,1),
    border-color .15s ease,
    color .15s ease,
    transform .1s ease,
    box-shadow .2s ease;
}
.ft-search-section.is-stuck .ft-filter-pill{
  width: auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ft-search-section.is-stuck .ft-filter-pill > span:first-child{
  font-size: 13px !important;
}
.ft-search-section.is-stuck .ft-filter-caret{
  width: 9px; height: 9px;
}
.ft-search-box{
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6e6e8;
  box-shadow: 0 6px 16px 0 var(--ft-shadow, rgba(0,0,0,0.07));
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ft-search-box:hover{
  border-color: #d2d2d7;
  box-shadow: 0 10px 24px 0 var(--ft-shadow-hover, rgba(0,0,0,0.11));
}
.ft-search-box:focus-within{
  background: #ffffff;
  border-color: #1d1d1f;
  box-shadow: 0 4px 14px 0 var(--ft-shadow, rgba(0,0,0,0.08));
}
.ft-search-icon{
  color: #86868b;
  flex-shrink: 0;
}
.ft-search-input{
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: #1d1d1f;
  letter-spacing: -0.005em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
}
.ft-search-input::placeholder{
  color: #86868b;
}
.ft-search-clear{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(0,0,0,0.06);
  color: #1d1d1f;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease;
}
.ft-search-clear:hover{ background: rgba(0,0,0,0.12); }

/* 顶部促销 banner —— 灰底圆角 + 文案，整块可点击 */
.ft-promo-banner{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 14px 20px;
  margin: 0 auto 40px;
  background: #f7f7f7;
  border-radius: 999px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
}
.ft-promo-banner:hover{ background: #efefef; }
.ft-promo-banner:hover .ft-promo-banner__arr{ transform: translateX(3px); }
.ft-promo-banner__arr{
  color: #86868b;
  font-size: 14px;
  transition: transform .15s ease;
}

.ft-promo-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto 65px;
  flex-wrap: wrap;
}
/* 移动端 promo 下边距砍半 + 两个 banner 垂直堆叠。
   注意要放在 .ft-promo-row 基础规则之后，否则会被 shorthand margin: 0 auto 65px
   重新盖掉（同优先级下 CSS 后定义的赢）。 */
@media (max-width: 720px){
  .ft-promo-row{
    flex-direction: column;
    margin-bottom: 32px;
  }
}
.ft-promo-row .ft-promo-banner{ margin: 0; }

.ft-promo-banner.ft-promo-banner--alt{
  background: #fff;
  border: 0.5px solid #ddd;
  color: #1d67f1;
  font-weight: 500;
}
.ft-promo-banner.ft-promo-banner--alt:hover{ background: #f7f7f7; }

/* ============================================================
   团队 / 岗位 segmented switch (iOS 风)
   ============================================================
   两段式：未激活段透明 + ink-3 文字；激活段白底 + shadow-1 + ink-1 文字。
   外壳是 bg-soft (#f5f5f5) 的 pill 容器，内部各段 999 圆角。
   作为 .ft-filter-row 的 flex 子项，跟其它 filter pill 同行；定位 / 间距
   由 .ft-filter-row 的 justify-content + gap 控制，自身不再加 margin。 */
.ft-seg{
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: #f5f5f5;
  border-radius: 999px;
}
.ft-seg-item{
  appearance: none; -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 与 .ft-filter-pill (height 44) 同高对齐：item 38 + 容器 padding 3*2 = 44 */
  height: 38px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: #86868b;              /* ink-3 */
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background .18s cubic-bezier(.2,0,0,1),
    color .18s ease,
    box-shadow .2s ease;
}
.ft-seg-item:hover{ color: #1d1d1f; }
.ft-seg-item.is-active{
  background: #ffffff;          /* bg */
  color: #1d1d1f;               /* ink-1 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);   /* shadow-1 */
}
.ft-seg-item.is-active:hover{ color: #1d1d1f; }

/* 分隔线：把 segmented switch 与右侧 filter pill 分组开。
   高度独立于 pill 高度走 28（窄屏 22），不撑满整行避免视觉过重；align-self
   center 让线在 pill / switcher 之间垂直居中。 */
.ft-filter-sep{
  display: inline-block;
  width: 1px;
  height: 28px;
  background: #ececef;           /* line-1 */
  align-self: center;
  flex-shrink: 0;
}
.ft-promo-banner__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  font-size: 15px;
  line-height: 1;
}
button.ft-promo-banner{
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

/* 加入找工互助群 — 二维码弹窗
   复用 .tp-root（遮罩 + tpFadeIn）和 .tp-modal（卡片 + tpRise）的出场动画。
   选择器写成双类 (.tp-root.qr-modal-root / .tp-modal.qr-modal) 把特异性升到
   0,2,0 — track-picker.css 在 home.css 之后加载，等特异性下 .tp-root /
   .tp-modal 会反向覆盖，必须靠特异性赢。只影响带 qr-modal 修饰类的实例，
   TrackPicker 那两个弹窗不受影响。 */
.tp-root.qr-modal-root{
  align-items: center;
  padding: 24px;
}
.tp-modal.qr-modal{
  max-width: 400px;
  padding: 32px 24px 24px;
  position: relative;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.qr-modal-close{
  position: absolute;
  top: 12px; right: 12px;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #86868b;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.qr-modal-close:hover{ background: #f5f5f7; color: #1d1d1f; }
.qr-modal-title{
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}
.qr-modal-sub{
  margin: 0;
  font-size: 13px;
  color: #86868b;
}
.qr-modal-img{
  position: relative;
  width: 300px;
  /* QR 卡片图是竖长方形（约 1222 × 1793，≈ 2:3），用 aspect-ratio 跟原图比例对齐，
     img 用 object-fit: contain 满铺没有黑边。换成方形 QR 时把比例改回 1/1 即可。 */
  aspect-ratio: 1222 / 1793;
  background: #f5f5f7;
  border-radius: 12px;
  overflow: hidden;
}
.qr-modal-img-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 13px;
}
.qr-modal-img img{
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* 复制投递邮箱弹窗 —— 复用 .qr-modal 的卡片外壳。邮箱地址等宽字体、
   user-select: all 让用户单击就能选中全段直接复制。 */
.email-modal-body{
  width: 100%;
  max-width: 320px;
}
.email-modal-addr{
  display: block;
  padding: 12px 14px;
  background: #f5f5f7;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: #1d1d1f;
  user-select: all;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-filter-row{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  /* 左右 4 的 padding：在正常 / 吸顶状态下都保留，给行内元素一点喘息边距 */
  padding: 0 4px;
}
/* 相邻 filter pill 之间用负 margin 把 row gap 抵回 14：
   24 (row) - 10 (margin) = 14，跟原始 pill-pill 间距一致；
   PageSwitcher / 分隔线两侧的 24 完整保留。 */
.ft-filter-pill + .ft-filter-pill{ margin-left: -10px; }

/* 方向 pill 选中后：白底深字 + 行内 × 清除按钮（替代 caret） */
.ft-filter-pill.has-value{
  background: #ffffff;
  color: #1d1d1f;
  border-color: #1d1d1f;
}
/* 选中态 hover 不变成黑色，保持白底；仅边框做极轻反馈 */
.ft-filter-pill.has-value:hover{
  background: #ffffff;
  color: #1d1d1f;
  border-color: #1d1d1f;
}
.ft-filter-clear{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  color: #1d1d1f;
  margin-left: 2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ft-filter-clear:hover{
  background: #1d1d1f;
  color: #ffffff;
}
.ft-filter-pill.has-value .ft-filter-caret{ display: none; }

/* 标签：name + 可选 "+N" 计数；超长 name 用省略号收尾，"+N" 永不被裁掉 */
.ft-filter-label{
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
}
.ft-filter-label-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ft-filter-label-extra{
  flex: 0 0 auto;
  white-space: nowrap;
}
/* label-default：分类默认名（"方向"/"地区"/"经验"…），始终渲染在 DOM 里。
   - 桌面端：未选中时显示（充当 placeholder）；选中后由下条规则隐藏，让 name 出场
   - 移动端 (≤900)：永远显示，并在 has-value 时加粗，作为"已选"指示器 */
.ft-filter-pill.has-value .ft-filter-label-default{ display: none; }

.ft-filter-pill{
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 144px;
  height: 44px;
  padding: 0 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dddddd;
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1f;
  letter-spacing: -0.005em;
  box-shadow: none;
  transition: border-color .15s ease, color .15s ease, transform .1s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
}
.ft-filter-pill:hover{
  border-color: #1d1d1f;
}
.ft-filter-pill.is-active{
  background: #ffffff;
  color: #1d1d1f;
  border-color: #1d1d1f;
  box-shadow: none;
}
.ft-filter-caret{
  color: #86868b;
  margin-left: 2px;
  transition: transform .18s ease, color .15s ease;
}
.ft-filter-pill.is-active .ft-filter-caret{
  color: #1d1d1f;
  transform: rotate(180deg);
}

/* —— 窄屏 (≤ 900)：pill + 外层 search section 直接落到吸顶后的尺寸 ——
   必须放在 .ft-filter-pill 基础规则之后，否则会被基础规则的 height:48 / width:160
   等覆盖（同 specificity，源码顺序决定胜负）。
   断点用 900 而不是 720：sidebar 264px 在 ≥900 视口仍然占位，内容区被挤到
   636 以下，big pill (3×160=480 + 28gap = 508 + section padding ~48 ≈ 556) 已经
   贴边甚至溢出 → 跟 sidebar 折叠同一个断点切换才视觉一致。
   max-width 走 40vw 也保证 4 个 pill 在最窄屏不会撑爆。 */
@media (max-width: 900px){
  /* 外层 section：padding 12 → 10 / gap 16 → 10，与 is-stuck 对齐，整体更紧凑 */
  .ft-search-section{
    padding: 10px 24px;
    gap: 10px;
  }
  .ft-filter-pill{
    max-width: 40vw;
    width: auto;
    min-width: 0;
    height: 38px;
    /* 移动端去掉 pill 的 padding / border / shadow / background，就是纯文本入口（label + caret） */
    padding: 0;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: none;
    background: transparent;
    /* label 与 caret 之间间距减半（base 10 → 5），让文本入口更紧凑 */
    gap: 5px;
    /* flex-shrink 0：宽度不够时不允许压缩到文字截断 / 换行，宁可整体右溢被
       .ft-main overflow-x: clip 裁掉 */
    flex-shrink: 0;
  }
  /* Sticky 状态下 pill 也要保持 "纯文本入口" 形态 ——
     基础 .ft-search-section.is-stuck .ft-filter-pill 规则 specificity (0,3,0) 高
     过单纯 .ft-filter-pill，会把 padding / shadow / border 顶回来，这里用同
     specificity 的复合选择器（at ≤900）覆盖回去。background 也要重置。 */
  .ft-search-section.is-stuck .ft-filter-pill{
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  /* seg 同样不允许被挤压：宽度不够时整体溢出 / 隐藏，而不是文字竖排 */
  .ft-seg{ flex-shrink: 0; }
  .ft-seg-item{ white-space: nowrap; }

  /* —— 移动端 pill 文本策略：永远显示默认分类名，has-value 时加粗 ——
     桌面端有 has-value 时显示选中值（"上海"/"AI Agent"），移动端窄屏放不下，
     干脆只显示默认分类名 ("方向"/"地区"…)，加粗表达"已选"状态。
     1. label-name / extra（具体选中值 + 计数）整体隐藏
     2. has-value 状态下覆盖桌面的 .ft-filter-label-default { display: none }，
        保持 default 可见 + 加粗 */
  .ft-filter-label-name,
  .ft-filter-label-extra{ display: none; }
  .ft-filter-pill.has-value .ft-filter-label-default{
    display: inline;
    font-weight: 600;
  }
  .ft-filter-pill > span:first-child{ font-size: 13px; }
  .ft-filter-caret{ width: 9px; height: 9px; }
  /* 20 - 10 (.ft-filter-pill+pill margin) = 10，跟原窄屏 pill-pill 间距一致 */
  .ft-filter-row{ gap: 20px; }
  /* segmented switch 跟 pill 同步缩：pill 窄屏 38px → item 32 + 容器 padding 3*2 = 38 */
  .ft-seg-item{ height: 32px; padding: 0 16px; font-size: 13px; }
  /* 窄屏 pill 收到 38px，分隔线相应缩到 22 */
  .ft-filter-sep{ height: 22px; }
}

/* —— 手机 (≤ 720) filter-row 布局：seg 靠左 / pill 组靠右 / 分隔线隐藏 ——
   原本 justify-content: center 在窄屏放不下所有元素时会奇怪换行。
   用 flex auto-margin：紧跟分隔线的 pill 加 margin-left: auto 吸掉中间空间，
   pill 组被推到行尾；PageSwitcher 留在行首。
   位置约束：必须放在 .ft-filter-sep 基础规则之后 —— 同 specificity 源码顺序
   决胜，否则 display:none 会被基础规则的 display:inline-block 顶回去。
   flex-wrap: nowrap 强制一行：宽度刚好不够时不允许"经验"挤到第二行，
   由 pill 自身 flex-shrink 收缩（pill 内容是 label + caret 文本，可压缩）。 */
@media (max-width: 720px){
  .ft-filter-row{ flex-wrap: nowrap; }
  .ft-filter-sep{ display: none; }
  .ft-filter-sep + .ft-filter-pill{ margin-left: auto; }
}

/* 让 search 区紧贴 hero（去掉 track 的额外上间距，避免重复留白） */
.ft-search-section + .ft-track-section{
  margin-top: 32px;
}

/* ============================================================
   TRACK section — 赛道分块器
   ============================================================ */
.ft-track-section{
  width: 100%;
  max-width: 1075px;
  padding: 0 24px;
  margin-top: 64px;
}
.ft-track-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
}
.ft-track-head-left{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ft-track-eyebrow{
  font-family: -apple-system, BlinkMacSystemFont, "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #86868b;
  font-weight: 500;
}
.ft-track-title{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  margin: 0;
}
.ft-track-sub{
  flex: 0 1 380px;
  font-size: 13px;
  line-height: 1.6;
  color: #86868b;
  font-weight: 400;
  margin: 0 0 4px;
  text-align: right;
}
@media (max-width: 720px){
  .ft-track-head{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .ft-track-sub{ text-align: left; flex: 1 1 auto; }
  .ft-track-title{ font-size: 26px; }
}

/* grid: 4–6 列自适应；卡片更小 */
.ft-track-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
@media (min-width: 880px){
  .ft-track-grid{ grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1080px){
  .ft-track-grid{ grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 520px){
  .ft-track-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 单卡：白底 + 阴影做分块；与团队卡相同的圆角 + 阴影变量 */
.ft-track-card{
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  border: 0;
  border-radius: 20px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  box-shadow:
    0 1px 2px 0 var(--ft-shadow, rgba(0,0,0,0.06)),
    0 6px 16px 0 var(--ft-shadow, rgba(0,0,0,0.07));
  transition: box-shadow .25s ease, transform .25s ease;
  position: relative;
}
.ft-track-card:hover{
  box-shadow:
    0 1px 2px 0 var(--ft-shadow, rgba(0,0,0,0.06)),
    0 12px 24px 0 var(--ft-shadow-hover, rgba(0,0,0,0.12));
  transform: translateY(-2px);
}
.ft-track-card.is-active{
  box-shadow:
    0 0 0 1.5px #1d1d1f,
    0 12px 24px 0 var(--ft-shadow-hover, rgba(0,0,0,0.14));
  transform: translateY(-2px);
}

.ft-track-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
}
.ft-track-icon{
  font-size: 24px;
  line-height: 1;
  /* 让 emoji 在不同系统下显示更稳定 */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06));
}
.ft-track-badge{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ft-track-badge .dot{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52,211,153,0.18);
}

.ft-track-card-name{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  line-height: 1.25;
  margin-top: auto;
}
.ft-track-card-stat{
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #1d1d1f;
}
.ft-track-card-stat .num{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ft-track-card-stat .unit{
  font-size: 12px;
  color: #86868b;
  font-weight: 400;
}

/* footer */
.ft-foot{
  padding: 64px 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #86868b;
}
/* 整行 footer 可点击 —— button 重置成行内灰文本，保持原 .ft-foot 视觉。
   color/font 显式 inherit 是为了不被浏览器 <button> UA 样式（深色 + 系统字）覆盖。 */
.ft-foot--button{ padding: 0; }
.ft-foot-btn{
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 64px 24px 16px;
  width: 100%;
  font: inherit;
  font-size: 13px;
  color: #86868b;
  text-align: center;
  cursor: pointer;
}
.ft-foot-btn:focus-visible{
  outline: 2px solid #1d67f1;
  outline-offset: -4px;
  border-radius: 2px;
}

/* 工信部 ICP 备案号 —— 法务必备，紧贴 .ft-foot 下方。
   颜色更淡（次要信息），hover 转深以便点击。 */
.ft-icp{
  padding: 0 24px 32px;
  text-align: center;
  font-size: 12px;
  color: #a1a1a6;
}
.ft-icp a{
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.ft-icp a:hover{
  color: #1d1d1f;
  text-decoration: underline;
}
