/* pages/merchant-order-detail/merchant-order-detail.wxss - 商家订单详情(逍遥梦金色主题) */ @import '../../styles/shangjia-xym-common.wxss'; page { background: #fff8e1; } .sjddxq-page { padding-bottom: calc(200rpx + env(safe-area-inset-bottom)); } /* 加载状态居中布局 */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; } /* 加载旋转动画图标 */ .loading-spinner { width: 64rpx; height: 64rpx; border: 6rpx solid #e0e0e0; border-top-color: #4caf50; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20rpx; } /* 加载文字 */ .loading-text { color: #666; font-size: 28rpx; } /* 内容区域的内边距 */ .content-container { padding: 24rpx; } /* 通用卡片样式 */ .card { background: #fdfcfa; border-radius: 24rpx; padding: 28rpx; margin-bottom: 24rpx; box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06); border: 1rpx solid rgba(245, 213, 99, 0.25); } /* 卡片标题样式 */ .card-title { font-size: 32rpx; font-weight: 600; color: #1a1a1a; margin-bottom: 20rpx; padding-bottom: 12rpx; border-bottom: 1rpx solid #f0f0f0; } /* 商品卡片:左右布局 */ .shangpin-card { display: flex; align-items: center; } /* 商品图片:固定宽高为正方形 */ .shangpin-img { width: 180rpx; height: 180rpx; border-radius: 16rpx; background: #f5f5f5; margin-right: 24rpx; flex-shrink: 0; } .shangpin-text { flex: 1; } .jieshao-text { font-size: 28rpx; color: #333; line-height: 1.6; } /* 信息行:左右分布,底部虚线 */ .info-row { display: flex; justify-content: space-between; align-items: center; padding: 14rpx 0; border-bottom: 1rpx dashed #f5f5f5; } .info-row:last-child { border-bottom: none; } .label { font-size: 28rpx; color: #888; min-width: 140rpx; } .value { font-size: 28rpx; color: #333; text-align: right; word-break: break-all; } .value-with-copy { display: flex; align-items: center; } /* 复制按钮 */ .copy-btn { margin-left: 12rpx; color: #4caf50; font-size: 26rpx; padding: 4rpx 12rpx; background: #e8f5e9; border-radius: 16rpx; } /* 红色价格 */ .price-red { color: #ff4444; font-weight: 600; } .zhuangtai-text { font-weight: 600; } /* 打手卡片头部 */ .dashou-header { display: flex; align-items: center; } /* 打手头像:固定宽高,圆形 */ .dashou-avatar { width: 88rpx; height: 88rpx; border-radius: 50%; margin-right: 20rpx; } .dashou-detail { flex: 1; } .dashou-nicheng { font-size: 30rpx; font-weight: 500; margin-bottom: 6rpx; } .dashou-id-row { display: flex; align-items: center; font-size: 26rpx; } /* 服务详情子标题 */ .sub-title { font-size: 28rpx; color: #555; margin: 16rpx 0 8rpx; } /* 内容框(留言、理由等) */ .content-box { background: #f9f9f9; border-radius: 12rpx; padding: 16rpx; font-size: 26rpx; color: #444; line-height: 1.5; margin-bottom: 16rpx; } /* ========= 核心:交付图片九宫格,强制正方形 ========= */ .image-grid { display: flex; flex-wrap: wrap; margin-bottom: 16rpx; } /* 每个图片的外层容器 */ .grid-img-wrapper { width: calc(33.33% - 8rpx); /* 每行三个,减去间距 */ margin: 4rpx; position: relative; /* 为绝对定位的图片提供锚点 */ overflow: hidden; border-radius: 12rpx; } /* 使用伪元素撑出 1:1 的正方形高度 */ .grid-img-wrapper::after { content: ''; display: block; padding-bottom: 100%; /* 100% 相对于自身宽度,实现正方形 */ } /* 图片绝对定位填满整个容器 */ .grid-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; /* 保持比例裁剪,不变形 */ } /* 结算区域:星星评分 */ .star-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20rpx; } .stars { display: flex; } .star { font-size: 48rpx; color: #ccc; margin-left: 8rpx; transition: all 0.2s; } .star-active { color: #ffc107; transform: scale(1.1); } /* 留言输入框 */ .liuyan-input { width: 100%; height: 120rpx; background: #f9f9f9; border-radius: 12rpx; padding: 16rpx; font-size: 28rpx; margin-bottom: 20rpx; } /* 结算按钮(卡片内) */ .jiesuan-btn { margin-top: 10rpx; } /* 底部固定操作栏 */ .bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(255, 248, 225, 0.96), #fff8e1 30%); padding: 16rpx 24rpx calc(16rpx + env(safe-area-inset-bottom)); box-shadow: 0 -8rpx 28rpx rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 12rpx; z-index: 100; border-top: 1rpx solid rgba(245, 213, 99, 0.45); } .bottom-btn-group { display: flex; gap: 16rpx; flex-wrap: wrap; } .sj-action-btn { flex: 1; min-width: 0; text-align: center; padding: 22rpx 12rpx; border-radius: 60rpx; font-size: 28rpx; font-weight: 700; box-sizing: border-box; } .sj-action-btn--gold { background: linear-gradient(180deg, #fae04d, #ffc0a3); color: #492f00; border: 2rpx solid #fff; box-shadow: 0 6rpx 18rpx rgba(245, 213, 99, 0.35); } .sj-action-btn--outline { background: rgba(255, 255, 255, 0.95); color: #492f00; border: 2rpx solid #ffd061; } .sj-action-btn--warn { background: linear-gradient(180deg, #ffb74d, #ff8a65); color: #492f00; border: 2rpx solid #fff; box-shadow: 0 6rpx 16rpx rgba(255, 138, 101, 0.28); } .sj-action-btn--full { flex: 1 1 100%; } /* 弹窗通用样式 */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; } .modal-mask { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.45); } .modal-content { position: relative; width: 620rpx; background: #fdfcfa; border-radius: 32rpx; overflow: hidden; border: 2rpx solid rgba(245, 213, 99, 0.4); } .modal-hd { padding: 32rpx; font-size: 34rpx; font-weight: 700; color: #492f00; display: flex; justify-content: space-between; border-bottom: 1rpx solid rgba(245, 213, 99, 0.35); } .modal-close { color: #999; font-size: 40rpx; } .modal-body { padding: 32rpx; } .modal-tip { font-size: 28rpx; color: #555; margin-bottom: 12rpx; } .modal-input { width: 100%; height: 140rpx; background: #f5f5f5; border-radius: 12rpx; padding: 16rpx; font-size: 28rpx; margin-bottom: 20rpx; } .modal-input-num { width: 100%; height: 80rpx; background: #f5f5f5; border-radius: 12rpx; padding: 0 20rpx; font-size: 32rpx; margin-bottom: 20rpx; } .toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; } .toggle { width: 100rpx; height: 50rpx; border-radius: 50rpx; background: #e0e0e0; display: flex; align-items: center; padding: 0 4rpx; transition: background 0.2s; } .toggle-on { background: #4caf50; } .toggle-knob { width: 42rpx; height: 42rpx; border-radius: 50%; background: #fff; transition: transform 0.2s; } .toggle-on .toggle-knob { transform: translateX(50rpx); } .fenhong-tip { text-align: center; font-size: 28rpx; color: #ff9800; margin: 16rpx 0 0; } .modal-btns { display: flex; border-top: 1rpx solid #f0f0f0; } .modal-btn { flex: 1; text-align: center; padding: 28rpx; font-size: 30rpx; font-weight: 500; } .modal-btn.cancel { color: #886633; background: #fff8e1; } .modal-btn.confirm { color: #492f00; background: linear-gradient(180deg, #fae04d, #ffc0a3); font-weight: 700; } /* 罚单/退款操作按钮 */ .fakuan-actions, .refund-actions { display: flex; gap: 20rpx; margin-top: 24rpx; padding-top: 16rpx; border-top: 1rpx dashed rgba(245, 213, 99, 0.5); } /* ========== 新增:教程按钮样式 ========== */ .tutorial-btn { position: fixed; right: 0; top: 20%; transform: translateY(-50%); width: 120rpx; height: 120rpx; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(15rpx); border-radius: 60rpx 0 0 60rpx; display: flex; align-items: center; justify-content: center; z-index: 10001; box-shadow: -8rpx 0 20rpx rgba(0,0,0,0.3); transition: right 0.3s ease-out; border: 2rpx solid rgba(255,215,0,0.5); border-right: none; } .tutorial-btn-text { color: #FFD700; font-size: 36rpx; font-weight: bold; writing-mode: vertical-rl; letter-spacing: 6rpx; } .tutorial-btn-hidden { right: -80rpx; } .tutorial-btn-hover { background: rgba(0, 0, 0, 0.9); transform: translateY(-50%) scale(1.05); }