与牧同行-小程序用户端
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.
 

289 lines
6.3 KiB

.page {
background: linear-gradient(145deg, #f5f7fa 0%, #f0f2f5 100%);
}
.notice-page {
min-height: 100vh;
background: transparent;
position: relative;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
}
.bg-blur {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 20% 30%, rgba(235, 245, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 70%);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
z-index: 0;
pointer-events: none;
}
.content {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
padding: 30rpx 32rpx 0;
box-sizing: border-box;
}
/* 头部与搜索 */
.header {
margin-bottom: 36rpx;
}
.title {
font-size: 48rpx;
font-weight: 700;
color: #1e293b;
letter-spacing: 2rpx;
display: block;
margin-bottom: 24rpx;
text-shadow: 0 4rpx 12rpx rgba(0,0,0,0.02);
}
.search-box {
background: rgba(255,255,255,0.7);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: 48rpx;
padding: 16rpx 32rpx;
display: flex;
align-items: center;
border: 1rpx solid rgba(255,255,255,0.9);
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.02), 0 2rpx 4rpx rgba(0,0,0,0.02);
transition: all 0.2s;
}
.search-box:focus-within {
border-color: #b2d9ff;
background: rgba(255,255,255,0.9);
box-shadow: 0 12rpx 28rpx rgba(0,120,255,0.08);
}
.search-box .icon {
font-size: 32rpx;
color: #7c8ea0;
margin-right: 16rpx;
}
.search-box input {
flex: 1;
font-size: 30rpx;
padding: 8rpx 0;
color: #1e293b;
}
.placeholder {
color: #9aa6b2;
font-weight: 400;
}
.clear-icon {
font-size: 36rpx;
color: #8e9dac;
padding: 8rpx;
border-radius: 50%;
background: rgba(0,0,0,0.02);
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
/* 分类导航 — 磨砂质感 */
.category-scroll {
white-space: nowrap;
margin-bottom: 32rpx;
background: rgba(255,255,255,0.5);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: 60rpx;
padding: 8rpx 0;
border: 1rpx solid rgba(255,255,255,0.8);
}
.category-list {
display: inline-flex;
padding: 0 24rpx;
}
.category-item {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 16rpx 36rpx;
margin-right: 12rpx;
border-radius: 60rpx;
font-size: 30rpx;
color: #475569;
background: transparent;
transition: all 0.18s;
position: relative;
font-weight: 500;
}
.category-item.active {
background: #ffffff;
color: #1e4bd2;
font-weight: 600;
box-shadow: 0 6rpx 14rpx rgba(0,80,255,0.1);
}
.dot {
width: 8rpx;
height: 8rpx;
background: #1e4bd2;
border-radius: 50%;
margin-top: 6rpx;
}
/* 列表容器 */
.list-container {
flex: 1;
height: calc(100vh - 280rpx);
background: transparent;
border-radius: 40rpx 40rpx 0 0;
margin-top: 8rpx;
}
.notice-scroll {
height: 100%;
padding-bottom: 20rpx;
}
.notice-list {
display: flex;
flex-direction: column;
gap: 28rpx;
}
/* 卡片设计 — 轻盈毛玻璃 */
.notice-card {
background: rgba(255,255,255,0.7);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-radius: 36rpx;
border: 1rpx solid rgba(255,255,255,0.9);
box-shadow: 0 8rpx 18rpx rgba(0,0,0,0.02);
display: flex;
overflow: hidden;
transition: transform 0.2s, box-shadow 0.3s;
}
.notice-card:active {
transform: scale(0.99);
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.04);
}
.card-left-bar {
width: 12rpx;
flex-shrink: 0;
background: #3b82f6;
}
.card-content {
flex: 1;
padding: 32rpx 28rpx;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
}
.notice-title {
font-size: 34rpx;
font-weight: 600;
color: #0a1e3c;
max-width: 460rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.notice-tag {
font-size: 24rpx;
padding: 8rpx 24rpx;
border-radius: 48rpx;
background: #eef2ff;
color: #1e4bd2;
font-weight: 500;
letter-spacing: 1rpx;
}
.notice-abstract {
font-size: 28rpx;
color: #55657a;
line-height: 1.5;
margin-bottom: 28rpx;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
color: #778a9b;
font-size: 26rpx;
}
.date-time, .view-count {
display: flex;
align-items: center;
gap: 8rpx;
}
/* 加载更多 / 状态 */
.load-more {
text-align: center;
padding: 48rpx 0 36rpx;
color: #8f9eb0;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
gap: 12rpx;
}
.loading-icon {
font-size: 48rpx;
line-height: 1;
animation: pulse 1.2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
/* 骨架屏 */
.skeleton-list {
padding: 0 8rpx;
}
.skeleton-item {
background: rgba(255,255,255,0.6);
border-radius: 32rpx;
height: 220rpx;
margin-bottom: 28rpx;
position: relative;
overflow: hidden;
}
.skeleton-item::after {
content: "";
position: absolute;
top: 0;
left: -150%;
width: 200%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
100% { left: 100%; }
}
/* 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 0;
color: #6f7d8c;
font-size: 32rpx;
background: rgba(255,255,255,0.4);
backdrop-filter: blur(8px);
border-radius: 48rpx;
margin-top: 60rpx;
}
/* 模拟图片(无实际图片用文字代替) */
.empty-state text:first-of-type {
font-size: 64rpx;
margin-bottom: 24rpx;
}