/* ===== 用户主页（抖音风格） ===== */
.uh-banner {
    height: 120px;
    background: linear-gradient(135deg, #b8956a 0%, #c9a87c 50%, #d4a574 100%);
    position: relative;
    margin-top: -1px;
}
[data-theme="light"] .uh-banner {
    background: linear-gradient(135deg, #d4b896 0%, #e0c9a8 50%, #d9c09a 100%);
}
.uh-card {
    margin: -36px 16px 0;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.uh-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #fff;
}
/* 用户主页头像框适配 */
.uh-card .pc-avatar.avatar-framed {
    width: 60px;
    height: 60px;
    font-size: 1.8em;
    border: 3px solid #fff;
}
.uh-card .pc-avatar.avatar-framed .av-inner {
    border-radius: 50%;
}
.uh-card .avatar-frame-img {
    inset: -6px;
    width: calc(100% + 12px) !important;
    height: calc(100% + 12px) !important;
}
.uh-card .avatar-frame-svg {
    inset: -7px;
    width: calc(100% + 14px) !important;
    height: calc(100% + 14px) !important;
}
.uh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uh-info { flex: 1; min-width: 0; }
.uh-name { font-size: 1.12em; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.uh-edit-btn {
    font-size: 0.65em; padding: 2px 8px; border-radius: 10px;
    background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s; white-space: nowrap;
}
.uh-edit-btn:active { opacity: 0.7; }
.uh-sub { font-size: 0.8em; color: var(--text-muted); margin-top: 4px; }
.uh-signature {
    font-size: 0.78em;
    color: var(--text-dim);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uh-badge {
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-left: 6px;
}
.uh-stats {
    display: flex;
    gap: 0;
    margin: 16px 20px;
    padding: 14px 0;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
}
.uh-stat {
    flex: 1;
    text-align: center;
}
.uh-stat-num {
    font-size: 1.08em;
    font-weight: 800;
    color: var(--text-primary);
}
.uh-stat-label {
    font-size: 0.72em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== 成就墙 ===== */
.ach-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 20px;
}
.ach-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.ach-cell:active { transform: scale(0.95); }
.ach-cell.locked {
    opacity: 0.35;
    filter: grayscale(1);
}
.ach-icon {
    font-size: 1.5em;
    line-height: 1;
}
.ach-name {
    font-size: 0.68em;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.ach-rarity {
    font-size: 0.58em;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: 700;
}
.ach-rarity.common { background: #6b728033; color: #9ca3af; }
.ach-rarity.rare { background: #3b82f633; color: #60a5fa; }
.ach-rarity.epic { background: #a855f733; color: #c084fc; }
.ach-rarity.legendary { background: #f59e0b33; color: #fbbf24; }

/* ===== 详情页图片横向滚动 ===== */
.detail-img-scroll {
    margin: 0 -24px 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.detail-img-scroll::-webkit-scrollbar { display: none; }
.detail-img-track { display: flex; gap: 8px; padding: 0 24px; }
.detail-img-item {
    flex-shrink: 0;
    width: 210px;
    height: 210px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.detail-img-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s var(--ease); }
.detail-img-item:active img { transform: scale(0.96); }
