miniprogramme/pages/settingss/settingss.wxss
2025-09-12 16:08:17 +08:00

190 lines
No EOL
3.9 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 修复标题位置的关键样式 */
/* 页面容器 */
.settings-container {
width: 100%;
height: 100vh;
background: #000000;
display: flex;
flex-direction: column;
/* color: #ffffff; */
}
/* 导航栏样式 - 移除固定高度设置由JS动态控制 */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
/* background-color: #1a1a1a; */
/* border-bottom: 1px solid #333333; */
z-index: 10;
box-sizing: content-box; /* 确保padding不会影响总高度计算 */
}
.back-btn {
width: 48px;
display: flex;
align-items: center;
justify-content: center;
}
.icon {
font-size: 20px;
color: #ffffff;
}
.title {
flex: 1;
text-align: center;
font-size: 34rpx;
font-weight: 500;
color: #ffffff;
}
/* 滚动内容区 */
.settings-content {
flex: 1;
width: 100%;
box-sizing: border-box;
padding-left: 30rpx;
padding-right: 30rpx;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
/* 菜单组样式 */
.menu-group {
background-color: #1a1a1a; /* 深色卡片背景,与黑色区分 */
border-radius: 20rpx;
margin-bottom: 30rpx;
overflow: hidden;
}
/* 组标题 */
.group-header {
display: flex;
align-items: center;
padding: 30rpx 30rpx 20rpx;
}
.group-icon {
font-size: 36rpx;
margin-right: 20rpx;
color: #ffffff;
}
.group-title {
color: #ffffff;
font-size: 30rpx;
font-weight: 500;
}
/* 菜单项 */
.menu-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 25rpx 30rpx;
border-top: 1px solid #333333; /* 浅色边框,区分菜单项 */
}
.menu-item:first-child {
border-top: none; /* 第一个菜单项去掉上边框 */
}
/* 菜单图标 */
.menu-icon {
font-size: 36rpx;
margin-right: 25rpx;
width: 40rpx; /* 固定宽度,避免图标大小不一导致错位 */
text-align: center;
}
.security { color: #4CAF50; }
.privacy { color: #2196F3; }
.theme { color: #FFC107; }
.notification { color: #FF9800; }
.language { color: #9C27B0; }
.chat { color: #E91E63; }
.feedback { color: #00BCD4; }
.about { color: #673AB7; }
/* 菜单内容 */
.menu-content {
flex: 1; /* 占满剩余空间 */
min-width: 0; /* 解决文字过长溢出问题 */
}
.menu-title {
color: #ffffff;
font-size: 30rpx;
display: block; /* 标题单独一行 */
margin-bottom: 5rpx;
}
.menu-subtitle {
color: #aaaaaa; /* 浅色副标题 */
font-size: 24rpx;
}
/* 菜单状态文本 */
.menu-status {
margin-right: 20rpx;
color: rgb(255, 255, 255);
}
.status-text {
font-size: 26rpx;
padding: 5rpx 15rpx;
border-radius: 20rpx;
}
.safe {
color: #dadada;
background-color: rgba(76, 175, 80, 0.1); /* 浅色背景 */
}
/* 菜单箭头 */
.menu-arrow {
color: #666666;
font-size: 30rpx;
}
/* 退出登录按钮 */
.logout-section {
padding: 40rpx 30rpx;
}
.logout-btn {
width: 100%;
height: 90rpx;
line-height: 90rpx;
/* 深蓝色到深灰色的渐变背景 */
background: linear-gradient(135deg, #044db4 0%, #156301 100%);
color: #ffffff;
font-size: 32rpx;
border-radius: 45rpx;
text-align: center;
padding: 0;
border: none;
outline: none;
/* 沙粒纹理效果 */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
/* 增加质感和深度的阴影 */
box-shadow: 0 4px 6px -1px rgb(48, 51, 238),
inset 0 1px 0 rgb(255, 0, 0);
/* 过渡动画效果 */
transition: all 0.2s ease;
}
/* 点击效果 */
.logout-btn:active {
/* 点击时略微缩小 */
transform: scale(0.98);
/* 加深背景色 */
background: linear-gradient(135deg, #1d69d3 0%, #273140 100%);
/* 增强阴影 */
box-shadow: 0 2px 4px -1px rgba(250, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 底部安全区域(适配全面屏底部) */
.bottom-space {
height: 60rpx;
}