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

604 lines
10 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;
}
/* 问诊记录卡片 */
.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: center;
padding: 24rpx 28rpx;
border-bottom: 1rpx solid #F5F9FF;
}
.user-section {
display: flex;
align-items: center;
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-name {
font-size: 28rpx;
color: #1A1A1A;
font-weight: 600;
}
/* 状态标签 */
.status-tag {
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: 600;
min-width: 80rpx;
text-align: center;
flex-shrink: 0;
}
.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);
}
/* 牲畜信息 */
.livestock-section {
padding: 20rpx 28rpx;
}
/* 牲畜信息标题优化 */
.livestock-title-wrapper {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20rpx;
position: relative;
}
.livestock-title-line {
flex: 1;
height: 2rpx;
background: linear-gradient(90deg, transparent, #4A7CFF 50%, transparent);
opacity: 0.3;
}
.livestock-title-content {
display: flex;
align-items: center;
gap: 12rpx;
padding: 0 20rpx;
position: relative;
}
.livestock-title-text {
font-size: 30rpx;
font-weight: 700;
color: #333;
background: linear-gradient(135deg, #4A7CFF 0%, #8CB4FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 2rpx 4rpx rgba(74, 124, 255, 0.1);
letter-spacing: 1rpx;
}
.livestock-tags {
display: flex;
gap: 16rpx;
flex-wrap: wrap;
}
.livestock-tag {
padding: 5rpx 20rpx;
border-radius: 20rpx;
font-size: 26rpx;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.type-tag {
background: linear-gradient(135deg, #6D9EFF 0%, #4A7CFF 100%);
color: #FFFFFF;
border: 2rpx solid rgba(255, 255, 255, 0.3);
}
.age-tag {
background: linear-gradient(135deg, #FFB347 0%, #FFA033 100%);
color: #FFFFFF;
border: 2rpx solid rgba(255, 255, 255, 0.3);
}
.gender-tag {
background: linear-gradient(135deg, #42E695 0%, #3BB2B8 100%);
color: #FFFFFF;
border: 2rpx solid rgba(255, 255, 255, 0.3);
}
.tag-text {
font-size: 26rpx;
font-weight: 600;
color: #FFFFFF;
}
/* 症状描述 */
.symptom-section {
padding: 24rpx 28rpx 28rpx;
}
.symptom-content {
background: #F9FAFF;
padding: 20rpx 24rpx;
border-radius: 16rpx;
border: 1rpx solid #E6ECFF;
position: relative;
}
.symptom-content::before {
content: '症状描述';
position: absolute;
top: -12rpx;
left: 24rpx;
background: #FFFFFF;
padding: 0 12rpx;
font-size: 24rpx;
font-weight: 600;
color: #4A7CFF;
z-index: 1;
}
.symptom-text {
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;
border-top: 1rpx solid #F5F9FF;
}
.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;
display: inline-block;
padding: 8rpx 16rpx;
}
/* 空状态优化 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 120rpx;
text-align: center;
}
.empty-icon {
width: 400rpx;
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;
}
/* 卡片入场动画 */
@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; }
/* ========== 弹窗样式(适配新增标题字段) ========== */
.plan-popup {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: flex-end;
}
.popup-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
animation: fadeIn 0.2s ease;
}
/* 弹窗内容 */
.popup-content {
position: relative;
width: 100%;
background-color: #ffffff;
border-radius: 32rpx 32rpx 0 0;
box-shadow: 0 -8rpx 40rpx rgba(74, 124, 255, 0.12);
animation: slideUp 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
max-height: 80vh;
display: flex;
flex-direction: column;
}
/* 弹窗头部 */
.popup-header {
padding: 30rpx 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx solid #F0F7FF;
background: linear-gradient(90deg, #F8FBFF, #ffffff);
border-top-left-radius: 30rpx;
border-top-right-radius: 30rpx;
}
.popup-title {
font-size: 36rpx;
font-weight: 700;
color: #1A1A1A;
background: linear-gradient(135deg, #4A7CFF 0%, #8CB4FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: 1rpx;
}
.popup-close {
width: 48rpx;
height: 48rpx;
line-height: 48rpx;
text-align: center;
font-size: 36rpx;
color: #999;
background: #F5F9FF;
border-radius: 50%;
transition: all 0.2s;
}
.popup-close:active {
background: #E6ECFF;
color: #4A7CFF;
}
/* 表单滚动区 */
.popup-form {
flex: 1;
padding: 30rpx 40rpx 20rpx;
box-sizing: border-box;
max-height: 60vh;
}
.form-item {
margin-bottom: 36rpx;
position: relative;
}
.item-label-wrapper {
display: flex;
align-items: center;
margin-bottom: 12rpx;
}
.item-label {
font-size: 30rpx;
font-weight: 600;
color: #333;
}
.required-star {
color: #FF6B6B;
margin-left: 6rpx;
font-size: 28rpx;
}
.optional-tip {
color: #999;
font-size: 26rpx;
margin-left: 12rpx;
font-weight: 400;
}
.item-input {
width: 100%;
height: 88rpx;
background: #F9FAFF;
border: 2rpx solid #E6ECFF;
border-radius: 20rpx;
padding: 0 28rpx;
font-size: 30rpx;
color: #1A1A1A;
box-sizing: border-box;
transition: border 0.2s;
}
.item-input:focus {
border-color: #4A7CFF;
}
.item-input.disabled {
background: #F0F2F6;
color: #666;
border-color: #DDD;
}
.item-textarea {
width: 100%;
background: #F9FAFF;
border: 2rpx solid #E6ECFF;
border-radius: 20rpx;
padding: 24rpx 28rpx;
font-size: 30rpx;
color: #1A1A1A;
line-height: 1.6;
min-height: 160rpx;
box-sizing: border-box;
}
.word-count {
position: absolute;
right: 16rpx;
bottom: 5rpx;
font-size: 24rpx;
color: #AAA;
background: #F9FAFF;
padding: 0 8rpx;
z-index: 2;
}
/* 弹窗底部按钮 */
.popup-footer {
padding: 24rpx 40rpx 40rpx;
display: flex;
gap: 24rpx;
border-top: 2rpx solid #F0F7FF;
background: #ffffff;
}
.btn-cancel, .btn-submit {
flex: 1;
height: 88rpx;
border-radius: 44rpx;
font-size: 32rpx;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
}
.btn-cancel {
background: #F5F9FF;
color: #666;
border: none;
}
.btn-cancel:active {
background: #E6ECFF;
}
.btn-submit {
background: linear-gradient(135deg, #6D9EFF 0%, #4A7CFF 100%);
color: #FFFFFF;
border: none;
}
.btn-submit:active {
opacity: 0.9;
transform: scale(0.98);
}
/* placeholder样式 */
.placeholder-style {
color: #B0B8C5;
font-size: 28rpx;
}
/* 动画定义 */
@keyframes slideUp {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* 响应式适配 */
@media screen and (min-width: 768px) {
.record-card {
max-width: 600rpx;
margin-left: auto;
margin-right: auto;
}
}