/* ==========================================================================
   游戏通用下载页样式表
   结构：主题变量 → 基础 → 品牌区 → 下载卡片 → 内容模块 → 底部 → 轻提示
   单位：统一使用 rem（1rem = 50px @ 375px 设计宽度，即 12px = 0.24rem）
         换算：px ÷ 50 = rem（如 12px = 0.24rem、18px = 0.36rem、80px = 1.6rem）
         仅 1px 描边/分割线保留 px，避免缩放后发虚
   说明：同一选择器的规则已合并（保留最终生效值），已移除失效规则
   ========================================================================== */

/* ===== 主题变量（换游戏改这里的三个色值即可，已不依赖脚本） ===== */
:root {
  --primary: #1B2440;
  --primary-light: #2E3B66;
  --accent: #C4342B;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text2: #666E7A;
  --text3: #9AA1AB;
  --line: rgba(0, 0, 0, .08);
  --radius: 0.24rem;
}

/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  /* 移动端 rem 基准：1rem = 50px @ 375px 设计宽度，即 12px = 0.24rem（px ÷ 50 即得 rem）
     随视口等比缩放并限幅 46.875~56.25px —— 大屏手机整体略放大、小屏略缩小；
     桌面端被 56.25px 上限锁住，不会无限放大 */
  font-size: 50px;
  font-size: clamp(46.875px, 13.3333vw, 56.25px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.28rem;
  line-height: 1.6;
}

.dtpk-anfr {
  max-width: 9.6rem;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 1.44rem;
  background: var(--bg);
}

/* ===== 品牌区（模糊 LOGO 背景） ===== */
.dtpk-px43 {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 0.32rem 0.32rem 0.88rem;
  background:
    radial-gradient(circle at 14% 12%, var(--primary-light) 0%, transparent 58%),
    var(--primary);
}

/* 背景层：LOGO 放大模糊，底部渐隐融入页面 */
.dtpk-v8cq {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  filter: blur(0.72rem) saturate(1.7) brightness(1.22);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* 氛围蒙版层：位于模糊背景之上、内容之下 */
.dtpk-hfpz {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .14) 0%, transparent 52%),
    linear-gradient(100deg, rgba(10, 14, 26, .52) 0%, rgba(10, 14, 26, .16) 100%);
}

.dtpk-wfqd {
  position: relative;
  z-index: 1;
}

.dtpk-px43 .dtpk-v906 {
  display: flex;
  align-items: center;
  gap: 0.24rem;
}

.dtpk-ch5n {
  min-width: 0;
}

