/* ============ macOS Liquid Glass Toolbox ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性必须永远生效（避免被 .t-row 等 display 规则覆盖） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif);
  color: var(--text-1);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root {
  /* 文字色基于 #1D1D1F 深灰，全站禁止纯黑 */
  --text-1: rgba(29, 29, 31, .92);
  --text-2: rgba(29, 29, 31, .56);
  --text-3: rgba(29, 29, 31, .36);
  --bg-base: var(--bg-l1);
  --glass-bg: rgba(255, 255, 255, var(--glass-alpha-light));
  --glass-bg-soft: rgba(255, 255, 255, .38);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-shadow: 0 8px 32px rgba(31, 38, 65, .10), 0 1.5px 4px rgba(31, 38, 65, .06);
  --input-bg: rgba(255, 255, 255, .55);
  --input-border: rgba(29, 29, 31, .12);
  --hover-bg: rgba(255, 255, 255, .5);
  --menu-bg: rgba(255, 255, 255, .9);
  --mesh-1: var(--bg-l1); --mesh-2: var(--bg-l2); --mesh-3: var(--bg-l3);
}

html[data-theme="dark"] {
  --text-1: rgba(240, 243, 250, .94);
  --text-2: rgba(240, 243, 250, .60);
  --text-3: rgba(240, 243, 250, .36);
  --bg-base: var(--bg-d1);
  --glass-bg: rgba(30, 34, 52, var(--glass-alpha-dark));
  --glass-bg-soft: rgba(40, 44, 66, .35);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .35), 0 1.5px 4px rgba(0, 0, 0, .25);
  --input-bg: rgba(16, 18, 30, .5);
  --input-border: rgba(255, 255, 255, .14);
  --hover-bg: rgba(255, 255, 255, .07);
  --menu-bg: rgba(32, 36, 54, .94);
  --mesh-1: var(--bg-d1); --mesh-2: var(--bg-d2); --mesh-3: var(--bg-d3);
}

/* ---------- Lucide 图标（构建时内联的 SVG）---------- */
svg.lucide {
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ---------- 背景网格光斑 ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-base); }
.bg-mesh i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .85;
  animation: float 24s ease-in-out infinite alternate;
}
/* 浅色模式：高明度低饱和，光斑只留微弱弥散色彩 */
.bg-mesh .b1 { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .14; }
.bg-mesh .b2 { width: 48vw; height: 48vw; right: -10vw; top: 8vh; background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%); opacity: .12; animation-delay: -8s; }
.bg-mesh .b3 { width: 50vw; height: 50vw; left: 22vw; bottom: -22vw; background: radial-gradient(circle, var(--mesh-2) 0%, var(--mesh-3) 60%, transparent 75%); opacity: .8; animation-delay: -16s; }
/* 深色模式：光斑保持原有浓度 */
html[data-theme="dark"] .bg-mesh .b1 { opacity: .35; }
html[data-theme="dark"] .bg-mesh .b2 { opacity: .3; }
html[data-theme="dark"] .bg-mesh .b3 { opacity: .9; }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vw, 3vh) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bg-mesh i { animation: none; } }
/* 空间深度：底部渐暗的轻微晕影 */
.bg-mesh::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 0%, transparent 62%, rgba(31, 38, 65, .10));
}
html[data-theme="dark"] .bg-mesh::after {
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0, 0, 0, .5));
}

/* ---------- 玻璃面板（Liquid Glass）---------- */
.glass {
  position: relative;
  /* 多层堆叠：顶部弥散高光层 + 半透明玻璃基底 */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.9) brightness(1.04);
  backdrop-filter: blur(var(--blur)) saturate(1.9) brightness(1.04);
  border: 1px solid transparent;
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(31, 38, 65, .06);
  border-radius: var(--radius-lg);
}
/* 边缘镜面高光环（Specular Highlights）：光源来自左上，右下留弱反光 */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .9), rgba(255, 255, 255, .2) 30%,
    rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
html[data-theme="dark"] .glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 45%),
    var(--glass-bg);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .glass::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .38), rgba(255, 255, 255, .08) 30%,
    rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .2) 100%);
}

/* ---------- 导航 ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 100; padding: 12px 16px 0; }
.nav {
  max-width: 1080px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 16px;
  border-radius: 999px;
  transition: background .35s, box-shadow .35s;
}
/* 动态光影响应：页面滚动后玻璃变致密、投影加深 */
.nav-wrap.scrolled .nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%),
    rgba(255, 255, 255, .74);
  box-shadow: 0 14px 44px rgba(31, 38, 65, .16), inset 0 1px 0 rgba(255, 255, 255, .5);
}
html[data-theme="dark"] .nav-wrap.scrolled .nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 45%),
    rgba(24, 28, 44, .74);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--text-1); text-decoration: none; letter-spacing: .2px; }
