﻿/* ===============================
   ShareBox 共用樣式
   sharebox.css
================================= */

/* 分享區 */
.share-wrapper{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin:20px 0;
    padding:12px 16px;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:12px;
}

/* 標題 */
.share-title{
    font-size:16px;
    font-weight:600;
    color:#333;
    margin-right:6px;
}

/* 分享 icon */
.share-icon{
    width:42px;
    height:42px;
    object-fit:contain;
    cursor:pointer;
    transition:all .2s ease;
}

/* Hover 效果 */
.share-icon:hover{
    transform:translateY(-2px) scale(1.05);
    opacity:.9;
}

/* 點擊效果 */
.share-icon:active{
    transform:scale(.95);
}

/* QRCode 區 */
.qrcode-box{
    margin-top:15px;
    padding:20px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    width:240px;
}

/* QRCode 文字 */
.qrcode-text{
    margin-top:12px;
    font-size:13px;
    color:#666;
    line-height:1.6;
}

/* 關閉按鈕 */
.qrcode-close-btn{
    margin-top:14px;
    padding:8px 18px;
    border:none;
    border-radius:20px;
    background:#333;
    color:#fff;
    font-size:14px;
    cursor:pointer;
    transition:all .2s ease;
}

/* Hover */
.qrcode-close-btn:hover{
    background:#555;
    transform:translateY(-1px);
}

/* Active */
.qrcode-close-btn:active{
    transform:translateY(0);
}

/* 網址欄 */
.url-input{
    width:100%;
    max-width:520px;
    margin-top:15px;
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:14px;
    color:#333;
    background:#fff;
    box-sizing:border-box;
}

/* 手機版 */
@media screen and (max-width:768px){

    .share-wrapper{
        justify-content:center;
        padding:12px;
    }

    .share-title{
        width:100%;
        text-align:center;
        margin-bottom:5px;
    }

    .share-icon{
        width:38px;
        height:38px;
    }

    .qrcode-box{
        width:100%;
        max-width:260px;
        margin:auto;
        margin-top:15px;
    }

    .url-input{
        max-width:100%;
    }
}