/* Docs: /docs/pocket-chief-website-integration.md
   Pocket Chief 主页 2.0 短版（七屏）。样式移植自 pet-chief docs/design-review/homepage-2.0-short/index.html，
   只给主页用；帮助页、隐私页等仍用 styles.css。
   标题衬线体自托管子集（scripts/subset-pocket-chief-home-fonts.py 生成），正文用系统字体，不请求第三方字体。 */
@font-face { font-family: "Pocket Chief Serif SC"; src: url(assets/home-short/fonts/noto-serif-sc-900.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap }
@font-face { font-family: "Pocket Chief Serif JP"; src: url(assets/home-short/fonts/noto-serif-jp-900.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap }
:root {
  --paper: #fff8e9; --paper-warm: #f3ead7; --cloud: #fffdfa; --sky-pale: #dff3ff;
  --ink: #192447; --ink-soft: rgba(25,36,71,.74); --mute: #5d6684; --line: rgba(25,36,71,.12);
  --mint-deep: #167d77; --gold: #dcb86a; --gold-soft: #fff1c6;
  --bubble: #fdf6e3; --bubble-line: #e8d9b4; --bubble-ink: #1d1f22;
  --lift: 0 0 0 1px rgba(25,36,71,.07), 0 18px 44px rgba(55,68,92,.14);
  --serif: "Pocket Chief Serif SC", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1a1f30; --paper-warm: #222842; --cloud: #232a3f; --sky-pale: #1e2a44; --ink: #f1ecdf; --ink-soft: rgba(241,236,223,.76); --mute: #b4b0a4; --line: rgba(241,236,223,.14); --gold-soft: #3b3421; --mint-deep: #7bd8cd;
  --lift: 0 0 0 1px rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.4); color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #1a1f30; --paper-warm: #222842; --cloud: #232a3f; --sky-pale: #1e2a44; --ink: #f1ecdf; --ink-soft: rgba(241,236,223,.76); --mute: #b4b0a4; --line: rgba(241,236,223,.14); --gold-soft: #3b3421; --mint-deep: #7bd8cd;
  --lift: 0 0 0 1px rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.4); color-scheme: dark }

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; margin: 0; -webkit-font-smoothing: antialiased; overflow-x: clip }
img { display: block; max-width: 100% }
.pad { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)) }
.wrap { max-width: 1120px; margin: 0 auto }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; letter-spacing: .01em; margin: 0; text-wrap: balance }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.28 }
.lead { font-size: 17px; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.9; max-width: 24em }
.cta { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--sans); padding: 14px 26px; border-radius: 999px; background: #192447; color: #fff8e9; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(25,36,71,.6); transition: transform .15s ease-out }
.cta:active { transform: scale(.97) }
.cta.ghost { background: rgba(255,253,250,.9); color: #192447; box-shadow: inset 0 0 0 1.5px rgba(25,36,71,.16) }
.cta.sm { font-size: 13px; padding: 8px 16px }
a:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px }
q { quotes: none }

/* 气泡：App 里她说话用的那一种 */
.bubble { display: inline-block; position: relative; background: var(--bubble); color: var(--bubble-ink); border: 1.5px solid var(--bubble-line); border-radius: 20px; padding: 12px 18px; font-size: 16px; line-height: 1.75; box-shadow: 0 14px 30px -12px rgba(0,30,60,.35) }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; padding-block: 12px }
.nav-in { display: flex; align-items: center; gap: 16px; background: color-mix(in srgb, var(--cloud) 88%, transparent); backdrop-filter: blur(12px); border-radius: 999px; padding: 8px 10px 8px 16px; box-shadow: var(--lift) }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 900; font-size: 17px; font-style: italic; color: inherit; text-decoration: none; white-space: nowrap }
.logo img { width: 30px; height: 30px; border-radius: 22%; object-fit: cover }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px }
.nav-links a { color: var(--ink-soft); text-decoration: none }
.nav .cta { background: var(--ink); color: var(--paper) }

/* 1 首屏：天空 + 片子 */
.hero { position: relative; background: #bfe3fb url(assets/home-short/sky.webp) center / cover no-repeat; overflow: hidden; margin-top: -70px; padding-block: 150px 120px; color: #192447 }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--paper)); pointer-events: none }
.sheet { position: absolute; width: 56px; height: 74px; background: #fff; border-radius: 4px; box-shadow: 0 10px 20px -8px rgba(30,60,100,.35); opacity: .85; animation: drift 9s ease-in-out infinite }
.sheet.a { left: 3%; top: 62%; rotate: -18deg } .sheet.b { left: 44%; top: 12%; width: 40px; height: 54px; rotate: 22deg; animation-delay: -3s } .sheet.c { right: 5%; top: 9%; rotate: 14deg; animation-delay: -6s }
@keyframes drift { 50% { translate: 0 -14px } }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 48px; align-items: center }
.hero h1 { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.22; text-shadow: 0 2px 0 rgba(255,255,255,.5) }
.hero .bubble { margin-top: 22px; font-size: 17px; border-radius: 20px 20px 20px 6px }
.hero-act { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap }
.hero small { display: block; margin-top: 14px; font-size: 13px; color: rgba(25,36,71,.72) }

/* 片子：真视频，不自动播放 */
.film { position: relative }
.film-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #a9d6f5 url(assets/home-short/sky.webp) center 20% / cover no-repeat; box-shadow: 0 0 0 6px rgba(255,253,250,.85), 0 40px 80px -30px rgba(10,30,60,.55) }
.film-frame video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: transparent }

