:root {
  --bg: #0b0e0c;
  --panel: #131714;
  --panel-2: #181d19;
  --inset: #0e120f;
  --line: rgba(235, 245, 238, .08);
  --line-strong: rgba(235, 245, 238, .16);
  --ink: #edf2ee;
  --ink-soft: #b7c0b9;
  --ink-muted: #828c84;
  --green: #3ecf8e;
  --green-hi: #63e0a8;
  --green-deep: #04301b;
  --green-soft: rgba(62, 207, 142, .09);
  --green-line: rgba(62, 207, 142, .30);
  --sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(920px 560px at 14% -4%, rgba(62, 207, 142, .14), transparent 62%),
    radial-gradient(720px 480px at 88% 0, rgba(62, 207, 142, .055), transparent 58%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(235, 245, 238, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 245, 238, .026) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 600px at 50% 0, #000 24%, transparent 100%);
  mask-image: radial-gradient(900px 600px at 50% 0, #000 24%, transparent 100%);
}

::selection { background: rgba(62, 207, 142, .28); }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 12, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-inner { display: flex; align-items: center; height: 100%; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgba(62, 207, 142, .28)); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 15.5px; font-weight: 750; letter-spacing: .01em; }

.nav-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.nav-section b {
  padding: 3px 6px;
  border: 1px solid var(--green-line);
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-count,
.back-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 23, 20, .82);
}

.nav-count { gap: 6px; padding: 0 11px; font-family: var(--mono); }
.nav-count i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(62, 207, 142, .10); }
.nav-count b { color: var(--ink); font-size: 11px; }
.nav-count small { color: var(--ink-muted); font-size: 8px; letter-spacing: .08em; }

.back-link { gap: 7px; padding: 0 12px; color: var(--ink-soft); font-size: 11px; font-weight: 650; transition: .18s ease; }
.back-link svg { width: 14px; height: 14px; order: -1; }
.back-link:hover { border-color: var(--green-line); color: var(--green-hi); }

.page-shell { padding: 72px 0 64px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .92fr);
  align-items: end;
  gap: 64px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.eyebrow span { color: rgba(62, 207, 142, .6); }

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 6.3vw, 88px);
  font-weight: 760;
  line-height: .9;
  letter-spacing: -.055em;
}

.hero h1 span { color: var(--ink); }
.hero h1 em { color: var(--green); font-style: normal; font-weight: 500; }

.lede {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(19, 23, 20, .78);
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
}

.hero-metrics article { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.hero-metrics article:last-child { border-right: 0; }
.hero-metrics span,
.hero-metrics small { display: block; font-family: var(--mono); }
.hero-metrics span { color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.hero-metrics strong { display: block; margin-top: 13px; font-family: var(--mono); font-size: clamp(24px, 3vw, 36px); line-height: 1; letter-spacing: -.04em; }
.hero-metrics small { margin-top: 8px; color: var(--ink-muted); font-size: 9px; }

.search-panel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.search-panel-icon { width: 44px; height: 44px; }
.search-panel-icon img { display: block; width: 100%; height: 100%; }

.search-form { position: relative; min-width: 0; }
.search-form > svg { position: absolute; left: 17px; top: 50%; width: 17px; height: 17px; color: var(--ink-muted); transform: translateY(-50%); pointer-events: none; }

.search-form input {
  width: 100%;
  height: 48px;
  padding: 0 94px 0 47px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--inset);
  color: var(--ink);
  font-size: 13px;
  transition: .18s ease;
}

.search-form input::placeholder { color: var(--ink-muted); }
.search-form input:focus { border-color: var(--green-line); box-shadow: 0 0 0 3px rgba(62, 207, 142, .07); }

.search-form button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--green-line);
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-hi);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.search-form button:hover { background: rgba(62, 207, 142, .15); }
.search-hint { padding-right: 10px; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; white-space: nowrap; }

.mobile-categories { display: none; }

.scenario-section { margin-top: 36px; }

