/* pages/buyer/index.wxss */ page { height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 50%, #e8e8e8 100%); margin: 0; padding: 0; } .container { min-height: 100vh; width: 100%; display: flex; flex-direction: column; box-sizing: border-box; background-color: #f8f8f8; padding: 0; margin: 0; } /* 搜索区域样式 */ .search-section { width: 100%; margin: 0 20rpx 20rpx 20rpx; flex: 0 1 auto; box-sizing: border-box; } .search-bar { display: flex; align-items: center; gap: 10rpx; width: 100%; background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%); padding: 6rpx; border-radius: 50rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.12); box-sizing: border-box; border: 1rpx solid rgba(22, 119, 255, 0.2); } .search-input-wrapper { flex: 1; display: flex; align-items: center; position: relative; background-color: white; border-radius: 40rpx; padding: 0 10rpx; } .search-icon { margin: 0 10rpx; font-size: 28rpx; color: #999; transition: all 0.3s ease; } .search-input { flex: 1; height: 70rpx; font-size: 28rpx; color: #333; border: none; outline: none; background: transparent; } .search-placeholder { color: #999; } .clear-icon { font-size: 32rpx; color: #999; padding: 10rpx 20rpx; } .search-button { background-color: #1677ff; color: white; border: none; border-radius: 40rpx; padding: 12rpx 16rpx; font-size: 22rpx; font-weight: bold; white-space: nowrap; box-shadow: 0 2rpx 8rpx rgba(22, 119, 255, 0.3); min-width: 100rpx; text-align: center; } /* 搜索框样式 */ .search-bar { width: 100%; margin: 20rpx; flex: 0 1 auto; box-sizing: border-box; } .search-container { display: flex; align-items: center; width: 100%; border-radius: 50rpx; background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%); padding: 6rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.12); box-sizing: border-box; border: 1rpx solid rgba(22, 119, 255, 0.2); } .search-icon { margin: 0 15rpx; font-size: 28rpx; color: #999; } .search-input { flex: 1; height: 70rpx; font-size: 28rpx; color: #333; background: transparent; border: none; outline: none; } .search-input::placeholder { color: #999; font-size: 28rpx; } .clear-icon { font-size: 32rpx; color: #999; padding: 10rpx 20rpx; } /* 商品列表样式 */ .goods-list { flex: 1; padding: 20rpx 32rpx; overflow-y: auto; -webkit-overflow-scrolling: touch; } .card { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10rpx); -webkit-backdrop-filter: blur(10rpx); border-radius: 20rpx; overflow: hidden; box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.15), 0 0 0 1rpx rgba(0, 0, 0, 0.08), inset 0 0 0 1rpx rgba(255, 255, 255, 0.95); border: 2rpx solid rgba(200, 200, 200, 0.5); margin-bottom: 16rpx; transition: all 0.3s ease; } .card:hover { transform: translateY(-4rpx); box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.2), 0 0 0 2rpx rgba(0, 0, 0, 0.1), inset 0 0 0 1rpx rgba(255, 255, 255, 1); } .image-swiper { width: 100%; height: 100%; } /* 商品卡片内部布局 */ .goods-card-content { display: flex; width: 100%; height: 200rpx; } .goods-image-section { width: 40%; position: relative; height: 200rpx; } .goods-image { width: 100%; height: 100%; } .goods-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: #f5f5f5; color: #999; font-size: 24rpx; } .image-page-indicator { position: absolute; bottom: 10rpx; right: 10rpx; background-color: rgba(0, 0, 0, 0.5); color: white; padding: 4rpx 12rpx; border-radius: 15rpx; font-size: 20rpx; } .goods-info-section { width: 60%; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(5rpx); border-left: 1rpx solid rgba(240, 240, 240, 0.8); } .goods-info-top { flex: 0.6; padding: 16rpx 20rpx; display: flex; flex-direction: column; } .goods-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8rpx; margin-bottom: 8rpx; } .supply-tag { font-size: 20rpx; padding: 4rpx 10rpx; border-radius: 8rpx; font-weight: 600; white-space: nowrap; } .supply-tag.spot { background: rgba(82, 196, 26, 0.15); color: #389e0d; border: 1rpx solid rgba(82, 196, 26, 0.5); } .supply-tag.presale { background: rgba(255, 154, 28, 0.15); color: #d46b08; border: 1rpx solid rgba(255, 154, 28, 0.5); } .auth-badge { font-size: 20rpx; padding: 4rpx 10rpx; background: linear-gradient(135deg, #4a90e2 0%, #2b66f0 50%, #1a4bbd 100%); color: white; clip-path: polygon(50% 0%, 70% 10%, 100% 30%, 100% 70%, 70% 90%, 50% 100%, 30% 90%, 0% 70%, 0% 30%, 30% 10%); font-weight: bold; } .goods-name { font-size: 30rpx; font-weight: bold; color: #333; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; } .goods-spec { font-size: 24rpx; color: #888; margin-top: 8rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .goods-info-bottom { flex: 0.4; display: flex; justify-content: space-between; align-items: center; padding: 0 20rpx; border-top: 1rpx solid rgba(240, 240, 240, 0.5); } .favorite-count { display: flex; align-items: center; font-size: 24rpx; color: #999; } .favorite-count .count { color: #d865d8; font-weight: bold; margin: 0 6rpx; } .favorite-button { font-size: 22rpx; font-weight: 600; width: 120rpx; height: 50rpx; border-radius: 25rpx; display: flex; justify-content: center; align-items: center; padding: 0; border: none; transition: all 0.3s ease; } .favorite-button.add { color: #1677ff; background: rgba(22, 119, 255, 0.15); border: 1rpx solid rgba(22, 119, 255, 0.3); } .favorite-button.add:hover { background: rgba(22, 119, 255, 0.25); } .favorite-button.add:active { transform: scale(0.95); } .favorite-button.canceled { color: #ff6b6b; background: rgba(255, 107, 107, 0.15); border: 1rpx solid rgba(255, 107, 107, 0.3); } /* 弹窗样式 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: flex-end; z-index: 9999; overflow: hidden; } .modal-container { background: white; padding: 40rpx; border-radius: 16rpx; width: 80%; max-width: 500rpx; text-align: center; box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1); } .modal-title { font-size: 32rpx; font-weight: bold; margin-bottom: 30rpx; color: #333; } .modal-content { font-size: 28rpx; color: #666; margin-bottom: 40rpx; line-height: 1.5; } .modal-buttons { text-align: center; } /* 商品详情弹窗 - 商务风格 */ .goods-detail-modal { background: white; padding: 0; border-radius: 20rpx 20rpx 0 0; width: 100%; height: 100vh; max-height: 100vh; overflow: hidden; box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; margin-bottom: 0; z-index: 9999; position: absolute; top: 0; left: 0; } .goods-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 32rpx 40rpx; border-bottom: 1rpx solid #f0f0f0; background-color: white; position: sticky; top: 0; z-index: 10000; } .goods-detail-title { font-size: 36rpx; font-weight: 600; color: #2c3e50; margin: 0; } .goods-detail-close { font-size: 44rpx; color: #909399; cursor: pointer; transition: color 0.3s; position: sticky; top: 32rpx; z-index: 10001; } .goods-detail-close:hover { color: #606266; } .goods-detail-content { padding: 40rpx; overflow-y: auto; flex: 1; height: calc(100vh - 120rpx); -webkit-overflow-scrolling: touch; width: 100%; box-sizing: border-box; } .goods-image-section-detail { margin-bottom: 40rpx; border-radius: 12rpx; overflow: hidden; background-color: #fafafa; } .goods-image-swiper { width: 100%; height: 440rpx; } .goods-image-item { width: 100%; height: 100%; } .goods-info-section-detail { text-align: left; } .goods-name-detail { font-size: 36rpx; font-weight: 600; color: #2c3e50; margin-bottom: 20rpx; line-height: 1.4; } .goods-price { font-size: 42rpx; font-weight: 700; color: #e64340; margin-bottom: 32rpx; } .goods-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24rpx; margin-bottom: 40rpx; padding: 24rpx; background-color: #f8f9fa; border-radius: 12rpx; } .goods-info-item { display: flex; flex-direction: column; } .goods-info-label { font-size: 24rpx; color: #909399; margin-bottom: 8rpx; } .goods-info-value { font-size: 28rpx; color: #2c3e50; font-weight: 500; } .goods-contact-section { text-align: left; padding: 24rpx; background-color: #e8f4fd; border-radius: 12rpx; margin-bottom: 40rpx; border-left: 8rpx solid #1677ff; } .goods-contact-title { font-size: 30rpx; font-weight: 600; color: #2c3e50; margin-bottom: 20rpx; } .goods-contact-item { display: flex; align-items: center; margin-bottom: 16rpx; font-size: 28rpx; color: #2c3e50; } .goods-contact-item:last-child { margin-bottom: 0; justify-content: space-between; } .goods-contact-icon { margin-right: 16rpx; color: #1677ff; } .call-phone-button { background-color: white; color: black; font-size: 24rpx; width: 120rpx; height: 60rpx; line-height: 60rpx; padding: 0; border-radius: 20rpx; border: 1rpx solid #d9d9d9; transition: all 0.3s; white-space: nowrap; text-align: center; } .call-phone-button:hover { background-color: #f5f5f5; transform: translateY(-1rpx); box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1); } .call-phone-button:active { transform: translateY(0); } .goods-action-section { padding: 32rpx 40rpx; border-top: 1rpx solid #f0f0f0; } .goods-action-button { width: 100%; height: 96rpx; line-height: 96rpx; font-size: 32rpx; font-weight: 600; border-radius: 12rpx; transition: all 0.3s; border: none; background-color: #1677ff; color: white; } .goods-action-button:hover { background-color: #4096ff; transform: translateY(-2rpx); box-shadow: 0 4rpx 12rpx rgba(22, 119, 255, 0.3); } .goods-action-button:active { transform: translateY(0); } .goods-action-button.reserved { background-color: #52c41a; } .goods-action-button.reserved:hover { background-color: #73d13d; } /* 响应式设计 */ @media (max-width: 750rpx) { .goods-detail-modal { width: 96%; } .goods-detail-content { padding: 32rpx; } .goods-info-grid { grid-template-columns: 1fr; gap: 16rpx; } } .primary-button { background-color: #1677ff; color: white; font-size: 28rpx; line-height: 80rpx; border-radius: 8rpx; margin-bottom: 20rpx; border: none; width: 100%; } .cancel-button { background-color: #f5f5f5; color: #333; font-size: 28rpx; line-height: 80rpx; border-radius: 8rpx; border: none; width: 100%; } /* 头像选择样式 */ .avatar-section { margin-bottom: 30rpx; } .avatar-wrapper { width: 120rpx; height: 120rpx; border-radius: 50%; background: none; padding: 0; margin: 0 auto; border: none; } .avatar { width: 120rpx; height: 120rpx; border-radius: 50%; } /* 表单样式 */ .form-group { margin-bottom: 30rpx; } .form-input { width: 100%; padding: 20rpx; border: 1rpx solid #ddd; border-radius: 8rpx; box-sizing: border-box; font-size: 28rpx; } .form-actions { text-align: center; margin-bottom: 20rpx; } .confirm-button { background-color: #1677ff; color: white; font-size: 28rpx; line-height: 80rpx; border-radius: 8rpx; border: none; width: 100%; } /* 自定义弹窗样式 */ .custom-toast-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 9999; } .custom-toast { background: white; padding: 40rpx 60rpx; border-radius: 12rpx; text-align: center; transform-origin: center center; } /* 图片预览样式 */ .image-preview-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; z-index: 9999; } /* 按钮样式优化 */ button { border: none; outline: none; } button:after { border: none; } /* 加载状态样式 */ .loading-more { padding: 20rpx 0; text-align: center; font-size: 26rpx; color: #999; } .no-more-data { padding: 20rpx 0; text-align: center; font-size: 26rpx; color: #999; } /* 搜索无结果样式 */ .no-results { text-align: center; color: #999; margin-top: 50rpx; font-size: 28rpx; } /* 响应式设计 */ @media (max-width: 750rpx) { .modal-container { width: 90%; padding: 30rpx; } .card { margin-bottom: 16rpx; } } /* 四分之一页空白页样式 */ .quarter-page-blank { height: 25vh; width: 100%; box-sizing: border-box; } /* 半页空白页样式 */ .half-page-blank { height: 32vh; width: 100%; box-sizing: border-box; } /* 统一登录授权弹窗样式 */ .auth-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; } .auth-modal-container { background-color: #fff; border-radius: 24rpx; width: 85%; max-width: 520rpx; padding: 50rpx 40rpx; box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.18); } .auth-modal-title { font-size: 40rpx; font-weight: bold; color: #333; text-align: center; margin-bottom: 35rpx; } .auth-modal-content { font-size: 32rpx; line-height: 1.6; color: #666; text-align: center; margin-bottom: 50rpx; } .auth-modal-buttons { display: flex; flex-direction: column; gap: 24rpx; } .auth-primary-button { background-color: #07c160; color: #fff; font-size: 34rpx; font-weight: 600; line-height: 1.6; border-radius: 12rpx; padding: 24rpx 0; box-shadow: 0 4rpx 12rpx rgba(7, 193, 96, 0.3); } .auth-cancel-button { background-color: #fff; color: #999; font-size: 34rpx; font-weight: 500; line-height: 1.6; border-radius: 12rpx; padding: 24rpx 0; border: 2rpx solid #e5e5e5; } /* 已加载全部提示 */ .load-complete { display: flex; justify-content: center; align-items: flex-start; padding-top: 20rpx; } .load-complete text { color: #999; font-size: 26rpx; }