.brand-icon { font-size: 21px; color: var(--accent); display: grid; place-items: center; }
.brand-img { height: 30px; max-width: 170px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; transition: all .2s;
}
.nav-links a:hover { color: var(--text-1); background: var(--hover-bg); }
.nav-actions { display: flex; gap: 6px; }
.icon-btn {
  border: none; background: transparent; cursor: pointer; font-size: 18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-1); transition: background .2s;
}
.icon-btn:hover { background: var(--hover-bg); }
.icon-btn .tt-sun, .icon-btn .tt-moon { display: grid; place-items: center; }
.icon-btn .tt-moon, html[data-theme="dark"] .icon-btn .tt-sun { display: none; }
html[data-theme="dark"] .icon-btn .tt-moon { display: grid; }
.nav-menu-btn { display: none; }

/* ---------- 容器 / 首屏 ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.hero { text-align: center; padding: 72px 0 48px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero-badge svg { color: var(--accent); font-size: 14px; }
.hero-title {
  font-size: clamp(32px, 5.5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  background: linear-gradient(120deg, var(--text-1) 30%, var(--accent) 65%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--text-2); font-size: clamp(15px, 2vw, 18px); margin: 14px auto 34px; max-width: 560px; }

.search-box {
  display: flex; align-items: center; gap: 12px;
  max-width: 620px; margin: 0 auto; padding: 6px 18px;
  border-radius: 999px; transition: box-shadow .25s, transform .25s;
}
.search-box:focus-within { transform: translateY(-1px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), var(--glass-shadow); }
.search-icon { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 16px; padding: 12px 0; color: var(--text-1); font-family: inherit;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd {
  font-family: inherit; font-size: 12px; color: var(--text-3);
  border: 1px solid var(--input-border); border-radius: 6px; padding: 2px 8px;
}

/* ---------- 排行榜（猜你喜欢 / 最新发布） ---------- */
.rank-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.rank-panel { padding: 20px 22px; }
.rank-panel h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rank-panel h2 svg { color: var(--accent); font-size: 17px; }
.rank-shuffle {
  margin-left: auto; border: none; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; transition: background .25s, color .25s, transform .45s;
}
.rank-shuffle:hover { background: var(--hover-bg); color: var(--accent); transform: rotate(180deg); }
.rank-list { list-style: none; display: flex; flex-direction: column; }
.rank-item a {
  display: flex; align-items: center; gap: 11px; padding: 8px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text-1);
  font-size: 14px; transition: background .2s;
}
.rank-item a:hover { background: var(--hover-bg); }
.rank-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(31, 38, 65, .16);
}
.rank-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.rank-date { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.rank-numbered { counter-reset: rank; }
.rank-numbered .rank-item a::before {
  counter-increment: rank; content: counter(rank);
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  color: var(--text-3); background: var(--input-bg); border: 1px solid var(--input-border);
}
.rank-numbered .rank-item:nth-child(1) a::before { color: #fff; border-color: transparent; background: linear-gradient(145deg, #ffd60a, #ff9f0a); }
.rank-numbered .rank-item:nth-child(2) a::before { color: #fff; border-color: transparent; background: linear-gradient(145deg, #c7ccd8, #98a0b3); }
.rank-numbered .rank-item:nth-child(3) a::before { color: #fff; border-color: transparent; background: linear-gradient(145deg, #e8a87b, #c77b4f); }
/* 无 JS 时默认只展示前 5 个；JS 会随机挑选并覆盖 */
#likeList .rank-item:nth-child(n+6) { display: none; }
@media (max-width: 720px) { .rank-area { grid-template-columns: 1fr; margin-top: 32px; } }

/* ---------- 分类与工具卡片 ---------- */
.category-section { margin-top: 44px; }
.category-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.3px; }
.category-title .category-icon { font-size: 21px; color: var(--accent); display: grid; place-items: center; }
.category-count { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 2px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  text-decoration: none; color: inherit;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1.1), box-shadow .22s, background .22s;
}
.tool-card:hover {
  transform: translateY(-4px) scale(1.015);
  background: var(--hover-bg);
  box-shadow: 0 16px 40px rgba(31, 38, 65, .16), 0 2px 8px rgba(31, 38, 65, .08), inset 0 1px 0 rgba(255,255,255,.4);
}
html[data-theme="dark"] .tool-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1); }

/* 动态光影响应：指针跟随的弥散高光 */
.tool-card::after, .search-box::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .32), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
html[data-theme="dark"] .tool-card::after, html[data-theme="dark"] .search-box::after {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .11), transparent 62%);
}
.tool-card:hover::after, .search-box:focus-within::after { opacity: 1; }

