/* ===== 分享页面样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.share-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* 加载状态 */
.share-loading {
    text-align: center;
    padding: 120px 20px;
    color: #94a3b8;
}
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 内容头 */
.share-header {
    text-align: center;
    padding: 32px 0 24px;
}
.share-type-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.share-type-badge.report { background: #ccfbf1; color: #0f766e; }
.share-type-badge.entry { background: #e0e7ff; color: #4338ca; }
.share-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

/* 信息卡片 */
.share-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.share-card-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.share-card-value {
    font-size: 15px;
    color: #334155;
    word-break: break-word;
}

/* 信息网格 */
.share-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* 摘要 */
.share-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

/* 标签 */
.share-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.share-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
}

/* 底部操作栏 */
.share-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
    z-index: 100;
}

.share-btn-primary {
    flex: 2;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #fff;
    transition: opacity 0.2s;
}
.share-btn-primary:active { opacity: 0.85; }

.share-btn-secondary {
    flex: 1;
    padding: 14px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #475569;
    transition: background 0.2s;
}
.share-btn-secondary:active { background: #f1f5f9; }

/* 海报弹窗 */
.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.poster-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.poster-dialog {
    position: relative;
    width: 90vw;
    max-width: 420px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
}
.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 600;
}
.poster-close {
    border: none;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.poster-preview {
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}
.poster-preview img, .poster-preview canvas {
    max-width: 100%;
    height: auto;
    display: block;
}
.poster-tip {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 12px;
}

/* Toast */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30,41,59,0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 响应式 */
@media (max-width: 480px) {
    .share-title { font-size: 20px; }
    .share-card { padding: 20px; }
}

/* ===== 分享落地页底部（行业洞察专用） ===== */
.share-footer {
    text-align: center;
    padding: 20px 0 40px;
    margin-top: 16px;
}
.share-footer-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #34d399);
    margin: 0 auto 16px;
    border-radius: 2px;
}
.share-footer-brand {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.share-footer-link {
    display: inline-block;
    padding: 10px 24px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #0d9488;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.share-footer-link:hover { background: #dcfce7; }
.share-footer-link:active { background: #bbf7d0; }
