/* 移动优先、无框架、系统字体栈 */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: #1c1c1e;
  background: #ffffff;
  line-height: 1.5;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

#hero {
  text-align: center;
  margin-bottom: 24px;
}

#hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

#hero h1 {
  font-size: 22px;
  margin: 12px 0 4px;
}

#hero p {
  font-size: 14px;
  color: #6b6b70;
  margin: 0;
}

#redirecting {
  text-align: center;
  padding: 24px 0;
}

#cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

a,
button {
  min-height: 44px;
}

#cta a,
#manual-link,
#web-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
}

#cta a[data-primary="true"] {
  background: #2f7ded;
  color: #ffffff;
  font-weight: 600;
}

#cta a:not([data-primary="true"]) {
  background: #f2f2f7;
  color: #1c1c1e;
}

#web-link {
  color: #2f7ded;
  margin: 8px auto 0;
}

#help-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 13px;
}

#help-links a {
  color: #6b6b70;
  text-decoration: none;
}

/* 内置浏览器（微信/QQ）引导层：全屏半透明遮罩 + 顶部右侧箭头 */
#inapp-guide {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px 32px;
  text-align: right;
}

#inapp-guide-arrow {
  align-self: flex-end;
  font-size: 32px;
  margin: 0 8px 8px 0;
}

#inapp-guide p {
  text-align: center;
  align-self: center;
  max-width: 320px;
}

#inapp-continue-web {
  color: #ffffff;
  text-decoration: underline;
  margin-top: 16px;
}

#inapp-dismiss {
  margin-top: 32px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
}

/* 安装指南 / FAQ 页：details/summary、搜索框、有序步骤列表、提示框 */

h1 {
  font-size: 20px;
  margin: 0 0 20px;
}

details {
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

details summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 12px;
}

details h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}

details ul,
details ol {
  padding-left: 20px;
  margin: 8px 0;
}

details ol > li {
  margin-bottom: 16px;
}

details p {
  margin: 8px 0;
}

.warning-box,
.info-box {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
}

.warning-box {
  background: #fff8e6;
  border-left: 4px solid #ffb020;
}

.info-box {
  background: #e6f4fb;
  border-left: 4px solid #2f9bd6;
}

.warning-box strong,
.info-box strong {
  display: block;
  margin-bottom: 6px;
}

.warning-text {
  color: #d9534f;
  font-weight: 600;
}

.qa {
  margin-bottom: 12px;
}

#faq-search {
  width: 100%;
  padding: 0 14px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 16px;
}

#faq-list details {
  margin-bottom: 10px;
}
