/* 卡片页额外样式（核心样式已内联在 card.html 中） */

/* === 图片加载失败回退 === */
.avatar-circle img[src=""],
.avatar-circle img:not([src]),
.bg-image[src=""],
.bg-image:not([src]) {
    display: none !important;
}

.avatar-circle img[src=""] + .avatar-placeholder,
.avatar-circle img:not([src]) + .avatar-placeholder {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

/* === 图片加载缓慢时的骨架屏 === */
.avatar-circle img:not([complete]) {
    opacity: 0;
}

/* === 移动端额外优化 === */
@media (max-width: 480px) {
    .card-container {
        padding: 8px !important;
    }
    .user-info-bar {
        gap: 8px !important;
    }
    .wechat-copy-btn {
        font-size: 0.85rem !important;
        padding: 10px 16px !important;
    }
}

/* === 卡片短链复制区 === */
.card-short-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #ccc;
    word-break: break-all;
}

.card-short-link .short-link-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 霓虹灯标题溢出处理 === */
.neon-title {
    word-break: break-word;
    hyphens: auto;
}