/* ============================================================
   单机游戏频道/列表/内容页（2026pc）
   复用 style.css 的 :root 变量；类名统一 xzg- 前缀，避免污染其他页面
   ============================================================ */

/* ---------- 公共：页头（渐变卡片，借鉴软件列表 xz-listing-hero） ---------- */
.xzg-pagehead { margin: 14px 0 4px; padding: 20px 24px; background: linear-gradient(135deg, var(--green-soft), #fff 62%), #fff; border: 1px solid var(--soft-line); border-radius: 12px; }
.xzg-pagehead h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--ink); }
.xzg-pagehead h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--green); margin-top: 8px; }
.xzg-pagehead .xzg-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 880px; }
.xzg-pagehead .xzg-cnt { display: inline-block; margin-left: 12px; vertical-align: 6px; font-size: 12px; font-weight: 400; color: var(--green-dark); background: #fff; border: 1px solid #bbf7d0; border-radius: 12px; padding: 3px 12px; }

/* ---------- 公共：吸顶分类胶囊导航（频道页/列表页），可含排序 ---------- */
.xzg-catnav { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.xzg-catnav a { padding: 6px 15px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: color .2s ease, border-color .2s ease; }
.xzg-catnav a:hover { color: var(--green-dark); border-color: var(--green); }
.xzg-catnav a.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.xzg-sort { display: flex; align-items: center; gap: 0; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 12px; }
.xzg-sort::before { content: "排序："; color: var(--faint); }
.xzg-sort li { margin-left: 12px; color: var(--muted); cursor: pointer; transition: color .2s ease; }
.xzg-sort li:first-child { margin-left: 4px; }
.xzg-sort li:hover { color: var(--green-dark); }
.xzg-sort li.is-active { color: var(--green-dark); font-weight: 600; }

/* ---------- 频道页：热门海报墙 ---------- */
.xzg-hotwall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 10px; }
.xzg-poster { position: relative; border-radius: 10px; overflow: hidden; background: #dfe5e8; aspect-ratio: 122/163; box-shadow: 0 1px 2px rgba(22, 37, 29, .05); transition: transform .22s ease, box-shadow .22s ease; }
.xzg-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xzg-poster .xzg-pn { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.xzg-poster:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22, 37, 29, .12); }
.xzg-hotflag { position: absolute; top: 6px; left: 6px; background: #f59e0b; color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 8px; z-index: 1; }

/* ---------- 频道页：分类区块 ---------- */
.xzg-sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 18px; font-weight: 700; color: var(--ink); }
.xzg-sec-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--green); }
.xzg-sec-title em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--faint); }
.xzg-sec-title .more-link { margin-left: auto; }
.xzg-secgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.xzg-secgrid .xzg-sec-title { margin-top: 18px; }
.xzg-gamerow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xzg-gcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.xzg-gcard:hover { transform: translateY(-4px); border-color: #cde3d4; box-shadow: 0 10px 24px rgba(22, 37, 29, .10); }
.xzg-gcover { aspect-ratio: 122/120; overflow: hidden; background: #dfe5e8; }
.xzg-gcover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; }
.xzg-gcard:hover .xzg-gcover img { transform: scale(1.05); }
.xzg-gbody { padding: 10px 12px 12px; }
.xzg-gn { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.xzg-gcard:hover .xzg-gn { color: var(--green-dark); }
.xzg-gmeta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--faint); }
.xzg-gmeta .xzg-dl { color: var(--green-dark); font-weight: 600; }

