Files
sundynix-plant-mp/pages/wiki/detail/index.wxss
T
2026-02-05 10:45:45 +08:00

316 lines
5.0 KiB
Plaintext

/* pages/wiki/detail/index.wxss */
.wiki-detail {
height: 100vh;
display: flex;
flex-direction: column;
background: #F9FAFB;
}
/* Page Layout */
page {
height: 100vh;
overflow: hidden;
}
/* Hide Scrollbar Globally */
::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
color: transparent !important;
}
scroll-view ::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
color: transparent !important;
}
/* Header Area */
.wd-header {
height: 500rpx;
position: relative;
background: #000;
}
/* Content Wrapper handles the flex growth and positioning overlap */
.wd-content-wrapper {
flex: 1;
position: relative;
margin-top: -32rpx;
z-index: 20;
overflow: hidden; /* Ensure scroll-view is contained */
}
/* Content Scroll View fills the wrapper */
.wd-content {
width: 100%;
height: 100%;
}
/* Force override TDesign swiper radius */
.custom-swiper {
border-radius: 0 !important;
overflow: hidden;
--td-swiper-radius: 0px !important;
}
.custom-swiper .t-swiper {
border-radius: 0 !important;
}
t-swiper {
border-radius: 0 !important;
}
.wd-gallery-container {
width: 100%;
height: 100%;
position: relative;
}
.wd-gradient-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 240rpx;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
pointer-events: none;
z-index: 10;
}
.wd-indicators {
position: absolute;
bottom: 24rpx;
right: 24rpx;
display: flex;
gap: 12rpx;
z-index: 20;
}
.wd-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
transition: all 0.3s;
}
.wd-dot.active {
background: white;
width: 24rpx;
border-radius: 8rpx;
}
.wd-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 32rpx;
display: flex;
flex-direction: column;
justify-content: flex-start;
pointer-events: none;
z-index: 20;
}
.wd-name {
font-size: 56rpx;
color: #FFFFFF;
font-weight: 800;
margin-bottom: 8rpx;
}
.wd-scientific {
font-size: 32rpx;
color: rgba(255, 255, 255, 0.8);
font-style: italic;
font-family: serif;
margin-bottom: 24rpx;
}
.wd-badges {
display: flex;
gap: 16rpx;
flex-wrap: wrap;
}
.wd-badge {
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(4px);
padding: 8rpx 20rpx;
border-radius: 24rpx;
font-size: 24rpx;
color: #FFFFFF;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.wd-section {
margin-bottom: 32rpx;
animation: fadeIn 0.5s ease-out;
padding: 0 32rpx;
}
/* First section specific override: Adjust padding and background to create the seamless rounded look */
.wd-section:first-child {
padding: 0;
margin-bottom: 48rpx;
}
.wd-section:first-child .wd-card {
border-top-left-radius: 40rpx;
border-top-right-radius: 40rpx;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
padding: 48rpx 32rpx;
box-shadow: none; /* Seamless blend */
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20rpx); }
to { opacity: 1; transform: translateY(0); }
}
.section-title {
display: flex;
align-items: center;
gap: 16rpx;
margin-bottom: 24rpx;
padding-left: 8rpx;
}
.section-title text {
font-size: 34rpx;
font-weight: 700;
color: #111827;
}
.wd-text {
font-size: 30rpx;
line-height: 1.6;
color: #4B5563;
}
.wd-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32rpx;
}
.wd-stat-item {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.wd-label {
font-size: 24rpx;
color: #9CA3AF;
text-transform: uppercase;
letter-spacing: 1rpx;
}
.wd-value {
font-size: 28rpx;
font-weight: 600;
color: #1F2937;
}
.wd-card {
background: white;
border-radius: 24rpx;
padding: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.02);
transition: all 0.3s;
}
/* Requirement Items (Compact) */
.requirement-item {
display: flex;
gap: 24rpx;
margin-bottom: 24rpx;
padding-bottom: 24rpx;
border-bottom: 2rpx solid #F3F4F6;
}
.requirement-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.req-icon {
width: 80rpx;
height: 80rpx;
background: #F1F8E9;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.req-content {
flex: 1;
}
.req-title {
display: block;
font-size: 30rpx;
font-weight: 700;
color: #1F2937;
margin-bottom: 8rpx;
}
.req-desc {
font-size: 26rpx;
color: #6B7280;
line-height: 1.5;
}
/* FAQ / Pests */
.pest-tags {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.pest-tag {
background: #FEF2F2;
color: #DC2626;
padding: 12rpx 24rpx;
border-radius: 16rpx;
font-size: 26rpx;
font-weight: 500;
}
.care-tips-list {
display: flex;
flex-direction: column;
gap: 16rpx;
}
.tip-item {
display: flex;
gap: 16rpx;
align-items: flex-start;
}
.tip-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #558B2F;
margin-top: 14rpx;
flex-shrink: 0;
}
.tip-text {
font-size: 28rpx;
color: #4B5563;
line-height: 1.5;
}