/* toolc v2 — D 细线极简白 · brand 强化（tokens-v2.css） */
@import url("tokens-v2.css");

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font: 400 var(--type-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell,
.siteFooter {
  width: min(1040px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}
.shell { padding: 28px 0 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  width: var(--mark-header);
  height: var(--mark-header);
  flex: none;
}
.brand-name {
  font-family: var(--font-mono);
  font-size: var(--type-brand);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.crumb-inline { font-size: 12px; color: var(--faint); }
.topbar-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 28px;
}

.hero-title,
.dl-title {
  margin: 0 0 8px;
  font-size: var(--type-h1);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.hero-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 18px;
  max-width: 640px;
}

.tool-search {
  display: block;
  width: min(420px, 100%);
  height: 36px;
  margin: 0 0 28px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font: 400 13px/1.4 var(--font-sans);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.tool-search::placeholder { color: var(--faint); opacity: 1; }

.tools-label {
  margin: 0 0 12px;
  font-size: var(--type-section);
  font-weight: 500;
  color: var(--muted);
}
.toolsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .toolsGrid { grid-template-columns: 1fr 1fr; }
}

.toolCard {
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
}
.toolCard:hover { border-color: #D4D4D4; }
.toolCard[hidden] { display: none !important; }

.tc-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.tc-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.tc-icon-svg {
  border: 0;
  background: transparent;
}
.tc-icon img { width: 40px; height: 40px; }
.tc-glyph { width: 18px; height: 18px; }
.tc-copy { min-width: 0; }
.tc-copy strong {
  display: block;
  font-size: var(--type-h2);
  font-weight: 600;
  line-height: 1.35;
}
.tc-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: var(--r-chip);
  font-size: 10px;
  background: var(--chip-bg);
  color: var(--ink);
  border: 1px solid transparent;
}
.badge-platform { border-color: var(--line); }

.tc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  background: var(--cta);
  color: var(--cta-text);
  font-size: var(--type-cta);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 0;
}
.btn-cta:hover { background: #000; color: var(--cta-text); }
.btn-cta-lg { height: 40px; padding: 0 22px; font-size: 14px; }
.link-ghost { font-size: 11px; color: var(--faint); text-decoration: none; }
.link-ghost:hover { color: var(--ink); }

.toolSlot {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--chip-bg);
  border: 1px dashed var(--line-soft);
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}
.toolSlot p { margin: 0; }
.toolSlot[hidden] { display: none !important; }

.tools-empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.tools-empty[hidden] { display: none !important; }

.dl-meta-line { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dl-lead { margin: 0 0 24px; font-size: 14px; line-height: 1.7; color: #404040; max-width: 68ch; }
.dl-cta { margin: 0 0 28px; }
.panel-narrow { max-width: 520px; }

.dl-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .dl-panels { grid-template-columns: 1fr 1fr; }
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  background: var(--surface);
}
.panel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.panel-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.panel-file { font-size: 12px; color: var(--muted); }
.panel-check { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.panel-path {
  margin-top: 16px;
  font-size: 11px;
  color: var(--faint);
  font-family: var(--font-mono);
  word-break: break-all;
}
.panel-tip { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.panel h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.panel h2 + p,
.panel .spec { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.panel .spec:last-child { margin-bottom: 0; }

.howto-head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.howto-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 16px;
}
.howto-flow { margin: 0 0 10px; font-size: 13px; color: #404040; }
.howto-warn { margin: 0; font-size: 12px; color: var(--faint); }

.back-home {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.back-home:hover { color: var(--ink); }

.siteFooter {
  margin-top: 36px;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--footer);
}
.siteFooter p { margin: 0; }

@media (max-width: 640px) {
  .shell,
  .siteFooter { width: min(1040px, calc(100% - 40px)); }
  .hero-title,
  .dl-title { font-size: 32px; }
  .brand-name { font-size: 22px; }
}
