/* 全部工具：白底大标题（Apple 式两句话：黑一句、灰一句）＋页内搜索＋三组筛；bento 排工具，每件一张产品图缩略。 */
#pg-tools .tl-top { padding: 48px 0 0; }
#pg-tools .tl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
#pg-tools .tl-title { font-size: var(--t56); line-height: 1.12; font-weight: 500; min-width: 0; }   /* v7.2 大标题 500 */
html[lang="en"] #pg-tools .tl-title { letter-spacing: -0.02em; }
html[lang="en"] #pg-tools .tc-big .tc-n { letter-spacing: -0.015em; }
#pg-tools .tl-title-2 { display: block; color: var(--ink-2); }
#pg-tools .tl-search { width: 360px; flex: 0 0 360px; margin-bottom: 6px; }
#pg-tools .tl-filters { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
#pg-tools .tl-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; }
#pg-tools .tl-frow .tl-bar { margin: 0 0 0 auto; min-height: 36px; }
#pg-tools .fgroup > .lab { width: 32px; }

#pg-tools .tl-grid-band { padding: 32px 0 var(--s12); }
#pg-tools .tl-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 16px; flex-wrap: wrap; }
#pg-tools .tl-count { font-size: var(--t15); color: var(--ink); }
#pg-tools .tl-count b { font-weight: 500; }
#pg-tools .tl-bar-r { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: 100%; }
#pg-tools .tl-foryou { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 16px; max-width: 100%; flex-wrap: wrap; text-align: left; border-radius: var(--r-pill); font-size: var(--t15); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
#pg-tools .tl-foryou:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--ink); }
#pg-tools .tl-foryou[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 500; }
#pg-tools .tl-foryou .muted { font-size: var(--t13); font-weight: 400; }
#pg-tools .tl-foryou:disabled { color: var(--ink-2); cursor: not-allowed; }
#pg-tools .tl-foryou > svg { flex-shrink: 0; }
#pg-tools .tl-filter-note { color: var(--ink-2); font-size: var(--t13); line-height: 1.6; }

/* ---------- 工具格子 ---------- */
#pg-tools .tl-bento { gap: 20px; }
#pg-tools .tc { padding: 0; color: var(--ink); }
#pg-tools .tc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-img); }
#pg-tools .tc-text { padding: 24px 28px 0; display: flex; flex-direction: column; min-width: 0; }
#pg-tools .tc-k { display: flex; align-items: center; gap: 12px; font-size: var(--t13); color: var(--ink-2); }
#pg-tools .tc-flag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg); color: var(--ink); font-weight: 500; }
#pg-tools .band.alt .tc-flag { background: var(--bg-2); }
#pg-tools .tc-n { font-size: var(--t21); font-weight: 700; line-height: 1.35; margin-top: 8px; }
#pg-tools .tc-o { font-size: var(--t15); color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pg-tools .tc-f { margin-top: 10px; }
#pg-tools .tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 28px 22px; }
#pg-tools .tc-go { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform var(--dur) var(--ease); }
#pg-tools .tc:hover .tc-go { transform: translateX(3px); }
#pg-tools .tc-stale { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t13); color: var(--ink-2); }

/* 产品图缩略：白窗口放在浅灰格子里，从格子边上露出来 */
#pg-tools .tc-thumb { position: relative; overflow: hidden; height: 196px; padding: 24px 24px 0; }
#pg-tools .tc-dev { width: 125%; transform: scale(.8); transform-origin: top left; pointer-events: none; }
#pg-tools .tc-dev .device { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .05); }
html[data-theme="dark"] #pg-tools .tc-dev .device { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
#pg-tools .tc-four .tc-thumb { height: 184px; }
#pg-tools .tc-six .tc-thumb { height: 236px; padding: 28px 40px 0; }
#pg-tools .tc-six .tc-dev { width: 111.2%; transform: scale(.9); }
/* 「询盘先分级」小卡的缩略表：「客户」一栏全是打码条，去掉，让最右一栏「多久回」整列露出来（不然「2 小时内」被卡片边切成半个字） */
#pg-tools .tc:not(.tc-big) [data-screen="t-029"] .d-table :is(th, td):nth-child(3) { display: none; }

/* 放大的第一件：字在上，大数字，产品图占满下半格 */
#pg-tools .tc-big .tc-text { padding: 36px 40px 0; }
#pg-tools .tc-big .tc-n { font-size: var(--t40); line-height: 1.2; font-weight: 500; }   /* 40 号跟大标题同重，只靠字号分层（700 时跟 56 号大标题抢重心） */
#pg-tools .tc-big .tc-o { font-size: var(--t17); -webkit-line-clamp: 3; max-width: 520px; }
#pg-tools .tc-big .tc-delta { margin-top: 20px; }
#pg-tools .tc-big .tc-delta .delta-cap { font-size: var(--t13); margin-top: 8px; }
#pg-tools .tc-big .tc-thumb { flex: 1 1 auto; height: auto; min-height: 220px; padding: 28px 56px 0; }
#pg-tools .tc-big .tc-dev { width: 100%; transform: none; }
#pg-tools .tc-big .tc-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 40px 24px; background: linear-gradient(180deg, transparent, var(--cell-bg) 55%); }

