/* ==========================================================================
   AI Hub 设计系统
   4px 间距基线 / 1200px 内容宽度 / 浅色专业主题
   ========================================================================== */

:root {
  --brand-50: #eff3ff;
  --brand-100: #dfe7ff;
  --brand-200: #c3d1ff;
  --brand-500: #4f5cf0;
  --brand-600: #4149d8;
  --brand-700: #343bb4;

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f1f4f9;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;

  --green-50: #ecfdf3;
  --green-700: #067647;
  --amber-50: #fffaeb;
  --amber-700: #b54708;
  --red-50: #fef3f2;
  --red-700: #b42318;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 34px -18px rgba(15, 23, 42, 0.22);

  --container: 1200px;
  --header-h: 64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.main-nav a {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.search-trigger:hover {
  border-color: var(--line-strong);
}

.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink-700);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink-700);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(1100px 420px at 18% -10%, rgba(79, 92, 240, 0.09), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  max-width: 820px;
}

.hero__sub {
  margin-top: 14px;
  max-width: 660px;
  font-size: 16px;
  color: var(--ink-500);
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-500);
}

.hero__stats strong {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 15px;
}

.search-box {
  margin-top: 28px;
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(79, 92, 240, 0.12);
}

.search-box__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--ink-400);
}

.search-box .btn {
  height: 44px;
  padding: 0 22px;
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-500);
}

.hot-searches a {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-700);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hot-searches a:hover {
  border-color: var(--brand-200);
  color: var(--brand-700);
}

/* ---------- Sections ---------- */

.section {
  padding: 44px 0;
}

.section--tight {
  padding: 32px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

.section-link {
  font-size: 13px;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ---------- Category grid ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-xs);
}

.category-card__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.category-card__body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.category-card__name {
  display: -webkit-box;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-900);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card__count {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-400);
  white-space: nowrap;
}

/* ---------- Tool cards ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.tool-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tool-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  flex-shrink: 0;
  overflow: hidden;
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card__title {
  min-width: 0;
}

.tool-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-card__tagline {
  min-height: 2.9em;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tool-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-card__cat {
  font-size: 12px;
  color: var(--ink-400);
}

/* ---------- Tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  background: var(--surface-alt);
  color: var(--ink-500);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag--price {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.tag--free {
  background: var(--green-50);
  color: var(--green-700);
  border-color: #d3f0e0;
}

.tag--paid {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: #f5e3c0;
}

.tag--warn {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: #f5e3c0;
}

.tag--ok {
  background: var(--green-50);
  color: var(--green-700);
  border-color: #d3f0e0;
}

.tag--muted {
  color: var(--ink-500);
}

.cat-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 32px;
}

.cat-index__card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.cat-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-index__head a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.cat-index__head a:hover {
  color: var(--brand-700);
}

.cat-index__head span {
  font-size: 12px;
  color: var(--ink-400);
  white-space: nowrap;
}

.cat-index__desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-500);
}

.cat-index__children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cat-index__children .tag span {
  margin-left: 5px;
  color: var(--ink-400);
}

/* ---------- Two-column feature layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- Tool list rows ---------- */

.tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.tool-row:last-child {
  border-bottom: 0;
}

.tool-row .tool-logo {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.tool-row__body {
  min-width: 0;
  flex: 1;
}

.tool-row__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.tool-row__tagline {
  font-size: 13px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-row__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Panel / sidebar ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-list li + li {
  margin-top: 2px;
}

.quick-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  font-size: 14px;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
}

.quick-list a:hover {
  background: var(--surface-alt);
  color: var(--brand-700);
}

.quick-list__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-list__meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-400);
}

.promo-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f3f5ff, #ffffff);
  border: 1px solid var(--brand-100);
}

.promo-card h3 {
  font-size: 15px;
}

.promo-card p {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--ink-500);
}

/* ---------- Workflow ---------- */

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-card {
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workflow-card__step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.workflow-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.workflow-card h3 {
  font-size: 15px;
}

.workflow-card p {
  font-size: 13px;
  color: var(--ink-500);
}

.workflow-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 24px;
  background: var(--ink-900);
  color: #cbd5e1;
}

