测一测首页撑满一屏:多余高度均分到各块之间,屏越高头图和结果图越大,不再底部留空(v26110241)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-02 23:35:07 +00:00
parent de73154cbc
commit 3a97708bd7
7 changed files with 55 additions and 16 deletions

View File

@@ -83,6 +83,45 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
.tcard small{display:none}
.startbox{position:sticky;bottom:0;z-index:5;margin:6px -20px 0;padding:12px 20px calc(4px + env(safe-area-inset-bottom));text-align:center;background:linear-gradient(rgba(255,255,255,0),#fff 14px)}
.startbox .note{margin-top:7px;font-size:12px;color:var(--sub)}
/* 11-03 用户:一屏放下后底下空太多 → 开始页撑满一屏(减去底部免责一行),多出的高度均分到各块之间;屏越高图越大 */
#vStart.on{display:flex;flex-direction:column;min-height:calc(100vh - 69px);min-height:calc(100dvh - 69px - env(safe-area-inset-bottom))}
#vStart .wrap{flex:1;display:flex;flex-direction:column;width:100%}
#vStart .lead{margin-top:clamp(4px,(100dvh - 640px) * .12 + 4px,22px)}
#vStart .types{margin-top:auto;padding-top:16px}
#vStart .startbox{margin-top:auto}
#vStart .types + .startbox{padding-top:clamp(12px,(100dvh - 640px) * .25 + 12px,40px)}
@media (min-height:680px){
.hero{padding-top:66px;padding-bottom:22px}
.hero h1{padding-right:132px;font-size:24px}
.hero .pic{top:70px;width:116px;height:116px;border-radius:28px}
.hero .meta{margin-top:16px}
.lead{padding:14px 16px;font-size:14px;line-height:1.8}
.tcard img{width:56px;height:56px}
.tcard b{font-size:12.5px}
.tgrid{gap:12px 6px}
}
@media (min-height:760px){
.hero{padding-top:74px;padding-bottom:28px}
.hero h1{padding-right:146px;font-size:26px}
.hero h1 small{font-size:15px;margin-bottom:2px}
.hero .pic{top:76px;width:130px;height:130px}
.hero .meta{margin-top:20px}
.hero .meta span{font-size:13.5px}
.types .sh2 b{font-size:17px}
.tcard img{width:64px;height:64px}
.tcard b{font-size:13px}
.tgrid{gap:16px 6px}
.startbox .note{margin-top:10px;font-size:12.5px}
}
@media (min-height:790px){
.hero{padding-top:80px;padding-bottom:32px}
.hero h1{padding-right:160px;font-size:28px}
.hero .pic{top:80px;width:146px;height:146px;border-radius:32px}
.lead{padding:16px 18px;font-size:14.5px}
.tcard{gap:6px}
.tcard img{width:70px;height:70px}
.tcard small{display:block;font-size:11.5px;color:var(--sub);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* ---------- ② 答题 ---------- */
#vQuiz{padding-top:4px}
@@ -328,8 +367,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
</div>
<div class="toast" id="toast"></div>
<script src="meta.js?v=26110240"></script>
<script src="tests.js?v=26110240"></script>
<script src="meta.js?v=26110241"></script>
<script src="tests.js?v=26110241"></script>
<script>
(function () {
'use strict';