negotiation-summary.wxss 3.71 KB
/* Figma 814-7748 — 小程序日报 token,非 App negotiationList 视觉 */

:host {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
}

.negotiation-summary {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	background: #f6f7f7;
	box-sizing: border-box;
	animation: summary-fade-in 0.25s ease-out;
}

@keyframes summary-fade-in {
	from {
		opacity: 0;
		transform: translateX(24rpx);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.negotiation-summary__body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.negotiation-summary__tabs-scroll {
	flex-shrink: 0;
	width: 100%;
	background: transparent;
}

.negotiation-summary__tabs {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	padding: 24rpx 20rpx 16rpx;
	gap: 16rpx;
	box-sizing: border-box;
}

.negotiation-summary__tab {
	flex-shrink: 0;
	height: 64rpx;
	padding: 0 32rpx;
	border-radius: 15rpx;
	background: #fff;
	color: #292d33;
	font-size: 28rpx;
	line-height: 64rpx;
	box-sizing: border-box;
	border: none;
}

.negotiation-summary__tab.is-active {
	color: #fff;
	font-weight: 500;
	background: #347BFF;
}

.negotiation-summary__content {
	flex: 1;
	min-height: 0;
	padding: 0 20rpx 20rpx;
	box-sizing: border-box;
}

.negotiation-summary__section {
	background: #fff;
	border-radius: 32rpx;
	padding: 32rpx;
	margin-bottom: 20rpx;
	box-sizing: border-box;
	overflow: hidden;
}

.negotiation-summary__empty {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.negotiation-summary__empty-data {
	width: 100%;
}

.negotiation-summary--empty .negotiation-summary__body {
	position: relative;
	flex: 1;
	min-height: 0;
}

.negotiation-summary--empty .negotiation-summary__empty {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	flex: none;
}

.negotiation-summary--empty .negotiation-summary__footer {
	position: relative;
	flex-shrink: 0;
}

.negotiation-summary__footer {
	flex-shrink: 0;
	background: #f6f7f7;
	padding: 16rpx 32rpx;
	padding-bottom: calc(16rpx + constant(safe-area-inset-bottom));
	padding-bottom: calc(16rpx + env(safe-area-inset-bottom));
	box-sizing: border-box;
}

.negotiation-summary__footer-con {
	width: 622rpx;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.negotiation-summary__back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 80rpx;
	border-radius: 12rpx;
	background: #347bff;
	color: #fff;
	font-size: 28rpx;
	font-weight: 500;
	text-align: center;
	border: 2rpx solid #347bff;
	box-sizing: border-box;
}

.negotiation-summary__loading,
.negotiation-summary__detail-loading {
	flex: 1;
	min-height: 0;
	padding: 20rpx;
	box-sizing: border-box;
}

.negotiation-summary__error {
	flex: 1;
	min-height: 0;
	padding: 20rpx;
	box-sizing: border-box;
}

.negotiation-summary__skeleton {
	height: 96rpx;
	margin-bottom: 20rpx;
	border-radius: 12rpx;
	background: linear-gradient(90deg, #eef0f2 25%, #f8f9fa 50%, #eef0f2 75%);
	background-size: 200% 100%;
	animation: summary-shimmer 1.2s ease-in-out infinite;
}

.negotiation-summary__skeleton--short {
	width: 60%;
}

@keyframes summary-shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.negotiation-summary__error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48rpx 32rpx;
}

.negotiation-summary__error-text {
	font-size: 28rpx;
	color: #5a5e66;
	text-align: center;
	margin-bottom: 32rpx;
}

.negotiation-summary__error-btn {
	padding: 16rpx 48rpx;
	border-radius: 12rpx;
	border: 2rpx solid #347bff;
	color: #347bff;
	font-size: 28rpx;
}