/* 電腦版：首頁（≥768）
   手機的首頁是一張直式的書桌場景，書架和面板疊在場景下面。電腦上把它拆成兩半放在中間：
   左邊是場景卡（照原圖 700:1050 的比例，高度跟著視窗；牆上的日曆、小白、右上角數字都在卡裡），右邊是書架和「這次讀什麼」面板。
   寬度 1000 以上左右並排；768～999（直的平板）上下排，場景在上。 */
#s-home{flex-direction:row;align-items:center;justify-content:center;gap:clamp(32px,4vw,72px);padding:24px 40px}
#s-home .h-stage{display:block;position:relative;flex:none;width:clamp(400px,calc((100vw - var(--side)) * .45),640px);max-height:100%;aspect-ratio:700/780;border-radius:34px;overflow:hidden;background:#0b0f2c;box-shadow:0 24px 60px rgba(2,3,14,.55),0 0 0 1px rgba(255,255,255,.06)}
/* 原圖是 700:1050，下面三成是空的深色（手機上被書架蓋住）；場景照原比例鋪滿寬度，卡片只留上面 700:780，多的裁掉 */
#s-home .h-scene{top:0;left:0;width:100%;height:auto;aspect-ratio:700/1050}
/* 場景卡比手機大，日曆和右上角數字跟著放大（寬度分幾段，用 zoom）；小白的點擊範圍換成卡片裡的座標 */
#s-home .h-cal,#s-home .h-hud,#s-home .h-bubble{zoom:1.2}
#s-home .h-bear{left:27%;top:47%;width:36%;height:32%}
#s-home .h-bubble{left:46%;top:38%}
/* 手機矮螢幕（max-height:700）的縮小規則在電腦不要 */
#s-home .h-cal{width:136px;padding:24px 13px 11px}
#s-home .h-cal>.num{font-size:60px}
#s-home .h-cal .h-avg{gap:8px}
#s-home .h-cal .h-today{margin-top:8px;padding-top:8px}
.stage.timing #s-home .h-scene{transform:none}
.stage.timing #s-home .h-cal{padding:24px 13px 11px}
.stage.timing #s-home .h-cal>.num{font-size:60px}
.stage.timing #s-home .h-today{margin-top:8px;padding-top:8px}
.stage.timing #s-home :is(.h-today,.h-week) .num{font-size:20px}
.stage.timing #s-home .h-week{margin-top:4px}
.stage.timing #s-home .h-week .num{font-size:17px}

/* 右邊：書架＋面板 */
#s-home .h-desk{position:relative;left:auto;right:auto;bottom:auto;flex:0 1 440px;min-width:0;padding:0;background:none;pointer-events:auto;zoom:1.15}
#s-home .h-say{margin-bottom:13px}
#s-home .h-say p{display:block}
#s-home .h-way{height:52px}
.stage.timing #s-home .h-say h2{font-size:21px}
.stage.timing #s-home .h-say{margin-bottom:13px}
.stage.timing #s-home .h-way{height:52px}
/* 書多的時候換行，不用橫向捲 */
#s-home .h-shelf{height:auto;min-height:170px}

@media (max-width:1399px){#s-home .h-cal,#s-home .h-hud,#s-home .h-bubble{zoom:1.05}#s-home .h-desk{zoom:1.05}}
@media (min-width:1600px){#s-home .h-cal,#s-home .h-hud,#s-home .h-bubble{zoom:1.6}#s-home .h-desk{zoom:1.35}}

/* 直的平板：場景在上、書架和面板在下 */
@media (max-width:999px){
  #s-home{flex-direction:column;gap:20px;padding:20px 32px}
  #s-home .h-stage{width:min(560px,100%);max-height:62%}
  #s-home .h-desk{flex:0 0 auto;width:min(480px,100%);zoom:1}
}
