:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6f86;
  --line: #dce6ef;
  --teal: #14b8a6;
  --teal-dark: #087f73;
  --amber: #f4b84d;
  --amber-soft: #fff4d8;
  --shadow: 0 18px 48px rgba(26, 58, 86, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -160px, rgba(24, 184, 165, 0.16), transparent 380px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--teal-dark);
  font-weight: 800;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(245, 248, 251, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1080px;
  height: 60px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo,
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.nav-logo-text {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-logo-text span,
.footer-brand-name span {
  color: var(--teal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(24, 184, 165, 0.08);
  color: var(--text);
}

.nav-btn,
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-btn,
.btn-primary {
  background: var(--teal);
  color: #ffffff;
}

.btn-ghost {
  background: #e7f8f5;
  color: var(--teal-dark);
}

.lang-select-wrap select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 30px 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

main {
  padding-top: 60px;
}

.hero {
  max-width: 1080px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 9em;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
}

.hero-sub {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 46px;
  padding: 0 18px;
}

.phone-frame {
  width: min(100%, 330px);
  margin: 0;
  justify-self: center;
  padding: 12px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(26, 58, 86, 0.2);
}

.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.divider-section {
  padding: 72px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.8));
  border-top: 1px solid rgba(220, 230, 239, 0.72);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.section-sub {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.info-card,
.doc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  margin: 0;
  font-size: 18px;
}

.info-card p,
.doc-summary,
.doc-block li,
.doc-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.info-card p {
  margin: 10px 0 0;
}

.wiki-section {
  padding: 72px 32px 88px;
}

.wiki-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toc-title {
  margin: 0 0 8px;
  color: #9aaabb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.toc a:hover {
  background: rgba(24, 184, 165, 0.08);
  color: var(--text);
}

.docs {
  display: grid;
  gap: 18px;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  column-gap: 24px;
  overflow: hidden;
}

.doc-header {
  display: contents;
  background: #fbfdff;
}

.doc-header > div:first-child {
  grid-column: 1;
  padding: 26px 0 0 26px;
}

.doc-header h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
}

.doc-summary {
  margin: 12px 0 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f8f5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.badge.pro {
  background: var(--amber-soft);
  color: #8a5b07;
}

.doc-shot {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 190px);
  margin: 26px 26px 26px 0;
  justify-self: end;
  padding: 9px;
  border-radius: 26px;
  background: #0f172a;
  align-self: start;
}

.doc-shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.doc-body {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 20px 0 26px 26px;
}

.doc-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.doc-block ul {
  margin: 0;
  padding-left: 20px;
}

.doc-block li + li {
  margin-top: 6px;
}

.doc-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #f1d28e;
  background: #fff9ed;
  color: #6b4506;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-logo {
  margin-bottom: 14px;
}

.footer-brand-logo img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.footer-brand-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand-subtitle {
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 500;
}

.footer-tagline {
  max-width: 22em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: #9aaabb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer-copy,
.footer-domain {
  color: #b0bec8;
  font-size: 12px;
}

.footer-domain {
  font-weight: 600;
}

@media (max-width: 920px) {
  .hero,
  .wiki-layout,
  .doc-body {
    grid-template-columns: 1fr;
  }

  .doc {
    display: block;
  }

  .doc-header {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
    background: #fbfdff;
    border-bottom: 1px solid var(--line);
  }

  .doc-header > div:first-child {
    padding: 0;
  }

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

  .toc {
    position: static;
  }

  .doc-shot {
    grid-column: auto;
    grid-row: auto;
    width: min(100%, 190px);
    margin: 18px 0 0;
    justify-self: start;
  }

  .doc-body {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    height: auto;
    min-height: 58px;
    padding: 10px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-link {
    display: none;
  }

  .nav-btn {
    min-height: 36px;
    font-size: 13px;
  }

  .lang-select-wrap select {
    min-height: 36px;
    max-width: 190px;
    font-size: 12px;
  }

  main {
    padding-top: 106px;
  }

  .hero {
    min-height: 0;
    padding: 44px 20px 54px;
  }

  h1 {
    font-size: 38px;
  }

  .divider-section,
  .wiki-section {
    padding: 52px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 36px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }
}
