/* ============================================
   分享海报 - 样式
   ============================================ */

/* 顶部/横幅按钮 */
.dt-share-btn,
.hero-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(79, 195, 247, .45);
    background: linear-gradient(135deg, rgba(79, 195, 247, .18), rgba(79, 195, 247, .06));
    color: #4FC3F7;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    font-family: inherit;
}
.dt-share-btn:hover,
.hero-share-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, .3), rgba(79, 195, 247, .12));
    border-color: #4FC3F7;
    transform: translateY(-1px);
}
.hero-share-btn {
    margin-top: 18px;
    font-size: 15px;
    padding: 11px 26px;
    background: linear-gradient(135deg, rgba(79, 195, 247, .22), rgba(231, 76, 60, .12));
    border-color: rgba(79, 195, 247, .55);
    box-shadow: 0 6px 20px rgba(79, 195, 247, .18);
}

/* 遮罩 */
.sp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}
.sp-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* 弹窗 */
.sp-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    background: #14161F;
    border: 1px solid #2E3148;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    transform: translateY(12px) scale(.98);
    transition: transform .22s;
}
.sp-overlay.show .sp-dialog {
    transform: none;
}

.sp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #262940;
    flex-shrink: 0;
}
.sp-head h3 {
    font-size: 15px;
    font-weight: 600;
    color: #E8E9EF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-head h3::before {
    content: '';
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(#4FC3F7, #E74C3C);
}
.sp-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #1B1E2E;
    color: #8A8FA6;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: .15s;
}
.sp-close:hover {
    background: #262940;
    color: #E8E9EF;
}

/* 内容 */
.sp-body {
    padding: 14px 16px 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-body img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 56vh;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
}

/* 加载 */
.sp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #8A8FA6;
    font-size: 13px;
    padding: 60px 0;
}
.sp-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #262940;
    border-top-color: #4FC3F7;
    animation: sp-spin .8s linear infinite;
}
@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* 底部 */
.sp-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid #262940;
    flex-shrink: 0;
}
.sp-hint {
    font-size: 12px;
    color: #6E7490;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}
.sp-hint strong {
    color: #4FC3F7;
    font-weight: 600;
}
.sp-actions {
    display: flex;
    gap: 10px;
}
.sp-btn {
    flex: 1;
    padding: 11px 10px;
    border-radius: 10px;
    border: 1px solid #2E3148;
    background: #1B1E2E;
    color: #C9CDDD;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .18s;
    font-family: inherit;
}
.sp-btn:hover {
    background: #232739;
    color: #E8E9EF;
}
.sp-btn.primary {
    background: linear-gradient(135deg, #4FC3F7, #2E9BD6);
    border-color: transparent;
    color: #06121C;
}
.sp-btn.primary:hover {
    filter: brightness(1.08);
}

/* 详情页顶栏适配 */
.detail-topbar {
    gap: 10px;
}
.detail-topbar .dt-title {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .sp-dialog {
        max-width: 100%;
        border-radius: 14px;
    }
    .hero-share-btn {
        font-size: 14px;
        padding: 10px 22px;
    }
}