/**
 * 临沂极优网络科技有限公司
 * 网址：www.jiyousoft.cn
 * 项目：极优班级
 * 项目网址：www.jiyoubanji.com
 * 文件路径：/includes/share.css
 * 文件名称：share.css
 * 创建时间：2026-06-12
 * 更新时间：2026-06-12
 * 
 * 通用分享功能样式
 */

/* ========== 分享功能区 ========== */
.share-section {
    background: #f8fafc;
    border-radius: 60px;
    padding: 16px 24px;
    border: 1px solid #e2e8f0;
}

.share-section-bottom {
    margin: 60px 0 40px;
}

.share-section-top {
    margin: 20px 0 40px;
}

.share-section-inline {
    margin: 20px 0;
}

.share-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.share-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #334155;
    font-weight: 500;
}

.share-icon {
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.wechat:hover {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}

.share-btn.qq:hover {
    background: #12b7f5;
    border-color: #12b7f5;
    color: #fff;
}

.share-btn.weibo:hover {
    background: #ff8200;
    border-color: #ff8200;
    color: #fff;
}

.share-btn.copy:hover {
    background: #4361ee;
    border-color: #4361ee;
    color: #fff;
}

.share-icon-img {
    font-size: 1.1rem;
}

/* ========== 浮动分享按钮 ========== */
.share-floating {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
}

.share-floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
}

.share-floating-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.share-floating.active .share-floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.2s ease;
    text-align: left;
}

.share-floating-item:hover {
    background: #f1f5f9;
}

.share-floating-item.wechat:hover {
    color: #07c160;
}

.share-floating-item.qq:hover {
    color: #12b7f5;
}

.share-floating-item.weibo:hover {
    color: #ff8200;
}

.share-floating-item.copy:hover {
    color: #4361ee;
}

/* ========== 复制成功提示 ========== */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 10000;
    animation: shareFadeInOut 2s ease;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes shareFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .share-section {
        border-radius: 32px;
        padding: 16px 20px;
    }
    
    .share-container {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .share-toast {
        white-space: normal;
        max-width: 80%;
        text-align: center;
        line-height: 1.4;
    }
}