/* ==========================================================================
   新版用户主页头部样式（Twitter/微博风格）
   ========================================================================== */

/* 头部容器 - 重置旧版样式 */
.uap-user-center .uap-profile-header {
    position: relative;
    display: block;
    min-height: auto;
    padding: 0;
    align-items: initial;
    background: var(--uap-surface);
    border-radius: var(--uap-radius-md);
    overflow: hidden;
    border: 1px solid var(--uap-border);
    margin-bottom: 24px;
}

/* 封面：品牌主色渐变是页面上唯一的大面积品牌色；上传的封面图以内联 background-image 覆盖 */
.uap-user-center .uap-profile-cover {
    position: relative;
    height: 150px;
    background: linear-gradient(115deg, var(--uap-cover-start) 0%, var(--uap-primary) 52%, var(--uap-cover-end) 100%);
    background-size: cover;
    background-position: center;
}

/* Static light planes add depth only to the default cover, never uploaded artwork. */
.uap-user-center .uap-profile-cover:not([style*="background-image"])::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 54%, rgba(255, 255, 255, 0.08) 54%, rgba(255, 255, 255, 0.02) 73%, transparent 73%);
    pointer-events: none;
}

.uap-user-center .uap-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* 更换封面按钮 */
.uap-user-center .uap-cover-edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--uap-transition-fast);
    padding: 0;
    z-index: 10;
    box-shadow: var(--uap-shadow-sm);
}

.uap-user-center .uap-profile-cover:hover .uap-cover-edit-btn,
.uap-user-center .uap-profile-cover:focus-within .uap-cover-edit-btn {
    opacity: 1;
}

.uap-user-center .uap-cover-edit-btn:hover {
    background: rgba(15, 23, 42, 0.75);
}

/* 用户信息区域 - 重置旧版样式 */
.uap-user-center .uap-profile-info {
    position: relative;
    flex: initial;
    min-width: initial;
    padding: 0 28px 24px;
}

/* 头像容器（溢出到封面区）- 重置旧版样式 */
.uap-user-center .uap-profile-avatar-wrapper {
    position: absolute;
    top: -44px;
    left: 28px;
}

.uap-user-center .uap-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--uap-surface);
    border: 4px solid var(--uap-surface);
    box-shadow: 0 0 0 1px var(--uap-border-subtle);
    flex-shrink: initial;
}

.uap-user-center .uap-profile-avatar img,
.uap-user-center .uap-profile-avatar .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    box-shadow: none;
}

/* 更换头像按钮 */
.uap-user-center .uap-avatar-edit-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: var(--uap-action-bg, #4f46e5);
    border: 2px solid var(--uap-surface);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--uap-transition-fast);
    padding: 0;
}

.uap-user-center .uap-profile-avatar-wrapper:hover .uap-avatar-edit-btn,
.uap-user-center .uap-profile-avatar-wrapper:focus-within .uap-avatar-edit-btn {
    opacity: 1;
}

.uap-user-center .uap-avatar-edit-btn:hover {
    background: var(--uap-action-hover, #4338ca);
}

/* 操作按钮区（右侧） */
.uap-user-center .uap-profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 14px;
    min-height: 48px;
    box-sizing: border-box;
}

/* 操作按钮通用样式 */
.uap-user-center .uap-profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--uap-radius-sm);
    font-size: var(--uap-text-sm);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.uap-user-center .uap-profile-action-btn:active {
    transform: scale(0.98);
}