/* 2–3 两个时刻 */
.beat { padding-block: 120px 0 }
.beat-in { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); gap: 56px; align-items: center }
.beat.flip .beat-in { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr) }
.beat.flip .copy { order: 2 }

.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: #8fc6ea url(assets/home-short/sky.webp) center 30% / cover no-repeat; box-shadow: var(--lift); container-type: inline-size }
.desk.dusk::before { content: ""; position: absolute; inset: 0; background: linear-gradient(195deg, rgba(255,176,92,.6), rgba(255,138,112,.4) 55%, rgba(118,88,168,.5)) }
.menubar { position: absolute; inset: 0 0 auto; height: 4.4cqw; display: flex; align-items: center; gap: 2cqw; padding-inline: 2.2cqw; font-size: max(10px, 1.7cqw); color: #192447; background: rgba(255,255,255,.45); backdrop-filter: blur(8px); z-index: 2 }
.menubar b { font-weight: 700 } .menubar .r { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500 }
.win { position: absolute; left: 5cqw; top: 10cqw; width: 50cqw; background: #fbfbfa; color: #1d1f22; border-radius: 1.3cqw; box-shadow: 0 3cqw 5cqw -2cqw rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.25); overflow: hidden; font-family: var(--sans) }
.win-top { display: flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 1.5cqw; border-bottom: 1px solid #e6e6e3; font-size: max(9px, 1.5cqw); color: #6c7074; background: #f3f3f1 }
.dots { display: flex; gap: .7cqw } .dots i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff5f57; display: block } .dots i:nth-child(2){background:#febc2e} .dots i:nth-child(3){background:#28c840}
.win-top span { flex: 1; text-align: center; margin-right: 5cqw; font-weight: 500 }
.doc { padding: 2.6cqw 3.6cqw 3.4cqw; font-size: max(9px, 1.7cqw); line-height: 1.9; color: #3a3d41 }
.doc h3 { font: 700 max(11px, 2.3cqw)/1.4 var(--sans); margin: 0 0 .6cqw; color: #1d1f22 }
.trip { display: grid; gap: 1cqw; margin-top: 1.4cqw }
.trip div { display: flex; gap: 1.6cqw; align-items: center; padding: 1cqw 1.4cqw; border-radius: 1cqw; background: #f3f3f1 }
.trip b { font-weight: 700; color: #1d1f22; min-width: 6cqw; flex: none }
.trip .stuck { background: #fff; box-shadow: 0 0 0 .35cqw #ff8a3d; }
.trip .stuck span { color: #c2410c; font-weight: 700 }
.pet { position: absolute; right: 2.5cqw; bottom: 0; width: 42cqw; z-index: 1; display: flex; flex-direction: column; align-items: center }
.pet img { width: 50%; height: auto; filter: drop-shadow(0 1cqw 1.4cqw rgba(0,0,0,.28)) }
.pet .bubble { font-size: max(11px, 1.95cqw); padding: 1.3cqw 1.9cqw; border-radius: 2.2cqw; border-width: max(1px, .2cqw); margin-bottom: -1.5cqw; z-index: 2; text-align: center; white-space: nowrap }

/* 4–5 两个真实页面：手头的事、对话（离屏渲染的虚构剧本） */
.shot { position: relative; justify-self: center; width: min(100%, 480px) } /* 480 = App 窗口原宽，2x 截图正好一比一 */
.shot > img:first-child { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(25,36,71,.14), 0 26px 50px -12px rgba(55,68,92,.38) }
.shot .live { position: absolute; left: -128px; bottom: -6px; width: 150px; height: auto; filter: drop-shadow(0 8px 12px rgba(0,30,60,.22)) }

/* 6 看屏幕的事 + 价格 */
.trust { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px }
.trust article { position: relative; background: var(--cloud); border-radius: 22px; padding: 24px; box-shadow: var(--lift) }
.trust h3 { font-size: 19px; line-height: 1.45; margin-bottom: 8px }
.trust p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.85 }
.trust-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px }
.trust-head img { width: 150px; height: auto; margin-bottom: -44px; position: relative; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,30,60,.2)) }
.trust-more { margin: 14px 0 0; font-size: 13px; text-align: right }
.trust-more a { color: var(--mute); text-underline-offset: 3px }
.price { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 22px; overflow: hidden }
.price div { padding: 22px 24px }
.price div + div { border-left: 1px solid color-mix(in srgb, var(--gold) 55%, transparent) }
.price b { display: block; font: 900 22px/1.35 var(--serif) }
.price span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75 }

/* 7 住下 + 下载 */
.final { position: relative; margin-top: 120px; background: #bfe3fb url(assets/home-short/sky.webp) center 60% / cover no-repeat; padding-block: 150px 0; color: #192447; overflow: hidden }
.final::before { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(var(--paper), transparent) }
.final-in { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end }
.final-copy { padding-bottom: 72px }
.final h2 { font-size: clamp(32px, 4.4vw, 54px); text-shadow: 0 2px 0 rgba(255,255,255,.5) }
.final .row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap }
.final .brew { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.55); color: #192447; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; white-space: nowrap; max-width: 100%; overflow-x: auto }
/* Phones cannot run brew, and a wrapped command reads as if the hyphen were a line break. */
@media (max-width: 560px) { .final .brew { display: none } }
.final small { display: block; margin-top: 16px; font-size: 13px; color: rgba(25,36,71,.74); line-height: 1.8 }
.final small + small { margin-top: 8px }
.final small a { color: inherit; text-underline-offset: 3px }
.final-chief { width: 300px; height: auto; filter: drop-shadow(0 14px 18px rgba(0,30,60,.3)) }

.foot { padding-block: 22px 36px; font-size: 13px; color: var(--mute) }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto } .foot-links a { color: var(--mute); text-decoration: none }

@media (max-width: 860px) {
  .nav-links { display: none } .nav .cta { margin-left: auto }
  .hero { padding-block: 120px 96px }
  .hero-in, .beat-in, .beat.flip .beat-in, .trust, .price, .final-in, .trust-head { grid-template-columns: minmax(0,1fr) }
  .hero-in { gap: 40px }
  .beat { padding-top: 84px } .beat-in { gap: 28px } .beat.flip .copy { order: 0 }
  .win { width: 44cqw; top: 9cqw } .pet { width: 50cqw; right: 1cqw } .pet .bubble { white-space: normal; max-width: 48cqw } .pet .bubble br { display: none }
  .shot { width: min(100%, 340px) } .shot .live { display: none }
  .trust-head img { width: 110px; margin: 0 0 -30px auto }
  .price div + div { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent) }
  .final { margin-top: 84px; padding-top: 110px } .final-copy { padding-bottom: 12px } .final-chief { width: 190px; justify-self: end }
  .cta { padding: 13px 20px }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none } html { scroll-behavior: auto } .cta { transition: none } }

/* 语言：每种语言各一页，导航（手机宽度在页脚）放三个链接 */
.langs { display: flex; gap: 2px; font-size: 13px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; padding: 3px }
.langs a { padding: 4px 11px; border-radius: 999px; color: var(--ink-soft); line-height: 1.4; text-decoration: none }
.langs a[aria-current="page"] { background: var(--cloud); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.14) }
.langs a:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 1px }
:lang(ja) { --serif: "Pocket Chief Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", system-ui, sans-serif }
:lang(en) { --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif }
/* 英文句子更长：大字收一档，气泡在桌面里允许折行 */
:lang(en) h1, :lang(en) h2 { letter-spacing: -.01em }
:lang(en) .hero h1 { font-size: clamp(31px, 3.2vw, 46px) }
@media (min-width: 861px) { :lang(en) .hero-in, :lang(ja) .hero-in { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) } }
:lang(en) h2, :lang(ja) h2 { font-size: clamp(25px, 2.4vw, 34px) }
:lang(en) .trust-head h2, :lang(ja) .trust-head h2 { font-size: clamp(27px, 3.4vw, 42px) }
:lang(ja) .hero h1 { font-size: clamp(22px, 2.75vw, 40px) }
:lang(en) .final h2, :lang(ja) .final h2 { font-size: clamp(29px, 3.9vw, 48px) }
:lang(en) .pet .bubble, :lang(ja) .pet .bubble { white-space: normal; max-width: 37cqw; font-size: max(11px, 1.75cqw) }
:lang(en) .pet .bubble br, :lang(ja) .pet .bubble br { display: none }
:lang(en) .trip b, :lang(ja) .trip b { min-width: 11cqw }
@media (min-width: 861px) { .foot-langs { display: none } }
@media (max-width: 860px) { .nav .langs { display: none } :lang(en) .pet .bubble, :lang(ja) .pet .bubble { max-width: 48cqw } }