.site-footer__inner {
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand .brand__name {
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  padding: 4px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-400);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--ink-500);
}

.breadcrumb a:hover {
  color: var(--brand-600);
}

/* ---------- Page head ---------- */

.page-head {
  padding: 28px 0 20px;
}

.page-head h1 {
  font-size: 30px;
}

.page-head p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-500);
  max-width: 760px;
}

/* ---------- Filters ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-bar select,
.filter-bar input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink-700);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--brand-500);
  outline: none;
}

.filter-bar .spacer {
  flex: 1;
}

.filter-count {
  font-size: 12px;
  color: var(--ink-500);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--ink-500);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  border: 1px solid var(--brand-100);
}

/* ---------- Detail page ---------- */

.detail-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 28px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 16px;
}

.detail-head .tool-logo {
  width: 64px;
  height: 64px;
  font-size: 24px;
  border-radius: 14px;
}

.detail-head__body {
  flex: 1;
  min-width: 0;
}

.detail-head h1 {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-head__tagline {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-500);
  max-width: 720px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}

.fact {
  background: var(--surface);
  padding: 14px 16px;
}

.fact__label {
  font-size: 12px;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fact__value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}

.fact__note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-400);
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.content-block h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.content-block h3 {
  font-size: 15px;
  margin: 18px 0 8px;
}

.prose {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-700);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 18px;
  list-style: disc;
}

.prose li {
  margin: 6px 0;
}

.note {
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.6;
}

.source-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list a {
  color: var(--brand-600);
  word-break: break-all;
}

/* ---------- Auth ---------- */

.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: linear-gradient(180deg, #f3f5fb, var(--bg));
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-size: 22px;
}

.auth-card .sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
}

/* ---------- Forms ---------- */

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink-900);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 92, 240, 0.1);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.field small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-400);
}

.field--error input,
.field--error textarea,
.field--error select {
  border-color: #f04438;
}

.error-text {
  margin-top: 4px;
  font-size: 12px;
  color: var(--red-700);
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}

.alert--error {
  background: var(--red-50);
  color: var(--red-700);
  border-color: #fecdc9;
}

.alert--success {
  background: var(--green-50);
  color: var(--green-700);
  border-color: #d3f0e0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Empty / alert states ---------- */

.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state h3 {
  font-size: 16px;
}

.empty-state p {
  margin: 6px auto 16px;
  font-size: 13px;
  color: var(--ink-500);
  max-width: 420px;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-700);
}

