/* 官網步驟彈窗(steps.js):電腦置中彈窗、左圖右字;手機全螢幕、上圖下字、左右滑。只淺色。 */
html.ehs-on{overflow:hidden}
.ehs{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center}
.ehs[hidden]{display:none}
.ehs-bg{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.ehs-p{position:relative;background:#fff;border-radius:20px;width:min(920px,calc(100vw - 48px));max-height:calc(100vh - 48px);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(15,23,42,.35);overflow:hidden}
.ehs-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px;border-bottom:1px solid #eef0f3}
.ehs-hd b{font-size:20px;color:#12306b;margin-right:12px}
.ehs-n{font-size:14px;color:#6b7280}
.ehs-x{width:40px;height:40px;border-radius:50%;border:0;background:#f3f4f6;font-size:24px;line-height:1;color:#374151;cursor:pointer}
.ehs-vp{overflow:hidden;flex:1;min-height:0;touch-action:pan-y}
.ehs-tr{display:flex;transition:transform .28s ease;height:100%}
.ehs-pg{flex:0 0 100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;padding:24px 32px;box-sizing:border-box;min-height:0}
.ehs-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0}
.ehs-fig img{display:block;max-width:100%;max-height:calc(100vh - 260px);width:auto;height:auto;border-radius:22px;border:1px solid #e5e7eb;box-shadow:0 6px 20px rgba(15,23,42,.12);user-select:none;-webkit-user-drag:none}
.ehs-pg.desk{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.ehs-pg.desk .ehs-fig img{border-radius:10px}
.ehs-fig figcaption{font-size:12px;color:#6b7280}
.ehs-k{font-size:14px;font-weight:800;color:#c2410c;margin:0 0 8px}
.ehs-say{font-size:22px;line-height:1.6;color:#111827;margin:0;font-weight:700}
.ehs-cta{margin:24px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.ehs-sm{font-size:13px;color:#6b7280;margin:10px 0 0}
.ehs-ft{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px 16px;border-top:1px solid #eef0f3}
.ehs-b{min-width:112px;min-height:44px;border-radius:12px;border:1px solid #c7d2e3;background:#fff;color:#12306b;font-size:16px;font-weight:700;cursor:pointer}
.ehs-next{background:#12306b;color:#fff;border-color:#12306b}
.ehs-b:disabled{opacity:.35;cursor:default}
.ehs-dots{display:flex;gap:8px}
.ehs-dots i{width:8px;height:8px;border-radius:50%;background:#d1d5db;display:block}
.ehs-dots i.on{background:#12306b;width:22px;border-radius:4px}
/* 卡片上的「看步驟」 */
.steps-pill{border:0;font-family:inherit;cursor:pointer;align-self:flex-start;width:max-content;display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:5px 12px;border-radius:999px;background:#fff1e8;color:#c2410c;font-size:14px;font-weight:800}
[data-steps]:not(a){cursor:pointer}
@media (max-width:760px){
  .ehs{align-items:stretch}
  .ehs-p{width:100vw;max-height:none;height:100%;border-radius:0}
  .ehs-hd{padding:12px 16px 10px}
  .ehs-hd b{font-size:18px;display:block;margin:0}
  .ehs-pg,.ehs-pg.desk{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:14px 16px;align-items:start;height:100%}
  .ehs-fig{height:100%;justify-content:center}
  .ehs-fig img{max-height:calc(100% - 22px)}
  .ehs-say{font-size:18px}
  .ehs-k{margin-bottom:4px}
  .ehs-cta{margin-top:14px}
  .ehs-cta a{flex:1;text-align:center}
  .ehs-ft{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}
  .ehs-b{min-width:96px}
}
/* 電腦畫面點圖放大 */
.ehs-pg.desk .ehs-fig img{cursor:zoom-in}
.ehs-zoom{position:absolute;inset:0;z-index:3;background:rgba(15,23,42,.92);overflow:auto;-webkit-overflow-scrolling:touch;cursor:zoom-out;display:flex;align-items:flex-start;justify-content:flex-start}
.ehs-zoom img{display:block;max-width:none;width:auto;margin:auto;padding:48px 16px 16px;box-sizing:content-box}
.ehs-zx{position:fixed;top:12px;left:50%;transform:translateX(-50%);background:#fff;color:#12306b;font-weight:800;font-size:14px;padding:6px 14px;border-radius:999px}
/* 小格加了「看步驟」後說明文字不再是最後一個,補回原本 .tile span:last-child 的說明樣式 */
.tile[data-steps]>span:not(.ic):not(.steps-pill){color:var(--sub);font-size:var(--fs-small);text-wrap:balance}
.tile[data-steps]>.steps-pill{color:#c2410c;font-size:14px}
/* 10-26 OS「這個比例感覺怪怪的?」:手機圖一律同一個顯示框(固定 720:1565),照原比例放,不拉伸;每一步框一樣大,說明字位置不跳 */
.ehs-pg:not(.desk) .ehs-fig img{aspect-ratio:720/1565;height:min(calc(100vh - 260px),720px);width:auto;max-width:100%;object-fit:contain}
.ehs-pg.desk .ehs-fig img{object-fit:contain;height:auto}
@media (max-width:760px){
  .ehs-pg:not(.desk) .ehs-fig img{height:calc(100% - 22px);max-height:none}
}
/* 說明字位置固定:電腦靠上(不隨句子長短置中跳動);手機說明區固定高度,圖框每一步一樣大 */
.ehs-pg{align-items:start}
.ehs-pg .ehs-tx{align-self:start;margin-top:72px}
.ehs-pg:not(.desk) .ehs-fig{align-self:start}
@media (max-width:760px){
  .ehs-pg,.ehs-pg.desk{grid-template-rows:minmax(0,1fr) 176px}
  .ehs-pg .ehs-tx{margin-top:0;height:176px;overflow:hidden}
  .ehs-pg .ehs-cta{margin-top:10px}
  .ehs-pg .ehs-sm{display:none}
}
