feat: Add plant identification feature with image upload, classification results display, and integration into the wiki page.

This commit is contained in:
Blizzard
2026-02-10 14:02:35 +08:00
parent 6ea77c00ce
commit 6f88bc656b
15 changed files with 1481 additions and 491 deletions
+68 -13
View File
@@ -104,37 +104,92 @@
/* Popup Styles */
.popup-content {
background: white;
border-radius: 40rpx 40rpx 0 0;
padding: 40rpx;
padding-bottom: env(safe-area-inset-bottom);
border-radius: 48rpx 48rpx 0 0;
padding: 48rpx 40rpx;
padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
}
.popup-header {
text-align: center;
margin-bottom: 48rpx;
margin-bottom: 16rpx;
}
.popup-title {
font-size: 36rpx;
font-size: 40rpx;
font-weight: 800;
color: var(--text-main);
background: linear-gradient(120deg, #33691E, #689F38);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;
}
.popup-subtitle {
font-size: 26rpx;
color: #9CA3AF;
text-align: center;
display: block;
margin-bottom: 48rpx;
}
.upload-options-grid {
display: flex; gap: 40rpx; justify-content: center;
margin-bottom: 48rpx;
display: flex;
gap: 32rpx;
justify-content: center;
margin-bottom: 48rpx;
}
.upload-opt-item {
display: flex; flex-direction: column; align-items: center; gap: 16rpx;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 20rpx;
background: #F9FAFB;
border-radius: 32rpx;
padding: 40rpx 24rpx;
transition: all 0.2s;
}
.upload-opt-item:active {
transform: scale(0.96);
background: #F0F7EB;
}
.opt-icon-circle {
width: 120rpx; height: 120rpx; border-radius: 40rpx;
display: flex; align-items: center; justify-content: center;
width: 112rpx;
height: 112rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06);
}
.upload-opt-item text {
font-size: 28rpx;
font-weight: 600;
color: #374151;
}
.popup-footer {
display: flex;
justify-content: center;
display: flex;
justify-content: center;
padding-top: 8rpx;
}
.popup-footer .cancel-btn {
width: 100%;
height: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 32rpx;
font-weight: 600;
color: #6B7280;
background: #F3F4F6;
border-radius: 44rpx;
border: none;
}
.popup-footer .cancel-btn:active {
background: #E5E7EB;
}