/* ============================================================
   网蜂窝 · 全站共用组件样式（被 wx-contact.js 驱动的 DOM 使用）
   ------------------------------------------------------------
   为什么单独成文件：
     wx-contact.js 会**自己注入 DOM**（悬浮按钮 / 弹层 / 移动吸底条），
     但它的样式原先只写在 styles.css 里。recruit.html 是自带 <style>
     的单页、并不引入 styles.css —— 结果脚本把没有样式的裸 DOM 注了进去，
     在页面底部露出一块白色二维码，严重破版。
   —— 因此把组件样式独立出来，凡引入 wx-contact.js 的页面都必须同时引入本文件。
   引入方式：<link rel="stylesheet" href="wx-contact.css">
   ============================================================ */

/* ============================================================
   微信直聊悬浮入口 + 移动端吸底 CTA
   —— 目的：把「心动 → 行动」的摩擦降到最低。
   桌面端：右下角悬浮按钮，点击弹出微信二维码卡片。
   移动端：底部固定行动条（微信聊 + 下载），长页面滚动时始终可见。
   ============================================================ */

/* ---- 桌面端悬浮按钮 ---- */
.wx-fab {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px 13px 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #07C160 0%, #05A050 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(7, 193, 96, .38);
    transition: transform .25s ease, box-shadow .25s ease;
}
.wx-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(7, 193, 96, .48);
}
.wx-fab i { font-size: 19px; }
.wx-fab .wx-fab-txt { white-space: nowrap; }
.wx-fab .wx-dot {
    position: absolute;
    top: -2px; right: -2px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #FF3B30;
    border: 2px solid #fff;
}
.wx-fab .wx-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #FF3B30;
    animation: wxPulse 1.9s ease-out infinite;
}
@keyframes wxPulse {
    0%   { transform: scale(1);   opacity: .85; }
    100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wx-fab .wx-dot::after { animation: none; }
}

/* ---- 弹层 ---- */
.wx-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(6, 12, 22, .72);
    backdrop-filter: blur(4px);
}
.wx-modal.on { display: flex; }
.wx-modal-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 18px;
    padding: 30px 26px 26px;
    text-align: center;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .4);
    animation: wxPop .26s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes wxPop {
    from { transform: scale(.9) translateY(14px); opacity: 0; }
    to   { transform: scale(1) translateY(0);     opacity: 1; }
}
.wx-modal-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.wx-modal-card .wx-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 18px;
}
.wx-qr {
    width: 190px;
    height: 190px;
    margin: 0 auto 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wx-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-qr .wx-qr-ph {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.7;
    padding: 0 18px;
}
.wx-id {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .4px;
    margin-bottom: 8px;
}
.wx-id small { display: block; font-size: 11.5px; font-weight: 500; color: #94a3b8; margin-bottom: 3px; letter-spacing: 0; }
.wx-copy {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 11px;
    background: #07C160;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}
.wx-copy:hover { background: #05A050; }
.wx-copy.done { background: #0f172a; }
.wx-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.65;
}
.wx-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.wx-close:hover { background: #e2e8f0; }

/* ---- 移动端吸底行动条 ---- */
.m-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 890;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    gap: 9px;
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.m-bar button, .m-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    border: none;
    border-radius: 11px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.m-bar .m-wx { background: #07C160; color: #fff; }
.m-bar .m-go { background: var(--gradient-1); color: #3B2A1A; }

@media (max-width: 760px) {
    /* 移动端隐藏悬浮按钮，改用吸底条 */
    .wx-fab { display: none; }
    .m-bar { display: flex; }
    /* 给页面底部留出吸底条的高度，避免遮住页脚内容 */
    body { padding-bottom: 74px; }
}
