/* ==========================================================================
   wechat-guide.css —— 微信/QQ 内置浏览器引导遮罩 + 弹窗提示
   与站点原有暗色 + 洋红(--accent-color)风格保持一致
   ========================================================================== */

/* ---------- 遮罩容器 ---------- */
.wxg-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 28px;
  background: rgba(8, 9, 16, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.wxg-mask.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 指向右上角的箭头（唯一指引，不再画「···」胶囊） ---------- */
.wxg-arrow {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 10001;
  width: 142px;
  height: 74px;
  pointer-events: none;
  animation: wxg-float 1.6s ease-in-out infinite;
}
@keyframes wxg-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, -5px); }
}
.wxg-arrow path {
  fill: none;
  stroke: var(--accent-color, #ff2a6d);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 42, 109, 0.55));
}
.wxg-arrow .wxg-dash {
  stroke-dasharray: 7 9;
  opacity: 0.85;
}

/* ---------- 卡片 ---------- */
.wxg-card {
  position: relative;
  z-index: 10002;
  width: 100%;
  max-width: 342px;
  background: rgba(26, 27, 46, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.62);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.wxg-mask.is-on .wxg-card {
  transform: translateY(0) scale(1);
}

.wxg-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.22), rgba(255, 42, 109, 0.06));
  border: 1px solid rgba(255, 42, 109, 0.35);
}
.wxg-badge svg {
  width: 26px;
  height: 26px;
  fill: var(--accent-color, #ff2a6d);
}

.wxg-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.wxg-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub, #8e90a6);
  margin-bottom: 18px;
}

/* ---------- 步骤 ---------- */
.wxg-steps {
  list-style: none;
  text-align: left;
  margin: 0 0 20px;
  padding: 0;
}
.wxg-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e8e9f2;
  line-height: 1.5;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wxg-steps li:first-child { border-top: 0; }
.wxg-steps .wxg-n {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 42, 109, 0.16);
  border: 1px solid rgba(255, 42, 109, 0.42);
  color: var(--accent-color, #ff2a6d);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wxg-steps b {
  color: var(--accent-color, #ff2a6d);
  font-weight: 700;
}

/* ---------- 按钮 ---------- */
.wxg-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wxg-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 13px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, background 0.2s ease;
}
.wxg-btn:active { transform: scale(0.98); }
.wxg-btn svg { width: 18px; height: 18px; fill: currentColor; }

.wxg-btn-primary {
  background: linear-gradient(135deg, var(--accent-color, #ff2a6d), #d81b60);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 42, 109, 0.35);
}
.wxg-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub, #8e90a6);
}
/* 「直接下载安装包」是 <a>（需要真实导航才能触发微信确认框），
   去掉链接默认样式，外观与 <button> 保持一致 */
a.wxg-btn,
a.wxg-btn:visited {
  text-decoration: none;
  color: #fff;
}
.wxg-desc b {
  color: var(--accent-color, #ff2a6d);
  font-weight: 700;
}

/* ---------- 关闭遮罩后的顶部常驻提示条 ---------- */
.wxg-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 42px 11px 14px;
  background: linear-gradient(135deg, var(--accent-color, #ff2a6d), #c2185b);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.wxg-bar.is-on { display: flex; }
.wxg-bar b { font-weight: 700; }
.wxg-bar .wxg-bar-x {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
body.wxg-has-bar { padding-top: 52px; }

/* ---------- 复制成功提示（沿用站点 toast 位置） ---------- */
.wxg-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%) translateY(12px);
  z-index: 10003;
  max-width: 78vw;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.wxg-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 微信/QQ：引导页独占整屏（不与站点页面叠加） ----------
   遮罩本身是 rgba(8,9,16,.88) + 背景模糊，站点内容会隐约透出来 ——
   观感就是「站点那页 + 上面再压一层」。这里把站点内容整体隐藏，
   只留引导节点，遮罩改为不透明：微信里打开 = 就这一个界面。
   站点内容由 JS 加/删 body.wxg-clean 控制（关掉引导后自动恢复）。 */
body.wxg-clean > *:not(.wxg-mask):not(.wxg-bar):not(.wxg-toast):not(.wxg-offscreen) {
  display: none !important;
}
body.wxg-clean {
  padding: 0;
}
body.wxg-clean .wxg-mask {
  background: var(--bg-color, #0f101c);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* 注：.wxg-offscreen 是自动触发用的离屏 <a>（见 wechat-guide.js 的
   autoTriggerDownload）。它必须留在文档流里、不能被 display:none 掉，
   所以在上面的 :not() 列表里单独豁免 —— 否则程序化 click() 触发的
   下载导航在部分 WebView 上会失效。 */
