/* 工具中心首页 /tools（spec 20260909-platform-ia-tools-center P1 · FR-1.6，设计稿 §07 / §12；
   2026-09-10 视觉稿对齐：标题独占一行 → 左栏导语 + 通栏搜索 + 示例 chip + 卡片墙，
   右栏「我的工具任务」面板与导语顶对齐；旗舰卡同尺寸暖底 + 「推荐」标记）。
   令牌全部来自 tokens.css（ml_base 已载），不引入新色；tc- 前缀避开 free_hub 的 fh-。
   内容壳 1760 统一口径（spec 20260817-content-shell-unify）。 */
body { --nav-shell-max: var(--content-shell-max, 1760px); --nav-shell-pad: var(--content-shell-pad, clamp(20px, 3.25vw, 56px)); }
main.container-fluid { padding-inline: 0; }
.tc-wrap { max-width: var(--content-shell-max, 1760px); margin: 0 auto; padding: 20px var(--content-shell-pad, clamp(20px, 3.25vw, 56px)) 56px; color: var(--ink); }

/* 页头：大标题独占一行；导语 / 搜索 / 示例词落左栏（与右栏任务面板顶对齐） */
.tc-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
.tc-head { margin-top: 8px; }
.tc-lede { margin: 0; font-size: 13px; color: var(--ink-secondary); line-height: 1.7; }
.tc-lede a { color: var(--brand-heavy); font-weight: 600; text-decoration: none; }
.tc-lede a:hover { text-decoration: underline; }
.tc-search { position: relative; margin-top: 14px; }
.tc-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.tc-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1px solid var(--border); border-radius: var(--radius-md, 8px); background: var(--surface); font-size: 14px; color: var(--ink); box-shadow: var(--shadow-sm); }
.tc-search input::placeholder { color: var(--muted); }
.tc-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.tc-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.tc-examples-label { margin-right: 2px; }
.tc-example { appearance: none; height: 22px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--radius-sm, 6px); background: var(--surface-soft); color: var(--ink-secondary); font: inherit; font-size: 12px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tc-example:hover, .tc-example.is-on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-heavy); }
.tc-example.is-on { font-weight: 600; }
.tc-example:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* 分组 */
.tc-group { margin-top: 28px; }
.tc-group-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.tc-group-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tc-grid { margin-top: 14px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); }

/* 卡契约（PRD §13.5.2）：图标（+推荐标）+ 双 chip（登录 → 计费）/ 名称 / 一句话 / 去向 / CTA。
   旗舰卡与普通卡同尺寸（视觉稿），差异只在暖底、品牌描边、实心图标与「推荐」标。 */
.tc-card {
  display: flex; flex-direction: column; gap: 7px; min-height: 164px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg, 12px); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
a.tc-card:hover { border-color: var(--brand-line); box-shadow: 0 8px 24px rgba(0,0,0,.06); color: var(--ink); text-decoration: none; }
.tc-card--flagship { border-color: var(--brand-line); background: var(--brand-soft); }
a.tc-card--flagship:hover { border-color: var(--brand-light); }
.tc-card--coming { opacity: .68; }
.tc-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tc-card-lead { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tc-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-md, 8px); background: var(--brand-soft); color: var(--brand); font-size: 16px; }
.tc-card--flagship .tc-icon { background: var(--brand); color: #fff; }
.tc-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: var(--radius-pill, 999px); background: var(--brand-soft-strong); color: var(--brand-heavy); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tc-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tc-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-pill, 999px); font-size: 11.5px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-secondary); white-space: nowrap; }
.tc-chip--login { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.tc-chip--fee { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning-dark); }
.tc-card--flagship .tc-chip--login, .tc-card--flagship .tc-chip--fee { background: var(--surface); }
.tc-card strong { margin-top: 3px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tc-card small { font-size: 13px; color: var(--ink-secondary); line-height: 1.65; }
.tc-dest { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--info); }
.tc-dest--ok { color: var(--success-dark); }
.tc-dest--info { color: var(--info); }
.tc-foot { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tc-go { font-size: 13px; font-weight: 600; color: var(--brand-heavy); }
.tc-go--muted { color: var(--ink-disabled); }
.tc-sub { font-size: 12.5px; color: var(--ink-secondary); text-decoration: underline; text-underline-offset: 2px; }
.tc-sub:hover { color: var(--brand-heavy); }
.tc-empty { margin: 32px 0 0; padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg, 12px); color: var(--ink-secondary); font-size: 14px; }
.tc-empty a { color: var(--brand-heavy); font-weight: 600; }

/* 结果去向说明 */
.tc-legend { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface-soft); }
.tc-legend h2 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.tc-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tc-legend li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tc-legend .tc-dest { font-weight: 600; }
.tc-legend-copy { color: var(--ink-secondary); line-height: 1.6; }

/* 底部 CTA：沿用 free_hub .fh-cta 视觉（本页自带一份，free_hub 退役后可删） */
.fh-cta.tc-cta { margin-top: 32px; padding: 22px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-lg, 12px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tc-cta strong { font-size: 16px; }
.tc-cta p { margin: 4px 0 0; font-size: 13px; color: var(--ink-secondary); }
.tc-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius-md, 8px); background: var(--brand-action, #ad4e00); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.tc-cta a:hover { background: var(--brand-action-hover, #873800); color: #fff; }

/* ── P2（spec 20260909 FR-2.4，设计稿 §07 注记 1 / §09）：工具域 Tab 条 + 右栏「我的工具任务」+ /tools/jobs ── */
.tc-domain-tabsbar { margin: -6px 0 16px; }
.tc-domain-tabsbar .wb-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tc-domain-tabsbar .wb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 10px; font-size: 14px; color: var(--ink-secondary); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tc-domain-tabsbar .wb-tab.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.tc-domain-tabsbar .wb-tab-count { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--radius-pill, 999px); background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tc-domain-tabsbar .wb-tab-count--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }

