:root { --bg: #f7f7f8; --card: #fff; --ink: #1a1a1f; --muted: #8a8a94; --line: #e6e6ea; --accent: #5b5bd6; --accent-soft: #ececfb; --ok: #15a36a; --bad: #d04646; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } .wrap { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; } h1 { font-size: 22px; margin: 0 0 2px; letter-spacing: .5px; } .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; } /* 顶部主导航 */ .nav { display: flex; gap: 8px; margin-bottom: 16px; } .nav button { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 7px 16px; border-radius: 9px; cursor: pointer; font-size: 13.5px; } .nav button.on { background: var(--accent); border-color: var(--accent); color: #fff; } /* 筛选条 */ .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; } .filters select, .filters .seg { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--ink); } .seg { display: inline-flex; padding: 0; overflow: hidden; } .seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); } .seg button:last-child { border-right: 0; } .seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .count { color: var(--muted); font-size: 12.5px; margin-left: auto; } /* 表格(query 列表) */ table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; } th { background: #fafafb; color: var(--muted); font-weight: 600; white-space: nowrap; } tr:last-child td { border-bottom: 0; } td.q { font-weight: 600; } .tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 7px; font-size: 12px; margin: 1px 3px 1px 0; white-space: nowrap; } .tag.k { background: #f0f0f3; color: #555; } /* 搜索结果卡 */ .cards { display: grid; grid-template-columns: 1fr; gap: 12px; } .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .card .head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .card .head .q { font-weight: 700; font-size: 14.5px; } .card .head .m { color: var(--muted); font-size: 12px; } .lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .lane { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fcfcfd; } .lane .pl { font-size: 12px; font-weight: 700; margin-bottom: 8px; } .lane .pl.dy { color: #111; } .lane .pl.wx { color: #15a36a; } .lane video, .lane img.cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; background: #000; display: block; } .lane .t { font-size: 12.5px; margin: 7px 0 3px; line-height: 1.45; } /* 小红书完整帖:图片画廊 + 正文(链接会被反爬封,整帖存本地) */ .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .gallery .gimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #f0f0f3; } .lane .bt { font-size: 11.5px; color: #555; line-height: 1.5; margin: 6px 0 4px; max-height: 78px; overflow: hidden; white-space: pre-wrap; } .lane .meta { color: var(--muted); font-size: 11.5px; } .lane .fail { color: var(--bad); font-size: 12.5px; padding: 18px 4px; text-align: center; } /* 分页 */ .pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; } .pager button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; } .pager button:disabled { opacity: .4; cursor: default; } .pager .at { color: var(--muted); font-size: 12.5px; padding: 0 6px; } .empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 13.5px; } /* 每条 query 的「真实搜索结果」按钮 */ .btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 8px; padding: 5px 11px; font-size: 12.5px; white-space: nowrap; } .btn:hover { text-decoration: none; opacity: .9; } .btn.off { background: #f1f1f4; color: var(--muted); cursor: default; } /* query 详情页(点进该 query 的多个视频) */ .detail-top { margin-bottom: 8px; } .back { font-size: 13px; } .dq { font-size: 18px; margin: 10px 0 2px; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; } /* 渠道分区:抖音一组、微信公众号一组,标题色区分 */ .pgroup { margin-top: 22px; } .ghead { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--line); } .ghead.dy { color: #111; border-bottom-color: #111; } .ghead.wx { color: var(--ok); border-bottom-color: var(--ok); } .ghead.xhs { color: #ff2442; border-bottom-color: #ff2442; } .ghead .gn { font-size: 11.5px; font-weight: 600; color: var(--muted); background: #f0f0f3; border-radius: 10px; padding: 1px 8px; } .gnone { color: var(--muted); font-size: 12.5px; padding: 2px 0 6px; } /* 卡片左侧细色条,进一步区分渠道归属 */ .lane.dy { border-left: 3px solid #111; } .lane.wx { border-left: 3px solid var(--ok); } .lane.xhs { border-left: 3px solid #ff2442; } @media (max-width: 720px) { .lanes { grid-template-columns: 1fr; } }