.expert-page { min-height: 100vh; background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%); } /* 顶部区域样式 */ .header-section { background: linear-gradient(135deg, #2c8c34 0%, #4caf50 100%); padding: 40rpx 40rpx 50rpx; position: relative; overflow: hidden; } .header-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .bg-circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .bg-circle-1 { width: 300rpx; height: 300rpx; top: -150rpx; right: -100rpx; } .bg-circle-2 { width: 200rpx; height: 200rpx; bottom: -80rpx; left: -80rpx; } .bg-circle-3 { width: 150rpx; height: 150rpx; top: 50%; right: 20%; } .header-content { position: relative; z-index: 2; } .title-row { display: flex; align-items: center; margin-bottom: 20rpx; } .main-title { font-size: 52rpx; font-weight: bold; color: white; margin-right: 20rpx; } .expert-badge { background: rgba(255, 255, 255, 0.2); border: 2rpx solid rgba(255, 255, 255, 0.3); border-radius: 30rpx; padding: 6rpx 20rpx; backdrop-filter: blur(10rpx); } .badge-text { font-size: 24rpx; color: white; font-weight: 500; } .sub-title { font-size: 28rpx; color: rgba(255, 255, 255, 0.9); margin-bottom: 40rpx; display: block; } .stats-row { display: flex; align-items: center; background: rgba(255, 255, 255, 0.15); border-radius: 24rpx; padding: 20rpx; backdrop-filter: blur(10rpx); } .stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; } .stat-number { font-size: 36rpx; font-weight: bold; color: white; margin-bottom: 8rpx; } .stat-label { font-size: 24rpx; color: rgba(255, 255, 255, 0.85); } .stat-divider { width: 2rpx; height: 40rpx; background: rgba(255, 255, 255, 0.3); } /* 搜索和筛选区域 */ .search-filter-section { background: white; border-radius: 40rpx 40rpx 0 0; margin-top: -30rpx; position: relative; z-index: 10; padding: 30rpx 40rpx 0; box-shadow: 0 -10rpx 30rpx rgba(44, 140, 52, 0.1); } .search-wrapper { margin-bottom: 30rpx; } .search-box { display: flex; align-items: center; background: #f8faf9; border-radius: 50rpx; padding: 20rpx 30rpx; border: 2rpx solid #e8f5e9; transition: all 0.3s; } .search-box:active { background: #f0f9f1; border-color: #2c8c34; } .search-icon { width: 36rpx; height: 36rpx; margin-right: 20rpx; opacity: 0.5; } .search-box input { flex: 1; font-size: 30rpx; color: #333; height: 40rpx; line-height: 40rpx; } .placeholder { color: #999; font-size: 28rpx; } .clear-btn { width: 40rpx; height: 40rpx; display: flex; align-items: center; justify-content: center; background: #EAEBED; border-radius: 50%; margin-left: 10rpx; } .clear-icon { width: 28rpx; height: 28rpx; } /* 筛选标签 */ .filter-scroll { white-space: nowrap; } .filter-tags { display: inline-flex; padding-bottom: 20rpx; } .filter-tag { display: inline-flex; align-items: center; padding: 16rpx 24rpx; margin-right: 20rpx; background: #f8faf9; border-radius: 30rpx; border: 2rpx solid #e8f5e9; color: #666; font-size: 28rpx; font-weight: 500; transition: all 0.3s; } .filter-tag.active { background: #2c8c34; border-color: #2c8c34; color: white; } .tag-count { background: rgba(255, 255, 255, 0.2); color: #2c8c34; font-size: 22rpx; padding: 2rpx 10rpx; border-radius: 20rpx; margin-left: 8rpx; } .filter-tag.active .tag-count { background: rgba(255, 255, 255, 0.3); color: white; } .online-count { color: #4caf50; } /* 专家列表区域 */ .expert-list-section { padding: 0 30rpx 30rpx; } .list-header { display: flex; justify-content: space-between; align-items: center; padding: 30rpx 0 20rpx; border-bottom: 2rpx solid #f0f5f1; } .list-title { font-size: 36rpx; font-weight: bold; color: #333; } .list-count { font-size: 26rpx; color: #666; } .expert-cards { height: calc(100vh - 700rpx); padding-bottom: 30rpx; } /* 空状态 */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120rpx 0; } .empty-image { width: 240rpx; height: 240rpx; margin-bottom: 40rpx; opacity: 0.6; } .empty-title { font-size: 34rpx; color: #999; font-weight: bold; margin-bottom: 20rpx; } /* 专家卡片 */ .expert-card { background: white; border-radius: 30rpx; padding: 30rpx; margin-bottom: 10rpx; display: grid; grid-template-columns: 1fr 2fr; align-items: center; box-shadow: 0 6rpx 30rpx rgba(0, 0, 0, 0.05); border: 2rpx solid #f0f5f1; transition: all 0.3s; position: relative; } .expert-card:active { transform: translateY(-4rpx); box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.1); border-color: #e8f5e9; } .card-left { margin-right: 25rpx; } .avatar-container { position: relative; width: 150rpx; height: 180rpx; border-radius: 16rpx; overflow: hidden; } .expert-avatar { width: 100%; height: 100%; background: #f5f7fa; } .online-badge { position: absolute; bottom: 0rpx; right: 0rpx; padding: 5rpx 15rpx; border-radius: 20rpx; font-size: 18rpx; font-weight: bold; color: white; text-align: center; } .online-badge.online { background: linear-gradient(135deg, #4caf50 0%, #2c8c34 100%); } .online-badge.offline { background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%); } .card-middle { flex: 1; } .name-title-row { display: flex; align-items: center; margin-bottom: 20rpx; } .expert-name { font-size: 36rpx; font-weight: bold; color: #333; margin-right: 15rpx; } .expert-title { font-size: 26rpx; color: #2c8c34; background: #f0f9f1; padding: 4rpx 12rpx; border-radius: 8rpx; font-weight: 500; } /* 信息展示区域 */ .info-display { display: flex; flex-direction: column; gap: 12rpx; margin-bottom: 20rpx; } .info-item { display: flex; align-items: flex-start; font-size: 28rpx; line-height: 1.4; } .info-label { color: #666; min-width: 150rpx; font-weight: 500; } .info-value { color: #333; flex: 1; font-weight: 600; } .contact-btn { font-size: 22rpx; padding: 6rpx 20rpx; border-radius: 30rpx; border: none; color: white; font-weight: bold; box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1); transition: all 0.3s; display: inline-block; position: absolute; right: 20rpx; bottom: 20rpx; } .contact-btn.online-btn { background: linear-gradient(135deg, #4caf50 0%, #2c8c34 100%); } .contact-btn.offline-btn { background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%); } .contact-btn:active { transform: scale(0.95); box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2); } /* 联系方式弹窗 */ .dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .contact-modal { width: 86vw; max-height: 80vh; background: white; border-radius: 20rpx; overflow: hidden; animation: slideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; } @keyframes slideUp { from { opacity: 0; transform: translateY(100rpx) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } /* 可滚动的内容区域 */ .modal-content { flex: 1; overflow-y: auto; max-height: calc(80vh - 150rpx); } /* 模态框头部 */ .modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 40rpx 40rpx 30rpx; background: linear-gradient(135deg, #f0f9f1 0%, #ffffff 100%); border-bottom: 2rpx solid #f0f5f1; } .header-left { display: flex; align-items: flex-start; flex: 1; } .modal-avatar { width: 120rpx; height: 120rpx; border-radius: 50%; margin-right: 25rpx; border: 4rpx solid white; box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.1); } .expert-intro { flex: 1; } .modallei { display: flex; align-items: center; } .modal-name { display: block; font-size: 38rpx; font-weight: bold; color: #333; } .title-status { display: flex; align-items: center; margin: 10rpx 0; } .modal-title { font-size: 28rpx; color: #2c8c34; background: #f0f9f1; padding: 0rpx 10rpx; border-radius: 10rpx; font-weight: 500; margin: 0 20rpx; } .modal-status { display: flex; align-items: center; font-size: 26rpx; padding: 6rpx 15rpx; border-radius: 10rpx; font-weight: 500; } .modal-status.online { background: #e8f5e9; color: #2c8c34; } .modal-status.offline { background: #f5f5f5; color: #757575; } .status-dot { width: 12rpx; height: 12rpx; border-radius: 50%; margin-right: 8rpx; background: currentColor; } /* 专家简介 */ .expert-bio { padding: 30rpx 40rpx; border-bottom: 2rpx solid #f0f5f1; } .bio-header { display: flex; align-items: center; margin-bottom: 10rpx; } .bio-title { font-size: 30rpx; font-weight: bold; color: #333; } .bio-content { font-size: 28rpx; color: #555; line-height: 1.6; } /* 联系方式区域 */ .contact-section { padding: 30rpx 40rpx; border-bottom: 2rpx solid #f0f5f1; } .contact-item { display: flex; align-items: center; padding: 25rpx 0; } .contact-item:not(:last-child) { border-bottom: 1rpx solid #f5f5f5; } .contact-icon-container { width: 60rpx; height: 60rpx; border-radius: 18rpx; display: flex; align-items: center; justify-content: center; margin-right: 20rpx; } .phone-item .contact-icon-container { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); } .email-item .contact-icon-container { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); } .institution-item .contact-icon-container { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); } .contact-item-icon { width: 32rpx; height: 32rpx; } .contact-info { flex: 1; } .contact-label { display: block; font-size: 26rpx; color: #888; margin-bottom: 6rpx; } .contact-value { display: block; font-size: 32rpx; color: #333; font-weight: 600; margin-bottom: 4rpx; } .contact-desc { display: block; font-size: 24rpx; color: #aaa; } .action-btn { display: flex; align-items: center; justify-content: center; border-radius: 50rpx; font-size: 22rpx; font-weight: 600; border: none; margin-left: 20rpx; transition: all 0.3s; } .call-btn { background: linear-gradient(135deg, #4caf50 0%, #2c8c34 100%); color: white; } .copy-btn { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); color: white; } .address-btn { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); color: white; } .action-btn:active { transform: scale(0.95); } /* 咨询时间 */ .consultation-time { padding: 30rpx 40rpx; border-bottom: 2rpx solid #f0f5f1; } .time-header { display: flex; align-items: center; margin-bottom: 20rpx; } .time-title { font-size: 30rpx; font-weight: bold; color: #333; } .time-content { display: block; font-size: 28rpx; color: #555; line-height: 1.5; margin-bottom: 20rpx; } .time-slots { display: flex; gap: 20rpx; } .time-slot { background: #f8faf9; padding: 10rpx 20rpx; border-radius: 15rpx; font-size: 24rpx; color: #666; border: 1rpx solid #e8f5e9; } /* 操作按钮(固定在底部) */ .modal-actions { display: flex; padding: 30rpx 40rpx; gap: 20rpx; border-top: 2rpx solid #f0f5f1; background: white; flex-shrink: 0; } .secondary-btn, .primary-btn { flex: 1; border-radius: 50rpx; font-size: 32rpx; font-weight: bold; transition: all 0.3s; } .secondary-btn { background: #f8faf9; color: #666; border: 2rpx solid #e8f5e9; } .primary-btn { background: linear-gradient(135deg, #4caf50 0%, #2c8c34 100%); color: white; box-shadow: 0 6rpx 20rpx rgba(44, 140, 52, 0.3); } .secondary-btn:active, .primary-btn:active { transform: scale(0.98); }