/* 文件检索（2026-09-24 nas4）：折叠列表 + 分类文件。清爽是第一目标。
   色值一律走 tokens.css 语义 token（机器守着）。内容区不设 px 宽度上限。 */
body { background: var(--canvas); }

.nf-app { margin: 0 auto; padding: 24px 18px 60px; max-width: 1100px; }
.nf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.nf-head h1 { margin: 0 0 4px; font-size: 22px; }
.nf-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 760px; line-height: 1.6; }
/* 简介下面的灰色地址对照：推荐会/拍摄图/… 各是哪个内网夹（想去资源管理器直接翻的人照着走） */
.nf-paths { margin: 8px 0 0; max-width: 900px; font-size: 11.5px; color: var(--text-disabled); line-height: 1.9; }
.nf-paths .nf-path-item { margin-right: 16px; }
.nf-paths .nf-path-item b { font-weight: 600; color: var(--muted); margin-right: 3px; }
.nf-head nav { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nf-head nav a { color: var(--ink-2); font-size: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; }
.nf-rule { color: var(--green); font-size: 12px; background: var(--green-soft); border: 1px solid var(--accent-soft-border); border-radius: 7px; padding: 5px 11px; cursor: help; white-space: nowrap; }
[data-embedded="1"] .nf-head nav a[href="/"] { display: none; }
/* 2026-10-01 嵌在控制台里时 common.css 把 header nav 整个藏了（本意只藏「控制台」那颗，上一行已单独藏）：这页 nav 里是「📋 摆放规则」，留着 */
html[data-embedded] .nf-head nav { display: flex; }

.nf-search { margin: 18px 0 10px; position: relative; }
.nf-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px; background: var(--surface); color: var(--ink); }
.nf-search input:focus { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--green); }

/* 联想下拉：浮在输入框正下方 */
.nf-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: var(--z-dropdown); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); overflow: hidden; max-height: 340px; overflow-y: auto; }
.nf-sug-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--border-subtle); }
.nf-sug-item:last-child { border-bottom: 0; }
.nf-sug-item:hover, .nf-sug-item.on { background: var(--surface-hover); }
.nf-sug-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-sug-meta { flex: none; font-size: 11px; color: var(--muted); white-space: nowrap; }

.nf-filters { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.nf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nf-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; }
.nf-chip i { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11px; }
.nf-chip.on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.nf-chip.on i { color: var(--green); }
.nf-selects { display: flex; gap: 6px; align-items: center; }
.nf-selects select { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 7px; padding: 4px 8px; font-size: 12px; max-width: 200px; }
.nf-selects select:disabled { opacity: .5; }
.nf-view { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.nf-view button { border: 0; background: var(--surface); color: var(--ink-2); padding: 5px 12px; font-size: 12px; cursor: pointer; }
.nf-view button.on { background: var(--green-soft); color: var(--green); font-weight: 600; }

.nf-status { margin: 10px 2px 10px; color: var(--muted); font-size: 12px; }

/* 落地页热门标签：灰色可点，一批一批换 */
.nf-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 2px 12px; }
.nf-hot-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.nf-hot-chip { border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink-2); border-radius: 999px; padding: 3px 11px; font-size: 12px; cursor: pointer; }
.nf-hot-chip:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
mark { background: var(--warning-bg); color: var(--ink); border-radius: 2px; padding: 0 1px; }