.uap-user-center .uap-profile-action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* 主要按钮（关注） */
.uap-user-center .uap-profile-action-btn.uap-btn-primary {
    background: var(--uap-action-bg, #0e7a6d);
    color: #fff !important;
    border-color: transparent;
    box-shadow: none;
}

.uap-user-center .uap-profile-action-btn.uap-btn-primary:hover {
    background: var(--uap-action-hover, #0b6359) !important;
    box-shadow: none;
}

.uap-user-center .uap-profile-action-btn.uap-btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(var(--uap-primary-rgb), 0.25) !important;
}

/* 已关注状态。主按钮使用 color:!important 抗主题覆盖，这里必须同等覆盖以免白字浅底。 */
.uap-user-center .uap-profile-action-btn.uap-follow-btn.following,
.uap-user-center .uap-profile-action-btn.uap-follow-btn.mutual {
    background: var(--uap-surface) !important;
    color: var(--uap-text, #1c1917) !important;
    border-color: var(--uap-border, #e8e5df);
    box-shadow: none;
}

/* 悬停提示“取消关注”的方向：只把文字和边框变成砖红，不铺大面积红底 */
.uap-user-center .uap-profile-action-btn.uap-follow-btn.following:hover,
.uap-user-center .uap-profile-action-btn.uap-follow-btn.mutual:hover {
    background: var(--uap-surface-hover) !important;
    color: var(--uap-danger, #b3402f) !important;
    border-color: var(--uap-border-hover) !important;
}

/* 次要按钮（私信、编辑资料） */
.uap-user-center .uap-profile-action-btn.uap-btn-outline {
    background: var(--uap-surface);
    color: var(--uap-text, #374151);
    border: 1px solid var(--uap-border);
    box-shadow: none;
}

.uap-user-center .uap-profile-action-btn.uap-btn-outline:hover {
    background: var(--uap-primary-bg) !important;
    border-color: var(--uap-border-hover) !important;
    color: var(--uap-action-bg, #0e7a6d) !important;
    box-shadow: none;
}

.uap-user-center .uap-profile-action-btn.uap-btn-outline:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(var(--uap-primary-rgb), 0.15) !important;
}

/* 用户详情区。桌面端加大与头像下沿的间距，避免名称贴住头像。 */
.uap-user-center .uap-profile-details {
    padding-top: 44px;
    padding-left: 0;
    min-height: 0;
}

/* 用户名行 */
.uap-user-center .uap-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* 用户名 - 重置旧版样式 */
.uap-user-center .uap-profile-name {
    margin: 0;
    font-size: var(--uap-text-2xl);
    font-weight: 700;
    color: var(--uap-text, #0f172a);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: none;
    display: inline;
    flex-wrap: initial;
    gap: initial;
    justify-content: initial;
}

/* 头部展示徽章。预设图标是 128×128 彩色插画（class=icon），需压住固有尺寸并与用户名对齐。 */
.uap-user-center .uap-profile-badges {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
}

.uap-user-center .uap-profile-badge {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.uap-user-center .uap-profile-badge-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: var(--uap-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
}

.uap-user-center .uap-profile-badge-icon svg,
.uap-user-center .uap-profile-badge-icon svg.icon {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    flex: none;
    vertical-align: middle;
    overflow: visible;
    color: #fff;
}

.uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon {
    background: transparent !important;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    box-shadow: none;
}

.uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon svg,
.uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon svg.icon {
    width: 22px;
    height: 22px;
    color: var(--badge-color);
    filter: none;
}

/* 个人简介 - 重置旧版样式 */
.uap-user-center .uap-profile-bio {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--uap-text-muted, #475569);
    max-width: 600px;
}

/* 中文不用伪斜体；占位提示只有本人能看到 */
.uap-user-center .uap-profile-bio .uap-bio-placeholder {
    color: var(--uap-text-light, #78716a);
    font-style: normal;
}

/* 统计数据 - 重置旧版样式 */
.uap-user-center .uap-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    background: transparent;
    border-bottom: none;
    justify-content: flex-start;
}

.uap-user-center .uap-profile-stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
    color: var(--uap-text, #0f172a);
    transition: var(--uap-transition-fast);
    padding: 4px 10px;
    margin: -4px -10px;
    border-radius: var(--uap-radius-sm);
    min-width: auto;
}

.uap-user-center button.uap-profile-stat {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    font: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    width: auto;
}

.uap-user-center a.uap-profile-stat,
.uap-user-center button.uap-profile-stat {
    cursor: pointer;
}

.uap-user-center a.uap-profile-stat:hover,
.uap-user-center button.uap-profile-stat:hover {
    background: rgba(var(--uap-primary-rgb), 0.06);
    color: var(--uap-action-bg, #4f46e5);
}

.uap-user-center a.uap-profile-stat:focus-visible,
.uap-user-center button.uap-profile-stat:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--uap-primary-rgb), 0.15);
}

.uap-user-center .uap-profile-stat .uap-stat-value {
    font-size: var(--uap-text-md);
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.01em;
    font-feature-settings: var(--uap-font-features);
}

.uap-user-center .uap-profile-stat .uap-stat-label {
    font-size: var(--uap-text-sm);
    font-weight: 500;
    color: var(--uap-text-light, #64748b);
}

.uap-user-center a.uap-profile-stat:hover .uap-stat-label,
.uap-user-center button.uap-profile-stat:hover .uap-stat-label {
    color: var(--uap-action-bg, #4f46e5);
}

/* ==================== 新版头部响应式 ==================== */

@media (max-width: 768px) {
    .uap-user-center .uap-profile-cover {
        height: 110px;
    }

    /* 移动端封面编辑按钮始终显示 */
    .uap-user-center .uap-cover-edit-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }

    .uap-user-center .uap-profile-info {
        display: flex;
        flex-direction: column;
        padding: 0 16px 20px;
    }

    .uap-user-center .uap-profile-avatar-wrapper {
        position: relative;
        top: -36px;
        left: 0;
        margin-bottom: -28px;
        cursor: pointer;
        order: 1;
    }

    /* 移动端隐藏编辑按钮，直接点击头像修改 */
    .uap-user-center .uap-avatar-edit-btn {
        display: none !important;
    }

    .uap-user-center .uap-profile-avatar {
        width: 72px;
        height: 72px;
        border-width: 3px;
    }

    /* 手机端改为文档流：身份信息在上，操作按钮在下，保留图标+文本。 */
    .uap-user-center .uap-profile-actions {
        position: static;
        order: 3;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 14px;
        min-height: 0;
        gap: 8px;
    }

    .uap-user-center .uap-profile-action-btn {
        width: auto;
        height: 36px;
        min-height: 36px;
        padding: 0 14px;
        font-size: var(--uap-text-sm);
    }

    .uap-user-center .uap-profile-action-btn span {
        display: inline;
    }

    .uap-user-center .uap-profile-action-btn .uap-btn-badge {
        display: inline-flex;
    }

    .uap-user-center .uap-profile-action-btn svg {
        margin: 0;
    }

    .uap-user-center .uap-profile-details {
        order: 2;
        padding-left: 0;
        padding-top: 8px;
    }

    .uap-user-center .uap-profile-name {
        font-size: var(--uap-text-lg);
    }

    .uap-user-center .uap-profile-badges {
        gap: 4px;
    }

    .uap-user-center .uap-profile-badge-icon,
    .uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .uap-user-center .uap-profile-badge-icon svg,
    .uap-user-center .uap-profile-badge-icon svg.icon {
        width: 18px;
        height: 18px;
    }

    .uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon svg,
    .uap-user-center .uap-profile-badges.icon-style-icon-only .uap-profile-badge-icon svg.icon {
        width: 20px;
        height: 20px;
    }

    .uap-user-center .uap-profile-bio {
        font-size: var(--uap-text-sm);
        margin-bottom: 12px;
    }

    .uap-user-center .uap-profile-stats {
        gap: 16px;
    }

    .uap-user-center .uap-profile-stat .uap-stat-value {
        font-size: var(--uap-text-md);
    }

    .uap-user-center .uap-profile-stat .uap-stat-label {
        font-size: var(--uap-text-xs);
    }
}

@media (max-width: 480px) {
    .uap-user-center .uap-profile-cover {
        height: 96px;
    }

    .uap-user-center .uap-profile-avatar {
        width: 64px;
        height: 64px;
    }

    .uap-user-center .uap-profile-avatar-wrapper {
        top: -32px;
        margin-bottom: -24px;
    }

    .uap-user-center .uap-profile-actions {
        gap: 8px;
    }

    .uap-user-center .uap-profile-action-btn {
        width: auto;
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
    }

    .uap-user-center .uap-profile-stats {
        gap: 12px;
    }
}

/* ==========================================================================
   动态页面（Overview）样式
   ========================================================================== */

/* 动态页面统计数据 */
.uap-overview .uap-profile-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    padding: 24px;
    background: var(--uap-surface);
    border-bottom: 1px solid var(--uap-border-light);
    box-sizing: border-box;
    width: 100%;
}

.uap-overview .uap-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: none;
}

.uap-overview .uap-profile-stat-value {
    font-size: var(--uap-text-2xl);
    font-weight: 700;
    color: var(--uap-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-feature-settings: var(--uap-font-features);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.uap-overview .uap-profile-stat-label {
    font-size: var(--uap-text-xs);
    font-weight: 500;
    color: var(--uap-text-light);
    margin-top: 6px;
    overflow-wrap: anywhere;
}

/* 内容区块 */
.uap-overview .uap-profile-section {
    padding: 26px 24px;
    border-bottom: 1px solid var(--uap-border-light);
}

.uap-overview .uap-profile-section:last-child {
    border-bottom: none;
}

.uap-overview .uap-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.uap-overview .uap-profile-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--uap-text-md);
    font-weight: 700;
    color: var(--uap-text);
    letter-spacing: -0.01em;
}

.uap-overview .uap-profile-section-title svg {
    color: var(--uap-text-light);
}

.uap-overview .uap-profile-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--uap-bg);
    color: var(--uap-text-light);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--uap-radius-full);
    box-shadow: none;
}

/* 徽章墙 */
.uap-overview .uap-profile-badges-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    width: 100%;
    margin: 0;
    float: none;
    box-sizing: border-box;
}

