/* 主页（/）专用，叠在 legal.css 上面。首屏的游戏画面照搬 app.html 里 .vn-scene / .vn-char / .vn-box 的样子 */
:root { --vn-ink: #F2EFE8; --vn-muted: #A5A9B4; --vn-gold: #F2B45A; --r: 14px; }
.wide { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a.btn { color: var(--accent-ink); }
/* 手机：顶栏只放品牌、语言和「登录」，「免费开始」在首屏正下方 */
@media (max-width: 560px) { .nav { gap: 12px; } .nav .hide-sm { display: none; } }
.nav a { white-space: nowrap; }

section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }
h2.sec { font: 600 clamp(26px, 3.6vw, 34px)/1.2 var(--f-story); margin: 0 0 10px; }
.sec-lede { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 28px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } }
.hero h1 { font: 600 clamp(36px, 5.4vw, 56px)/1.08 var(--f-story); margin: 8px 0 16px; letter-spacing: -.01em; }
.hero p.lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.vn-scene { position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: #1B2027; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.scene-bg { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); display: block; filter: blur(7px) saturate(.75) brightness(.62); z-index: -2; }
.vn-char { position: absolute; left: 26%; bottom: 0; height: 92%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.vn-char .portrait { height: 100%; width: auto; display: block; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .5)); }
.vn-box { position: relative; z-index: 1; margin-left: auto; width: min(64%, 520px); background: rgba(17, 19, 25, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 22px 18px 16px; color: var(--vn-ink); }
.vn-name { position: absolute; top: -14px; left: 18px; background: var(--vn-gold); color: #1B1408; font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 8px; }
.vn-text { font: 500 18px/1.55 var(--f-story); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 12.5px; padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); color: var(--vn-ink); background: rgba(255, 255, 255, .04); }
/* 手机：人物站上面，对话框排在下面，场景高度跟着内容走 */
@media (max-width: 560px) { .vn-scene { aspect-ratio: auto; padding-top: 236px; } .vn-char { left: 50%; top: 14px; bottom: auto; height: 250px; } .vn-box { width: 100%; } }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; counter-reset: step; }
.step { background: var(--page); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--seal); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* 提问习惯 */
.habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.habits li { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.habits b { display: block; margin-bottom: 2px; }
.habits span { color: var(--muted); font: 500 15px/1.45 var(--f-story); }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 18px; }
.plan { background: var(--page); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.plan.pick { border-color: var(--accent); }
.plan h3 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.plan .price { font: 600 32px/1.2 var(--f-ui); margin: 6px 0 2px; }
.plan p { margin: 0; color: var(--muted); font-size: 14px; }

/* 常见问题 */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.final { text-align: center; }
.final .ctas { justify-content: center; }
.home .foot { max-width: 1120px; }