.tool-icon, .tool-head-icon {
  flex-shrink: 0; display: grid; place-items: center; color: #fff;
  font-size: 24px; width: 50px; height: 50px; border-radius: 15px;
  /* 拟态光学：顶部镜面高光 + 底部内阴影塑造凸起体积 */
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .55),
    inset 0 -8px 14px rgba(0, 0, 0, .16),
    0 6px 14px rgba(31, 38, 65, .22);
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), box-shadow .25s;
}
.tool-card:hover .tool-icon {
  transform: scale(1.07) rotate(-2deg);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .6),
    inset 0 -8px 14px rgba(0, 0, 0, .16),
    0 10px 22px rgba(31, 38, 65, .3);
}
[data-cat="pdf"]   { background: linear-gradient(145deg, #ff6482, #ff2d55); }
[data-cat="image"] { background: linear-gradient(145deg, #ffb340, #ff9500); }
[data-cat="text"]  { background: linear-gradient(145deg, #40c8e0, #0a84ff); }
[data-cat="dev"]   { background: linear-gradient(145deg, #7d7aff, #5e5ce6); }

.tool-info h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 4px; }
.tool-info p { font-size: 13px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.no-result { text-align: center; padding: 60px 20px; margin-top: 40px; }
.no-result-icon { font-size: 38px; margin-bottom: 12px; color: var(--text-3); }
.no-result p { color: var(--text-2); }

/* ---------- 工具详情页 ---------- */
.tool-page { padding-top: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb b { color: var(--text-1); font-weight: 600; }

.tool-head { display: flex; align-items: center; gap: 18px; padding: 24px 28px; margin-bottom: 18px; }
.tool-head-icon { width: 62px; height: 62px; font-size: 30px; border-radius: 18px; }
.tool-head h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 750; letter-spacing: -.4px; }
.tool-head p { color: var(--text-2); font-size: 14px; margin-top: 5px; line-height: 1.5; }

.tool-body { padding: 28px; }

/* ---------- 使用说明 ---------- */
.tool-usage { padding: 24px 28px; margin-top: 18px; }
.tool-usage h2 {
  font-size: 16px; font-weight: 700; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.tool-usage h2 svg { color: var(--accent); font-size: 18px; }
.tool-usage ol { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.tool-usage li {
  counter-increment: step; display: flex; gap: 12px;
  font-size: 14px; color: var(--text-2); line-height: 1.7;
}
.tool-usage li::before {
  content: counter(step);
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 6px color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (max-width: 560px) { .tool-usage { padding: 18px; } }

/* ---------- 工具页通用控件 ---------- */
.t-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.t-col { display: flex; flex-direction: column; gap: 12px; }
.t-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .t-grid-2 { grid-template-columns: 1fr; } }
.t-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.t-gap { margin-top: 18px; }

textarea.t-input, input.t-input, select.t-input {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text-1);
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.t-input { min-height: 180px; resize: vertical; line-height: 1.6; }
textarea.t-mono, .t-mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; }
.t-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.t-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1.5px 1px rgba(255,255,255,.45), inset 0 -6px 10px rgba(0,0,0,.12);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.t-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.t-btn:active { transform: translateY(0) scale(.98); }
.t-btn.ghost { background: var(--input-bg); color: var(--text-1); border-color: var(--input-border); box-shadow: none; }
.t-btn.ghost:hover { background: var(--hover-bg); }
.t-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.t-result {
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px;
  word-break: break-all; white-space: pre-wrap; line-height: 1.6; min-height: 48px;
}
.t-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.t-stat { display: flex; flex-wrap: wrap; gap: 12px; }
.t-stat-item {
  flex: 1 1 120px; text-align: center; padding: 16px 10px;
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm);
}
.t-stat-item b { display: block; font-size: 24px; font-weight: 750; color: var(--accent); }
.t-stat-item span { font-size: 12.5px; color: var(--text-2); }

.t-drop {
  border: 2px dashed var(--input-border); border-radius: var(--radius-lg);
  padding: 44px 20px; text-align: center; cursor: pointer; transition: all .2s;
  color: var(--text-2); background: var(--input-bg);
}
.t-drop:hover, .t-drop.dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.t-drop .t-drop-icon { font-size: 36px; display: block; margin-bottom: 10px; }

.t-toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  color: var(--text-1); padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
}
.t-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 40px 20px 48px; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.footer-copy { margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-menu-btn { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); right: 16px; left: 16px;
    flex-direction: column; padding: 10px;
    background: var(--menu-bg); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7); backdrop-filter: blur(var(--blur)) saturate(1.7);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--glass-shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav { position: relative; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 36px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-head { padding: 20px; gap: 14px; }
  .tool-body { padding: 18px; }
  .search-kbd { display: none; }
  .container { padding-left: 14px; padding-right: 14px; padding-bottom: 40px; }
  .nav-wrap { padding: 12px 10px 0; }
}
