/* 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; }

/* 紧凑变体 —— 用在密集表单里（如匹配标准的准入/加分切换），比默认小一圈：
   item 38→28、内距 18→12、字 14→13，容器 padding 3→2。 */
.ft-seg--sm{ padding: 2px; }
.ft-seg--sm .ft-seg-item{ height: 28px; padding: 0 12px; font-size: 13px; }

/* 分隔线：把 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-search-section.is-menu-overlap{
    padding-left: 60px;
  }
  .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;
}

/* ============================================================
   Open Roles 推广卡 —— 1:1 复刻 Figma 324:5022
   插在首页团队 grid 的第 3 格（见 components/public/OpenRolesCard.jsx）。
   不走设计系统，尺寸/颜色/间距全部按 Figma 写死。
   ============================================================ */
.ft-or-card{
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 32px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 14px 22px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  transition:
    box-shadow .2s cubic-bezier(.2,0,0,1),
    transform .15s cubic-bezier(.2,0,0,1);
}
/* hover 抬升 + 柔和阴影，跟团队卡（.ft-card:hover）保持一致的手感 */
.ft-or-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);
}
.ft-or-inner{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.ft-or-title{
  margin: 0;
  color: #a1a1a1;
  font-size: 14px;
  line-height: normal;
  width: 100%;
}
.ft-or-roles{
  display: flex;
  flex-direction: column;
  /* 行有 6px 上下内边距（hover 高亮），gap 5 + 6 + 6 = 17，跟 Figma 行间距一致 */
  gap: 5px;
  width: 100%;
  /* 抵消首/末行的 6px 内边距，让块的外间距与 Figma 完全一致 */
  margin: -6px 0;
}
.ft-or-role{
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  /* 行可点（OverlayLink → <a>）：去掉链接默认样式 */
  color: inherit;
  text-decoration: none;
  /* 负边距 + 等量内边距：hover 高亮向两侧外扩，但内容不位移 */
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background-color .12s ease;
}
a.ft-or-role{ cursor: pointer; }
a.ft-or-role:hover{ background: #f6f6f6; }
.ft-or-icon{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1;
}
.ft-or-col{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  overflow: hidden;
}
.ft-or-company{
  display: flex;
  gap: 3px;
  align-items: center;
  color: #9b9b9b;
  white-space: nowrap;
  max-width: 100%;
}
.ft-or-company .nm{ font-size: 12.5px; }
.ft-or-company .arr{ font-size: 11px; }
.ft-or-jobtitle{
  margin: 0;
  color: #1a1a1a;
  font-size: 14px;
  line-height: normal;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* —— icon：真实公司 logo（撑满 36×36 圆角方块），无 logo 时回退首字母 —— */
.ft-or-icon{ background: #f3f3f3; }
.ft-or-icon-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ft-or-icon-fallback{
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
}
/* —— 底部两个胶囊按钮 —— */
.ft-or-btns{
  display: flex;
  gap: 8px;
  width: 100%;
}
.ft-or-btn{
  appearance: none;
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 999px;
  padding: 10px 14px;
  color: #333333;
  font-size: 13.5px;
  line-height: normal;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}
.ft-or-btn:hover{ background: #f7f7f7; }
.ft-or-btn.is-all{ flex: 1 1 0; min-width: 0; font-weight: 700; gap: 5px; }
/* 「全部」右侧的 ↗ 箭头，复用团队页 .t4-id-arr 同款 */
.ft-or-btn-arr{ flex: 0 0 auto; }
.ft-or-btn.is-postjd{ flex: 0 0 auto; height: 40px; }

/* ============================================================
   找 Bonnie 推荐 —— 首页第 1 格匹配卡（BonnieMatchCard，1:1 复刻 735:570）
   + 全流程弹窗（BonnieMatchFlow：意图 → 上传 → 加企微）。
   命名空间 .bm-*，与 .ft-* / .ap-* / .us-* 隔离。
   ============================================================ */

/* ---------- 网格卡 ---------- */
.bm-card{
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  padding: 25px 23px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 32px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  cursor: pointer;
  /* 圆角 / 阴影 / hover 抬升与团队卡 .ft-card 完全对齐 */
  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);
}
.bm-card:focus-visible{
  outline: 2px solid #007aff;
  outline-offset: 2px;
}
.bm-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);
}
.bm-card-head{ display: flex; align-items: center; gap: 8px; }
.bm-spark{ flex: 0 0 auto; display: inline-flex; }
.bm-card-title{
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background-image: linear-gradient(158deg, #FF6B6B 8%, #4F9CFF 50%, #B987FF 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bm-card-rows{ display: flex; flex-direction: column; gap: 16px; }
.bm-card-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bm-card-label{ color: #8e8e8e; font-size: 13px; }
.bm-card-chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 999px;
  color: #1d1d1f;
  font-size: 14px;
  /* 轮播时 pill 宽度随文案变化平滑过渡，不硬跳 */
  transition: background .2s cubic-bezier(.2,0,0,1);
}
/* 轮播标签：每次切换上浮淡入 + 去模糊；按行 animationDelay 级联错峰（见 jsx） */
.bm-card-chip-val{
  display: inline-block;
  animation: bm-chip-in .5s cubic-bezier(.2,0,0,1) both;
}
@keyframes bm-chip-in{
  from{ opacity: 0; transform: translateY(7px); filter: blur(1.5px); }
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce){
  .bm-card-chip-val{ animation: none; }
}
.bm-card-cta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 41px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 999px;
  color: #1d1d1f;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-card-cta:hover{ background: #f7f7f7; }

/* ---- 已订阅态：整卡不可点（交互在两个按钮上），但保留 .bm-card:hover 的悬浮抬升 ---- */
.bm-card--sub{ cursor: default; }
.bm-card-actions{ display: flex; gap: 10px; }
.bm-card-btn{
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 41px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-card-btn--ghost{ background: #ffffff; border: 1px solid #efefef; color: #1d1d1f; }
.bm-card-btn--ghost:hover{ background: #f7f7f7; }
/* 用 .bm-card-actions 提高 specificity，盖过全站 a:link 的文字色，确保白字 */
.bm-card-actions .bm-card-btn--primary,
.bm-card-actions .bm-card-btn--primary:link,
.bm-card-actions .bm-card-btn--primary:visited,
.bm-card-actions .bm-card-btn--primary:hover{ color: #ffffff; }
.bm-card-btn--primary{ background: #1d67f1; border: 1px solid #1d67f1; color: #ffffff; }
.bm-card-btn--primary:hover{ background: #1a5cd8; }

/* ---------- 流程弹窗 ---------- */
/* 弹窗壳 + 意图屏：1:1 对齐 Figma 704:5261；内部尺寸保持设计稿原值，
   整体用 transform: scale(.5) 等比缩半（缩放点在中心，居中不变、文字仍清晰）。
   想改缩放比例只动这一行 scale()。 */
/* 尺寸 1:1 对齐 Figma 757:600 / 760:16 / 773:5134（意图·上传 630 宽、加微信 680 宽）。 */
.bm-flow{
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(630px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 36px;
  background: #ffffff;
  border-radius: 24px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  box-shadow: 0 14px 44px -10px rgba(0,0,0,0.12);
}
/* 注意：不要 transition width / height / min-height —— 它们触发整树 layout + squircle 重绘，
   逐帧重排就是卡顿源。尺寸瞬切，由内容的 transform/opacity 淡入（合成层）盖住，零重排。 */
.bm-flow--qr{ width: min(680px, calc(100vw - 32px)); }
/* 意图屏固定高度，1:1 对齐设计稿 630×460：字段块→CTA 自然挤出 56（SPACE_BETWEEN） */
.bm-flow--intent{ min-height: 460px; }
/* 上传屏固定高度 680（视口矮则取视口）：顶部 bar/标题、底部 CTA 不动，只有中间 ①② 区滚动。
   overflow 只给上传屏：QR 屏的 Bonnie 探头是负 margin 溢出弹窗顶部，加 overflow 会被裁掉 */
.bm-flow--upload{ height: 680px; max-height: calc(100vh - 48px); overflow: hidden; }
.bm-flow-upload{ min-height: 0; }
/* 滚动区外层：撑满剩余高度，承载底部白色渐变遮罩 */
.bm-up-scrollwrap{ position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* 底部白色渐变：滚动内容逐渐融入「开始找工」按钮上方（始终贴滚动视口底边） */
.bm-up-scrollwrap::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  pointer-events: none;
}
/* 中间内容滚动区：占满剩余高度、内部滚动；链接最多 10 个超出即滚。滚动条隐藏（留白分组，不显条）
   底部留 48 padding：让最后一项（+再加一个 / 末条文件）能滚到底部 32 渐变之上、不被盖住 */
.bm-up-scroll{ flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding-bottom: 48px; scrollbar-width: none; -ms-overflow-style: none; }
.bm-up-scroll::-webkit-scrollbar{ width: 0; height: 0; display: none; }

/* 步骤切换：内容淡入上移（body 带 key={step} 会 remount 重新触发），缓和的 ease-out */
@keyframes bm-step-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* 顶部 bar：返回（左）+ 关闭（右），浮层壳同款风格 */
.bm-flow-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 34px;
}
/* 意图屏标题挪进 bar 左槽 → 和右上「×」严格垂直居中对齐（设计稿 779:2171，bar 36 高 align center）
   head 与 close 同高 34，bar align-items:center，二者中线重合 */
.bm-flow-bar{ min-height: 36px; }
.bm-flow-bar .bm-flow-head{ margin-bottom: 0; height: 34px; }
.bm-flow-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-flow-back svg{ color: #86868b; flex: 0 0 auto; }
.bm-flow-back:hover{ background: #fafafa; }
.bm-flow-back:disabled{ opacity: .5; cursor: default; }
.bm-flow-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #f0f0f0;
  border: 1px solid rgba(239,239,239,0.5);
  border-radius: 999px;
  color: #1d1d1f;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-flow-close:hover{ background: #e6e6e6; }
.bm-flow-close:disabled{ opacity: .5; cursor: default; }
.bm-flow-body{
  display: flex; flex-direction: column; flex: 1;
  animation: bm-step-in .42s cubic-bezier(.22,.61,.36,1) both;
  will-change: transform, opacity;   /* 提前提升到合成层，淡入全程不重排 */
  backface-visibility: hidden;
}
/* 意图屏：CTA 区沉到底部（设计稿的 space-between 布局） */
.bm-flow-intent .bm-flow-foot{ margin-top: auto; }
/* 上传屏：滚动区已 flex:1 撑开，CTA 自然贴底；只留与内容的间距 */
.bm-flow-upload .bm-flow-foot{ padding-top: 20px; }
@media (prefers-reduced-motion: reduce){
  .bm-flow-body{ animation: none; }
}

/* head：渐变标题 + sparkle，跟卡片同源 */
.bm-flow-head{ display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.bm-flow-title{
  font-size: 15px;
  font-weight: 600;
  background-image: linear-gradient(159deg, #FF6B6B 8%, #4F9CFF 50%, #B987FF 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- 意图屏 ---- */
.bm-intent-lines{ display: flex; flex-direction: column; gap: 15px; }
.bm-intent-line{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: #000000;
}
.bm-intent-pre, .bm-intent-post{ color: #000000; }

/* ---- 标签输入器（intent 屏每个维度）：设计稿 704:5261 同款灰 pill + 尾部「+」新增 chip ---- */
.bm-taginput{
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
/* 已选标签：设计稿灰 pill。固定 30 高 + box-border —— 编辑/输入态不会再撑高 */
.bm-tag{
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  box-sizing: border-box;
  padding: 0 6px 0 11px;
  background: #f5f5f5;
  border-radius: 18px;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1;
}
.bm-tag--clickable{ cursor: pointer; transition: background .15s cubic-bezier(.2,0,0,1); }
.bm-tag--clickable:hover{ background: #ececec; }
/* 就地编辑态：灰 pill 内嵌裸输入框，高度与普通 pill 一致 */
.bm-tag--editing{ padding: 0 11px; background: #ececed; }
.bm-tag-edit{
  min-width: 1ch;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
}
.bm-tag-x{
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: none; border: 0; border-radius: 999px;
  color: #a1a1a6; font-size: 16px; line-height: 1; cursor: pointer;
}
.bm-tag-x:hover{ background: #e6e6ea; color: #1d1d1f; }
/* 尾部「+ 新增」chip：与已选标签同款灰 pill，内含 + 图标 + 输入框 */
.bm-tag-add{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  box-sizing: border-box;
  padding: 0 9px 0 11px;
  background: #f5f5f5;
  border-radius: 18px;
  cursor: text;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-tag-add:hover{ background: #efefef; }
.bm-taginput:focus-within .bm-tag-add{ background: #ececed; }
.bm-tag-add-plus{ flex: 0 0 auto; color: #b0b0b5; }
.bm-taginput-field{
  min-width: 1ch;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
}
.bm-taginput-field::placeholder{ color: #b0b0b5; }
.bm-taginput-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  max-height: 232px;
  overflow-y: auto;
  padding: 5px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -8px rgba(0,0,0,0.18);
}
.bm-taginput-opt{
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: #1d1d1f;
  font-size: 14.5px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.bm-taginput-opt.is-active{ background: #f2f3f7; }
.bm-taginput-opt.is-create{ color: #2e84fa; }
.bm-taginput-opt.is-create.is-active{ background: #eaf2ff; }

/* 底部：主按钮（满宽 高52）+ 提示。按钮保持常亮实色蓝。 */
.bm-flow-foot{ display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.bm-flow-cta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  background: #007aff;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.08px;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1);
}
.bm-flow-cta:hover{ background: #0070ec; }
.bm-flow-cta:disabled{ opacity: .6; cursor: default; }
/* 已保存态：意图屏底部双按钮（管理作品/CV 次 + 去找工 主） */
.bm-flow-foot-actions{ display: flex; gap: 10px; }
.bm-flow-foot-actions .bm-flow-cta{ flex: 1; width: auto; }
.bm-flow-cta--ghost{ background: #f0f0f2; color: #1d1d1f; }
.bm-flow-cta--ghost:hover{ background: #e8e8ea; }
.bm-flow-hint{ margin: 0; text-align: center; color: #a1a1a6; font-size: 13px; letter-spacing: -0.13px; }
.bm-flow-skip{
  width: 100%;
  padding: 3px;
  background: none;
  border: 0;
  color: #a1a1a6;
  font-size: 13px;
  cursor: pointer;
}
.bm-flow-skip:hover{ color: #1d1d1f; }
.bm-flow-skip:disabled{ opacity: .55; cursor: default; }

/* ---- 上传屏 双轨：① 作品（主） / ② CV（次） ---- */
.bm-up-block{ display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
/* ① 作品 → ② CV 间距 36（设计稿 778:863：两块 y 差 36） */
.bm-up-block + .bm-up-block{ margin-top: 36px; }
.bm-up-label{ display: flex; align-items: center; gap: 7px; }
.bm-up-num{ font-size: 13px; font-weight: 600; color: #acacb0; }
.bm-up-num--on{ color: #1d67f1; }
.bm-up-t{ font-size: 15px; font-weight: 600; color: #1d1d1f; }
.bm-up-t--sub{ color: #86868b; }
.bm-up-sub{ margin: 0; font-size: 12.5px; line-height: 1.4; color: #8a8a8e; }
.bm-up-input{
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #d1d1d6;
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s cubic-bezier(.2,0,0,1);
}
.bm-up-input::placeholder{ color: #9a9a9e; }
.bm-up-input:focus{ border-color: #007aff; }
.bm-up-addlink{
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: 0;
  color: #007aff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.bm-up-addlink:disabled{ opacity: .45; cursor: default; }
.bm-up-cv{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  background: none;
  border: 1.2px dashed #c9c9ce;
  border-radius: 11px;
  color: #6b6b70;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s cubic-bezier(.2,0,0,1), background .15s cubic-bezier(.2,0,0,1);
}
.bm-up-cv:hover{ border-color: #b0b0b5; background: #fafafa; }
/* 用作 div role=button 时的门禁 / 拖入态（段控上传行复用） */
.bm-up-cv[aria-disabled="true"]{ opacity: .55; cursor: default; }
.bm-up-cv[aria-disabled="true"]:hover{ border-color: #c9c9ce; background: none; }
.bm-up-cv.is-drag-over{ border-color: #007aff; background: #f5f8ff; }
/* 已上传文件行右侧取消「×」（复用于 .bm-up-file） */
.bm-up-cv-remove{
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 999px;
  color: #86868b;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1), color .15s cubic-bezier(.2,0,0,1);
}
.bm-up-cv-remove:hover{ background: #f0f0f0; color: #1d1d1f; }
/* 段控上传行(.bm-up-uprow stretch)里的移除按钮 → 垂直居中 */
.bm-up-uprow-remove{ align-self: center; }

/* ② 每行：左侧类型段控（CV / 作品）+ 右侧上传框 */
.bm-up-uprow{ display: flex; gap: 8px; align-items: stretch; }
.bm-up-uprow .bm-up-cv{ flex: 1; width: auto; min-width: 0; }
.bm-up-kindseg{
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 44px;
  padding: 3px;
  gap: 2px;
  box-sizing: border-box;
  background: #f0f0f0;
  border-radius: 11px;
}
.bm-up-kindbtn{
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: #86868b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1), color .15s cubic-bezier(.2,0,0,1);
}
.bm-up-kindbtn.is-on{ background: #ffffff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.bm-up-kindbtn:disabled{ cursor: default; opacity: .55; }
/* 已上传文件行 */
.bm-up-file{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 14px;
  box-sizing: border-box;
  border: 1px solid #d1d1d6;
  border-radius: 11px;
}
.bm-up-file-kind{ flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #1d67f1; }
.bm-up-file-name{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1d1d1f; font-size: 13.5px; }

/* ① 作品链接卡：粘贴/回车生成。解析中（骨架）→ 失败·降级（可编辑）→ enriched（后端接入后） */
.bm-up-cards{ display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.bm-link-card{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
}
.bm-link-icowrap{ position: relative; flex: 0 0 auto; }
.bm-link-ico{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f0f2;
  border-radius: 10px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  color: #86868b;
}
/* 解析到的真实 favicon（作品链接卡 + 投递弹窗作品卡共用，落在 40 容器里居中 20）*/
.bm-link-favicon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}
/* 可点更换图标：按钮态 + hover 提示 */
.bm-link-ico--btn{ padding: 0; border: 0; cursor: pointer; transition: background .15s cubic-bezier(.2,0,0,1), color .15s cubic-bezier(.2,0,0,1); }
.bm-link-ico--btn:hover{ background: #e6e6ea; color: #1d1d1f; }
/* 图标选择浮层：锚定在图标下方 */
.bm-link-iconmenu-backdrop{ position: fixed; inset: 0; z-index: 39; }
.bm-link-iconmenu{
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 40;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -8px rgba(0,0,0,0.18);
}
.bm-link-iconopt{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 8px;
  color: #86868b;
  cursor: pointer;
  transition: background .15s cubic-bezier(.2,0,0,1), color .15s cubic-bezier(.2,0,0,1);
}
.bm-link-iconopt:hover{ background: #f2f3f7; color: #1d1d1f; }
.bm-link-iconopt.is-on{ background: #eaf2ff; color: #1d67f1; }
.bm-link-body{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* 三行同尺寸节奏：line-height 1.3、单行省略；层级只靠颜色（§1.1），不靠字号字重 */
.bm-link-title,
.bm-link-desc,
.bm-link-edit{
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: left;
}
/* 标题/描述：可点编辑 → 文本 + 末尾铅笔图标（inline-flex，文本单行省略，图标不缩） */
.bm-link-title,
.bm-link-desc{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color .15s cubic-bezier(.2,0,0,1);
}
.bm-link-text{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-link-title{ color: #1d1d1f; }
.bm-link-desc{ color: #5d5d5d; }
.bm-link-desc--hint{ color: #9a9a9e; }
.bm-link-title:hover,
.bm-link-desc:hover{ color: #007aff; }
.bm-link-pencil{ flex: 0 0 auto; color: #c2c2c8; transition: color .15s cubic-bezier(.2,0,0,1); }
.bm-link-title:hover .bm-link-pencil,
.bm-link-desc:hover .bm-link-pencil{ color: currentColor; }
.bm-link-edit{ width: 100%; outline: none; color: #1d1d1f; cursor: text; }
.bm-link-domain{
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.3;
  color: #9a9a9e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 操作区(跳转 + 删除)复用 .us-cv-action(s)，只需在卡内垂直居中 */
.bm-link-actions{ align-self: center; }
/* 解析中：右上「解析中…」+ 骨架条脉冲 */
.bm-link-status{ flex: 0 0 auto; align-self: flex-start; font-size: 12px; color: #9a9a9e; }
.bm-link-card--pending .bm-link-body{ gap: 7px; padding-top: 3px; }
.bm-link-sk{
  display: block;
  height: 11px;
  border-radius: 6px;
  background: #ececef;
  animation: bm-sk-pulse 1.1s ease-in-out infinite;
}
@keyframes bm-sk-pulse{ 0%,100%{ opacity: 1; } 50%{ opacity: .45; } }
/* 展开/收起折叠的链接卡 */
.bm-up-expand{
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: 0;
  color: #007aff;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce){ .bm-link-sk{ animation: none; } }

/* 加企微屏 —— 1:1 对齐 Figma 773:5134（Bonnie 形象从弹窗顶部探出 + QR + 灰底文案） */
.bm-flow-qr{ align-items: center; text-align: center; }
/* Bonnie 3D 形象：负 margin-top 让它从弹窗顶部探出（盖住 bar 上方区域） */
.bm-qr-bonnie{
  width: 186px;
  height: auto;
  margin-top: -118px;
  margin-bottom: 10px;
  pointer-events: none;
  user-select: none;
}
.bm-qr-title{
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.42;
  color: #000000;
}
.bm-qr-img{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 168px;
  margin: 26px 0 20px;
}
.bm-qr-img img{ width: 100%; height: 100%; object-fit: contain; }
.bm-qr-placeholder{ color: #a1a1a6; font-size: 12px; }
.bm-qr-foot{ margin: 0; font-size: 12.5px; line-height: 1.7; color: #aaaaaa; }
.bm-qr-foot-em{ font-weight: 600; color: #aaaaaa; }
