204 lines
12 KiB
Plaintext
204 lines
12 KiB
Plaintext
/**
|
||
* 我的页 - professional_profile_with_earnings_vip 1:1 还原
|
||
* 设计稿:primary #4FD1C5, vip-gold #C8A146, card-dark #1A1A1A, card-inner #252525
|
||
*/
|
||
|
||
/* 真机适配:底部留足 TabBar + 安全区,避免「我的订单」被遮挡 */
|
||
.page {
|
||
min-height: 100vh;
|
||
background: #121212;
|
||
padding-bottom: calc(220rpx + env(safe-area-inset-bottom, 0px));
|
||
}
|
||
|
||
/* ===== 导航栏(避让右上角系统胶囊) ===== */
|
||
.nav-bar {
|
||
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
|
||
background: rgba(18,18,18,0.9); backdrop-filter: blur(8rpx);
|
||
display: flex; align-items: center;
|
||
min-height: 44px;
|
||
padding: 0 200rpx 0 32rpx; /* 右侧 200rpx 避让真机右上角胶囊 */
|
||
border-bottom: 1rpx solid rgba(255,255,255,0.05);
|
||
}
|
||
.nav-title { font-size: 40rpx; font-weight: bold; color: #4FD1C5; }
|
||
.nav-placeholder { width: 100%; }
|
||
|
||
/* ===== 未登录 ===== */
|
||
.guest-block {
|
||
display: flex; flex-direction: column; align-items: center;
|
||
padding: 64rpx 48rpx;
|
||
}
|
||
.guest-avatar { width: 144rpx; height: 144rpx; border-radius: 50%; background: #1A1A1A; border: 4rpx solid #374151; overflow: hidden; margin-bottom: 24rpx; }
|
||
.guest-avatar-img { width: 100%; height: 100%; display: block; }
|
||
.guest-avatar-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56rpx; font-weight: bold; color: #6B7280; }
|
||
.guest-name { font-size: 36rpx; font-weight: bold; color: #E5E7EB; margin-bottom: 24rpx; }
|
||
.guest-login-btn { padding: 20rpx 48rpx; background: #4FD1C5; color: #000; font-size: 28rpx; font-weight: 600; border-radius: 24rpx; }
|
||
|
||
/* ===== 用户区(设计稿 header) ===== */
|
||
.header-block { padding: 32rpx 40rpx 48rpx; }
|
||
.user-row { display: flex; align-items: center; gap: 32rpx; }
|
||
.avatar-wrap { position: relative; flex-shrink: 0; }
|
||
.avatar-inner {
|
||
width: 130rpx; height: 130rpx; border-radius: 50%; overflow: hidden;
|
||
background: #1C2524; border: 5rpx solid #374151;
|
||
display: flex; align-items: center; justify-content: center;
|
||
}
|
||
.avatar-vip { border-color: #C8A146; box-shadow: 0 0 24rpx rgba(200,161,70,0.4); }
|
||
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||
.avatar-text { font-size: 48rpx; font-weight: bold; color: #6B7280; }
|
||
.vip-badge {
|
||
position: absolute; bottom: -4rpx; right: -4rpx;
|
||
background: linear-gradient(135deg, #E6B84D, #D4A017); color: #000;
|
||
font-size: 18rpx; font-weight: 900; font-style: italic;
|
||
padding: 4rpx 12rpx; border-radius: 8rpx;
|
||
}
|
||
.vip-badge-gray { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }
|
||
.user-actions { display: flex; flex-direction: column; gap: 24rpx; flex-shrink: 0; margin-left: auto; align-items: flex-end; }
|
||
.action-btn { width: 56rpx; height: 56rpx; display: flex; align-items: center; justify-content: center; }
|
||
.action-icon { font-size: 36rpx; color: #4FD1C5; opacity: 0.9; }
|
||
.user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8rpx; }
|
||
.user-name {
|
||
font-size: 44rpx; font-weight: bold; color: #fff;
|
||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
}
|
||
.vip-tags { display: flex; gap: 12rpx; flex-shrink: 0; }
|
||
.vip-tag {
|
||
font-size: 20rpx; padding: 6rpx 12rpx; border-radius: 8rpx;
|
||
border: 1rpx solid #374151; background: rgba(255,255,255,0.05); color: #9CA3AF;
|
||
}
|
||
.vip-tag-active { border-color: #C8A146; background: rgba(200,161,70,0.1); color: #C8A146; }
|
||
.user-id { display: block; font-size: 28rpx; color: #6B7280; }
|
||
.vip-expire { display: block; font-size: 22rpx; color: #6B7280; margin-top: 4rpx; }
|
||
|
||
/* ===== 主内容区 ===== */
|
||
.main-content { padding: 0 32rpx 48rpx; }
|
||
|
||
/* 卡片通用 */
|
||
.card {
|
||
background: #1A1A1A; border-radius: 24rpx; padding: 40rpx;
|
||
margin-bottom: 32rpx; border: 1rpx solid rgba(75,85,99,0.5);
|
||
}
|
||
.card-header { display: flex; align-items: center; gap: 16rpx; margin-bottom: 32rpx; }
|
||
.card-icon { font-size: 40rpx; }
|
||
.card-title { font-size: 32rpx; font-weight: bold; color: #fff; }
|
||
|
||
/* 分享收益 */
|
||
.earnings-grid {
|
||
display: grid; grid-template-columns: 1fr 1fr 1fr;
|
||
text-align: center;
|
||
}
|
||
.earnings-col { padding: 16rpx 0; border-left: 1rpx solid #374151; }
|
||
.earnings-col:first-child { border-left: none; }
|
||
.earnings-val { display: block; font-size: 40rpx; font-weight: bold; }
|
||
.earnings-val.primary { color: #4FD1C5; }
|
||
.earnings-label { display: block; font-size: 24rpx; color: #6B7280; margin-top: 8rpx; }
|
||
|
||
/* 阅读统计 */
|
||
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24rpx; }
|
||
.stat-box {
|
||
background: #252525; border-radius: 20rpx; padding: 20rpx;
|
||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||
aspect-ratio: 2/1;
|
||
}
|
||
.stat-icon { font-size: 40rpx; margin-bottom: 8rpx; color: #4FD1C5; }
|
||
.stat-num { font-size: 36rpx; font-weight: bold; color: #fff; }
|
||
.stat-label { font-size: 20rpx; color: #6B7280; margin-top: 4rpx; }
|
||
|
||
/* 最近阅读 */
|
||
.recent-list { display: flex; flex-direction: column; gap: 24rpx; }
|
||
.recent-item {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 24rpx; background: #252525; border-radius: 20rpx;
|
||
}
|
||
.recent-left { display: flex; align-items: center; gap: 24rpx; overflow: hidden; }
|
||
.recent-index { font-size: 28rpx; color: #6B7280; font-family: monospace; }
|
||
.recent-title { font-size: 28rpx; color: #E5E7EB; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.recent-link { font-size: 24rpx; color: #4FD1C5; font-weight: 500; flex-shrink: 0; }
|
||
.recent-empty { padding: 48rpx; text-align: center; }
|
||
.recent-empty-text { font-size: 28rpx; color: #6B7280; display: block; margin-bottom: 24rpx; }
|
||
.recent-empty-btn { font-size: 28rpx; color: #4FD1C5; }
|
||
|
||
/* 菜单 */
|
||
.menu-card { padding: 0; margin-bottom: 48rpx; overflow: hidden; }
|
||
.menu-item {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 32rpx 40rpx; border-bottom: 1rpx solid #374151;
|
||
}
|
||
.menu-item:last-child { border-bottom: none; }
|
||
.menu-left { display: flex; align-items: center; gap: 24rpx; }
|
||
.menu-icon-wrap {
|
||
width: 48rpx; height: 48rpx; border-radius: 50%;
|
||
display: flex; align-items: center; justify-content: center;
|
||
}
|
||
.menu-icon-wrap .menu-icon { font-size: 32rpx; }
|
||
.icon-teal { background: rgba(79,209,197,0.2); }
|
||
.icon-teal .menu-icon { color: #4FD1C5; }
|
||
.icon-blue { background: rgba(59,130,246,0.2); }
|
||
.icon-blue .menu-icon { color: #3B82F6; }
|
||
.menu-text { font-size: 28rpx; color: #E5E7EB; font-weight: 500; }
|
||
.menu-arrow { font-size: 36rpx; color: #9CA3AF; }
|
||
|
||
/* ===== 弹窗(保留) ===== */
|
||
.modal-overlay {
|
||
position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(20rpx);
|
||
display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 48rpx;
|
||
}
|
||
.modal-content {
|
||
width: 100%; max-width: 640rpx; background: #1c1c1e;
|
||
border-radius: 32rpx; padding: 48rpx; position: relative;
|
||
}
|
||
.modal-close { position: absolute; top: 24rpx; right: 24rpx; width: 64rpx; height: 64rpx; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: rgba(255,255,255,0.6); }
|
||
.login-icon { font-size: 96rpx; text-align: center; display: block; margin-bottom: 24rpx; }
|
||
.login-title { font-size: 36rpx; font-weight: 700; color: #fff; text-align: center; display: block; margin-bottom: 16rpx; }
|
||
.login-desc { font-size: 26rpx; color: rgba(255,255,255,0.6); text-align: center; display: block; margin-bottom: 48rpx; }
|
||
.btn-wechat { width: 100%; display: flex; align-items: center; justify-content: center; gap: 16rpx; padding: 28rpx; background: #07C160; color: #fff; font-size: 28rpx; font-weight: 500; border-radius: 24rpx; margin-bottom: 24rpx; border: none; }
|
||
.btn-wechat::after { border: none; }
|
||
.btn-wechat-icon { width: 40rpx; height: 40rpx; background: rgba(255,255,255,0.2); border-radius: 8rpx; display: flex; align-items: center; justify-content: center; font-size: 24rpx; }
|
||
.login-modal-cancel { margin-top: 24rpx; padding: 24rpx; font-size: 28rpx; color: rgba(255,255,255,0.5); text-align: center; }
|
||
.login-agree-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 32rpx; font-size: 22rpx; }
|
||
.agree-checkbox { width: 32rpx; height: 32rpx; border: 2rpx solid rgba(255,255,255,0.5); border-radius: 6rpx; margin-right: 12rpx; display: flex; align-items: center; justify-content: center; font-size: 22rpx; color: #fff; flex-shrink: 0; }
|
||
.agree-checked { background: #4FD1C5; border-color: #4FD1C5; }
|
||
.agree-text { color: rgba(255,255,255,0.6); }
|
||
.agree-link { color: #4FD1C5; text-decoration: underline; padding: 0 4rpx; }
|
||
.btn-wechat-disabled { opacity: 0.6; }
|
||
|
||
/* 头像弹窗 */
|
||
.avatar-modal .avatar-modal-title { display: block; font-size: 36rpx; font-weight: bold; color: #fff; text-align: center; margin-bottom: 16rpx; }
|
||
.avatar-modal .avatar-modal-desc { display: block; font-size: 26rpx; color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 32rpx; }
|
||
.avatar-modal .btn-choose-avatar {
|
||
width: 100%; height: 88rpx; margin: 0 0 24rpx 0; padding: 0;
|
||
display: flex; align-items: center; justify-content: center;
|
||
background: #4FD1C5; color: #000; font-size: 30rpx; font-weight: 600;
|
||
border-radius: 44rpx; border: none;
|
||
}
|
||
.avatar-modal .btn-choose-avatar::after { border: none; }
|
||
.avatar-modal .avatar-modal-cancel { display: block; text-align: center; font-size: 28rpx; color: rgba(255,255,255,0.5); padding: 16rpx; }
|
||
|
||
/* 手机/微信号弹窗 */
|
||
.contact-modal-overlay { background: rgba(0,0,0,0.85); backdrop-filter: blur(8rpx); }
|
||
.contact-modal { width: 90%; max-width: 600rpx; background: #1A1A1A; border-radius: 48rpx; padding: 48rpx 40rpx; border: 1rpx solid rgba(255,255,255,0.1); }
|
||
.contact-modal-title { display: block; text-align: center; font-size: 40rpx; font-weight: bold; color: #fff; margin-bottom: 16rpx; }
|
||
.contact-modal-hint { display: block; font-size: 24rpx; color: #9CA3AF; text-align: center; margin-bottom: 40rpx; }
|
||
.form-input-wrap { margin-bottom: 32rpx; }
|
||
.form-label { display: block; font-size: 24rpx; color: #9CA3AF; margin-bottom: 12rpx; margin-left: 8rpx; }
|
||
.form-input-inner { display: flex; align-items: center; padding: 24rpx 32rpx; background: #262626; border-radius: 24rpx; }
|
||
.form-input-inner .form-icon { font-size: 36rpx; margin-right: 16rpx; opacity: 0.7; }
|
||
.form-input-inner .form-input { flex: 1; font-size: 28rpx; color: #fff; background: transparent; }
|
||
.contact-modal-btn { width: 100%; height: 96rpx; line-height: 96rpx; text-align: center; background: #4FD1C5; color: #000; font-size: 32rpx; font-weight: bold; border-radius: 24rpx; margin-top: 16rpx; }
|
||
.contact-modal-btn[disabled] { opacity: 0.6; }
|
||
.contact-modal-cancel { display: block; text-align: center; font-size: 28rpx; color: #9CA3AF; margin-top: 24rpx; padding: 16rpx; }
|
||
|
||
/* 昵称弹窗 */
|
||
.nickname-modal .modal-header { display: flex; align-items: center; gap: 16rpx; margin-bottom: 32rpx; }
|
||
.nickname-modal .modal-icon { font-size: 48rpx; }
|
||
.nickname-modal .modal-title { font-size: 36rpx; font-weight: bold; }
|
||
.nickname-input-wrap { margin-bottom: 32rpx; }
|
||
.nickname-input { width: 100%; padding: 24rpx; background: #262626; border-radius: 20rpx; font-size: 28rpx; color: #fff; box-sizing: border-box; }
|
||
.input-tip { display: block; font-size: 22rpx; color: #9CA3AF; margin-top: 12rpx; }
|
||
.modal-actions { display: flex; gap: 24rpx; }
|
||
.modal-btn { flex: 1; height: 80rpx; line-height: 80rpx; text-align: center; border-radius: 20rpx; font-size: 28rpx; }
|
||
.modal-btn-cancel { background: rgba(255,255,255,0.1); color: #fff; }
|
||
.modal-btn-confirm { background: #4FD1C5; color: #000; font-weight: 600; }
|
||
|
||
/* 底部留白:配合 page padding-bottom,避免内容被 TabBar 遮挡 */
|
||
.bottom-space { height: calc(80rpx + env(safe-area-inset-bottom, 0px)); }
|