/* =========================================================
   2P Games 官网原型 · 游戏详情页样式
   依赖 style.css 中的变量与基础组件（.wrap / .btn / .gcard / .site-footer）
   ========================================================= */

html { scroll-padding-top: 138px; }

/* 让详情页内容避开固定导航 */
#detailRoot { min-height: 60vh; }

/* ---------------------------------------------------------
   加载态
--------------------------------------------------------- */
.dloading {
  min-height: 62vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--text-3); font-size: 14px; letter-spacing: .1em;
}
.dloading__spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: dSpin .8s linear infinite;
}
@keyframes dSpin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------
   顶部主视觉
--------------------------------------------------------- */
.dhero {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 54vw, 650px);
  display: flex; align-items: flex-end;
  background: #0d0f13;
}
.dhero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  transform: scale(1.06);
  animation: dheroDrift 32s ease-in-out infinite alternate;
}
@keyframes dheroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.6%, -1.4%, 0); }
}
.dhero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 13, 17, .74) 0%, rgba(11, 13, 17, .22) 30%, rgba(11, 13, 17, .84) 74%, #14171d 100%),
    linear-gradient(90deg, rgba(11, 13, 17, .78) 0%, rgba(11, 13, 17, .12) 62%);
}
.dhero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  padding-bottom: clamp(38px, 5.6vw, 68px);
}

.dhero__tags { display: flex; gap: 9px; flex-wrap: wrap; }
.dhero__tag {
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 176, 32, 0.16);
  border: 1px solid rgba(255, 176, 32, 0.45);
  color: var(--accent-2); font-size: 12.5px; font-weight: 700; letter-spacing: .07em;
}
.dhero__tag--ghost {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-strong); color: var(--text-2); font-weight: 600;
}

