/* SILVER_JOURNEY_20261030_V1 首頁「體驗流程」動態質感：時間軸隨捲動亮起、段落進場、目前步驟光暈。
   接在首頁質感 v1 之後；只在一般瀏覽器分頁生效，PWA（display-mode:standalone／html.st-pwa-home）不套用。
   時間軸進度 --p 與 li.done／li.active 由原本的 home.js 計算，本檔只負責外觀。
   :is(:root,#st-journey-v1) 與 #journey#journey 只為取得權重，壓過 taste.css 的同名規則。 */
@media (display-mode:browser){
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey{scroll-margin-top:calc(var(--st-header-height,80px) + 12px)}

/* 圓點：實心深綠底，時間軸線不再穿過數字；數字置中 */
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .dot{background:var(--tt-forest-deep,#2C3D31)!important;border:1px solid rgba(243,238,228,.28)!important;color:rgba(243,238,228,.6)!important;font:500 17px/1 var(--tt-serif,serif)!important;font-variant-numeric:lining-nums;padding:0 0 1px!important;scale:1!important;transition:background-color .6s ease,border-color .6s ease,color .6s ease,box-shadow .6s ease!important}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .steps li.done .dot{border-color:#B9C9B6!important;color:#F3EEE4!important}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .steps li.active .dot{background:#F3EEE4!important;border-color:#F3EEE4!important;color:#2C3D31!important;box-shadow:0 0 0 6px rgba(185,201,182,.14),0 8px 22px -8px rgba(0,0,0,.5)!important}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .steps li.active .dot::after{content:"";position:absolute;inset:-11px;border-radius:50%;border:1px solid rgba(185,201,182,.42);pointer-events:none;animation:stj-halo 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes stj-halo{from{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}

/* 文字：還沒捲到的步驟稍微淡一點，捲到時亮起 */
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .steps li :is(h3,p){transition:opacity .6s ease,color .6s ease}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .steps li:not(.done) :is(h3,p){opacity:.5}

/* 時間軸：細線底、鼠尾草綠進度，前端一顆柔光小點 */
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .rail{background:rgba(243,238,228,.14)!important;width:1px!important;left:21.5px!important}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .rail i{background:linear-gradient(#8FA68E,#B9C9B6)!important}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey .rail::after{content:"";position:absolute;left:50%;top:calc(var(--p,0) * 100%);width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:#E8EEE2;box-shadow:0 0 0 4px rgba(185,201,182,.16),0 0 16px 2px rgba(185,201,182,.5);opacity:calc(min(var(--p,0) * 30,1) * min((1 - var(--p,0)) * 30,1));transition:top .15s linear}

/* 進場：標題、說明、按鈕依序浮現；每個步驟捲到時浮現（JS 加上 .stj-motion 才生效，沒有 JS 時照常顯示） */
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey.stj-motion .stj-r{transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--stj-d,0s)}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey.stj-motion .stj-r:not(.stj-in){opacity:0;transform:translateY(18px)}

/* 按鈕：箭頭滑過時往右上輕移 */
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey a.btn .ar{display:inline-block;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey a.btn:hover .ar{transform:translate(2px,-2px)}
}
@media (display-mode:browser) and (prefers-reduced-motion:reduce){
html:not(.st-pwa-home):is(:root,#st-journey-v1) body main #journey#journey :is(.dot,.dot::after,.rail::after,.stj-r,h3,p,.ar){animation:none!important;transition:none!important}
}
