:root {
  color-scheme: light;
  --bg: #F3F5F4;
  --surface: rgba(255, 255, 255, .6);
  --border: #E0E5E4;
  --text: #2B3234;
  --secondary: #667174;
  --muted: #939C9E;
  --primary: #667780;
  --accent: #9AAFA9;
  --focus: #8BA3AD;
  --shadow: 0 10px 30px rgba(43, 50, 52, .06);
  --page-width: 1760px;
  --page-gutter: clamp(40px, 6vw, 128px);
  font-family: Inter, "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(43, 50, 52, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 50, 52, .03) 1px, transparent 1px);
  background-size: 24px 24px;
  font-weight: 400;
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-glow { display: none; }

.site-header {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.header-main, .header-actions { display: flex; align-items: center; }
.header-main { gap: 48px; }
.header-actions { gap: 20px; }
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #CDD5D4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-sheet-back { fill: none; stroke: var(--accent); stroke-width: 1.35; }
.brand-sheet-front { fill: rgba(247, 249, 248, .92); stroke: var(--primary); stroke-width: 1.45; }
.brand-sheet-half { fill: rgba(154, 175, 169, .28); stroke: none; }
.brand-sheet-line { fill: none; stroke: var(--primary); stroke-width: 1.2; stroke-linecap: round; opacity: .82; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  transition: color 180ms ease-out, background 180ms ease-out;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1px;
  background: var(--accent);
}
.library-note { display: flex; align-items: center; gap: 9px; color: var(--secondary); font-size: .84rem; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.submit-nav {
  padding: 9px 13px;
  border: 1px solid #CDD5D4;
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  text-decoration: none;
  font-size: .84rem;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out;
}
.submit-nav:hover, .submit-nav.active { color: var(--text); border-color: var(--accent); background: rgba(154, 175, 169, .12); }

main { position: relative; z-index: 1; width: min(var(--page-width), calc(100% - var(--page-gutter))); margin: 0 auto; }
.search-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  column-gap: 42px;
  padding: 86px 0 104px;
}
.intro { grid-column: 1; max-width: 780px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .76rem; font-weight: 400; letter-spacing: .13em; }
h1 { margin: 0; color: var(--text); font-size: clamp(2.65rem, 6vw, 5.1rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
h1 span { color: var(--primary); }
.lead { max-width: 665px; margin: 26px 0 0; color: var(--secondary); font-size: 1.02rem; line-height: 1.85; }

.search-box {
  grid-column: 1;
  margin-top: 48px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.search-box:focus-within { border-color: var(--focus); box-shadow: var(--shadow), 0 0 0 3px rgba(139, 163, 173, .16); }
.search-box label { display: block; margin-bottom: 12px; color: var(--secondary); font-size: .87rem; font-weight: 400; }
.search-box textarea { width: 100%; min-height: 118px; resize: vertical; border: 0; outline: 0; padding: 0; color: var(--text); background: transparent; font-size: 1.05rem; font-weight: 400; line-height: 1.7; }
textarea::placeholder, input::placeholder { color: var(--muted); }
.search-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.hint { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .75rem; }
kbd { min-width: 26px; padding: 3px 5px; text-align: center; color: var(--secondary); border: 1px solid #CDD5D4; border-radius: 4px; background: rgba(255, 255, 255, .45); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .68rem; }
.submit-button {
  min-height: 44px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #F7F9F8;
  background: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out;
}
.submit-button:hover { background: #586970; border-color: #586970; }
.submit-button:focus-visible, .reset-button:focus-visible, .suggestions button:focus-visible, .submit-nav:focus-visible, .main-nav a:focus-visible, .directory-card:focus-visible, .editor-pick-card:focus-visible, .directory-sort button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.submit-button:disabled { opacity: .58; cursor: wait; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.search-box.is-loading .submit-button svg { animation: button-progress 900ms linear infinite; }

.quick-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.quick-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 18px; }
.quick-heading p { margin: 0; font-weight: 500; }
.quick-heading span { color: var(--muted); font-size: .74rem; }
.suggestions { display: grid; gap: 8px; }
.suggestions button { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--secondary); background: rgba(255, 255, 255, .28); text-align: left; cursor: pointer; transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
.suggestions button::after { content: '↗'; float: right; color: var(--muted); }
.suggestions button:hover { color: var(--text); border-color: var(--accent); background: rgba(154, 175, 169, .08); }
.channel-note { display: flex; gap: 13px; align-items: center; margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--border); }
.wechat-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); background: rgba(255, 255, 255, .36); }
.wechat-icon svg { width: 31px; height: 31px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.wechat-icon circle { fill: currentColor; stroke: none; }
.channel-note p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.channel-note strong { color: var(--secondary); font-size: .84rem; font-weight: 500; }

.results-section { padding: 76px 0 96px; border-top: 1px solid var(--border); }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.results-heading .eyebrow { margin-bottom: 9px; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.035em; font-weight: 500; }
.reset-button { padding: 9px 13px; border: 1px solid #CDD5D4; border-radius: 8px; color: var(--secondary); background: transparent; cursor: pointer; transition: border-color 180ms ease-out, color 180ms ease-out; }
.reset-button:hover { border-color: var(--accent); color: var(--text); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { min-height: 270px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); animation: appear 180ms ease-out both; transition: transform 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
.tool-card:hover { transform: translateY(-2px); border-color: #CDD5D4; background: rgba(255, 255, 255, .72); }
.tool-index { color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .73rem; letter-spacing: .08em; }
.tool-card h3 { margin: 24px 0 9px; font-size: 1.2rem; font-weight: 500; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.result-meta span { padding: 4px 7px; border-radius: 5px; color: var(--muted); background: rgba(154, 175, 169, .1); font-size: .68rem; }
.tool-reason { margin: 0; color: var(--secondary); line-height: 1.7; font-size: .9rem; }
.tool-description { margin: 13px 0 24px; color: var(--muted); line-height: 1.65; font-size: .8rem; }
.tool-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 17px; border-top: 1px solid var(--border); }
.tool-link, .tool-detail-link { color: var(--accent); text-decoration: none; font-size: .82rem; font-weight: 500; }
.tool-detail-link { color: var(--primary); }
.tool-link:hover, .tool-detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state, .error-state { grid-column: 1 / -1; padding: 42px; border: 1px dashed #CDD5D4; border-radius: 10px; color: var(--secondary); background: rgba(255, 255, 255, .3); text-align: center; line-height: 1.7; }
.error-state { color: #8C6262; }
.error-with-action p { margin: 0 0 16px; }
.matching-state { grid-column: 1 / -1; }
.matching-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .34); }
.matching-progress span { position: relative; padding: 15px 17px 15px 38px; color: var(--muted); font-size: .78rem; }
.matching-progress span::before { content: ''; position: absolute; left: 17px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border: 1px solid #CDD5D4; border-radius: 50%; background: var(--bg); }
.matching-progress span + span { border-left: 1px solid var(--border); }
.matching-progress span.active { color: var(--text); }
.matching-progress span.active::before { border-color: var(--accent); background: var(--accent); animation: quiet-pulse 1.2s ease-out infinite; }
.matching-progress span.done::before { border-color: var(--accent); background: rgba(154, 175, 169, .38); }
.matching-skeletons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.matching-skeleton { min-height: 245px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .42); overflow: hidden; }
.matching-skeleton > * { display: block; border-radius: 4px; background: linear-gradient(90deg, rgba(224, 229, 228, .55), rgba(247, 249, 248, .9), rgba(224, 229, 228, .55)); background-size: 220% 100%; animation: skeleton-flow 1.6s ease-out infinite; }
.matching-skeleton i { width: 62px; height: 9px; margin-bottom: 34px; }
.matching-skeleton b { width: 46%; height: 21px; margin-bottom: 22px; }
.matching-skeleton em { width: 100%; height: 10px; margin-bottom: 10px; }
.matching-skeleton em:nth-of-type(2) { width: 74%; }
.matching-skeleton small { width: 34%; height: 10px; margin-top: 48px; }

footer { position: relative; z-index: 1; width: min(var(--page-width), calc(100% - var(--page-gutter))); margin: 0 auto; padding: 25px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: .77rem; }
footer .beian { margin: 10px 0 0; }
footer .beian a { color: inherit; }

/* 工具库 */
.directory-main { padding: 78px 0 100px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding-bottom: 42px; }
.directory-heading h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); }
.directory-heading > div > p:last-child { margin: 18px 0 0; color: var(--secondary); font-size: 1rem; }
.directory-intro-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(290px, 1fr); align-items: stretch; gap: 16px; margin-bottom: 34px; }
.directory-intro-layout:has(.editor-picks[hidden]) { grid-template-columns: 1fr; }
.directory-browse-column { min-width: 0; display: flex; flex-direction: column; }
.filter-panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .42); backdrop-filter: blur(18px); }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.filter-row .directory-search { grid-column: 1 / -1; }
.directory-search { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid #CDD5D4; border-radius: 8px; color: var(--muted); background: var(--surface); backdrop-filter: blur(18px); transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
.directory-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.directory-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.filter-select { position: relative; min-width: 0; }
.filter-select select { width: 100%; height: 100%; min-height: 50px; padding: 0 38px 0 15px; border: 1px solid #CDD5D4; border-radius: 8px; outline: 0; color: var(--secondary); background: rgba(255, 255, 255, .52); cursor: pointer; transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
.filter-select select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.filter-reset { min-height: 50px; padding: 0 16px; border: 1px solid #CDD5D4; border-radius: 8px; color: var(--secondary); background: transparent; cursor: pointer; transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
.filter-reset:hover { color: var(--text); border-color: var(--accent); background: rgba(154, 175, 169, .08); }
.tag-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag-filter { padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--secondary); background: rgba(154, 175, 169, .11); font-size: .73rem; cursor: pointer; transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out; }
.tag-filter:hover, .tag-filter.active { color: var(--text); border-color: rgba(154, 175, 169, .65); background: rgba(154, 175, 169, .24); }
.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; }
.editor-picks { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .6); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.editor-picks[hidden] { display: none; }
.editor-picks-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.editor-picks-heading .eyebrow { margin-bottom: 7px; font-size: .61rem; }
.editor-picks-heading h2 { margin: 0; font-size: 1.23rem; font-weight: 500; letter-spacing: -.025em; }
.editor-picks-heading > p { margin: 0 0 2px; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.editor-picks-grid { display: grid; grid-template-columns: 1fr; }
.editor-pick-card { position: relative; min-width: 0; min-height: 116px; padding: 20px 24px 18px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: padding 180ms ease-out, color 180ms ease-out; }
.editor-pick-card:last-child { border-bottom: 0; }
.editor-pick-card:hover { padding-left: 4px; color: var(--primary); }
.editor-pick-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.editor-pick-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.tool-logo.editor-pick-logo, .tool-logo-fallback.editor-pick-logo { width: 40px; height: 40px; border-radius: 7px; }
.editor-pick-identity h3 { overflow: hidden; margin: 0; font-size: 1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.editor-pick-number { flex: 0 0 auto; padding-top: 3px; color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .57rem; letter-spacing: .07em; }
.editor-pick-card > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 12px 0 0 50px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.editor-pick-action { position: absolute; top: 33px; right: 0; color: var(--accent); font-size: .82rem; }
.directory-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; font-family: "IBM Plex Mono", Consolas, monospace; }
.directory-meta span:first-child { color: var(--secondary); }
.directory-sort-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.directory-sort { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .44); }
.directory-sort button { padding: 7px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-family: inherit; font-size: .72rem; cursor: pointer; transition: color 180ms ease-out, background 180ms ease-out; }
.directory-sort button:hover { color: var(--text); }
.directory-sort button.active { color: var(--text); background: rgba(154, 175, 169, .18); }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.directory-card { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; transition: transform 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
.directory-card:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255, 255, 255, .76); }
.directory-card.ranked .directory-card-identity { margin-right: 34px; }
.directory-rank { position: absolute; top: 25px; right: 22px; color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .78rem; letter-spacing: .05em; }
.directory-card-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.tool-logo, .tool-logo-fallback { flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .72); }
.tool-logo { padding: 5px; object-fit: contain; }
.tool-logo-fallback { display: grid; place-items: center; color: var(--primary); font-size: 1rem; font-weight: 500; }
.directory-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.directory-card-meta span { padding: 4px 7px; border-radius: 5px; color: var(--muted); background: rgba(154, 175, 169, .1); font-size: .68rem; line-height: 1.2; }
.directory-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; font-weight: 500; }
.directory-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; margin: 0 0 22px; color: var(--secondary); font-size: .84rem; line-height: 1.7; }
.directory-card .directory-card-action { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; color: var(--accent); font-size: .8rem; font-weight: 500; text-decoration: none; }
.directory-card .directory-card-action:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.directory-grid .empty-state, .directory-grid .error-state { grid-column: 1 / -1; }

