feat: ai问答
This commit is contained in:
+128
-19
@@ -110,34 +110,39 @@ page {
|
||||
border-bottom: 2rpx solid rgba(0, 0, 0, 0.05);
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
flex-shrink: 0;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.pd-tab-btn {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 32rpx 48rpx;
|
||||
font-size: 30rpx;
|
||||
padding: 24rpx 32rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #6B7280;
|
||||
background: none;
|
||||
border: none;
|
||||
position: relative;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.pd-tab-btn.active {
|
||||
color: #558B2F;
|
||||
font-weight: 600;
|
||||
color: #2E7D32;
|
||||
font-weight: 700;
|
||||
background: rgba(85, 139, 47, 0.06);
|
||||
}
|
||||
|
||||
.pd-tab-btn.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2rpx;
|
||||
left: 25%;
|
||||
right: 25%;
|
||||
left: 20%;
|
||||
right: 20%;
|
||||
height: 6rpx;
|
||||
background: #558B2F;
|
||||
background: linear-gradient(90deg, #689F38, #33691E);
|
||||
border-radius: 4rpx;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Content Area */
|
||||
@@ -145,7 +150,7 @@ page {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 48rpx;
|
||||
padding-bottom: 160rpx;
|
||||
padding-bottom: 48rpx;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
@@ -182,12 +187,25 @@ page {
|
||||
color: #263238;
|
||||
}
|
||||
|
||||
/* Care Log List - Matching Prototype */
|
||||
/* Care Log List - Timeline Style */
|
||||
.care-log-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24rpx;
|
||||
gap: 0;
|
||||
margin-bottom: 40rpx;
|
||||
position: relative;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
|
||||
.care-log-list::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 6rpx;
|
||||
top: 32rpx;
|
||||
bottom: 32rpx;
|
||||
width: 3rpx;
|
||||
background: linear-gradient(to bottom, #C8E6C9, #E8F5E9);
|
||||
border-radius: 2rpx;
|
||||
}
|
||||
|
||||
.care-log-item {
|
||||
@@ -195,6 +213,27 @@ page {
|
||||
border-radius: 32rpx;
|
||||
padding: 32rpx;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
|
||||
position: relative;
|
||||
margin-bottom: 20rpx;
|
||||
margin-left: 24rpx;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.care-log-item::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -30rpx;
|
||||
top: 40rpx;
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
background: #81C784;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #F4F6F0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.care-log-item:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.log-left {
|
||||
@@ -309,8 +348,19 @@ page {
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 12rpx;
|
||||
background: linear-gradient(90deg, #AED581, #2E7D32);
|
||||
height: 10rpx;
|
||||
background: linear-gradient(90deg, #81C784, #2E7D32, #81C784);
|
||||
}
|
||||
|
||||
.archive-identity-card::after {
|
||||
content: '🌿';
|
||||
position: absolute;
|
||||
top: -20rpx;
|
||||
right: -10rpx;
|
||||
font-size: 120rpx;
|
||||
opacity: 0.08;
|
||||
transform: rotate(-15deg);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aic-header {
|
||||
@@ -420,7 +470,8 @@ page {
|
||||
.archive-timeline {
|
||||
position: relative;
|
||||
padding-left: 48rpx;
|
||||
border-left: 4rpx solid #E0E0E0;
|
||||
border-left: 4rpx solid transparent;
|
||||
border-image: linear-gradient(to bottom, #81C784, #C8E6C9, #E8F5E9) 1;
|
||||
margin-left: 24rpx;
|
||||
margin-bottom: 80rpx;
|
||||
}
|
||||
@@ -441,25 +492,43 @@ page {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
background: white;
|
||||
border: 6rpx solid #558B2F;
|
||||
border: 6rpx solid #81C784;
|
||||
border-radius: 50%;
|
||||
z-index: 1;
|
||||
box-shadow: 0 0 0 8rpx #F4F6F0;
|
||||
}
|
||||
|
||||
.timeline-item:first-child .timeline-dot {
|
||||
background: #558B2F;
|
||||
border-color: #558B2F;
|
||||
animation: dotPulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes dotPulse {
|
||||
0%, 100% { box-shadow: 0 0 0 8rpx #F4F6F0; }
|
||||
50% { box-shadow: 0 0 0 16rpx rgba(85, 139, 47, 0.15); }
|
||||
}
|
||||
|
||||
.timeline-date {
|
||||
font-size: 24rpx;
|
||||
color: #9E9E9E;
|
||||
font-size: 22rpx;
|
||||
color: #81C784;
|
||||
margin-bottom: 16rpx;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
background: rgba(129, 199, 132, 0.1);
|
||||
display: inline-block;
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.timeline-content-box {
|
||||
background: white;
|
||||
border-radius: 32rpx;
|
||||
border-radius: 28rpx;
|
||||
padding: 32rpx;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.04);
|
||||
border: 2rpx solid rgba(0, 0, 0, 0.02);
|
||||
border-left: 6rpx solid #81C784;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.timeline-content-box:active {
|
||||
@@ -467,7 +536,7 @@ page {
|
||||
}
|
||||
|
||||
.timeline-title {
|
||||
font-size: 32rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 16rpx;
|
||||
@@ -476,6 +545,16 @@ page {
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.timeline-type-badge {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.timeline-desc {
|
||||
font-size: 28rpx;
|
||||
color: #546E7A;
|
||||
@@ -840,3 +919,33 @@ page {
|
||||
color: #EF5350;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
|
||||
/* No-image Placeholder */
|
||||
.header-empty-placeholder {
|
||||
width: 100%;
|
||||
height: 500rpx;
|
||||
background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.empty-plant-emoji {
|
||||
font-size: 120rpx;
|
||||
opacity: 0.6;
|
||||
animation: gentleBounce 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes gentleBounce {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-16rpx); }
|
||||
}
|
||||
|
||||
.empty-photo-hint {
|
||||
font-size: 26rpx;
|
||||
color: rgba(46, 125, 50, 0.5);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user