.scenario-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.scenario-head span {
  display: block;
  color: var(--green);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.scenario-head h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.25; }
.scenario-head > a { color: var(--ink-muted); font-size: 10px; font-weight: 650; }
.scenario-head > a i { color: var(--green); font-style: normal; }
.scenario-head > a:hover { color: var(--green-hi); }

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

.scenario-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(24, 29, 25, .95), rgba(19, 23, 20, .92));
}

.scenario-card > header { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; min-height: 46px; }
.scenario-number { color: var(--green); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.scenario-card h3 { margin: 0; font-size: 13px; line-height: 1.3; }
.scenario-card header p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--ink-muted); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.scenario-tools { display: grid; gap: 5px; margin-top: 10px; }

.scenario-tools > a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: border-color .18s ease, background-color .18s ease;
}

.scenario-tools > a:hover { border-color: var(--green-line); background: var(--green-soft); }
.scenario-tool-icon { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: #f4f7f5; }
.scenario-tool-icon img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.scenario-tool-copy { display: grid; min-width: 0; gap: 2px; }
.scenario-tool-copy strong,
.scenario-tool-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scenario-tool-copy strong { color: var(--ink); font-size: 11px; }
.scenario-tool-copy small { color: var(--ink-muted); font-size: 8px; }
.scenario-tool-arrow { color: var(--ink-muted); font-size: 10px; }
.scenario-tools > a:hover .scenario-tool-arrow { color: var(--green); }

.directory-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.category-panel {
  position: sticky;
  top: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(19, 23, 20, .88);
}

.panel-label,
.results-head { display: flex; align-items: center; justify-content: space-between; }
.panel-label { padding: 5px 6px 12px; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.panel-label b { color: var(--ink-soft); font-size: 9px; }
.category-panel nav { display: grid; gap: 5px; }

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  transition: .18s ease;
}

.category-link b,
.subcategory-list b {
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--inset);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.category-link:hover { background: var(--panel-2); color: var(--ink); }
.category-link.is-active { border-color: var(--green-line); background: var(--green-soft); color: var(--green-hi); }
.category-link.is-active b { background: rgba(62, 207, 142, .12); color: var(--green); }

.subcategory-list { display: grid; gap: 2px; margin: 0 3px 4px 15px; padding-left: 9px; border-left: 1px solid var(--line-strong); }
.subcategory-list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--ink-muted); font-size: 10px; }
.subcategory-list a:hover,
.subcategory-list a.is-active { background: var(--panel-2); color: var(--green-hi); }

.all-tools-link {
  display: grid;
  place-items: center;
  height: 38px;
  margin-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}
.all-tools-link:hover { color: var(--green-hi); }

.results-panel { min-width: 0; }
.results-head { min-height: 42px; padding: 0 3px 10px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--ink-muted); font-size: 11px; font-weight: 600; }
.breadcrumb a:hover { color: var(--green-hi); }
.breadcrumb b { color: var(--ink-soft); font-weight: 650; }
.result-count { flex: 0 0 auto; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.result-count b { color: var(--green); font-size: 10px; }

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

.tool-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 190px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(24, 29, 25, .95), rgba(19, 23, 20, .92));
  box-shadow: 0 22px 45px -34px rgba(0, 0, 0, .92);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tool-card:hover { border-color: var(--green-line); box-shadow: 0 26px 50px -30px rgba(62, 207, 142, .25); transform: translateY(-2px); }
.tool-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-icon { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #f4f7f5; }
.tool-icon img { display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.external-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-muted); background: var(--inset); transition: .18s ease; }
.external-icon svg { width: 13px; height: 13px; }
.tool-card:hover .external-icon { border-color: var(--green-line); color: var(--green); transform: translate(1px, -1px); }