/* 工具详情 */
.tool-detail-main { padding: 48px 0 100px; }
.detail-loading { padding: 80px 0; color: var(--muted); text-align: center; }
.detail-back { display: inline-flex; margin-bottom: 32px; color: var(--secondary); text-decoration: none; font-size: .84rem; }
.detail-back:hover { color: var(--text); }
.detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.detail-identity { display: flex; align-items: center; gap: 24px; min-width: 0; }
.detail-logo, .detail-logo-fallback { flex: 0 0 auto; width: 88px; height: 88px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .75); }
.detail-logo { padding: 9px; object-fit: contain; }
.detail-logo-fallback { display: grid; place-items: center; color: var(--primary); font-size: 1.8rem; font-weight: 500; }
.detail-heading h1 { margin: 10px 0 9px; font-size: clamp(2rem, 4vw, 3.2rem); }
.detail-heading > p { max-width: 690px; margin: 0; color: var(--secondary); line-height: 1.7; }
.detail-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-labels span, .detail-keywords span { padding: 5px 8px; border-radius: 5px; color: var(--secondary); background: rgba(154, 175, 169, .12); font-size: .72rem; }
.detail-visit { flex: 0 0 auto; text-decoration: none; }
.detail-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.detail-content, .detail-guide { padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.detail-content h2, .detail-guide h2 { margin: 0 0 20px; font-size: 1.35rem; }
.detail-description { margin: 0; color: var(--secondary); font-size: .94rem; line-height: 1.9; white-space: pre-line; }
.detail-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.detail-guide-list { border-top: 1px solid var(--border); }
.guide-item { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.guide-item span { padding-top: 2px; color: var(--accent); font-size: .76rem; font-weight: 500; }
.guide-item p { margin: 0; color: var(--secondary); font-size: .86rem; line-height: 1.7; }
.related-section { margin-top: 56px; }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.related-heading h2 { margin: 5px 0 0; font-size: 1.45rem; }
.related-heading > a { color: var(--secondary); font-size: .82rem; text-decoration: none; }
.related-heading > a:hover { color: var(--text); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; min-height: 188px; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 10px; color: inherit; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform 180ms ease-out, border-color 180ms ease-out; }
.related-card:hover { transform: translateY(-2px); border-color: #cdd5d4; }
.related-card-top { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.related-logo-wrap, .related-logo, .related-logo-fallback { width: 42px; height: 42px; }
.related-logo, .related-logo-fallback { border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .72); }
.related-logo { padding: 5px; object-fit: contain; }
.related-logo-fallback { display: grid; place-items: center; color: var(--primary); font-weight: 500; }
.related-card h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.related-arrow { color: var(--muted); }
.related-card > p { display: -webkit-box; overflow: hidden; margin: 18px 0; color: var(--secondary); font-size: .84rem; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-card > small { margin-top: auto; color: var(--muted); font-size: .72rem; }

/* 工具提交 */
.submission-main { display: grid; grid-template-columns: .8fr 1.2fr; gap: 82px; padding: 82px 0 100px; }
.submission-intro h1 { font-size: clamp(2.55rem, 5vw, 4.35rem); }
.submission-intro > p:not(.eyebrow) { max-width: 470px; margin: 25px 0 42px; color: var(--secondary); font-size: 1rem; line-height: 1.8; }
.review-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.review-steps li { display: flex; gap: 16px; align-items: start; }
.review-steps li > span { padding-top: 3px; color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .74rem; }
.review-steps strong { font-size: .9rem; font-weight: 500; }
.review-steps p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.submission-panel { padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.form-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.form-heading p { margin: 0; font-weight: 500; }
.form-heading span { color: var(--muted); font-size: .75rem; }
#submission-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#submission-form label { display: grid; gap: 9px; color: var(--secondary); font-size: .83rem; font-weight: 400; }
#submission-form label:nth-of-type(3) { grid-column: 1 / -1; }
#submission-form input, #submission-form textarea { width: 100%; min-height: auto; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--text); background: rgba(255, 255, 255, .4); font-size: .92rem; line-height: 1.55; transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
#submission-form input:focus, #submission-form textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.honeypot { position: absolute !important; left: -9999px; }
.privacy-note { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font-size: .75rem; }
.form-submit { grid-column: 1 / -1; justify-content: center; min-height: 48px; margin-top: 2px; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; margin: 0; text-align: center; font-size: .83rem; }
.form-status.success { color: #6D817B; }.form-status.error { color: #8C6262; }

/* 工具管理台 */
.admin-body { background-color: #F1F3F2; }
.admin-topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--border); background: rgba(243, 245, 244, .88); backdrop-filter: blur(18px); }
.admin-brand-area, .admin-top-actions { display: flex; align-items: center; gap: 16px; }
.admin-brand { font-size: 1rem; letter-spacing: .02em; }
.admin-brand .brand-mark { width: 34px; height: 34px; padding: 5px; }
.admin-divider { width: 1px; height: 22px; background: var(--border); }
.admin-brand-area > strong { font-size: .85rem; font-weight: 500; }
.admin-top-actions { color: var(--muted); font-size: .75rem; }
.admin-top-actions a { padding: 9px 12px; border: 1px solid #CDD5D4; border-radius: 8px; color: var(--secondary); text-decoration: none; transition: color 180ms ease-out, background 180ms ease-out; }
.admin-top-actions a:hover { color: var(--text); background: rgba(255, 255, 255, .7); }
.admin-sync-note { display: inline-flex; align-items: center; gap: 7px; }
.admin-sync-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(154, 175, 169, .13); }
.admin-v2-main { width: min(1440px, calc(100% - clamp(32px, 7vw, 104px))); margin: 0 auto; padding: 42px 0 80px; }
.admin-page-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.admin-page-title .eyebrow { margin: 0 0 9px; }
.admin-page-title h1 { margin: 0; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; }
.admin-page-title > div > p:last-child { margin: 9px 0 0; color: var(--secondary); font-size: .9rem; }
.admin-new-button { width: auto; min-height: 42px; gap: 8px; padding: 0 17px; }
.admin-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.admin-overview > div { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-right: 1px solid var(--border); }
.admin-overview > div:last-child { border-right: 0; }
.admin-overview span { color: var(--muted); font-size: .74rem; }
.admin-overview strong { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 1.35rem; font-weight: 500; }
.admin-catalog-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.admin-toolbar { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(145px, .6fr)) auto; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.admin-toolbar label { min-width: 0; }
.admin-toolbar select, .admin-v2-search { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .62); color: var(--secondary); transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
.admin-toolbar select { padding: 0 12px; outline: 0; cursor: pointer; }
.admin-v2-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.admin-v2-search > span { color: var(--muted); font-size: 1.05rem; }
.admin-v2-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.admin-toolbar select:focus, .admin-v2-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.admin-filter-reset { min-width: 60px; border: 1px solid #CDD5D4; border-radius: 8px; color: var(--secondary); background: transparent; cursor: pointer; }
.admin-filter-reset:hover { color: var(--text); background: rgba(255, 255, 255, .65); }
.admin-table-meta { display: flex; justify-content: space-between; padding: 13px 18px; color: var(--muted); font-size: .7rem; }
.admin-table-scroll { overflow-x: auto; }
.admin-tool-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-tool-table th { padding: 10px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); background: rgba(243, 245, 244, .7); text-align: left; font-size: .67rem; font-weight: 400; letter-spacing: .04em; }
.admin-tool-table th:first-child { width: 30%; }.admin-tool-table th:nth-child(2) { width: 15%; }.admin-tool-table th:nth-child(3) { width: 14%; }.admin-tool-table th:nth-child(4) { width: 17%; }.admin-tool-table th:nth-child(5) { width: 13%; }.admin-tool-table th:last-child { width: 11%; }
.admin-tool-table td { padding: 13px 16px; border-bottom: 1px solid rgba(224, 229, 228, .78); vertical-align: middle; color: var(--secondary); font-size: .76rem; }
.admin-tool-table tbody tr { cursor: pointer; outline: 0; transition: background 160ms ease-out; }
.admin-tool-table tbody tr:hover, .admin-tool-table tbody tr:focus, .admin-tool-table tbody tr.active { background: rgba(154, 175, 169, .09); }
.admin-row-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.admin-row-logo { flex: 0 0 auto; width: 36px; height: 36px; object-fit: contain; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .72); }
.admin-row-logo-fallback { display: grid; place-items: center; color: var(--primary); font-size: .78rem; font-weight: 500; }
.admin-row-identity > span:last-child { min-width: 0; }
.admin-row-identity strong, .admin-row-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-identity strong { color: var(--text); font-size: .82rem; font-weight: 500; }
.admin-row-identity small { margin-top: 3px; color: var(--muted); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .62rem; }
.admin-pill { display: inline-block; max-width: 100%; overflow: hidden; padding: 5px 8px; border-radius: 6px; color: var(--secondary); background: rgba(102, 113, 116, .07); text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; }
.admin-pill.accent { color: #63766F; background: rgba(154, 175, 169, .16); }.admin-pill.warning { color: #826E55; background: rgba(180, 157, 125, .13); }.admin-pill.muted { color: var(--muted); background: rgba(147, 156, 158, .09); }.admin-pill.success { color: #647B74; background: rgba(154, 175, 169, .14); }
.admin-row-action { color: var(--accent); white-space: nowrap; }
.admin-v2-empty { padding: 56px 20px; color: var(--muted); text-align: center; }
.admin-v2-empty strong { color: var(--secondary); font-size: .9rem; font-weight: 500; }.admin-v2-empty p { margin: 8px 0 0; font-size: .76rem; }
.admin-drawer-overlay { position: fixed; inset: 0; z-index: 30; opacity: 0; background: rgba(43, 50, 52, .18); backdrop-filter: blur(2px); transition: opacity 180ms ease-out; }
.admin-drawer-overlay.visible { opacity: 1; }
.admin-drawer { position: fixed; top: 0; right: 0; z-index: 31; width: min(680px, 92vw); height: 100dvh; transform: translateX(102%); border-left: 1px solid var(--border); background: #F7F8F7; box-shadow: -18px 0 44px rgba(43, 50, 52, .09); transition: transform 180ms ease-out; }
.admin-drawer.open { transform: translateX(0); }
.admin-drawer #admin-tool-form { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; margin: 0; }
.admin-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px 18px; }
.admin-drawer-identity { min-width: 0; display: flex; align-items: center; gap: 13px; }
.admin-drawer-logo { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); background: rgba(255, 255, 255, .75); }
.admin-drawer-logo .admin-row-logo { width: 100%; height: 100%; border: 0; border-radius: 0; }
.admin-drawer-identity p { margin: 0 0 4px; color: var(--accent); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .61rem; letter-spacing: .13em; }
.admin-drawer-identity h2 { max-width: 450px; margin: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 1.18rem; font-weight: 500; }
.admin-close-button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; color: var(--secondary); background: transparent; cursor: pointer; font-size: 1.2rem; }
.admin-close-button:hover { color: var(--text); background: white; }
.admin-editor-tabs { display: flex; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--border); }
.admin-editor-tabs button { position: relative; padding: 11px 0 13px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .76rem; }
.admin-editor-tabs button.active { color: var(--text); }.admin-editor-tabs button.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--accent); }
.admin-drawer-content { overflow-y: auto; padding: 26px 28px 40px; }
.admin-editor-section { display: none; }.admin-editor-section.active { display: block; animation: appear 160ms ease-out; }
.admin-section-heading { margin-bottom: 22px; }.admin-section-heading h3 { margin: 0; font-size: .96rem; font-weight: 500; }.admin-section-heading p { margin: 7px 0 0; color: var(--muted); font-size: .73rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.admin-form-grid label { display: grid; align-content: start; gap: 7px; color: var(--secondary); font-size: .72rem; }
.admin-form-grid label small { color: var(--muted); font-size: .65rem; line-height: 1.5; }
.admin-span-2 { grid-column: 1 / -1; }
.admin-drawer input:not([type="checkbox"]), .admin-drawer textarea, .admin-drawer select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--text); background: rgba(255, 255, 255, .66); font-size: .8rem; line-height: 1.5; transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
.admin-drawer textarea { resize: vertical; }.admin-drawer input:focus, .admin-drawer textarea:focus, .admin-drawer select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(139, 163, 173, .16); }
.admin-switch-list { margin-top: 25px; border-top: 1px solid var(--border); }
.admin-switch-list label { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 2px; border-bottom: 1px solid var(--border); cursor: pointer; }
.admin-switch-list strong, .admin-switch-list small { display: block; }.admin-switch-list strong { color: var(--text); font-size: .76rem; font-weight: 500; }.admin-switch-list small { margin-top: 5px; color: var(--muted); font-size: .66rem; }.admin-switch-list input { width: 17px; height: 17px; accent-color: var(--primary); }
.admin-drawer-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 76px; padding: 13px 28px; border-top: 1px solid var(--border); background: rgba(247, 248, 247, .96); }
.admin-drawer-footer .form-status { min-height: 0; text-align: left; font-size: .69rem; }.admin-drawer-footer .submit-button { width: auto; min-height: 42px; padding: 0 17px; }.admin-preview-link { color: var(--accent); font-size: .72rem; text-decoration: none; white-space: nowrap; }
#dirty-indicator { color: #826E55; font-size: .67rem; }.admin-drawer-open { overflow: hidden; }

