- Remove 主页概览/快捷入口/交易服务 private-dashboard sidebar from public home - Full-width layout; counts live in tab bar (粉丝 = followers) - Hero: 用户中心/消息 for self, 关注/私信 for others; drop body stats row - Defaults: no sidebar, posts/favorites/comments/follow tabs
586 lines
12 KiB
CSS
586 lines
12 KiB
CSS
/**
|
|
* AKSRT User Home / Author Page — 公开用户主页 & 作者归档页样式
|
|
*
|
|
* Zibll 风格作者页布局
|
|
* 在 /user/{nicename}/ 和 /author/{nicename}/ 加载
|
|
*/
|
|
|
|
/* ============================================================
|
|
* Author Hero — 统一的作者头区(与 zibll author-header 对齐)
|
|
* ============================================================ */
|
|
.aksrt-author-hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: var(--radius-2xl, 16px);
|
|
background: var(--surface-1);
|
|
border: none;
|
|
box-shadow: var(--shadow-sm);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.aksrt-author-hero__cover {
|
|
position: relative;
|
|
padding-bottom: calc(20% + 80px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.aksrt-author-hero__cover-img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.aksrt-author-hero__cover-mask {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 80px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.aksrt-author-hero__cover-metas {
|
|
position: absolute;
|
|
right: 14px;
|
|
bottom: 12px;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.aksrt-author-hero__cover-meta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.aksrt-author-hero__cover-meta i {
|
|
font-size: 11px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.aksrt-author-hero__body {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 20px;
|
|
padding: 18px 28px 24px;
|
|
margin-top: -60px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.aksrt-author-hero__avatar {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.aksrt-author-hero__avatar img {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: var(--radius);
|
|
border: 4px solid var(--surface-1);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
object-fit: cover;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.aksrt-author-hero__avatar img:hover {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.aksrt-author-hero__info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding-top: 65px;
|
|
}
|
|
|
|
.aksrt-author-hero__name {
|
|
margin: 0 0 6px;
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
color: var(--color-ink);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.aksrt-author-hero__desc {
|
|
margin: 0 0 10px;
|
|
font-size: 13px;
|
|
color: var(--color-ink-3);
|
|
line-height: 1.5;
|
|
max-width: 520px;
|
|
}
|
|
|
|
/* Body stats row removed for Zibll author parity; counts live in tabs. */
|
|
.aksrt-author-hero__stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.aksrt-author-hero__stat {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 34px;
|
|
padding: 0 14px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--surface-2);
|
|
color: var(--color-ink-3);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.aksrt-author-hero__stat strong {
|
|
color: var(--color-ink);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.aksrt-author-hero__contacts {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.aksrt-author-hero__contacts .profile-social-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.aksrt-author-hero__actions {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding-top: 68px;
|
|
}
|
|
|
|
.aksrt-author-hero__follow-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.aksrt-author-hero__follow-btn[aria-disabled="true"] {
|
|
opacity: 0.72;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.aksrt-author-hero__notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0 0 18px;
|
|
padding: 12px 14px;
|
|
border-radius: 10px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.aksrt-author-hero__notice--muted,
|
|
.aksrt-author-hero__notice--restricted {
|
|
color: #92400e;
|
|
background: rgba(245, 158, 11, 0.12);
|
|
}
|
|
|
|
.aksrt-author-hero__notice--banned {
|
|
color: #b91c1c;
|
|
background: rgba(239, 68, 68, 0.12);
|
|
}
|
|
|
|
/* No-cover variant */
|
|
.aksrt-author-hero--no-cover {
|
|
border: 1px solid var(--color-line-soft);
|
|
}
|
|
|
|
.aksrt-author-hero--no-cover .aksrt-author-hero__body {
|
|
margin-top: 0;
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.aksrt-author-hero--no-cover .aksrt-author-hero__info {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.aksrt-author-hero--no-cover .aksrt-author-hero__actions {
|
|
padding-top: 0;
|
|
}
|
|
|
|
/* Author hero responsive */
|
|
@media (max-width: 767px) {
|
|
.aksrt-author-hero__body {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 12px 16px 20px;
|
|
}
|
|
|
|
.aksrt-author-hero__info {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.aksrt-author-hero__desc {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.aksrt-author-hero__stats {
|
|
justify-content: center;
|
|
}
|
|
|
|
.aksrt-author-hero__contacts {
|
|
justify-content: center;
|
|
}
|
|
|
|
.aksrt-author-hero__contacts .profile-social-links {
|
|
justify-content: center;
|
|
}
|
|
|
|
.aksrt-author-hero__actions {
|
|
padding-top: 0;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.aksrt-author-hero__cover {
|
|
padding-bottom: calc(20% + 60px);
|
|
}
|
|
|
|
.aksrt-author-hero__body {
|
|
margin-top: -40px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.aksrt-author-hero__avatar img {
|
|
width: 90px;
|
|
height: 90px;
|
|
}
|
|
|
|
.aksrt-author-hero__name {
|
|
font-size: 1.15rem;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.aksrt-user-home .aksrt-user-home__layout {
|
|
align-items: start;
|
|
}
|
|
|
|
.aksrt-user-home .aksrt-user-home__aside {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
|
|
.aksrt-user-home .aksrt-user-home__contacts .profile-social-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.aksrt-user-home .user-home-balance-card {
|
|
padding: 28px;
|
|
border-radius: var(--radius-lg, 12px);
|
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.04));
|
|
border: 1px solid var(--color-line-soft, rgba(0, 0, 0, 0.06));
|
|
}
|
|
|
|
.aksrt-user-home .user-home-balance-card__label {
|
|
margin: 0 0 10px;
|
|
color: var(--color-ink-4);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.aksrt-user-home .user-home-balance-card__value {
|
|
font-size: clamp(28px, 4vw, 40px);
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
.aksrt-user-home .user-home-balance-card__hint {
|
|
margin: 14px 0 18px;
|
|
color: var(--color-ink-3);
|
|
}
|
|
|
|
/* 内容区卡片 — 覆盖全局 .dashboard max-width,与头部卡片等宽 */
|
|
.aksrt-user-home .dashboard--public {
|
|
max-width: none;
|
|
background: var(--surface-1);
|
|
border-radius: var(--radius-2xl, 16px);
|
|
padding: 24px;
|
|
box-shadow: var(--shadow-sm);
|
|
border: none;
|
|
}
|
|
|
|
/* Tab 栏增强 */
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--color-ink-3);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button:hover {
|
|
color: var(--color-ink);
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button.is-active {
|
|
color: var(--color-primary);
|
|
background: var(--color-primary-soft);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button.is-active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -14px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 24px;
|
|
height: 2px;
|
|
background: var(--color-primary);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs__count {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
margin-left: 5px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
color: var(--color-ink-4);
|
|
background: var(--surface-3);
|
|
border-radius: 100px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button.is-active .dashboard-tabs__count {
|
|
color: var(--color-primary);
|
|
background: var(--color-primary-soft);
|
|
}
|
|
|
|
/* 面板内容 */
|
|
.aksrt-user-home .dashboard--public .dashboard-panel {
|
|
animation: panel-fade-in 0.25s ease;
|
|
}
|
|
|
|
@keyframes panel-fade-in {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ==================== 焦点状态(无障碍)==================== */
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button:focus-visible {
|
|
outline: 2px solid var(--color-primary);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* ==================== 空状态增强 ==================== */
|
|
.aksrt-user-home .profile-empty {
|
|
padding: 48px 20px;
|
|
}
|
|
|
|
.aksrt-user-home .profile-empty__icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
/* ==================== 响应式 ==================== */
|
|
@media (max-width: 640px) {
|
|
|
|
.aksrt-user-home .dashboard--public {
|
|
padding: 16px;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs {
|
|
overflow-x: auto;
|
|
flex-wrap: nowrap;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard--public .dashboard-tabs button {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
/* User-home forum tab (owned by public user home route) */
|
|
.aksrt-user-home .uh-forum__subtabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--c-border, #e8e8e8);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__subtab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 14px;
|
|
border-radius: var(--radius-pill, 999px);
|
|
font-size: 13px;
|
|
color: var(--c-text-3, #999);
|
|
text-decoration: none;
|
|
transition: all .2s;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__subtab:hover {
|
|
color: var(--c-text-1, #333);
|
|
background: var(--c-fill-1, #f5f5f5);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__subtab.is-active {
|
|
background: var(--c-primary, #1890ff);
|
|
color: #fff;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__subtab-count {
|
|
font-size: 11px;
|
|
opacity: .7;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item {
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--c-border-light, #f5f5f5);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item-title {
|
|
display: block;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--c-text-1, #333);
|
|
text-decoration: none;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item-title:hover {
|
|
color: var(--c-primary, #1890ff);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 12px;
|
|
color: var(--c-text-3, #999);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__item-meta i {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__section-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--c-text-2, #666);
|
|
margin: 16px 0 10px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--c-border-light, #f5f5f5);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__section-title i {
|
|
margin-right: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__plate-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__plate-card {
|
|
display: block;
|
|
padding: 12px;
|
|
border: 1px solid var(--c-border, #e8e8e8);
|
|
border-radius: var(--radius, 6px);
|
|
text-decoration: none;
|
|
transition: border-color .2s, box-shadow .2s;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__plate-card:hover {
|
|
border-color: var(--c-primary, #1890ff);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__plate-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--c-text-1, #333);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__plate-stats {
|
|
display: flex;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
color: var(--c-text-3, #999);
|
|
}
|
|
|
|
.aksrt-user-home .uh-forum__pagination {
|
|
margin-top: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* Full-width public home (Zibll author: no commerce sidebar) */
|
|
.aksrt-user-home .content-layout--no-sidebar .content-layout__primary {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.aksrt-user-home .dashboard-tabs__count.opacity8 {
|
|
opacity: 0.8;
|
|
}
|