Files
sundynix-plant-mp/pages/wiki/chat/history/index.wxss
T
2026-04-23 11:13:23 +08:00

196 lines
3.1 KiB
Plaintext

/** pages/wiki/chat/history/index.wxss **/
.history-page {
height: 100vh;
background: linear-gradient(180deg, #EEF3E5 0%, #F4F6F0 100%);
}
.history-scroll {
height: 100%;
padding: 24rpx 28rpx;
}
.header-bar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
padding: 0 8rpx;
}
.header-count {
font-size: 26rpx;
color: #78909C;
}
.clear-btn {
display: flex;
align-items: center;
gap: 6rpx;
font-size: 26rpx;
color: #EF4444;
font-weight: 600;
padding: 8rpx 16rpx;
border-radius: 16rpx;
}
.clear-btn:active {
background: rgba(239,68,68,0.08);
}
/* Card */
.history-card {
background: rgba(255,255,255,0.92);
backdrop-filter: blur(8px);
border-radius: 24rpx;
padding: 24rpx 24rpx 20rpx;
margin-bottom: 16rpx;
box-shadow: 0 2rpx 12rpx rgba(85,139,47,0.05);
border: 1rpx solid rgba(85,139,47,0.04);
transition: all 0.15s;
animation: cardIn 0.3s ease-out;
}
@keyframes cardIn {
from { opacity: 0; transform: translateY(12rpx); }
to { opacity: 1; transform: translateY(0); }
}
.history-card:active {
transform: scale(0.98);
background: #FAFDF7;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
}
.card-time {
font-size: 22rpx;
color: #9CA3AF;
}
.card-del {
padding: 8rpx;
margin: -8rpx;
}
.card-question {
display: flex;
gap: 12rpx;
margin-bottom: 12rpx;
}
.q-label {
width: 40rpx;
height: 40rpx;
border-radius: 10rpx;
background: linear-gradient(135deg, #558B2F, #7CB342);
color: #fff;
font-size: 24rpx;
font-weight: 700;
text-align: center;
line-height: 40rpx;
flex-shrink: 0;
}
.q-text {
font-size: 30rpx;
font-weight: 600;
color: #1F2937;
line-height: 1.5;
flex: 1;
}
.card-answer {
display: flex;
gap: 12rpx;
}
.a-label {
width: 40rpx;
height: 40rpx;
border-radius: 10rpx;
background: #E8F5E9;
color: #2E7D32;
font-size: 24rpx;
font-weight: 700;
text-align: center;
line-height: 40rpx;
flex-shrink: 0;
}
.a-text {
font-size: 26rpx;
color: #6B7280;
line-height: 1.6;
flex: 1;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-arrow {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: auto;
padding-left: 8rpx;
}
/* Footer */
.footer {
padding: 32rpx;
display: flex;
justify-content: center;
}
.no-more {
font-size: 24rpx;
color: #CCC;
}
/* Empty */
.empty-wrap {
display: flex;
flex-direction: column;
align-items: center;
padding: 120rpx 0;
}
.empty-icon {
font-size: 96rpx;
margin-bottom: 24rpx;
}
.empty-text {
font-size: 32rpx;
font-weight: 600;
color: #9CA3AF;
margin-bottom: 8rpx;
}
.empty-sub {
font-size: 26rpx;
color: #CCC;
margin-bottom: 32rpx;
}
.empty-cta {
padding: 16rpx 48rpx;
border-radius: 40rpx;
background: linear-gradient(135deg, #558B2F, #7CB342);
color: #fff;
font-size: 28rpx;
font-weight: 600;
box-shadow: 0 6rpx 20rpx rgba(85,139,47,0.3);
transition: all 0.15s;
}
.empty-cta:active {
transform: scale(0.95);
}