.dhero__title {
  margin: 0; font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 800; line-height: 1.12; letter-spacing: .01em;
  text-shadow: 0 6px 34px rgba(0, 0, 0, .62);
}
.dhero__title small {
  display: block; margin-top: 8px;
  font-size: clamp(12.5px, 1.3vw, 17px); font-weight: 500;
  color: var(--text-2); letter-spacing: .14em; text-transform: uppercase;
}
.dhero__desc {
  margin: 0; max-width: 780px;
  color: #d9dde5; font-size: clamp(14px, 1.3vw, 16.5px); line-height: 1.8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .65);
}
.dhero__facts { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; margin-top: 4px; }
.dhero__fact span {
  display: block; color: var(--text-3); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px;
}
.dhero__fact b { font-size: 15px; font-weight: 700; }
.dhero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* 进场 */
.dhero__inner > * { opacity: 0; transform: translateY(20px); animation: dIn .62s cubic-bezier(.22,.8,.3,1) forwards; }
.dhero__inner > *:nth-child(1) { animation-delay: .04s; }
.dhero__inner > *:nth-child(2) { animation-delay: .1s; }
.dhero__inner > *:nth-child(3) { animation-delay: .17s; }
.dhero__inner > *:nth-child(4) { animation-delay: .24s; }
.dhero__inner > *:nth-child(5) { animation-delay: .31s; }
.dhero__inner > *:nth-child(6) { animation-delay: .38s; }
@keyframes dIn { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------
   吸顶子导航
--------------------------------------------------------- */
.dsub {
  position: sticky; top: 68px; z-index: 80;
  background: rgba(17, 20, 25, .93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.dsub__inner {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.dsub__inner::-webkit-scrollbar { display: none; }
.dsub a {
  padding: 15px 15px 13px; white-space: nowrap;
  font-size: 14px; font-weight: 650; color: var(--text-2);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.dsub a:hover { color: #fff; }
.dsub a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------
   通用区块
--------------------------------------------------------- */
.dsec { padding: clamp(46px, 5.4vw, 78px) 0; }
.dsec--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dsec__head { margin-bottom: 30px; }
.dsec__title {
  margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800;
  position: relative; padding-left: 15px;
}
.dsec__title::before {
  content: ""; position: absolute; left: 0; top: .28em; bottom: .28em;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.dsec__sub { margin: 8px 0 0 15px; color: var(--text-3); font-size: 14px; }

/* ---------------------------------------------------------
   关于本作
--------------------------------------------------------- */
.dabout__lead {
  margin: 0 0 30px; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: clamp(16px, 1.55vw, 19px); line-height: 1.85; color: #e6eaf1;
}
.dabout__wrap { position: relative; }
.dabout__body p {
  margin: 0 0 17px; color: var(--text-2);
  font-size: 15px; line-height: 1.92;
}
.dabout__wrap.is-clamped .dabout__body { max-height: 216px; overflow: hidden; }
.dabout__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(20, 23, 29, 0), var(--bg) 88%);
  pointer-events: none;
}
.dsec--alt .dabout__fade { background: linear-gradient(180deg, rgba(23, 26, 33, 0), var(--bg-2) 88%); }
.dabout__wrap:not(.is-clamped) .dabout__fade { display: none; }
.dabout__toggle {
  margin-top: 14px; padding: 9px 20px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: .2s;
}
.dabout__toggle:hover { background: rgba(255, 176, 32, .16); border-color: rgba(255, 176, 32, .45); color: var(--accent-2); }

/* ---------------------------------------------------------
   关于此游戏（Steam 商店页版式）
--------------------------------------------------------- */
.dabout-sec { border-bottom: 1px solid var(--line); }
.dsec__head--about { margin-bottom: 24px; }
.dabout__steam { max-width: 880px; }
.dabout__steam .dabout__lead { margin-bottom: 26px; }
.dabout__h {
  margin: 34px 0 12px; font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800; line-height: 1.5; color: var(--accent-2);
}
.dabout__h:first-of-type { margin-top: 8px; }
.dabout__p {
  margin: 0 0 16px; color: var(--text-2);
  font-size: 15.5px; line-height: 1.95;
}
.dabout__p strong { color: #fff; font-weight: 750; }
.dabout__list {
  margin: 0 0 20px; padding-left: 20px;
  list-style: none;
}
.dabout__list li {
  position: relative; padding-left: 18px; margin-bottom: 9px;
  color: var(--text-2); font-size: 15px; line-height: 1.9;
}
.dabout__list li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.dabout__list li strong { color: #fff; }
.dabout__fig { margin: 26px 0 30px; }
.dabout__fig img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2);
}
.dabout__fig figcaption {
  margin-top: 10px; text-align: center;
  color: var(--text-3); font-size: 12.5px;
}

/* Steam 富内容：标题层级 / 有序列表 / 视频 / 分隔线 */
.dabout__h--main {
  padding-left: 14px; border-left: 3px solid var(--accent);
  font-size: clamp(18px, 1.7vw, 22px);
}
.dabout__h--sub {
  margin: 24px 0 10px; font-size: clamp(15.5px, 1.4vw, 17px);
  font-weight: 750; color: #fff; letter-spacing: .01em;
}
.dabout__list--ol { list-style: decimal; padding-left: 24px; }
.dabout__list--ol li { padding-left: 6px; }
.dabout__list--ol li::before { display: none; }
.dabout__list--ol li::marker { color: var(--accent); font-weight: 700; }
.dabout__p a, .dabout__list a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.dabout__p i, .dabout__p em, .dabout__list em { font-style: italic; opacity: .92; }
.dabout__hr {
  height: 0; margin: 28px 0; border: 0;
  border-top: 1px solid var(--line);
}
.dabout__fig--video { position: relative; }
.dabout__video {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2);
}
.dabout__play {
  position: absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(10, 12, 16, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.dabout__play:hover { background: rgba(255, 176, 32, .9); color: #12141a; transform: scale(1.06); }
.dabout__vlink { position: relative; display: block; }
.dabout__vplay {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 34px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  background: rgba(8, 10, 14, .22); border-radius: 12px;
  opacity: 0; transition: opacity .2s;
}
.dabout__vlink:hover .dabout__vplay { opacity: 1; }

/* ---------------------------------------------------------
   特色分区 + 特性标签
--------------------------------------------------------- */
.dfeats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.dfeat {
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.dfeat h4 {
  margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--accent-2);
}
.dfeat ul { margin: 0; padding-left: 18px; }
.dfeat li { color: var(--text-2); font-size: 14px; line-height: 1.85; }

.dtags { display: flex; flex-wrap: wrap; gap: 10px; }
.dtag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
  transition: .2s;
}
.dtag:hover { border-color: rgba(255, 176, 32, .42); color: var(--text); }
.dtag svg { color: var(--accent); flex: none; }
.dtag--genre {
  background: rgba(255, 176, 32, .1);
  border-color: rgba(255, 176, 32, .3);
  color: var(--accent-2);
}

/* ---------------------------------------------------------
   画廊
--------------------------------------------------------- */
.dgal__main {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #000; cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.dgal__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dgal__main:hover img { transform: scale(1.02); }
.dgal__zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(12, 14, 19, .62); border: 1px solid var(--line-strong);
  color: #fff; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: .22s;
}
.dgal__main:hover .dgal__zoom { opacity: 1; transform: none; }

.dgal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.dgal__thumb {
  padding: 0; border: 1px solid var(--line); border-radius: 9px;
  overflow: hidden; background: #000; cursor: pointer;
  aspect-ratio: 16 / 9; opacity: .6; transition: .22s;
}
.dgal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dgal__thumb:hover { opacity: .9; }
.dgal__thumb.is-active {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(0, 0, 0, .4);
}

/* 灯箱 */
.dlb {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 5vh 4vw;
  background: rgba(7, 8, 11, .95);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.dlb.is-open { opacity: 1; visibility: visible; }
.dlb img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .75); }
.dlb__btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong);
  color: #fff; cursor: pointer; transition: .2s;
}
.dlb__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.dlb__close { top: 22px; right: 24px; }
.dlb__prev { left: 2.4vw; top: 50%; transform: translateY(-50%); }
.dlb__next { right: 2.4vw; top: 50%; transform: translateY(-50%); }
.dlb__count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--text-3); font-size: 13px; letter-spacing: .08em;
}

/* ---------------------------------------------------------
   详细信息表
--------------------------------------------------------- */
.dinfo {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 46px; border-top: 1px solid var(--line);
}
.dinfo__row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.dinfo__row--full { grid-column: 1 / -1; }
.dinfo__k { flex: 0 0 112px; color: var(--text-3); font-size: 13.5px; }
.dinfo__v { flex: 1; min-width: 0; color: var(--text); font-weight: 600; }
.dinfo__v .muted { color: var(--text-3); font-weight: 500; }
.dlangs { display: flex; flex-wrap: wrap; gap: 7px; }
.dlang {
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: 12.8px; font-weight: 600; color: var(--text-2);
}
.dlang--audio { border-color: rgba(255, 176, 32, .4); color: var(--accent-2); }
.dinfo__note { grid-column: 1 / -1; padding: 12px 0 0; color: var(--text-3); font-size: 12.5px; }

/* ---------------------------------------------------------
   配置需求
--------------------------------------------------------- */
.dspecs__tabs {
  display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
}
.dspecs__tab {
  padding: 9px 20px; border: 0; border-radius: 7px; background: none;
  color: var(--text-2); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: .2s;
}
.dspecs__tab:hover { color: #fff; }
.dspecs__tab.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
}
.dspec { border-top: 1px solid var(--line); }
.dspec__row {
  display: flex; gap: 18px; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.dspec__k { flex: 0 0 118px; color: var(--text-3); font-size: 13.5px; }
.dspec__v { flex: 1; color: var(--text); }
.dspec__note { margin: 16px 0 0; color: var(--text-3); font-size: 13px; }

/* ---------------------------------------------------------
   相关游戏 / 空态
--------------------------------------------------------- */
.drel .game-grid { margin-top: 4px; }

.dempty { padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.dempty__icon {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 20px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .28);
}
.dempty h1 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.dempty p { margin: 0 0 26px; color: var(--text-3); font-size: 15px; }

/* 全部游戏（无参数时） */
.dall__group { margin-bottom: 46px; }
.dall__group:last-child { margin-bottom: 0; }
.dall__label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; font-size: 17px; font-weight: 800;
}
.dall__label span {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 176, 32, .14); border: 1px solid rgba(255, 176, 32, .3);
  color: var(--accent-2); font-size: 12px; font-weight: 700;
}
.dall__head { padding: clamp(38px, 5vw, 62px) 0 clamp(26px, 3vw, 38px); }
.dall__head h1 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.dall__head p { margin: 12px 0 0; color: var(--text-3); font-size: 15px; }