.dtpk-afil {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.dtpk-wme7 {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.32rem;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtpk-wme7 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtpk-px43 h1 {
  font-size: 0.36rem;
  font-weight: 600;
  letter-spacing: 0.006rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dtpk-jmg3 {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  flex-shrink: 0;
  font-size: 0.2rem;
  line-height: 1;
  padding: 0.06rem 0.12rem;
  border-radius: 0.08rem;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.dtpk-jmg3 i {
  color: #7ED0FF;
  font-size: 0.22rem;
}

/* 评分星级行 */
.dtpk-d8be {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin: 0.16rem 0;
}

.dtpk-d8be .dtpk-wemo {
  display: inline-flex;
  gap: 1px;
  color: #FFC53D;
  font-size: 0.26rem;
  line-height: 1;
}

.dtpk-d8be .dtpk-wwn5 {
  font-size: 0.22rem;
  font-weight: 500;
  color: #FFC53D;
  opacity: .95;
}

.dtpk-px43 .dtpk-l27l {
  font-size: 0.26rem;
  opacity: .88;
  margin-top: 0.04rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 下载卡片区（上浮压在品牌区上） ===== */
.dtpk-xtkb {
  position: relative;
  z-index: 2;
  margin: -0.52rem 0.28rem 0;
}

.dtpk-vvb3 {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.32rem;
  margin-bottom: 0.24rem;
}

.dtpk-x7gj {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0.24rem;
  padding: 0.26rem 0.3rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.32rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s;
}

.dtpk-x7gj i {
  margin-right: 0.12rem;
  vertical-align: -1px;
}

.dtpk-x7gj:active {
  transform: scale(.98);
}

.dtpk-u909 {
  display: flex;
  justify-content: center;
  gap: 0.32rem;
  margin-top: 0.22rem;
}

.dtpk-u909 span {
  font-size: 0.22rem;
  color: var(--text2);
  display: inline-flex;
  gap: 0.06rem;
}

.dtpk-u909 i {
  color: #2E9E5B;
  font-size: 0.26rem;
}

/* ===== 通用 section 标题 ===== */
section {
  margin: 0 0.28rem 0.24rem;
}

.dtpk-doxs {
  font-size: 0.32rem;
  font-weight: 600;
  margin: 0.36rem 0.04rem 0.2rem;
}

/* ===== 截图轮播 ===== */
.dtpk-nhhe {
  display: flex;
  gap: 0.16rem;
  overflow-x: auto;
  padding: 0.04rem 0.04rem 0.12rem;
  scroll-snap-type: x mandatory;
}

.dtpk-nhhe::-webkit-scrollbar {
  display: none;
}

.dtpk-nhhe img,
.dtpk-nhhe .dtpk-r4w7 {
  width: 2.56rem;
  height: 3.7rem;
  border-radius: 0.18rem;
  flex-shrink: 0;
  object-fit: cover;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 广告图 ===== */
.dtpk-ksiu {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.dtpk-ksiu img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 游戏简介 ===== */
.dtpk-i718 {
  font-size: 0.26rem;
  color: var(--text2);
}

.dtpk-i718 .dtpk-xkw6.dtpk-p0c0 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dtpk-i718 .dtpk-ym2u {
  color: var(--primary-light);
  font-size: 0.24rem;
  background: none;
  border: none;
  padding: 0.12rem 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
}

/* 「展开全部 / 收起」双标签：由 .dtpk-xkw6 的 dtpk-p0c0 类切换，文字不走脚本 */
.dtpk-i718 .dtpk-ym2u .dtpk-igx3 {
  display: none;
}

.dtpk-i718 .dtpk-xkw6:not(.dtpk-p0c0) ~ .dtpk-ym2u .dtpk-ffvc {
  display: none;
}

.dtpk-i718 .dtpk-xkw6:not(.dtpk-p0c0) ~ .dtpk-ym2u .dtpk-igx3 {
  display: inline;
}

.dtpk-f82t {
  display: flex;
  gap: 0.12rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.dtpk-f82t span {
  font-size: 0.22rem;
  color: var(--text2);
  background: var(--bg);
  border-radius: 0.1rem;
  padding: 0.04rem 0.18rem;
}

/* ===== 游戏信息 ===== */
.dtpk-bu2k {
  display: flex;
  align-items: flex-start;
  gap: 0.24rem;
  padding: 0.18rem 0;
  font-size: 0.26rem;
  border-bottom: 1px solid var(--line);
}

.dtpk-bu2k:last-child {
  border-bottom: none;
}

.dtpk-bu2k .dtpk-ptqt {
  width: 1.32rem;
  flex-shrink: 0;
  color: var(--text3);
}

.dtpk-bu2k .dtpk-v1l7 {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}

.dtpk-bu2k.dtpk-ofuf {
  display: none;
}

.dtpk-p2ai.dtpk-w8li .dtpk-bu2k.dtpk-ofuf {
  display: flex;
}

.dtpk-v6nk {
  width: 100%;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.26rem;
  padding: 0.2rem 0 0;
  cursor: pointer;
}

/* 「展开全部 / 收起」双标签：由 .dtpk-p2ai 的 dtpk-w8li 类切换 */
.dtpk-v6nk .dtpk-igx3 {
  display: none;
}

.dtpk-p2ai.dtpk-w8li ~ .dtpk-v6nk .dtpk-ffvc {
  display: none;
}

.dtpk-p2ai.dtpk-w8li ~ .dtpk-v6nk .dtpk-igx3 {
  display: inline;
}

/* ===== 更新日志（串珠时间线） ===== */
.dtpk-pkm3 {
  position: relative;
  padding-bottom: 0.32rem;
  padding-left: 0.4rem;
}
.dtpk-pkm3:last-child {
  padding-bottom: 0;
}
/* 竖线：串起各个珠子 */
.dtpk-pkm3::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.08rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

/* 珠子 */
.dtpk-pkm3::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 0.192rem;
  height: 0.192rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.06rem var(--card);
}

.dtpk-pkm3 + .dtpk-pkm3 {
}

.dtpk-lvrp {
  font-size: 0.24rem;
  color: var(--text2);
  margin-bottom: 0.16rem;
  font-variant-numeric: tabular-nums;
}

.dtpk-mgi0 {
  font-size: 0.26rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== 玩法攻略 ===== */
.dtpk-ekbc {
  display: flex;
  gap: 0.16rem;
  margin-bottom: 0.2rem;
  overflow-x: auto;
}

.dtpk-ekbc::-webkit-scrollbar {
  display: none;
}

.dtpk-ekbc button {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text2);
  font-size: 0.26rem;
  border-radius: 0.36rem;
  padding: 0.12rem 0.32rem;
  cursor: pointer;
}

.dtpk-ekbc button.dtpk-jzp3 {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 分类面板：全部分类都写死在页面上，靠 dtpk-jzp3 类切换显示 */
.dtpk-mv3v {
  display: none;
}

.dtpk-mv3v.dtpk-jzp3 {
  display: block;
}

.dtpk-uv4d {
  border-bottom: 1px solid var(--line);
}

.dtpk-uv4d:last-child {
  border-bottom: none;
}

.dtpk-uv4d .dtpk-grhs {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem 0.04rem;
  cursor: pointer;
}

.dtpk-uv4d .dtpk-p0ra {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.18rem;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  color: var(--primary);
}

.dtpk-uv4d .dtpk-grhs b {
  font-size: 0.28rem;
  font-weight: 500;
  display: block;
}

.dtpk-uv4d .dtpk-grhs p {
  font-size: 0.24rem;
  color: var(--text3);
  margin: 1px 0 0;
}

.dtpk-uv4d .dtpk-grhs .dtpk-xs1i {
  margin-left: auto;
  color: var(--text3);
  transition: transform .2s;
  font-size: 0.36rem;
  display: inline-block;
  flex-shrink: 0;
}

.dtpk-uv4d.dtpk-w8li .dtpk-xs1i {
  transform: rotate(90deg);
}

.dtpk-uv4d .dtpk-h80u {
  display: none;
  font-size: 0.26rem;
  color: var(--text2);
  padding: 0 0.04rem 0.24rem 1.04rem;
}

.dtpk-uv4d.dtpk-w8li .dtpk-h80u {
  display: block;
}

/* ===== 常见问题手风琴 ===== */
.dtpk-ct38 {
  border-bottom: 1px solid var(--line);
}

.dtpk-ct38:last-child {
  border-bottom: none;
}

.dtpk-uv4p {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.28rem 0.04rem;
  cursor: pointer;
  font-size: 0.28rem;
  font-weight: 500;
}

.dtpk-uv4p .dtpk-yizj {
  color: var(--accent);
  font-size: 0.32rem;
  flex-shrink: 0;
}

.dtpk-uv4p .dtpk-xs1i {
  margin-left: auto;
  color: var(--text3);
  transition: transform .2s;
  font-size: 0.36rem;
  display: inline-block;
  flex-shrink: 0;
}

.dtpk-ct38.dtpk-w8li .dtpk-xs1i {
  transform: rotate(45deg);
}

.dtpk-cuuy {
  display: none;
  font-size: 0.26rem;
  color: var(--text2);
  padding: 0 0.04rem 0.28rem 0.52rem;
}

.dtpk-ct38.dtpk-w8li .dtpk-cuuy {
  display: block;
}

/* ===== 玩家评论 ===== */
.dtpk-cgsl {
  color: #F5A623;
  font-size: 0.28rem;
  letter-spacing: 0.04rem;
}

.dtpk-cgsl .ri-star-line {
  color: #DCE0E6;
}

.dtpk-zvpa {
  display: flex;
  gap: 0.2rem;
  padding: 0.24rem 0;
  border-bottom: 1px solid var(--line);
}

.dtpk-zvpa:last-of-type {
  border-bottom: none;
}

.dtpk-agcy {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.28rem;
  font-weight: 500;
}

.dtpk-zvpa .dtpk-btfu {
  flex: 1;
  min-width: 0;
}

.dtpk-zvpa .dtpk-fvd5 {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}

.dtpk-zvpa .dtpk-fvd5 b {
  font-size: 0.26rem;
  font-weight: 500;
}

.dtpk-zvpa .dtpk-fvd5 .dtpk-cgsl {
  font-size: 0.24rem;
  letter-spacing: 1px;
}

.dtpk-zvpa .dtpk-fvd5 time {
  margin-left: auto;
  font-size: 0.22rem;
  color: var(--text3);
}

.dtpk-zvpa .dtpk-xef4 {
  font-size: 0.26rem;
  color: var(--text2);
  margin-top: 0.06rem;
}

.dtpk-zvpa .dtpk-xef4.dtpk-p0c0 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 折叠评论：默认隐藏，点「查看更多评论」后由 dtpk-w8li 类显示 */
.dtpk-zvpa.dtpk-ofuf {
  display: none;
}

#dtpk-g979.dtpk-w8li .dtpk-zvpa.dtpk-ofuf {
  display: flex;
}

.dtpk-t65a {
  width: 100%;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.26rem;
  padding: 0.24rem 0 0.04rem;
  cursor: pointer;
}

#dtpk-g979.dtpk-w8li ~ .dtpk-t65a {
  display: none;
}

/* ===== 底部 ===== */
footer {
  text-align: center;
  padding: 0.4rem;
  font-size: 0.22rem;
  color: var(--text3);
}

.dtpk-j130 {
  color: var(--text3);
  line-height: 1.7;
}

/* ===== 底部固定下载条（主下载按钮滚出视口后滑入） ===== */
.dtpk-unkd {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 9.6rem;
  margin: 0 auto;
  padding: 0.2rem 0.28rem calc(0.2rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s, opacity .28s;
}

.dtpk-unkd.dtpk-x1d6 {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* 底栏里的主按钮占满剩余宽度 */
.dtpk-unkd .dtpk-x7gj {
  flex: 1;
  width: auto;
}

/* 小按钮：图标在上、文案在下，透明底；定宽保证中间主按钮真正居中 */
.dtpk-p4qy {
  flex-shrink: 0;
  width: 0.88rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04rem;
  color: var(--text);
  font-size: 0.2rem;
  line-height: 1.2;
  text-decoration: none;
}

.dtpk-p4qy i {
  font-size: 0.44rem;
  line-height: 1;
}

.dtpk-p4qy:active {
  opacity: .6;
}

.dtpk-tafz i {
  color: #FF6A2B;
}

.dtpk-xavg i {
  color: #07C160;
}
