1623 lines
26 KiB
CSS
1623 lines
26 KiB
CSS
/* 全局样式 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 414px;
|
|
margin: 0 auto;
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
padding-bottom: 80px;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
background-color: #fff;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.home-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-right i {
|
|
font-size: 20px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 房间导航 */
|
|
.room-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
background-color: #fff;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.room-tabs {
|
|
display: flex;
|
|
gap: 25px;
|
|
}
|
|
|
|
.room-tab {
|
|
font-size: 16px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
padding: 5px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.room-tab.active {
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.room-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -15px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 20px;
|
|
height: 3px;
|
|
background-color: #ff6900;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* 首页菜单图标 */
|
|
.home-menu-icon {
|
|
font-size: 18px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 空气质量 */
|
|
.air-quality {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
background-color: #fff;
|
|
margin-bottom: 15px;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 设备网格 */
|
|
.device-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
padding: 0 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.device-card {
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
position: relative;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.device-card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.device-card.active {
|
|
background-color: #fff5e6;
|
|
border: 1px solid #ff6900;
|
|
}
|
|
|
|
.device-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f8f8f8;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.device-icon i {
|
|
font-size: 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.ac-icon {
|
|
width: 30px;
|
|
height: 20px;
|
|
background-color: #666;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
}
|
|
|
|
.ac-icon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 20px;
|
|
height: 2px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.device-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.device-status {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.power-button {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: #ff6900;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.power-button i {
|
|
color: #fff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 传感器网格 */
|
|
.sensor-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
padding: 0 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.sensor-card {
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
position: relative;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sensor-icon {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.temp-display {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.humidity-display {
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.sensor-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.sensor-status {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.bluetooth-icon {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
color: #007AFF;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 智能场景页面样式 */
|
|
.smart-tabs {
|
|
display: flex;
|
|
background: white;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.smart-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 15px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all 0.3s ease;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.smart-tab.active {
|
|
color: #ff6900;
|
|
border-bottom-color: #ff6900;
|
|
}
|
|
|
|
.smart-content {
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* 空状态样式 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.empty-text {
|
|
color: #999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 场景列表样式 */
|
|
.scene-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.scene-item {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.scene-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
color: white;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.scene-icon.blue { background: #4A90E2; }
|
|
.scene-icon.yellow { background: #F5A623; }
|
|
.scene-icon.purple { background: #7B68EE; }
|
|
.scene-icon.orange { background: #FF8C00; }
|
|
.scene-icon.dark-purple { background: #6A5ACD; }
|
|
.scene-icon.green { background: #50C878; }
|
|
.scene-icon.blue-light { background: #87CEEB; }
|
|
|
|
.scene-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.scene-name {
|
|
font-size: 16px;
|
|
color: #333;
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.scene-desc {
|
|
font-size: 13px;
|
|
color: #999;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.scene-execute-btn {
|
|
background: transparent;
|
|
color: #ff6900;
|
|
border: 1px solid #ff6900;
|
|
padding: 6px 12px;
|
|
border-radius: 16px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.scene-execute-btn:hover {
|
|
background: #ff6900;
|
|
color: white;
|
|
}
|
|
|
|
/* 过滤器样式 */
|
|
.filter-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-dropdown {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
.filter-dropdown i {
|
|
color: #999;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 批量控制样式 */
|
|
.control-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
color: #333;
|
|
margin-bottom: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.control-item {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.control-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
color: white;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.control-icon.purple { background: #7B68EE; }
|
|
|
|
.control-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.control-name {
|
|
font-size: 14px;
|
|
color: #333;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.control-count {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.control-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: #45a049;
|
|
}
|
|
|
|
/* 自动化样式 */
|
|
.automation-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.automation-item {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
min-height: 56px;
|
|
}
|
|
|
|
.automation-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.automation-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: #4CAF50;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
color: white;
|
|
}
|
|
|
|
.automation-icon.gray {
|
|
background: #999;
|
|
}
|
|
|
|
.automation-arrow {
|
|
font-size: 10px;
|
|
color: #999;
|
|
}
|
|
|
|
.automation-notification {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: #FF5722;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
color: white;
|
|
}
|
|
|
|
.automation-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.automation-name {
|
|
font-size: 14px;
|
|
color: #333;
|
|
margin-bottom: 2px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.automation-count {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.automation-toggle {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* 自动化页面的切换开关样式 */
|
|
.automation-toggle .toggle-switch {
|
|
width: 44px;
|
|
height: 24px;
|
|
appearance: none;
|
|
background: #ddd;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
outline: none;
|
|
}
|
|
|
|
.automation-toggle .toggle-switch:checked {
|
|
background: #4CAF50;
|
|
}
|
|
|
|
.automation-toggle .toggle-switch:before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: white;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: transform 0.3s ease;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.automation-toggle .toggle-switch:checked:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* 个人资料页面 */
|
|
.profile-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
padding: 30px 20px;
|
|
color: #fff;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.menu-list {
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.menu-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* 设置页面样式 */
|
|
.settings-header {
|
|
background: white;
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header-left i {
|
|
font-size: 18px;
|
|
color: #333;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-left h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.settings-content {
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.settings-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section-title {
|
|
padding: 15px 20px 10px 20px;
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.settings-item {
|
|
background: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.item-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.item-title {
|
|
font-size: 16px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.item-subtitle {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.settings-item > i {
|
|
color: #ccc;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 切换开关样式 */
|
|
.toggle-switch {
|
|
width: 50px;
|
|
height: 30px;
|
|
background: #e0e0e0;
|
|
border-radius: 15px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.toggle-switch.active {
|
|
background: #34C759;
|
|
}
|
|
|
|
.toggle-slider {
|
|
width: 26px;
|
|
height: 26px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: transform 0.3s;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.toggle-switch.active .toggle-slider {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* 底部导航 */
|
|
.bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
max-width: 414px;
|
|
background-color: #fff;
|
|
border-top: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 10px 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 5px;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nav-item i {
|
|
font-size: 20px;
|
|
color: #999;
|
|
}
|
|
|
|
.nav-item span {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.nav-item.active i,
|
|
.nav-item.active span {
|
|
color: #ff6900;
|
|
}
|
|
|
|
/* 产品页面 */
|
|
.product-header {
|
|
background-color: #fff;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.header-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
text-align: left;
|
|
}
|
|
|
|
/* 搜索框 */
|
|
.search-section {
|
|
padding: 20px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.search-box {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #e8e8e8;
|
|
border-radius: 20px;
|
|
padding: 12px 16px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.search-box i {
|
|
color: #999;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.search-box input {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
.search-box input::placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
/* 推广卡片 */
|
|
.promo-section {
|
|
padding: 0 20px 20px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.promo-card {
|
|
background: linear-gradient(135deg, #a8d8ff 0%, #e6f3ff 100%);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.promo-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.promo-badge {
|
|
background-color: rgba(255,255,255,0.9);
|
|
color: #333;
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
display: inline-block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.promo-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.promo-subtitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.promo-tag {
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.promo-count {
|
|
font-size: 14px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.promo-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.camera-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background-color: rgba(255,255,255,0.3);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
color: #333;
|
|
}
|
|
|
|
/* 排行榜 */
|
|
.ranking-section {
|
|
background-color: #fff;
|
|
margin: 0 20px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.ranking-header {
|
|
padding: 20px 20px 0;
|
|
}
|
|
|
|
.ranking-header h3 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.ranking-list {
|
|
padding: 20px;
|
|
}
|
|
|
|
.ranking-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 15px 0;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
}
|
|
|
|
.ranking-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ranking-number {
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: #f5f5f5;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #666;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.ranking-item:first-child .ranking-number {
|
|
background-color: #ff6900;
|
|
color: #fff;
|
|
}
|
|
|
|
.ranking-item:nth-child(2) .ranking-number {
|
|
background-color: #ffa500;
|
|
color: #fff;
|
|
}
|
|
|
|
.ranking-item:nth-child(3) .ranking-number {
|
|
background-color: #ffb84d;
|
|
color: #fff;
|
|
}
|
|
|
|
.product-image {
|
|
width: 50px;
|
|
height: 50px;
|
|
margin-right: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f8f8f8;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.ac-product-icon {
|
|
width: 30px;
|
|
height: 20px;
|
|
background-color: #666;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
}
|
|
|
|
.ac-product-icon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 20px;
|
|
height: 2px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.scale-icon {
|
|
width: 35px;
|
|
height: 25px;
|
|
background-color: #ddd;
|
|
border-radius: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.scale-icon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 20px;
|
|
height: 1px;
|
|
background-color: #999;
|
|
}
|
|
|
|
.speaker-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: #333;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
}
|
|
|
|
.speaker-icon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 15px;
|
|
height: 15px;
|
|
border: 2px solid #fff;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.product-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 16px;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.product-stats {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.view-all {
|
|
text-align: center;
|
|
padding: 20px;
|
|
border-top: 1px solid #f5f5f5;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.view-all span {
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 外部商城页面 */
|
|
#mall-page-external {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
#mall-page-external iframe {
|
|
height: calc(100vh - 80px);
|
|
}
|
|
|
|
/* 个人中心页面样式 */
|
|
.profile-header {
|
|
background: white;
|
|
padding: 20px;
|
|
}
|
|
|
|
.header-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.user-details h2 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.user-details p {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header-actions i {
|
|
font-size: 20px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 功能卡片 */
|
|
.feature-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20px;
|
|
padding: 20px;
|
|
background: white;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.feature-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.feature-card span {
|
|
font-size: 12px;
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 推广横幅 */
|
|
.promotion-banner {
|
|
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
|
|
margin: 0 20px 20px 20px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.promotion-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.promotion-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.promotion-text h3 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 14px;
|
|
color: #1976d2;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.promotion-text h4 {
|
|
margin: 0 0 10px 0;
|
|
font-size: 18px;
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.promotion-tag {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.promotion-tag span {
|
|
background: #ff5722;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tag-number {
|
|
background: #333 !important;
|
|
}
|
|
|
|
.promotion-image {
|
|
width: 80px;
|
|
height: 60px;
|
|
}
|
|
|
|
.promotion-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* 菜单项 */
|
|
.menu-section {
|
|
background: white;
|
|
margin: 0 20px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
cursor: pointer;
|
|
min-height: 64px;
|
|
}
|
|
|
|
.menu-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.menu-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 14px;
|
|
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: 2px;
|
|
}
|
|
|
|
.menu-title {
|
|
font-size: 15px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.menu-status {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.menu-item > i {
|
|
color: #ccc;
|
|
font-size: 12px;
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.view-all {
|
|
font-size: 14px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.view-all i {
|
|
margin-left: 5px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 414px) {
|
|
.container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.device-grid,
|
|
.sensor-grid {
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.room-tabs {
|
|
gap: 15px;
|
|
}
|
|
|
|
.room-tab {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.section {
|
|
margin: 15px;
|
|
}
|
|
|
|
.quick-actions {
|
|
margin: 15px;
|
|
}
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.device-card,
|
|
.sensor-card,
|
|
.scene-item {
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
/* 自定义滚动条 */
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #ccc;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #999;
|
|
} |