/* 👥 群成员管理页面样式 */ /* 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; } .navbar-content { display: flex; align-items: center; justify-content: space-between; padding: 0 32rpx; } .navbar-left, .navbar-right { width: 120rpx; height: 80rpx; display: flex; align-items: center; 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 { font-size: 48rpx; color: white; font-weight: 300; } .navbar-title { flex: 1; text-align: center; } .title-text { font-size: 36rpx; font-weight: 600; color: white; } .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; } }