250 lines
3.4 KiB
Plaintext
250 lines
3.4 KiB
Plaintext
/* pages/settings/settings.wxss */
|
|
|
|
.container {
|
|
padding: 0;
|
|
background: transparent;
|
|
/* 确保顶部有足够的安全区 */
|
|
padding-top: max(env(safe-area-inset-top), 16px);
|
|
/* 确保底部有足够的安全区 */
|
|
padding-bottom: max(env(safe-area-inset-bottom), 80px);
|
|
}
|
|
|
|
/* 顶部标题 */
|
|
.header-section {
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header-title {
|
|
display: block;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.header-subtitle {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
/* 应用信息 */
|
|
.app-info-section {
|
|
padding: 0 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.app-info-card {
|
|
background: #ffffff;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.app-info {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.app-icon {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.app-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.app-name {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.app-version {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.app-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.stat-item {
|
|
font-size: 11px;
|
|
color: #999;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
/* 设置区域 */
|
|
.settings-section {
|
|
padding: 0 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-header {
|
|
margin-bottom: 12px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.settings-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.setting-item {
|
|
background: #ffffff;
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.setting-item:active {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.setting-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.setting-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.setting-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.setting-label.danger {
|
|
color: #e34d59;
|
|
}
|
|
|
|
.setting-desc {
|
|
font-size: 11px;
|
|
color: #999;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* 对话框样式 */
|
|
.about-content {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.about-header {
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.about-title {
|
|
display: block;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 8px 0 2px;
|
|
}
|
|
|
|
.about-version {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.about-desc {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #666;
|
|
line-height: 1.4;
|
|
margin-bottom: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.about-features {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.feature-item {
|
|
font-size: 12px;
|
|
color: #333;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.backup-content {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.backup-desc {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.backup-data {
|
|
background: #f5f5f5;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.backup-text {
|
|
font-size: 10px;
|
|
color: #333;
|
|
font-family: monospace;
|
|
word-break: break-all;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* 动画效果 */
|
|
.fade-in {
|
|
animation: fadeIn 0.5s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 375px) {
|
|
.app-stats {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|