|
|
@@ -1,730 +1,654 @@
|
|
|
-// 全局重置和基础样式
|
|
|
-* {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
+// ============================================================
|
|
|
+// C端首页 — 工业级精细化 UI
|
|
|
+// ============================================================
|
|
|
|
|
|
:host {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
min-height: 100vh;
|
|
|
- background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
|
|
|
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
|
- color: #333;
|
|
|
+ background: #f4f6f8;
|
|
|
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
|
|
|
+ color: #1a1a1a;
|
|
|
overflow-x: hidden;
|
|
|
+ -webkit-font-smoothing: antialiased;
|
|
|
}
|
|
|
|
|
|
-// 顶部状态栏
|
|
|
-.status-bar {
|
|
|
+// ============ 顶部 Header ============
|
|
|
+.home-header {
|
|
|
+ background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 40%, #43a047 100%);
|
|
|
+ padding: 0 16px 20px;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ bottom: -20px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ height: 40px;
|
|
|
+ background: #f4f6f8;
|
|
|
+ border-radius: 20px 20px 0 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.header-row {
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- padding: 15px 20px;
|
|
|
- background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
|
|
|
- color: white;
|
|
|
- box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
|
|
|
-
|
|
|
- .user-level {
|
|
|
- flex: 1;
|
|
|
-
|
|
|
- .level-badge {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- margin-bottom: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- .level-progress {
|
|
|
- width: 120px;
|
|
|
- height: 6px;
|
|
|
- background: rgba(255, 255, 255, 0.3);
|
|
|
- border-radius: 3px;
|
|
|
- overflow: hidden;
|
|
|
-
|
|
|
- .progress-bar {
|
|
|
- height: 100%;
|
|
|
- background: linear-gradient(90deg, #81c784, #a5d6a7);
|
|
|
- border-radius: 3px;
|
|
|
- transition: width 0.3s ease;
|
|
|
- }
|
|
|
- }
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 14px 0 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.user-greeting {
|
|
|
+ .greeting-text {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #fff;
|
|
|
+ letter-spacing: 1px;
|
|
|
}
|
|
|
-
|
|
|
- .points-cash {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
+ .greeting-sub {
|
|
|
font-size: 12px;
|
|
|
- gap: 2px;
|
|
|
-
|
|
|
- div {
|
|
|
- background: rgba(255, 255, 255, 0.2);
|
|
|
- padding: 2px 8px;
|
|
|
- border-radius: 10px;
|
|
|
- font-weight: 500;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .notification-icon {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- background: rgba(255, 255, 255, 0.2);
|
|
|
- border-radius: 50%;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: rgba(255, 255, 255, 0.3);
|
|
|
- transform: scale(1.1);
|
|
|
- }
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
+ color: rgba(255,255,255,0.7);
|
|
|
+ margin-top: 2px;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 核心功能入口区
|
|
|
-.core-functions {
|
|
|
- padding: 20px;
|
|
|
- background: white;
|
|
|
- margin: 15px 20px;
|
|
|
- border-radius: 15px;
|
|
|
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
|
-
|
|
|
- .function-title {
|
|
|
- font-size: 18px;
|
|
|
- font-weight: 600;
|
|
|
- color: #2e7d32;
|
|
|
- margin-bottom: 15px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .quick-booking {
|
|
|
- background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
|
|
|
- color: white;
|
|
|
- padding: 15px 20px;
|
|
|
- border-radius: 12px;
|
|
|
- text-align: center;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- cursor: pointer;
|
|
|
- margin-bottom: 15px;
|
|
|
- box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: translateY(-2px);
|
|
|
- box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
|
|
|
- }
|
|
|
-
|
|
|
- i {
|
|
|
- margin-right: 8px;
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .function-buttons {
|
|
|
- display: flex;
|
|
|
- gap: 15px;
|
|
|
-
|
|
|
- .func-btn {
|
|
|
- flex: 1;
|
|
|
- background: #f8f9fa;
|
|
|
- border: 2px solid #e9ecef;
|
|
|
- border-radius: 12px;
|
|
|
- padding: 15px 10px;
|
|
|
- text-align: center;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- border-color: #4caf50;
|
|
|
- background: #f1f8e9;
|
|
|
- transform: translateY(-2px);
|
|
|
- }
|
|
|
-
|
|
|
- .func-icon {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- background: linear-gradient(135deg, #4caf50, #66bb6a);
|
|
|
- border-radius: 50%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin: 0 auto 8px;
|
|
|
- color: white;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- div:last-child {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
- font-weight: 500;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+.header-actions {
|
|
|
+ display: flex;
|
|
|
+ gap: 8px;
|
|
|
}
|
|
|
|
|
|
-// 动态信息区
|
|
|
-.dynamic-info {
|
|
|
- padding: 0 20px 100px;
|
|
|
-
|
|
|
- .info-section {
|
|
|
- background: white;
|
|
|
- border-radius: 15px;
|
|
|
- padding: 20px;
|
|
|
- margin-bottom: 15px;
|
|
|
- box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
|
|
|
-
|
|
|
- .section-title {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- margin-bottom: 15px;
|
|
|
-
|
|
|
- h3 {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- color: #2e7d32;
|
|
|
- }
|
|
|
-
|
|
|
- .more-link {
|
|
|
- font-size: 12px;
|
|
|
- color: #4caf50;
|
|
|
- cursor: pointer;
|
|
|
- text-decoration: none;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- text-decoration: underline;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 附近回收员样式
|
|
|
- .collector-list {
|
|
|
- display: flex;
|
|
|
- gap: 10px;
|
|
|
- overflow-x: auto;
|
|
|
- padding-bottom: 5px;
|
|
|
-
|
|
|
- .collector-card {
|
|
|
- min-width: 80px;
|
|
|
- text-align: center;
|
|
|
-
|
|
|
- .collector-avatar {
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- background: linear-gradient(135deg, #4caf50, #66bb6a);
|
|
|
- border-radius: 50%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin: 0 auto 8px;
|
|
|
- color: white;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 20px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .collector-name {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 500;
|
|
|
- margin-bottom: 4px;
|
|
|
- }
|
|
|
-
|
|
|
- .collector-status {
|
|
|
- font-size: 10px;
|
|
|
- color: #666;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 自助投递点样式
|
|
|
- .drop-points {
|
|
|
- .point-card {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- padding: 10px 0;
|
|
|
- border-bottom: 1px solid #f0f0f0;
|
|
|
-
|
|
|
- &:last-child {
|
|
|
- border-bottom: none;
|
|
|
- }
|
|
|
-
|
|
|
- .point-name {
|
|
|
- flex: 1;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 500;
|
|
|
- }
|
|
|
-
|
|
|
- .point-distance {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
- margin-right: 15px;
|
|
|
- }
|
|
|
-
|
|
|
- .capacity-bar {
|
|
|
- width: 60px;
|
|
|
- height: 6px;
|
|
|
- background: #f0f0f0;
|
|
|
- border-radius: 3px;
|
|
|
- overflow: hidden;
|
|
|
- margin-right: 8px;
|
|
|
-
|
|
|
- .capacity-fill {
|
|
|
- height: 100%;
|
|
|
- background: linear-gradient(90deg, #4caf50, #66bb6a);
|
|
|
- border-radius: 3px;
|
|
|
- transition: width 0.3s ease;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .capacity-text {
|
|
|
- font-size: 10px;
|
|
|
- color: #666;
|
|
|
- min-width: 40px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 环保活动样式
|
|
|
- .activity-carousel {
|
|
|
- .activity-card {
|
|
|
- border: 1px solid #e9ecef;
|
|
|
- border-radius: 10px;
|
|
|
- padding: 15px;
|
|
|
- margin-bottom: 10px;
|
|
|
-
|
|
|
- &:last-child {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .activity-tag {
|
|
|
- display: inline-block;
|
|
|
- background: linear-gradient(135deg, #4caf50, #66bb6a);
|
|
|
- color: white;
|
|
|
- padding: 2px 8px;
|
|
|
- border-radius: 10px;
|
|
|
- font-size: 10px;
|
|
|
- margin-bottom: 8px;
|
|
|
- }
|
|
|
-
|
|
|
- .activity-title {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- margin-bottom: 5px;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
-
|
|
|
- .activity-desc {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
- line-height: 1.4;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+.icon-btn {
|
|
|
+ position: relative;
|
|
|
+ width: 38px;
|
|
|
+ height: 38px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 12px;
|
|
|
+ background: rgba(255,255,255,0.15);
|
|
|
+ color: #fff;
|
|
|
+ font-size: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: background 0.2s;
|
|
|
+ backdrop-filter: blur(4px);
|
|
|
+
|
|
|
+ &:active { transform: scale(0.93); }
|
|
|
}
|
|
|
|
|
|
-// AI助手入口
|
|
|
-.ai-assistant {
|
|
|
- position: fixed;
|
|
|
- right: 20px;
|
|
|
- bottom: 100px;
|
|
|
- width: 60px;
|
|
|
- height: 60px;
|
|
|
- background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
|
|
|
+.notification-dot {
|
|
|
+ position: absolute;
|
|
|
+ top: 8px;
|
|
|
+ right: 8px;
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
+ background: #ff5252;
|
|
|
border-radius: 50%;
|
|
|
+ border: 2px solid #2e7d32;
|
|
|
+ animation: dotPulse 2s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 资产卡片 ============
|
|
|
+.asset-card {
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+ background: rgba(255,255,255,0.12);
|
|
|
+ backdrop-filter: blur(16px);
|
|
|
+ border: 1px solid rgba(255,255,255,0.2);
|
|
|
+ border-radius: 16px;
|
|
|
+ padding: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.asset-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.asset-item {
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.asset-value {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 1.3;
|
|
|
+}
|
|
|
+
|
|
|
+.asset-label {
|
|
|
+ font-size: 11px;
|
|
|
+ color: rgba(255,255,255,0.7);
|
|
|
+ margin-top: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.asset-divider {
|
|
|
+ width: 1px;
|
|
|
+ height: 28px;
|
|
|
+ background: rgba(255,255,255,0.2);
|
|
|
+}
|
|
|
+
|
|
|
+.level-bar {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
+ margin-top: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.level-bar-track {
|
|
|
+ flex: 1;
|
|
|
+ height: 6px;
|
|
|
+ background: rgba(255,255,255,0.15);
|
|
|
+ border-radius: 3px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.level-bar-fill {
|
|
|
+ height: 100%;
|
|
|
+ background: linear-gradient(90deg, #a5d6a7, #e8f5e9);
|
|
|
+ border-radius: 3px;
|
|
|
+ transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
+}
|
|
|
+
|
|
|
+.level-bar-text {
|
|
|
+ font-size: 10px;
|
|
|
+ color: rgba(255,255,255,0.6);
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 核心功能入口 ============
|
|
|
+.core-actions {
|
|
|
+ padding: 0 16px;
|
|
|
+ margin-top: -4px;
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
+}
|
|
|
+
|
|
|
+.main-cta {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ padding: 14px 16px;
|
|
|
+ background: linear-gradient(135deg, #43a047, #66bb6a);
|
|
|
+ border: none;
|
|
|
+ border-radius: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ color: #fff;
|
|
|
+ box-shadow: 0 6px 20px rgba(67, 160, 71, 0.35);
|
|
|
+ transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
|
|
|
+
|
|
|
+ &:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(67,160,71,0.4); }
|
|
|
+ &:active { transform: translateY(0); }
|
|
|
+}
|
|
|
+
|
|
|
+.cta-icon {
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ background: rgba(255,255,255,0.2);
|
|
|
+ border-radius: 12px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- color: white;
|
|
|
+ font-size: 20px;
|
|
|
+ flex-shrink: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.cta-text {
|
|
|
+ flex: 1;
|
|
|
+ text-align: left;
|
|
|
+ margin-left: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.cta-title {
|
|
|
+ display: block;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 700;
|
|
|
+}
|
|
|
+
|
|
|
+.cta-sub {
|
|
|
+ display: block;
|
|
|
+ font-size: 11px;
|
|
|
+ opacity: 0.8;
|
|
|
+ margin-top: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.cta-arrow {
|
|
|
+ font-size: 14px;
|
|
|
+ opacity: 0.6;
|
|
|
+}
|
|
|
+
|
|
|
+// 功能网格
|
|
|
+.action-grid {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(4, 1fr);
|
|
|
+ gap: 10px;
|
|
|
+ margin-top: 14px;
|
|
|
+}
|
|
|
+
|
|
|
+.action-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 14px;
|
|
|
+ padding: 14px 6px 12px;
|
|
|
cursor: pointer;
|
|
|
- box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
|
|
|
- transition: all 0.3s ease;
|
|
|
- z-index: 1000;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: scale(1.1);
|
|
|
- box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
|
|
|
- }
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 24px;
|
|
|
+ transition: all 0.25s ease;
|
|
|
+ box-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
|
|
+
|
|
|
+ &:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
|
|
|
+ &:active { transform: scale(0.97); }
|
|
|
+}
|
|
|
+
|
|
|
+.action-icon {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 12px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 18px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+
|
|
|
+ &.green { background: rgba(76,175,80,0.12); color: #2e7d32; }
|
|
|
+ &.blue { background: rgba(33,150,243,0.12); color: #1565c0; }
|
|
|
+ &.orange { background: rgba(255,152,0,0.12); color: #e65100; }
|
|
|
+ &.purple { background: rgba(156,39,176,0.12); color: #7b1fa2; }
|
|
|
+}
|
|
|
+
|
|
|
+.action-text {
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333;
|
|
|
+}
|
|
|
+
|
|
|
+.action-desc {
|
|
|
+ font-size: 10px;
|
|
|
+ color: #aaa;
|
|
|
+ margin-top: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 通用 Section 卡片 ============
|
|
|
+.section-card {
|
|
|
+ background: #fff;
|
|
|
+ margin: 14px 16px 0;
|
|
|
+ border-radius: 16px;
|
|
|
+ padding: 16px;
|
|
|
+ box-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
|
|
+
|
|
|
+ &.section-last {
|
|
|
+ margin-bottom: 90px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 底部导航栏
|
|
|
-.bottom-nav {
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- background: white;
|
|
|
+.section-header {
|
|
|
display: flex;
|
|
|
- padding: 10px 0 20px;
|
|
|
- box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
|
|
|
- z-index: 999;
|
|
|
-
|
|
|
- .nav-item {
|
|
|
- flex: 1;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 14px;
|
|
|
+
|
|
|
+ h3 {
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #1a1a1a;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
align-items: center;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
- &.active {
|
|
|
- color: #4caf50;
|
|
|
-
|
|
|
- .nav-icon {
|
|
|
- background: linear-gradient(135deg, #4caf50, #66bb6a);
|
|
|
- color: white;
|
|
|
- transform: scale(1.1);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .nav-icon {
|
|
|
- width: 35px;
|
|
|
- height: 35px;
|
|
|
- background: #f8f9fa;
|
|
|
- border-radius: 50%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-bottom: 5px;
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- div:last-child {
|
|
|
- font-size: 10px;
|
|
|
- font-weight: 500;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover:not(.active) {
|
|
|
+ gap: 6px;
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 14px;
|
|
|
color: #4caf50;
|
|
|
-
|
|
|
- .nav-icon {
|
|
|
- background: #f1f8e9;
|
|
|
- transform: scale(1.05);
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 移动端响应式设计
|
|
|
-@media (max-width: 480px) {
|
|
|
- .header {
|
|
|
- padding: 10px 15px;
|
|
|
-
|
|
|
- .user-info {
|
|
|
- .user-level {
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
-
|
|
|
- .level-progress {
|
|
|
- height: 3px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .points-cash {
|
|
|
- gap: 15px;
|
|
|
-
|
|
|
- .points, .cash {
|
|
|
- font-size: 12px;
|
|
|
-
|
|
|
- .value {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .core-functions {
|
|
|
- padding: 15px;
|
|
|
-
|
|
|
- .quick-booking {
|
|
|
- padding: 15px;
|
|
|
-
|
|
|
- .booking-title {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-
|
|
|
- .booking-subtitle {
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .function-grid {
|
|
|
- gap: 10px;
|
|
|
-
|
|
|
- .function-item {
|
|
|
- padding: 12px 8px;
|
|
|
-
|
|
|
- .function-icon {
|
|
|
- width: 35px;
|
|
|
- height: 35px;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .function-text {
|
|
|
- font-size: 11px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .dynamic-info {
|
|
|
- padding: 0 15px 100px;
|
|
|
-
|
|
|
- .info-section {
|
|
|
- padding: 15px;
|
|
|
-
|
|
|
- .section-header {
|
|
|
- .section-title {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-
|
|
|
- .view-more {
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .collector-list {
|
|
|
- gap: 8px;
|
|
|
-
|
|
|
- .collector-card {
|
|
|
- min-width: 70px;
|
|
|
-
|
|
|
- .collector-avatar {
|
|
|
- width: 45px;
|
|
|
- height: 45px;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .collector-name {
|
|
|
- font-size: 11px;
|
|
|
- }
|
|
|
-
|
|
|
- .collector-status {
|
|
|
- font-size: 9px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .drop-points {
|
|
|
- .point-card {
|
|
|
- padding: 8px 0;
|
|
|
-
|
|
|
- .point-name {
|
|
|
- font-size: 13px;
|
|
|
- }
|
|
|
-
|
|
|
- .point-distance {
|
|
|
- font-size: 11px;
|
|
|
- }
|
|
|
-
|
|
|
- .capacity-bar {
|
|
|
- width: 50px;
|
|
|
- height: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- .capacity-text {
|
|
|
- font-size: 9px;
|
|
|
- min-width: 35px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .activity-carousel {
|
|
|
- .activity-card {
|
|
|
- padding: 12px;
|
|
|
-
|
|
|
- .activity-title {
|
|
|
- font-size: 13px;
|
|
|
- }
|
|
|
-
|
|
|
- .activity-subtitle {
|
|
|
- font-size: 11px;
|
|
|
- }
|
|
|
-
|
|
|
- .activity-meta {
|
|
|
- font-size: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .ai-assistant {
|
|
|
- width: 45px;
|
|
|
- height: 45px;
|
|
|
- right: 15px;
|
|
|
- bottom: 85px;
|
|
|
-
|
|
|
- i {
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
- }
|
|
|
+.see-all {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #888;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 3px;
|
|
|
+ transition: color 0.2s;
|
|
|
+
|
|
|
+ &:hover { color: #4caf50; }
|
|
|
+ i { font-size: 10px; }
|
|
|
}
|
|
|
|
|
|
-// 平板端响应式设计
|
|
|
-@media (max-width: 768px) and (min-width: 481px) {
|
|
|
- .header {
|
|
|
- padding: 12px 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .core-functions {
|
|
|
- padding: 20px;
|
|
|
-
|
|
|
- .function-grid {
|
|
|
- gap: 12px;
|
|
|
-
|
|
|
- .function-item {
|
|
|
- padding: 15px 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .dynamic-info {
|
|
|
- padding: 0 20px 100px;
|
|
|
-
|
|
|
- .info-section {
|
|
|
- padding: 18px;
|
|
|
- }
|
|
|
- }
|
|
|
+// ============ 回收员列表 ============
|
|
|
+.collector-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 0;
|
|
|
}
|
|
|
|
|
|
-// 动画效果
|
|
|
-@keyframes fadeInUp {
|
|
|
- from {
|
|
|
- opacity: 0;
|
|
|
- transform: translateY(20px);
|
|
|
- }
|
|
|
- to {
|
|
|
- opacity: 1;
|
|
|
- transform: translateY(0);
|
|
|
- }
|
|
|
+.collector-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px 0;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
+ animation: fadeSlideIn 0.4s ease both;
|
|
|
+
|
|
|
+ &:last-child { border-bottom: none; }
|
|
|
}
|
|
|
|
|
|
-.info-section {
|
|
|
- animation: fadeInUp 0.6s ease-out;
|
|
|
+.collector-avatar {
|
|
|
+ position: relative;
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
|
|
|
+ border-radius: 12px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: #2e7d32;
|
|
|
+ font-size: 18px;
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ &.online { background: linear-gradient(135deg, #4caf50, #66bb6a); color: #fff; }
|
|
|
}
|
|
|
|
|
|
-// 滚动条样式
|
|
|
-::-webkit-scrollbar {
|
|
|
- width: 4px;
|
|
|
- height: 4px;
|
|
|
+.online-dot {
|
|
|
+ position: absolute;
|
|
|
+ bottom: -1px;
|
|
|
+ right: -1px;
|
|
|
+ width: 10px;
|
|
|
+ height: 10px;
|
|
|
+ background: #4caf50;
|
|
|
+ border: 2px solid #fff;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
|
|
|
-::-webkit-scrollbar-track {
|
|
|
- background: #f1f1f1;
|
|
|
- border-radius: 2px;
|
|
|
+.collector-info {
|
|
|
+ flex: 1;
|
|
|
+ margin-left: 12px;
|
|
|
+ min-width: 0;
|
|
|
}
|
|
|
|
|
|
-::-webkit-scrollbar-thumb {
|
|
|
- background: #4caf50;
|
|
|
- border-radius: 2px;
|
|
|
+.collector-name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333;
|
|
|
}
|
|
|
|
|
|
-::-webkit-scrollbar-thumb:hover {
|
|
|
- background: #2e7d32;
|
|
|
+.collector-meta {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
+ margin-top: 4px;
|
|
|
}
|
|
|
|
|
|
-// 新增:活动详情模态框样式
|
|
|
-.activity-modal-overlay {
|
|
|
- position: fixed;
|
|
|
+.distance-tag {
|
|
|
+ font-size: 11px;
|
|
|
+ color: #999;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 3px;
|
|
|
+
|
|
|
+ i { font-size: 9px; }
|
|
|
+}
|
|
|
+
|
|
|
+.call-btn {
|
|
|
+ width: 36px;
|
|
|
+ height: 36px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 10px;
|
|
|
+ background: rgba(76,175,80,0.1);
|
|
|
+ color: #4caf50;
|
|
|
+ font-size: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+ transition: all 0.2s;
|
|
|
+
|
|
|
+ &:hover { background: #4caf50; color: #fff; }
|
|
|
+ &:active { transform: scale(0.9); }
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 投递点列表 ============
|
|
|
+.point-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+
|
|
|
+.point-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px 0;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
+ animation: fadeSlideIn 0.4s ease both;
|
|
|
+
|
|
|
+ &:last-child { border-bottom: none; }
|
|
|
+}
|
|
|
+
|
|
|
+.point-icon-box {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 10px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 16px;
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ &.cap-low { background: rgba(76,175,80,0.1); color: #4caf50; }
|
|
|
+ &.cap-normal { background: rgba(33,150,243,0.1); color: #2196f3; }
|
|
|
+ &.cap-warning { background: rgba(255,152,0,0.1); color: #ff9800; }
|
|
|
+ &.cap-critical { background: rgba(244,67,54,0.1); color: #f44336; }
|
|
|
+}
|
|
|
+
|
|
|
+.point-info {
|
|
|
+ flex: 1;
|
|
|
+ margin-left: 12px;
|
|
|
+ min-width: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.point-name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333;
|
|
|
+}
|
|
|
+
|
|
|
+.point-meta {
|
|
|
+ margin-top: 3px;
|
|
|
+}
|
|
|
+
|
|
|
+// 圆环容量指示器
|
|
|
+.capacity-indicator {
|
|
|
+ position: relative;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ flex-shrink: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.capacity-ring {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ transform: rotate(-90deg);
|
|
|
+}
|
|
|
+
|
|
|
+.ring-bg {
|
|
|
+ fill: none;
|
|
|
+ stroke: #f0f0f0;
|
|
|
+ stroke-width: 3;
|
|
|
+}
|
|
|
+
|
|
|
+.ring-fill {
|
|
|
+ fill: none;
|
|
|
+ stroke-width: 3;
|
|
|
+ stroke-linecap: round;
|
|
|
+ transition: stroke-dasharray 0.6s ease;
|
|
|
+
|
|
|
+ &.cap-low { stroke: #4caf50; }
|
|
|
+ &.cap-normal { stroke: #2196f3; }
|
|
|
+ &.cap-warning { stroke: #ff9800; }
|
|
|
+ &.cap-critical { stroke: #f44336; }
|
|
|
+}
|
|
|
+
|
|
|
+.capacity-num {
|
|
|
+ position: absolute;
|
|
|
inset: 0;
|
|
|
- background: rgba(0,0,0,0.35);
|
|
|
- z-index: 1000;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 9px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #666;
|
|
|
}
|
|
|
|
|
|
-.activity-modal {
|
|
|
- position: fixed;
|
|
|
- left: 50%;
|
|
|
- bottom: 90px; // 底部导航上方
|
|
|
- transform: translateX(-50%);
|
|
|
- width: calc(100% - 40px);
|
|
|
- max-width: 480px;
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 16px;
|
|
|
- box-shadow: 0 12px 30px rgba(0,0,0,0.2);
|
|
|
- z-index: 1001;
|
|
|
+// ============ 活动列表 ============
|
|
|
+.activity-list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-card {
|
|
|
+ border: 1px solid #f0f0f0;
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.25s ease;
|
|
|
+ animation: fadeSlideIn 0.5s ease both;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ border-color: #c8e6c9;
|
|
|
+ background: #fafff9;
|
|
|
+ transform: translateX(4px);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.activity-header {
|
|
|
+ margin-bottom: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-tag {
|
|
|
+ display: inline-block;
|
|
|
+ background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
|
|
|
+ color: #2e7d32;
|
|
|
+ padding: 3px 10px;
|
|
|
+ border-radius: 10px;
|
|
|
+ font-size: 11px;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-title {
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #1a1a1a;
|
|
|
+ margin-bottom: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-desc {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #888;
|
|
|
+ line-height: 1.5;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
overflow: hidden;
|
|
|
+}
|
|
|
|
|
|
- .modal-header {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- padding: 12px 16px;
|
|
|
- background: linear-gradient(135deg, #2e7d32, #66bb6a);
|
|
|
- color: #fff;
|
|
|
+.activity-footer {
|
|
|
+ margin-top: 8px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+}
|
|
|
|
|
|
- .title {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- }
|
|
|
+.join-hint {
|
|
|
+ font-size: 11px;
|
|
|
+ color: #4caf50;
|
|
|
+ font-weight: 500;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
|
|
|
- .actions {
|
|
|
- display: flex;
|
|
|
- gap: 8px;
|
|
|
-
|
|
|
- button {
|
|
|
- border: none;
|
|
|
- border-radius: 12px;
|
|
|
- padding: 6px 10px;
|
|
|
- font-size: 12px;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
-
|
|
|
- .view-more {
|
|
|
- background: #ffffff;
|
|
|
- color: #2e7d32;
|
|
|
- }
|
|
|
-
|
|
|
- .close {
|
|
|
- background: rgba(255,255,255,0.25);
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ i { font-size: 12px; }
|
|
|
+}
|
|
|
|
|
|
- .modal-body {
|
|
|
- padding: 14px 16px 16px;
|
|
|
-
|
|
|
- .tag {
|
|
|
- display: inline-block;
|
|
|
- font-size: 12px;
|
|
|
- color: #2e7d32;
|
|
|
- background: #e8f5e9;
|
|
|
- border-radius: 10px;
|
|
|
- padding: 2px 8px;
|
|
|
- margin-bottom: 8px;
|
|
|
- font-weight: 500;
|
|
|
- }
|
|
|
+// ============ FAB AI 助手 ============
|
|
|
+.fab-ai {
|
|
|
+ position: fixed;
|
|
|
+ right: 18px;
|
|
|
+ bottom: 88px;
|
|
|
+ z-index: 100;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
|
|
|
- .description {
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
- line-height: 1.6;
|
|
|
- }
|
|
|
+.fab-ai-inner {
|
|
|
+ width: 52px;
|
|
|
+ height: 52px;
|
|
|
+ background: linear-gradient(145deg, #43a047, #2e7d32);
|
|
|
+ border-radius: 16px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 22px;
|
|
|
+ box-shadow: 0 4px 16px rgba(46,125,50,0.4);
|
|
|
+ transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.08);
|
|
|
+ box-shadow: 0 8px 24px rgba(46,125,50,0.5);
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ &:active { transform: scale(0.96); }
|
|
|
+}
|
|
|
+
|
|
|
+.fab-ai-pulse {
|
|
|
+ position: absolute;
|
|
|
+ inset: -4px;
|
|
|
+ border-radius: 20px;
|
|
|
+ border: 2px solid rgba(76,175,80,0.3);
|
|
|
+ animation: fabPulse 2.5s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 动画 ============
|
|
|
+@keyframes fadeSlideIn {
|
|
|
+ from { opacity: 0; transform: translateY(12px); }
|
|
|
+ to { opacity: 1; transform: translateY(0); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes dotPulse {
|
|
|
+ 0%, 100% { opacity: 1; transform: scale(1); }
|
|
|
+ 50% { opacity: 0.5; transform: scale(0.8); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes fabPulse {
|
|
|
+ 0% { opacity: 0.6; transform: scale(1); }
|
|
|
+ 50% { opacity: 0; transform: scale(1.3); }
|
|
|
+ 100% { opacity: 0; transform: scale(1.3); }
|
|
|
+}
|
|
|
+
|
|
|
+// ============ 响应式 ============
|
|
|
+@media (max-width: 380px) {
|
|
|
+ .asset-value { font-size: 17px; }
|
|
|
+ .action-grid { gap: 8px; }
|
|
|
+ .action-item { padding: 10px 4px 8px; }
|
|
|
+ .action-icon { width: 34px; height: 34px; font-size: 15px; }
|
|
|
+ .action-text { font-size: 11px; }
|
|
|
+ .action-desc { display: none; }
|
|
|
+ .cta-title { font-size: 14px; }
|
|
|
+ .fab-ai-inner { width: 46px; height: 46px; font-size: 18px; }
|
|
|
+}
|
|
|
+
|
|
|
+@media (min-width: 481px) and (max-width: 768px) {
|
|
|
+ .section-card { margin: 14px 24px 0; }
|
|
|
+ .core-actions { padding: 0 24px; }
|
|
|
+ .home-header { padding: 0 24px 20px; }
|
|
|
+}
|
|
|
+
|
|
|
+@media (min-width: 769px) {
|
|
|
+ :host { max-width: 480px; margin: 0 auto; background: #e8ebed; }
|
|
|
+ .section-card, .core-actions { max-width: 480px; }
|
|
|
+}
|
|
|
+
|
|
|
+// 滚动条
|
|
|
+::-webkit-scrollbar { width: 0; height: 0; }
|