/* dad mum potato · 站点样式（方向 A：首发作品领衔）
   颜色沿用原官网首页的紫色系；纸色 = 首屏插画的底色 #f9f4ed，插画放上去不露边。
   字体：寒蝉全圆体只有 Regular 一个字重，禁止合成粗体；层级只靠字号、颜色和留白。
   字号 6 档：display / h2 / h3 / lead / body / small（标签 13 是 small 的变体）。
   圆角规则：卡片 28，内嵌图片 16–20，按钮和标签全圆。
   夜间模式：始终浅色（11-15 定）。only light 让 Chrome 安卓等浏览器的「网页自动变暗」也不改这页。 */
@font-face { font-family: "Studio Rounded"; src: url("/assets/fonts/studio-latin.5f064370e7.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-205E, U+2190-21FF; }
@font-face { font-family: "Studio Rounded"; src: url("/assets/fonts/studio-zh.6aba4d232c.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-303F, U+3100-312F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF; }

:root {
  color-scheme: only light;
  --paper: #f9f4ed;
  --surface: #fffbf6;
  --ink: #281937;
  --muted: #5d5068;
  --line: #e6dbe3;
  --brand: #653893;
  --brand-deep: #4f2a74;
  --tint: #f1e8f2;
  --night: #1b1530;
  --shadow: 0 1px 2px rgba(40, 25, 55, .05), 0 18px 40px -18px rgba(40, 25, 55, .22);
  --r-card: 28px;
  --r-media: 20px;
  --fs-display: clamp(40px, 3.1vw + 22px, 72px);
  --fs-h2: clamp(28px, 1.3vw + 20px, 42px);
  --fs-h3: clamp(20px, .35vw + 18px, 24px);
  --fs-lead: clamp(17px, .3vw + 15px, 20px);
  --fs-body: 17px;
  --fs-small: 14px;
  --gutter: clamp(20px, 4.6vw, 120px);
  --content: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Studio Rounded", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400; font-synthesis: none; font-size: var(--fs-body); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; font-weight: 400; }
h1 { font-size: var(--fs-display); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.35; text-wrap: balance; }
.h1-box { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .h1-box h1 { font-size: min(var(--fs-display), 10.4cqi); }
  :lang(en) .h1-box h1 { font-size: min(var(--fs-display), 8.6cqi); }
}
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: 1.55; }
.balance { text-wrap: balance; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.wide { padding-inline: var(--gutter); }
section { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 10px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 12px; }

/* 页头 */
.site-head { position: relative; }
.site-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav .logo svg { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 14px; }
.lang:hover { background: color-mix(in srgb, var(--tint) 70%, var(--brand) 12%); }
.menu-btn { display: none; }
.nav-sheet { display: none; }
@media (max-width: 820px) {
  .nav-links > a:not(.lang) { display: none; }
  .menu-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .nav-sheet { position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); z-index: 20; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 8px; }
  .nav-sheet.open { display: flex; }
  .nav-sheet a { padding: 14px 16px; border-radius: 14px; }
  .nav-sheet a:hover { background: var(--tint); }
}
@media (max-width: 480px) {
  .site-nav .logo svg { height: 22px; }
  .nav-links > .lang { display: none; }
}

/* 按钮、链接、标签 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 17px; white-space: nowrap; transition: background .2s, transform .1s; }
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); white-space: nowrap; }
.link .icon { width: 18px; height: 18px; transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--fs-small); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 13px; white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app-icon.svg { background: #fff; overflow: hidden; }
.app-icon.svg svg { width: 100%; height: 100%; display: block; }

/* 实机画面：直接用截图，圆角接近真机屏幕，不画假机身 */
.shot { border-radius: 9% / 4.2%; border: 1px solid rgba(40, 25, 55, .08); box-shadow: var(--shadow); background: #fff; }
.ipad-shot { border-radius: 4.5% / 6%; border: 1px solid rgba(40, 25, 55, .08); box-shadow: var(--shadow); }

/* 首屏（首页和产品页共用） */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 5vw, 120px); min-height: min(calc(100dvh - 72px), 960px); padding-block: clamp(24px, 4vw, 64px) clamp(48px, 6vw, 96px); }
.hero-copy { display: grid; gap: 26px; max-width: 640px; }
.hero-copy .lead { max-width: 30em; }
.hero-copy .name { display: flex; align-items: center; gap: 14px; font-size: var(--fs-lead); }
.phones { position: relative; display: grid; grid-template-columns: 1fr 1.22fr 1fr; align-items: center; justify-items: center; max-width: 880px; justify-self: end; width: 100%; }
.phones img { width: 100%; }
.phones .p1 { transform: translateX(16%) scale(.9); z-index: 1; }
.phones .p2 { z-index: 2; }
.phones .p3 { transform: translateX(-16%) scale(.9); z-index: 1; }
@media (max-width: 1099px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .phones { justify-self: center; max-width: 620px; }
}
@media (min-width: 1800px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .phones { max-width: 920px; } }

/* 区块标题 */
.block { padding-block: clamp(56px, 7vw, 112px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3vw, 44px); max-width: 760px; }

/* 首页：四款 App */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bento > * { min-width: 0; }
.tile { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; display: grid; }
.tile-copy { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.4vw, 36px); }
.tile-copy .name { display: flex; align-items: center; gap: 14px; }
.tile-copy > p:not(.muted) { text-wrap: balance; }
.t-help { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.t-help .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 32px 32px 0; align-items: end; background: var(--night); }
.t-help .strip img { border-radius: 16px 16px 0 0; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.t-math { grid-column: 1 / 6; grid-row: 2 / 4; grid-template-rows: auto 1fr; }
.t-math .media { background: #0f3b49; display: flex; justify-content: center; padding: 28px 28px 0; overflow: hidden; }
.t-math .media img { width: min(78%, 300px); border-radius: 26px 26px 0 0; }
.t-tink, .t-glim { grid-column: 6 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.t-tink { grid-row: 2; } .t-glim { grid-row: 3; }
.t-tink .media, .t-glim .media { padding: 22px 22px 22px 0; display: flex; align-items: center; }
.t-tink .media img, .t-glim .media img { border-radius: 16px; }
.caption { margin-top: 14px; }
@media (max-width: 1023px) {
  .t-help { grid-template-columns: 1fr; }
  .t-math, .t-tink, .t-glim { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .t-help .strip { padding: 22px 16px 0; gap: 8px; }
  .t-tink, .t-glim { grid-template-columns: 1fr; }
  .t-tink .media, .t-glim .media { padding: 0 20px 20px; }
}

/* 首页：我们怎样做 */
.ill { width: 100%; max-width: 2172px; margin: 0 auto clamp(28px, 3vw, 48px); }
/* 手机上插画会缩成细带：裁出中间那段放大（土豆坐在拱上、三角和圆球） */
@media (max-width: 767px) { .ill { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; } }

/* 各页插画（土豆一家，3:2）：四边已渐隐、中间是不透明的纸色底，只能放在页面纸色底上——
   放到淡紫色块或白卡片上会露出方块。都是装饰，alt 留空。出图见 scripts/illustrations.sh */
.art { width: 100%; }
.art-break { display: grid; justify-items: center; margin-top: calc(-1 * clamp(24px, 4vw, 64px)); }
.art-break .art { max-width: 600px; }
.art-head { width: min(100%, 320px); margin-block: calc(-1 * clamp(16px, 2.4vw, 36px)) -12px; }
.notfound .art { width: min(100%, 420px); }
.rows { display: grid; border-top: 1px solid var(--line); margin-top: 28px; }
.rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; padding: 26px 0; }
.rows > div + div { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .rows > div { grid-template-columns: 1fr; gap: 6px; } }

/* 给家长（首页） */
.panel { background: var(--tint); border-radius: var(--r-card); padding: clamp(28px, 4vw, 64px); display: grid; gap: 32px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.fact .icon { width: 28px; height: 28px; color: var(--brand); grid-row: span 2; margin-top: 2px; }
.fact h3 { font-size: 19px; }
@media (max-width: 767px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

/* 联系 */
.contact { display: grid; gap: 18px; }
.contact a.mail { font-size: var(--fs-h2); line-height: 1.2; color: var(--brand); word-break: break-word; }

/* 产品页：怎么玩 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps > div { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.steps .icon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* 产品页：七款游戏（贪吃蛇占一整行，其余六款两行三列，正好七格） */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.games > * { min-width: 0; }
.game { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.game .stage { background: var(--night); padding: 22px 22px 0; display: flex; justify-content: center; height: 300px; overflow: hidden; }
.game .stage img { width: min(64%, 210px); border-radius: 18px 18px 0 0; object-fit: cover; object-position: top; }
.game .copy { display: grid; gap: 10px; align-content: start; padding: 22px 24px 26px; }
.game .copy .title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.game dl { display: grid; gap: 8px; margin-top: 4px; }
.game dt { font-size: var(--fs-small); color: var(--muted); }
.game dd { margin: -4px 0 0; }
.game.feature { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.game.feature .stage { order: 2; height: auto; min-height: 340px; padding: 28px 28px 0; }
.game.feature .stage img { width: min(46%, 240px); }
.game.feature .copy { padding: clamp(24px, 3vw, 44px); align-content: center; }
@media (max-width: 1023px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .games { grid-template-columns: 1fr; }
  .game.feature { grid-template-columns: 1fr; }
  .game.feature .stage { order: 0; min-height: 0; height: 300px; }
  .game.feature .stage img { width: min(64%, 210px); }
}

/* 产品页：设计思路（大字段落） */
.thinking { background: var(--tint); }
.thinking .inner { display: grid; gap: 22px; max-width: 860px; }
.thinking .inner p { font-size: var(--fs-lead); line-height: 1.75; }
.thinking .inner p.say { font-size: clamp(24px, 1.2vw + 18px, 32px); line-height: 1.4; color: var(--ink); }

/* 产品页：给家长（分组） */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.group { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.group .icon { width: 28px; height: 28px; color: var(--brand); grid-row: span 2; margin-top: 3px; }
.group h3 { font-size: 19px; }
@media (max-width: 767px) { .groups { grid-template-columns: 1fr; } }

/* 产品页：进展 */
.status { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 48px; align-items: start; padding: clamp(28px, 3vw, 44px) 0; border-block: 1px solid var(--line); }
@media (max-width: 767px) { .status { grid-template-columns: 1fr; } }

/* 常见问题：自绘展开标记，不用浏览器默认三角 */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details > p { padding: 0 0 24px; color: var(--muted); max-width: 46em; }

/* 隐私页：长文排版 */
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h1 { font-size: var(--fs-h2); margin-bottom: 8px; }
.prose h2, .prose h3 { font-size: var(--fs-h3); line-height: 1.35; margin-top: 26px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { font-weight: 400; color: var(--ink); }
.prose blockquote { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--tint); color: var(--brand); font-size: var(--fs-small); }
.prose blockquote p { color: inherit; }

/* 页脚 */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 36px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.site-foot .logo svg { height: 22px; width: auto; display: block; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-foot a:hover { color: var(--ink); }

/* 产品页：iPad 画面两张叠放 */
.tablets { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 860px; padding: 8% 0 0 0; }
.tablets img { width: 100%; }
.tablets .t1 { position: relative; z-index: 2; width: 86%; }
.tablets .t2 { position: absolute; z-index: 1; top: 0; right: 0; width: 58%; }
.tablets figcaption { margin-top: 14px; }
@media (max-width: 1099px) { .tablets { justify-self: center; max-width: 680px; } }

/* 产品页：里面有什么（两栏列表，细线分隔） */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 1px solid var(--line); }
.items > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .items { grid-template-columns: 1fr; } }

/* 我们的做法 */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); padding-top: clamp(28px, 4vw, 72px); }
.about-copy .lead { max-width: 36em; }
@media (max-width: 1023px) { .about-hero { grid-template-columns: 1fr; } .about-hero .art { max-width: 640px; } }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 64px; }
.story-body { display: grid; gap: 18px; }
.story-body p { font-size: var(--fs-lead); line-height: 1.75; }
.exploring { display: grid; gap: 14px; max-width: 860px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, transparent); }
@media (max-width: 767px) { .story { grid-template-columns: 1fr; } }

/* 支持页 */
.page-head { display: grid; gap: 16px; padding-bottom: clamp(24px, 3vw, 40px); }
.page-head .lead { max-width: 40em; }
.page-head.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: center; column-gap: clamp(24px, 4vw, 72px); }
.page-head-copy { display: grid; gap: 16px; }
@media (max-width: 767px) { .page-head.has-art { grid-template-columns: 1fr; } .page-head.has-art .art { max-width: 280px; } }
.support-app { margin-bottom: clamp(36px, 4vw, 56px); }
.support-app .name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }

/* 小工具类（代替行内样式，方便上严格的内容安全策略） */
.how-block { padding-block: clamp(40px, 5vw, 80px) clamp(56px, 7vw, 112px); }
.block.no-top { padding-top: 0; }
.after { margin-top: 28px; }
.as-h3 { font-size: var(--fs-h3); line-height: 1.35; }
.as-h2 { font-size: var(--fs-h2); }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 22px; }