.uap-overview .uap-profile-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 4px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
    cursor: default;
    box-shadow: none;
}

.uap-overview .uap-profile-badge-item .uap-profile-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--uap-radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.uap-overview .uap-profile-badge-item .uap-profile-badge-icon svg {
    width: 18px;
    height: 18px;
    max-width: 100%;
    display: block;
    flex: none;
    color: #fff;
}

.uap-overview .uap-profile-badge-name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: var(--uap-text-sm);
    font-weight: 600;
    color: var(--uap-text);
}

/* 徽章墙仅图标样式 */
.uap-overview .uap-profile-badges-wall.icon-style-icon-only .uap-profile-badge-item .uap-profile-badge-icon {
    background: transparent !important;
    box-shadow: none;
}

.uap-overview .uap-profile-badges-wall.icon-style-icon-only .uap-profile-badge-item .uap-profile-badge-icon svg {
    width: 28px;
    height: 28px;
    color: var(--badge-color, var(--uap-primary));
}

/* 最近文章与最近评论：与最近想法一样用分隔线列表，不再卡片套卡片 */
.uap-overview .uap-profile-posts,
.uap-overview .uap-profile-comments {
    display: flex;
    flex-direction: column;
}

.uap-overview .uap-profile-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--uap-border-light);
    text-decoration: none;
}

