refactor(profile): restructure profile pages and add new features

This commit is contained in:
shenghuo2
2025-06-21 23:15:19 +08:00
parent f8452b319c
commit ef5eda8cf4
17 changed files with 1242 additions and 34 deletions

179
profile/styles/settings.css Normal file
View File

@ -0,0 +1,179 @@
/* 设置页面专用样式 */
/* 设置页面样式 */
.settings-header {
background: white;
padding: 15px 20px;
border-bottom: 1px solid #f0f0f0;
position: sticky;
top: 0;
z-index: 100;
}
.settings-content {
padding-bottom: 20px;
}
.settings-section {
margin-bottom: 20px;
}
.section-title {
padding: 15px 20px 10px 20px;
font-size: 14px;
color: #666;
font-weight: 500;
}
.settings-item {
background: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
}
.settings-item:last-child {
border-bottom: none;
}
.item-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.item-title {
font-size: 16px;
color: #333;
font-weight: 500;
}
.item-subtitle {
font-size: 14px;
color: #666;
}
.settings-item > i {
color: #ccc;
font-size: 14px;
}
/* 设置项图标 */
.settings-icon {
width: 24px;
height: 24px;
margin-right: 15px;
display: flex;
align-items: center;
justify-content: center;
color: #ff6900;
font-size: 16px;
}
/* 设置项值显示 */
.settings-value {
font-size: 14px;
color: #666;
margin-right: 10px;
}
/* 开关样式 */
.settings-switch {
margin-left: auto;
}
/* 分组标题 */
.settings-group-title {
background: #f8f8f8;
padding: 12px 20px;
font-size: 14px;
color: #666;
font-weight: 500;
border-bottom: 1px solid #f0f0f0;
}
/* 危险操作样式 */
.settings-item.danger .item-title {
color: #ff3b30;
}
.settings-item.danger .settings-icon {
color: #ff3b30;
}
/* 设置项悬停效果 */
.settings-item:hover {
background-color: #f8f8f8;
}
/* 设置项禁用状态 */
.settings-item.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.settings-item.disabled:hover {
background-color: white;
}
/* 设置页面特殊布局 */
.settings-container {
background-color: #f5f5f5;
}
/* 版本信息 */
.version-info {
text-align: center;
padding: 20px;
color: #999;
font-size: 12px;
}
/* 账户信息卡片 */
.account-card {
background: white;
margin: 20px;
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
gap: 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.account-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
}
.account-info {
flex: 1;
}
.account-name {
font-size: 18px;
font-weight: 600;
color: #333;
margin-bottom: 5px;
}
.account-email {
font-size: 14px;
color: #666;
}
.account-arrow {
color: #ccc;
font-size: 14px;
}