/* ---------------------------------------------------------
   响应式
--------------------------------------------------------- */
@media (max-width: 1080px) {
  .dinfo { grid-template-columns: 1fr; column-gap: 0; }
  .dinfo__row--full { grid-column: auto; }
  .dfeats { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .dsub { top: 68px; }
  .dgal__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .dhero { min-height: 78vh; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 124px; }
  .dhero__facts { gap: 18px; }
  .dhero__fact b { font-size: 14px; }
  .dgal__thumbs { grid-template-columns: repeat(2, 1fr); }
  .dinfo__k { flex: 0 0 88px; }
  .dspec__k { flex: 0 0 92px; }
  .dspecs__tabs { width: 100%; }
  .dspecs__tab { flex: 1; padding: 9px 10px; }
  .dlb__prev { left: 8px; }
  .dlb__next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .dhero__bg { animation: none; }
  .dhero__inner > * { opacity: 1; transform: none; animation: none; }
}

/* ---------------------------------------------------------
   订阅区块 + 官方页脚（结构参照 2pgames.net 线上）
--------------------------------------------------------- */
/* 订阅区块直接复用首页 .section / .subscribe / .subscribe__form 样式，保证与首页完全一致 */
/* 官方页脚 .site-footer--official / .ofooter__* 样式已迁移至 style.css，两页共用 */
