/* www.bjhgyjs.cn 首页 VR实验室上线宣传卡片(9/11) — 替代首页引导小人,仅PC≥981
   方案D令牌: --orange #1e4db5 / --orange-deep #183883 / --navy #183883 / --ink #1C2B3A
   外链文件,勿内联(ESA HTML优化器咬内联style) */
/* 基础态: 默认隐藏(移动端不显示), ≥981 才显示 */
.vr-promo {
  display: none;
}
/* 本次会话已关闭(promo.js 写 sessionStorage + 加此类) */
.vr-promo-off .vr-promo {
  display: none !important;
}
@media (min-width: 981px) {
  .vr-promo {
    display: block;
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 2147482999;
    display: block;
    width: 260px;
    text-decoration: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(12, 45, 82, 0.10);
    box-shadow:
      0 6px 24px rgba(12, 45, 82, 0.14),
      0 2px 6px rgba(12, 45, 82, 0.10);
    transform: translateY(26px);
    opacity: 0;
    animation: vpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  }
  .vr-promo:hover,
  .vr-promo:focus-visible {
    animation: none;
    opacity: 1;
    transform: translateY(-4px);
    box-shadow:
      0 14px 36px rgba(12, 45, 82, 0.20),
      0 4px 10px rgba(12, 45, 82, 0.12);
    outline: none;
  }
  .vp-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
  }
  .vp-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .vr-promo:hover .vp-img,
  .vr-promo:focus-visible .vp-img {
    transform: scale(1.05);
  }
  .vp-eyebrow {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #1e4db5, #183883);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(24, 56, 131, 0.35);
  }
  .vp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 45, 82, 0.50);
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .vp-close:hover {
    background: rgba(12, 45, 82, 0.80);
    transform: rotate(90deg);
  }
  .vp-body {
    display: block;
    padding: 10px 14px 14px;
  }
  .vp-title {
    display: block;
    margin-top: 2px;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
    color: #183883;
  }
  .vp-sub {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #5a6b7d;
  }
  .vp-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1e4db5, #183883);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(24, 56, 131, 0.30);
    transition: filter 0.25s ease;
  }
  .vp-cta::after {
    content: "→";
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .vr-promo:hover .vp-cta,
  .vr-promo:focus-visible .vp-cta {
    filter: brightness(1.08);
  }
  .vr-promo:hover .vp-cta::after,
  .vr-promo:focus-visible .vp-cta::after {
    transform: translateX(3px);
  }
  @keyframes vpIn {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .vr-promo {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .vp-img,
  .vp-cta::after {
    transition: none !important;
  }
}
