/* pages/wiki/detail/index.wxss */ .wiki-detail { height: 100vh; display: flex; flex-direction: column; background: #F4F6F0; } page { height: 100vh; overflow: hidden; } /* ======== Image Carousel ======== */ .wd-header { position: relative; flex-shrink: 0; background: #E8E8E8; } .custom-swiper { border-radius: 0 !important; --td-swiper-radius: 0px !important; } .wd-counter { position: absolute; bottom: 20rpx; right: 24rpx; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: white; font-size: 22rpx; font-weight: 600; padding: 6rpx 18rpx; border-radius: 12rpx; z-index: 20; letter-spacing: 2rpx; } /* ======== Name Card ======== */ .wd-name-card { background: white; padding: 32rpx 36rpx 28rpx; margin: 0 0 24rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04); position: relative; z-index: 10; } .wd-name-row { margin-bottom: 16rpx; } .wd-name { display: block; font-size: 48rpx; font-weight: 800; color: #1F2937; line-height: 1.3; margin-bottom: 6rpx; } .wd-scientific { display: block; font-size: 28rpx; color: #9CA3AF; font-style: italic; font-family: Georgia, 'Times New Roman', serif; } .wd-badges { display: flex; gap: 12rpx; flex-wrap: wrap; } .wd-badge { background: #F0F7EB; color: #558B2F; padding: 8rpx 20rpx; border-radius: 20rpx; font-size: 22rpx; font-weight: 600; } .wd-badge.difficulty { background: #FFF8E1; color: #F57F17; } /* ======== Scrollable Content ======== */ .wd-content { flex: 1; width: 100%; height: 0; } /* ======== Sections ======== */ .wd-section { margin-bottom: 28rpx; padding: 0 28rpx; } .section-title { display: flex; align-items: center; gap: 14rpx; margin-bottom: 20rpx; padding-left: 4rpx; } .section-title text { font-size: 32rpx; font-weight: 700; color: #1F2937; } /* ======== Cards ======== */ .wd-card { background: white; border-radius: 24rpx; padding: 28rpx 32rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.03); } .wd-text { font-size: 28rpx; line-height: 1.7; color: #4B5563; } /* ======== Info Grid ======== */ .wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28rpx 32rpx; } .wd-stat-item { display: flex; flex-direction: column; gap: 8rpx; } .wd-label { font-size: 22rpx; color: #9CA3AF; text-transform: uppercase; letter-spacing: 1rpx; font-weight: 500; } .wd-value { font-size: 28rpx; font-weight: 600; color: #1F2937; line-height: 1.4; } /* ======== Requirement Items ======== */ .requirement-item { display: flex; gap: 24rpx; padding: 24rpx 0; border-bottom: 2rpx solid #F3F4F6; } .requirement-item:first-child { padding-top: 0; } .requirement-item:last-child { padding-bottom: 0; border-bottom: none; } .req-icon { width: 84rpx; height: 84rpx; border-radius: 22rpx; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .req-icon.light { background: #FFFBEB; } .req-icon.temp { background: #FEF2F2; } .req-icon.repro { background: #F0FDF4; } .req-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6rpx; } .req-title { display: block; font-size: 28rpx; font-weight: 700; color: #1F2937; } .req-desc { font-size: 26rpx; color: #6B7280; line-height: 1.5; } /* ======== Pest Tags ======== */ .pest-tags { display: flex; flex-wrap: wrap; gap: 16rpx; } .pest-tag { background: #FEF2F2; color: #DC2626; padding: 12rpx 24rpx; border-radius: 16rpx; font-size: 24rpx; font-weight: 600; } /* ======== Loading ======== */ .wiki-detail-loading { height: 100vh; display: flex; align-items: center; justify-content: center; background: #F4F6F0; } /* Header Share Button */ .header-share-btn { position: absolute; top: 24rpx; right: 24rpx; width: 72rpx; height: 72rpx; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 20; border: none; padding: 0; line-height: normal; margin: 0; } .header-share-btn::after { border: none; } .header-share-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.5); transition: transform 0.1s; } /* Card Collect Button */ .card-collect-btn { position: absolute; top: 32rpx; right: 32rpx; width: 80rpx; height: 80rpx; display: flex; align-items: center; justify-content: center; z-index: 20; } .card-collect-btn:active { transform: scale(0.9); transition: transform 0.1s; } /* Ask AI FAB */ .ask-ai-fab { position: fixed; right: 32rpx; bottom: 48rpx; background: linear-gradient(135deg, rgba(21,101,192,0.92), rgba(25,118,210,0.92)); backdrop-filter: blur(12px); color: #fff; padding: 20rpx 32rpx; border-radius: 48rpx; display: flex; align-items: center; gap: 10rpx; font-size: 26rpx; font-weight: 700; box-shadow: 0 8rpx 28rpx rgba(21,101,192,0.3); z-index: 100; transition: all 0.2s; } .ask-ai-fab:active { transform: scale(0.92); } .fab-emoji { font-size: 32rpx; line-height: 1; }