补充主题静态资源与归档模板

This commit is contained in:
kate522 committed 2026-07-03 23:15:11 +08:00
1 parent 1268a55dd0
commit 3247db7ed1
265 files changed
+59174

No files matched your search

+567
View File
@@ -0,0 +1,567 @@
/**
* AKSRT Profile / User Center — v3.3 Editorial
*
* 从 page-profile.php 内嵌 <style> 提取,token 化。
* 通过 class-aksrt-scripts.php 在 is_page_template('templates/pages/page-profile.php') 时加载。
*
* 覆盖:
* - Toast 通知容器(仅 profile 页)
* - 公开个人主页头
* - 仪表盘标签 + 数据表
* - 个人资料编辑表单 + 联系方式行
* - 账号设置区(第三方绑定 / 安全操作)
* - 模态弹窗(修改密码 / 修改邮箱)
* - 密码强度条
*/
/* ==================== Toast(profile 页专用) ==================== */
#toast-container {
position: fixed;
bottom: calc(24px + env(safe-area-inset-bottom, 0px));
right: calc(24px + env(safe-area-inset-right, 0px));
z-index: 99999;
display: flex;
flex-direction: column-reverse;
gap: 10px;
pointer-events: none;
}
.toast-item {
pointer-events: auto;
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: rgba(0, 0, 0, 0.78);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
font-size: 14px;
font-weight: 500;
border-radius: 100px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
white-space: nowrap;
}
.toast-item.fade-out {
animation: toastOut 0.4s ease forwards;
}
@keyframes toastIn {
0% { opacity: 0; transform: translateY(16px) scale(0.92); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
0% { opacity: 1; transform: translateY(0) scale(1); }
100% { opacity: 0; transform: translateY(8px) scale(0.95); }
}
/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 page/dashboard 容器收窄 */
.aksrt-profile .content-shell {
width: 100%;
max-width: var(--container, 1440px);
}
/* ==================== 用户资料卡片(共享) ==================== */
.uc-header {
margin-bottom: 20px;
border-radius: var(--radius-lg, 12px);
overflow: hidden;
background: var(--surface-1);
box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
/* 对齐 zibll: calc(20% + 100px) */
.uc-header__cover {
position: relative;
padding-bottom: calc(20% + 100px);
overflow: hidden;
}
.uc-header__cover-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.uc-header__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;
}
.uc-header__cover-upload {
position: absolute;
bottom: 12px;
right: 12px;
z-index: 2;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 6px;
background: rgba(0, 0, 0, 0.25);
color: #fff;
font-size: 12px;
cursor: pointer;
backdrop-filter: blur(4px);
transition: background 0.2s;
}
.uc-header__cover-upload:hover {
background: rgba(0, 0, 0, 0.45);
}
.uc-header__cover-upload:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.uc-header__cover-upload i {
font-size: 11px;
}
.uc-header__content {
display: flex;
align-items: flex-start;
gap: 20px;
padding: 18px 28px 24px;
margin-top: -60px;
position: relative;
z-index: 1;
}
.uc-header__avatar {
flex-shrink: 0;
}
/* 对齐 zibll: 140px, 6px 圆角 */
.uc-header__avatar img {
width: 140px;
height: 140px;
border-radius: 6px;
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;
}
.uc-header__avatar img:hover {
transform: scale(1.03);
}
.uc-header__info {
flex: 1;
min-width: 0;
padding-top: 65px;
}
.uc-header__name {
margin: 0 0 6px;
font-size: 1.35rem;
font-weight: 700;
color: var(--color-ink);
line-height: 1.3;
}
.uc-header__desc {
margin: 0 0 10px;
font-size: 13px;
color: var(--color-ink-3);
line-height: 1.5;
max-width: 520px;
}
.aksrt-identity-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 10px 0 0;
}
.aksrt-identity-chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
line-height: 1;
letter-spacing: 0.01em;
}
.aksrt-identity-chip--success {
color: #0f766e;
background: rgba(15, 118, 110, 0.12);
}
.aksrt-identity-chip--info {
color: #1d4ed8;
background: rgba(37, 99, 235, 0.12);
}
.aksrt-identity-chip--warning {
color: #b45309;
background: rgba(245, 158, 11, 0.14);
}
.aksrt-identity-chip--brand {
color: #7c3aed;
background: rgba(124, 58, 237, 0.12);
}
.aksrt-identity-chip--neutral {
color: var(--color-ink-3);
background: var(--surface-2);
}
.aksrt-user-home__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-user-home__notice--muted,
.aksrt-user-home__notice--restricted {
color: #92400e;
background: rgba(245, 158, 11, 0.12);
}
.aksrt-user-home__notice--banned {
color: #b91c1c;
background: rgba(239, 68, 68, 0.12);
}
.uc-header__meta {
display: flex;
flex-wrap: wrap;
gap: 14px;
font-size: 13px;
color: var(--color-ink-3);
}
.uc-header__meta-item {
display: inline-flex;
align-items: center;
gap: 5px;
}
.uc-header__meta-item i {
font-size: 12px;
opacity: 0.65;
}
.uc-header__actions {
flex-shrink: 0;
padding-top: 68px;
}
/* 公开主页联系方式(沿用旧选择器) */
.profile-public-contacts {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.profile-public-contacts .social-icon-link {
color: var(--color-ink);
background: var(--color-line);
}
.profile-public-contacts .social-icon-link:hover {
color: var(--color-ink);
background: var(--color-ink-4);
}
/* 公开主页响应式 */
@media (max-width: 767px) {
.uc-header__content {
flex-direction: column;
align-items: center;
text-align: center;
padding: 12px 16px 20px;
}
.uc-header__info {
padding-top: 0;
}
.uc-header__desc {
max-width: 100%;
}
.uc-header__meta {
justify-content: center;
}
.aksrt-identity-chips {
justify-content: center;
}
.uc-header__actions {
padding-top: 0;
margin-top: 4px;
}
.profile-public-contacts {
justify-content: center;
}
}
@media (max-width: 480px) {
.uc-header__cover {
padding-bottom: calc(20% + 60px);
}
.uc-header__content {
margin-top: -40px;
gap: 14px;
}
.uc-header__avatar img {
width: 90px;
height: 90px;
}
.uc-header__name {
font-size: 1.15rem;
}
}
/* ==================== 页面标题 ==================== */
.profile-page-title {
margin-bottom: 20px;
}
/* ==================== Dashboard Tabs 计数徽章 ==================== */
.dashboard-tabs__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 6px;
margin-left: 4px;
font-size: 11px;
font-weight: 600;
line-height: 1;
color: var(--color-ink-3);
background: var(--surface-3);
border-radius: var(--radius-pill);
font-variant-numeric: tabular-nums;
transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dashboard-tabs button.is-active .dashboard-tabs__count {
color: var(--color-on-primary, #fff);
background: var(--color-primary);
}
/* 移动端 tab 横向滚动(取代换行) */
@media (max-width: 640px) {
.dashboard-tabs {
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
-ms-overflow-style: none;
}
.dashboard-tabs::-webkit-scrollbar {
display: none;
}
.dashboard-tabs button {
flex-shrink: 0;
white-space: nowrap;
}
}
/* 公开主页模式下的简化 dashboard */
.dashboard--public {
margin-top: 24px;
max-width: none;
background: var(--surface-1);
border-radius: var(--radius-lg, 10px);
padding: 24px;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
border: 1px solid var(--color-line-soft, transparent);
}
.dashboard--public .dashboard-tabs {
display: flex;
gap: 4px;
position: static;
background: transparent;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid var(--color-line-soft, rgba(0,0,0,0.06));
}
.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;
}
.dashboard--public .dashboard-tabs button:hover {
color: var(--color-ink);
background: var(--surface-2);
}
.dashboard--public .dashboard-tabs button.is-active {
color: var(--color-primary);
background: var(--color-primary-soft);
font-weight: 600;
}
.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;
}
.dashboard--public .dashboard-tabs button.is-active .dashboard-tabs__count {
color: var(--color-primary);
background: var(--color-primary-soft);
}
/* ==================== 个人资料编辑表单 ==================== */
.profile-form .widget-card {
margin-bottom: 16px;
}
.profile-form__submit {
display: flex;
align-items: center;
gap: 12px;
padding: 0;
margin-top: 16px;
background: none;
border: none;
}
.profile-form__submit-msg {
font-size: 14px;
color: var(--color-ink-3);
}
.profile-form__submit-msg.is-error {
color: var(--color-error);
}
.profile-add-contact {
margin-top: 8px;
}
.profile-input {
display: block;
width: 100%;
padding: 10px 14px;
font-size: 14px;
line-height: 1.5;
color: var(--color-ink);
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: 8px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.profile-input:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.profile-textarea {
resize: vertical;
min-height: 90px;
font-family: inherit;
}
.profile-hint {
font-size: 12px;
color: var(--color-ink-4);
margin: 6px 0 0;
}
.profile-hint--top {
margin-top: 0;
margin-bottom: 8px;
}
/* ==================== List Header(标题 + 状态筛选) ==================== */
.profile-list-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
padding-bottom: 12px;
border-bottom: 2px solid var(--color-primary-50);
}
.widget-title--inline {
margin: 0;
padding: 0;
border: none;
}
.widget-title--inline::before {
display: none;
}
.profile-status-filter {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.profile-status-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: var(--radius-pill);
border: 1px solid var(--color-line);
background: var(--surface-1);
color: var(--color-ink-3);
font-size: 12px;
font-weight: 500;
line-height: 1.4;
text-decoration: none;
transition: color var(--dur-fast) var(--ease),
background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease);
}
.profile-status-chip:hover {
color: var(--color-primary);
border-color: var(--color-primary);
}
.profile-status-chip.is-active {
color: var(--color-on-primary, #fff);
background: var(--color-primary);
border-color: var(--color-primary);
}
.profile-status-chip__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
padding: 0 4px;
font-size: 10px;
font-weight: 700;
line-height: 1;
border-radius: var(--radius-pill);
background: var(--surface-3);
color: var(--color-ink-4);
font-variant-numeric: tabular-nums;
}
.profile-status-chip.is-active .profile-status-chip__count {
background: rgba(255, 255, 255, 0.25);
color: #fff;
}
+660
View File
@@ -0,0 +1,660 @@
/* ==================== 文章 / 收藏 列表(无图) ==================== */
.profile-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
.profile-list-item {
position: relative;
padding: 16px 18px;
border: 1px solid var(--color-line);
border-radius: var(--radius-lg);
background: var(--surface-1);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
transition: background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease),
box-shadow var(--dur-fast) var(--ease),
opacity var(--dur) var(--ease);
}
.profile-list-item:hover {
background: var(--surface-1);
border-color: var(--color-line-strong, var(--color-line));
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.profile-list-item.is-removing {
opacity: 0;
transform: translateX(-12px);
}
.profile-list[data-list="favorites"] .profile-list-item {
background: var(--surface-1);
border-color: var(--color-line);
}
.profile-list[data-list="favorites"] .profile-list-item:hover {
background: var(--surface-1);
border-color: var(--color-line-strong, var(--color-line));
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.profile-list-item__main {
display: flex;
flex-direction: column;
gap: 8px;
}
.profile-list-item__head {
display: flex;
align-items: baseline;
gap: 12px;
min-width: 0;
}
.profile-list-item__title {
flex: 1;
margin: 0;
font-family: var(--font-display);
font-size: var(--text-md, 1.125rem);
font-weight: 700;
line-height: 1.4;
color: var(--color-ink);
letter-spacing: -0.01em;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.profile-list-item__title a {
color: inherit;
text-decoration: none;
transition: color var(--dur-fast) var(--ease);
}
.profile-list-item:hover .profile-list-item__title a {
color: var(--color-ink);
}
.profile-list-item__status-badge {
display: inline-flex;
align-items: center;
margin-left: 6px;
padding: 2px 8px;
font-size: 11px;
font-weight: 600;
line-height: 1.4;
letter-spacing: 0.02em;
color: var(--color-warning);
background: rgba(245, 158, 11, 0.10);
border-radius: var(--radius-pill);
vertical-align: middle;
}
.profile-list-item__date {
flex-shrink: 0;
font-size: 12px;
color: var(--color-ink-4);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.profile-list-item__excerpt {
margin: 0;
font-family: var(--font-body);
font-size: var(--text-sm, 0.875rem);
line-height: 1.65;
color: var(--color-ink-3);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.profile-list-item__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--color-ink-4);
}
.profile-list-item__meta-spacer {
flex: 1 0 auto;
}
.profile-list-item__chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
font-size: 11px;
font-weight: 500;
line-height: 1.4;
border: 1px solid var(--color-line);
border-radius: 999px;
text-decoration: none;
letter-spacing: 0.02em;
background: var(--surface-1);
color: var(--color-ink-4);
transition: color var(--dur-fast) var(--ease),
background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease);
}
.profile-list-item__chip--category {
color: var(--color-ink-3);
background: var(--surface-1);
border-color: var(--color-line);
}
.profile-list-item__chip--category:hover {
color: var(--color-ink-2);
background: var(--surface-2);
border-color: var(--color-line-strong, var(--color-line));
}
.profile-list-item__chip--category i {
font-size: 10px;
line-height: 1;
color: inherit;
}
.profile-list-item__chip--tag {
color: var(--color-ink-4);
background: var(--surface-1);
border-color: var(--color-line);
}
.profile-list-item__chip--tag:hover {
color: var(--color-ink-3);
border-color: var(--color-line-strong, var(--color-line));
background: var(--surface-2);
}
.profile-list-item__meta-item {
display: inline-flex;
align-items: center;
gap: 4px;
white-space: nowrap;
}
.profile-list-item__meta-item svg {
width: 13px;
height: 13px;
opacity: 0.85;
}
.profile-list-item__action {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
margin-left: 4px;
font-size: 12px;
font-weight: 500;
line-height: 1.4;
color: var(--color-ink-4);
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: var(--radius-pill);
cursor: pointer;
text-decoration: none;
transition: color var(--dur-fast) var(--ease),
background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease),
opacity var(--dur-fast) var(--ease);
}
.profile-list-item__action:hover {
color: var(--color-ink-2);
border-color: var(--color-line-strong, var(--color-line));
background: var(--surface-2);
}
.profile-list-item__action--unfavorite {
color: var(--color-ink-4);
border-color: var(--color-line);
}
.profile-list-item__action--unfavorite:hover {
color: var(--color-error);
border-color: var(--color-error);
background: rgba(239, 68, 68, 0.04);
}
.profile-list-item__action--unfavorite svg {
fill: currentColor;
}
.profile-list-item__action.is-loading {
opacity: 0.5;
pointer-events: none;
}
.profile-list-item__action-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 13px;
height: 13px;
}
.profile-list-item__action-icon svg {
width: 13px;
height: 13px;
}
/* ==================== 评论列表 ==================== */
.profile-comment-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
.profile-comment-item {
position: relative;
padding: 16px 18px;
border: 1px solid var(--color-line);
border-radius: var(--radius-lg);
background: var(--surface-1);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
transition: background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease),
box-shadow var(--dur-fast) var(--ease);
}
.profile-comment-item::before {
content: none;
}
.profile-comment-item:hover {
background: var(--surface-1);
border-color: var(--color-line-strong, var(--color-line));
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.profile-comment-item__quote-link {
display: flex;
align-items: flex-start;
gap: 6px;
text-decoration: none;
color: var(--color-ink-2);
margin-bottom: 8px;
}
.profile-comment-item__quote-link:hover .profile-comment-item__quote-text {
color: var(--color-ink-2);
}
.profile-comment-item__quote-mark {
flex-shrink: 0;
font-family: var(--font-display);
font-size: 18px;
line-height: 1;
color: var(--color-ink-4);
opacity: 0.45;
margin-top: 2px;
}
.profile-comment-item__quote-text {
flex: 1;
font-family: var(--font-body);
font-size: var(--text-sm, 0.875rem);
line-height: 1.65;
color: var(--color-ink-2);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
transition: color var(--dur-fast) var(--ease);
}
.profile-comment-item__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin-left: 0;
font-size: 12px;
color: var(--color-ink-4);
}
.profile-comment-item__meta-item {
display: inline-flex;
align-items: center;
gap: 4px;
}
.profile-comment-item__meta-item i {
font-size: 11px;
opacity: 0.75;
}
.profile-comment-item__meta-sep {
opacity: 0.5;
}
.profile-comment-item__post-link {
color: var(--color-ink-2);
font-weight: 500;
text-decoration: none;
transition: color var(--dur-fast) var(--ease);
}
.profile-comment-item__post-link:hover {
color: var(--color-ink);
}
/* ==================== 分页 ==================== */
.profile-pagination {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 4px;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid var(--color-line-soft);
}
.profile-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 10px;
font-size: 13px;
font-weight: 500;
color: var(--color-ink-3);
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: 8px;
text-decoration: none;
transition: color var(--dur-fast) var(--ease),
background-color var(--dur-fast) var(--ease),
border-color var(--dur-fast) var(--ease);
}
.profile-pagination a.page-numbers:hover {
color: var(--color-primary);
border-color: var(--color-primary);
background: var(--color-primary-soft);
}
.profile-pagination .page-numbers.current {
color: var(--color-on-primary, #fff);
background: var(--color-primary);
border-color: var(--color-primary);
}
.profile-pagination .page-numbers.dots {
border-color: transparent;
background: transparent;
}
/* ==================== 空状态 ==================== */
.profile-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 56px 20px;
text-align: center;
}
.profile-empty__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-bottom: 16px;
border-radius: var(--radius-pill);
background: var(--color-primary-soft);
color: var(--color-primary);
}
.profile-empty__icon svg {
width: 30px;
height: 30px;
}
.profile-empty__title {
margin: 0 0 6px;
font-family: var(--font-display);
font-size: var(--text-md, 1.125rem);
font-weight: 700;
color: var(--color-ink);
}
.profile-empty__desc {
margin: 0 0 16px;
font-family: var(--font-body);
font-size: var(--text-sm, 0.875rem);
color: var(--color-ink-3);
max-width: 360px;
line-height: 1.65;
}
.profile-empty__cta {
text-decoration: none;
}
/* ---- 联系方式行 ---- */
.contact-row {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.contact-icon {
flex: 0 0 120px;
min-width: 0;
}
.contact-row .contact-url {
flex: 1;
min-width: 0;
}
.contact-remove {
flex-shrink: 0;
width: 40px;
height: 40px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--color-ink-4);
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
}
.contact-remove:hover {
background: rgba(220, 38, 38, 0.1);
color: var(--color-error);
}
/* ---- 保存反馈 ---- */
#profile-save-msg.success { color: var(--color-success); }
#profile-save-msg.error { color: var(--color-error); }
/* ==================== 账号设置区 ==================== */
.settings-section {
margin-bottom: 20px;
}
.settings-section__header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
}
.settings-icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--color-primary);
color: var(--color-on-primary, #fff);
font-size: 16px;
flex-shrink: 0;
}
.settings-icon i,
.security-action-icon i,
.aksrt-modal__icon i,
.aksrt-modal__close i {
line-height: 1;
}
.settings-hint {
font-size: 13px;
color: var(--color-ink-4);
margin: 4px 0 12px;
}
.settings-hint--top {
margin-top: 0;
margin-bottom: 10px;
}
.settings-hint--bottom {
margin-top: 8px;
}
.settings-section__title {
margin: 0;
border: 0;
}
.settings-empty {
font-size: 13px;
color: var(--color-ink-4);
padding: 24px 0;
text-align: center;
}
/* ---- 第三方绑定列表 ---- */
.binding-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.binding-item {
display: flex;
align-items: center;
gap: 10px;
padding: 11px 14px;
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: 8px;
transition: border-color 0.15s, background 0.15s;
}
.binding-item--linkable {
cursor: pointer;
text-decoration: none;
color: inherit;
}
.binding-item--linkable:hover {
border-color: var(--color-primary);
background: var(--color-primary-softer);
}
.binding-item__icon {
display: flex;
align-items: center;
width: 22px;
height: 22px;
color: var(--color-ink);
flex-shrink: 0;
}
.binding-item__icon svg {
width: 100%;
height: 100%;
}
.binding-item__meta {
display: flex;
flex: 1;
align-items: center;
gap: 8px;
min-width: 0;
}
.binding-status {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
font-weight: 600;
color: var(--color-success);
white-space: nowrap;
}
.binding-status--idle {
color: var(--color-ink-4);
}
.binding-item__name {
font-size: 14px;
font-weight: 600;
min-width: 0;
}
/* ---- 徽章 ---- */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
border-radius: 100px;
font-size: 11px;
font-weight: 500;
line-height: 1.5;
white-space: nowrap;
}
.badge__icon {
line-height: 1;
}
.badge--bound {
background: #ecfdf5;
color: #059669;
}
.badge--bind {
background: #eff6ff;
color: var(--color-primary);
border: 1px solid var(--color-primary-soft);
}
/* ---- 解绑按钮 ---- */
.binding-unbind-btn {
background: none;
border: none;
color: var(--color-ink-4);
font-size: 12px;
cursor: pointer;
padding: 4px 10px;
border-radius: 6px;
transition: color 0.15s, background 0.15s;
}
.binding-unbind-btn:hover {
color: var(--color-error);
background: rgba(239, 68, 68, 0.08);
}
/* ---- 安全设置操作区 ---- */
.security-actions {
display: flex;
flex-direction: column;
gap: 12px;
}
.security-action-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px;
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: 10px;
}
.security-action-info {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}
.security-action-icon {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 10px;
background: var(--color-primary-soft);
color: var(--color-primary);
flex-shrink: 0;
font-size: 18px;
}
.security-action-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.security-action-title {
font-size: 14px;
font-weight: 600;
color: var(--color-ink);
}
.security-action-desc {
font-size: 12px;
color: var(--color-ink-4);
}
+604
View File
@@ -0,0 +1,604 @@
/* ==================== Modal 弹窗 ==================== */
.aksrt-modal {
display: none;
position: fixed;
inset: 0;
z-index: 99998;
align-items: center;
justify-content: center;
}
.aksrt-modal.is-open {
display: flex;
}
.aksrt-modal__overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
animation: modalFadeIn 0.2s ease forwards;
}
.aksrt-modal__box {
position: relative;
width: 92%;
max-width: 440px;
max-height: 90vh;
overflow-y: auto;
background: var(--surface-1);
border-radius: var(--radius);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
animation: modalSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes modalFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalSlideUp {
from { opacity: 0; transform: translateY(24px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Modal 头部 */
.aksrt-modal__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px;
border-bottom: 1px solid var(--color-line);
}
.aksrt-modal__title-wrap {
display: flex;
align-items: center;
gap: 8px;
}
.aksrt-modal__icon {
display: flex;
align-items: center;
width: 30px;
height: 30px;
border-radius: 8px;
background: var(--color-primary-soft);
color: var(--color-primary);
font-size: 16px;
}
.aksrt-modal__title-wrap h4 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: var(--color-ink);
}
.aksrt-modal__close {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 8px;
background: transparent;
color: var(--color-ink-4);
cursor: pointer;
font-size: 18px;
transition: background 0.15s, color 0.15s;
}
.aksrt-modal__close:hover {
background: var(--surface-2);
color: var(--color-ink);
}
/* Modal 表单字段 */
.aksrt-modal__box form {
padding: 20px;
}
.modal-field {
position: relative;
margin-bottom: 16px;
}
.modal-field label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-weight: 600;
color: var(--color-ink-2);
}
.modal-field input[type="password"],
.modal-field input[type="email"],
.modal-field input[type="text"] {
display: block;
width: 100%;
padding: 10px 40px 10px 14px;
font-size: 14px;
line-height: 1.5;
color: var(--color-ink);
background: var(--surface-2);
border: 1.5px solid var(--color-line);
border-radius: 8px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.modal-field input:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-soft);
background: var(--surface-1);
}
.toggle-pwd {
position: absolute;
right: 10px;
top: 31px;
width: 34px;
height: 34px;
border: none;
border-radius: 6px;
background: transparent;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-ink-4);
font-size: 16px;
}
.toggle-pwd:hover {
color: var(--color-ink);
}
/* 只读显示(当前邮箱) */
.readonly-display {
display: block;
padding: 10px 14px;
font-size: 14px;
color: var(--color-ink-4);
background: var(--surface-2);
border: 1.5px solid var(--color-line);
border-radius: 8px;
word-break: break-all;
}
/* 验证码输入组 */
.code-input-group {
display: flex;
gap: 8px;
align-items: stretch;
}
.code-input-group input {
flex: 1;
min-width: 0;
padding: 10px 14px !important;
font-family: inherit !important;
letter-spacing: 2px;
font-weight: 600;
}
.code-send-btn {
flex-shrink: 0;
white-space: nowrap;
min-width: 110px;
}
.code-send-btn.is-counting {
pointer-events: none;
opacity: 0.65;
}
/* 密码强度条 */
.pwd-strength {
display: flex;
gap: 4px;
margin-top: 7px;
height: 4px;
border-radius: 2px;
overflow: hidden;
background: var(--surface-3);
}
.pwd-strength__fill {
width: 0%;
height: 100%;
border-radius: 2px;
transition: width 0.3s ease, background-color 0.3s ease;
background-color: var(--color-error);
}
.pwd-strength__fill.level-weak { width: 33%; background-color: var(--color-error); }
.pwd-strength__fill.level-medium { width: 66%; background-color: var(--color-warning); }
.pwd-strength__fill.level-strong { width: 100%; background-color: var(--color-success); }
.pwd-strength__text {
font-size: 11px;
margin-top: 4px;
font-weight: 500;
transition: color 0.2s;
}
.pwd-strength__text.level-weak { color: var(--color-error); }
.pwd-strength__text.level-medium { color: var(--color-warning); }
.pwd-strength__text.level-strong { color: var(--color-success); }
/* 人机验证容器在弹窗中的适配 */
.aksrt-modal .aksrt-captcha-wrap {
margin: 14px 0 8px;
}
.aksrt-modal .aksrt-captcha-box {
display: block !important;
}
/* Modal 底部按钮栏 */
.aksrt-modal__footer {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid var(--color-line);
}
/* ==================== 响应式 ==================== */
@media (max-width: 720px) {
.profile-public-left {
flex: 0 0 180px;
}
.profile-list-item {
padding: 14px;
}
.profile-comment-item {
padding: 14px;
}
}
@media (max-width: 640px) {
.profile-public-header {
flex-direction: column;
align-items: center;
gap: 24px;
}
.profile-public-left {
flex: none;
width: 100%;
}
.profile-public-right {
width: 100%;
text-align: center;
}
.profile-list-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.profile-status-filter {
width: 100%;
overflow-x: auto;
flex-wrap: nowrap;
scrollbar-width: none;
padding-bottom: 4px;
}
.profile-status-filter::-webkit-scrollbar {
display: none;
}
.profile-status-chip {
flex-shrink: 0;
}
.profile-list-item__head {
flex-direction: column;
gap: 4px;
}
.profile-list-item__date {
font-size: 11px;
}
.profile-list-item__title {
font-size: var(--text-base, 1rem);
}
.profile-list-item__meta {
gap: 6px;
}
.profile-list-item__action {
margin-left: 0;
width: 100%;
justify-content: center;
}
.profile-list-item__meta-spacer {
display: none;
}
.profile-comment-item__meta {
margin-left: 0;
}
}
@media (max-width: 480px) {
.contact-row { flex-wrap: wrap; }
.contact-row .contact-name { flex: 1 1 100%; }
.contact-icon { flex: 0 0 100%; }
.aksrt-modal__box {
max-width: 96%;
border-radius: 12px;
}
.aksrt-modal__header { padding: 14px 16px; }
.aksrt-modal__box form { padding: 16px; }
.security-action-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.security-action-item > button {
align-self: flex-end;
}
.code-send-btn {
min-width: 94px;
font-size: 12px;
}
.profile-pagination .page-numbers {
min-width: 30px;
height: 30px;
font-size: 12px;
padding: 0 8px;
}
}
/* ============================================================
* v4.0 Zibll-Inspired 用户中心增强
* ============================================================ */
/* 用户统计卡片 */
.user-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 20px;
}
.user-stat-card {
text-align: center;
padding: 16px 8px;
border-radius: 8px;
background: var(--surface-3);
transition: transform 0.2s ease;
}
.user-stat-card:hover {
transform: translateY(-2px);
}
.user-stat-card__value {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-primary);
line-height: 1;
margin-bottom: 4px;
}
.user-stat-card__label {
font-size: 11px;
color: var(--color-ink-4);
}
/* 签到面板 */
.signin-panel {
background: var(--surface-page);
border: 1px solid var(--color-line);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.signin-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.signin-panel__title {
font-size: 0.9375rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 6px;
}
.signin-panel__title i {
color: var(--color-primary);
}
.signin-panel__streak {
font-size: 12px;
color: var(--color-ink-4);
}
.signin-panel__streak strong {
color: var(--color-primary);
}
.signin-panel__btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 20px;
border-radius: 50px;
border: none;
background: var(--color-primary);
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s ease, transform 0.2s ease;
width: 100%;
justify-content: center;
}
.signin-panel__btn:hover {
opacity: 0.9;
transform: translateY(-1px);
}
.signin-panel__btn:disabled,
.signin-panel__btn.is-signed {
background: var(--surface-3);
color: var(--color-ink-4);
cursor: not-allowed;
transform: none;
}
.signin-panel__btn.is-signed i {
color: var(--color-success, #34a853);
}
.signin-panel__reward {
text-align: center;
font-size: 12px;
color: var(--color-ink-4);
margin-top: 8px;
}
/* 签到日历(简化版) */
.signin-calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
margin-top: 12px;
}
.signin-calendar__day {
width: 100%;
aspect-ratio: 1;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
color: var(--color-ink-4);
background: var(--surface-3);
}
.signin-calendar__day.is-signed {
background: var(--color-primary-soft, rgba(240, 68, 148, 0.15));
color: var(--color-primary);
font-weight: 600;
}
.signin-calendar__day.is-today {
border: 2px solid var(--color-primary);
}
/* 用户等级进度条 */
.user-level-bar {
margin-bottom: 16px;
}
.user-level-bar__header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
font-size: 12px;
}
.user-level-bar__label {
font-weight: 600;
color: var(--color-ink);
}
.user-level-bar__exp {
color: var(--color-ink-4);
}
.user-level-bar__track {
height: 6px;
border-radius: 3px;
background: var(--surface-3);
overflow: hidden;
}
.user-level-bar__fill {
height: 100%;
border-radius: 3px;
background: linear-gradient(90deg, var(--color-primary), #667eea);
transition: width 0.5s ease;
}
/* 移动端适配 */
@media (max-width: 640px) {
.user-stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.user-stat-card {
padding: 12px 6px;
}
.user-stat-card__value {
font-size: 1rem;
}
}
/* Zibll-style user tabs: one panel outside, flat rows inside. */
.dashboard--public .profile-list,
.dashboard--public .profile-comment-list,
.uc-content #panel-posts .profile-list,
.uc-content #panel-favorites .profile-list,
.uc-content #panel-comments .profile-comment-list {
gap: 0;
}
.dashboard--public .profile-list-item,
.dashboard--public .profile-comment-item,
.uc-content #panel-posts .profile-list-item,
.uc-content #panel-favorites .profile-list-item,
.uc-content #panel-favorites .profile-list[data-list="favorites"] .profile-list-item,
.uc-content #panel-comments .profile-comment-item {
padding: 16px 0;
background: transparent;
border: 0;
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
border-radius: 0;
box-shadow: none;
}
.dashboard--public .profile-list-item:hover,
.dashboard--public .profile-comment-item:hover,
.uc-content #panel-posts .profile-list-item:hover,
.uc-content #panel-favorites .profile-list-item:hover,
.uc-content #panel-favorites .profile-list[data-list="favorites"] .profile-list-item:hover,
.uc-content #panel-comments .profile-comment-item:hover {
background: transparent;
border-color: var(--color-line-soft, rgba(0,0,0,0.06));
box-shadow: none;
}
.dashboard--public .profile-list-item:first-child,
.dashboard--public .profile-comment-item:first-child,
.uc-content #panel-posts .profile-list-item:first-child,
.uc-content #panel-favorites .profile-list-item:first-child,
.uc-content #panel-comments .profile-comment-item:first-child {
padding-top: 0;
}
.dashboard--public .profile-list-item:last-child,
.dashboard--public .profile-comment-item:last-child,
.uc-content #panel-posts .profile-list-item:last-child,
.uc-content #panel-favorites .profile-list-item:last-child,
.uc-content #panel-comments .profile-comment-item:last-child {
padding-bottom: 0;
border-bottom: 0;
}
.dashboard--public .profile-list[data-list="favorites"] .profile-list-item,
.dashboard--public .profile-list[data-list="favorites"] .profile-list-item:hover {
background: transparent;
border-color: var(--color-line-soft, rgba(0,0,0,0.06));
box-shadow: none;
}
@media (max-width: 640px) {
.dashboard--public .profile-list-item,
.dashboard--public .profile-comment-item,
.uc-content #panel-posts .profile-list-item,
.uc-content #panel-favorites .profile-list-item,
.uc-content #panel-comments .profile-comment-item {
padding: 14px 0;
}
.dashboard--public .profile-list-item:first-child,
.dashboard--public .profile-comment-item:first-child,
.uc-content #panel-posts .profile-list-item:first-child,
.uc-content #panel-favorites .profile-list-item:first-child,
.uc-content #panel-comments .profile-comment-item:first-child {
padding-top: 0;
}
.dashboard--public .profile-list-item:last-child,
.dashboard--public .profile-comment-item:last-child,
.uc-content #panel-posts .profile-list-item:last-child,
.uc-content #panel-favorites .profile-list-item:last-child,
.uc-content #panel-comments .profile-comment-item:last-child {
padding-bottom: 0;
}
}