@charset "UTF-8";

:root {
  color-scheme: light;
  --background: #f7f7f2;
  --foreground: #29332e;
  --border: #d9ded5;
  --bg: #f7f7f2;
  --sidebar: #efefea;
  --surface: #e9ece6;
  --fg: #29332e;
  --muted: #58655e;
  --quiet: #68746c;
  --line: #d9ded5;
  --accent: #38644e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 14px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #38644e; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; transform: translateY(-160%); padding: 10px 18px; background: var(--fg); color: var(--bg); }
.skip-link:focus { transform: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 224px; display: flex; flex-direction: column; padding: 29px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 42px; line-height: 1.15; }
.brand > svg, .brand > img { width: 27px; height: 27px; color: var(--accent); }
.brand > span { font-size: 18px; font-weight: 750; letter-spacing: -0.7px; }
.brand strong { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
.sidebar-label { margin: 0 12px 10px; color: var(--quiet); font-size: 11px; }
.filters { display: grid; gap: 5px; }
.filter { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; transition: color 120ms, background 120ms; }
.filter svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.filter:hover { color: var(--fg); background: #29332e07; }
.filter.active { color: var(--accent); background: #38644e12; }
.filter.active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--accent); border-radius: 2px; }
.filter-count { margin-left: auto; font: 11px ui-monospace, monospace; opacity: 0.8; }
.sidebar-links { margin-top: 34px; }
.sidebar-links > a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 8px 12px; color: var(--muted); font-size: 12px; }
.sidebar-links > a span { color: var(--quiet); }
.sidebar a:hover { color: var(--fg); }
.sidebar-bottom { margin-top: auto; padding: 32px 12px 0; color: var(--quiet); font-size: 11px; }
.sidebar-bottom > a { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.directory-main { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 65px; padding: 12px 40px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.topbar p span { margin: 0 12px; color: var(--quiet); }
.topbar > a { color: var(--quiet); }
.topbar > a:hover { color: var(--fg); }
.directory-content { width: 100%; max-width: 1440px; padding: 37px 40px 0; margin: 0 auto; flex: 1; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.directory-heading h1 { font-size: 25px; font-weight: 650; line-height: 1.4; letter-spacing: -0.6px; }
.directory-heading p { margin-top: 7px; font-size: 12px; color: var(--muted); }
.search-field { display: flex; align-items: center; gap: 10px; width: 276px; flex-shrink: 0; min-height: 42px; padding: 0 12px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; }
.search-field svg { width: 17px; height: 17px; fill: none; stroke: var(--quiet); stroke-width: 1.7; flex-shrink: 0; }
.search-field input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; padding: 0; background: transparent; color: var(--fg); font-size: 12px; }
.search-field input::placeholder { color: var(--quiet); }
.search-field:focus-within { border-color: var(--accent); outline: 1px solid var(--accent); }
.directory-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tool-count { color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; list-style: none; padding: 0; margin: 0; }
.tool-group { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 8px; }
.tool-group h3 { font-size: 13px; font-weight: 600; }
.tool-group > span { font-size: 11px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.tool-card { position: relative; min-width: 0; }
[data-tool-card-stage] { perspective: 1100px; }
.tool-card-surface { height: 100%; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcf9; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 350ms ease-out, box-shadow 350ms ease-out, border-color 350ms ease-out; }
.tool-card-surface[data-tilting] { transition-duration: 100ms; box-shadow: 0 16px 28px -14px color-mix(in srgb, var(--fg) 25%, transparent); }
[data-tool-card-stage]:hover > .tool-card-surface, .tool-card-surface:focus-within { border-color: #a9b9ac; }
.tool-link { display: block; flex: 1; }
.tool-top { display: flex; gap: 12px; align-items: center; }
.tool-icon { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; border: 1px solid #d9ded5; border-radius: 7px; background: var(--surface); color: #58655e; }
.tool-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon-image { border: 0; background: transparent; }
.tool-icon-image img { display: block; width: 37px; height: 37px; object-fit: contain; }
.tool-name { min-width: 0; flex: 1; }
.tool-top h4 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.tool-tagline { margin-top: 3px; color: var(--quiet); font-size: 11px; }
.tool-arrow { color: var(--quiet); font-size: 16px; transition: color 140ms, transform 140ms; }
.tool-link:hover .tool-arrow { color: var(--accent); transform: translate(2px, -2px); }
.tool-link:hover h4 { color: var(--accent); }
.tool-description { margin: 13px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tool-requirements { color: var(--quiet); font-size: 10px; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.tool-source { color: var(--quiet); }
.tool-source:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state h2 { font-size: 17px; font-weight: 600; }
.empty-state p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 20px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 5px; color: var(--fg); background: var(--surface); }
.compatibility { display: flex; align-items: baseline; gap: 9px; margin-top: 26px; color: var(--quiet); font-size: 11px; line-height: 1.8; }
.compatibility > span:first-child { color: var(--muted); }
.directory-about { margin-top: 36px; border-top: 1px solid var(--line); }
.directory-about > summary { display: flex; justify-content: space-between; padding: 20px 0; font-size: 12px; color: var(--muted); list-style: none; cursor: pointer; }
.directory-about > summary::-webkit-details-marker { display: none; }
.directory-about[open] > summary > span { transform: rotate(45deg); }
.about-content { max-width: 800px; padding: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-content h2 { font-size: 14px; margin: 24px 0 10px; color: var(--fg); }
.start-steps { padding-left: 20px; }
.start-steps li { margin-bottom: 8px; }
.faq-list { margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { padding: 12px 0; color: var(--fg); cursor: pointer; }
.faq-list p { padding: 0 0 16px; }
.source-note { margin-top: 20px; color: var(--quiet); }
.directory-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 40px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }
.directory-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.directory-footer button { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.directory-footer a:hover, .directory-footer button:hover { color: var(--fg); }
.consent-banner { position: fixed; bottom: 20px; right: 24px; z-index: 30; width: min(440px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--sidebar); box-shadow: 0 12px 48px #0006; }
.consent-banner p { font-size: 12px; color: var(--muted); }
.consent-banner a { text-decoration: underline; }
.consent-banner > div { display: flex; gap: 10px; margin-top: 16px; }
.consent-banner button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fg); font-size: 12px; }
.consent-banner button:first-child { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1500px) { .tools-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1050px) {
  .sidebar { width: 200px; padding-inline: 12px; }
  .directory-main { margin-left: 200px; }
  .topbar, .directory-footer { padding-inline: 26px; }
  .directory-content { padding-inline: 26px; }
  .search-field { width: 225px; }
  .tools-grid { column-gap: 16px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 20px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; margin-bottom: 20px; }
  .brand > span { display: flex; gap: 7px; align-items: baseline; }
  .brand strong { margin: 0; font-size: 13px; letter-spacing: 0; }
  .sidebar-label, .sidebar-links, .sidebar-bottom { display: none; }
  .filters { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0; }
  .filter { width: auto; flex-shrink: 0; padding: 9px 12px; gap: 8px; }
  .filter svg { display: none; }
  .filter-count { margin-left: 4px; }
  .directory-main { margin-left: 0; }
  .topbar { display: none; }
  .directory-content { padding: 25px 20px 0; }
  .directory-heading { align-items: stretch; flex-direction: column; gap: 20px; margin-bottom: 22px; }
  .directory-heading h1 { font-size: 23px; }
  .search-field { width: 100%; }
  .directory-meta { font-size: 10px; gap: 12px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card-surface { padding: 20px; }
  .directory-footer { flex-direction: column; gap: 12px; padding: 20px; }
  .consent-banner { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .tool-card-surface { transform: none; } }
