:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f5f6f8;
  --surface: #ffffff;
  --text: #0b0b0f;
  --text-2: #4b5563;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e8e8ec;
  --border-strong: #d4d4d9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff5ff;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --container: 1200px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0a0a0b;
  --bg-subtle: #101012;
  --bg-hover: #17171a;
  --surface: #111113;
  --text: #f4f4f5;
  --text-2: #c4c4c8;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --border: #232327;
  --border-strong: #34343a;
  --accent: #5b8cff;
  --accent-hover: #7ea4ff;
  --accent-soft: #131e33;
  --header-bg: rgba(10, 10, 11, 0.82);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 820px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link,
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-menu > summary:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu .i-chevron {
  width: 10px;
  height: 10px;
  color: var(--muted-2);
  transition: transform 0.15s ease;
}

.nav-menu[open] .i-chevron {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: 42px;
  left: 0;
  width: 232px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.nav-panel a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-num {
  color: var(--muted-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-sun {
  display: none;
}

html[data-theme='dark'] .theme-sun {
  display: block;
}

html[data-theme='dark'] .theme-moon {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 28px;
  text-align: center;
  background: radial-gradient(760px 320px at 50% -12%, rgba(37, 99, 235, 0.09), transparent 72%);
  overflow: hidden;
}

html[data-theme='dark'] .hero {
  background: radial-gradient(760px 320px at 50% -12%, rgba(91, 140, 255, 0.14), transparent 72%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
  white-space: nowrap;
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- Search ---------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  margin: 28px auto 0;
  height: 52px;
  padding: 0 14px 0 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search .i-search {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 11px;
}

/* ---------- Chips / stats ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------- Sections ---------- */
.section {
  padding: 34px 0 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-title h2 a:hover {
  color: var(--accent);
}

.section-count {
  color: var(--muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.link-more:hover {
  color: var(--accent);
}

.i-arrow {
  width: 14px;
  height: 14px;
}

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
}

.tool-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tool-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tool-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-right: 14px;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tool-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-badge {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.tool-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: nowrap;
}

html[data-theme='dark'] .tag {
  background: #19191d;
}

.tool-card:hover .tag {
  background: var(--surface);
}

.tool-arrow {
  position: absolute;
  top: 14px;
  right: 12px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tool-arrow svg {
  width: 14px;
  height: 14px;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Result / empty ---------- */
.result-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.result-line strong,
.result-line span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.empty {
  margin: 24px 0 8px;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
}

.empty span {
  color: var(--muted);
  font-size: 13px;
}

.empty a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Page hero / breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-hero {
  padding: 26px 0 6px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.page-hero .lead {
  max-width: 760px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
}

.page-hero .search {
  margin: 24px 0 0;
  max-width: 480px;
}

/* ---------- Related ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.related-link:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.related-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.related-link .i-arrow {
  margin-left: auto;
  color: var(--muted-2);
}

/* ---------- Prose / FAQ ---------- */
.section-about {
  margin-top: 28px;
  padding: 52px 0 64px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.section-about h2,
.section-faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-about .prose {
  margin-bottom: 36px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-title {
  margin-top: 0 !important;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .i-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--muted-2);
  transition: transform 0.18s ease;
}

.faq details[open] summary .i-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 2px 16px;
}

.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.info-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.info-list > div {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.info-list dt {
  flex-shrink: 0;
  width: 88px;
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--text-2);
}

.info-list a {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn .i-arrow {
  width: 13px;
  height: 13px;
}

.btn-primary {
  padding: 11px 20px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-ghost {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- Tool detail ---------- */
.detail-hero {
  padding: 30px 0 30px;
  background: radial-gradient(680px 260px at 26% 0%, rgba(37, 99, 235, 0.07), transparent 72%);
  border-bottom: 1px solid var(--border);
}

html[data-theme='dark'] .detail-hero {
  background: radial-gradient(680px 260px at 26% 0%, rgba(91, 140, 255, 0.12), transparent 72%);
}

.detail-hero-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), var(--shadow-sm);
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.detail-tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-tags .tag {
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta-note {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.detail-main > h2:first-child {
  margin-top: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.step-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  margin-bottom: 8px;
  padding: 11px 14px 11px 42px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  top: 11px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.detail-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card h2 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.info-card .info-list {
  border-top: 0;
}

.info-card .info-list > div {
  padding: 9px 0;
  font-size: 12.5px;
}

.info-card .info-list dt {
  width: 60px;
  color: var(--muted-2);
}

.side-related {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.side-related-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.side-related-item:hover {
  background: var(--bg-hover);
}

.side-related-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.side-related-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-related-text strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.side-related-text small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
}

.side-more .i-arrow {
  width: 12px;
  height: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-col h3 {
  margin: 2px 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  }

  .stats {
    gap: 40px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .nav-panel {
    left: auto;
    right: 0;
  }

  .hero {
    padding: 52px 0 22px;
  }

  .lead {
    font-size: 14px;
  }

  .stats {
    gap: 30px;
    margin-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .related {
    grid-template-columns: 1fr;
  }

  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 18px -18px 0;
    padding: 0 18px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .page-hero .search {
    max-width: none;
  }

  .detail-hero {
    padding: 22px 0 26px;
  }

  .detail-hero-inner {
    gap: 14px;
  }

  .detail-logo {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    font-size: 17px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 13px;
  }

  .nav-link,
  .nav-menu > summary {
    padding: 7px 8px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .search {
    height: 48px;
    margin-top: 22px;
    padding-left: 42px;
  }

  .search kbd {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section {
    padding: 26px 0 14px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-title h2 {
    font-size: 17px;
  }

  .tool-card {
    flex-direction: column;
    gap: 9px;
    padding: 13px;
  }

  .tool-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 11.5px;
  }

  .tool-body {
    padding-right: 0;
  }

  .tool-name {
    font-size: 13.5px;
  }

  .tool-desc {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .tool-tags,
  .tool-arrow {
    display: none;
  }

  .stat strong {
    font-size: 18px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .cta-note {
    font-size: 11.5px;
  }

  .detail-head h1 {
    font-size: 25px;
  }
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