.pagination a:hover {
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.pagination .is-current {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.pagination .is-disabled {
  opacity: 0.5;
}

/* ---------- Admin ---------- */

.admin-body {
  background: var(--surface-alt);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--ink-900);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar__brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__brand .brand__mark {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-900);
}

.admin-sidebar__brand span {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.admin-nav {
  padding: 12px 10px;
  overflow-y: auto;
}

.admin-nav__group {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 12px 10px 6px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #cbd5e1;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav a.is-active {
  background: var(--brand-600);
  color: #fff;
}

.admin-sidebar__foot {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94a3b8;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
}

.admin-topbar h1 {
  font-size: 17px;
  font-weight: 600;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
}

.admin-content {
  padding: 24px;
}

.admin-content .container {
  max-width: none;
  padding: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat-card__label {
  font-size: 12px;
  color: var(--ink-500);
}

.stat-card__value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.stat-card__note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-400);
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}

.admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-card__head h2 {
  font-size: 15px;
}

.admin-card__body {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--surface-alt);
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .cell-main {
  color: var(--ink-900);
  font-weight: 500;
}

.data-table .cell-sub {
  font-size: 12px;
  color: var(--ink-400);
}

.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.link-action {
  font-size: 13px;
  color: var(--brand-600);
}

.link-action:hover {
  text-decoration: underline;
}

.danger-action {
  color: var(--red-700);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
}

.admin-form {
  max-width: 860px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.notice {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.7;
}

.cat-picker {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: var(--surface);
}

.cat-picker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid #f1f4f9;
}

.cat-picker__item:last-child {
  border-bottom: 0;
}

.cat-picker__item.is-root {
  font-weight: 600;
  color: var(--ink-900);
}

.cat-picker__item.is-child {
  padding-left: 24px;
  color: var(--ink-700);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 14px; overflow-x: clip; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 29px; }
  .hero__sub { font-size: 15px; }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .search-box { flex-wrap: nowrap; }
  .search-box input { height: 44px; padding-right: 4px; font-size: 14px; }
  .search-box .btn { height: 40px; padding: 0 14px; flex-shrink: 0; }
  .search-box__icon { width: 30px; }
  .search-trigger { display: none; }
  .category-card { padding: 10px 12px; gap: 10px; min-height: 72px; }
  .category-card__mark { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
  .category-card__name { font-size: 13px; }
  .category-card__count { font-size: 11px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: 1fr; }
  .cat-index { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 34px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .detail-head { flex-direction: column; }
  .detail-head .tool-logo { width: 52px; height: 52px; font-size: 20px; }
  .detail-head h1 { font-size: 23px; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { padding: 10px; }
  .filter-bar select, .filter-bar input { flex: 1 1 140px; }
  .admin-sidebar { display: none; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card__value { font-size: 22px; }
  .tool-row__tagline { white-space: normal; }
  .tool-row__side { display: none; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .hero__eyebrow { font-size: 11px; }
  .brand__sub { display: none; }
  .search-trigger kbd { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px 14px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* ---------- Tasks ---------- */

.chip--active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.task-hero .breadcrumb {
  margin-bottom: 10px;
}

.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 22px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.task-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-400);
  flex-wrap: wrap;
}

.task-card__cat {
  margin-left: auto;
  color: var(--ink-400);
}

.task-card h2 {
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}

.task-card h2 a {
  color: var(--ink-900);
}

.task-card h2 a:hover {
  color: var(--brand-600);
}

.task-card__summary {
  margin: 0;
  min-height: 3.9em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.task-card__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-card__toolcount {
  margin-left: 4px;
  font-size: 12px;
  color: var(--ink-400);
}

.tool-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.task-hero {
  padding: 24px 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.task-hero__body {
  max-width: 880px;
}

.task-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
}

.task-hero__cat {
  color: var(--brand-600);
}

.task-hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 16px 0 12px;
}

.task-hero__summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-600);
}

.task-hero__audience {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-400);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 14px;
}

.step-item__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-item__body h3 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.step-item__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-600);
}

.alt-list,
.related-list,
.tool-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alt-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alt-list a,
.related-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}

.alt-list a:hover,
.related-list a:hover {
  color: var(--brand-600);
}

.alt-list span,
.related-list span {
  font-size: 12px;
  color: var(--ink-400);
}
.related-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-mini-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-900);
}

.tool-mini-list a:hover {
  color: var(--brand-600);
}

.task-card--cta {
  justify-content: space-between;
  gap: 16px;
  background: var(--brand-50);
  border-style: dashed;
  border-color: var(--brand-200);
}

.task-card--cta h2 {
  font-size: 17px;
  color: var(--ink-900);
}

.task-card--cta .task-card__summary {
  min-height: 0;
  margin-top: 8px;
  -webkit-line-clamp: 4;
}

.task-card--cta .task-card__foot {
  border-top: 0;
  padding-top: 0;
  justify-content: flex-start;
}

.split--half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .task-grid { grid-template-columns: 1fr; }
  .split--half { grid-template-columns: 1fr; }
  .task-hero h1 { font-size: 25px; }
  .task-hero__summary { font-size: 15px; }
  .task-card__cat { margin-left: 0; }
  .task-hero .breadcrumb { font-size: 12px; }
}

/* ---------- Compare ---------- */

.tool-logo--sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}

.compare-toolbar__meta {
  font-size: 13px;
  color: var(--ink-500);
}

.compare-toolbar__meta strong {
  color: var(--ink-900);
  font-size: 15px;
}

