Files
sundynix-plant-mp/pages/wiki/index.wxss
T

196 lines
3.6 KiB
Plaintext

/** pages/wiki/index.wxss **/
.wiki-page {
height: 100vh;
display: flex;
flex-direction: column;
background-color: #F9FAFB;
position: relative;
overflow: hidden;
}
.wiki-scroll-area {
flex: 1;
overflow-y: hidden; /* Scroll-view handles overflow */
box-sizing: border-box;
}
/* Scroll-view inner content padding wrapper if needed,
but we can apply padding to children or use a wrapper view inside.
Usually easier to apply padding to the items or a wrapper inside scroll-view. */
.search-section {
padding: 20rpx 40rpx 0;
margin-bottom: 32rpx;
}
.category-scroll {
display: flex;
flex-wrap: wrap;
padding: 0 40rpx;
margin-bottom: 48rpx;
}
.wiki-list {
display: flex;
flex-direction: column;
gap: 32rpx;
padding: 0 40rpx;
}
.wiki-card {
background: white;
padding: 32rpx;
border-radius: 48rpx;
display: flex;
align-items: center;
gap: 36rpx;
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.03);
transition: transform 0.1s;
}
.wiki-card:active {
transform: scale(0.98);
}
.wiki-image {
width: 140rpx; height: 140rpx;
border-radius: 36rpx;
overflow: hidden;
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.1);
flex-shrink: 0;
background: #f0f0f0;
}
.wiki-image image { width: 100%; height: 100%; display: block; }
.wiki-image-placeholder {
width: 100%; height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #f5f5f5;
}
.wiki-info { flex: 1; min-width: 0; }
.wiki-top { margin-bottom: 12rpx; }
.wiki-name { font-size: 34rpx; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 4rpx; }
.scientific-name { font-size: 24rpx; color: #90A4AE; font-style: italic; font-family: serif; display: block; }
.tags-row {
display: flex;
flex-wrap: wrap;
gap: 8rpx;
}
/* Loading Footer */
.loading-footer {
padding: 40rpx;
display: flex;
justify-content: center;
align-items: center;
}
.no-more-text {
font-size: 24rpx;
color: #CCC;
}
.empty-state {
padding: 80rpx 0;
text-align: center;
color: #999;
font-size: 28rpx;
}
/* Popup Styles */
.popup-content {
background: white;
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: 16rpx;
}
.popup-title {
font-size: 40rpx;
font-weight: 800;
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: 32rpx;
justify-content: center;
margin-bottom: 48rpx;
}
.upload-opt-item {
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: 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;
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;
}