/* 下载确认卡样式（单独文件 + 版本号加载，避免被缓存住旧样式）
   改这个文件即可调整确认卡外观 */

/* ---- 下载确认（防采集） ---- */
.dlp-gate {background: #fff;border: 1px solid #ffd2bd;border-radius: 4px;margin: 4px 0 12px;padding: 14px 12px 12px;text-align: center;}

.dlp-gate h2 {color: #ff3800;font-size: 1.15rem;line-height: 1.4;margin: 0 0 8px;}

.dlp-gate-notice {color: #ff3800;font-size: 0.95em;line-height: 1.7;margin-bottom: 8px;}

.dlp-gate-file {color: #333;font-size: 1rem;margin-bottom: 6px;}

.dlp-gate-file strong {font-weight: 600;}

.dlp-gate-tip {color: #888;font-size: 0.92em;line-height: 1.7;margin-bottom: 10px;}

.dlp-gate-info {background: #fafafa;border: 1px dashed #e0e0e0;border-radius: 3px;color: #666;font-size: 0.95em;margin-bottom: 12px;padding: 8px 10px;text-align: left;}

.dlp-gate-info span {display: block;line-height: 1.9;word-break: break-all;}

.dlp-gate-form {margin: 0 0 10px;}

.dlp-gate-btn {background: #ff3800;border: 0;border-radius: 4px;box-shadow: 0 2px 0 #c22b00;color: #fff;cursor: pointer;display: inline-block;font-family: inherit;font-size: 1.05rem;font-weight: 700;line-height: 1.2;max-width: 100%;padding: 13px 26px;transition: opacity 0.25s ease;}

.dlp-gate-btn:hover {opacity: 0.88;}

.dlp-gate-btn:active {box-shadow: none;transform: translateY(2px);}

.dlp-gate-note {color: #999;font-size: 0.85em;line-height: 1.7;}

.dlp-gate-done h2 {color: #1a9d4b;}

.dlp-gate-body {border-top: 1px dashed #e6e6e6;padding-top: 10px;text-align: left;}

.dlp-gate-body p {margin-bottom: 6px;}

.dlp-gate-pwd {background: #fff8e6;border: 1px solid #ffe0a3;border-radius: 3px;color: #b37400;font-size: 0.95em;margin-top: 10px;padding: 6px 8px;text-align: left;}

/* ---- 倒计时状态 ---- */
.dlp-gate-btn.is-waiting {
  background: #ff7a45;
  box-shadow: 0 2px 0 #d1562a;
  cursor: default;
}

.dlp-gate-btn.is-waiting:hover {
  opacity: 1;
}

.dlp-gate-btn:disabled {
  cursor: default;
}

/* ---- 弹窗广告（点击显示下载地址时弹出） ---- */
.dlp-ad {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dlp-ad[hidden] {
  display: none;
}

.dlp-ad-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.62);
}

.dlp-ad-box {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  padding: 24px 20px 18px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.dlp-ad-x {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #bbb;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dlp-ad-x:hover {
  color: #ff3800;
}

.dlp-ad-title {
  margin: 0 0 12px;
  padding: 0 22px;
  color: #333;
  font-size: 1.12rem;
  line-height: 1.5;
}

.dlp-ad-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 4px;
}

.dlp-ad-text {
  margin-bottom: 16px;
  color: #666;
  font-size: 0.95em;
  line-height: 1.8;
  text-align: left;
  word-break: break-word;
}

.dlp-ad-text p {
  margin-bottom: 6px;
}

.dlp-ad-btn {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 4px;
  background: #ff3800;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.dlp-ad-btn:hover {
  background: #e63200;
  color: #fff;
}

.dlp-ad-close {
  display: block;
  margin: 12px auto 0;
  padding: 4px 12px;
  border: 0;
  background: none;
  color: #999;
  font-family: inherit;
  font-size: 0.9em;
  cursor: pointer;
}

.dlp-ad-close:hover {
  color: #666;
}

html.dlp-ad-lock,
html.dlp-ad-lock body {
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .dlp-ad-box {
    padding: 22px 14px 14px;
  }
  .dlp-ad-title {
    font-size: 1.05rem;
  }
}

@media (min-width: 775px) {
  .dlp-gate {padding: 18px 16px 14px;}
  .dlp-gate-btn {min-width: 16em;}
}