/* —— 复制键（全站统一）—— */
.nf-copy { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.nf-copy:hover { border-color: var(--green); color: var(--green); }
.nf-copy.done { color: var(--green); border-color: var(--green); background: var(--green-soft); }

/* —— 按产品：折叠列表 —— */
.nf-acc { background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
/* 左侧彩色竖条按「在哪棵树」上色：同色=同一批，扫一眼就知道要不要跳过。推荐会/拍摄图是重点色。 */
.nf-acc[data-cat="rec"]     { border-left-color: var(--g-500); }   /* 产品推荐会 绿 */
.nf-acc[data-cat="shoot"]   { border-left-color: var(--b-600); }   /* 产品拍摄 蓝 */
.nf-acc[data-cat="factory"] { border-left-color: var(--a-600); }   /* 访厂视频 琥珀 */
.nf-acc[data-cat="supply"]  { border-left-color: var(--v-600); }   /* 供应链 紫 */
.nf-acc[data-cat="art"]     { border-left-color: var(--n-400); }   /* 美工 灰 */
.nf-acc[data-cat="other"]   { border-left-color: var(--line); }    /* 其他 不强调 */
/* 更新日期按新旧分级：今年最明显，越往前越灰 */
.nf-acc-date.nf-dt-0 { color: var(--text-secondary); }  /* 今年 */
.nf-acc-date.nf-dt-1 { color: var(--text-muted); }      /* 去年 */
.nf-acc-date.nf-dt-2 { color: var(--text-disabled); }   /* 前年 */
.nf-acc-date.nf-dt-3 { color: var(--n-300); }           /* 更早，最淡 */
.nf-acc-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; }
.nf-acc-head:hover { background: var(--surface-hover); }
.nf-acc.open .nf-acc-head { border-bottom: 1px solid var(--line); background: var(--surface-hover); }
.nf-caret { flex: none; color: var(--muted); font-size: 11px; width: 12px; }
/* 产品卡封面小缩略图：一眼大概知道是什么东西（用户 2026-09-24）。没生成/无图 → 占位方块 */
.nf-acc-thumb { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--surface-sunken); border: 1px solid var(--line); }
.nf-acc-thumb-none { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.nf-acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-acc-line1 { display: flex; align-items: center; gap: 8px; }
.nf-acc-name { flex: 0 1 auto; min-width: 90px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 分类徽章紧挨名字、靠左；日期用 margin-left:auto 顶到第一行最右 */
.nf-acc-badges { flex: none; display: flex; gap: 5px; flex-wrap: wrap; }
.nf-acc-date { flex: none; margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
/* 第二行：完整父路径，淡色，太长才末尾省略（前面/共享名始终可见） */
.nf-acc-path { color: var(--text-disabled); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-acc-path mark { background: var(--warning-bg); color: var(--muted); }
/* 徽章现在是可点的类型筛选钮：hover 提示可点，.on 表示「当前在看这一类」（内描边+加粗） */
.nf-badge { font-size: 12px; color: var(--ink-2); background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; cursor: pointer; font-family: inherit; line-height: 1.5; }
.nf-badge:hover { border-color: currentColor; filter: brightness(0.97); }
.nf-badge.on { box-shadow: inset 0 0 0 2px currentColor; font-weight: 700; }
.nf-badge.image { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.nf-badge.video { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); }
.nf-badge.doc, .nf-badge.sheet { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.nf-acc-body { padding: 6px 14px 12px; }

/* —— 分类分组 + 文件行（展开产品、看文件共用）—— */
.nf-grp { margin-top: 8px; }
.nf-grp-hd { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.nf-grp-hd i { font-style: normal; color: var(--muted); margin-left: 6px; font-weight: 400; }
/* 内容左贴（名字 + 大小日期紧挨着），复制键靠 margin-left:auto 推到最右——中间不再空一大片 */
.nf-f { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid var(--border-subtle); }
.nf-f:last-child { border-bottom: 0; }
.nf-f:hover { background: var(--surface-hover); }
.nf-f-ico { flex: none; }
.nf-f-thumb { flex: none; width: 32px; height: 32px; object-fit: cover; border-radius: 4px; background: var(--surface-sunken); border: 1px solid var(--line); }
.nf-f-name { flex: 0 1 auto; min-width: 0; font-size: 13px; color: var(--ink); word-break: break-all; }
.nf-f-loc { flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-2); background: var(--surface-sunken); border-radius: 6px; padding: 2px 8px; }
.nf-f-meta { flex: none; font-size: 11px; color: var(--muted); white-space: nowrap; }
.nf-f .nf-copy { margin-left: auto; }
.nf-none { color: var(--muted); font-size: 12px; padding: 10px 2px; }
/* 「还有 N 个」= 可点按钮，点了就地展开这一类全部（别再指人去找按钮）。做成一整行、绿色、有 hover。 */
.nf-grp-more { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--green); font-size: 12px; padding: 7px 4px 7px 26px; cursor: pointer; border-radius: 6px; }
.nf-grp-more:hover { background: var(--green-soft); text-decoration: underline; }
.nf-grp-more:disabled { color: var(--muted); cursor: default; background: transparent; text-decoration: none; }

/* 带自定义 display 的元素必须显式尊重 hidden 属性，否则 display:block/inline-flex 会盖掉 [hidden] */
.nf-more[hidden], .nf-view[hidden] { display: none !important; }
.nf-more { display: block; width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); padding: 10px 0; font-size: 13px; cursor: pointer; }
.nf-more:hover { color: var(--green); border-color: var(--green); }
.nf-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 40px 0; }

@media (max-width: 640px) {
  .nf-head { flex-direction: column; }
  .nf-acc-badges { order: 5; flex-basis: 100%; }
  .nf-acc-date, .nf-f-loc { display: none; }
  .nf-acc-thumb { width: 34px; height: 34px; }
}

/* 2026-10-04 视频：封面 96×54 带 ▶ 角标、行上「▶ 播放」，点了在这一行下面就地播 */
.nf-vbox { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--line); }
.nf-vbox .nf-f-thumb { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: contain; background: var(--n-900); }
.nf-vbox .nf-f-ico { font-size: 22px; }
.nf-vbox.can-play { cursor: pointer; }
.nf-vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--overlay); color: var(--n-0); font-style: normal; font-size: 11px; line-height: 26px; text-align: center; pointer-events: none; }
.nf-vbox.can-play:hover .nf-vplay { background: var(--accent); }
.nf-vnone { opacity: .6; }
.nf-playbtn { flex: none; margin-left: auto; border: 1px solid var(--accent-soft-border); background: var(--accent-soft-bg); color: var(--accent-soft-fg); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.nf-playbtn:hover { border-color: var(--accent); }
.nf-playbtn.on { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.nf-f-v .nf-playbtn + .nf-copy { margin-left: 6px; }
.nf-player { padding: 6px 4px 10px; border-bottom: 1px solid var(--border-subtle); }
.nf-player video { display: block; width: 100%; max-width: 720px; max-height: 70vh; border-radius: 8px; background: var(--n-950); }
.nf-bignote { flex: none; margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.nf-f-v .nf-bignote + .nf-copy { margin-left: 6px; }
.nf-pwait { margin-top: 6px; font-size: 12px; color: var(--ink-2); background: var(--surface-sunken); border-radius: 6px; padding: 6px 10px; max-width: 720px; }
@media (max-width: 640px) {
  .nf-f-v { flex-wrap: wrap; }
  .nf-vbox { width: 80px; height: 45px; }
}

/* 老板 10-04：可视化——「说明」折叠、空状态（零件在 shared/viz.css） */
.nf-howto { margin-top: 4px; font-size: 13px; color: var(--text-muted); max-width: 760px; }
.nf-howto summary { cursor: pointer; color: var(--accent); width: max-content; }
.nf-howto p { margin: 4px 0 0; }
.nf-empty .sqv-empty { padding: 0; }

/* 2026-10-16 这款在 TC 的全部位置（搜完整型号 / 粘阿里链接时最上面那张卡，app/tc_places.py） */
[hidden] { display: none !important; }
.nf-sku { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.nf-sku-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.nf-sku-img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: var(--surface-sunken); flex: none; }
.nf-sku-title { font-size: 15px; color: var(--ink); line-height: 1.5; min-width: 0; }
.nf-sku-sub { font-size: 12px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.nf-sku-ali { font-size: 12px; margin-left: 10px; white-space: nowrap; }
.nf-sku-ali a { color: var(--info-fg); margin-right: 6px; }
.nf-sku-places { border-top: 1px solid var(--border-subtle); padding-top: 6px; }
.nf-sku-place { display: flex; align-items: center; gap: 10px; padding: 5px 0 5px 8px; border-left: 3px solid var(--line); margin: 3px 0; }
.nf-sku-place[data-cat="rec"] { border-left-color: var(--g-500); }
.nf-sku-place[data-cat="shoot"] { border-left-color: var(--b-600); }
.nf-sku-lbl { flex: none; width: 84px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.nf-sku-pname { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-sku-kinds { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.nf-sku-open { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.nf-sku-open:hover { border-color: var(--green); color: var(--green); }
.nf-sku-miss { font-size: 11.5px; color: var(--text-disabled); padding: 4px 0 0 11px; }
.nf-sku-vh { margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.nf-sku-vh i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.nf-sku-none { font-size: 12.5px; color: var(--muted); padding: 6px 0; cursor: help; }
.nf-sku-unknown { font-size: 13px; color: var(--warning-fg); background: var(--warning-bg); border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
.nf-sku-other { margin-top: 6px; }
.nf-sku-other summary { cursor: pointer; font-size: 12.5px; color: var(--accent); padding: 4px 0; width: max-content; }
/* 上架视频的版本小牌：ITOP / GZZT 水印、中性、主图视频；「在哪个夹」用灰牌 */
.nf-vcls { flex: none; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 4px; white-space: nowrap; color: var(--ink-2); background: var(--surface-sunken); cursor: help; }
.nf-vcls-itop { background: var(--tag-1-bg); }
.nf-vcls-gzzt { background: var(--tag-2-bg); }
.nf-vcls-neutral { background: var(--tag-3-bg); }
.nf-vcls-main { background: var(--tag-4-bg); }
@media (max-width: 640px) {
  .nf-sku-kinds, .nf-sku-sub { display: none; }
  .nf-sku-lbl { width: 66px; }
}

/* 2026-10-23 老板「搜的时候没反应、下面没跟着变化」「常用的单独拎个小标签」「地址切 Windows / Mac」 */
/* 搜索中：旧结果变淡、状态行转圈 */
.nf-busy { opacity: .45; transition: opacity .15s; pointer-events: none; }
.nf-spin { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: nf-spin .7s linear infinite; }
@keyframes nf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nf-spin { animation: none; } }
/* 类型按钮 / 常用标签：这次搜到 0 个的变淡（还能点） */
.nf-chip.zero, .nf-tag.zero { opacity: .5; }
/* 常用小标签：挂在「资料 ›」「视频 ›」下面，虚线框和上面实心的类型按钮分得开 */
.nf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 2px 0; }
.nf-tags-lbl { font-size: 12px; color: var(--muted); }
.nf-tag-grp { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.nf-tag-grp b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.nf-tag-grp b::after { content: '›'; margin-left: 4px; color: var(--text-disabled); font-weight: 400; }
.nf-tag { border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 6px; padding: 2px 9px; font-size: 12px; cursor: pointer; font-family: inherit; }
.nf-tag i { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11px; }
.nf-tag:hover { border-color: var(--green); color: var(--green); }
.nf-tag.on { border-style: solid; border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 600; }
.nf-tag.on i { color: var(--green); font-weight: 400; }
/* 卡片上直接露出的命中文件（对齐到产品名那一列） */
.nf-hits { padding: 2px 14px 6px 86px; border-top: 1px dashed var(--border-subtle); }
.nf-hits .nf-f { padding: 4px 4px; }
.nf-hits-more { border: 0; background: transparent; color: var(--green); font-size: 12px; padding: 5px 4px; cursor: pointer; font-family: inherit; }
.nf-hits-more:hover { text-decoration: underline; }
.nf-weak-sep { margin: 16px 2px 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.nf-acc.nf-weak { opacity: .82; }
.nf-grp-hit .nf-grp-hd { color: var(--green); }
.nf-all-hd { margin: 16px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
/* 地址：Windows / Mac */
.nf-os { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); white-space: nowrap; }
.nf-os-lbl { font-size: 12px; color: var(--muted); padding: 0 6px 0 9px; }
.nf-os button { border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.nf-os button.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
@media (max-width: 640px) {
  .nf-hits { padding-left: 14px; }
  .nf-head nav { flex-wrap: wrap; }
}
