:root {
  --brand: #0052d9;
  --brand-light: #266fe8;
  --brand-dark: #003cab;
  --brand-bg: #f2f3ff;
  --text: rgba(0, 0, 0, 0.9);
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-placeholder: rgba(0, 0, 0, 0.4);
  --bg: #f3f3f3;
  --card: #ffffff;
  --border: #e7e7e7;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

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

a:hover {
  text-decoration: underline;
}

.page-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 55%, var(--brand-dark) 100%);
  color: #fff;
  padding: 28px 20px 36px;
}

.page-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-header .app-name {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.page-header .meta {
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.6;
}

.page-body {
  max-width: 720px;
  margin: -16px auto 32px;
  padding: 0 16px;
}

.doc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 32px;
}

.doc-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text);
}

.doc-card p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-align: justify;
}

.doc-card ul,
.doc-card ol {
  margin: 0 0 12px 1.25em;
  color: var(--text-secondary);
}

.doc-card li {
  margin-bottom: 6px;
}

.doc-card strong {
  color: var(--text);
  font-weight: 600;
}

.highlight {
  background: var(--brand-bg);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 12px 0 16px;
  max-width: 100%;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 82, 217, 0.35) transparent;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 82, 217, 0.35);
  border-radius: 999px;
}

.table-scroll .info-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.info-table {
  border-collapse: collapse;
  font-size: 13px;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--brand-bg);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.info-table td {
  color: var(--text-secondary);
}

.info-table.sdk-table {
  min-width: 680px;
}

.info-table.sdk-table th:nth-child(1),
.info-table.sdk-table td:nth-child(1) {
  min-width: 132px;
}

.info-table.sdk-table th:nth-child(2),
.info-table.sdk-table td:nth-child(2) {
  min-width: 168px;
}

.info-table.sdk-table th:nth-child(3),
.info-table.sdk-table td:nth-child(3) {
  min-width: 128px;
}

.info-table.sdk-table th:nth-child(4),
.info-table.sdk-table td:nth-child(4) {
  min-width: 200px;
}

.info-table.sdk-table a {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .table-scroll {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 2px;
  }

  .table-scroll::after {
    content: "左右滑动查看更多";
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-placeholder);
    text-align: center;
  }

  .info-table:not(.sdk-table) th,
  .info-table:not(.sdk-table) td {
    white-space: nowrap;
  }
}

.page-footer {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-placeholder);
}

.page-footer .links {
  margin-bottom: 10px;
}

.page-footer .links a {
  margin: 0 10px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .page-header {
    padding: 40px 24px 48px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .doc-card {
    padding: 32px 36px 40px;
  }
}
