@charset "UTF-8";
/* =====================================================================
   我们自己的增补样式
   ---------------------------------------------------------------------
   竞品原版样式全在 assets/css/gamedetail.css，那份不要改。
   这里只放竞品页面上没有、我们额外加的东西：
     1) 双平台下载弹窗（对应竞品第二个页面的内容）
     2) 安装说明弹窗
   配色沿用竞品主色变量，保证观感一致。
   ===================================================================== */

:root {
  --dl-primary:      #fe8900;
  --dl-primary-dark: #e67800;
  --dl-orange-lite:  #fff5eb;
  --dl-orange-bd:    #ffe4cc;
  --dl-radius:       12px;
  --dl-btn-radius:   14px;
}

/* =====================================================================
   双平台下载弹窗
   ===================================================================== */
.dlmodal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.dlmodal[hidden] { display: none !important; }
.dlmodal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.dlmodal__card {
  position: relative; width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--dl-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.dlmodal__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem;
  border-bottom: 2px solid var(--dl-orange-bd);
}
.dlmodal__title { font-size: .95rem; font-weight: 700; color: var(--dl-primary); }
.dlmodal__x {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: #aaa; padding: 0 2px;
}
.dlmodal__x:hover { color: #333; }

/* 两个平台左右并排，中间竖分隔线；窄屏转上下堆叠 */
.dl { display: flex; flex-direction: column; }
.dl-card { flex: 1; padding: 1.5rem 1.1rem 1.35rem; text-align: center; border-top: 1px solid #f2f2f2; }
.dl-card:first-child { border-top: 0; }
@media (min-width: 560px) {
  .dl { flex-direction: row; }
  .dl-card { border-top: 0; border-left: 1px solid #f2f2f2; }
  .dl-card:first-child { border-left: 0; }
}

.dl-card__icon { color: #2f3336; line-height: 1; margin-bottom: .45rem; }
.dl-card__icon i { font-size: 2.6rem; }
.dl-card__name { margin: 0 0 .55rem; font-size: .95rem; font-weight: 700; color: #333; }

/* 版本 / 大小 / 更新时间：灰色小字流式排列 */
.dl-meta {
  margin: 0 0 1.05rem; color: #777; font-size: .78rem;
  display: flex; flex-wrap: wrap; gap: .15rem 1rem; justify-content: center;
}
.dl-meta__i { white-space: nowrap; }

/* 下载按钮：与竞品下载按钮同款橙色渐变 + 内高光 */
.dl-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 190px; padding: .68rem 1.15rem;
  border: 0; border-radius: var(--dl-btn-radius);
  background: linear-gradient(180deg, var(--dl-primary), var(--dl-primary-dark));
  color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .5px;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 137, 0, .25);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.dl-btn::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  pointer-events: none;
}
.dl-btn:hover  { transform: translateY(-2px); background: var(--dl-primary-dark); box-shadow: 0 8px 16px rgba(254,137,0,.35); }
.dl-btn:active { transform: translateY(0);    box-shadow: 0 4px 10px rgba(254,137,0,.25); }

/* =====================================================================
   安装说明弹窗
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none !important; }
.modal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.modal__card {
  position: relative; width: 100%; max-width: 420px; max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: var(--dl-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.modal__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; border-bottom: 2px solid var(--dl-orange-bd);
}
.modal__title { font-size: .95rem; font-weight: 700; color: var(--dl-primary); }
.modal__x { border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; color: #aaa; padding: 0 2px; }
.modal__x:hover { color: #333; }
.modal__bd { padding: 1rem 1.1rem; }
.modal__status {
  margin: 0 0 .75rem; padding: .6rem .7rem;
  background: var(--dl-orange-lite);
  border-left: 3px solid var(--dl-primary);
  border-radius: 4px; color: #a35800; font-size: .8rem;
}
.modal__bd ol, .modal__bd ul { margin: 0; padding-left: 1.25rem; color: #555; font-size: .86rem; }
.modal__bd li { margin-bottom: .45rem; }
.modal__ft { padding: 0 1.1rem 1.1rem; text-align: right; }
.modal__ok {
  border: 0; border-radius: var(--dl-btn-radius);
  background: linear-gradient(180deg, var(--dl-primary), var(--dl-primary-dark));
  color: #fff; padding: .55rem 1.4rem; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
}

/* =====================================================================
   游戏推荐区的空位占位块
   ---------------------------------------------------------------------
   尺寸刻意与竞品真实条目一致（图标 58px / 宽屏 72px + 名称两行），
   这样以后往里填真游戏时，版式不会跳动。
   填了真游戏之后，把这段连同 HTML 里的 .gd-reco-slot 一起删掉即可。
   ===================================================================== */
.gd-reco-slot {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  min-width: 0;
}
.gd-reco-slot::before {
  content: "";
  width: 58px; height: 58px;
  border: 1px dashed var(--dl-orange-bd);
  border-radius: 13px;
  background: var(--dl-orange-lite);
}
.gd-reco-slot::after {
  content: "";
  width: 68%; min-height: 2.5em;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg, #f5f5f5 0 .55em, transparent .55em 1.25em);
}
@media (min-width: 768px) {
  .gd-reco-slot::before { width: 72px; height: 72px; border-radius: 16px; }
}

/* 底部固定条存在时，给页面底部留出空间，别遮住内容 */
.row { padding-bottom: 70px; }

@media (max-width: 360px) {
  .dl-btn { min-width: 0; width: 100%; }
}

/* =====================================================================
   游戏注册弹窗的提示行
   ===================================================================== */
.reg-msg {
  margin: .6rem 0 .8rem; padding: .55rem .7rem;
  border-radius: 4px; font-size: .82rem; line-height: 1.5;
}
.reg-msg[hidden] { display: none !important; }
.reg-msg--err { background: #fef0f0; border-left: 3px solid #f56c6c; color: #c45656; }
.reg-msg--ok  { background: var(--dl-orange-lite); border-left: 3px solid var(--dl-primary); color: #a35800; }

/* 注册 / 改密弹窗底部的说明行（2026-09-08 加） */
.reg-foot {
  margin: .7rem 0 0; font-size: .78rem; line-height: 1.6; color: #8a8a8a; text-align: center;
}
.reg-foot a { color: var(--dl-primary); text-decoration: underline; }

/* 图形验证码一行：输入框 + 图片并排（2026-09-08 加） */
.cap-row { display: flex; align-items: stretch; gap: 8px; }
.cap-row .form-control { flex: 1 1 auto; min-width: 0; }
.cap-img {
  flex: 0 0 auto; width: 130px; height: 44px; display: block;
  border: 1px solid #e2e2e2; border-radius: 4px; background: #fff8f0;
  cursor: pointer; user-select: none;
}
.cap-img:hover { border-color: var(--dl-primary); }

/* 注册弹窗：不依赖 Bootstrap 的 JS，用我们自己的显示控制 */
#registerModal { background: rgba(0, 0, 0, .5); }
#registerModal.show { display: block; }

/* 改密弹窗：与注册弹窗同一套显示控制（2026-09-08 加） */
#changePwdModal { background: rgba(0, 0, 0, .5); }
#changePwdModal.show { display: block; }
