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

832 lines
14 KiB
Text
Raw Permalink 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-info-container {
min-height: 100vh;
background: var(--background-color);
display: flex;
flex-direction: column;
padding-bottom: env(safe-area-inset-bottom);
box-sizing: border-box;
}
/* 🎨 自定义导航栏 */
.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: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-medium);
transition: all 0.3s ease;
}
.navbar-left:active, .navbar-right:active {
background: rgba(255, 255, 255, 0.2);
transform: scale(0.95);
}
.back-icon, .more-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;
}
/* 🎨 页面内容 */
.page-content {
flex: 1;
padding: 32rpx;
}
/* 🎨 群基本信息 */
.group-basic-info {
background: var(--surface-color);
border-radius: var(--radius-medium);
padding: 32rpx;
margin-bottom: 32rpx;
border: 1rpx solid var(--border-color);
box-shadow: var(--shadow-light);
}
.group-header {
display: flex;
align-items: flex-start;
margin-bottom: 32rpx;
}
.group-avatar-container {
position: relative;
margin-right: 32rpx;
}
.group-avatar {
width: 160rpx;
height: 160rpx;
border-radius: var(--radius-large);
border: 2rpx solid var(--border-color);
}
.edit-avatar-btn {
position: absolute;
bottom: -8rpx;
right: -8rpx;
width: 56rpx;
height: 56rpx;
border-radius: 28rpx;
background: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
border: 2rpx solid var(--surface-color);
transition: all 0.3s ease;
}
.edit-avatar-btn:active {
transform: scale(0.9);
}
.edit-icon {
font-size: 28rpx;
color: white;
}
.group-name-section {
flex: 1;
min-width: 0;
}
.group-name-container {
display: flex;
align-items: center;
margin-bottom: 16rpx;
transition: all 0.3s ease;
}
.group-name-container:active {
opacity: 0.7;
}
.group-name {
font-size: 40rpx;
font-weight: 600;
color: var(--text-primary);
margin-right: 16rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
.edit-name-icon {
font-size: 28rpx;
color: var(--text-secondary);
}
.group-id, .member-count {
font-size: 26rpx;
color: var(--text-secondary);
display: block;
margin-bottom: 8rpx;
}
.group-description, .group-announcement {
margin-top: 24rpx;
padding-top: 24rpx;
border-top: 1rpx solid var(--border-color);
}
.desc-header, .announcement-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
}
.desc-title, .announcement-title {
font-size: 28rpx;
font-weight: 500;
color: var(--text-primary);
}
.edit-desc-btn, .edit-announcement-btn {
font-size: 26rpx;
color: var(--primary-color);
transition: all 0.3s ease;
}
.edit-desc-btn:active, .edit-announcement-btn:active {
opacity: 0.7;
}
.desc-content, .announcement-content {
font-size: 28rpx;
color: var(--text-secondary);
line-height: 1.5;
word-break: break-all;
}
.announcement-time {
font-size: 24rpx;
color: var(--text-tertiary);
margin-top: 12rpx;
display: block;
}
/* 🎨 群成员 */
.group-members-section {
background: var(--surface-color);
border-radius: var(--radius-medium);
padding: 32rpx;
margin-bottom: 32rpx;
border: 1rpx solid var(--border-color);
box-shadow: var(--shadow-light);
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
}
.section-title {
font-size: 32rpx;
font-weight: 600;
color: var(--text-primary);
}
.header-actions {
display: flex;
gap: 24rpx;
}
.action-btn {
font-size: 26rpx;
color: var(--primary-color);
transition: all 0.3s ease;
}
.action-btn:active {
opacity: 0.7;
}
.members-grid {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
}
.member-item {
display: flex;
flex-direction: column;
align-items: center;
width: 120rpx;
transition: all 0.3s ease;
}
.member-item:active {
transform: scale(0.95);
}
.invite-item {
opacity: 0.8;
}
.member-avatar-container {
position: relative;
margin-bottom: 12rpx;
}
.member-avatar, .invite-avatar {
width: 80rpx;
height: 80rpx;
border-radius: 40rpx;
border: 1rpx solid var(--border-color);
}
.invite-avatar {
background: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
}
.invite-icon {
font-size: 32rpx;
color: var(--text-secondary);
}
.role-badge {
position: absolute;
bottom: -6rpx;
right: -6rpx;
padding: 4rpx 8rpx;
border-radius: 12rpx;
border: 1rpx 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: 500;
}
.member-name {
font-size: 24rpx;
color: var(--text-primary);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
/* 🎨 群功能 */
.group-functions-section {
background: var(--surface-color);
border-radius: var(--radius-medium);
margin-bottom: 32rpx;
border: 1rpx solid var(--border-color);
box-shadow: var(--shadow-light);
overflow: hidden;
}
.function-items {
display: flex;
flex-direction: column;
}
.function-item {
display: flex;
align-items: center;
padding: 32rpx;
border-bottom: 1rpx solid var(--border-color);
transition: all 0.2s ease;
}
.function-item:last-child {
border-bottom: none;
}
.function-item:active {
background: var(--background-color);
}
.function-icon {
width: 64rpx;
height: 64rpx;
border-radius: 32rpx;
background: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
font-size: 32rpx;
}
.function-title {
flex: 1;
font-size: 30rpx;
color: var(--text-primary);
}
.function-arrow {
font-size: 32rpx;
color: var(--text-tertiary);
font-weight: 300;
}
/* 🎨 群设置 */
.group-settings-section {
background: var(--surface-color);
border-radius: var(--radius-medium);
margin-bottom: 32rpx;
border: 1rpx solid var(--border-color);
box-shadow: var(--shadow-light);
overflow: hidden;
}
.setting-items {
display: flex;
flex-direction: column;
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx;
border-bottom: 1rpx solid var(--border-color);
transition: all 0.2s ease;
}
.setting-item:last-child {
border-bottom: none;
}
.setting-item:active {
background: var(--background-color);
}
.item-info {
flex: 1;
min-width: 0;
}
.item-title {
font-size: 30rpx;
color: var(--text-primary);
}
.setting-switch {
transform: scale(0.8);
}
.item-arrow {
font-size: 32rpx;
color: var(--text-tertiary);
font-weight: 300;
}
/* 🎨 操作按钮 */
.action-buttons {
display: flex;
flex-direction: column;
gap: 24rpx;
}
.action-btn {
height: 96rpx;
border-radius: var(--radius-medium);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
border: 2rpx solid transparent;
}
.action-btn:active {
transform: scale(0.98);
}
.action-btn.primary {
background: var(--primary-color);
box-shadow: var(--shadow-medium);
}
.action-btn.primary:active {
background: var(--primary-dark);
}
.action-btn.danger {
background: var(--danger-color);
box-shadow: var(--shadow-medium);
}
.action-btn.danger:active {
background: #E6342A;
}
.btn-text {
font-size: 32rpx;
font-weight: 600;
color: white;
}
/* 🎨 二维码弹窗 */
.qr-code-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: center;
justify-content: center;
animation: fadeIn 0.3s ease-out;
}
.modal-content {
width: 90%;
max-width: 600rpx;
background: var(--surface-color);
border-radius: var(--radius-large);
box-shadow: var(--shadow-medium);
animation: scaleIn 0.3s ease-out;
overflow: hidden;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes scaleIn {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx;
border-bottom: 1rpx solid var(--border-color);
}
.modal-title {
font-size: 36rpx;
font-weight: 600;
color: var(--text-primary);
}
.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);
}
.qr-code-container {
display: flex;
justify-content: center;
padding: 48rpx;
}
.qr-code-canvas {
border: 1rpx solid var(--border-color);
border-radius: var(--radius-small);
}
.qr-code-info {
text-align: center;
padding: 0 32rpx 32rpx;
}
.qr-info-text {
font-size: 28rpx;
color: var(--text-secondary);
display: block;
margin-bottom: 12rpx;
}
.qr-group-name {
font-size: 32rpx;
font-weight: 600;
color: var(--text-primary);
}
.qr-code-actions {
display: flex;
border-top: 1rpx solid var(--border-color);
}
.qr-action-btn {
flex: 1;
height: 96rpx;
display: flex;
align-items: center;
justify-content: center;
border-right: 1rpx solid var(--border-color);
transition: all 0.2s ease;
}
.qr-action-btn:last-child {
border-right: none;
}
.qr-action-btn:active {
background: var(--background-color);
}
.action-text {
font-size: 30rpx;
color: var(--primary-color);
font-weight: 500;
}
/* 🎨 编辑弹窗 */
.edit-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: center;
justify-content: center;
animation: fadeIn 0.3s ease-out;
}
.modal-body {
padding: 32rpx;
}
.edit-input, .edit-textarea {
width: 100%;
padding: 24rpx;
border: 1rpx solid var(--border-color);
border-radius: var(--radius-small);
font-size: 30rpx;
color: var(--text-primary);
background: var(--background-color);
transition: all 0.3s ease;
}
.edit-input:focus, .edit-textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 4rpx rgba(0, 122, 255, 0.1);
}
.edit-textarea {
min-height: 120rpx;
resize: none;
}
.input-counter {
display: flex;
justify-content: flex-end;
margin-top: 8rpx;
}
.counter-text {
font-size: 24rpx;
color: var(--text-tertiary);
}
.modal-actions {
display: flex;
border-top: 1rpx solid var(--border-color);
}
.modal-btn {
flex: 1;
height: 96rpx;
display: flex;
align-items: center;
justify-content: center;
border-right: 1rpx solid var(--border-color);
transition: all 0.2s ease;
}
.modal-btn:last-child {
border-right: none;
}
.modal-btn:active {
background: var(--background-color);
}
.modal-btn.cancel .btn-text {
color: var(--text-secondary);
}
.modal-btn.confirm .btn-text {
color: var(--text-tertiary);
}
.modal-btn.confirm.active .btn-text {
color: var(--primary-color);
font-weight: 600;
}
/* 🎨 加载状态 */
.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) {
.page-content {
padding: 24rpx;
}
.group-basic-info,
.group-members-section,
.group-functions-section,
.group-settings-section {
padding: 24rpx;
margin-bottom: 24rpx;
}
.group-avatar {
width: 120rpx;
height: 120rpx;
}
.member-avatar, .invite-avatar {
width: 64rpx;
height: 64rpx;
border-radius: 32rpx;
}
.member-item {
width: 96rpx;
}
}
@media screen and (min-width: 414px) {
.page-content {
padding: 40rpx;
}
.group-basic-info,
.group-members-section,
.group-functions-section,
.group-settings-section {
padding: 40rpx;
margin-bottom: 40rpx;
}
.group-avatar {
width: 180rpx;
height: 180rpx;
}
.member-avatar, .invite-avatar {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
}
.member-item {
width: 140rpx;
}
}