.uap-overview .uap-profile-post-item:hover {
    text-decoration: none;
}

.uap-overview .uap-profile-post-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: var(--uap-radius-sm);
    overflow: hidden;
}

.uap-overview .uap-profile-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uap-overview .uap-profile-post-info {
    flex: 1;
    min-width: 0;
}

.uap-overview .uap-profile-post-title {
    margin: 0 0 4px;
    font-size: var(--uap-text-base);
    font-weight: 600;
    color: var(--uap-text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uap-overview .uap-profile-post-item:hover .uap-profile-post-title {
    color: var(--uap-action-bg, #0e7a6d);
}

.uap-overview .uap-profile-post-date {
    font-size: var(--uap-text-xs);
    color: var(--uap-text-light);
}

.uap-overview .uap-profile-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--uap-border-light);
}

.uap-overview :is(.uap-profile-post-item, .uap-profile-comment-item):first-child {
    padding-top: 0;
}

.uap-overview :is(.uap-profile-post-item, .uap-profile-comment-item):last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.uap-overview .uap-profile-comment-content {
    font-size: var(--uap-text-base);
    color: var(--uap-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.uap-overview .uap-profile-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uap-overview .uap-profile-comment-post {
    font-size: var(--uap-text-sm);
    color: var(--uap-action-bg, #0e7a6d);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.uap-overview .uap-profile-comment-post:hover {
    text-decoration: underline;
}

.uap-overview .uap-profile-comment-date {
    font-size: var(--uap-text-xs);
    color: var(--uap-text-light);
    flex-shrink: 0;
}

/* 最近想法：概览已在卡片内，条目只用分隔线，与信息流一致 */
.uap-overview-thoughts {
    display: flex;
    flex-direction: column;
}

.uap-overview .uap-overview-thoughts .uap-thought-card {
    margin: 0;
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--uap-border-light);
    border-radius: 0;
    box-shadow: none;
}

.uap-overview .uap-overview-thoughts .uap-thought-card:first-child {
    padding-top: 0;
}

.uap-overview .uap-overview-thoughts .uap-thought-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.uap-overview .uap-overview-thoughts .uap-thought-card:hover {
    transform: none;
    box-shadow: none;
}

/* 暂无动态 */
.uap-overview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 44px;
    text-align: center;
}

.uap-overview-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: var(--uap-radius-full);
    background: var(--uap-primary-bg);
    color: var(--uap-primary);
}

.uap-overview-empty-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--uap-text);
}

