@charset "utf-8";
/* ============ AI 军火库 · 页面设计层 v2 ============ */
/* 依赖 ref/style.css（reference.css）里的 :root 变量 */

/* ---------- 背景质感 ---------- */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -6%, rgba(255,140,50,.10), transparent 60%),
    radial-gradient(820px 420px at 96% 4%, rgba(41,75,98,.12), transparent 62%);
}

/* ---------- 动效系统（.js 存在时启用，渐进增强） ---------- */
body.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.js .reveal.is-visible { opacity: 1; transform: none; }
body.js .reveal[data-delay="1"] { transition-delay: .08s; }
body.js .reveal[data-delay="2"] { transition-delay: .16s; }
body.js .reveal[data-delay="3"] { transition-delay: .24s; }
body.js .reveal[data-delay="4"] { transition-delay: .32s; }
body.js .reveal[data-delay="5"] { transition-delay: .40s; }
@keyframes floatY { from { transform: translateY(-3px); } to { transform: translateY(6px); } }
@keyframes pulseGlow { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
#header.is-scrolled { box-shadow: 0 12px 32px rgba(23,49,74,.12); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 58px 0 52px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(560px 300px at 22% 40%, #000, transparent 72%);
  mask-image: radial-gradient(560px 300px at 22% 40%, #000, transparent 72%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -70px; top: -90px; z-index: -1;
  background: radial-gradient(circle at center, rgba(255,140,50,.22), transparent 68%);
  animation: pulseGlow 6s var(--ease) infinite;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.hero h1 {
  color: var(--ink); font-size: clamp(38px, 6vw, 58px); line-height: 1.08; font-weight: 850;
  letter-spacing: -.02em; margin: 0;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy { color: #5f7688; margin-top: 16px; font-size: 16px; max-width: 560px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.directory-count {
  display: grid; grid-template-columns: repeat(3, auto); gap: 14px 34px;
  align-items: end; flex: 0 0 auto; padding: 26px 30px;
  background: linear-gradient(160deg, #fff, #f4f8fb);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 44px rgba(23,49,74,.10), inset 0 1px 0 #fff;
}
.directory-count strong { font-size: 34px; color: var(--ink); font-weight: 850; letter-spacing: -.02em; line-height: 1; }
.directory-count span { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

/* ============ 区块标题（编号式） ============ */
.category-section, .tool-section { padding-top: 40px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-heading h2 {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--ink); font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; margin: 0;
}
.section-heading h2 .sec-no {
  font-size: 13px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: .1em;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.section-heading h2::before { display: none; }
.section-heading > span, .section-heading > a { font-size: 13px; color: var(--muted); white-space: nowrap; }
.section-heading > a { position: relative; font-weight: 600; color: var(--accent-deep); }
.section-heading > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--accent); transition: right .28s var(--ease); }
.section-heading > a:hover::after { right: 0; }
.tool-facts h2 { color: var(--ink); font-size: 16px; font-weight: 700; }
.tool-facts h2::before { display: none; }

/* ============ 分类网格 ============ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.category-grid li { min-width: 0; }
.category-grid a {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px; height: 100%;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.category-grid a:hover {
  transform: translateY(-4px); border-color: #ffd9b8; background: linear-gradient(160deg, #fff, #fff7ef);
  box-shadow: 0 14px 30px rgba(23,49,74,.09);
}
.category-icon {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 12px; background: linear-gradient(150deg, #fff2e4, #ffe4c8);
  color: var(--accent-deep); font-size: 22px;
  transition: transform .35s var(--ease);
}
.category-grid a:hover .category-icon { transform: rotate(-8deg) scale(1.06); }
.category-grid strong { color: var(--ink); display: block; font-size: 15px; font-weight: 700; }
.category-grid small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.category-arrow { margin-left: auto; color: #c3d0da; transition: transform .3s var(--ease), color .3s; }
.category-grid a:hover .category-arrow { transform: translateX(4px); color: var(--accent); }

/* ============ 工具卡片 ============ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool-card {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  padding: 22px; border: 1px solid #e9eef2; border-radius: 18px; background: var(--card);
  box-shadow: 0 2px 10px rgba(16,35,51,.04);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.tool-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.tool-card:hover { transform: translateY(-6px); border-color: #d8e2ea; box-shadow: 0 22px 48px rgba(23,49,74,.13); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover .card-more span { transform: translate(3px, -3px); }
.tool-card:hover .tool-avatar { transform: rotate(-5deg) scale(1.05); }
.card-stretch { position: absolute; inset: 0; z-index: 3; border-radius: 18px; text-decoration: none; }
.category-label, .card-more, .tool-avatar { position: relative; z-index: 4; }
.card-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.card-heading > div { min-width: 0; }
.tool-avatar {
  position: relative; display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px;
  background: linear-gradient(150deg, #eef5f9, #e2edf3); border-radius: 14px; overflow: hidden;
  font-size: 26px; font-weight: 800; color: var(--ink-2);
  transition: transform .35s var(--ease);
}
.tool-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.tool-avatar.large {
  width: 68px; height: 68px; flex-basis: 68px; font-size: 34px;
  border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(16,35,51,.08);
}
.tool-card h3 { margin-bottom: 0; line-height: 1.35; overflow-wrap: anywhere; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tool-card h3::before { display: none; }
.category-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-intro {
  font-size: 14px; color: #63788a; line-height: 1.75; min-height: 52px; margin: 16px 0 18px; overflow-wrap: anywhere;
}
.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; border-top: 1px solid #eef2f5; padding-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: #edf4f8; color: #536f80; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge.price { background: #e9f6ef; color: #2f7a5c; }
.card-more { font-size: 12px; margin-left: auto; white-space: nowrap; font-weight: 600; }
.card-more span { display: inline-block; color: var(--accent-deep); font-size: 15px; transition: transform .28s var(--ease); }

/* ============ 文章卡片 ============ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.article-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid #e9eef2; border-radius: 18px; background: var(--card);
  box-shadow: 0 2px 10px rgba(16,35,51,.04); position: relative; overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.article-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.article-card:hover { transform: translateY(-6px); border-color: #ffd9b8; box-shadow: 0 22px 48px rgba(23,49,74,.12); }
.article-card:hover::before { transform: scaleY(1); }
.article-card strong { font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.article-card p { font-size: 14px; color: #63788a; line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card time { font-size: 12px; color: var(--muted); margin-top: auto; }
.article-board { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: linear-gradient(120deg, #fff2e4, #ffe7cf); color: var(--accent-deep); }

/* ============ 面包屑 + 页头 ============ */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); padding-top: 26px; overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb span + span { color: #b8c6d1; }
.page-heading { padding: 26px 0 8px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 850; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 12px; }
.page-heading p { margin-top: 8px; color: #617889; font-size: 15px; }

/* ============ 分页 ============ */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 40px; }
.pagination a, .pagination button {
  background: var(--card); border: 1px solid #dbe7ee; border-radius: 10px;
  padding: 10px 16px; color: #31566f; font-weight: 650; font-size: 14px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s, color .22s;
}
.pagination a:hover, .pagination button:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(23,49,74,.1); border-color: #ffd9b8; color: var(--accent-deep); }
.pagination [aria-current="page"] { background: linear-gradient(120deg, var(--ink-2), var(--ink)); border-color: var(--ink); color: #fff; }

/* ============ 详情页 ============ */
.tool-overview {
  position: relative; overflow: hidden; margin-top: 26px; padding: 34px;
  border-radius: 22px; background: var(--card);
  box-shadow: 0 4px 22px rgba(16,35,51,.06);
}
.tool-overview::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}
.detail-heading { display: flex; align-items: center; gap: 20px; }
.detail-heading > div { min-width: 0; }
.detail-intro { margin-top: 10px; color: #617889; font-size: 15px; line-height: 1.7; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tool-actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  border: 1px solid transparent; border-radius: 12px; min-height: 48px; padding: 12px 26px;
  font-weight: 750; font-size: 15px; letter-spacing: .02em; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff;
  box-shadow: 0 8px 20px rgba(255,124,32,.32);
}
.button.primary:hover { filter: brightness(1.07); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,124,32,.42); }
.button.primary:active { transform: scale(.98); }
.button.secondary { background: #f5f8fa; border-color: #dae4ea; color: #31566f; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23,49,74,.1); }
.button:disabled { opacity: .6; cursor: wait; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin: 34px 0; }
.tool-description { padding-top: 0; }
.content h2 { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 30px 0 12px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 22px; color: var(--ink); font-weight: 750; }
.content p { margin-bottom: 16px; line-height: 1.85; }
.content ul, .content ol { list-style: revert; padding-left: 26px; margin-bottom: 16px; }
.content ul li, .content ol li { line-height: 1.8; margin-bottom: 6px; }
.content pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.tool-facts { align-self: start; position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px; box-shadow: 0 4px 18px rgba(16,35,51,.05); }
.tool-facts dl { margin: 0; }
.tool-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 18px; }
.tool-facts dt:first-of-type { margin-top: 0; }
.tool-facts dd { margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; }
.tool-facts p { font-size: 12px; color: var(--muted); margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 16px; }
.empty-state { padding: 40px 0; color: var(--muted); font-size: 15px; text-align: center; }

/* ============ 文章列表 / 板块 ============ */
.article-list { display: grid; gap: 4px; max-width: 900px; }
.article-list-item { border-bottom: 1px solid var(--line); padding: 24px 0; transition: padding-left .3s var(--ease); }
.article-list-item:last-child { border-bottom: 0; }
.article-list-item:hover { padding-left: 6px; }
.article-list-item h2 { font-size: 22px; margin: 8px 0; font-weight: 800; letter-spacing: -.01em; }
.article-list-item h2 a { color: var(--ink); }
.article-list-item h2 a:hover { color: var(--accent-deep); }
.article-list-item p:last-child, .article-summary { color: #617889; line-height: 1.8; }
.article-list-item time { color: var(--muted); font-size: 12px; margin-left: 10px; }
.board-filters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; }
.board-filters a {
  padding: 9px 16px; border: 1px solid #dbe7ee; border-radius: 999px; color: #31566f; font-weight: 600; font-size: 14px;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s;
}
.board-filters a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.board-filters a[aria-current="page"] { background: linear-gradient(120deg, var(--ink-2), var(--ink)); border-color: var(--ink); color: #fff; }

/* ============ 文章正文 ============ */
.article-heading { padding: 34px 0 26px; max-width: 900px; }
.article-heading h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 850; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 10px 0 14px; }
.article-body { max-width: 900px; line-height: 1.9; font-size: 16px; }
.article-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-top: 40px; color: var(--ink); }
.article-body h3 { font-size: 20px; font-weight: 750; margin-top: 28px; color: var(--ink); }
.article-body pre.codeblock {
  background: #16232f; color: #e5eef4; border-radius: 14px; overflow-x: auto;
  padding: 20px; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.6;
  border: 1px solid #24384a; box-shadow: 0 8px 24px rgba(16,35,51,.14);
}
.article-body pre.codeblock code { color: inherit; }
.article-body code { background: #eef3f7; color: #375266; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.article-body pre code { background: none; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 22px 0; border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { border: 1px solid #dbe4ea; padding: 11px 14px; text-align: left; }
.article-body th { background: #f4f8fb; font-weight: 700; color: var(--ink); }
.article-body img { border-radius: 12px; margin: 20px 0; }
.article-body blockquote { border-left: 4px solid var(--accent); background: #fff7f0; padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; color: #5f7688; }
.article-neighbors { display: flex; justify-content: space-between; gap: 16px; max-width: 900px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-neighbors a { font-weight: 650; }

/* ============ 搜索 / 筛选 ============ */
.query-row { display: flex; gap: 12px; }
.query-row input { flex: 1; width: 100%; height: 52px; border: 1px solid #dbe7ee; border-radius: 12px; padding: 0 18px; background: #fff; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.query-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,140,50,.16); }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; margin-top: 24px; }
.filter-row > label:not(.check-label) { display: grid; gap: 8px; font-size: 12px; color: #617889; font-weight: 600; }
.filter-row select { border: 1px solid #dbe7ee; background: #fff; padding: 10px 14px; border-radius: 10px; min-height: 44px; min-width: 180px; font-weight: 500; }
.filter-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,140,50,.16); }
.check-label { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 550; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent-deep); border-radius: 5px; }
.reset-button { color: #31566f; background: none; border: 0; min-height: 44px; text-decoration: underline; font-weight: 600; }
.reset-button:hover { color: var(--accent-deep); }
.search-status { margin: 30px 0 20px; font-size: 14px; color: var(--muted); }

/* ============ 投稿表单 ============ */
.submission-form { max-width: 760px; }
.submission-form > label, .form-columns > label { display: grid; gap: 9px; font-weight: 700; margin-bottom: 22px; color: var(--ink); font-size: 14px; }
.submission-form .check-label { display: flex; font-weight: 500; }
.submission-form .fipt {
  width: 100%; background: #fff; font-weight: 400; border: 1px solid #dbe7ee;
  border-radius: 12px; padding: 13px 16px; min-height: 48px; font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.submission-form .fipt:focus, .fipt:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,140,50,.16); }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.fipt { border: 1px solid #dbe7ee; border-radius: 10px; max-width: 100%; padding: 10px 12px; }
.muted { color: var(--muted); font-size: 12px; }
#description-count { margin: -14px 0 20px; color: var(--accent-deep); font-weight: 600; }
#submission-status { margin-top: 18px; color: var(--accent-deep); font-weight: 700; }
.about-content { max-width: 800px; line-height: 1.85; }
.about-content h1 { font-size: 34px; font-weight: 850; letter-spacing: -.02em; margin-bottom: 18px; color: var(--ink); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  #topbox { gap: 20px; }
  .directory-count { grid-template-columns: repeat(3, auto); gap: 14px 24px; padding: 22px 24px; }
  .detail-layout { gap: 28px; }
}
@media (max-width: 768px) {
  .hero { padding: 36px 0 34px; display: block; }
  .hero::before, .hero::after { display: none; }
  .hero-copy { font-size: 15px; max-width: none; }
  .directory-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; margin-top: 28px; padding: 22px; }
  .directory-count strong { font-size: 26px; }
  .directory-count span { margin-top: 6px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tool-card { padding: 18px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .tool-facts { position: static; }
  .detail-heading { align-items: flex-start; gap: 14px; }
  .tool-avatar.large { flex-basis: 56px; width: 56px; height: 56px; }
  .tool-overview { padding: 24px; }
  .tool-actions .button { padding: 11px 16px; font-size: 14px; }
  .form-columns { grid-template-columns: 1fr; }
  .filter-row > label:not(.check-label) { width: calc(50% - 12px); }
  .filter-row select { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 20px; }
  .card-intro { min-height: 0; }
  .page-heading { padding-top: 20px; }
  .filter-row > label:not(.check-label) { width: 100%; }
  .directory-count strong { font-size: 22px; }
  .detail-heading h1 { font-size: 26px; }
  .tool-overview { padding: 20px; }
}