.compare-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-600);
  cursor: pointer;
}

.switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-600);
}

.compare-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table thead th {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table__label {
  width: 168px;
  min-width: 168px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--surface-alt);
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--line);
}

.compare-table tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table td {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table tbody tr.is-diff td {
  background: #f4f7ff;
}

.diff-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  vertical-align: middle;
}

.compare-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.compare-head > div {
  min-width: 0;
}

.compare-head a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.compare-head a:hover {
  color: var(--brand-600);
}

.compare-head__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-400);
}

.compare-head__remove {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-400);
  font-size: 16px;
  line-height: 1;
}

.compare-head__remove:hover {
  background: var(--surface-alt);
  color: var(--red-700);
}

.compare-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-600);
}

.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.compare-empty {
  font-size: 13px;
  color: var(--ink-400);
}

.compare-cards {
  display: none;
}

.compare-card {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.compare-card__head > div {
  min-width: 0;
}

.compare-card__head a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.compare-card__head > div span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-400);
}

.compare-card__row {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.compare-card__row:first-child {
  border-top: 0;
}

.compare-card__row dt {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--ink-400);
}

.compare-card__row dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
}

.compare-add {
  margin-top: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.compare-add h2 {
  font-size: 15px;
  margin-bottom: 4px;
}

.compare-add__form select {
  min-width: 240px;
}

.compare-add__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.compare-picker {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.compare-picker__head h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.compare-picker__head p {
  font-size: 13px;
  color: var(--ink-500);
}

.compare-picker__count {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-500);
}

.compare-picker__count span {
  color: var(--brand-600);
  font-weight: 600;
}

.compare-picker__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.compare-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  font-size: 14px;
}

.compare-picker__item input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-600);
  flex-shrink: 0;
}

.compare-picker__name {
  flex: 1;
  min-width: 0;
  color: var(--ink-900);
}

.compare-picker__meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-400);
}

.compare-picker__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  max-width: calc(100% - 32px);
}

.compare-bar[hidden] {
  display: none;
}

.compare-bar__text {
  font-size: 13px;
  white-space: nowrap;
}

.compare-bar__text strong {
  color: #fff;
}

.compare-bar a {
  padding: 6px 12px;
  background: var(--brand-600);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.compare-bar a:hover {
  background: var(--brand-700);
}

.compare-bar button {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.compare-bar button:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .compare-wrap { display: none; }
  .compare-cards { display: block; }
}

@media (max-width: 720px) {
  .compare-picker__list { grid-template-columns: 1fr; }
  .compare-picker { padding: 16px; }
  .compare-toolbar__actions { width: 100%; justify-content: space-between; }
  .compare-add__form select { flex: 1; min-width: 0; }
  .compare-bar { bottom: 12px; padding: 8px 12px; gap: 10px; }
  .compare-bar__text { font-size: 12px; }
}

/* ---------- Workflows ---------- */

.wf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.wf-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.wf-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-400);
  flex-wrap: wrap;
}

.wf-card__cat {
  margin-left: auto;
}

.wf-card h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}

.wf-card h2 a {
  color: var(--ink-900);
}

.wf-card h2 a:hover {
  color: var(--brand-600);
}

.wf-card__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.wf-card__steps {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-600);
}

.wf-card__steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wf-card__steps li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-200);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.wf-card__more {
  color: var(--ink-400);
}

.wf-card__more::before {
  background: transparent !important;
}

.wf-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.wf-card__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wf-card__toolcount {
  margin-left: 4px;
  font-size: 12px;
  color: var(--ink-400);
}

.wf-steps {
  display: flex;
  flex-direction: column;
}

.wf-step {
  display: flex;
  gap: 14px;
}

.wf-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}

.wf-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.wf-step__line {
  width: 1px;
  flex: 1;
  min-height: 18px;
  margin: 8px 0;
  background: var(--line);
}

.wf-step__body {
  min-width: 0;
  padding-bottom: 22px;
}

.wf-step:last-child .wf-step__body {
  padding-bottom: 0;
}

