/* ==========================================================================
   游戏通用下载页样式表
   结构：主题变量 → 基础 → 品牌区 → 下载卡片 → 内容模块 → 底部 → 轻提示
   单位：统一使用 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;
}

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

/* ===== 品牌区（模糊 LOGO 背景） ===== */
.bvbrld {
  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 放大模糊，底部渐隐融入页面 */
.fitdlc {
  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%);
}

/* 氛围蒙版层：位于模糊背景之上、内容之下 */
.ciwppik {
  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%);
}

.tqsozp {
  position: relative;
  z-index: 1;
}

.bvbrld .zckhx {
  display: flex;
  align-items: center;
  gap: 0.24rem;
}

.vladu {
  min-width: 0;
}

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

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

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

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

.xjahg {
  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;
}

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

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

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

.kouidwg .kfbmeqb {
  font-size: 0.22rem;
  font-weight: 500;
  color: #FFC53D;
  opacity: .95;
}

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

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

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

.doxyyef {
  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;
}

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

.doxyyef:active {
  transform: scale(.98);
}

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

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

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

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

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

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

.iafza::-webkit-scrollbar {
  display: none;
}

.iafza img,
.iafza .pfoov {
  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;
}

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

.gapbp img {
  display: block;
  width: 100%;
  height: auto;
}

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

.kvowb .nrrgax {
  line-height: 1.85;
}

.hfmlhsr {
  display: flex;
  gap: 0.12rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

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

/* ===== 游戏福利 ===== */
.wjzpar {
  list-style: none;
}

.qmxvte {
  padding: 0.22rem 0;
}

.qmxvte:first-child {
  padding-top: 0;
}

.qmxvte:last-child {
  padding-bottom: 0;
}

.qmxvte + .qmxvte {
  border-top: 1px solid var(--line);
}

.qmxvte h3 {
  margin-bottom: 0.06rem;
  color: var(--primary);
  font-size: 0.26rem;
  font-weight: 600;
}

.qmxvte p {
  color: var(--text2);
  font-size: 0.24rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
/* ===== 最新礼包 ===== */
.ydwfu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  padding: 0.24rem 0;
  border-bottom: 1px solid var(--line);
}

.ydwfu:first-child {
  padding-top: 0;
}

.esydvj h3 {
  font-size: 0.28rem;
  font-weight: 600;
}

.esydvj p {
  margin: 0.06rem 0;
  font-size: 0.24rem;
  color: var(--text2);
}

.esydvj span {
  font-size: 0.22rem;
  color: var(--text3);
}

.esydvj b {
  color: var(--primary-light);
  font-weight: 600;
  user-select: all;
}

.zkjpv {
  flex-shrink: 0;
  padding: 0.12rem 0.22rem;
  border-radius: 0.12rem;
  background: rgba(196, 52, 43, .07);
  color: var(--accent);
  font-size: 0.24rem;
  text-decoration: none;
}

.egnld {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.24rem;
  color: var(--text2);
  font-size: 0.24rem;
  text-decoration: none;
}
/* ===== 游戏信息 ===== */
.xaxhfbi {
  display: flex;
  align-items: flex-start;
  gap: 0.24rem;
  padding: 0.18rem 0;
  font-size: 0.26rem;
  border-bottom: 1px solid var(--line);
}

.xaxhfbi:last-child {
  border-bottom: none;
}

.xaxhfbi .tioar {
  width: 1.32rem;
  flex-shrink: 0;
  color: var(--text3);
}

.xaxhfbi .tnsja {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}

.xaxhfbi.oqzdc {
  display: none;
}

.sdzlfje.xeqcjht .xaxhfbi.oqzdc {
  display: flex;
}

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

/* 「展开全部 / 收起」双标签：由 .sdzlfje 的 xeqcjht 类切换 */
.igoapn .denit {
  display: none;
}

.sdzlfje.xeqcjht ~ .igoapn .gdytj {
  display: none;
}

.sdzlfje.xeqcjht ~ .igoapn .denit {
  display: inline;
}

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

/* 珠子 */
.bscywdv::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);
}

.bscywdv + .bscywdv {
}

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

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

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

.stkrsg::-webkit-scrollbar {
  display: none;
}

.stkrsg 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;
}

.stkrsg button.dsedf {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

.zpaar.dsedf {
  display: block;
}

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

.vwbrtm:last-child {
  border-bottom: none;
}

.vwbrtm .byabgri {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem 0.04rem;
  cursor: pointer;
}

.vwbrtm .rylkza {
  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);
}

.vwbrtm .byabgri b {
  font-size: 0.28rem;
  font-weight: 500;
  display: block;
}

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

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

.vwbrtm.xeqcjht .qtrlk {
  transform: rotate(90deg);
}

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

.vwbrtm.xeqcjht .ovmipk {
  display: block;
}

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

.mgzbmuw:last-child {
  border-bottom: none;
}

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

.zcvpqrj .azmuc {
  color: var(--accent);
  font-size: 0.32rem;
  flex-shrink: 0;
}

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

.mgzbmuw.xeqcjht .qtrlk {
  transform: rotate(45deg);
}

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

.mgzbmuw.xeqcjht .xqhmsd {
  display: block;
}

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

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

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

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

.jfffi {
  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;
}

.ikawp .sipnviw {
  flex: 1;
  min-width: 0;
}

.ikawp .mbbgskx {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}

.ikawp .mbbgskx b {
  font-size: 0.26rem;
  font-weight: 500;
}

.ikawp .mbbgskx .yactup {
  font-size: 0.24rem;
  letter-spacing: 1px;
}

.ikawp .mbbgskx time {
  margin-left: auto;
  font-size: 0.22rem;
  color: var(--text3);
}

.ikawp .caumc {
  font-size: 0.26rem;
  color: var(--text2);
  margin-top: 0.06rem;
}

.ikawp .caumc.taeeug {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 折叠评论：默认隐藏，点「查看更多评论」后由 xeqcjht 类显示 */
.ikawp.oqzdc {
  display: none;
}

#kaniwn.xeqcjht .ikawp.oqzdc {
  display: flex;
}

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

#kaniwn.xeqcjht ~ .muqyw {
  display: none;
}

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

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

/* ===== 底部固定下载条（主下载按钮滚出视口后滑入） ===== */
.mtqet {
  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;
}

.mtqet.plbzl {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

/* 小按钮：图标在上、文案在下，透明底；定宽保证中间主按钮真正居中 */
.expdhqi {
  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;
}

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

.expdhqi:active {
  opacity: .6;
}

.srhvmt i {
  color: #FF6A2B;
}

.mgpcne i {
  color: #07C160;
}
