541 lines
8.6 KiB
CSS
541 lines
8.6 KiB
CSS
/* 个人资料页面专用样式 - 小米风格 */
|
|
|
|
/* 页面整体样式 */
|
|
#profile-page {
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* 个人资料页面 */
|
|
.profile-header {
|
|
background: #f5f5f5;
|
|
padding: 20px 16px 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.profile-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.avatar {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 30px;
|
|
overflow: hidden;
|
|
background-color: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.username {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.device-count {
|
|
font-size: 14px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.profile-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* 功能网格 */
|
|
.feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20px;
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.feature-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.feature-item i {
|
|
font-size: 24px;
|
|
color: #ff6900;
|
|
}
|
|
|
|
.feature-item span {
|
|
font-size: 12px;
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 功能卡片 - 小米风格 */
|
|
.feature-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
padding: 16px;
|
|
background: white;
|
|
margin: 0 16px 12px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.feature-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
padding: 8px 4px;
|
|
border-radius: 8px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.feature-card:active {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.feature-card span {
|
|
font-size: 11px;
|
|
color: #666;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 摄像头推广 */
|
|
.camera-promo {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
color: #fff;
|
|
}
|
|
|
|
.promo-badge {
|
|
background-color: rgba(255,255,255,0.2);
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
margin-bottom: 8px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.promo-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.promo-subtitle {
|
|
font-size: 14px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.promo-image {
|
|
font-size: 40px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 推广横幅 - 小米风格 */
|
|
.promotion-banner {
|
|
background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
|
|
margin: 0 16px 12px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.promotion-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16px;
|
|
gap: 16px;
|
|
}
|
|
|
|
.promotion-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.promotion-text h3 {
|
|
margin: 0 0 4px 0;
|
|
font-size: 13px;
|
|
color: #ff6900;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.promotion-text h4 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 16px;
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.promotion-tag {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.promotion-tag span {
|
|
background: #ff6900;
|
|
color: white;
|
|
padding: 3px 6px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tag-number {
|
|
background: rgba(255,255,255,0.2) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.promotion-image {
|
|
width: 70px;
|
|
height: 50px;
|
|
}
|
|
|
|
.promotion-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* 菜单列表 - 小米风格 */
|
|
.menu-list {
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.menu-section {
|
|
background: white;
|
|
margin: 0 16px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
cursor: pointer;
|
|
min-height: 56px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.menu-item:active {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.menu-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.menu-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
margin: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.menu-icon i {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
line-height: 1;
|
|
}
|
|
|
|
.menu-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 1px;
|
|
}
|
|
|
|
.menu-title {
|
|
font-size: 14px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.menu-status {
|
|
font-size: 11px;
|
|
color: #999;
|
|
}
|
|
|
|
.menu-item > i {
|
|
color: #ddd;
|
|
font-size: 11px;
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
|
|
.menu-item i:first-child {
|
|
font-size: 18px;
|
|
color: #ff6900;
|
|
margin-right: 15px;
|
|
width: 20px;
|
|
}
|
|
|
|
.menu-item span {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.menu-item .status {
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.menu-item i:last-child {
|
|
font-size: 14px;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* 头部信息 */
|
|
.header-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: white;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
margin-bottom: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
background: linear-gradient(135deg, #4A90E2, #357ABD);
|
|
}
|
|
|
|
.user-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.user-details h2 {
|
|
margin: 0 0 4px 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.user-details p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: #999;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-actions i {
|
|
font-size: 18px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.header-actions i:active {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
/* 订单操作 */
|
|
.order-actions {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
.order-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.order-item:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.order-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: #f8f8f8;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-icon i {
|
|
font-size: 18px;
|
|
color: #ff6900;
|
|
}
|
|
|
|
.order-item span {
|
|
font-size: 12px;
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 服务列表 */
|
|
.service-list,
|
|
.tool-list {
|
|
padding: 0;
|
|
}
|
|
|
|
.service-item,
|
|
.tool-item,
|
|
.setting-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.service-item:hover,
|
|
.tool-item:hover,
|
|
.setting-item:hover {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.service-item:last-child,
|
|
.tool-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.service-icon,
|
|
.tool-icon,
|
|
.setting-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: #f8f8f8;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.service-icon i,
|
|
.tool-icon i,
|
|
.setting-icon i {
|
|
font-size: 18px;
|
|
color: #ff6900;
|
|
}
|
|
|
|
.service-info,
|
|
.tool-info,
|
|
.setting-info {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.service-info span,
|
|
.tool-info span,
|
|
.setting-info span {
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.service-info i,
|
|
.tool-info i,
|
|
.setting-info i {
|
|
font-size: 14px;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* 通用区块样式 */
|
|
.section {
|
|
margin: 20px;
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
}
|
|
|
|
.section-header h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 414px) {
|
|
.section {
|
|
margin: 15px;
|
|
}
|
|
} |