*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #f5f5f5;
  color: #000;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* 盖过 .androids{display:grid} 等作者样式，避免 hidden 失效漏出另一端 */
[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

.tutorials {
  min-height: 100dvh;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f5f5f5;
}

/* 叠层内嵌：顶栏由父页壳承担，本页只出内容（html 上提前打标，防闪双顶栏） */
html.is-embed .tutorials,
body.is-embed .tutorials {
  min-height: 100%;
  padding-top: 0;
  overflow-y: visible;
}
html.is-embed .tutorials > header,
body.is-embed .tutorials > header {
  display: none !important;
}

.tutorials header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
  background: #fff;
  color: #000;
}

.tutorials header h1 {
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  color: #333;
  line-height: 30px;
}

.tutorials .back {
  position: absolute;
  left: 14px;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tutorials .back img {
  width: 30px;
  height: 30px;
}

.fs-16 { font-size: 16px; }
.fs-17 { font-size: 17px; }
.fw-500 { font-weight: 500; }
.center { text-align: center; }
.c-333 { color: #333; }
.c-000 { color: #000; }
.space { height: 20px; }

.ios { padding-top: 8px; }

.grid {
  display: grid;
  grid-template: 1fr / auto 1fr;
  column-gap: 10px;
  align-items: center;
  list-style: none;
}

.num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 21px;
  font-weight: 600;
  border-radius: 50%;
  background: red;
  color: #fff;
}

.text {
  font-size: 16px;
  text-align: left;
  color: #000;
  font-weight: 500;
}

.wrap { margin: 0 20px; }
.wrap img { width: 100%; }

.apple {
  font-size: 16px;
  color: #6f6f6f;
  text-align: center;
  padding: 0 16px calc(34px + env(safe-area-inset-bottom, 0px));
}

.androids {
  display: grid;
  grid-template: 1fr / 1fr;
  margin: 12px 16px 0;
  overflow: hidden;
  row-gap: 12px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

html.is-embed .androids,
body.is-embed .androids {
  margin-top: 8px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.androids dt {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.androids dt img {
  display: block;
  width: 100%;
  height: auto;
}

.androids dd {
  display: none;
  padding-top: 12px;
}

.androids dd img { width: 100%; }

.androids dl[data-open="true"] dd { display: block; }