.wf-step__body h3 {
  margin: 2px 0 5px;
  font-size: 15px;
}

.wf-step__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-600);
}

.wf-step__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wf-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-700);
}

.wf-tool:hover {
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.wf-tool .tool-badge {
  width: 22px;
  height: 22px;
  font-size: 10px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .wf-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wf-card { padding: 16px; }
  .wf-card__cat { margin-left: 0; }
}

/* ---------- 提示词库（2026-12-03） ---------- */

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.prompt-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-500);
}

.prompt-card__vars {
  color: var(--ink-500);
}

.prompt-card__pick {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
}

.prompt-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.prompt-card h2 a {
  color: var(--ink-900);
  text-decoration: none;
}

.prompt-card h2 a:hover {
  color: var(--brand-700);
}

.prompt-card__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card__varlist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.prompt-var-chip {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--ink-700);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px;
}

.prompt-card__more {
  align-self: center;
  font-size: 12px;
  color: var(--ink-500);
}

.prompt-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.prompt-card__model {
  font-size: 12px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}

.prompt-hero__body {
  max-width: 980px;
}

.prompt-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-500);
}

.prompt-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.prompt-hero__summary {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-600);
}

.prompt-hero__model {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-500);
}

.prompt-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.prompt-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.prompt-box__head h2 {
  margin: 0;
  font-size: 15px;
}

.prompt-body {
  margin: 0;
  padding: 20px;
  max-height: 560px;
  overflow: auto;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-800);
  white-space: pre-wrap;
  word-break: break-word;
  background: #fcfcfe;
}

.prompt-box__hint {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

.prompt-copy-count {
  display: inline-block;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--ink-400);
  white-space: nowrap;
}

.prompt-box__hint code,
.prompt-var-table code {  padding: 1px 5px;
  border-radius: 3px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.95em;
}

.prompt-var-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.prompt-var-table th,
.prompt-var-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prompt-var-table th {
  background: var(--surface-alt);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
}

.prompt-var-table tr:last-child td {
  border-bottom: 0;
}

.prompt-notes {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-600);
}

.prompt-facts {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.prompt-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.prompt-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.prompt-facts dt {
  color: var(--ink-500);
  flex-shrink: 0;
}

.prompt-facts dd {
  margin: 0;
  color: var(--ink-800);
  text-align: right;
}

.prompt-task {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  text-decoration: none;
}

.prompt-task strong {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
}

.prompt-task span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

.prompt-task:hover {
  border-color: var(--brand-300, #b8bdf5);
}

@media (max-width: 900px) {
  .prompt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .prompt-hero { padding: 22px 0 24px; }
  .prompt-hero h1 { font-size: 26px; }
  .prompt-hero__summary { font-size: 15px; }
  .prompt-card { padding: 18px; }
  .prompt-body { padding: 16px; font-size: 13px; max-height: none; overflow: visible; }
  .prompt-box__head { padding: 10px 14px; }
  .prompt-box__hint { padding: 10px 14px; }
  .prompt-var-table { min-width: 0; }
  .prompt-var-table thead { display: none; }
  .prompt-var-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prompt-var-table tr:last-child { border-bottom: 0; }
  .prompt-var-table td { display: block; padding: 2px 0; border-bottom: 0; }
  .prompt-var-table td:first-child { margin-bottom: 4px; }
  .prompt-var-table td:nth-child(2)::before { content: "要填："; color: var(--ink-500); font-size: 12px; }
  .prompt-var-table td:nth-child(3)::before { content: "示例："; color: var(--ink-500); font-size: 12px; }
  .prompt-var-table td:nth-child(3) { color: var(--ink-500); font-size: 13px; }
}

.prompt-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.prompt-mini:hover {
  border-color: var(--brand-300, #b8bdf5);
  transform: translateY(-1px);
}

.prompt-mini__meta {
  font-size: 12px;
  color: var(--ink-500);
}

.prompt-mini h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-900);
}

.prompt-mini p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-mini__vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 1280px) {
  .site-header__inner { gap: 16px; }
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
}

