/* 官网所有页面共用的样式。颜色与 App 的默认主题（靛蓝）一致 */
:root {
  --bg: #ffffff;
  --card: #f2f2f7;
  --text: #1c1c1e;
  --secondary: #6e6e73;
  --separator: #e5e5ea;
  --accent: #5458e0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --separator: #38383a;
    --accent: #8c8fff;
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

/* 页脚：三种页面相同 */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  color: var(--secondary);
  font-size: 13px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ---------- 首页 ---------- */

.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 16px 56px;
  text-align: center;
}

.home footer { justify-content: center; }

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--separator);
}

.home h1 {
  margin-top: 20px;
  font-size: clamp(44px, 12vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.tagline {
  margin-top: 8px;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.badge {
  display: block;
  margin-top: 28px;
}

.badge img {
  display: block;
  height: 54px;
}

.platforms {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 14px;
}

/* 截图：宽屏四张并排，窄屏横向滑动 */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1040px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .shots {
    grid-template-columns: repeat(4, 68vw);
    /* 伸到屏幕两边：抵掉 main 的左右留白，滑动时截图能贴边滑出去 */
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { scroll-snap-align: start; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--card);
  line-height: 1.4;
}

.facts strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.facts span {
  color: var(--secondary);
  font-size: 14px;
}

/* ---------- 文字页：隐私政策、支持、404 ---------- */

.doc header,
.doc main,
.doc footer {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.doc header { padding-top: 24px; }

.doc header a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.doc main {
  padding-top: 40px;
  padding-bottom: 48px;
}

.doc h1 {
  font-size: 32px;
  line-height: 1.25;
}

.doc h2 {
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.4;
}

.doc p { margin-top: 10px; }

.updated {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 14px;
}
