/* ============================================================
   workshop-profile.css — 个人主页 + 关注/粉丝列表 + 评论回复点赞
   ============================================================ */

/* ── 个人主页页面层 ── */
.profile-page {
    position:absolute; top:0; left:0; right:0; bottom:0;
    background-color:var(--bg-body); z-index:350;
    display:flex; flex-direction:column;
    transform:translateX(100%);
    transition:transform 0.32s var(--anim-curve);
    will-change:transform;
}
.profile-page.active { transform:translateX(0); }

.profile-page-header {
    height:calc(var(--header-h) + var(--safe-top));
    padding-top:var(--safe-top);
    display:flex; align-items:center;
    padding-left:6px; padding-right:14px;
    background:var(--bg-body);
    border-bottom:0.5px solid var(--border-light);
    flex-shrink:0; position:relative; z-index:2;
}
.profile-page-body { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.profile-loading { text-align:center; padding:50px 0; color:var(--text-time); font-size:13px; }
.profile-empty { text-align:center; padding:36px 0; color:var(--text-time); font-size:13px; }

/* 封面区 */
.profile-cover {
    position:relative;
    background-size:cover; background-position:center;
    padding:24px 18px 20px;
    min-height:150px;
    display:flex; flex-direction:column; justify-content:flex-end;
}
.profile-cover-mask {
    position:absolute; inset:0;
    background:linear-gradient(to bottom,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.62) 100%);
}
.profile-cover-content {
    position:relative; z-index:1;
    display:flex; align-items:center; gap:14px;
}
.profile-cover-avatar {
    width:64px; height:64px; border-radius:20px;
    background-size:cover; background-position:center;
    border:2.5px solid rgba(255,255,255,0.3);
    box-shadow:0 4px 16px rgba(0,0,0,0.3);
    flex-shrink:0; background-color:#3d3028;
}
.profile-cover-info { flex:1; min-width:0; }
.profile-cover-name {
    font-size:19px; font-weight:700; color:#fff;
    letter-spacing:-0.3px; text-shadow:0 1px 4px rgba(0,0,0,0.4);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.profile-support-v{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:5px;border-radius:50%;background:#1682cf;color:#fff;font-size:8px;font-weight:900;vertical-align:2px}.profile-support-cert{margin-top:3px;color:rgba(255,255,255,.88);font-size:9px;font-weight:650}
.profile-cover-uid {
    font-size:11px; color:rgba(255,255,255,0.7);
    font-family:monospace; margin-top:3px;
}

/* 关注按钮 */
.profile-follow-btn {
    flex-shrink:0;
    padding:8px 18px; border-radius:20px;
    border:none; cursor:pointer;
    font-size:13px; font-weight:600;
    background:var(--primary); color:#fff;
    transition:transform 0.15s,opacity 0.2s;
}
.profile-follow-btn:active { transform:scale(0.94); }
.profile-follow-btn:disabled { opacity:0.6; }
.profile-follow-btn.following {
    background:rgba(255,255,255,0.22);
    color:#fff;
    border:1px solid rgba(255,255,255,0.4);
}

/* 个性签名 */
.profile-sign {
    padding:14px 18px;
    font-size:13px; color:var(--text-sub);
    line-height:1.5;
    background:var(--bg-card);
    border-bottom:0.5px solid var(--border-light);
}

/* 关注/粉丝/发布 计数行 */
.profile-count-row {
    display:flex;
    background:var(--bg-card);
    border-bottom:0.5px solid var(--border-light);
}
.profile-count-item {
    flex:1; padding:14px 8px;
    display:flex; flex-direction:column; align-items:center; gap:4px;
    cursor:pointer; transition:background-color 0.15s;
    position:relative;
}
.profile-count-item:active { background:var(--active-bg); }
.profile-count-item+.profile-count-item::before {
    content:''; position:absolute; left:0; top:24%; bottom:24%;
    width:0.5px; background:var(--border-light);
}
.profile-count-num { font-size:19px; font-weight:700; color:var(--text-main); }
.profile-count-label { font-size:11px; color:var(--text-sub); }

/* 自己专属：我浏览的/点赞的/收藏的 */
.profile-self-row {
    display:flex; gap:8px;
    padding:12px 16px;
    background:var(--bg-card);
    border-bottom:0.5px solid var(--border-light);
    margin-top:8px;
}
.profile-self-btn {
    flex:1; padding:10px 4px; border-radius:12px;
    background:var(--bg-body);
    display:flex; flex-direction:column; align-items:center; gap:5px;
    cursor:pointer; transition:background 0.15s;
}
.profile-self-btn:active { background:var(--active-bg); }
.profile-self-btn svg {
    width:18px; height:18px;
    stroke:var(--primary); fill:none; stroke-width:2;
}
.profile-self-btn span { font-size:11px; color:var(--text-sub); }

/* 角色卡区 */
.profile-cards-section { margin-top:8px; background:var(--bg-card); padding-bottom:20px; }
.profile-cards-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 16px 8px;
}
.profile-cards-title { font-size:14px; font-weight:700; color:var(--text-main); }
.profile-sort-chips { display:flex; gap:6px; }
.profile-sort-chip {
    padding:4px 12px; border-radius:14px;
    background:var(--bg-body); border:1px solid var(--border-light);
    font-size:11px; color:var(--text-sub);
    cursor:pointer; transition:all 0.18s;
}
.profile-sort-chip.active {
    background:var(--primary); color:#fff; border-color:var(--primary);
    font-weight:600;
}
.profile-cards-list {
    padding:6px 12px 0;
    display:flex; flex-direction:column; gap:10px;
}

/* ── 关注/粉丝列表页 ── */
.followlist-page {
    position:absolute; top:0; left:0; right:0; bottom:0;
    background-color:var(--bg-body); z-index:360;
    display:flex; flex-direction:column;
    transform:translateX(100%);
    transition:transform 0.32s var(--anim-curve);
}
.followlist-page.active { transform:translateX(0); }
.followlist-container { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.followlist-item {
    display:flex; align-items:center; gap:12px;
    padding:12px 16px;
    border-bottom:0.5px solid var(--border-light);
    cursor:pointer; transition:background-color 0.15s;
}
.followlist-item:active { background:var(--active-bg); }
.followlist-avatar {
    width:46px; height:46px; border-radius:50%;
    background-size:cover; background-position:center;
    background-color:var(--active-bg); flex-shrink:0;
}
.followlist-info { flex:1; min-width:0; }
.followlist-name {
    font-size:14px; font-weight:600; color:var(--text-main);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.followlist-sign {
    font-size:12px; color:var(--text-sub); margin-top:3px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ── 评论区：回复 + 点赞 ── */
.comment-actions-row {
    display:flex; align-items:center; gap:14px;
    margin-top:5px;
}
.comment-action-btn {
    display:flex; align-items:center; gap:3px;
    font-size:11px; color:var(--text-time);
    cursor:pointer; transition:color 0.15s;
    -webkit-tap-highlight-color:transparent;
}
.comment-action-btn:active { opacity:0.6; }
.comment-action-btn svg {
    width:13px; height:13px;
    stroke:var(--text-time); fill:none; stroke-width:2;
}
.comment-like-btn.liked { color:var(--like-color); }
.comment-like-btn.liked svg { stroke:var(--like-color); fill:var(--like-color); }
.comment-like-count { min-width:8px; }

/* 回复列表 */
.comment-replies {
    margin-top:8px;
    padding:6px 0 2px 10px;
    border-left:2px solid var(--border-light);
}
.comment-reply-item {
    padding:8px 0 !important;
    border-bottom:none !important;
}
.comment-reply-item .comment-avatar {
    width:26px !important; height:26px !important;
}
.comment-reply-item:not(:last-child) {
    border-bottom:0.5px solid var(--border-light) !important;
}

/* 回复提示条 */
.reply-tip {
    display:none; align-items:center; justify-content:space-between;
    padding:7px 14px;
    background:var(--primary-light);
    font-size:12px; color:var(--primary);
}
.reply-tip span {
    cursor:pointer; font-weight:600;
    padding:2px 8px;
}
.reply-tip span:active { opacity:0.6; }

.comment-avatar { cursor:pointer; }

/* 修复：userlist-page（我浏览/点赞/收藏列表）需显示在个人主页之上 */
#userlist-page { z-index: 365; }

/* "我的"作为平级 tab 页时的容器（区别于全屏覆盖层的 profile-page-body） */
#my-page-body { padding-bottom: 16px; }
#my-page { background-color: var(--bg-body); }

/* 我的发布：三类作品等宽展示，移动端不挤压 */
.profile-pub-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%}
.profile-pub-tab{min-width:0;padding:7px 6px!important;text-align:center;white-space:nowrap}