/* ---------- 教程内容库（2026-12-03） ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-500);
}

.article-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.article-card h2 a {
  color: var(--ink-900);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--brand-700);
}

.article-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.article-card__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.article-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}

.article-hero__body {
  max-width: 900px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-500);
}

.article-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.article-hero__excerpt {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-600);
}

.article-body {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-800);
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-900);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-900);
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 7px;
}

.article-body li {
  line-height: 1.8;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--brand-300, #b8bdf5);
  background: var(--brand-50);
  color: var(--ink-700);
  font-size: 14.5px;
}

.article-body code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-alt);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.92em;
}

.article-body strong {
  color: var(--ink-900);
}

.article-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-mini:hover {
  border-color: var(--brand-300, #b8bdf5);
  transform: translateY(-1px);
}

.article-mini__meta {
  font-size: 12px;
  color: var(--ink-500);
}

.article-mini h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-900);
}

.article-mini p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1360px) {
  .main-nav .nav-secondary { display: none; }
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .article-hero { padding: 22px 0 24px; }
  .article-hero h1 { font-size: 26px; }
  .article-hero__excerpt { font-size: 15px; }
  .article-card { padding: 18px; }
  .article-body { font-size: 15px; line-height: 1.85; }
  .article-body h2 { font-size: 19px; margin-top: 28px; }
  .article-body h3 { font-size: 16px; }
}

/* ---------- 编辑精选对比页（2026-12-03） ---------- */

.comparison-section {
  margin: 8px 0 26px;
}

.comparison-section .section-head {
  margin-top: 20px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.comparison-card:hover {
  border-color: var(--brand-300, #b8bdf5);
  transform: translateY(-1px);
}

.comparison-card__meta {
  font-size: 12px;
  color: var(--ink-500);
}

.comparison-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-900);
}

.comparison-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comparison-card .section-link {
  margin-top: auto;
  padding-top: 4px;
}

.compare-verdict {
  margin: 8px 0 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-md);
  background: var(--brand-50);
}

.compare-verdict h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink-900);
}

.compare-verdict .prose p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-700);
}

.compare-verdict .note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
}

.compare-editorial {
  margin-bottom: 20px;
}

.compare-editorial .prose p {
  margin: 0 0 10px;
}

.compare-reading {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-section { margin-bottom: 20px; }
  .compare-verdict { padding: 16px 18px; }
  .compare-verdict h2 { font-size: 17px; }
}

.tool-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2, #f8f9fc);
}

.tool-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-700);
  padding: 6px 8px;
  border-radius: 6px;
}

.tool-check:hover {
  background: #fff;
}

.tool-check input {
  width: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .tool-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tool-check-grid { grid-template-columns: 1fr; }
}

.article-hero .breadcrumb {
  margin-bottom: 16px;
}

.article-hero__meta {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .article-hero .breadcrumb { margin-bottom: 12px; }
}

/* ---------- 任务验收标准与 FAQ（2026-12-04） ---------- */

.criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.criteria-list li {
  position: relative;
  padding: 10px 12px 10px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2, #f8f9fc);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-700);
}

.criteria-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-500);
}

.task-faq .faq-item {
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}

.task-faq .faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.task-faq .faq-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-900);
}

.task-faq .faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-600);
}

.task-facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.task-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.task-facts > div:last-child {
  border-bottom: 0;
}

.task-facts dt {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--ink-500);
}

.task-facts dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-800);
  text-align: right;
}

@media (max-width: 600px) {
  .criteria-list li { font-size: 13.5px; }
  .task-faq .faq-item h3 { font-size: 15px; }
  .task-facts > div { align-items: flex-start; }
}

.tool-grid--task {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .tool-grid--task { grid-template-columns: 1fr; }
}

/* ---------- 内容互链（2026-12-04） ---------- */

.related-group {
  margin-top: 12px;
}

.related-group:first-of-type {
  margin-top: 4px;
}

.related-group__title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.related-group .related-list {
  gap: 6px;
}

@media (max-width: 600px) {
  .related-group { margin-top: 10px; }
}
