/* ==========================================================================
   好站集工具箱 · 工作台视觉
   目标不是“展示很多工具”，而是让用户一眼知道：
   从哪里输入、点哪里开始、结果在哪里。
   本文件最后加载，只负责工作台首页、工具索引和工具页骨架。
   ========================================================================== */

:root {
  --ws-radius: 16px;
  --ws-radius-sm: 10px;
  --ws-shadow: 0 1px 2px rgba(16, 43, 37, .04), 0 12px 32px rgba(16, 43, 37, .055);
  --ws-shadow-hover: 0 18px 42px rgba(16, 43, 37, .11);
  --ws-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------- 顶栏搜索 ------------------------------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
html:not(.has-js) .header-search { display: none; }
.header-search:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.header-search kbd { margin-left: 2px; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  min-height: 19px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1120px) {
  .header-inner { gap: 9px; }
  .nav { gap: 0; }
  .nav-link { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .header-search { min-height: 34px; padding: 0 9px; }
  .header-search span { display: none; }
}
@media (max-width: 860px) {
  .header-actions { margin-left: auto; }
}

/* ------------------------------- 搜索弹层 ------------------------------- */

.ws-palette {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: start center;
  padding: min(13vh, 110px) 20px 24px;
}
.ws-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 23, .46);
  backdrop-filter: blur(5px);
}
.ws-palette-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(76vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cfdacf;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(8, 30, 24, .28);
  animation: ws-palette-in .2s var(--ws-ease) both;
}
@keyframes ws-palette-in {
  from { opacity: 0; transform: translateY(-9px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.ws-palette-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}
.ws-palette-head h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.04em; }
.ws-palette-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ws-palette-close:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ws-palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px;
  padding: 0 13px;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--accent);
}
.ws-palette-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 90, 73, .1);
}
.ws-palette-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.ws-palette-search input::-webkit-search-cancel-button,
.ws-dir-search-card input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.ws-input-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ws-input-clear:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ws-input-clear[hidden] { display: none !important; }
.ws-palette-search input::placeholder { color: #89958d; }
.ws-palette-results {
  margin-top: 12px;
  padding: 0 10px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ws-palette-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.ws-palette-item:hover,
.ws-palette-item.is-active { background: var(--accent-soft); color: var(--ink); }
.ws-palette-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 6px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .03em;
}
.ws-palette-item-copy { min-width: 0; }
.ws-palette-item strong { display: block; font-size: 13px; line-height: 1.35; }
.ws-palette-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ws-palette-enter { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: right; }
.ws-palette-item.is-active .ws-palette-enter { color: var(--accent); }
.ws-palette-empty { margin: 0; padding: 24px 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ws-palette-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.ws-palette-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ws-palette-foot a { color: var(--accent); font-weight: 600; }
body.palette-open { overflow: hidden; }

/* ------------------------------- 首页：任务入口 ------------------------------- */

.tool-home { position: relative; }
.ws-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 42px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.ws-eyebrow,
.ws-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
}
.ws-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.ws-hero h1 {
  max-width: 660px;
  margin: 18px 0 18px;
  font-family: var(--sans);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.ws-hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #0f5a48 0%, #2e8069 55%, #b26f3b 100%);
  background-size: 190% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ws-lead {
  max-width: 590px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}
.ws-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
}
.ws-hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.ws-hero-points i {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}
.ws-hero-actions { display: grid; gap: 10px; min-width: 0; }
.ws-try,
.ws-find {
  position: relative;
  padding: 20px;
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
}
.ws-try {
  overflow: hidden;
  border: 1px solid #0a3e33;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(232, 176, 92, .13), transparent 70%),
    var(--accent-strong);
  color: #f8fbf6;
}
.ws-try::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}
.ws-try-head,
.ws-find-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.ws-step {
  color: #f0c884;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
}
.ws-try .ws-step { color: #f0c884; }
.ws-find .ws-step { color: var(--accent); }
.ws-try-meta {
  color: rgba(255, 255, 255, .55);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .05em;
}
.ws-find .ws-try-meta { color: var(--muted); }
.ws-input-label {
  display: block;
  margin-bottom: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
}
.ws-find .ws-input-label { color: var(--ink-2); }
.ws-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ws-find .ws-input-line { border-color: var(--line-strong); background: #fffefb; }
.ws-try .ws-input-line:focus-within {
  border-color: #f0c884;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 3px rgba(240, 200, 132, .12);
}
.ws-find .ws-input-line:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 90, 73, .1);
}
.ws-input-line input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 14px;
}
.ws-input-line input::placeholder { color: rgba(255, 255, 255, .5); opacity: 1; }
.ws-find .ws-input-line input::placeholder { color: #8c978f; }
.ws-input-line .btn { flex: none; min-height: 40px; padding: 0 13px; border-radius: 7px; font-size: 11.5px; white-space: nowrap; }
.ws-try .btn-primary { background: #f0c884; color: #17231e; border-color: #f0c884; }
.ws-try .btn-primary:hover { background: #f8d99b; border-color: #f8d99b; }
.ws-find .btn-ghost { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ws-find .btn-ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ws-try-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: 10.5px;
}
.ws-try-links a { color: #f5e1bc; text-decoration: underline; text-decoration-color: rgba(245, 225, 188, .35); text-underline-offset: 3px; }
.ws-try-links a:hover { color: #fff; text-decoration-color: #fff; }
.ws-try-links i { color: rgba(255, 255, 255, .3); font-style: normal; }
.ws-find-hint { margin: 10px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.ws-find-hint kbd { margin: 0 1px; }

.ws-category-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 52px;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}
.ws-category-strip::-webkit-scrollbar { display: none; }
.ws-strip-label {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 15px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.ws-category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 0 auto;
  min-width: 148px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.ws-category-strip a:hover { color: var(--accent); background: var(--accent-soft); }
.ws-category-strip a b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}
.ws-category-strip .ws-strip-all {
  flex: none;
  justify-content: flex-end;
  min-width: 100px;
  color: var(--accent);
  font-weight: 650;
}

/* 首页区块通用 */
.ws-quick,
.ws-directory,
.ws-notes {
  padding: clamp(36px, 4.6vw, 58px) 0;
  border-bottom: 1px solid var(--line);
}
.ws-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}
.ws-section-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -.05em;
}
.ws-section-head > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: right;
}
.ws-section-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.ws-section-line h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.04em; }
.ws-all-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.ws-all-link:hover { color: var(--accent-strong); }
.ws-text-button {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.ws-text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 常用工具 */
.ws-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ws-quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--ws-radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ws-ease), box-shadow .2s var(--ws-ease), border-color .2s ease;
}
.ws-quick-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -48px;
  width: 125px;
  height: 125px;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  pointer-events: none;
}
.ws-quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  color: var(--ink);
  box-shadow: var(--ws-shadow-hover);
}
.ws-quick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-quick-code,
.ws-dir-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .03em;
}
.ws-quick-arrow { color: var(--muted); font-size: 16px; transition: transform .2s var(--ws-ease), color .2s ease; }
.ws-quick-card:hover .ws-quick-arrow { color: var(--accent); transform: translate(2px, -2px); }
.ws-quick-card strong {
  display: block;
  margin: 18px 0 7px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 740;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.ws-quick-summary {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ws-quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
}
.ws-quick-action small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 最近使用 */
.ws-recent { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ws-recent-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ws-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease;
}
.ws-recent-item:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
.ws-recent-item strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ws-recent-item span { flex: none; color: var(--accent); font-family: var(--mono); font-size: 9px; }

/* 分类目录 */
.ws-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ws-cat-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--ws-radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ws-cat-card--green { background: var(--accent-strong); border-color: var(--accent-strong); }
.ws-cat-card--gold { border-top: 3px solid #b17a35; }
.ws-cat-card--teal { border-top: 3px solid #2b6d62; }
.ws-cat-card--clay { border-top: 3px solid #a76b45; }
.ws-cat-card--ink { border-top: 3px solid #47534d; }
.ws-cat-head { display: flex; flex-direction: column; gap: 8px; padding: 16px 15px 12px; color: var(--ink); }
.ws-cat-head:hover { color: var(--accent); }
.ws-cat-card--green .ws-cat-head,
.ws-cat-card--green .ws-cat-head:hover { color: #fffdf7; }
.ws-cat-no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
}
.ws-cat-card--green .ws-cat-no { color: #f0c884; }
.ws-cat-copy { min-height: 79px; }
.ws-cat-copy strong { display: block; font-family: var(--sans); font-size: 19px; font-weight: 740; line-height: 1.2; letter-spacing: -.04em; }
.ws-cat-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.ws-cat-card--green .ws-cat-copy small { color: #b9d2c6; }
.ws-cat-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}
.ws-cat-card--green .ws-cat-count { color: #a9c9bd; }
.ws-cat-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ws-cat-card--green .ws-cat-links { border-top-color: rgba(255, 255, 255, .13); }
.ws-cat-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.5;
}
.ws-cat-links a:first-child { border-top: 0; }
.ws-cat-links a:hover { color: var(--accent); background: var(--accent-soft); }
.ws-cat-card--green .ws-cat-links a { border-top-color: rgba(255, 255, 255, .13); color: #e4f2eb; }
.ws-cat-card--green .ws-cat-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ws-cat-links a span { color: var(--accent); font-family: var(--mono); }
.ws-cat-card--green .ws-cat-links a span { color: #f0c884; }
.ws-cat-more { color: var(--muted) !important; }
.ws-dir-search-foot button[hidden],
[data-tool-reset][hidden] { display: none !important; }

/* 使用方法 */
.ws-how {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  margin: clamp(34px, 4.6vw, 54px) 0;
  padding: clamp(25px, 4vw, 42px);
  border-radius: 20px;
  background: var(--accent-strong);
  color: #f8fbf6;
}
.ws-how .ws-kicker { color: #f0c884; }
.ws-how-copy h2 { margin: 11px 0 12px; color: #fffdf7; font-family: var(--sans); font-size: clamp(28px, 3.2vw, 38px); font-weight: 780; line-height: 1.12; letter-spacing: -.05em; }
.ws-how-copy p { max-width: 400px; margin: 0 0 18px; color: #c2d8cd; font-size: 12.5px; line-height: 1.85; }
.ws-how-copy .ws-all-link { color: #f0c884; }
.ws-how-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .15); }
.ws-how-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ws-how-steps li > span { color: #f0c884; font-family: var(--mono); font-size: 10px; }
.ws-how-steps strong { display: block; color: #fffdf7; font-size: 13px; font-weight: 650; }
.ws-how-steps p { margin: 3px 0 0; color: #b9d2c6; font-size: 11.5px; line-height: 1.7; }

/* 手记 */
.ws-notes { padding-bottom: 44px; }
.ws-note-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-note-item {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ws-note-item:hover { border-color: var(--accent-line); color: var(--ink); box-shadow: var(--shadow-sm); }
.ws-note-item > span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.ws-note-item strong { margin: 13px 0 6px; font-size: 15px; line-height: 1.45; }
.ws-note-item p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ws-note-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
}
.ws-note-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.ws-note-empty div { display: flex; flex-wrap: wrap; gap: 14px; }
.ws-note-empty a { color: var(--accent); font-size: 11.5px; font-weight: 650; white-space: nowrap; }

/* 收口 */
.ws-closing { padding: clamp(42px, 5vw, 64px) 0 8px; text-align: center; }
.ws-closing .ws-kicker { justify-content: center; }
.ws-closing h2 { margin: 12px auto 24px; font-family: var(--sans); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; }
.ws-closing h2 em { color: var(--accent); font-style: normal; }
.ws-closing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.ws-closing .btn { min-height: 46px; padding: 0 18px; border-radius: 9px; }

/* ------------------------------- 工具索引 ------------------------------- */

.ws-directory-page { padding-top: 28px; }
.ws-dir-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 40px;
  align-items: end;
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
}
.ws-dir-head h1 { margin: 16px 0 12px; font-family: var(--sans); font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.06em; }
.ws-dir-head h1 em { color: var(--accent); font-style: normal; }
.ws-dir-head-copy > p:last-child { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.ws-dir-head-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--surface); }
.ws-dir-stat { padding: 13px 15px; border-right: 1px solid var(--line); }
.ws-dir-stat:nth-child(2) { border-right: 0; }
.ws-dir-stat strong { display: block; color: var(--ink); font-family: var(--sans); font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.ws-dir-stat span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.ws-dir-head-side p { grid-column: 1 / -1; margin: 0; padding: 9px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.ws-dir-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 24px; }
.ws-dir-side { position: sticky; top: calc(var(--header-h) + 18px); min-width: 0; }
.ws-dir-search-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ws-dir-search-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.ws-dir-search-card input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}
.ws-dir-search-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 90, 73, .1); }
.ws-dir-search-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 9.5px; }
.ws-dir-search-foot button { border: 0; padding: 0; background: transparent; color: var(--accent); font-size: 10px; cursor: pointer; }
.ws-dir-search-foot button:hover { text-decoration: underline; text-underline-offset: 2px; }
.ws-dir-cats { display: flex; flex-direction: column; margin-top: 17px; }
.ws-dir-side-label { margin: 0 0 6px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.ws-dir-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 35px;
  padding: 0 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  transition: color .15s ease, background .15s ease, padding .15s ease;
}
.ws-dir-cats a:hover { padding-left: 12px; color: var(--accent); background: var(--accent-soft); }
.ws-dir-cats a b { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; }
.ws-dir-side-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.ws-dir-main { min-width: 0; }
.ws-dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ws-dir-summary { margin: 0; color: var(--ink); font-size: 12px; white-space: nowrap; }
.ws-dir-summary b { font-family: var(--mono); font-size: 14px; }
.ws-dir-summary span { color: var(--muted); font-size: 10px; }
.ws-dir-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.ws-dir-chips .chip,
.ws-dir-chips button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.ws-dir-chips button:hover { color: var(--ink); background: var(--surface-2); }
.ws-dir-chips button.is-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ws-dir-group { padding: 25px 0 2px; border-top: 1px solid var(--line); }
.ws-dir-group:first-child { border-top: 0; padding-top: 14px; }
.ws-dir-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 13px; }
.ws-dir-group-head > div { display: flex; align-items: baseline; gap: 10px; }
.ws-dir-group-no { color: var(--accent); font-family: var(--mono); font-size: 9px; }
.ws-dir-group-head h2 { margin: 0; font-family: var(--sans); font-size: clamp(21px, 2.2vw, 28px); font-weight: 760; letter-spacing: -.04em; }
.ws-dir-group-head p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.7; text-align: right; }
.ws-dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ws-dir-card {
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s var(--ws-ease);
}
.ws-dir-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.ws-dir-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-dir-card-arrow { color: var(--muted); font-size: 14px; }
.ws-dir-card:hover .ws-dir-card-arrow { color: var(--accent); }
.ws-dir-card-title { margin: 15px 0 6px; font-family: var(--sans); font-size: 17px; font-weight: 720; line-height: 1.25; letter-spacing: -.03em; }
.ws-dir-card-summary { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.72; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ws-dir-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--accent); font-size: 10px; font-weight: 650; }
.ws-dir-card-foot small { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.ws-dir-empty { margin: 30px 0; padding: 30px; border: 1px dashed var(--line-strong); border-radius: 13px; background: var(--surface-2); text-align: center; }
.ws-dir-empty strong { display: block; font-size: 17px; }
.ws-dir-empty p { margin: 7px 0 16px; color: var(--muted); font-size: 12px; }
.ws-dir-empty div { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ws-dir-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 38px; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.ws-dir-foot p { max-width: 740px; margin: 0; }
.ws-dir-foot strong { color: var(--ink-2); }

/* ------------------------------- 工具页骨架 ------------------------------- */

.ws-tool-head { padding: 2px 0 0; }
.ws-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; }
.ws-breadcrumb a { color: var(--muted); }
.ws-breadcrumb a:hover { color: var(--accent); }
.ws-breadcrumb span[aria-hidden] { color: var(--line-strong); }
.ws-tool-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 19px 0 15px; }
.ws-tool-head-copy { min-width: 0; }
.ws-kicker-line { display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; }
.ws-tool-head .page-title { margin: 8px 0 8px; font-family: var(--sans); font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; }
.ws-tool-head .page-sub { max-width: 780px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.ws-back-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ws-back-all:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.ws-use-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}
.ws-use-bar span { display: inline-flex; align-items: center; gap: 6px; }
.ws-use-bar b { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.tool-layout { margin-top: 20px; }
.tool-panel {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--ws-radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tool-panel::before {
  content: "开始使用";
  display: block;
  margin-bottom: 17px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.tool-form .field { margin-bottom: 17px; }
.tool-form .field:last-child { margin-bottom: 0; }
.tool-form .field > label,
.tool-form legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 650;
}
.tool-form .field-hint { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.tool-form input[type="text"],
.tool-form input[type="number"],
.tool-form input[type="date"],
.tool-form input[type="search"],
.tool-form input[type="email"],
.tool-form input[type="url"],
.tool-form input[type="tel"],
.tool-form input[type="password"],
.tool-form select,
.tool-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #d6d0c2;
  border-radius: 9px;
  background: #fffefb;
  color: var(--ink);
  font-size: 13.5px;
}
.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(16, 90, 73, .1);
}
.tool-form textarea { resize: vertical; line-height: 1.65; }
.tool-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-form .form-actions .btn { min-height: 43px; padding: 0 18px; }
.tool-form .form-note { color: var(--muted); font-size: 10px; }
.tool-aside {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tool-aside .side-label { color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.tool-aside p { color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.tool-aside .side-list { color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.tool-aside .side-links a { color: var(--ink-2); font-size: 11.5px; }
.tool-aside .side-links a:hover { color: var(--accent); }

/* 质量评估页输入区 */
.quality-console { margin: 20px 0 0; }
.quality-form {
  padding: 25px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--ws-radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quality-input-row { display: flex; align-items: center; gap: 8px; }
.quality-input-row input { flex: 1; min-width: 0; min-height: 45px; padding: 0 12px; border: 1px solid #d6d0c2; border-radius: 9px; background: #fffefb; font-size: 14px; }
.quality-input-row input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(16, 90, 73, .1); }
.quality-protocol { flex: none; display: inline-flex; align-items: center; height: 27px; padding: 0 6px; border: 1px solid var(--accent-line); border-radius: 5px; color: var(--accent); font-family: var(--mono); font-size: 8px; }
.quality-form-hint { margin: 10px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.65; }

/* 让旧工具页共享的卡片与结果区跟上新骨架 */
.card { border-color: var(--line); border-radius: var(--ws-radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { padding: 14px 18px; }
.card-body { padding: 20px; }
.card-kicker { color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.subhead { color: var(--ink-2); font-size: 14px; }
.alert { border-radius: 10px; }
.table-wrap { border-color: var(--line); border-radius: 10px; }
.table th { background: var(--surface-2); font-family: var(--sans); font-size: 10.5px; }
.table th, .table td { padding: 9px 11px; }

/* ------------------------------- 响应式 ------------------------------- */

/* 平板以下直接切到抽屉菜单，避免 900px 左右顶栏把搜索挤出去。 */
@media (max-width: 1000px) {
  html.has-js .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 6px 20px 18px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line-strong);
    background: var(--bg);
  }
  html.has-js .nav.is-open { display: flex; }
  html.has-js .nav::after {
    content: "免登录 / 不保存查询内容 / 结果附判断依据";
    margin-top: auto;
    padding: 18px 0 2px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .04em;
    line-height: 1.7;
  }
  html.has-js .nav-link {
    height: 49px;
    padding: 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
  }
  html.has-js .nav-link::after { display: none; }
  html.has-js .nav-link.is-active { color: var(--accent); }
  html.has-js .nav-menu { width: 100%; }
  html.has-js .nav-menu[open] > .nav-panel,
  html.has-js .nav-panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-height: none;
    padding: 10px 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  html.has-js .nav-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.has-js) .header-inner { flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  html:not(.has-js) .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  html:not(.has-js) .nav::-webkit-scrollbar { display: none; }
  html:not(.has-js) .nav-link { height: 36px; font-size: 9.5px; }
  html:not(.has-js) .menu-toggle { display: none; }
  html:not(.has-js) .header-actions { display: none; }
  .header-actions { display: flex; margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  html.has-js .nav a:focus-visible,
  html.has-js .nav summary:focus-visible { outline: 0; background: var(--accent-soft); }
  .header-inner { gap: 12px; }
}

@media (max-width: 1180px) {
  .ws-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 30px; }
  .ws-category-strip a { min-width: 118px; padding-left: 10px; padding-right: 10px; }
  .ws-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-cat-card { min-height: 0; }
  .ws-dir-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .ws-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ws-hero { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .ws-hero h1 { max-width: 720px; }
  .ws-hero-actions { grid-template-columns: 1fr 1fr; }
  .ws-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-dir-head { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
  .ws-dir-layout { grid-template-columns: 1fr; }
  .ws-dir-side { position: static; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
  .ws-dir-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 0; }
  .ws-dir-side-label { grid-column: 1 / -1; margin-bottom: 4px; }
  .ws-dir-side-note { grid-column: 1 / -1; margin-top: 0; }
  .ws-dir-search-card { box-shadow: none; }
}
@media (max-width: 720px) {
  .ws-hero { padding-top: 18px; }
  .ws-hero h1 { margin-top: 14px; font-size: clamp(34px, 9vw, 46px); }
  .ws-lead { font-size: 14px; line-height: 1.8; }
  .ws-hero-points { margin-top: 16px; gap: 8px 14px; }
  .ws-hero-actions { grid-template-columns: 1fr; }
  .ws-try, .ws-find { padding: 16px; }
  .ws-input-line input { font-size: 16px; }
  .ws-input-line .btn { padding: 0 11px; }
  .ws-category-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; overflow: visible; }
  .ws-strip-label { display: none; }
  .ws-category-strip a { min-width: 0; min-height: 45px; padding: 0 9px; justify-content: flex-start; border-bottom: 1px solid var(--line); font-size: 11px; }
  .ws-category-strip a:nth-child(n + 4) { border-bottom: 0; }
  .ws-category-strip .ws-strip-all { min-width: 0; justify-content: center; border-bottom: 0; }
  .ws-section-head { display: block; margin-bottom: 16px; }
  .ws-section-head > p { margin-top: 10px; max-width: none; text-align: left; }
  .ws-quick, .ws-directory, .ws-notes { padding: 30px 0; }
  .ws-quick-grid { grid-template-columns: 1fr; }
  .ws-quick-card { min-height: 0; }
  .ws-recent-list { grid-template-columns: 1fr 1fr; }
  .ws-cat-grid { grid-template-columns: 1fr; }
  .ws-cat-copy { min-height: 0; }
  .ws-cat-card { min-height: 0; }
  .ws-how { grid-template-columns: 1fr; padding: 24px 20px; margin: 26px 0; border-radius: 16px; }
  .ws-how-steps { margin-top: 6px; }
  .ws-note-list { grid-template-columns: 1fr; }
  .ws-note-item { min-height: 0; }
  .ws-note-empty { display: block; }
  .ws-note-empty div { margin-top: 14px; }
  .ws-closing { padding-top: 38px; }
  .ws-dir-head { grid-template-columns: 1fr; gap: 18px; padding-bottom: 20px; }
  .ws-dir-head-side { max-width: 260px; }
  .ws-dir-layout { padding-top: 16px; }
  .ws-dir-side { display: block; }
  .ws-dir-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; margin-top: 14px; }
  .ws-dir-side-note { margin-top: 10px; }
  .ws-dir-toolbar { display: block; padding-bottom: 10px; }
  .ws-dir-summary { margin-bottom: 8px; }
  .ws-dir-chips { justify-content: flex-start; }
  .ws-dir-group-head { display: block; }
  .ws-dir-group-head p { margin-top: 5px; max-width: none; text-align: left; }
  .ws-dir-grid { grid-template-columns: 1fr; }
  .ws-dir-card { min-height: 0; }
  .ws-dir-foot { display: block; }
  .ws-dir-foot .ws-all-link { margin-top: 10px; }
  .ws-tool-head-row { display: block; padding-top: 15px; }
  .ws-back-all { margin-top: 12px; }
  .ws-use-bar { gap: 4px 13px; line-height: 1.6; }
  .tool-panel { padding: 18px; }
  .tool-aside { padding: 15px; }
  .quality-form { padding: 18px; }
  .quality-input-row { display: block; }
  .quality-input-row input { width: 100%; margin-bottom: 9px; }
  .quality-input-row .btn { width: 100%; }
  .ws-palette { padding: 0; }
  .ws-palette-dialog { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .ws-palette-head { padding: 18px 15px 10px; }
  .ws-palette-search { margin: 0 15px; }
  .ws-palette-results { padding: 0 6px 8px; }
  .ws-palette-item { grid-template-columns: 53px minmax(0, 1fr); }
  .ws-palette-enter { display: none; }
  .ws-palette-foot { padding: 11px 15px; }
  .ws-palette-foot span { display: none; }
}
@media (max-width: 480px) {
  .ws-hero h1 { font-size: clamp(32px, 9.5vw, 40px); }
  .ws-try-head, .ws-find-head { align-items: flex-start; }
  .ws-try-meta { display: none; }
  .ws-input-line { flex-wrap: wrap; }
  .ws-input-line input { flex-basis: 100%; }
  .ws-input-line .btn { width: 100%; }
  .ws-hero-points { gap: 6px 10px; font-size: 10px; }
  .ws-category-strip a { min-width: 0; font-size: 10.5px; padding: 0 7px; }
  .ws-recent-list { grid-template-columns: 1fr; }
  .ws-dir-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 3px; }
  .ws-dir-chips button { width: 100%; justify-content: center; padding: 0 4px; font-size: 10px; }
  .ws-dir-head h1 { font-size: clamp(34px, 9vw, 44px); }
  .ws-dir-head-side { max-width: none; }
  .ws-palette-foot { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-hero h1 em { animation: none !important; }
  .ws-quick-card,
  .ws-dir-card,
  .ws-palette-dialog { transition: none !important; animation: none !important; }
}
