:root {
  --tg-primary: var(--wh-primary, #0088CC);
  --tg-secondary: var(--wh-secondary, #49b5e7);
  --tg-bg: var(--wh-bg, #F6F8FA);
  --tg-surface: var(--wh-surface, #ffffff);
  --tg-text: var(--wh-text, #111928);
  --tg-muted: var(--wh-muted, #5c6c82);
  --tg-on-primary: var(--on-primary, #ffffff);
  --tg-primary-soft: var(--wh-primary-soft, color-mix(in srgb, var(--tg-primary) 12%, var(--tg-surface)));
  --tg-primary-deep: var(--wh-primary-deep, color-mix(in srgb, var(--tg-primary) 82%, #042f44));
  --tg-border: color-mix(in srgb, var(--tg-text) 10%, transparent);
  --tg-shadow-soft: 0 16px 40px color-mix(in srgb, var(--tg-text) 8%, transparent);
  --tg-shadow-lift: 0 28px 72px color-mix(in srgb, var(--tg-primary) 16%, transparent);
  --tg-shell: min(1180px, calc(100vw - 32px));
  --tg-radius-sm: 12px;
  --tg-radius-md: 20px;
  --tg-radius-lg: 32px;
  --tg-heading: "Manrope", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --tg-body: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tg-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tg-text);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tg-primary) 10%, transparent), transparent 30%),
    linear-gradient(180deg, var(--tg-bg), var(--tg-bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--tg-primary) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--tg-primary) 7%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 70%);
  opacity: 0.45;
}

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

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

svg {
  display: block;
}

code {
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tg-primary) 10%, var(--tg-surface));
  color: var(--tg-primary-deep);
  font-size: 0.95em;
}

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

.tg-shell {
  width: var(--tg-shell);
  margin: 0 auto;
}

.tg-page {
  min-height: 100dvh;
}

.tg-section {
  padding: 48px 0;
}

.tg-section--compact {
  padding-top: 8px;
}

.tg-kicker,
.tg-filter-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tg-primary) 10%, var(--tg-surface));
  color: var(--tg-primary-deep);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--tg-primary);
  color: var(--tg-on-primary);
  font-weight: 700;
  box-shadow: var(--tg-shadow-soft);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-button:hover,
.tg-button:focus-visible,
.tg-submit-button:hover,
.tg-submit-button:focus-visible,
.tg-tool-card__cta:hover,
.tg-tool-card__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--tg-shadow-lift);
}

.tg-button:focus-visible,
.tg-submit-button:focus-visible,
.tg-search-form input:focus-visible,
.tg-category-card:focus-visible,
.tg-tool-card__link:focus-visible,
.tg-tool-card__cta:focus-visible,
.tg-footer__links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tg-primary) 26%, transparent);
  outline-offset: 3px;
}

.tg-button--outline,
.tg-submit-button {
  background: transparent;
  color: var(--tg-text);
  border-color: color-mix(in srgb, var(--tg-primary) 22%, var(--tg-text) 8%);
  box-shadow: none;
}

.tg-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tg-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--tg-bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--tg-text) 7%, transparent);
}

.tg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  flex-wrap: wrap;
}

.tg-brand {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}

.tg-brand img {
  width: min(210px, 100%);
  height: auto;
}

.tg-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tg-submit-button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.tg-hero,
.tg-page-banner,
.tg-detail-hero,
.tg-download-hero {
  padding: 36px 0 20px;
}

.tg-hero__surface,
.tg-page-banner__inner,
.tg-detail-hero__inner,
.tg-download-hero__inner,
.tg-submit-surface,
.tg-content-card,
.tg-filter-panel,
.tg-results__bar,
.tg-meta-card,
.tg-step-card,
.tg-tool-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--tg-radius-lg);
  border: 1px solid var(--tg-border);
  background: linear-gradient(180deg, var(--tg-surface), color-mix(in srgb, var(--tg-primary-soft) 22%, var(--tg-surface)));
  box-shadow: var(--tg-shadow-soft);
}

.tg-hero__surface {
  padding: clamp(32px, 5vw, 72px);
  text-align: center;
}

.tg-hero__surface::after,
.tg-detail-hero__inner::after,
.tg-download-hero__inner::after {
  content: "";
  position: absolute;
  width: min(38vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  right: -8%;
  top: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tg-primary) 18%, transparent), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}

