/* ============================================================
 * 房飞布 · 分享弹框（底部抽屉）  share-sheet.css
 *
 * 为什么独立成文件：
 *   这些样式原先内联在 Widget/Nav/foot3.html 里。CSS 的 @keyframes 会写成
 *   `from{...} to{...}`，而 ThinkPHP 模板引擎把 `{内容}` 当作模板标签解析，
 *   直接编译成 <?php echo ...?>，导致「syntax error, unexpected ':'」整页 500。
 *   样式放进 .css 文件由浏览器直接加载，不经过模板引擎，彻底避免这类冲突。
 *
 * 作用范围：.share_user 悬浮按钮 + .share_mask 遮罩 + .share_box 面板
 * 使用页面：引用 Widget/Nav/foot3 的 6 个页面
 *   Index/index、Index/service、Index/searchResult、Index/viewWT、
 *   Index/wtDetail、Gservice/detail
 * ============================================================ */

/* ---------- 1. 右侧悬浮分享按钮 ---------- */
.share_user {
    position: fixed;
    top: 60%;
    right: 10px;
    width: 50px;
    height: 50px;
    line-height: 68px;
    font-size: 11px;
    background-color: #ff6e00;
    background-image: url("../images/share_new.png");
    background-repeat: no-repeat;
    background-position: center 10px;
    background-size: 16px 16px;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(255, 110, 0, .28);
    z-index: 900;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- 2. 遮罩 ---------- */
.share_mask {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 100000;
}
.share_mask.show {
    display: block;
    -webkit-animation: shareMaskIn .22s ease-out;
    animation: shareMaskIn .22s ease-out;
}

/* ---------- 3. 底部面板 ---------- */
.share_box {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100001;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, .14);
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
}
.share_box.show {
    display: block;
    -webkit-animation: shareUp .28s cubic-bezier(.22, .61, .36, 1);
    animation: shareUp .28s cubic-bezier(.22, .61, .36, 1);
}

/* 顶部抓手，暗示这是可下滑面板 */
.share_box::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: #e6e8ec;
}

/* ---------- 4. 标题 ---------- */
.share_title {
    position: relative;
    padding: 12px 20px 0;
    height: auto;
    line-height: 26px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2733;
    text-align: center;
    letter-spacing: .2px;
}
.share_title::after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff9a3c, #ff6e00);
}

/* ---------- 5. 说明文案 ---------- */
.share_detail {
    padding: 10px 26px 0;
    color: #8a9099;
    text-align: center;
    line-height: 20px;
    font-size: 12.5px;
}

/* ---------- 6. 四个渠道 ---------- */
.share_div {
    margin-top: 18px;
    padding: 0 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-around;
    box-sizing: border-box;
}
.share_list {
    width: 25%;
    text-align: center;
    padding: 4px 0 2px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
}
.share_list:active {
    background: #f7f8fa;
}
.share_list div.img {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    border-radius: 16px;
}
.share_list div.img img {
    width: 30px;
    height: 30px;
    margin: 0;
    display: block;
}
.share_list div.txt {
    height: auto;
    line-height: 18px;
    margin-top: 8px;
    font-size: 12px;
    color: #4a5058;
}

/* ---------- 7. 取消按钮 ---------- */
.share_cancel {
    margin: 18px 16px 14px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 15px;
    color: #4a5058;
    background: #f4f5f7;
    border-radius: 23px;
    -webkit-tap-highlight-color: transparent;
}
.share_cancel:active {
    background: #e9ebef;
}

/* ---------- 8. 进场动画 ---------- */
@-webkit-keyframes shareMaskIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes shareMaskIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-webkit-keyframes shareUp {
    from { -webkit-transform: translateY(100%); }
    to { -webkit-transform: translateY(0); }
}
@keyframes shareUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
