:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #111827;
  --muted: #617085;
  --line: rgba(24, 35, 58, 0.12);
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #14b8a6;
  --accent-soft: #dcfdf7;
  --warning: #f59e0b;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111f;
    --surface: rgba(15, 23, 42, 0.82);
    --surface-solid: #111827;
    --text: #f8fafc;
    --muted: #aab7ca;
    --line: rgba(226, 232, 240, 0.13);
    --primary: #60a5fa;
    --primary-strong: #93c5fd;
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --warning: #fbbf24;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
}

.main-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.lang-switch {
  display: flex;
  gap: 0.1rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface-solid) 72%, var(--accent) 8%));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__content {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.mixer-card h3 {
  min-height: 1.2em;
}

.hero__lead,
.section-heading p,
.mixer-card p,
.mini-grid p,
.steps p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 900;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.button--ghost {
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
}

.hero__visual {
  justify-self: center;
  width: min(100%, 620px);
}

.hero-logo {
  width: min(180px, 70%);
  height: auto;
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stats article,
.mixer-card,
.mini-grid article,
.steps article,
.faq details {
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.stats article {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stats strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-block {
  margin: 1rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.35rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filters button,
.badge {
  display: inline-flex;
  align-items: center;
}

.filters button {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 4.4rem;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 90%, var(--primary) 8%), var(--surface-solid));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.filters button::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 14%, transparent);
  color: transparent;
  content: "✓";
  font-size: 0.82rem;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.filters button:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.filters button.is-active {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2);
}

.filters button.is-active::before {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}

.filters b {
  line-height: 1.1;
}

.filters small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.badge {
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.badge-group {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.cards,
.mini-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mixer-card,
.mini-grid article,
.steps article {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.mixer-card {
  display: flex;
  flex-direction: column;
}

.mixer-card[hidden] {
  display: none;
}

.mixer-card--accent {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), color-mix(in srgb, var(--accent) 14%, var(--surface))),
    var(--surface);
}

.service-logo {
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.service-title-link {
  color: var(--primary);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.mixer-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.rank {
  color: color-mix(in srgb, var(--text) 18%, transparent);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.mixer-card dl {
  display: grid;
  gap: 0.55rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
}

.mixer-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.mixer-card dt {
  color: var(--muted);
  font-weight: 700;
}

.mixer-card dd {
  margin: 0;
  font-weight: 900;
}

.alternatives {
  background:
    radial-gradient(circle at right top, rgba(20, 184, 166, 0.18), transparent 22rem),
    var(--surface);
}

.mini-grid article {
  background: var(--surface-solid);
}

.privacy-list {
  display: grid;
  gap: 1rem;
}

.privacy-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.privacy-feature__image {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.privacy-feature h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.privacy-specs {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.privacy-specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.privacy-specs dt {
  color: var(--muted);
  font-weight: 700;
}

.privacy-specs dd {
  margin: 0;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.guide {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 80%, var(--primary) 8%), var(--surface)),
    var(--surface);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 950;
}

#compare,
#guide,
#faq {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.faq details {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
}

.faq details + details {
  margin-top: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 0.75rem 0 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0 3rem;
}

.site-footer > div {
  max-width: 620px;
}

.brand--footer {
  margin-bottom: 0.8rem;
}

.disclaimer {
  max-width: 360px;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    border-radius: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem;
  }

  .stats,
  .filters,
  .cards,
  .mini-grid,
  .privacy-feature,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .disclaimer {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1rem, var(--max-width));
  }

  .hero,
  .section-block {
    border-radius: 24px;
  }

  .hero {
    padding: 1.25rem;
  }

  .stats,
  .filters,
  .cards,
  .mini-grid,
  .privacy-feature,
  .steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
}
