:root {
  --ink: #111;
  --muted: #6b7280;
  --card: #fff;
  --page: #f2f2f7;
  --line: rgba(60,60,67,.12);
  --accent: #0f6e62;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }

.pub {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 13px;
  color: #8e8e93;
  margin: 0 2px 8px;
}
.lang-switch a { color: #8e8e93; }
.lang-switch .on { color: var(--ink); font-weight: 600; }
.lang-switch .sep { margin: 0 6px; color: #c7c7cc; }
.pub-head {
  text-align: center;
  margin-bottom: 22px;
}
.pub-head img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.pub-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.pub-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.group-title {
  font-size: 13px;
  color: #6e6e73;
  margin: 18px 8px 8px;
  font-weight: 600;
}
.group {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.row:last-child { border-bottom: 0; }
.row .k { color: #6e6e73; flex-shrink: 0; }
.row .v { text-align: right; word-break: break-word; }
.row a { color: var(--ink); }

.pad { padding: 16px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  font: inherit;
  border: 0;
  background: #f2f2f7;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
textarea { min-height: 110px; resize: vertical; }
.submit {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px;
}
.ok {
  background: #e8f6f2;
  color: #0b5348;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 8px;
}
.err {
  background: #fdecea;
  color: #b42318;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.captcha-row input {
  flex: 1;
  margin-bottom: 0;
}
.captcha-row img {
  width: 120px;
  height: 44px;
  border-radius: 10px;
  background: #f2f2f7;
  cursor: pointer;
  flex-shrink: 0;
  object-fit: contain;
}
.note {
  padding: 13px 16px;
  font-size: 14px;
  color: #6e6e73;
  border-bottom: 1px solid var(--line);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #3c3c43;
  margin: 6px 0 14px;
}
.check input { margin-top: 3px; }
.code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.code-row input {
  flex: 1;
  margin-bottom: 0;
}
.code-btn {
  min-width: 108px;
  width: auto;
  padding: 0 12px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.code-btn:disabled {
  background: #c5c9ce;
  cursor: default;
}
.hint-msg {
  margin: 0 0 10px;
}
.footer {
  text-align: center;
  color: #8e8e93;
  font-size: 12px;
  margin-top: 28px;
  line-height: 1.7;
}
.doc-page {
  background: #fff;
  min-height: 100vh;
}
.doc-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px 64px;
}
.doc-wrap h1 { font-size: 24px; margin: 0 0 8px; }
.doc-meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.article {
  font-size: 16px;
  line-height: 1.75;
  color: #222;
}
.article h1, .article h2, .article h3 { line-height: 1.35; }
.article h2 { font-size: 20px; margin-top: 1.6em; }
.article p { margin: .8em 0; }
.article a { text-decoration: underline; }
.article ul, .article ol { padding-left: 1.3em; }
.article code {
  background: #f3f1ec;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .92em;
}
.article pre {
  background: #111;
  color: #f5f5f5;
  padding: 14px;
  border-radius: 10px;
  overflow: auto;
}
.article pre code { background: none; color: inherit; padding: 0; }
.article img { max-width: 100%; border-radius: 8px; }
.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
}