.tg-hero h1,
.tg-section__heading h2,
.tg-page-banner h1,
.tg-results__bar strong,
.tg-detail-hero h1,
.tg-content-card h2,
.tg-meta-card h2,
.tg-download-hero h1,
.tg-step-card h2,
.tg-footer h2,
.tg-tool-card__meta h2,
.tg-filter-panel h2,
.tg-submit-surface h2 {
  margin: 0;
  font-family: var(--tg-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tg-hero h1 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 14ch;
  margin-inline: auto;
}

.tg-hero p,
.tg-page-banner p,
.tg-detail-hero p,
.tg-download-hero p,
.tg-submit-surface p,
.tg-results__bar p,
.tg-category-card p,
.tg-tool-card__meta p,
.tg-content-card p,
.tg-step-card p,
.tg-footer p,
.tg-filter-group label,
.tg-inline-note p,
.tg-trust-strip__item span,
.tg-meta-list dt,
.tg-meta-list dd {
  margin: 0;
  color: var(--tg-muted);
}

.tg-hero p {
  max-width: 60ch;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

.tg-search-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--tg-primary) 14%, transparent);
  background: color-mix(in srgb, var(--tg-surface) 92%, transparent);
  box-shadow: var(--tg-shadow-lift);
}

.tg-search-form__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: var(--tg-primary);
  background: color-mix(in srgb, var(--tg-primary) 10%, var(--tg-surface));
}

.tg-search-form__icon svg {
  width: 24px;
  height: 24px;
}

.tg-search-form input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--tg-text);
  font: inherit;
  font-size: 1.08rem;
}

.tg-search-form input::placeholder {
  color: color-mix(in srgb, var(--tg-muted) 86%, transparent);
}

.tg-search-form .tg-button {
  width: 100%;
  max-width: 220px;
  justify-self: end;
}

.tg-section__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.tg-section__heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.tg-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tg-category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--tg-border);
  background: var(--tg-surface);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tg-text) 5%, transparent);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tg-shadow-lift);
  border-color: color-mix(in srgb, var(--tg-primary) 20%, transparent);
}

.tg-category-card strong {
  font-family: var(--tg-heading);
  font-size: 1.24rem;
}

.tg-category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tg-primary) 10%, var(--tg-surface));
  color: var(--tg-primary);
}

.tg-category-card__icon svg {
  width: 26px;
  height: 26px;
}

.tg-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tg-trust-strip__item {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--tg-border);
  background: color-mix(in srgb, var(--tg-primary) 6%, var(--tg-surface));
}

.tg-trust-strip__item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--tg-heading);
  font-size: 2rem;
}

.tg-submit-surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.tg-submit-surface h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.tg-page-banner__inner,
.tg-download-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  padding: 28px;
}

.tg-page-banner__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tg-page-banner h1,
.tg-download-hero h1,
.tg-detail-hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
}

.tg-directory-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tg-filter-panel,
.tg-results__bar,
.tg-meta-card,
.tg-content-card,
.tg-step-card {
  padding: 24px;
}

.tg-filter-panel {
  position: sticky;
  top: 108px;
}

.tg-filter-panel__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.tg-filter-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.tg-filter-group legend {
  margin-bottom: 12px;
  font-family: var(--tg-heading);
  font-size: 1rem;
  font-weight: 800;
}

.tg-filter-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.tg-filter-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--tg-primary);
}

.tg-filter-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-filter-quicklinks a,
.tg-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tg-primary) 14%, transparent);
  background: color-mix(in srgb, var(--tg-primary) 8%, var(--tg-surface));
  color: var(--tg-primary-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.tg-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tg-results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tg-results__bar strong {
  display: block;
  font-size: 2.2rem;
}

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

.tg-tool-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tg-shadow-lift);
}

.tg-tool-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
}

.tg-tool-card__header {
  display: flex;
  gap: 16px;
}

.tg-tool-card__icon,
.tg-detail-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--tg-primary), color-mix(in srgb, var(--tg-secondary) 72%, var(--tg-primary)));
  color: var(--tg-on-primary);
  font-family: var(--tg-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.tg-detail-hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  font-size: 2.3rem;
}

.tg-tool-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tg-tool-card__meta h2 {
  font-size: 1.25rem;
}

.tg-tool-card__meta p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-pill:nth-child(3n + 2) {
  background: color-mix(in srgb, var(--tg-secondary) 10%, var(--tg-surface));
  color: color-mix(in srgb, var(--tg-secondary) 80%, var(--tg-text));
}

