/* ===========================================================
   微信内置浏览器引导弹窗
   ------------------------------------------------------------
   由 skin/js/weixin.js 检测到微信(MicroMessenger)时显示，
   提示用户点击右上角菜单 -> 在浏览器中打开。
   所有类名统一使用 wxm- 前缀，避免与站点现有样式冲突。
   =========================================================== */

/* 站点未设置全局 box-sizing，这里单独指定，避免 padding 撑破视口 */
.wxm-mask,
.wxm-mask * {
    box-sizing: border-box;
}

.wxm-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

/* 显示状态 */
.wxm-mask.show {
    display: flex;
    opacity: 1;
}

/* 弹窗卡片 */
.wxm-card {
    background: linear-gradient(135deg, #001a33 0%, #000d1a 100%);
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    border: 2px solid #2563eb;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.wxm-mask.show .wxm-card {
    transform: translateY(0);
}

/* 标题 */
.wxm-title {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 说明文字 */
.wxm-desc {
    color: #e5e7eb;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 步骤列表 */
.wxm-steps {
    text-align: left;
    color: #e5e7eb;
    margin-bottom: 25px;
    padding-left: 20px;
}

.wxm-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
    /* 站点全局重置了 li 的 list-style，这里还原项目符号 */
    list-style: disc outside;
}

.wxm-steps li:last-child {
    margin-bottom: 0;
}

.wxm-steps strong {
    color: #2563eb;
}

/* 警示文字 */
.wxm-warn {
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* 关闭按钮 */
.wxm-btn {
    background: linear-gradient(to right, #2563eb, #0ea5e9);
    color: #001a33;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.wxm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 96, 255, 0.4);
}

/* 指向右上角菜单的箭头 */
.wxm-arrow {
    position: absolute;
    top: 0;
    right: 130px;
    color: #2563eb;
    font-size: 6rem;
    line-height: 1;
    animation: wxm-arrow-bounce 1.5s infinite;
    pointer-events: none;
}

@keyframes wxm-arrow-bounce {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* 兼容不支持 background-clip:text 的浏览器 */
@supports not (background-clip: text) {
    .wxm-brand {
        color: #2563eb;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* 平板 / 手机 */
@media (max-width: 768px) {
    .wxm-arrow {
        right: 40px;
        font-size: 4rem;
    }
    .wxm-card {
        padding: 20px;
        width: 95%;
    }
    .wxm-title {
        font-size: 1.3rem;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .wxm-arrow {
        right: 30px;
        font-size: 3rem;
    }
}
