/* Lookit 子站：lookit.ultralogictec.com
   品牌色取自 App：荧光黄绿 #D8F546（启动屏同色）、深橄榄 #1C2A07（标志与字标）。
   页面主要在 App 内的 Safari 视图里打开，所以按手机优先排版；不依赖任何外部字体或脚本。 */

:root {
  --volt: #D8F546;
  --brand-ink: #1C2A07;   /* 品牌区（黄绿底）上的图形和文字，深浅模式都不变 */
  --paper: #FFFFFF;
  --ink: #1C2A07;
  --mute: #56613F;
  --wash: #F1F7D2;
  --rule: #DCE4C2;
  --accent: #4F6B00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C2A07;
    --ink: #EEF4D8;
    --mute: #B9C495;
    --wash: #263A0B;
    --rule: #3A5117;
    --accent: #D8F546;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "palt" 0;
}

[lang="en"] { line-height: 1.6; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* 左右边距只在 .wrap 里定义；上下边距由各区块用 padding-top / padding-bottom 单独给，避免简写互相覆盖 */
.wrap { max-width: 40rem; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ---------- 品牌区 ---------- */

.brand { background: var(--volt); color: var(--brand-ink); }
.brand a { color: var(--brand-ink); }

/* 首页：和 App 冷启动那一刻同一个画面——黄绿底、两只眼、字标 */
.hero { padding-top: 56px; padding-bottom: 44px; }
.hero .eyes { display: block; width: min(64vw, 300px); height: auto; margin: 0 0 28px; }
.hero h1 { margin: 0; line-height: 1; }
.hero h1 .wordmark { display: block; width: min(54vw, 236px); height: auto; }
.hero .tagline { margin: 22px 0 0; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; }
.hero .lead { margin: 12px 0 0; font-size: 17px; max-width: 30em; }

/* 子页：窄条，字标链接回首页 */
.bar { padding-top: 14px; padding-bottom: 14px; }
.bar a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.bar .eyes { width: 58px; height: auto; }
.bar .wordmark { width: 74px; height: auto; }

/* 眼睛：首页加载时眨一下，再看向右上（与 App 开场动画同一个动作）；减弱动态时直接停在看右上 */
.eye-lid { transform-box: fill-box; transform-origin: center; }
.pupil { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero .eye-lid { animation: blink 0.5s ease-in-out 0.5s 1 both; }
  .hero .pupil { animation: glance 0.45s ease-out 1.05s 1 both; }
}
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  40%, 60% { transform: scaleY(0.08); }
}
@keyframes glance {
  from { transform: translate(-26px, 22px); }
  to { transform: translate(0, 0); }
}

/* ---------- 正文 ---------- */

main { padding-top: 8px; padding-bottom: 48px; }

h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 10px; }
h3 { font-size: 18px; line-height: 1.45; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }

.page-title { font-size: 28px; line-height: 1.3; margin: 32px 0 6px; }
.meta { color: var(--mute); font-size: 15px; margin: 0 0 4px; }
.lang-switch { font-size: 15px; margin: 0 0 8px; }
.note { color: var(--mute); font-size: 15px; }

/* 真正的先后步骤，才用编号 */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 0 0 16px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1em;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-ink); color: var(--volt);
  font-weight: 700; font-size: 15px; line-height: 28px; text-align: center;
}

/* 支持页的联系方式：全页唯一一块底色 */
.contact { background: var(--wash); padding: 18px 20px; margin: 24px 0 8px; border-radius: 12px; }
.contact p { margin: 0 0 8px; }
.contact p:last-child { margin-bottom: 0; }
.contact .mail { font-size: 21px; font-weight: 700; word-break: break-all; }

/* 常见问题 */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 14px 32px 14px 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 22px; line-height: 1.2; color: var(--mute);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; }

.section-en { margin-top: 56px; padding-top: 8px; border-top: 2px solid var(--rule); }

/* ---------- 页脚 ---------- */

footer { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 40px; color: var(--mute); font-size: 15px; line-height: 1.7; }
footer p { margin: 0 0 6px; }
footer .company { color: var(--ink); font-weight: 600; }
footer nav { margin: 14px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
