:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --panel: #ffffff;
  --ink: #1f2522;
  --muted: #60706a;
  --line: #ded8ca;
  --brand: #0d6b57;
  --brand-dark: #084a3c;
  --accent: #c8572a;
  --soft: #edf6f2;
  --shadow: 0 18px 50px rgba(31, 37, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 650;
}

.language-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.language-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  min-height: 34px;
  padding: 0 10px;
}

.language-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #ffffff;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  max-width: 760px;
}

h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin-top: 22px;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 720;
}

.button.primary {
  background: var(--brand);
  color: #ffffff;
}

.device {
  background: #1d2522;
  border: 1px solid #33423d;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.screen {
  min-height: 460px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #26342f;
  padding: 20px;
  color: #f9faf7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  color: #dce7e1;
  font-size: 13px;
  font-weight: 700;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.card-rank {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f8f3e8;
  color: #1f2522;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  font-size: 22px;
}

.metric span {
  color: #cbd9d3;
  font-size: 12px;
}

.section,
.legal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
}

.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.band .card {
  background: var(--soft);
}

.legal {
  max-width: 860px;
}

.legal h1 {
  font-size: 42px;
}

.legal h2 {
  margin-top: 36px;
  font-size: 24px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 20px;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

body [data-lang] {
  display: none;
}

html[data-lang="zh"] [data-lang="zh"],
html[data-lang="en"] [data-lang="en"] {
  display: revert;
}

html[data-lang="zh"] .section[data-lang="zh"],
html[data-lang="en"] .section[data-lang="en"],
html[data-lang="zh"] .legal[data-lang="zh"],
html[data-lang="en"] .legal[data-lang="en"] {
  display: block;
}

html[data-lang="zh"] .brand [data-lang="zh"],
html[data-lang="en"] .brand [data-lang="en"],
html[data-lang="zh"] .footer-inner [data-lang="zh"],
html[data-lang="en"] .footer-inner [data-lang="en"] {
  display: inline;
}

html[data-lang="zh"] .metric strong[data-lang="zh"],
html[data-lang="en"] .metric strong[data-lang="en"] {
  display: block;
}

html:not([data-lang]) [data-lang="zh"] {
  display: revert;
}

html:not([data-lang]) .brand [data-lang="zh"],
html:not([data-lang]) .footer-inner [data-lang="zh"] {
  display: inline;
}

html:not([data-lang]) .metric strong[data-lang="zh"] {
  display: block;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .screen {
    min-height: 380px;
  }
}