.uap-overview-empty-text {
    max-width: 360px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--uap-text-muted);
}

.uap-overview-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 动态页面响应式 */
@media (max-width: 640px) {
    .uap-overview .uap-profile-stats {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 16px;
        gap: 8px;
    }

    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:nth-child(4):last-child),
    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }

    .uap-overview-empty {
        padding: 32px 16px 36px;
    }

    .uap-overview .uap-profile-stat {
        padding: 6px;
        min-width: 0;
    }

    .uap-overview .uap-profile-stat-value {
        font-size: var(--uap-text-lg);
    }

    .uap-overview .uap-profile-stat-label {
        font-size: var(--uap-text-xs);
    }
    .uap-overview .uap-profile-section {
        padding: 16px;
    }

    .uap-overview .uap-profile-badges-wall {
        gap: 8px 20px;
    }

    .uap-overview .uap-profile-badge-item {
        min-height: 44px;
        padding: 4px 0;
    }

    .uap-overview .uap-profile-badge-item .uap-profile-badge-icon {
        width: 28px;
        height: 28px;
    }

    .uap-overview .uap-profile-badge-name {
        font-size: var(--uap-text-xs);
    }

    .uap-overview .uap-profile-post-thumb {
        width: 56px;
        height: 42px;
    }
}

/* Respond to the actual content width, including layouts with a sidebar. */
.uap-overview {
    container-type: inline-size;
}

@container (max-width: 540px) {
    .uap-overview .uap-profile-stats {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }
    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:nth-child(4):last-child),
    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .uap-overview .uap-profile-stats:has(> .uap-profile-stat:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   按钮加载状态
   ========================================================================== */

/* 新版头部关注按钮加载状态 */
.uap-user-center .uap-profile-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.uap-user-center .uap-profile-action-btn.loading svg {
    animation: uap-spin 0.8s linear infinite;
}

