:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #646b76;
  --line: #d9dee7;
  --accent: #0b7a75;
  --accent-strong: #075f5b;
  --gold: #b97805;
  --shadow: 0 18px 50px rgba(26, 32, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #f6f7f9;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 222, 231, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand,
.nav-links a {
  text-decoration: none;
}

.brand {
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
}

.nav-links a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a.is-active {
  background: #eef4f3;
  color: var(--accent-strong);
}

.view {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 620px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px max(24px, calc((100vw - 1120px) / 2)) 92px;
  background: #f2f5f4;
}

.hero::before {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 34px;
  width: min(620px, calc(100% - 48px));
  height: 372px;
  border-radius: 8px;
  background: url("assets/hero-bg.svg") center / contain no-repeat;
  content: "";
  opacity: 0.82;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f2f5f4 0%, rgba(242, 245, 244, 0.94) 45%, rgba(242, 245, 244, 0.5) 100%);
  content: "";
}

.hero > * {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action,
.product-card button {
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action,
.product-card button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
}

.section {
  padding: 74px 0 90px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 48px;
  letter-spacing: 0;
}

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

.product-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(26, 32, 44, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card:focus {
  border-color: rgba(11, 122, 117, 0.42);
  outline: none;
  transform: translateY(-4px);
}

.product-kicker,
.old-price {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-card h3 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.product-desc,
.product-card li {
  color: var(--muted);
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0;
}

.old-price {
  text-decoration: line-through;
}

.price {
  color: var(--gold);
  font-size: 38px;
  font-weight: 800;
}

.product-card ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.product-card button {
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0 80px;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.docs-sidebar a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
}

.docs-sidebar a.is-active {
  background: #eef4f3;
  color: var(--accent-strong);
  font-weight: 700;
}

.markdown-body {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 34px;
  line-height: 1.65;
}

.markdown-body h1,
.markdown-body h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d8dee4;
  line-height: 1.25;
}

.markdown-body h1 {
  margin: 0 0 24px;
  font-size: 32px;
}

.markdown-body h2 {
  margin-top: 28px;
  font-size: 24px;
}

.markdown-body p {
  margin: 12px 0;
}

.markdown-alert {
  margin: 18px 0;
  border-left: 0.25em solid;
  padding: 8px 16px;
}

.markdown-alert p {
  margin: 8px 0;
}

.markdown-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.markdown-alert-title::before {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.markdown-alert-warning {
  border-color: #9a6700;
}

.markdown-alert-warning .markdown-alert-title {
  color: #9a6700;
}

.markdown-alert-warning .markdown-alert-title::before {
  background: #9a6700;
  content: "!";
}

.markdown-alert-tip {
  border-color: #1a7f37;
}

.markdown-alert-tip .markdown-alert-title {
  color: #1a7f37;
}

.markdown-alert-tip .markdown-alert-title::before {
  background: #1a7f37;
  content: "i";
}

.markdown-alert-important {
  border-color: #8250df;
}

.markdown-alert-important .markdown-alert-title {
  color: #8250df;
}

.markdown-alert-important .markdown-alert-title::before {
  background: #8250df;
  content: "i";
}

.markdown-body a {
  color: #0969da;
}

.markdown-body code {
  border-radius: 6px;
  background: rgba(175, 184, 193, 0.2);
  padding: 0.2em 0.4em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.markdown-body img {
  display: block;
  max-width: 100%;
  margin: 14px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.service-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7a75 0%, #128e86 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 122, 117, 0.32);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-button:hover,
.service-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(11, 122, 117, 0.38);
}

.service-button svg {
  width: 28px;
  height: 28px;
}

.service-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 20;
  width: min(340px, calc(100% - 32px));
  border: 1px solid rgba(217, 222, 231, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow: 0 22px 60px rgba(26, 32, 44, 0.18);
  backdrop-filter: blur(18px);
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-head strong,
.service-head span {
  display: block;
}

.service-head strong {
  font-size: 18px;
}

.service-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.service-head button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: var(--muted);
  cursor: pointer;
}

.service-head button:hover,
.service-head button:focus-visible {
  outline: none;
  background: #e6eaee;
  color: var(--text);
}

.service-head svg {
  width: 18px;
  height: 18px;
}

.service-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.wechat {
  margin: 16px 0;
  border-radius: 8px;
  background: #eef4f3;
  padding: 13px 14px;
  color: var(--accent-strong);
  font-weight: 800;
}

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

.service-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #0969da;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.service-links a:hover,
.service-links a:focus-visible {
  outline: none;
  border-color: rgba(9, 105, 218, 0.32);
  background: #f6f9ff;
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .brand span:last-child {
    display: none;
  }

  .view {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 560px;
    padding: 56px 24px 58px;
    justify-content: flex-start;
  }

  .hero::before {
    right: 24px;
    bottom: 34px;
    width: calc(100% - 48px);
    height: 230px;
    opacity: 0.72;
  }

  .hero::after {
    background: linear-gradient(180deg, #f2f5f4 0%, rgba(242, 245, 244, 0.94) 54%, rgba(242, 245, 244, 0.56) 100%);
  }

  .hero h1 {
    font-size: 44px;
    max-width: 420px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .product-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 400px;
    padding: 22px;
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .markdown-body {
    padding: 22px;
  }

  .service-button {
    right: 16px;
    bottom: 16px;
  }

  .service-panel {
    right: 16px;
    bottom: 86px;
  }
}
