/* 🎨 聊天设置页面样式 */ /* CSS变量定义 */ page { --primary-color: #007AFF; --primary-light: #5AC8FA; --primary-dark: #0051D5; --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; --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); } } .chat-settings-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: 80rpx; height: 80rpx; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-medium); transition: all 0.3s ease; } .navbar-left: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; } /* 🎨 设置内容 */ .settings-content { flex: 1; padding: 32rpx; } .settings-section { margin-bottom: 48rpx; } .section-title { margin-bottom: 24rpx; } .section-title .title-text { font-size: 32rpx; font-weight: 600; color: var(--text-primary); } /* 🎨 聊天背景设置 */ .background-options { display: flex; flex-wrap: wrap; gap: 24rpx; } .background-item { display: flex; flex-direction: column; align-items: center; gap: 16rpx; transition: all 0.3s ease; } .background-item:active { transform: scale(0.95); } .background-item.active .background-preview { border: 4rpx solid var(--primary-color); box-shadow: 0 0 0 4rpx rgba(0, 122, 255, 0.2); } .background-preview { width: 160rpx; height: 120rpx; border-radius: var(--radius-medium); border: 2rpx solid var(--border-color); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; overflow: hidden; } .default-bg { background: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 100%); } .custom-bg { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); } .preview-text { font-size: 24rpx; color: var(--text-secondary); font-weight: 500; } .custom-icon { font-size: 48rpx; color: white; } .background-name { font-size: 26rpx; color: var(--text-secondary); text-align: center; } /* 🎨 字体大小设置 */ .font-size-setting { background: var(--surface-color); border-radius: var(--radius-medium); padding: 32rpx; border: 1rpx solid var(--border-color); } .font-size-options { display: flex; gap: 16rpx; margin-bottom: 32rpx; } .font-size-item { flex: 1; height: 80rpx; border-radius: var(--radius-medium); border: 2rpx solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; background: var(--background-color); } .font-size-item:active { transform: scale(0.95); } .font-size-item.active { border-color: var(--primary-color); background: rgba(0, 122, 255, 0.1); } .size-text { font-weight: 600; color: var(--text-primary); } .small-text { font-size: 24rpx; } .medium-text { font-size: 28rpx; } .large-text { font-size: 32rpx; } .xlarge-text { font-size: 36rpx; } .font-preview { padding: 24rpx; background: var(--background-color); border-radius: var(--radius-small); border: 1rpx solid var(--border-color); } .preview-message { background: var(--primary-color); border-radius: var(--radius-medium); padding: 20rpx 24rpx; max-width: 400rpx; } .preview-text { color: white; line-height: 1.4; } .small-font { font-size: 26rpx; } .medium-font { font-size: 30rpx; } .large-font { font-size: 34rpx; } .xlarge-font { font-size: 38rpx; } /* 🎨 设置项 */ .setting-items { background: var(--surface-color); border-radius: var(--radius-medium); border: 1rpx solid var(--border-color); overflow: hidden; } .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: 32rpx; font-weight: 500; color: var(--text-primary); display: block; margin-bottom: 8rpx; } .item-desc { font-size: 26rpx; color: var(--text-secondary); line-height: 1.4; } .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; margin-top: 48rpx; } .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.secondary { background: var(--surface-color); border-color: var(--border-color); } .action-btn.secondary:active { background: var(--background-color); } .btn-text { font-size: 32rpx; font-weight: 600; } .action-btn.primary .btn-text { color: white; } .action-btn.secondary .btn-text { color: var(--text-primary); } /* 🎨 气泡样式选择弹窗 */ .bubble-style-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; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .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 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); } .bubble-options { padding: 32rpx; display: flex; flex-wrap: wrap; gap: 24rpx; } .bubble-option { display: flex; flex-direction: column; align-items: center; gap: 16rpx; transition: all 0.3s ease; } .bubble-option:active { transform: scale(0.95); } .bubble-option.active .bubble-preview { border: 4rpx solid var(--primary-color); box-shadow: 0 0 0 4rpx rgba(0, 122, 255, 0.2); } .bubble-preview { padding: 16rpx 24rpx; border-radius: var(--radius-medium); border: 2rpx solid var(--border-color); transition: all 0.3s ease; } .bubble-preview.classic { background: var(--primary-color); border-radius: 24rpx 24rpx 24rpx 8rpx; } .bubble-preview.modern { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); border-radius: var(--radius-medium); } .bubble-preview.minimal { background: var(--surface-color); border: 2rpx solid var(--primary-color); border-radius: var(--radius-small); } .bubble-text { font-size: 28rpx; color: white; } .bubble-preview.minimal .bubble-text { color: var(--primary-color); } .bubble-name { font-size: 26rpx; color: var(--text-secondary); text-align: center; } /* 📱 响应式设计 */ @media screen and (max-width: 375px) { .settings-content { padding: 24rpx; } .background-preview { width: 120rpx; height: 90rpx; } .font-size-options { gap: 12rpx; } .font-size-item { height: 64rpx; } .setting-item { padding: 24rpx; } } @media screen and (min-width: 414px) { .settings-content { padding: 40rpx; } .background-preview { width: 180rpx; height: 135rpx; } .font-size-item { height: 96rpx; } .setting-item { padding: 40rpx; } }