Files
banban/banban-mini/src/pages/sleep/index.scss
2026-05-09 16:50:42 +08:00

467 lines
6.9 KiB
SCSS

.manage-page {
min-height: 100%;
background: #F5F7FA;
padding-bottom: 120px;
padding-bottom: calc(120px + constant(safe-area-inset-bottom));
padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.page-header {
padding: 80px 32px 24px;
.page-title {
font-size: 44px;
font-weight: 700;
color: #1A1A1A;
display: block;
}
}
.user-card {
background: #FFFFFF;
border-radius: 20px;
margin: 0 24px 24px;
padding: 28px 24px;
display: flex;
align-items: center;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
.user-avatar {
width: 100px;
height: 100px;
background: #FEF3E8;
border-radius: 24px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 22px;
flex-shrink: 0;
.avatar-img {
font-size: 52px;
}
}
.user-info {
flex: 1;
.user-name {
font-size: 34px;
font-weight: 600;
color: #1A1A1A;
display: block;
}
}
.verified-badge {
background: #E8F8F0;
border-radius: 14px;
padding: 10px 16px;
text {
font-size: 24px;
color: #4CD964;
font-weight: 500;
}
}
}
.menu-card {
background: #FFFFFF;
border-radius: 20px;
margin: 0 24px 24px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
overflow: hidden;
}
.menu-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 26px 24px;
&:active {
background: #F8F9FA;
}
.menu-left {
display: flex;
align-items: center;
.icon-bg {
width: 64px;
height: 64px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 18px;
&.orange {
background: #FFF0E6;
}
&.green {
background: #E8F8F0;
}
&.red {
background: #FFE8E8;
}
.control-icon-img {
width: 36px;
height: 36px;
}
}
.menu-name {
font-size: 30px;
color: #1A1A1A;
font-weight: 500;
}
}
.menu-right {
display: flex;
align-items: center;
.menu-value {
font-size: 28px;
color: #999999;
margin-right: 10px;
}
.arrow {
font-size: 30px;
color: #CCCCCC;
}
}
}
.divider {
height: 1px;
background: #F0F0F0;
margin: 0 24px;
}
.version-info {
text-align: center;
padding: 48px 0;
.version-text {
font-size: 26px;
color: #999999;
}
}
.image-avatar {
width: 100%;
height: 100%;
border-radius: 24px;
}
.summary-card {
background: #FFFFFF;
border-radius: 20px;
margin: 0 24px 24px;
padding: 10px 24px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid #F2F2F2;
&:last-child {
border-bottom: none;
}
}
.summary-label {
font-size: 28px;
color: #666666;
}
.summary-value {
max-width: 60%;
font-size: 28px;
color: #1A1A1A;
text-align: right;
word-break: break-all;
}
.system-update-card {
margin: 0 24px 24px;
border-radius: 20px;
background: #FFFFFF;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
overflow: hidden;
&.disabled {
opacity: 0.72;
}
}
.system-update-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 24px;
background: #F0FDF4;
}
.system-update-heading {
min-width: 0;
}
.system-update-title {
display: block;
font-size: 30px;
font-weight: 700;
color: #14532D;
}
.system-update-subtitle {
display: block;
margin-top: 8px;
font-size: 24px;
line-height: 1.5;
color: #15803D;
}
.system-update-action {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-width: 132px;
height: 64px;
padding: 0 24px;
border-radius: 16px;
background: #16A34A;
&.disabled {
background: #CBD5E1;
}
}
.system-update-action-text {
font-size: 26px;
font-weight: 700;
color: #FFFFFF;
}
.system-update-body {
padding: 6px 24px 20px;
}
.system-update-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 18px 0;
border-bottom: 1px solid #F3F4F6;
&:last-child {
border-bottom: none;
}
}
.system-update-label {
flex-shrink: 0;
font-size: 26px;
color: #6B7280;
}
.system-update-value {
min-width: 0;
font-size: 28px;
font-weight: 600;
text-align: right;
word-break: break-all;
color: #1F2937;
&.highlight {
color: #15803D;
}
}
.menu-item.disabled {
opacity: 0.45;
}
.logout-section {
margin: 0 24px;
}
.logout-btn {
height: 92px;
border-radius: 18px;
background: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.logout-text {
font-size: 30px;
color: #FF6B35;
font-weight: 600;
}
.modal-mask {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.42);
display: flex;
align-items: center;
justify-content: center;
padding: 0 48px;
z-index: 20;
}
.modal-card {
width: 100%;
background: #FFFFFF;
border-radius: 24px;
padding: 32px;
box-sizing: border-box;
}
.modal-title {
display: block;
font-size: 32px;
font-weight: 700;
color: #1A1A1A;
margin-bottom: 24px;
}
.modal-input-wrap {
background: #F7F8FA;
border-radius: 16px;
padding: 0 24px;
}
.modal-input {
height: 88px;
width: 100%;
font-size: 28px;
color: #1A1A1A;
}
.modal-actions {
display: flex;
justify-content: flex-end;
margin-top: 28px;
}
.modal-action {
font-size: 30px;
margin-left: 32px;
&.cancel {
color: #999999;
}
&.confirm {
color: #FF8C42;
font-weight: 600;
}
}
.device-switch-card {
max-height: 70vh;
}
.device-switch-empty {
display: block;
font-size: 28px;
color: #999999;
line-height: 1.6;
}
.device-switch-list {
max-height: 52vh;
overflow-y: auto;
}
.device-switch-footer {
margin-top: 20px;
}
.device-switch-add {
display: flex;
align-items: center;
justify-content: center;
height: 84px;
border-radius: 18px;
background: #FFF2E7;
font-size: 28px;
color: #FF8C42;
font-weight: 600;
}
.device-switch-item {
padding: 24px;
border-radius: 18px;
background: #F7F8FA;
margin-bottom: 16px;
&:last-child {
margin-bottom: 0;
}
&.active {
background: #FFF2E7;
border: 2px solid #FFBE94;
}
}
.device-switch-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.device-switch-id {
font-size: 28px;
color: #1A1A1A;
font-weight: 600;
word-break: break-all;
}
.device-switch-tag {
margin-left: 16px;
padding: 6px 14px;
border-radius: 999px;
background: #FF8C42;
font-size: 22px;
color: #FFFFFF;
flex-shrink: 0;
}
.device-switch-name {
font-size: 26px;
color: #666666;
}
.loading {
min-height: 100%;
display: flex;
align-items: center;
justify-content: center;
text {
font-size: 32px;
color: #999999;
}
}