/* ========== 分享插件样式 ========== */

/* 蒙层 */
.float-share__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.float-share__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 面板 */
.float-share__panel {
    background: var(--color-bg-white, #fff);
    border-radius: 12px;
    width: 520px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 24px;
    position: relative;
}

/* 头部 */
.float-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.float-share__title {
    font-size: var(--font-size-xl, 20px);
    font-weight: 600;
    color: var(--text-primary, #222);
    margin: 0;
}

.float-share__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.float-share__close:hover {
    background: #e0e0e0;
}

.float-share__close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary, #666);
    stroke-width: 2;
}

/* 网格 */
.float-share__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 单个分享项 */
.float-share__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    border: none;
    background: transparent;
}

.float-share__item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* 图标容器 */
.float-share__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.float-share__item:hover .float-share__icon {
    transform: scale(1.1);
}

.float-share__icon svg {
    width: 24px;
    height: 24px;
}
    /* 二维码区域 */
.float-share__qrcode {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
}

.float-share__qrcode-inner img {
    display: block;
    margin: 0 auto 8px;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.float-share__qrcode-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.float-share__qrcode-hide {
    background: none;
    border: none;
    color: var(--color-link, #1565c0);
    cursor: pointer;
    font-size: 12px;
}
/* 文字 */
.float-share__label {
    font-size: var(--font-size-sm, 12px);
    color: var(--text-secondary, #666);
    text-align: center;
    line-height: 1.3;
}

/* 分隔标题 */
.float-share__divider {
    grid-column: 1 / -1;
    font-size: var(--font-size-sm, 12px);
    color: #999;
    padding: 8px 0 4px;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 复制链接项 */
.float-share__copy {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.float-share__copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #ddd;
    background: #fafafa;
    cursor: pointer;
    font-size: var(--font-size-base, 14px);
    color: var(--text-secondary, #666);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.float-share__copy-btn:hover {
    background: #f0f0f0;
    border-color: var(--color-brand-gold, #d4af37);
    color: var(--color-brand-gold, #d4af37);
}

.float-share__copy-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .float-share__panel {
        width: 96vw;
        padding: 16px;
        border-radius: 12px 12px 0 0;
        max-height: 70vh;
    }
    
    .float-share__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .float-share__icon {
        width: 38px;
        height: 38px;
    }
    
    .float-share__icon svg {
        width: 20px;
        height: 20px;
    }
}