/* 横放的一件（最后剩一件时） */
#pg-tools .tc-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: 280px; }
#pg-tools .tc-wide .tc-text { padding: 36px 40px 0; }
#pg-tools .tc-wide .tc-foot { padding: 24px 0 28px; }
#pg-tools .tc-wide .tc-thumb { height: 100%; padding: 36px 40px 0 0; }
#pg-tools .tc-wide .tc-dev { width: 100%; transform: none; }

/* 空结果 */
#pg-tools .tl-empty { background: var(--cell); border-radius: var(--r-img); padding: 24px 0; }
#pg-tools .tl-empty-a { justify-content: center; margin-top: 16px; }

/* ---------- 同学想要、还没有的 ---------- */
#pg-tools .tl-wants-lead { max-width: 720px; }
#pg-tools .tl-wants-box { background: var(--cell-alt); border-radius: var(--r-img); padding: 32px 40px 8px; }
/* 输入框在上、列表在下（落地「想要个新工具」时标题和输入框同一屏）；最后一行不再画底线 */
#pg-tools .tl-wants-list { margin-top: 28px; }
#pg-tools .tl-wants-list .li:last-child { border-bottom: 0; }
#pg-tools .tl-want .li-k { margin-bottom: 4px; }
#pg-tools .tl-want .li-r .lnk-a { font-size: var(--t17); }   /* 「去看这件」是去别处：蓝字链接，跟首页同一段一样大 */
#pg-tools .tl-want-s { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: var(--t13); color: var(--ink-2); }
#pg-tools .tl-dots { display: inline-flex; gap: 4px; }
#pg-tools .tl-dots i { width: 16px; height: 4px; border-radius: 2px; background: var(--line); }
#pg-tools .tl-dots i.on { background: var(--ink); }
#pg-tools .tl-want-done { display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: var(--t13); color: var(--ink-2); }
#pg-tools .tl-want-done svg { color: var(--ink); }
#pg-tools .tl-want-done:focus { outline: none; }
#pg-tools .tl-add { margin-top: 0; }
#pg-tools .tl-add-l { display: block; font-size: var(--t15); font-weight: 500; margin-bottom: 12px; }
#pg-tools .tl-add-row { display: flex; gap: 12px; }
#pg-tools .tl-add-row .input { flex: 1; min-width: 0; }
#pg-tools .tl-add .err-msg { margin-top: 8px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1279px) {
  #pg-tools .tl-search { width: 300px; flex-basis: 300px; }
}
@media (max-width: 1099px) {
  #pg-tools .tl-head { flex-direction: column; align-items: stretch; gap: 24px; }
  #pg-tools .tl-search { width: 100%; flex: 1 1 auto; }
  #pg-tools .tc-big { grid-column: span 12; }
  #pg-tools .tc-big .tc-thumb { min-height: 280px; max-height: 360px; }
  #pg-tools .tc-six { grid-column: span 6; }
  #pg-tools .tc-wide { grid-template-columns: minmax(0, 1fr); }
  #pg-tools .tc-wide .tc-thumb { padding: 0 40px; height: 220px; }
}
@media (max-width: 759px) {
  #pg-tools .tl-top { padding-top: 40px; }
  #pg-tools .tl-title { font-size: var(--t40); }
  #pg-tools .tl-filters { margin-top: 24px; }
  #pg-tools .fgroup { align-items: flex-start; flex-wrap: nowrap; }
  #pg-tools .fgroup > .lab { padding-top: 8px; flex: none; }
  #pg-tools .tl-frow { flex-direction: column; align-items: stretch; gap: 16px; }
  #pg-tools .tl-frow .tl-bar { margin: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  #pg-tools .tl-foryou .muted { display: none; }
  #pg-tools .tc-text, #pg-tools .tc-big .tc-text, #pg-tools .tc-wide .tc-text { padding: 24px 24px 0; }
  #pg-tools .tc-foot, #pg-tools .tc-big .tc-foot { padding: 16px 24px 20px; }
  #pg-tools .tc-big .tc-n { font-size: var(--t28); }
  #pg-tools .tc-big .tc-thumb { min-height: 220px; max-height: 280px; padding: 24px 24px 0; }
  #pg-tools .tc-six .tc-thumb, #pg-tools .tc-big .tc-thumb { padding: 24px 24px 0; }
  #pg-tools .tc-six .tc-dev { width: 125%; transform: scale(.8); }
  #pg-tools .tc-wide .tc-thumb { padding: 0 24px; }
  #pg-tools .tl-wants-box { padding: 24px 20px 4px; }
  #pg-tools .tl-wants-list { margin-top: 20px; }
  #pg-tools .tl-add-row { flex-direction: column; }
  #pg-tools .tl-add-row .input { flex: none; }   /* 竖排时 flex:1 会把输入框压成 25px 高，照回 52px */
}
