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

415 lines
7.6 KiB

/* 全局样式 */
.wzbox{
min-height: 100vh;
position: relative;
background: linear-gradient(180deg, #F8FBFF 0%, #F0F7FF 100%);
}
/* 头部样式优化 */
.header {
padding: 20rpx 40rpx 20rpx;
background: linear-gradient(135deg, #6D9EFF 0%, #4A7CFF 100%);
border-radius: 0 0 36rpx 36rpx;
box-shadow: 0 4rpx 20rpx rgba(74, 144, 226, 0.15);
position: relative;
overflow: hidden;
}
.header-content {
position: relative;
z-index: 2;
}
.title-section {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.title {
font-size: 44rpx;
font-weight: 700;
color: #FFFFFF;
letter-spacing: 0.5rpx;
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.subtitle {
font-size: 28rpx;
color: rgba(255, 255, 255, 0.9);
font-weight: 400;
}
/* 头部装饰元素 */
.header-decoration {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 1;
}
.decoration-circle {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
}
.circle-1 {
width: 200rpx;
height: 200rpx;
top: -80rpx;
right: -40rpx;
}
.circle-2 {
width: 120rpx;
height: 120rpx;
bottom: -40rpx;
left: -20rpx;
}
/* 问诊记录列表 */
.record-list {
height: calc(100vh - 200rpx);
padding: 0 32rpx 20rpx;
box-sizing: border-box;
}
.records-container {
padding-top: 24rpx;
}
/* 列表头部 */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
padding: 0 4rpx;
}
.section-title {
font-size: 32rpx;
font-weight: 700;
color: #1A1A1A;
position: relative;
padding-left: 16rpx;
}
.section-title::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3rpx;
height: 20rpx;
background: linear-gradient(180deg, #6D9EFF 0%, #4A7CFF 100%);
border-radius: 2rpx;
}
.section-count {
font-size: 26rpx;
color: #666;
background: #F0F7FF;
padding: 6rpx 16rpx;
border-radius: 16rpx;
font-weight: 500;
}
/* 问诊记录卡片 */
.record-card {
background: #FFFFFF;
border-radius: 24rpx;
margin-bottom: 24rpx;
box-shadow: 0 6rpx 24rpx rgba(74, 144, 226, 0.08);
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
border: 1rpx solid #F0F7FF;
}
.record-card:active {
transform: translateY(-2rpx);
box-shadow: 0 10rpx 30rpx rgba(74, 144, 226, 0.15);
}
/* 卡片头部 */
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 28rpx 28rpx 24rpx;
border-bottom: 1rpx solid #F5F9FF;
}
.user-info {
display: flex;
align-items: flex-start;
gap: 16rpx;
flex: 1;
}
.user-avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 2rpx solid rgba(255, 255, 255, 0.8);
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}
.user-details {
display: flex;
flex-direction: column;
gap: 6rpx;
}
.user-name {
font-size: 28rpx;
color: #1A1A1A;
font-weight: 600;
line-height: 1.2;
}
.pet-info {
font-size: 24rpx;
color: #666;
font-weight: 400;
line-height: 1.2;
}
/* 状态标签 - 移至右上角 */
.status-tag {
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: 600;
min-width: 80rpx;
text-align: center;
flex-shrink: 0;
margin-left: 16rpx;
}
.status-replied {
background: linear-gradient(135deg, rgba(76, 217, 100, 0.12) 0%, rgba(46, 204, 113, 0.12) 100%);
color: #2ECC71;
border: 1rpx solid rgba(46, 204, 113, 0.2);
}
.status-pending {
background: linear-gradient(135deg, rgba(255, 149, 0, 0.12) 0%, rgba(255, 127, 0, 0.12) 100%);
color: #FF9500;
border: 1rpx solid rgba(255, 149, 0, 0.2);
}
/* 症状描述 */
.symptom-section {
padding: 24rpx 28rpx;
border-bottom: 1rpx solid #F5F9FF;
}
.section-title-row {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 16rpx;
}
.section-title-text {
font-size: 28rpx;
font-weight: 600;
color: #1A1A1A;
}
.symptom-content {
display: flex;
align-items: flex-start;
gap: 20rpx;
}
.symptom-text {
flex: 1;
font-size: 28rpx;
color: #333;
line-height: 1.6;
font-weight: 400;
}
/* 卡片底部 */
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 28rpx;
}
.time-info {
display: flex;
align-items: center;
gap: 8rpx;
}
.time-text {
font-size: 24rpx;
color: #999;
font-weight: 400;
}
.reply-info {
display: flex;
align-items: center;
gap: 8rpx;
padding: 8rpx 16rpx;
background: #F0F7FF;
border-radius: 16rpx;
border: 1rpx solid #E5EFFF;
}
.reply-count {
font-size: 24rpx;
font-weight: 500;
color: #4A7CFF;
}
/* 空状态优化 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 120rpx;
text-align: center;
}
.empty-icon {
width: 240rpx;
height: 180rpx;
margin-bottom: 32rpx;
opacity: 0.5;
}
.empty-text {
font-size: 32rpx;
color: #666;
margin-bottom: 12rpx;
font-weight: 600;
}
.empty-tip {
font-size: 26rpx;
color: #999;
margin-bottom: 40rpx;
line-height: 1.4;
}
/* 列表底部 */
.list-footer {
text-align: center;
padding: 40rpx 0;
color: #999;
font-size: 24rpx;
}
.footer-text {
opacity: 0.6;
letter-spacing: 1rpx;
}
/* 新建问诊按钮优化 */
.create-btn-container {
position: fixed;
bottom: 40rpx;
right: 32rpx;
z-index: 100;
}
.create-btn {
width: 140rpx;
height: 140rpx;
background: linear-gradient(135deg, #6D9EFF 0%, #4A7CFF 100%);
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 8rpx 32rpx rgba(74, 144, 226, 0.3);
transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.create-btn::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.1);
opacity: 0;
transition: opacity 0.2s ease;
}
.create-btn:active {
transform: scale(0.95);
box-shadow: 0 4rpx 20rpx rgba(74, 144, 226, 0.4);
}
.create-btn:active::after {
opacity: 1;
}
.btn-icon {
width: 40rpx;
height: 40rpx;
margin-bottom: 10rpx;
}
.btn-text {
font-size: 26rpx;
color: white;
font-weight: 600;
letter-spacing: 0.5rpx;
}
/* 卡片入场动画 */
@keyframes cardSlideIn {
from {
opacity: 0;
transform: translateY(30rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.record-card {
animation: cardSlideIn 0.4s ease-out forwards;
opacity: 0;
}
.record-card:nth-child(1) { animation-delay: 0.1s; }
.record-card:nth-child(2) { animation-delay: 0.15s; }
.record-card:nth-child(3) { animation-delay: 0.2s; }
.record-card:nth-child(4) { animation-delay: 0.25s; }
.record-card:nth-child(5) { animation-delay: 0.3s; }
/* 响应式适配 */
@media screen and (min-width: 768px) {
.record-card {
max-width: 600rpx;
margin-left: auto;
margin-right: auto;
}
}