/* ==========================================================================
   移动端浏览提示（仅首页）
   设计取向：底部浮起的 sheet，而非全屏遮罩。
   理由：用户此刻已经在看内容了，全屏遮罩会先把「缩水版」的首屏盖掉，
   反而坐实了糟糕印象。渐隐层只压住底部，画面主体依然可见，
   提示与体验可以同时存在。
   视觉沿用全站语言：纯黑白、1px 发丝线、45° 斜切（呼应 S 标）。
   ========================================================================== */

.m-tip { display: none; }

@media (max-width: 820px) {

  .m-tip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9600; /* 低于微信二维码弹窗 9999 */
    display: block;
    padding: 64px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    /* 渐隐层：托住卡片、留出上方点击区，同时让页面主体继续可见 */
    background: linear-gradient(to top,
      rgba(0, 0, 0, .94) 0%,
      rgba(0, 0, 0, .86) 38%,
      rgba(0, 0, 0, .55) 72%,
      rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
  }

  .m-tip.is-in { opacity: 1; pointer-events: auto; }

  .m-tip-card {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 22px 20px 18px;
    background: #0C0C0D;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    transform: translateY(150%);
    transition: transform .72s cubic-bezier(.16, .84, .28, 1);
  }

  .m-tip.is-in .m-tip-card { transform: translateY(0); }

  /* 关闭：右上角，44px 触控区 */
  .m-tip-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6E6E76;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .m-tip-close:active { color: #fff; }

  /* 标题行：图标与文字基线对齐 */
  .m-tip-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 34px 12px 0;
  }

  .m-tip-mark {
    flex: none;
    display: block;
    width: 26px;
    height: 26px;
    color: #fff;
  }

  .m-tip-mark svg { display: block; }

  .m-tip-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.3;
    color: #fff;
  }

  .m-tip-desc {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #9A9AA2;
  }

  .m-tip-desc b {
    font-weight: 600;
    color: #E4E4E8;
  }

  .m-tip-actions {
    display: flex;
    gap: 10px;
  }

  .m-tip-btn {
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  }

  .m-tip-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* 主行动：白面黑字，全站唯一的强对比元素，只用一次 */
  .m-tip-btn--primary {
    flex: 1 1 auto;
    background: #fff;
    border: 1px solid #fff;
    color: #0C0C0D;
    font-weight: 600;
  }

  .m-tip-btn--primary:active { background: #D8D8DC; border-color: #D8D8DC; }

  /* 次级：发丝描边，安静退让 */
  .m-tip-btn--ghost {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #8A8A92;
  }

  .m-tip-btn--ghost:active { border-color: rgba(255, 255, 255, .4); color: #fff; }
}

/* 尊重系统「减弱动态效果」：不做位移，只做极短的淡入 */
@media (prefers-reduced-motion: reduce) {
  .m-tip,
  .m-tip-card { transition-duration: .01ms; }
  .m-tip .m-tip-card { transform: none; }
}
