/* 远程控制 homepage. A dark first screen with the App window, then quiet white sections:
   heading on the left, short items on the right. One accent (the App's blue). */
:root {
  color-scheme: light;
  --ink: #0b1020;
  --ink-2: #5a6272;
  --ink-3: #8a91a0;
  --ground: #fff;
  --night: #0a1024;
  --on-night: #f2f4f8;
  --on-night-2: #a3acbf;
  --accent: #2563eb;
  --accent-hover: #1d4fd6;
  --line: #eceff4;
  --wrap: 1080px;
  --gutter: 24px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
/* Shown by site.js only when an Android package is published; .btn's display would beat [hidden]. */
.btn[hidden] { display: none; }
.btn-alt { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(242, 244, 248, 0.35); }
.btn-alt:hover { background: rgba(242, 244, 248, 0.08); }

/* ---------- First screen ---------- */
.night { background: var(--night); color: var(--on-night); }
.top .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--on-night-2); }
.nav a { transition: color 0.2s ease-out; }
.nav a:hover { color: var(--on-night); }
.top .btn { margin-left: auto; }
@media (max-width: 640px) { .nav { display: none; } }

.hero { text-align: center; padding: 88px 0 0; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.hero .lead { margin-top: 20px; font-size: 20px; color: var(--on-night-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 40px; }
.soon { font-size: 14px; color: var(--on-night-2); }
.release { min-height: 22px; margin-top: 16px; font-size: 14px; color: var(--on-night-2); }
.platforms { font-size: 14px; color: var(--on-night-2); }

.stage { position: relative; margin: 64px auto -160px; max-width: 960px; }
.window {
  border-radius: 12px; overflow: hidden; background: #f4f5f7;
  box-shadow: 0 32px 80px rgba(10, 16, 36, 0.28);
}
.window-bar {
  display: flex; align-items: center; height: 34px; padding-left: 16px;
  background: #e8ebf0; color: #3c4250; font-size: 12px; text-align: left;
}
.window-bar span { flex: 1; }
.window-bar svg { width: 44px; height: 34px; padding: 12px 16px; }

/* ---------- Sections: heading left, items right ---------- */
.body { padding-top: 220px; }
.block { padding: 96px 0; }
.block + .block .split { padding-top: 96px; border-top: 1px solid var(--line); }
.block + .block { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }

.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; }
@media (min-width: 560px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.items h3 { font-size: 16px; font-weight: 600; }
.items p { margin-top: 4px; color: var(--ink-2); }

.steps { counter-reset: step; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step) "  "; color: var(--accent); white-space: pre; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child summary { padding-top: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease-out;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .admin { margin-left: auto; }
.foot a { transition: color 0.2s ease-out; }
.foot a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.missing { min-height: 100vh; display: flex; flex-direction: column; }
.missing main { flex: 1; display: flex; align-items: center; text-align: center; padding: 64px 0 120px; }
.missing main .wrap { width: 100%; }
.missing h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.2; font-weight: 700; }
.missing .lead { margin-top: 16px; font-size: 18px; color: var(--on-night-2); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 48px; }
  .hero .lead { font-size: 17px; }
  .stage { margin: 44px auto -64px; }
  .window { box-shadow: 0 12px 32px rgba(10, 16, 36, 0.2); }
  .window-bar { height: 26px; font-size: 11px; }
  .window-bar svg { width: 34px; height: 26px; padding: 8px 12px; }
  .body { padding-top: 96px; }
  .block { padding: 64px 0; }
  .block + .block .split { padding-top: 64px; }
  h2 { font-size: 24px; }
}