@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes quiet-pulse { 50% { box-shadow: 0 0 0 4px rgba(154, 175, 169, .15); } }
@keyframes skeleton-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes button-progress { to { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 920px) {
  .site-header { height: auto; min-height: 88px; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; }
  .header-main { gap: 24px; }
  .header-actions { margin-left: auto; }
  .library-note { display: none; }
  .search-stage { grid-template-columns: 1fr; padding-top: 62px; }
  .quick-panel { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .matching-skeletons { grid-template-columns: 1fr; }
  .matching-skeleton:nth-child(n+2) { display: none; }
  .directory-heading { align-items: start; flex-direction: column; }
  .directory-intro-layout { grid-template-columns: 1fr; }
  .editor-picks { padding: 20px; }
  .editor-picks-heading { padding-bottom: 14px; }
  .editor-pick-card { min-height: 76px; padding: 13px 24px 12px 0; }
  .tool-logo.editor-pick-logo, .tool-logo-fallback.editor-pick-logo { width: 34px; height: 34px; }
  .editor-pick-identity h3 { font-size: .9rem; }
  .editor-pick-card > p { -webkit-line-clamp: 1; margin: 7px 0 0 44px; font-size: .68rem; }
  .editor-pick-action { top: 27px; }
  .directory-search { width: 100%; }
  .filter-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .filter-row .directory-search { grid-column: 1 / -1; }
  .filter-reset { min-width: 84px; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .submission-main { grid-template-columns: 1fr; gap: 48px; }
  .admin-toolbar { grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, .6fr)); }
  .admin-v2-search { grid-column: 1 / -1; }
  .admin-filter-reset { min-height: 42px; }
  .admin-tool-table { min-width: 820px; }
  .detail-hero { align-items: flex-start; flex-direction: column; }
  .detail-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: calc(100% - 30px); }
  .brand { gap: 9px; font-size: 1.06rem; }.brand-mark { width: 34px; height: 34px; padding: 8px; }
  .header-main { width: 100%; justify-content: space-between; gap: 8px; }
  .header-actions { width: 100%; justify-content: end; margin: 3px 0 0; }
  .main-nav { gap: 0; }.main-nav a { padding: 8px; font-size: .79rem; }.main-nav a.active::after { left: 8px; right: 8px; }
  .submit-nav { padding: 8px 10px; font-size: .79rem; }
  .search-stage { padding: 48px 0 68px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .lead { margin-top: 20px; font-size: .96rem; }
  .search-box { margin-top: 34px; padding: 17px; }
  .hint { display: none; }
  .submit-button { width: 100%; justify-content: center; }
  .quick-panel { padding: 19px; }
  .results-section { padding-top: 54px; }
  .results-heading { align-items: center; }
  .matching-progress { grid-template-columns: 1fr; }
  .matching-progress span + span { border-top: 1px solid var(--border); border-left: 0; }
  .directory-main { padding-top: 48px; }
  .directory-intro-layout { gap: 12px; margin-bottom: 28px; }
  .filter-panel, .editor-picks { padding: 16px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-reset { min-height: 46px; }
  .tag-filters { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .tag-filter { flex: 0 0 auto; }
  .editor-picks-heading > p { display: none; }
  .directory-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .directory-sort-wrap { width: 100%; justify-content: space-between; }
  #sort-note { display: none; }
  .directory-sort { width: 100%; }
  .directory-sort button { flex: 1; padding-inline: 6px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card { min-height: 190px; }
  .tool-detail-main { padding-top: 30px; }
  .detail-hero, .detail-content, .detail-guide { padding: 20px; }
  .detail-identity { align-items: flex-start; gap: 15px; }
  .detail-logo, .detail-logo-fallback { width: 62px; height: 62px; }
  .detail-logo-fallback { font-size: 1.3rem; }
  .detail-visit { width: 100%; justify-content: center; }
  .guide-item { grid-template-columns: 1fr; gap: 6px; }
  .related-section { margin-top: 40px; }
  .submission-main { padding-top: 50px; }
  .submission-panel { padding: 20px 16px; }
  #submission-form { grid-template-columns: 1fr; }
  #submission-form label:nth-of-type(3), .privacy-note, .form-submit, .form-status { grid-column: 1; }
  .admin-topbar { padding-inline: 15px; }
  .admin-divider, .admin-brand-area > strong, .admin-sync-note { display: none; }
  .admin-top-actions a { padding: 8px 10px; }
  .admin-v2-main { width: calc(100% - 30px); padding-top: 30px; }
  .admin-page-title { align-items: stretch; flex-direction: column; gap: 18px; }
  .admin-new-button { width: auto; align-self: flex-start; }
  .admin-overview { grid-template-columns: 1fr 1fr; }
  .admin-overview > div { min-height: 70px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .admin-overview > div:nth-child(2) { border-right: 0; }.admin-overview > div:nth-child(n+3) { border-bottom: 0; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-toolbar > label:nth-of-type(4) { grid-column: 1 / -1; }
  .admin-table-meta span:last-child { display: none; }
  .admin-drawer { width: 100%; max-width: none; }
  .admin-drawer-header, .admin-drawer-content { padding-right: 18px; padding-left: 18px; }
  .admin-editor-tabs { padding-inline: 18px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-span-2 { grid-column: 1; }
  .admin-drawer-footer { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .admin-drawer-footer > div { grid-column: 1 / -1; }
  .admin-drawer-footer .submit-button { width: auto; }
}