/* ---------- 频道页：攻略区 ---------- */
.xzg-newsgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.xzg-newspanel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.xzg-newspanel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink); }
.xzg-newspanel h2::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--green); }
.xzg-newspanel h2 .more-link { margin-left: auto; font-size: 12px; font-weight: 400; }
.xzg-newslead { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.xzg-newslead img { width: 128px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.xzg-newslead .xzg-nt { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); transition: color .2s ease; }
.xzg-newslead:hover .xzg-nt { color: var(--green-dark); }
.xzg-newslead .xzg-nd { display: block; font-size: 12px; color: var(--faint); margin-top: 6px; }
.xzg-newsitem { display: flex; gap: 8px; align-items: center; padding: 6.5px 0; font-size: 13px; color: var(--muted); transition: color .2s ease; }
.xzg-newsitem::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cdd5da; flex-shrink: 0; }
.xzg-newsitem:hover { color: var(--green-dark); }
.xzg-newsitem span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 列表页：资源行卡片 ---------- */
.xzg-list { display: flex; flex-direction: column; gap: 12px; }
.xzg-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.xzg-item:hover { transform: translateY(-2px); border-color: #cde3d4; box-shadow: 0 10px 24px rgba(22, 37, 29, .10); }
.xzg-item:hover .xzg-iname { color: var(--green-dark); }
.xzg-ithumb { flex-shrink: 0; width: 86px; height: 114px; border-radius: 8px; overflow: hidden; background: #dfe5e8; }
.xzg-ithumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xzg-ibody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xzg-iname { font-size: 16px; font-weight: 600; color: var(--ink); transition: color .2s ease; }
.xzg-isub { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xzg-itags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xzg-tag { font-size: 11px; border-radius: 8px; padding: 1px 9px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.xzg-tag--cn { background: var(--green-soft); color: var(--green-dark); border-color: transparent; }
.xzg-imeta { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--faint); }
.xzg-imeta b { color: var(--muted); font-weight: 600; }
.xzg-idl { margin-left: auto; align-self: center; flex-shrink: 0; border: 1px solid var(--green); color: var(--green-dark); border-radius: 18px; padding: 7px 24px; font-size: 13px; transition: background-color .2s ease, color .2s ease; }
.xzg-item:hover .xzg-idl { background: var(--green); color: #fff; }
.xzg-new { display: inline-block; font-size: 10px; color: #fff; background: #f59e0b; border-radius: 8px; padding: 1px 7px; margin-left: 8px; vertical-align: 3px; }

/* ---------- 内容页：资源 Hero ---------- */
.xzg-hero { display: flex; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 14px; }
.xzg-hcover { flex-shrink: 0; width: 240px; }
.xzg-hcover img { width: 100%; border-radius: 10px; display: block; background: #dfe5e8; }
.xzg-hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xzg-hbody h1 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.xzg-tagline { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.xzg-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin-top: 16px; font-size: 13px; }
.xzg-specs .xzg-s { color: var(--faint); }
.xzg-specs .xzg-s b { display: block; color: var(--ink); font-weight: 600; margin-top: 1px; }
.xzg-specs .xzg-s b a { color: var(--green-dark); }
.xzg-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 18px; align-items: center; flex-wrap: wrap; }
.xzg-htags { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; font-size: 13px; }
.xzg-htags__lab { color: var(--faint); }
.xzg-htags__lab::after { content: "："; }
.xzg-htags__chip { color: var(--muted); transition: color .2s ease; }
.xzg-htags__chip:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--faint); }
.xzg-htags__chip:hover { color: var(--green-dark); }
.xzg-dlcount { font-size: 12px; color: var(--faint); }

/* ---------- 内容页：Hero 操作按钮 ---------- */
.xzg-btndl { display: inline-flex; align-items: center; gap: 10px; height: 48px; background: var(--green); color: #fff; border: 0; border-radius: 24px; padding: 0 32px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(22, 163, 74, .35); transition: background-color .2s ease; }
.xzg-btndl:hover { background: var(--green-dark); }
.xzg-btndl small { font-size: 11px; font-weight: 400; opacity: .85; }
.xzg-btndl.is-disabled { background: #cbd5d1; box-shadow: none; cursor: not-allowed; }
.xzg-btndl--buy { background: #b45309; box-shadow: 0 4px 12px rgba(180, 83, 9, .3); }
.xzg-btndl--buy:hover { background: #92400e; }
.xzg-btnghost { display: inline-flex; align-items: center; height: 48px; background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 24px; padding: 0 22px; font-size: 13px; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.xzg-btnghost:hover { color: var(--green-dark); border-color: var(--green); }

/* ---------- 内容页：白卡面板（绿条标题） ---------- */
.xzg-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 16px; }
.xzg-panel > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.xzg-panel > h2::before { content: ""; width: 5px; height: 16px; border-radius: 3px; background: var(--green); flex-shrink: 0; }
.xzg-panel > h2 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--faint); }
.xzg-notice { margin-top: 14px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 12.5px; color: var(--green-dark); }

/* ---------- 内容页：下载地址（通栏镜像行） ---------- */
.xzg-mirrors { display: flex; flex-direction: column; gap: 12px; }
.xzg-mirror { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.xzg-mirror:hover { border-color: var(--green); background: var(--green-soft); }
.xzg-mirror .xzg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.xzg-mirror b { font-weight: 600; }
.xzg-mirror .xzg-spd { margin-left: auto; flex-shrink: 0; font-size: 11px; color: var(--faint); }
.xzg-mirror.is-off { cursor: default; color: var(--faint); }
.xzg-mirror.is-off:hover { border-color: var(--line); background: #fff; }
.xzg-mirror.is-off .xzg-dot { background: #cbd5d1; }
.xzg-dlhelp { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.xzg-dlhelp b { color: var(--green-dark); }
.xzg-dlhelp .xz-link-btn { font-size: 12.5px; }
.xzg-report-link { flex-shrink: 0; background: none; border: 0; padding: 0; font-size: 12.5px; color: #b45309; cursor: pointer; }
.xzg-report-link:hover { text-decoration: underline; }

/* ---------- 侧栏：游戏排行（竖版封面） ---------- */
.xzg-rankitem { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.xzg-rankitem:last-child { border-bottom: 0; }
.xzg-rankitem:hover .xzg-rn { color: var(--green-dark); }
.xzg-rankno { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: #eceff1; color: var(--faint); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.xzg-rankno.r1 { background: #ef4444; color: #fff; }
.xzg-rankno.r2 { background: #f59e0b; color: #fff; }
.xzg-rankno.r3 { background: #fbbf24; color: #fff; }
.xzg-rthumb { flex-shrink: 0; width: 42px; height: 56px; border-radius: 6px; object-fit: cover; background: #dfe5e8; }
.xzg-rinfo { min-width: 0; flex: 1; }
.xzg-rn { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.xzg-rs { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ---------- 侧栏：装机必备推广卡 ---------- */
.xzg-bibei { margin-top: 16px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: 12px; padding: 20px 18px; text-align: center; }
.side-box + .xzg-bibei, .xzg-bibei + .side-box { margin-top: 16px; }
.xzg-bibei b { font-size: 16px; }
.xzg-bibei p { font-size: 12px; opacity: .85; margin: 8px 0 14px; }
.xzg-bibei a { display: inline-block; background: #fff; color: var(--green-dark); border-radius: 16px; padding: 6px 22px; font-size: 13px; font-weight: 600; }

/* ---------- 侧栏：相关主题 chips ---------- */
.xzg-relgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.xzg-chip { padding: 5px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 12px; transition: color .2s ease, border-color .2s ease; }
.xzg-chip:hover { color: var(--green-dark); border-color: var(--green); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .xzg-hotwall { grid-template-columns: repeat(4, 1fr); }
  .xzg-secgrid, .xzg-newsgrid { grid-template-columns: 1fr; }
  .xzg-hero { flex-direction: column; }
  .xzg-hcover { width: 200px; margin: 0 auto; }
  .xzg-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xzg-hotwall { grid-template-columns: repeat(3, 1fr); }
  .xzg-gamerow { grid-template-columns: repeat(2, 1fr); }
  .xzg-ithumb { width: 68px; height: 90px; }
  .xzg-isub { display: none; }
  .xzg-imeta { gap: 10px; }
  .xzg-dlhelp { flex-direction: column; align-items: flex-start; }
  .xzg-sort { width: 100%; margin-left: 0; }
  .xzg-panel { padding: 16px; }
  .xzg-btndl { height: 44px; padding: 0 24px; font-size: 15px; }
  .xzg-btnghost, .xzg-htags { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .xzg-poster, .xzg-gcard, .xzg-gcover img, .xzg-item { transition: none; }
  .xzg-poster:hover, .xzg-gcard:hover, .xzg-item:hover { transform: none; }
}