.tool-card-copy { min-width: 0; padding-top: 15px; }
.tool-title-line { display: flex; align-items: flex-start; gap: 8px; }
.tool-title-line h2 { display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 720; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hot-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; margin-top: 1px; padding: 3px 5px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.hot-badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tool-card-copy p { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--ink-muted); font-size: 11px; font-weight: 500; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.tool-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); font-family: var(--mono); }
.tool-card footer span { color: var(--ink-muted); font-size: 7px; letter-spacing: .08em; }
.tool-card footer b { color: var(--ink-soft); font-size: 8px; font-weight: 650; }
.tool-card footer i { color: var(--green); font-style: normal; }

.empty-state { display: grid; place-items: center; min-height: 360px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: rgba(19, 23, 20, .64); text-align: center; }
.empty-state img { width: 52px; height: 52px; }
.empty-state strong { margin-top: -80px; font-size: 15px; }
.empty-state span { margin-top: -128px; color: var(--ink-muted); font-size: 11px; }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 24px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.pagination a:last-child { justify-self: end; }
.pagination a:hover { border-color: var(--green-line); color: var(--green-hi); }
.pagination > b { font-family: var(--mono); font-size: 11px; }
.pagination > b small { color: var(--ink-muted); font-size: 9px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 22px; min-height: 96px; color: var(--ink-muted); }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 13px; color: var(--ink-soft); }
.footer-inner p { margin: 0; font-size: 10px; }
.footer-inner > span { margin-left: auto; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); gap: 36px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 680px); }
  .nav-section { display: none; }
  .page-shell { padding-top: 46px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 36px; }
  .hero h1 { font-size: clamp(54px, 14vw, 76px); }
  .hero-metrics { max-width: 620px; }
  .search-hint { display: none; }
  .search-panel { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .search-panel-icon { width: 40px; height: 40px; }
  .mobile-categories { display: flex; gap: 7px; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .mobile-categories::-webkit-scrollbar { display: none; }
  .mobile-categories a { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-size: 10px; font-weight: 650; }
  .mobile-categories a b { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; }
  .mobile-categories a.is-active { border-color: var(--green-line); background: var(--green-soft); color: var(--green-hi); }
  .directory-layout { grid-template-columns: 1fr; margin-top: 12px; }
  .category-panel { display: none; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 520px); }
  .nav { height: 58px; }
  .nav-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 14px; }
  .nav-count { padding: 0 8px; }
  .nav-count small { display: none; }
  .back-link { width: 34px; padding: 0; justify-content: center; }
  .back-link span { display: none; }
  .page-shell { padding-top: 34px; padding-bottom: 44px; }
  .hero { gap: 28px; padding-bottom: 28px; }
  .eyebrow { margin-bottom: 18px; font-size: 8px; }
  .hero h1 { font-size: clamp(52px, 18vw, 70px); }
  .lede { margin-top: 22px; font-size: 13px; }
  .hero-metrics article { padding: 14px 11px; }
  .hero-metrics span { font-size: 6.5px; }
  .hero-metrics strong { margin-top: 9px; font-size: 22px; }
  .hero-metrics small { margin-top: 6px; font-size: 7px; }
  .search-panel { padding: 9px; }
  .search-panel-icon { display: none; }
  .search-panel { grid-template-columns: 1fr; }
  .search-form input { height: 46px; padding-right: 82px; font-size: 12px; }
  .search-form button { padding: 0 10px; }
  .results-head { align-items: flex-start; gap: 10px; }
  .breadcrumb { font-size: 10px; }
  .scenario-section { margin-top: 26px; }
  .scenario-head { align-items: center; }
  .scenario-head h2 { font-size: 16px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 9px; }
  .scenario-card { padding: 12px; }
  .tool-grid { grid-template-columns: 1fr; gap: 9px; }
  .tool-card { min-height: 168px; padding: 13px; }
  .tool-card-copy { padding-top: 12px; }
  .tool-card-copy p { -webkit-line-clamp: 2; }
  .site-footer { padding: 20px 0; }
  .footer-inner { align-items: flex-start; min-height: 0; flex-wrap: wrap; gap: 12px 18px; }
  .footer-inner p { width: 100%; order: 3; }
  .footer-inner > span { margin-left: auto; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
