/* hgx-v2：illusiong.com 游戏文章正文模板 v2（2026-11-12）。全部作用域 .hgx / body:has(.hgx)，只用 zibll 自带变量，亮/暗两种模式通用。无外部字体/CDN。 */
.hgx{--hgx-a:var(--theme-color,#f04494);--hgx-a2:#8b5cf6;--hgx-line:var(--main-border-color);--hgx-soft:var(--muted-bg-color);--hgx-top:62px;color:var(--main-color);font-size:15px;line-height:1.75}
.hgx *{box-sizing:border-box}
.hgx p{margin:0 0 10px}
.hgx ul{margin:0!important;padding:0!important;list-style:none!important}
.hgx li{margin:0!important}
.hgx figure{margin:0}
.hgx img{max-width:100%;height:auto;display:block;margin:0}
/* hero */
.hgx-hero{border:1px solid rgba(240,68,148,.28);border-radius:12px;padding:12px;margin:0 0 14px;background:linear-gradient(140deg,rgba(240,68,148,.13),rgba(139,92,246,.10) 60%,transparent)}
.hgx-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.hgx-chip{font-size:12px;line-height:22px;padding:0 9px;border-radius:99px;background:var(--hgx-soft);color:var(--main-color);border:1px solid var(--hgx-line);white-space:nowrap}
.hgx-chip--type{background:var(--hgx-a);border-color:var(--hgx-a);color:#fff;font-weight:700}
.hgx-chip--pc{color:#3b82f6;border-color:rgba(59,130,246,.45)}
.hgx-chip--az{color:#16a34a;border-color:rgba(22,163,74,.45)}
.hgx-hero__grid{display:grid;gap:12px}
.hgx-cover img{width:100%;border-radius:10px;aspect-ratio:auto}
.hgx-pay #posts-pay{margin:0!important;border-radius:10px;padding:12px 14px!important}
.hgx-pay .pay-thumb,.hgx-pay .pay-title,.hgx-pay .pay-title+.muted-2-color{display:none!important}
.hgx-pay .pay-flexbox{min-height:0!important}
.hgx-pay__note{font-size:12px;color:var(--muted-2-color);margin:6px 2px 0!important;line-height:1.5}
.hgx-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px!important}
.hgx-card{background:var(--main-bg-color);border:1px solid var(--hgx-line);border-radius:10px;padding:8px 10px;line-height:1.35;min-width:0}
.hgx-card>span:first-child{display:block;font-size:12px;color:var(--muted-2-color)}
.hgx-card b,.hgx-card .ga-f2__value{display:block;font-size:15px;font-weight:700;color:var(--key-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hgx-card small{display:block;font-size:12px;color:var(--muted-2-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 吸顶目录 */
.hgx-tabs{position:sticky;top:var(--hgx-top);z-index:9;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 0 6px;padding:6px;border-radius:10px;background:var(--main-bg-color);border:1px solid var(--hgx-line);box-shadow:0 4px 12px var(--main-shadow)}
.hgx-tabs::-webkit-scrollbar{display:none}
.hgx-tabs a{flex:1 0 auto;text-align:center;padding:5px 12px;border-radius:8px;font-size:14px;color:var(--main-color)!important;white-space:nowrap}
.hgx-tabs a:hover,.hgx-tabs a:focus{background:rgba(240,68,148,.12);color:var(--hgx-a)!important}
/* 分节 */
.hgx-sec{scroll-margin-top:calc(var(--hgx-top) + 56px);padding:12px 0 4px}
.hgx .hgx-h{font-size:18px;margin:4px 0 10px;padding:0 0 0 10px;border-left:4px solid var(--hgx-a);line-height:1.3}
.hgx .hgx-h::before,.hgx .hgx-h::after{display:none!important}
.hgx .hgx-h small{font-size:12px;font-weight:400;color:var(--muted-2-color);margin-left:6px}
.hgx .hgx-h3{font-size:15px;margin:14px 0 8px}
.hgx-lead{font-weight:700;color:var(--key-color)}
.hgx-points{display:grid!important;gap:8px}
.hgx-points li{position:relative;padding:8px 10px 8px 30px;border-radius:8px;background:var(--hgx-soft)}
.hgx-points li::before{content:"";position:absolute;left:11px;top:15px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--hgx-a),var(--hgx-a2))}
.hgx-points b{margin-right:6px;color:var(--key-color)}
.hgx-upd{display:flex!important;flex-wrap:wrap;gap:6px}
.hgx-upd li{font-size:13px;padding:2px 10px;border-radius:99px;border:1px solid var(--hgx-line)}
.hgx-fit{font-size:13px;color:var(--muted-color);margin-top:10px!important}
/* 截图：三列缩略图（每张原图都在，点开走 zibll imgbox 大图） */
.hgx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.hgx-shot{border-radius:8px;overflow:hidden;background:var(--hgx-soft);aspect-ratio:16/10}
.hgx-shot img{width:100%;height:100%!important;object-fit:cover;cursor:zoom-in;transition:transform .2s}
.hgx-shot img:hover{transform:scale(1.04)}
.hgx-mini{font-size:12px;color:var(--muted-2-color);margin-top:8px!important}
/* 下载 / 规格 */
.hgx-spec{width:100%;border-collapse:collapse;font-size:13px;margin:0 0 10px}
.hgx-spec th,.hgx-spec td{padding:7px 9px!important}
.hgx-spec tbody th{width:7.5em;white-space:nowrap;color:var(--muted-color);font-weight:400;background:var(--hgx-soft)}
.hgx-files thead th{background:rgba(240,68,148,.10)!important;color:var(--key-color)}
.hgx-files tbody th{color:var(--key-color);font-weight:700}
.hgx-go{text-align:center;margin:4px 0 12px!important}
.hgx-go .but{padding:6px 22px}
.hgx-note{border:1px dashed rgba(240,68,148,.5);border-radius:10px;padding:10px 12px;background:rgba(240,68,148,.06);font-size:13px}
.hgx-note>b{display:block;margin-bottom:6px;color:var(--hgx-a)}
.hgx-note li{padding:3px 0}
.hgx-note li>b{display:inline-block;min-width:3em;margin-right:6px;color:var(--key-color)}
/* FAQ */
.hgx-faq{border:1px solid var(--hgx-line);border-radius:10px;margin:0 0 8px;background:var(--main-bg-color)}
.hgx-faq summary{cursor:pointer;padding:9px 12px;font-weight:700;color:var(--key-color);list-style:none}
.hgx-faq summary::-webkit-details-marker{display:none}
.hgx-faq summary::after{content:"+";float:right;color:var(--hgx-a)}
.hgx-faq[open] summary::after{content:"−"}
.hgx-faq p{padding:0 12px 10px;margin:0!important;font-size:14px;color:var(--muted-color)}
.hgx-rel ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.hgx-rel a{display:block;padding:7px 10px;border-radius:8px;background:var(--hgx-soft);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 手机吸底栏（纯 CSS）；v2 页面隐藏旧 ga-dock，避免两条 */
.hgx-bar{display:none}
body:has(.hgx) #ga-dock{display:none!important}
@media (max-width:768px){
 .hgx{--hgx-top:52px}
 .hgx-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95;align-items:center;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));background:var(--blur-bg);border-top:2px solid var(--hgx-a);box-shadow:0 -6px 20px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
 .hgx-bar__t{flex:1;min-width:0;line-height:1.3}
 .hgx-bar__t b{display:block;font-size:14px;color:var(--key-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .hgx-bar__t small{font-size:12px;color:var(--muted-2-color)}
 .hgx-bar__btn{flex:0 0 auto;padding:8px 20px;border-radius:99px;color:#fff!important;font-weight:700;background:linear-gradient(135deg,var(--hgx-a),var(--hgx-a2))}
 body:has(.hgx){padding-bottom:62px}
 body:has(.hgx) .article-header .article-avatar{display:none}
 body:has(.hgx) .article-header{margin-bottom:8px!important}
 .hgx-hero{padding:8px;margin-left:-4px;margin-right:-4px}
 .hgx-chips{margin-bottom:8px}
 .hgx-hero__grid{gap:8px}
 .hgx-pay #posts-pay{padding:8px 10px!important}
 .hgx-pay .pay-tag{display:none!important}
 .hgx-pay .price-box .padding-h10{padding-top:0!important;padding-bottom:0!important}
 .hgx-pay .text-right.mt10{margin-top:6px!important}
 .hgx-pay__note{display:none}
 body:has(.hgx) .article-header .article-title{font-size:17px;line-height:1.45;margin:0!important}
 body:has(.hgx) .article-header{padding-bottom:0!important}
}
@media (min-width:769px){
 .hgx-hero{padding:14px;display:grid;grid-template-columns:minmax(0,1fr) 290px;column-gap:14px;align-items:start}
 .hgx-hero__grid{display:contents}
 .hgx-chips{grid-column:1;grid-row:1}
 .hgx-cover{grid-column:1;grid-row:2}
 .hgx-pay{grid-column:2;grid-row:1/span 2}
 .hgx-pay .pay-tag{display:none!important}
 .hgx-pay .price-box .padding-h10{padding-top:0!important;padding-bottom:0!important}
 body:has(.hgx) .article-header{margin-bottom:6px!important}
 .hgx-grid{gap:8px}
 .hgx-rel ul{grid-template-columns:repeat(3,minmax(0,1fr))}
}
