styles.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. :root {
  2. --bg: #f7f7f8;
  3. --card: #fff;
  4. --ink: #1a1a1f;
  5. --muted: #8a8a94;
  6. --line: #e6e6ea;
  7. --accent: #5b5bd6;
  8. --accent-soft: #ececfb;
  9. --ok: #15a36a;
  10. --bad: #d04646;
  11. }
  12. * { box-sizing: border-box; }
  13. body {
  14. margin: 0;
  15. background: var(--bg);
  16. color: var(--ink);
  17. font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  18. }
  19. a { color: var(--accent); text-decoration: none; }
  20. a:hover { text-decoration: underline; }
  21. .wrap { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; }
  22. h1 { font-size: 22px; margin: 0 0 2px; letter-spacing: .5px; }
  23. .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
  24. /* 创作Demo:家族选择器左右两栏竖排,按尾缀分组 */
  25. .famcols { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
  26. .famcol { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
  27. .famcol-hd { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 2px 4px; }
  28. .fbtn { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; color: var(--ink); cursor: pointer; }
  29. .fbtn:hover { border-color: var(--accent); }
  30. .fbtn.on { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
  31. .fbtn-pre { flex: 0 1 auto; }
  32. .fbtn-suf { flex: 0 0 auto; margin-left: auto; opacity: 0.7; } /* 尾缀靠右、略淡 */
  33. .fbtn.on .fbtn-suf { opacity: 0.85; }
  34. /* 创作Query正交搜索结果:每条 query 一块 */
  35. .qblock { margin: 14px 0 22px; }
  36. .qbhd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
  37. .qbq { font-size: 15px; font-weight: 700; color: var(--ink); }
  38. /* 页面切换顶栏 */
  39. .topnav { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
  40. .topnav a { padding: 8px 2px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  41. .topnav a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
  42. /* 创作Query Demo:多列(轴列 + Query列) */
  43. .cdemo { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
  44. .axcol { flex: 0 0 auto; width: 114px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
  45. .axcol.qcol { flex: 1 1 auto; min-width: 560px; }
  46. .axhd { font-size: 13px; font-weight: 700; padding: 9px 11px; border-bottom: 1px solid var(--line); background: #fafafb;
  47. display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  48. .axhd.qhd { color: var(--accent); }
  49. .axhd .gn { font-size: 11px; font-weight: 600; color: var(--muted); background: #f0f0f3; border-radius: 10px; padding: 1px 7px; }
  50. .qhd-metrics { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  51. .avgcreation { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
  52. .avgcreation.done { color: var(--ok); background: #e6f6ee; }
  53. .avgcreation.pending { color: #9a6a00; background: #fff6df; }
  54. .axlist { max-height: 62vh; overflow: auto; }
  55. .axv { font-size: 12.5px; padding: 5px 11px; border-bottom: 1px solid #f3f3f5; color: #555; white-space: nowrap; }
  56. .axv.grp { font-weight: 700; color: #222; background: #fafafb; }
  57. .axv.child { padding-left: 26px; color: #666; }
  58. .axv.child::before { content: '·'; color: var(--muted); margin-right: 6px; }
  59. .qrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; padding: 6px 11px; border-bottom: 1px solid #f3f3f5; font-size: 13px; }
  60. .qrow.keep .qmark { color: var(--ok); font-weight: 700; }
  61. .qrow.drop { color: var(--muted); }
  62. .qrow.drop .qmark { color: var(--bad); }
  63. .qrow.drop .qtext { text-decoration: line-through; }
  64. .qmark { flex: 0 0 auto; }
  65. .qvalid { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 9px; }
  66. .qvalid.ok { color: var(--ok); background: #e6f6ee; }
  67. .qvalid.low { color: var(--bad); background: #fbeaea; }
  68. .qtext { flex: 1 1 auto; white-space: normal; word-break: break-word; } /* 长 query 换行显示,别截断 */
  69. .qreason { flex: 1 0 100%; margin-left: 20px; color: var(--muted); font-size: 11.5px; } /* 理由独占一行、占满宽 */
  70. .qdetail { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  71. border-radius: 8px; padding: 2px 7px; font-size: 11.5px; color: var(--muted); background: #fff; }
  72. .qdetail.on { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
  73. .qdetail span { color: inherit; opacity: .8; }
  74. .qcreation { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; border-radius: 9px; padding: 1px 7px; white-space: nowrap; }
  75. .qcreation.done { color: var(--ok); background: #e6f6ee; }
  76. .qcreation.pending { color: #9a6a00; background: #fff6df; }
  77. /* 顶部主导航 */
  78. .nav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  79. .nav button {
  80. border: 1px solid var(--line); background: var(--card); color: var(--ink);
  81. padding: 7px 16px; border-radius: 9px; cursor: pointer; font-size: 13.5px;
  82. }
  83. .nav button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  84. /* 筛选条 */
  85. .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
  86. .filters select, .filters .seg {
  87. border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  88. padding: 6px 10px; font-size: 13px; color: var(--ink);
  89. }
  90. .seg { display: inline-flex; padding: 0; overflow: hidden; }
  91. .seg button {
  92. border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 13px;
  93. color: var(--muted); border-right: 1px solid var(--line);
  94. }
  95. .seg button:last-child { border-right: 0; }
  96. .seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  97. .count { color: var(--muted); font-size: 12.5px; margin-left: auto; }
  98. /* 表格(query 列表) */
  99. table { width: 100%; border-collapse: collapse; background: var(--card);
  100. border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  101. th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
  102. th { background: #fafafb; color: var(--muted); font-weight: 600; white-space: nowrap; }
  103. tr:last-child td { border-bottom: 0; }
  104. td.q { font-weight: 600; }
  105. .tag { display: inline-block; background: var(--accent-soft); color: var(--accent);
  106. border-radius: 6px; padding: 1px 7px; font-size: 12px; margin: 1px 3px 1px 0; white-space: nowrap; }
  107. .tag.k { background: #f0f0f3; color: #555; }
  108. /* 多轴正交 query 的创作筛选层(留/排除) */
  109. .qdrop { opacity: 0.5; }
  110. .qdrop .q { text-decoration: line-through; }
  111. .fcell { white-space: nowrap; }
  112. .fbadge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
  113. .fbadge.keep { color: var(--ok); background: #e6f6ee; }
  114. .fbadge.drop { color: var(--bad); background: #fbeaea; }
  115. .freason { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; max-width: 220px; white-space: normal; }
  116. /* 正交轴标签:横向拉开间距 */
  117. .axes { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  118. .axes .tag { margin: 0; }
  119. /* 「查看人工定义的轴」幽灵按钮 */
  120. .btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent-soft); }
  121. .btn.ghost:hover { background: var(--accent-soft); text-decoration: none; }
  122. /* 人工定义轴弹窗 */
  123. .modal-mask { position: fixed; inset: 0; background: rgba(20, 20, 30, .38);
  124. display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
  125. .modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 80vh;
  126. overflow: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
  127. .modal-hd { display: flex; align-items: center; justify-content: space-between;
  128. padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
  129. .modal-hd b { font-size: 14.5px; }
  130. .modal-hd .x { cursor: pointer; color: var(--muted); font-size: 15px; padding: 2px 6px; }
  131. .modal-bd { padding: 8px 18px 18px; }
  132. .modal-bd .note { color: var(--muted); font-size: 12px; margin: 8px 0 14px; }
  133. .axrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
  134. .axrow:last-child { border-bottom: 0; }
  135. .axname { font-weight: 700; font-size: 13px; margin-bottom: 7px; }
  136. .axvals { display: flex; flex-wrap: wrap; gap: 6px; }
  137. .axsub { display: flex; flex-direction: column; gap: 7px; width: 100%; }
  138. .axsubrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  139. .axsubkey { font-size: 12px; color: var(--accent); font-weight: 600; min-width: 56px; }
  140. /* 判断提示词弹窗 */
  141. .modal.wide { width: min(840px, 100%); }
  142. .ptabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
  143. .ptabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink);
  144. padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
  145. .ptabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  146. .prompt { background: #0f1021; color: #e6e6ea; border-radius: 10px; padding: 14px 16px;
  147. font: 12px/1.65 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap;
  148. word-break: break-word; max-height: 56vh; overflow: auto; margin: 0; }
  149. /* 搜索结果卡 */
  150. .cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
  151. .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  152. .card .head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
  153. .card .head .q { font-weight: 700; font-size: 14.5px; }
  154. .card .head .m { color: var(--muted); font-size: 12px; }
  155. .lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  156. .lane { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fcfcfd; min-width: 0; }
  157. .lane .pl { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
  158. .lane .pl.dy { color: #111; }
  159. .lane .pl.wx { color: #15a36a; }
  160. .lane video, .lane img.cover { width: 100%; max-height: 210px; object-fit: cover; border-radius: 8px; background: #000; display: block; }
  161. .lane .t { flex: 1 1 auto; font-size: 12.5px; margin: 0; line-height: 1.45; font-weight: 700; min-width: 0; }
  162. .card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 8px 0 3px; }
  163. /* 创作知识 / 非创作知识 分类角标 */
  164. .cls { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px;
  165. padding: 2px 8px; margin: 0; white-space: nowrap; }
  166. .cls.yes { background: #e6f7ee; color: var(--ok); }
  167. .cls.no { background: #fbeaea; color: var(--bad); }
  168. .cls.none { background: #f0f0f3; color: var(--muted); font-weight: 600; }
  169. /* 小红书/公众号完整图文:卡片内只放缩略条,点击进大图阅读 */
  170. .thumbstrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
  171. .thumbbtn, .coverbtn { border: 0; padding: 0; background: transparent; cursor: zoom-in; flex: 0 0 auto; position: relative; }
  172. .thumbbtn .gimg { width: 72px; height: 92px; object-fit: cover; object-position: top; border-radius: 7px; background: #f0f0f3; border: 1px solid var(--line); display: block; }
  173. .thumbbtn span { position: absolute; right: 4px; bottom: 4px; font-size: 10px; line-height: 1; color: #fff; background: rgba(0,0,0,.58); border-radius: 8px; padding: 2px 5px; }
  174. .coverbtn { width: 100%; display: block; }
  175. .lane .cover { cursor: zoom-in; }
  176. /* 长正文 / 知识点默认折叠,避免卡片一屏过高 */
  177. .fold { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
  178. .fold summary { cursor: pointer; list-style: none; padding: 6px 9px; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
  179. .fold summary::-webkit-details-marker { display: none; }
  180. .fold summary::after { content: '展开'; font-size: 11px; font-weight: 600; color: var(--muted); }
  181. .fold[open] summary::after { content: '收起'; }
  182. .knfold { border-color: var(--accent-soft); }
  183. .knfold summary { background: var(--accent-soft); color: var(--accent); }
  184. .knbody { padding: 9px 10px; font-size: 12px; line-height: 1.68; color: var(--ink); white-space: pre-wrap; max-height: 260px; overflow: auto; }
  185. /* 点击放大大图(小红书原帖被反爬封,直接看本地大图) */
  186. .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 60;
  187. display: flex; align-items: center; justify-content: center; padding: 22px 72px; cursor: zoom-out; }
  188. .lbfig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  189. .lightbox img { max-width: calc(100vw - 150px); max-height: calc(100vh - 76px); object-fit: contain; border-radius: 6px; cursor: default; background: #fff; }
  190. .lbfig figcaption { color: #f4f4f7; font-size: 12px; max-width: min(860px, 90vw); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  191. .lightbox .lbx { position: fixed; top: 14px; right: 20px; color: #fff; font-size: 28px; cursor: pointer; border: 0; background: transparent; padding: 4px 8px; }
  192. .lbnav { position: fixed; top: 50%; transform: translateY(-50%); width: 42px; height: 54px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; cursor: pointer; }
  193. .lbnav:hover { background: rgba(255,255,255,.24); }
  194. .lbnav.prev { left: 18px; }
  195. .lbnav.next { right: 18px; }
  196. .lane .bt { font-size: 11.8px; color: #444; line-height: 1.58; padding: 0 10px 9px; margin: 0; max-height: 190px;
  197. overflow: auto; white-space: pre-wrap; }
  198. .lane .meta { color: var(--muted); font-size: 11.5px; }
  199. .lane .fail { color: var(--bad); font-size: 12.5px; padding: 18px 4px; text-align: center; }
  200. /* 分页 */
  201. .pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; }
  202. .pager button { border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  203. padding: 6px 12px; cursor: pointer; font-size: 13px; }
  204. .pager button:disabled { opacity: .4; cursor: default; }
  205. .pager .at { color: var(--muted); font-size: 12.5px; padding: 0 6px; }
  206. .empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 13.5px; }
  207. /* 每条 query 的「真实搜索结果」按钮 */
  208. .btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 8px;
  209. padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
  210. .btn:hover { text-decoration: none; opacity: .9; }
  211. .btn.off { background: #f1f1f4; color: var(--muted); cursor: default; }
  212. /* query 详情页(点进该 query 的多个视频) */
  213. .detail-top { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  214. .back { font-size: 13px; }
  215. .dq { font-size: 18px; margin: 10px 0 2px; }
  216. .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  217. .result-band + .result-band { margin-top: 16px; }
  218. .result-row { align-items: start; }
  219. .row-empty { color: var(--muted); font-size: 12.5px; padding: 8px 0 12px; border-top: 1px dashed var(--line); }
  220. /* 渠道分区:抖音一组、微信公众号一组,标题色区分 */
  221. .pgroup { margin-top: 22px; }
  222. .ghead { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  223. padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
  224. .ghead.dy { color: #111; border-bottom-color: #111; }
  225. .ghead.wx { color: var(--ok); border-bottom-color: var(--ok); }
  226. .ghead.xhs { color: #ff2442; border-bottom-color: #ff2442; }
  227. .ghead .gn { font-size: 11.5px; font-weight: 600; color: var(--muted);
  228. background: #f0f0f3; border-radius: 10px; padding: 1px 8px; }
  229. .gnone { color: var(--muted); font-size: 12.5px; padding: 2px 0 6px; }
  230. .perr { color: var(--bad); font-size: 12px; margin: -6px 0 10px; }
  231. .status { font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 1px 8px; background: #f0f0f3; color: var(--muted); }
  232. .status.done { background: #e6f6ee; color: var(--ok); }
  233. .status.partial, .status.running { background: #fff6df; color: #9a6a00; }
  234. .status.failed { background: #fbeaea; color: var(--bad); }
  235. .src { display: inline-block; margin-top: 8px; font-size: 12px; }
  236. /* 平台区内:创作知识 / 非创作知识 小标题(各自起一行) */
  237. .subhd { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  238. color: var(--ink); margin: 14px 0 8px; }
  239. .subhd::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
  240. .subhd.dim { color: var(--muted); }
  241. .subhd.dim::before { background: var(--bad); }
  242. .subn { font-size: 11px; font-weight: 700; color: var(--muted); background: #f0f0f3; border-radius: 10px; padding: 1px 7px; }
  243. /* 卡片左侧细色条,进一步区分渠道归属 */
  244. .lane.dy { border-left: 3px solid #111; }
  245. .lane.wx { border-left: 3px solid var(--ok); }
  246. .lane.xhs { border-left: 3px solid #ff2442; }
  247. @media (max-width: 720px) {
  248. .lanes { grid-template-columns: 1fr; }
  249. .lightbox { padding: 18px 12px 48px; }
  250. .lightbox img { max-width: 96vw; max-height: 82vh; }
  251. .lbnav { bottom: 10px; top: auto; transform: none; }
  252. .lbnav.prev { left: 26px; }
  253. .lbnav.next { right: 26px; }
  254. }