You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
479 lines
8.0 KiB
479 lines
8.0 KiB
/* 基础样式 */
|
|
.container_zsl {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
|
|
padding: 0;
|
|
font-family: '思源宋体 Light' !important;
|
|
}
|
|
|
|
/* 搜索区域 */
|
|
.search-area {
|
|
background: #FFFFFF;
|
|
padding: 32rpx 32rpx 24rpx;
|
|
border-bottom-left-radius: 32rpx;
|
|
border-bottom-right-radius: 32rpx;
|
|
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.search-box {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.search-input-wrapper {
|
|
flex: 1;
|
|
height: 80rpx;
|
|
background: #F8FAFC;
|
|
border-radius: 40rpx;
|
|
padding: 0 20rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
border: 2rpx solid #E2E8F0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-input-wrapper:focus-within {
|
|
border-color: #3B82F6;
|
|
box-shadow: 0 0 0 3rpx rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.search-icon {
|
|
width: 45rpx;
|
|
height: 45rpx;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
height: 100%;
|
|
font-size: 28rpx;
|
|
color: #1E293B;
|
|
}
|
|
|
|
.placeholder {
|
|
color: #94A3B8;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.clear-icon {
|
|
color: #94A3B8;
|
|
padding: 8rpx;
|
|
border-radius: 50%;
|
|
background: rgba(148, 163, 184, 0.1);
|
|
}
|
|
|
|
/* 分类筛选 */
|
|
.category-filter {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
overflow-x: auto;
|
|
padding-bottom: 8rpx;
|
|
}
|
|
|
|
.category-filter::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.category-item {
|
|
padding: 16rpx 32rpx;
|
|
background: #F1F5F9;
|
|
border-radius: 40rpx;
|
|
font-size: 28rpx;
|
|
color: #64748B;
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.category-item.active {
|
|
background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
|
|
color: #FFFFFF;
|
|
font-weight: 500;
|
|
box-shadow: 0 8rpx 20rpx rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.category-dot {
|
|
width: 8rpx;
|
|
height: 8rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 50%;
|
|
margin-left: 8rpx;
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 120rpx 0;
|
|
}
|
|
|
|
.spinner {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.spinner-item {
|
|
width: 20rpx;
|
|
height: 20rpx;
|
|
background: #3B82F6;
|
|
border-radius: 50%;
|
|
animation: bounce 1.4s infinite ease-in-out both;
|
|
}
|
|
|
|
.spinner-item:nth-child(1) {
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.spinner-item:nth-child(2) {
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 80%, 100% {
|
|
transform: scale(0);
|
|
}
|
|
40% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 28rpx;
|
|
color: #64748B;
|
|
}
|
|
|
|
/* 搜索结果 */
|
|
.result-list {
|
|
height: calc(100vh - 240rpx);
|
|
}
|
|
|
|
.result-count {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 32rpx 32rpx 24rpx;
|
|
font-size: 28rpx;
|
|
color: #475569;
|
|
}
|
|
|
|
/* 知识列表 */
|
|
.knowledge-list {
|
|
padding: 0 32rpx;
|
|
}
|
|
|
|
.knowledge-item {
|
|
background: #FFFFFF;
|
|
border-radius: 24rpx;
|
|
padding: 32rpx;
|
|
margin-bottom: 24rpx;
|
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
|
|
border: 1rpx solid rgba(226, 232, 240, 0.6);
|
|
}
|
|
|
|
.item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.title-wrapper {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.item-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #1E293B;
|
|
}
|
|
|
|
.item-category {
|
|
padding: 8rpx 20rpx;
|
|
background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
|
|
color: #065F46;
|
|
font-size: 24rpx;
|
|
border-radius: 20rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.item-content {
|
|
font-size: 28rpx;
|
|
color: #475569;
|
|
line-height: 1.6;
|
|
margin-bottom: 28rpx;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 底部信息 */
|
|
.item-footer {
|
|
border-top: 1rpx solid #F1F5F9;
|
|
padding-top: 24rpx;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.tag {
|
|
padding: 8rpx 20rpx;
|
|
background: #F1F5F9;
|
|
color: #475569;
|
|
font-size: 24rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.date-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.date {
|
|
font-size: 24rpx;
|
|
color: #94A3B8;
|
|
}
|
|
|
|
.copy-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12rpx 24rpx;
|
|
background: #F8FAFC;
|
|
border-radius: 20rpx;
|
|
font-size: 26rpx;
|
|
color: #3B82F6;
|
|
border: 1rpx solid #E2E8F0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.copy-btn:active {
|
|
background: #F1F5F9;
|
|
}
|
|
|
|
/* 加载更多样式 */
|
|
.load-more {
|
|
padding: 40rpx 0;
|
|
text-align: center;
|
|
color: #94A3B8;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.load-more-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.loading-dots {
|
|
display: flex;
|
|
gap: 8rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.loading-dots .dot {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
background: #3B82F6;
|
|
border-radius: 50%;
|
|
animation: dotPulse 1.5s infinite ease-in-out;
|
|
}
|
|
|
|
.loading-dots .dot:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.loading-dots .dot:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
@keyframes dotPulse {
|
|
0%, 60%, 100% {
|
|
transform: translateY(0);
|
|
opacity: 0.6;
|
|
}
|
|
30% {
|
|
transform: translateY(-20rpx);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.no-more {
|
|
padding: 40rpx 0;
|
|
text-align: center;
|
|
color: #94A3B8;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 80rpx 32rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #1E293B;
|
|
margin-bottom: 48rpx;
|
|
}
|
|
|
|
.suggestions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
width: 100%;
|
|
max-width: 500rpx;
|
|
}
|
|
|
|
.suggestion-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 24rpx;
|
|
background: #F8FAFC;
|
|
border-radius: 16rpx;
|
|
font-size: 28rpx;
|
|
color: #475569;
|
|
}
|
|
|
|
.suggestion-dot {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
background: #3B82F6;
|
|
border-radius: 50%;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
/* 弹框样式 */
|
|
.modal-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.8);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(4rpx);
|
|
animation: fadeIn 0.3s ease-out;
|
|
font-family: '思源宋体 Light' !important;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.modal-content {
|
|
background: #FFFFFF;
|
|
border-radius: 32rpx;
|
|
width: 80%;
|
|
max-width: 600rpx;
|
|
overflow: hidden;
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(80rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 48rpx 0 40rpx;
|
|
background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
|
|
}
|
|
|
|
.modal-icon {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #0C4A6E;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 40rpx 48rpx;
|
|
}
|
|
|
|
.tip-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.tip-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
|
|
.tip-text {
|
|
font-size: 28rpx;
|
|
color: #334155;
|
|
line-height: 1.5;
|
|
padding-top: 10rpx;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 0 48rpx 48rpx;
|
|
}
|
|
|
|
.modal-confirm {
|
|
width: 100%;
|
|
height: 88rpx;
|
|
background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
|
|
color: #FFFFFF;
|
|
border-radius: 44rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
line-height: 88rpx;
|
|
border: none;
|
|
box-shadow: 0 8rpx 24rpx rgba(59, 130, 246, 0.3);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.modal-confirm:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.modal-confirm::after {
|
|
border: none;
|
|
}
|