/* ===== Steam 推荐位（steamfeatured）v2：1:1 复刻 Steam 首页「精选和推荐」 =====
   卡片随视口等比缩放（约 71vw，上限 1420px，与 Steam 截图比例一致）；
   媒体区 16:9 默认展示封面，悬停播放视频；右侧 2×2 截图悬停放大到主图位；
   两侧露出相邻推荐（变暗）+ 白色大箭头（贴卡片边缘）+ 底部胶囊圆点；无限循环。 */
.pcgh-steamf-section{--pcgh-steamf-page:min(1420px,71vw);--pcgh-steamf-gap:-16px;position:relative;background:transparent;padding:52px 0 4px;margin:0 0 28px;overflow:hidden}
.pcgh-steamf-section,.pcgh-steamf-section *,.pcgh-steamf-section *::before,.pcgh-steamf-section *::after{box-sizing:border-box}
.pcgh-steamf__heading{color:#fff;font-size:16px;font-weight:500;letter-spacing:.02em;line-height:1.4;margin:0 0 14px;padding-left:calc(50% - var(--pcgh-steamf-page)/2)}
.pcgh-steamf__carousel{position:relative}
.pcgh-steamf__viewport{position:relative;overflow:hidden;width:100%}
.pcgh-steamf__track{display:flex;margin-left:calc(50% - var(--pcgh-steamf-page)/2);transition:transform .55s cubic-bezier(.25,.6,.35,1);will-change:transform}
.pcgh-steamf__page{flex:0 0 var(--pcgh-steamf-page);margin-right:var(--pcgh-steamf-gap);display:flex;position:relative;background:#0e1c26;transform:scale(.9);transition:transform .55s cubic-bezier(.25,.6,.35,1),filter .55s ease;filter:grayscale(1)}
.pcgh-steamf__page.is-active{transform:scale(1);filter:grayscale(0)}
.pcgh-steamf__page::after{content:"";position:absolute;inset:0;background:rgba(4,10,16,.62);opacity:0;transition:opacity .45s ease;pointer-events:none;z-index:5}
.pcgh-steamf__page:not(.is-active)::after{opacity:1}
.pcgh-steamf__media{flex:0 0 70%;width:70%;aspect-ratio:16/9;position:relative;overflow:hidden;background:#0b1219;display:block;text-decoration:none;cursor:pointer}
.pcgh-steamf__cover,.pcgh-steamf__preview,.pcgh-steamf__vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.pcgh-steamf__cover{z-index:1}
.pcgh-steamf__vid{z-index:2;opacity:0;transition:opacity .35s ease;pointer-events:none;background:#0b1219}
.pcgh-steamf__media.is-video .pcgh-steamf__vid{opacity:1}
.pcgh-steamf__preview{z-index:3;opacity:0;transition:opacity .25s ease;pointer-events:none}
.pcgh-steamf__media.is-preview .pcgh-steamf__preview{opacity:1}
.pcgh-steamf__media.is-preview .pcgh-steamf__vid{opacity:0}
.pcgh-steamf__sidecover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:4;opacity:0;pointer-events:none;transition:opacity .45s ease}
.pcgh-steamf__page:not(.is-active) .pcgh-steamf__sidecover{opacity:1}
.pcgh-steamf__info{flex:1;min-width:0;display:flex;flex-direction:column;padding:clamp(14px,1.2vw,24px) clamp(14px,1.4vw,26px);background:linear-gradient(180deg,rgba(38,54,69,.72),rgba(27,40,55,.72))}
.pcgh-steamf__name{color:#fff;font-size:clamp(19px,1.55vw,30px);font-weight:500;line-height:1.3;text-decoration:none;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:color .2s ease}
.pcgh-steamf__name:hover{color:#66c0f4}
.pcgh-steamf__reviews{color:#66c0f4;font-size:clamp(12px,.85vw,16px);font-weight:600;line-height:1.4;margin-top:6px;text-decoration:none}
.pcgh-steamf__reviews:hover{text-decoration:underline}
.pcgh-steamf__reviews span{color:rgba(255,255,255,.45);font-weight:400}
.pcgh-steamf__thumbs{display:grid;grid-template-columns:1fr 1fr;gap:clamp(6px,.55vw,11px);margin-top:clamp(10px,1vw,20px)}
.pcgh-steamf__thumbs a{display:block;aspect-ratio:16/9;border-radius:2px;overflow:hidden;background:#000;transition:box-shadow .2s ease}
.pcgh-steamf__thumbs a:hover{box-shadow:0 0 0 2px rgba(255,255,255,.55)}
.pcgh-steamf__thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.pcgh-steamf__price{margin-top:auto;align-self:flex-end;padding:clamp(5px,.5vw,8px) clamp(10px,.8vw,16px);border-radius:2px;background:#17212e;color:#fff;font-size:clamp(12px,.8vw,14px);font-weight:600;letter-spacing:.02em;text-decoration:none;transition:background .2s ease,color .2s ease}
.pcgh-steamf__price:hover{background:#223043;color:#fff}
.pcgh-steamf__rank{margin-top:auto;display:flex;align-items:center;gap:9px}
.pcgh-steamf__rank svg{flex:none;display:block}
.pcgh-steamf__rank-title{color:#a3cf58;font-size:clamp(12px,.9vw,16px);font-weight:700;line-height:1.4}
.pcgh-steamf__rank-pos{color:#fff;font-size:clamp(12px,.9vw,16px);line-height:1.4}
.pcgh-steamf__rank-pos b{font-weight:700;color:#fff}
.pcgh-steamf__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:8;width:40px;height:64px;border:0;margin:0;padding:0;background:transparent;color:rgba(255,255,255,.8);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .2s ease,transform .2s ease}
.pcgh-steamf__nav:hover{color:#fff}
.pcgh-steamf__nav svg{display:block;filter:drop-shadow(0 2px 8px rgba(0,0,0,.75))}
.pcgh-steamf__nav--prev{left:calc(50% - var(--pcgh-steamf-page)/2 - var(--pcgh-steamf-page)*.05 - 28px)}
.pcgh-steamf__nav--next{right:calc(50% - var(--pcgh-steamf-page)/2 - var(--pcgh-steamf-page)*.05 - 28px)}
.pcgh-steamf__nav--prev:hover{transform:translateY(-50%) translateX(-2px)}
.pcgh-steamf__nav--next:hover{transform:translateY(-50%) translateX(2px)}
.pcgh-steamf__dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px}
.pcgh-steamf__dot{width:18px;height:9px;border:0;margin:0;padding:0;border-radius:5px;background:rgba(255,255,255,.28);cursor:pointer;transition:background .2s ease,width .2s ease}
.pcgh-steamf__dot:hover{background:rgba(255,255,255,.5)}
.pcgh-steamf__dot.is-active{width:26px;background:#fff}
/* ===== 浅色主题适配：整体浅色化 =====
   浅色模式下信息面板、价格块、缩略图、箭头、圆点全部改为浅色配色，
   与白色页面自然融合；侧卡片灰度改为白色渐隐；深色主题保持 Steam 原版深蓝不变。 */
html[data-pcgh-theme-resolved=light] .pcgh-steamf__page{background:#e2e8f0}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__page::after{background:rgba(255,255,255,.5)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__media{background:#e2e8f0}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__vid{background:#e2e8f0}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__info{background:linear-gradient(180deg,#ffffff 0%,#f3f6fa 100%)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__name{color:#1f2937}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__reviews span{color:#94a3b8}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__thumbs a{background:#e2e8f0}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__thumbs a:hover{box-shadow:0 0 0 2px rgba(102,192,244,.85)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__price{background:#eef2f7;color:#1f2937}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__price:hover{background:#e2e8f0;color:#1f2937}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank-title{color:#5c9c31}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank-pos{color:#1f2937}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank-pos b{color:#1f2937}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank svg rect,
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank svg path[fill]:not([fill="none"]){fill:#5c9c31}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__rank svg path[stroke]{stroke:#5c9c31}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__nav{color:rgba(15,23,42,.55)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__nav:hover{color:#0f172a}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__nav svg{filter:drop-shadow(0 2px 6px rgba(15,23,42,.25))}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__dot{background:rgba(15,23,42,.22)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__dot:hover{background:rgba(15,23,42,.45)}
html[data-pcgh-theme-resolved=light] .pcgh-steamf__dot.is-active{background:#0f172a}
@media (max-width:760px){
.pcgh-steamf-section{--pcgh-steamf-page:calc(100vw - 16px);padding:22px 0 18px;margin-bottom:20px}
.pcgh-steamf__heading{padding-left:12px}
.pcgh-steamf__page{flex-direction:column;transform:none;transition:none;margin-right:10px}
.pcgh-steamf__sidecover{display:none}
.pcgh-steamf__media{flex:none;width:100%}
.pcgh-steamf__info{flex:none}
.pcgh-steamf__name{font-size:17px}
.pcgh-steamf__reviews{font-size:12px}
.pcgh-steamf__thumbs{grid-template-columns:repeat(4,1fr)}
.pcgh-steamf__price{align-self:stretch;margin-top:12px}
.pcgh-steamf__nav{display:none}
}


/* ---------- pcgh_round7：视频加载圆形转圈（推荐位+预览面板共用；spinner 类名方角保留 50%） ---------- */
.pcgh-vid-spinner{position:absolute;top:50%;left:50%;z-index:6;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(255,255,255,.28);border-top-color:#66c0f4;border-radius:50%;pointer-events:none;animation:pcgh-vid-spin .8s linear infinite}
\@keyframes pcgh-vid-spin{to{transform:rotate(360deg)}}
