findme-miniprogram-frontend/subpackages/group/group-members/group-members.wxss

786 lines
14 KiB
Text
Raw Normal View History

2025-12-27 17:16:03 +08:00
/* 👥 群成员管理页面样式 */
/* CSS变量定义 */
page {
--primary-color: #007AFF;
--primary-light: #5AC8FA;
--primary-dark: #0051D5;
--success-color: #34C759;
--danger-color: #FF3B30;
--warning-color: #FF9500;
--background-color: #F2F2F7;
--surface-color: #FFFFFF;
--text-primary: #000000;
--text-secondary: #8E8E93;
--text-tertiary: #C7C7CC;
--border-color: #E5E5EA;
--shadow-light: 0 1rpx 3rpx rgba(0, 0, 0, 0.1);
--shadow-medium: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
--radius-small: 8rpx;
--radius-medium: 12rpx;
--radius-large: 20rpx;
}
/* 🌙 深色模式支持 */
@media (prefers-color-scheme: dark) {
page {
--primary-color: #0A84FF;
--primary-light: #64D2FF;
--primary-dark: #0056CC;
--success-color: #30D158;
--danger-color: #FF453A;
--warning-color: #FF9F0A;
--background-color: #000000;
--surface-color: #1C1C1E;
--text-primary: #FFFFFF;
--text-secondary: #8E8E93;
--text-tertiary: #48484A;
--border-color: #38383A;
--shadow-light: 0 1rpx 3rpx rgba(0, 0, 0, 0.3);
--shadow-medium: 0 4rpx 12rpx rgba(0, 0, 0, 0.4);
}
}
.group-members-container {
height: 100vh;
background: var(--background-color);
display: flex;
flex-direction: column;
}
/* 🎨 自定义导航栏 */
.custom-navbar {
/* background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); */
/* box-shadow: var(--shadow-medium); */
z-index: 1000;
box-sizing: border-box;
background-color: black;
/* border: 10px solid red; */
}
.navbar-content {
display: flex;
align-items: center;
box-sizing: border-box;
/* border: 2px solid rgb(6, 235, 101); */
width: 80%;
}
.navbar-aran{
width: 96%;
/* border: 1px solid black; */
display: flex;
justify-content: space-between;
align-items: center;
text-align: center;
}
.navbar-left, .navbar-right {
margin-left: 10rpx;
border-radius: var(--radius-medium);
transition: all 0.3s ease;
}
/* .navbar-left {
justify-content: flex-start;
} */
/* .navbar-right {
justify-content: flex-end;
} */
/* .navbar-left:active, .navbar-right:active {
background: rgba(255, 255, 255, 0.2);
transform: scale(0.95);
} */
.back-icon {
width: 34rpx;
height: 34rpx;
}
.menu-icon{
width: 40rpx;
height: 40rpx;
vertical-align: bottom;
}
.navbar-title {
display: flex;
justify-content:center;
/* width: 400rpx; */
padding-left: 180rpx;
/* border: 1px solid red; */
}
.title-text {
font-size: 32rpx;
font-weight: 700;
color: white;
/* padding-left: 40rpx; */
}
.members-conten{
background-color: black;
height: 100vh;
/* border: 1px solid red; */
color: white;
}
.conten-aran{
/* border: 1px solid white; */
}
.members-aran-img{
/* border: 1px solid red; */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 10rpx;
margin-top: 20rpx;
}
.aran-img{
width: 120rpx;
height: 120rpx;
border-radius: 24rpx;
}
.aran-edit{
width: 32rpx;
height: 32rpx;
gap: 24rpx;
}
.member-text-conten{
/* border: 1px solid rgb(9, 240, 97); */
display: flex;
justify-content: start;
align-items: center;
width: 90%;
margin: 10rpx auto;
}
.member-count{
background: linear-gradient(to bottom, #FF6460, #EC42C8 14.28%, #435CFF 64%, #00D5FF 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-size: 32rpx;
font-weight: 700;
}
.text-conten{
display: flex;
justify-content: center;
align-items: center;
gap: 10rpx;
}
.member-action{
display: flex;
justify-content: center;
align-items: center;
gap: 60rpx;
/* border: 1px solid rgb(9, 240, 97); */
width: 90%;
margin: 20rpx auto;
}
.member-btn{
width: 320rpx;
height: 80rpx;
background: linear-gradient(87.7deg, rgba(104, 249, 254, 0.9) 2.48%, rgba(170, 147, 237, 0.9) 98.18%);
border-radius: 40rpx;
display: flex;
justify-content: center;
align-items: center;
font-weight: 700;
font-size: 32rpx;
color: black;
}
.member-out{
height: 100vh;
/* border: 10px solid darkcyan; */
background: #111D25;
}
.scroll-container{
height: 80vh;
width: 100%;
/* border: 1px solid red; */
}
.member-arrs{
box-sizing: border-box;
width: 700rpx;
margin-left: 25rpx;
margin-top: 20rpx;
padding-bottom: 200rpx;
}
.arrs-aran{
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
margin: 10rpx auto;
background: #FFFFFF1A;
border-radius: 24rpx;
padding: 16rpx;
}
.aran-img-avatar{
width: 100rpx;
height: 100rpx;
border-radius: 24rpx;
vertical-align: bottom;
}
.arrs-aran-title{
width: 380rpx;
height: 36rpx;
font-weight: 700;
font-family: 'SF Pro';
font-size: 32rpx;
color: #F4F6FA;
}
.arrs-aran-selected{
width: 48rpx;
height: 48rpx;
opacity: 1;
border-radius: 6px;
box-sizing: border-box;
border: 4rpx solid #F4F0EB;
display: flex;
justify-content: center;
align-items: center;
margin-right: 50rpx;
}
.aran-selected{
width: 24rpx;
height: 24rpx;
opacity: 1;
border-radius: 4rpx;
background: #4DD1A1;
}
.invite-text {
font-size: 32rpx;
color: white;
font-weight: 500;
}
/* 🎨 页面内容 */
.page-content {
flex: 1;
display: flex;
flex-direction: column;
}
/* 🎨 搜索栏 */
.search-container {
padding: 24rpx 32rpx;
background: var(--surface-color);
border-bottom: 1rpx solid var(--border-color);
}
.search-input-wrapper {
display: flex;
align-items: center;
background: var(--background-color);
border: 1rpx solid var(--border-color);
border-radius: var(--radius-small);
padding: 0 24rpx;
transition: all 0.3s ease;
}
.search-input-wrapper:focus-within {
border-color: var(--primary-color);
box-shadow: 0 0 0 4rpx rgba(0, 122, 255, 0.1);
}
.search-icon {
font-size: 28rpx;
color: var(--text-secondary);
margin-right: 16rpx;
}
.search-input {
flex: 1;
height: 80rpx;
font-size: 28rpx;
color: var(--text-primary);
}
.clear-search {
width: 48rpx;
height: 48rpx;
border-radius: 24rpx;
background: var(--text-tertiary);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.clear-search:active {
transform: scale(0.9);
}
.clear-icon {
font-size: 24rpx;
color: white;
}
/* 🎨 筛选标签 */
.filter-container {
background: var(--surface-color);
border-bottom: 1rpx solid var(--border-color);
}
.filter-tabs {
display: flex;
padding: 0 32rpx;
}
.filter-tab {
flex: 1;
height: 88rpx;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 4rpx solid transparent;
transition: all 0.3s ease;
}
.filter-tab:active {
background: var(--background-color);
}
.filter-tab.active {
border-bottom-color: var(--primary-color);
}
.tab-text {
font-size: 28rpx;
color: var(--text-secondary);
font-weight: 500;
}
.filter-tab.active .tab-text {
color: var(--primary-color);
font-weight: 600;
}
/* 🎨 成员列表 */
.members-list {
flex: 1;
background: var(--surface-color);
}
.member-section {
margin-bottom: 32rpx;
}
.section-title {
padding: 24rpx 32rpx 16rpx;
background: var(--background-color);
border-bottom: 1rpx solid var(--border-color);
}
.section-title .title-text {
font-size: 26rpx;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 1rpx;
}
.member-item {
display: flex;
align-items: center;
padding: 24rpx 32rpx;
border-bottom: 1rpx solid var(--border-color);
transition: all 0.2s ease;
}
.member-item:last-child {
border-bottom: none;
}
.member-item:active {
background: var(--background-color);
}
.member-item.owner {
background: rgba(255, 149, 0, 0.05);
}
.member-item.admin {
background: rgba(0, 122, 255, 0.05);
}
.member-avatar-container {
position: relative;
margin-right: 24rpx;
}
.member-avatar {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
border: 2rpx solid var(--border-color);
}
.role-badge {
position: absolute;
bottom: -6rpx;
right: -6rpx;
padding: 4rpx 8rpx;
border-radius: 12rpx;
border: 2rpx solid var(--surface-color);
}
.role-badge.owner {
background: var(--warning-color);
}
.role-badge.admin {
background: var(--primary-color);
}
.role-text {
font-size: 20rpx;
color: white;
font-weight: 600;
}
.member-info {
flex: 1;
min-width: 0;
}
.member-name {
font-size: 32rpx;
font-weight: 500;
color: var(--text-primary);
display: block;
margin-bottom: 8rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-status {
font-size: 26rpx;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-actions {
display: flex;
align-items: center;
gap: 16rpx;
}
.action-btn {
width: 64rpx;
height: 64rpx;
border-radius: 32rpx;
background: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.action-btn:active {
background: var(--border-color);
transform: scale(0.9);
}
.action-icon {
font-size: 28rpx;
color: var(--text-secondary);
}
.action-arrow {
font-size: 32rpx;
color: var(--text-tertiary);
font-weight: 300;
}
/* 🎨 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 40rpx;
text-align: center;
}
.empty-icon {
font-size: 120rpx;
margin-bottom: 24rpx;
opacity: 0.5;
}
.empty-text {
font-size: 28rpx;
color: var(--text-secondary);
}
/* 🎨 成员操作弹窗 */
.member-action-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: flex-end;
animation: fadeIn 0.3s ease-out;
}
.modal-content {
width: 100%;
background: var(--surface-color);
border-radius: var(--radius-large) var(--radius-large) 0 0;
box-shadow: var(--shadow-medium);
animation: slideUp 0.3s ease-out;
overflow: hidden;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx;
border-bottom: 1rpx solid var(--border-color);
}
.member-info-header {
display: flex;
align-items: center;
flex: 1;
}
.member-avatar-large {
width: 120rpx;
height: 120rpx;
border-radius: 60rpx;
border: 2rpx solid var(--border-color);
margin-right: 24rpx;
}
.member-details {
flex: 1;
min-width: 0;
}
.member-name-large {
font-size: 36rpx;
font-weight: 600;
color: var(--text-primary);
display: block;
margin-bottom: 8rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-role-text {
font-size: 28rpx;
color: var(--text-secondary);
}
.close-btn {
width: 64rpx;
height: 64rpx;
border-radius: 32rpx;
background: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.close-btn:active {
background: var(--border-color);
transform: scale(0.9);
}
.close-icon {
font-size: 28rpx;
color: var(--text-secondary);
}
.action-list {
padding: 24rpx 0;
}
.action-item {
display: flex;
align-items: center;
padding: 32rpx;
transition: all 0.2s ease;
}
.action-item:active {
background: var(--background-color);
}
.action-item.danger {
background: rgba(255, 59, 48, 0.05);
}
.action-item.danger:active {
background: rgba(255, 59, 48, 0.1);
}
.action-icon-wrapper {
width: 80rpx;
height: 80rpx;
border-radius: 40rpx;
background: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
}
.action-item.danger .action-icon-wrapper {
background: rgba(255, 59, 48, 0.1);
}
.action-item .action-icon {
font-size: 32rpx;
color: var(--text-primary);
}
.action-item.danger .action-icon {
color: var(--danger-color);
}
.action-title {
font-size: 32rpx;
color: var(--text-primary);
font-weight: 500;
}
.action-item.danger .action-title {
color: var(--danger-color);
}
/* 🎨 加载状态 */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.loading-content {
background: var(--surface-color);
border-radius: var(--radius-medium);
padding: 48rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 24rpx;
box-shadow: var(--shadow-medium);
}
.loading-spinner {
width: 60rpx;
height: 60rpx;
border: 4rpx solid var(--border-color);
border-top: 4rpx solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 28rpx;
color: var(--text-primary);
font-weight: 500;
}
/* 📱 响应式设计 */
@media screen and (max-width: 375px) {
.search-container,
.member-item {
padding-left: 24rpx;
padding-right: 24rpx;
}
.member-avatar {
width: 80rpx;
height: 80rpx;
border-radius: 40rpx;
}
.member-avatar-large {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
}
}
@media screen and (min-width: 414px) {
.search-container,
.member-item {
padding-left: 40rpx;
padding-right: 40rpx;
}
.member-avatar {
width: 112rpx;
height: 112rpx;
border-radius: 56rpx;
}
.member-avatar-large {
width: 140rpx;
height: 140rpx;
border-radius: 70rpx;
}
}