* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.doc-header {
  margin-bottom: 24px;
}

.doc-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.doc-meta {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.intro,
.notice,
section,
.sdk-item,
.contact {
  margin-bottom: 24px;
}

.intro p:last-child,
.notice p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

ol,
ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

li:last-child {
  margin-bottom: 0;
}

.sdk-item p {
  margin: 0 0 6px;
}

.sdk-item p:last-child {
  margin-bottom: 0;
}

a {
  color: #333;
  text-decoration: underline;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .page {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .doc-header h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 14px;
  }
}