.tc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tc-layout > .tc-main { min-width: 0; }
/* 无右栏（匿名 / v1）时导语与搜索不随 1760 壳无限拉宽 */
.tc-single .tc-lede, .tc-single .tc-search { max-width: 860px; }
/* 右栏任务面板：与左栏导语顶对齐（视觉稿），行与页脚按钮自带内距，面板本身不留 padding */
.tc-aside { position: sticky; top: 72px; margin-top: 8px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.tc-aside-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tc-aside-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.tc-aside-head a { font-size: 13px; font-weight: 600; color: var(--brand-heavy); text-decoration: none; white-space: nowrap; }
.tc-aside-head a:hover { text-decoration: underline; }
.tc-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tc-aside-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.tc-aside-row:first-child { border-top: 0; }
.tc-aside-ico.tj-ico { width: 32px; height: 32px; font-size: 14px; border-radius: var(--radius-md, 8px); background: var(--surface-soft); color: var(--brand); }
.tc-aside-copy { min-width: 0; }
.tc-aside-copy b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-aside-copy small { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tc-aside-btn.tj-btn { height: 28px; padding: 0 12px; border-color: var(--brand-line); color: var(--brand-heavy); font-size: 12.5px; border-radius: var(--radius-sm, 6px); }
.tc-aside-btn.tj-btn:hover { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand-heavy); }
.tc-aside-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.tc-aside-more { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: var(--radius-md, 8px); background: var(--surface-soft); color: var(--ink-secondary); font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.tc-aside-more:hover { background: var(--brand-soft); color: var(--brand-heavy); text-decoration: none; }
.tc-aside-empty { margin: 0; padding: 16px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.tc-aside-empty a { color: var(--brand-heavy); font-weight: 600; text-decoration: none; }

.tj-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tj-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-pill, 999px); background: var(--surface); color: var(--ink-secondary); font-size: 13px; cursor: pointer; }
.tj-pill b { font-weight: 600; }
.tj-pill.is-on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-heavy); }
.tj-status { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tj-status.is-error { color: var(--danger); }

.tj-table { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface); overflow: hidden; }
.tj-tr { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1.6fr 1.5fr; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.tj-tr:first-child { border-top: 0; }
.tj-th { background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.tj-right { text-align: right; }
.tj-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tj-ico { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-md, 8px); background: var(--brand-soft); color: var(--brand); font-size: 14px; }
.tj-ico--temp { background: var(--warning-bg); color: var(--warning-dark); }
.tj-name-text { min-width: 0; }
.tj-name-text b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-name-text small { display: block; color: var(--muted); font-size: 12px; }
.tj-name-text a { color: inherit; text-decoration: none; }
.tj-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-pill, 999px); font-size: 12px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-secondary); white-space: nowrap; }
.tj-chip--warn { margin-left: 6px; background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning-dark); }
.tj-state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tj-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.tj-dot--is-success { background: var(--success-dark); }
.tj-dot--is-failed { background: var(--danger); }
.tj-dot--is-running { background: var(--info); }
.tj-dot--is-cancelled { background: var(--ink-disabled); }
.tj-progress { display: inline-block; width: 100px; height: 6px; border-radius: var(--radius-pill, 999px); background: var(--surface-soft); overflow: hidden; }
.tj-progress i { display: block; height: 100%; background: var(--info); }
.tj-reason { flex-basis: 100%; color: var(--danger); font-size: 12px; }
.tj-product a { color: var(--brand-heavy); text-decoration: none; }
.tj-muted { color: var(--muted); }
.tj-note { margin: 12px 0 0; font-size: 13px; }
.tj-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tj-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-md, 8px); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tj-btn:hover { border-color: var(--brand-line); color: var(--brand-heavy); text-decoration: none; }
.tj-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.tj-btn--primary:hover { color: #fff; opacity: .9; }
.tj-btn[disabled] { opacity: .6; cursor: default; }
.tj-empty-filter { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tj-empty { margin-top: 16px; padding: 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg, 12px); }
.tj-empty strong { font-size: 16px; }
.tj-empty p { margin: 4px 0 12px; font-size: 13px; color: var(--ink-secondary); }
.tj-cloud-grid { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tj-cloud-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface); text-decoration: none; color: var(--ink); }
.tj-cloud-card:hover { border-color: var(--brand-line); color: var(--ink); text-decoration: none; }
.tj-cloud-card .tc-icon { background: var(--info-bg); color: var(--info); }
.tj-cloud-copy { flex: 1 1 auto; min-width: 0; }
.tj-cloud-copy b { display: block; font-weight: 600; }
.tj-cloud-copy small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1023.98px) {
  .tc-title { font-size: 22px; }
  .tc-layout { grid-template-columns: 1fr; }
  .tc-aside { position: static; margin-top: 24px; }
  .tj-tr { grid-template-columns: 1fr 1fr; }
  .tj-th { display: none; }
  .tj-name, .tj-acts { grid-column: 1 / -1; }
  .tj-acts { justify-content: flex-start; }
}
