/* =========================================================
   首页分享底部抽屉 (Share Bottom Sheet)
   ========================================================= */

/* 遮罩层 */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.share-sheet {
    background: #FBF8F5; /* 米白底色 */
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 30px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    position: relative;
}

.share-overlay.active .share-sheet {
    transform: translateY(0);
}


/* 头部标题 */
.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;margin-top: 10px;
}

.share-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
}

.share-brand {
    color: #FE5353; /* 主色红 */
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.share-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* 海报图片盒子 */
.share-poster-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.share-tips {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
}

/* 快捷图标行 */
.share-icons-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.share-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    gap: 8px;
}

.share-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: transform 0.2s;
}

.share-icon-item:active .share-icon-circle {
    transform: scale(0.9);
}

/* 图标背景色 */
.bg-green { background: #07C160; } /* 微信绿 */
.bg-gradient { background: linear-gradient(135deg, #FF8A00, #FF2E63); } /* 朋友圈渐变 */
.bg-gray { background: #E5E5E5; color: #666; }
.bg-red-light { background: #FFE5E5; color: #FE5353; }

/* 底部大按钮 */
.share-bottom-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-save-large {
    width: 100%;
    height: 48px;
    background: #FE5353;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 83, 83, 0.2);
}

.btn-save-large:active {
    opacity: 0.9;
}

.btn-close-large {
    width: 100%;
    height: 48px;
    background: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #E5E5E5;
    border-radius: 24px;
    cursor: pointer;
}

.btn-close-large:active {
    background: #f5f5f5;
}