.tg-pill:nth-child(3n + 3) {
  background: color-mix(in srgb, var(--tg-primary-deep) 10%, var(--tg-surface));
  color: var(--tg-primary-deep);
}

.tg-tool-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border-radius: 18px;
  background: var(--tg-primary);
  color: var(--tg-on-primary);
  font-weight: 800;
}

.tg-detail-hero__inner {
  padding: 28px;
}

.tg-detail-hero__content {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tg-detail-hero__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.tg-detail-hero__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tg-inline-badge,
.tg-inline-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tg-inline-badge,
.tg-verified-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tg-primary) 9%, var(--tg-surface));
  color: var(--tg-primary-deep);
  font-weight: 700;
}

.tg-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tg-verified-icon {
  width: 20px;
  height: 20px;
}

.tg-verified-icon svg {
  width: 100%;
  height: 100%;
}

.tg-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

.tg-detail-main,
.tg-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tg-content-card__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.tg-rich-text {
  display: grid;
  gap: 16px;
}

.tg-rich-text h2,
.tg-rich-text h3 {
  margin: 18px 0 0;
  font-family: var(--tg-heading);
}

.tg-rich-text ul,
.tg-rich-text ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--tg-muted);
}

.tg-screenshot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tg-shot-card {
  margin: 0;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--tg-border);
  background: color-mix(in srgb, var(--tg-primary) 6%, var(--tg-surface));
}

.tg-shot-card img,
.tg-download-hero__preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.tg-meta-card {
  position: sticky;
  top: 108px;
}

.tg-meta-list {
  display: grid;
  gap: 16px;
}

.tg-meta-list div {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--tg-text) 8%, transparent);
}

.tg-meta-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.tg-meta-list dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tg-meta-list dd {
  margin: 0;
  color: var(--tg-text);
  font-weight: 600;
}

.tg-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tg-rating span {
  color: color-mix(in srgb, var(--tg-primary) 75%, #f59e0b);
  letter-spacing: 0.1em;
}

.tg-download-hero__preview {
  margin: 0;
  align-self: stretch;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tg-text) 8%, transparent);
  background: color-mix(in srgb, var(--tg-primary) 8%, var(--tg-surface));
}

.tg-inline-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--tg-primary) 12%, transparent);
  background: color-mix(in srgb, var(--tg-primary) 6%, var(--tg-surface));
}

.tg-note-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tg-primary);
}

.tg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.tg-step-card {
  min-height: 220px;
}

.tg-step-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tg-primary) 12%, var(--tg-surface));
  color: var(--tg-primary-deep);
  font-family: var(--tg-heading);
  font-weight: 800;
}

.tg-step-card h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.tg-download-copy {
  margin-top: 18px;
}

.tg-footer {
  padding: 26px 0 48px;
}

.tg-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--tg-radius-lg);
  border: 1px solid var(--tg-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tg-primary-soft) 16%, var(--tg-surface)), var(--tg-surface));
  box-shadow: var(--tg-shadow-soft);
}

.tg-footer h2 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.tg-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--tg-muted);
}

.tg-footer__links a:hover {
  color: var(--tg-primary-deep);
}

@media (max-width: 1080px) {
  .tg-category-grid,
  .tg-step-grid,
  .tg-trust-strip,
  .tg-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-directory-layout,
  .tg-detail-layout,
  .tg-page-banner__inner,
  .tg-download-hero__inner,
  .tg-footer__grid {
    grid-template-columns: 1fr;
  }

  .tg-filter-panel,
  .tg-meta-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .tg-shell {
    width: min(100vw - 20px, 100%);
  }

  .tg-detail-hero__content,
  .tg-submit-surface,
  .tg-results__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-topbar__inner {
    min-height: auto;
    padding: 16px 0;
  }

  .tg-topbar__actions {
    width: 100%;
  }

  .tg-submit-button,
  .tg-search-form .tg-button {
    max-width: none;
  }

  .tg-search-form {
    grid-template-columns: 1fr;
  }

  .tg-search-form__icon {
    display: none;
  }

  .tg-category-grid,
  .tg-trust-strip,
  .tg-step-grid,
  .tg-card-grid {
    grid-template-columns: 1fr;
  }

  .tg-hero__surface,
  .tg-page-banner__inner,
  .tg-detail-hero__inner,
  .tg-download-hero__inner {
    padding: 22px;
  }

  .tg-tool-card__header {
    align-items: flex-start;
  }

  .tg-tool-card__icon,
  .tg-detail-hero__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.4rem;
  }
}
